/* PRODUCT HERO SECTION */
.product-hero {
  position: relative;
  background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
  color: var(--light);
  padding: 12rem 5% 6rem;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #d1d5db;
  margin-bottom: 2rem;
  animation: slideUp 1s ease-out 0.2s both;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  animation: slideUp 1s ease-out 0.4s both;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--light);
}

.breadcrumb .separator {
  color: var(--gray);
}

.breadcrumb .current {
  color: var(--light);
  font-weight: 600;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent), transparent);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* FILTER SECTION */
.filter-section {
  padding: 4rem 5%;
  background: var(--light);
  border-bottom: 1px solid #e5e7eb;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.filter-header {
  text-align: center;
  margin-bottom: 3rem;
}

.filter-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.filter-header p {
  color: var(--gray);
  font-size: 1.1rem;
}

.filter-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 1rem 2rem;
  background: var(--light);
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  color: var(--gray);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: var(--light);
  box-shadow: var(--shadow);
}

/* PRODUCTS GRID */
.products-section {
  padding: 4rem 5%;
  background: #f8fafc;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background: var(--light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit:contain;

  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--light);
  z-index: 2;
}

.product-badge.premium {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.product-badge.bestseller {
  background: linear-gradient(135deg, #00b09b, #96c93d);
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
  line-height: 1.3;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.current-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.original-price {
  font-size: 1rem;
  color: var(--gray);
  text-decoration: line-through;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.stars {
  color: #ffc107;
}

.rating-count {
  color: var(--gray);
  font-size: 0.9rem;
}

.product-detail-btn {
  width: 100%;
  padding: 12px 20px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

/* MODAL STYLES */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.modal {
  background: var(--light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  position: relative;
  padding: 30px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal.show {
  opacity: 1;
  transform: scale(1);
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 22px;
  transition: var(--transition);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.modal-image-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.thumbnails img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.thumbnails img.active {
  border-color: var(--primary);
  transform: scale(1.05);
}

.modal-content h2 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.modal-content p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.modal-stats {
  background: var(--gray-light);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.stat-item {
  color: var(--darker);
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
}

.stat-item span {
  font-weight: 600;
  color: var(--primary);
}


.modal-actions {
  display: flex;
  gap: 12px;
}

.btn-modal {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

        /* Notification Styles */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: var(--gradient);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-lg);
            z-index: 10000;
            transform: translateX(100%);
            transition: transform 0.3s ease;
        }

        .notification-content {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

  

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .modal {
    grid-template-columns: 1fr;
    max-height: 85vh;
  }
}

@media (max-width: 768px) {
  .product-hero {
    padding: 10rem 5% 4rem;
    min-height: 50vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .filter-controls {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .main-image {
    height: 250px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .main-container {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 200px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-image {
    height: 200px;
  }
  
  .modal {
    padding: 20px;
  }
  
  .thumbnails img {
    width: 60px;
    height: 60px;
  }
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ACTIVE NAV LINK */
.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::before {
  width: 100%;
}

/* SCROLL TO TOP */
#scrollToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  background: var(--gradient);
  border: none;
  border-radius: 50%;
  color: var(--light);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollToTop:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 15px 40px rgba(0, 102, 204, 0.4);
}