/* Products Hero */
.products-hero {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  color: #fff;
}

.products-hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.products-hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Header */
.category-header {
  border-bottom: 3px solid var(--bs-primary);
  padding-bottom: 1rem;
}

.category-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
}

/* Modern Product Card */
.product-card-modern {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(46, 204, 113, 0.2);
}

.product-image-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #f8f9fa;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card-modern:hover .product-image-wrapper img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.product-info {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.product-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.product-link {
  display: inline-flex;
  align-items: center;
  color: var(--bs-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.product-link:hover {
  color: var(--bs-primary-dark);
  gap: 0.5rem;
}

.product-link i {
  transition: transform 0.3s ease;
}

.product-link:hover i {
  transform: translateX(5px);
}

/* Product Category Sections */
.product-category {
  background: #fff;
}

.product-category:nth-child(even) {
  background: #f8f9fa;
}

/* Subcategory Cards */
.subcategories-section .section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
}

.subcategory-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.subcategory-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(46, 204, 113, 0.2);
  color: inherit;
}

.subcategory-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bs-primary), var(--bs-primary-dark));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.subcategory-card:hover::before {
  transform: scaleX(1);
}

.subcategory-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
  transition: transform 0.3s ease;
}

.subcategory-card:hover .subcategory-icon {
  transform: scale(1.1);
}

.subcategory-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  text-align: center;
}

.subcategory-count {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 1rem;
}

.subcategory-arrow {
  width: 40px;
  height: 40px;
  background: rgba(46, 204, 113, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-primary);
  transition: all 0.3s ease;
}

.subcategory-card:hover .subcategory-arrow {
  background: var(--bs-primary);
  color: #fff;
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
  .products-hero-title {
    font-size: 2rem;
  }
  
  .category-title {
    font-size: 1.5rem;
  }
  
  .category-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .subcategory-card {
    padding: 1.5rem 1rem;
    min-height: 180px;
  }
  
  .subcategory-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}
