/* ===== Home Page Styles ===== */

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary),
    var(--secondary)
  );
  padding: 80px 0 60px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 60%
  );
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 60%
  );
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Features Strip */
.features-strip {
  background: white;
  padding: 30px 0;
  border-bottom: 1px solid var(--neutral-100);
  width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-text h4 {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  margin-bottom: 2px;
  white-space: nowrap;
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--neutral-500);
}

/* ===== PROFESSIONAL CATEGORY CARDS ===== */
.categories-section {
  padding: 60px 0;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.category-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

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

.category-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--primary);
}

.category-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  transition: all 0.35s ease;
}

.category-card:hover .category-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(142, 11, 65, 0.3);
}

.category-card h3 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin: 0;
}

.category-card .category-count {
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin-top: -6px;
}

.category-card .shop-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 4px;
  transition: all 0.3s ease;
}

.category-card:hover .shop-now {
  color: var(--primary);
  gap: 10px;
}

/* Products Grid Common */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

/* ===== PROFESSIONAL PRODUCT CARD ===== */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(142, 11, 65, 0.3);
}

/* Product Image */
.product-card-image {
  position: relative;
  padding-top: 100%;
  background: var(--neutral-50);
  cursor: pointer;
  overflow: hidden;
}

.product-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

/* Badges */
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(214, 26, 94, 0.35);
  letter-spacing: 0.3px;
}

.product-badge.sold-out {
  background: var(--neutral-800);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Quick Actions */
.product-quick-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  z-index: 2;
}

.product-card:hover .product-quick-actions {
  opacity: 1;
  transform: translateX(0);
}

.quick-action-btn {
  width: 36px;
  height: 36px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  color: var(--neutral-600);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.15);
}

/* Product Body */
.product-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

.product-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card-title a:hover {
  color: var(--primary);
}

/* Rating */
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.product-card-rating .stars {
  color: #f59e0b;
  display: flex;
  gap: 1px;
}

.rating-count {
  color: var(--neutral-400);
  font-size: 0.78rem;
}

/* Pricing */
.product-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.current-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.original-price {
  font-size: 0.82rem;
  text-decoration: line-through;
  color: var(--neutral-400);
}

/* Card Actions */
.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.product-card-actions .btn {
  flex: 1;
  font-size: 0.8rem;
  padding: 9px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.testimonial-date {
  font-size: 0.8rem;
  color: var(--neutral-500);
}

.testimonial-rating {
  color: #f59e0b;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.testimonial-text {
  color: var(--neutral-600);
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: italic;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  padding: 70px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 60%
  );
  border-radius: 50%;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}
.cta-section h2 {
  color: white;
  margin-bottom: 12px;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-cards {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 50px 0 40px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .category-card {
    padding: 24px 16px 20px;
  }
  .category-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }
  .category-card h3 {
    font-size: 0.95rem;
  }
  .feature-text h4 {
    white-space: normal;
    font-size: 0.82rem;
  }

  .product-card-body {
    padding: 14px;
  }
  .product-card-title {
    font-size: 0.88rem;
  }
  .current-price {
    font-size: 1.05rem;
  }
  .product-card-actions .btn {
    font-size: 0.75rem;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .feature-item {
    gap: 10px;
  }
  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .feature-text h4 {
    font-size: 0.75rem;
  }
  .feature-text p {
    font-size: 0.7rem;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .product-card-body {
    padding: 10px 12px;
  }
  .product-card-title {
    font-size: 0.8rem;
  }
  .product-card-category {
    font-size: 0.65rem;
    letter-spacing: 1px;
  }
  .current-price {
    font-size: 0.9rem;
  }
  .original-price {
    font-size: 0.72rem;
  }
  .product-card-rating {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }
  .product-card-pricing {
    margin-bottom: 10px;
    gap: 6px;
  }

  .product-card-actions {
    flex-direction: column;
    gap: 5px;
  }
  .product-card-actions .btn {
    padding: 7px 8px;
    font-size: 0.72rem;
  }

  .product-badge {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 0.65rem;
  }

  .quick-action-btn {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .product-quick-actions {
    top: 8px;
    left: 8px;
    gap: 5px;
  }

  .category-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .category-card {
    padding: 20px 12px 16px;
  }
  .category-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  .category-card h3 {
    font-size: 0.85rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 360px) {
  .products-grid {
    gap: 8px;
  }

  .product-card-body {
    padding: 8px 10px;
  }
  .product-card-title {
    font-size: 0.75rem;
  }
  .product-card-category {
    font-size: 0.6rem;
  }
  .current-price {
    font-size: 0.82rem;
  }
  .product-card-actions .btn {
    padding: 6px 6px;
    font-size: 0.68rem;
  }

  .product-badge {
    top: 6px;
    right: 6px;
    padding: 3px 6px;
    font-size: 0.6rem;
  }

  .quick-action-btn {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
}

/* Review Slider Section */
.reviews-slider-section {
  padding: 60px 0;
  overflow: hidden;
}

.reviews-slider-wrapper {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.reviews-track-container {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-slide {
  min-width: 350px;
  max-width: 400px;
  flex-shrink: 0;
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
}

/* Review Dots */
.review-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.review-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neutral-200);
  cursor: pointer;
  transition: all 0.3s ease;
}

.review-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* Slider Controls */
.review-slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.review-slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--neutral-200);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-600);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.review-slider-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .review-slide {
    min-width: 300px;
    max-width: 340px;
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .review-slide {
    min-width: 260px;
    max-width: 300px;
    padding: 16px;
  }
}
