/* ==========================================================================
   PAGES — Page-specific styles
   ========================================================================== */

/* ── Homepage ────────────────────────────────────────────────────────────── */

/* Hero Carousel */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-neutral-50);
}

.hero__slides {
  display: flex;
  transition: transform var(--duration-slow) var(--ease-out);
  max-width: 1280px;
  margin: 0 auto;
}

.hero__slide {
  min-width: 100%;
  position: relative;
}

.hero__slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1024 / 419;
  object-fit: cover;
  image-rendering: auto;
}

@media (max-width: 767px) {
  .hero__slide img {
    aspect-ratio: 1024 / 419;
    object-fit: cover;
  }
}

.hero__dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 2;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  padding: 0;
}

.hero__dot.active {
  background: #fff;
  width: 28px;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
  z-index: 2;
  box-shadow: var(--shadow-md);
  color: var(--color-neutral-800);
}

.hero__arrow:hover {
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.hero__arrow--prev { left: var(--space-4); }
.hero__arrow--next { right: var(--space-4); }

@media (min-width: 768px) {
  .hero__arrow {
    display: flex;
  }
}

/* ── Best Sellers Showcase ───────────────────────────────────────────────── */
.section--best-sellers {
  background: radial-gradient(circle at 50% 0%, rgba(200, 169, 81, 0.08) 0%, transparent 70%);
  position: relative;
  padding-top: var(--space-8);
  padding-bottom: var(--space-10);
}

/* Category Cards */
.categories-section .grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .categories-section .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories-section .grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Why Choose Us */
.why-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: var(--transition-base);
}

.why-card:hover {
  border-color: var(--color-primary-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.why-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-50);
  border-radius: var(--radius-lg);
  color: var(--color-primary-700);
}

.why-card__icon svg {
  width: 28px;
  height: 28px;
}

.why-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.why-card__text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Reviews Section */
.reviews-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  justify-content: center;
}

.reviews-header__rating {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary-700);
}

.reviews-header__stars {
  display: flex;
  gap: 2px;
  color: #FBC02D;
}

.reviews-header__count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.reviews-carousel {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: var(--space-2) 0;
}

.reviews-carousel::-webkit-scrollbar { display: none; }

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--color-primary-800) 0%, var(--color-primary-700) 50%, var(--color-primary-600) 100%);
  color: #fff;
  text-align: center;
}

.newsletter-section h2 {
  color: #fff;
}

.newsletter-section p {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Shop Page ───────────────────────────────────────────────────────────── */

.shop-header {
  padding: var(--space-6) 0 var(--space-4);
}

.shop-header h1 {
  margin-bottom: var(--space-2);
}

.shop-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.shop-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.shop-sort {
  padding: 8px 36px 8px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: var(--color-bg-card);
  min-height: 40px;
  cursor: pointer;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap-sm);
}

@media (min-width: 640px) {
  .products-grid {
    gap: var(--grid-gap-md);
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.load-more-wrap {
  text-align: center;
  padding: var(--space-8) 0;
}

/* ── Product Page ────────────────────────────────────────────────────────── */

.product-detail {
  padding: var(--space-4) 0 var(--space-8);
}

@media (min-width: 768px) {
  .product-detail__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
  }
}

.product-gallery {
  position: relative;
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .product-gallery {
    margin-bottom: 0;
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
  }
}

.product-gallery__main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-neutral-50);
  margin-bottom: var(--space-3);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-4);
}

.product-gallery__thumbs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.product-gallery__thumbs::-webkit-scrollbar { display: none; }

.product-gallery__thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border-light);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--color-neutral-50);
  transition: var(--transition-base);
  padding: 4px;
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
  border-color: var(--color-primary-500);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  padding-top: var(--space-2);
}

.product-info__breadcrumb {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.product-info__breadcrumb a {
  color: var(--color-text-muted);
}

.product-info__breadcrumb a:hover {
  color: var(--color-primary-700);
}

.product-info__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .product-info__title {
    font-size: var(--text-2xl);
  }
}

.product-info__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.product-info__current-price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary-700);
}

.product-info__old-price {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-info__discount {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-error);
}

.product-info__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-neutral-600);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
}

.product-info__qty {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.product-info__qty-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-selector__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--color-neutral-600);
  transition: var(--transition-base);
}

.qty-selector__btn:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}

.qty-selector__value {
  width: 48px;
  text-align: center;
  font-weight: var(--weight-semibold);
  border-left: 1px solid var(--color-border-light);
  border-right: 1px solid var(--color-border-light);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-info__actions {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.product-info__actions .btn {
  flex: 1;
}

/* Sticky Add to Cart (mobile) */
.sticky-cart {
  position: fixed;
  bottom: var(--bottom-nav-height);
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-3) var(--container-padding);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-out);
}

