.product-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.cta-btn{
  margin-top: 150px !important;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.filter-group h4 {
  margin: 0;
  color: #1e40af;
  font-size: 1rem;
  font-weight: 600;
}
.filter-checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #1e40af;
  cursor: pointer;
}
.filter-checkbox-label {
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
}
.clear-filters {
  padding: 0.5rem 1rem;
  background: #e53e3e;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.clear-filters:hover {
  background: #c53030;
}
.sort-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sort-group label {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}
.sort-group select {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #333;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.sort-group select:focus {
  border-color: #1e40af;
  box-shadow: 0 0 5px rgba(30, 64, 175, 0.2);
}
@media (max-width: 768px) {
  .product-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .sort-group {
    width: 100%;
  }
  .sort-group select {
    width: 100%;
  }
}

/* Product Card Overlay */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.192);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card:hover .product-overlay {
  opacity: 1;
}
.product-btn {
  padding: 0.5rem 1.5rem;
  background: #fff;
  color: #526cc4;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.5s ease;
  width: 80%;
  justify-content: center;
  text-align: center;
}
.product-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}
@media (max-width: 768px) {
  .product-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    width: 90%;
  }
}

/* Product Comparison */
.compare-checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  accent-color: #1e40af;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.compare-btn {
  display: none;
  padding: 0.5rem 1rem;
  background: #1e40af;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.compare-btn.active {
  display: inline-block;
}
.compare-btn:hover {
  background: #15308f;
}
.compare-modal .modal-content {
  max-width: 90%;
  width: 1000px;
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.compare-table th,
.compare-table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 0.9rem;
}
.compare-table th {
  background: #1e40af;
  color: #fff;
  font-weight: 600;
}
.compare-table td {
  background: #fff;
  color: #333;
}
.compare-table img {
  max-width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.compare-table .remove-btn {
  background: #e53e3e;
  color: #fff;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
}
.compare-table .remove-btn:hover {
  background: #c53030;
}
.no-products {
  text-align: center;
  color: #888;
  padding: 1rem;
}

/* Specs Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  animation: modalFadeIn 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
}
.modal .close:hover {
  color: #e53e3e;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.specs-table td {
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
}
.specs-table td:first-child {
  font-weight: 600;
  color: #333;
  width: 40%;
}
.key-features {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0;
}
.key-features li {
  margin-bottom: 0.3rem;
}
.modal h3 {
  color: #1e40af;
  margin-bottom: 1rem;
}
.modal h4 {
  color: #1e40af;
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
}
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
}

/* Product Categories Section */
.categories {
  padding: 2rem 0;
  background: #fff;
}
.categories .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.category-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
}
.category-card.active {
  background: #e6efff;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.category-card i {
  font-size: 2rem;
  color: #1e40af;
  margin-bottom: 0.5rem;
}
.category-card h3 {
  font-size: 1.2rem;
  color: #333;
  margin: 0.5rem 0;
}
.category-card p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}