.sticky-cart.visible {
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .sticky-cart {
    display: none;
  }
}

.sticky-cart__price {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: var(--color-primary-700);
  flex-shrink: 0;
}

.sticky-cart .btn {
  flex: 1;
}

/* ── About Page ──────────────────────────────────────────────────────────── */

.about-hero {
  background: linear-gradient(135deg, var(--color-primary-800) 0%, var(--color-primary-600) 100%);
  color: #fff;
  text-align: center;
  padding: var(--space-12) 0;
}

@media (min-width: 768px) {
  .about-hero {
    padding: var(--space-20) 0;
  }
}

.about-hero h1 {
  color: #fff;
  margin-bottom: var(--space-4);
}

.about-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--text-md);
}

.timeline {
  position: relative;
  padding: var(--space-6) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-primary-200);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  padding-left: 52px;
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: var(--space-8);
  }

  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: var(--space-8);
    padding-right: 0;
  }
}

.timeline-item__dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--color-primary-700);
  border: 3px solid var(--color-primary-100);
  border-radius: var(--radius-full);
}

@media (min-width: 768px) {
  .timeline-item__dot {
    left: auto;
    right: -9px;
  }

  .timeline-item:nth-child(even) .timeline-item__dot {
    left: -9px;
    right: auto;
  }
}

.timeline-item__year {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-gold-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-1);
}

.timeline-item__title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.timeline-item__text {
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
  line-height: var(--leading-relaxed);
}

/* ── Blog Page ───────────────────────────────────────────────────────────── */

.blog-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-shadow), var(--transition-transform);
}

.blog-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.blog-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.blog-card__title a {
  color: var(--color-text);
}

.blog-card__title a:hover {
  color: var(--color-primary-700);
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Diet Consultation Page ──────────────────────────────────────────────── */

.consult-hero {
  background: linear-gradient(135deg, var(--color-primary-800) 0%, var(--color-primary-600) 100%);
  color: #fff;
  padding: var(--space-12) 0;
  text-align: center;
}

@media (min-width: 768px) {
  .consult-hero {
    padding: var(--space-16) 0;
    text-align: left;
  }
}

.consult-hero h1 {
  color: #fff;
  margin-bottom: var(--space-4);
}

.consult-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  font-size: var(--text-md);
  margin-bottom: var(--space-6);
}

.step-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  position: relative;
}

.step-card__number {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  background: var(--color-primary-700);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.step-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Health Program Card */
.program-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: var(--transition-base);
}

.program-card:hover {
  border-color: var(--color-primary-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.program-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-50);
  border-radius: var(--radius-full);
  color: var(--color-primary-700);
  font-size: var(--text-xl);
}

.program-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.program-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ── Help Centre ─────────────────────────────────────────────────────────── */

.help-hero {
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-bg-primary) 100%);
  text-align: center;
  padding: var(--space-12) 0;
}

@media (min-width: 768px) {
  .help-hero {
    padding: var(--space-16) 0;
  }
}

.help-hero h1 {
  margin-bottom: var(--space-4);
}

.help-hero__search {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.help-hero__search input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: 2px solid var(--color-primary-200);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-md);
  min-height: 56px;
}

.help-hero__search input:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15);
}

.help-hero__search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--color-text-muted);
}

.help-tile {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--color-text);
}

.help-tile:hover {
  border-color: var(--color-primary-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--color-primary-700);
}

.help-tile__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-50);
  border-radius: var(--radius-lg);
  color: var(--color-primary-700);
  font-size: var(--text-xl);
}

.help-tile__title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

/* ── Contact Page ────────────────────────────────────────────────────────── */

.contact-hero {
  background: linear-gradient(135deg, var(--color-primary-800) 0%, var(--color-primary-600) 100%);
  color: #fff;
  text-align: center;
  padding: var(--space-12) 0;
}

.contact-hero h1 {
  color: #fff;
  margin-bottom: var(--space-3);
}

.contact-hero p {
  color: rgba(255, 255, 255, 0.85);
}

.contact-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: var(--transition-base);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-200);
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-50);
  border-radius: var(--radius-full);
  color: var(--color-primary-700);
}

.contact-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.contact-card__text {
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
  line-height: var(--leading-relaxed);
}

.contact-card__text a {
  color: var(--color-primary-700);
  font-weight: var(--weight-medium);
}

.contact-form-section {
  background: var(--color-neutral-50);
}

@media (min-width: 768px) {
  .contact-form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
  }
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-neutral-100);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
