/* ============================================================
   ASTI MART — HERO.CSS
   Hero slider, promo banners, products slider, reviews, WhatsApp
   ============================================================ */

/* ── Outer hero section ── */
#hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-bg);
}

/* ── Actual Swiper container ── */
.hero-swiper {
  width: 100%;
  height: 65svh;
  min-height: 420px;
  max-height: 750px;
}

@media (min-width: 1024px) {
  .hero-swiper {
    height: 720px;
    max-height: none;
  }
}

@media (max-width: 767px) {
  .hero-swiper {
    height: 60svh;
    min-height: 380px;
    max-height: 560px;
  }
}

/* Every individual slide must be the full size of the swiper */
.hero-swiper .swiper-slide,
.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}


.hero-slide-link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 10;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: var(--space-20);
  height: 100%;
  display: flex;
  align-items: center;
}

/* ── Background layers ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Mobile / Desktop images */
.hero-bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
}

.hero-bg__img--mobile  { display: none; }
.hero-bg__img--desktop { display: block; }

@media (max-width: 767px) {
  .hero-bg__img--mobile  { display: block; opacity: 1; object-position: center; }
  .hero-bg__img--desktop { display: none; }
}



/* ── Hero Content ── */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero-eyebrow__line { width: 32px; height: 1px; background: var(--color-accent); }

.hero-headline {
  font-size: var(--text-hero);
  font-weight: var(--fw-light);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-headline em     { font-style: italic; color: var(--color-accent); }
.hero-headline strong { font-weight: var(--fw-bold); display: block; }

.hero-subheading {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--space-8);
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── Hero Navigation Arrows ── */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-glass-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
  cursor: pointer;
}

.hero-nav--prev { left: clamp(12px, 3vw, 28px); }
.hero-nav--next { right: clamp(12px, 3vw, 28px); }

.hero-nav:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.08);
}

/* Hide default Swiper arrows */
.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after { display: none; }

/* ── Hero Pagination — bottom LEFT ── */
.hero-pagination {
  position: absolute;
  bottom: clamp(24px, 4vw, 40px) !important;
  left: clamp(16px, 4vw, 48px) !important;
  right: auto !important;
  z-index: 20;
  display: flex;
  gap: 8px;
  width: auto !important;
}

@media (max-width: 767px) {
  .hero-pagination {
    bottom: 32px !important;
  }
}

.hero-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: var(--color-text-primary);
  opacity: 0.4;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  margin: 0 !important;
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 28px;
  background: var(--color-accent);
  opacity: 1;
}

/* ── Particles ── */
#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* ============================================================
   TICKER BAR
   ============================================================ */
#ticker-bar {
  position: relative;
  z-index: calc(var(--z-sticky) + 1);
}

/* ============================================================
   SECTION HEADER — INLINE (title + view all on same line)
   ============================================================ */
.section-header--inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: clamp(var(--space-6), 3vw, var(--space-10));
  flex-wrap: wrap;
}

/* ============================================================
   CATEGORIES SWIPER
   ============================================================ */
#categories { background: var(--color-bg-2); }

.categories-swiper {
  overflow: visible;
  padding: var(--space-2) 0 var(--space-4);
  cursor: grab;
}
.categories-swiper:active { cursor: grabbing; }

.cat-swiper-slide {
  width: 100%;
  height: auto;
}

/* ============================================================
   PROMO BANNER SLIDER — PEEK / OVERFLOW EFFECT
   ============================================================ */
#promo-banners,
.promo-banners-section {
  background: var(--color-bg);
  overflow: visible !important;
}

.promo-banners-section {
  padding-top: clamp(var(--space-10), 5vw, var(--space-24));
  padding-bottom: clamp(var(--space-10), 5vw, var(--space-24));
}

.promo-banners-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: clamp(var(--space-6), 3vw, var(--space-10));
}

/* Swiper overflows so adjacent cards peek */
.promo-swiper {
  overflow: visible !important;
  padding: var(--space-4) 0 var(--space-10);
  cursor: grab;
}
.promo-swiper:active { cursor: grabbing; }

.promo-swiper .swiper-wrapper {
  padding-left: 0;
}

@media (min-width: 768px) {
  .promo-swiper .swiper-wrapper {
    padding-left: clamp(16px, 4vw, 48px);
  }
}

.promo-slide {
  width: 100%;
  height: auto;
  z-index: 1;
  transition: z-index 0.3s ease;
}

.promo-slide.swiper-slide-active,
.promo-slide.swiper-slide-duplicate-active {
  z-index: 10;
}

/* ── Promo Card ── */
.promo-card {
  display: block;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible !important; /* allow product peek to go outside */
  background: var(--color-surface-3);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
  isolation: isolate;
}

@media (min-width: 1024px) {
  .promo-card { aspect-ratio: 21 / 10; }
}

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

/* Clip only the background image, not the product peek */
.promo-card__bg-wrap {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  z-index: 0;
}

/* Desktop/mobile bg images */
.promo-card__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
  display: block;
}

.promo-card__bg--gradient {
  background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface-3));
}

.promo-card__bg--mobile  { display: none; }
.promo-card__bg--desktop { display: block; }

@media (max-width: 767px) {
  .promo-card__bg--mobile  { display: block; }
  .promo-card__bg--desktop { display: none; }
}

/* Overlay gradient */
.promo-card__overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.5) 40%,
    rgba(0,0,0,0.05) 100%
  );
  z-index: 1;
}

.promo-card__content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  z-index: 3;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 65%;
}

.promo-card__tag {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: var(--space-2);
}

.promo-card__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--fw-light);
  color: white;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.promo-card__subtitle {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin: 0;
  font-style: italic;
}

.promo-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: white;
  margin-top: var(--space-3);
  transition: gap var(--transition-fast);
}

.promo-card:hover .promo-card__cta { gap: 12px; }

/* ── Product Peek — goes OUTSIDE card boundaries ── */
.promo-card__product-peek {
  position: absolute;
  right: var(--peek-r-m, -5%);
  left: var(--peek-l-m, auto);
  top: var(--peek-t-m, 40%);
  transform: translateY(-50%);
  width: var(--peek-w-m, 45%);
  max-width: none;
  height: 150%;
  object-fit: contain;
  z-index: 10;
  filter: drop-shadow(-10px 20px 30px rgba(0,0,0,0.6));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

@media (min-width: 768px) {
  .promo-card__product-peek {
    width: var(--peek-w-d, var(--peek-w-m, 45%));
    top: var(--peek-t-d, var(--peek-t-m, 40%));
    right: var(--peek-r-d, var(--peek-r-m, -5%));
    left: var(--peek-l-d, var(--peek-l-m, auto));
  }
}

/* Hover zoom removed as requested */

/* Promo dots */
.promo-pagination-wrap {
  position: relative;
  margin-top: var(--space-6);
}

.promo-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: 100% !important;
}

.promo-pagination .swiper-pagination-bullet {
  width: 6px; height: 6px;
  background: var(--color-border-2);
  opacity: 1;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  margin: 0 !important;
  cursor: pointer;
}

.promo-pagination .swiper-pagination-bullet-active {
  width: 22px;
  background: var(--color-accent);
}

/* ============================================================
   PRODUCTS SLIDER
   ============================================================ */
#featured-products { background: var(--color-bg); }

.products-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.products-filter {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-btn:hover  { border-color: var(--color-border-2); color: var(--color-text-secondary); }
.filter-btn.active { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-text-invert); }

/* Products Swiper */
.products-swiper,
.custom-products-swiper {
  overflow: visible;
  padding: var(--space-2) 0 var(--space-6);
  cursor: grab;
  position: relative;
}
.products-swiper:active,
.custom-products-swiper:active { cursor: grabbing; }

.product-swiper-slide {
  width: 100%;
  height: auto;
}

/* Products nav */
.products-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 20;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.products-nav--prev { left: -20px; }
.products-nav--next { right: -20px; }
.products-nav:hover { background: var(--color-accent); color: white; border-color: var(--color-accent); transform: translateY(-50%) scale(1.05); }
.products-nav::after { display: none !important; }

@media (max-width: 639px) { .products-nav { display: none; } }

/* Bottom padding for product slider sections */
#custom-collection { padding-bottom: var(--space-16) !important; }
#featured-products { padding-bottom: var(--space-12) !important; }

/* ============================================================
   TRUST STATS
   ============================================================ */
#trust-stats {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.trust-stat { background: var(--color-surface); padding: var(--space-8); }

/* ============================================================
   FEATURED DEAL BANNER
   ============================================================ */
#featured-banner { position: relative; overflow: hidden; background: var(--color-surface-2); }

.banner-inner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: var(--space-12) 0;
}

@media (min-width: 768px) { .banner-inner { min-height: 420px; } }

.banner-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 80% 50%, var(--color-accent-glow) 0%, transparent 70%),
    linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-surface-3) 100%);
}

.banner-content { position: relative; z-index: 1; max-width: 520px; }
.banner-content .eyebrow { margin-bottom: var(--space-4); }
.banner-content h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); margin-bottom: var(--space-4); }
.banner-content p  { font-size: var(--text-base); margin-bottom: var(--space-8); max-width: 400px; }

.countdown-wrap { display: flex; gap: var(--space-4); margin-bottom: var(--space-8); flex-wrap: wrap; }
.countdown-unit { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); min-width: 60px; }

.countdown-num {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  background: var(--color-surface-3);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-sm);
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  letter-spacing: -0.02em;
}

.countdown-label { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   REVIEWS SWIPER
   ============================================================ */
#reviews { background: var(--color-bg-2); }

.reviews-swiper {
  overflow: visible;
  padding: var(--space-2) 0 var(--space-10);
  cursor: grab;
}
.reviews-swiper:active { cursor: grabbing; }

.review-swiper-slide {
  width: clamp(270px, 78vw, 360px);
  height: auto;
}

@media (min-width: 640px)  { .review-swiper-slide { width: 320px; } }
@media (min-width: 1024px) { .review-swiper-slide { width: 360px; } }

.reviews-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: 100% !important;
}

.reviews-pagination .swiper-pagination-bullet {
  width: 6px; height: 6px;
  background: var(--color-border-2);
  opacity: 1;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  margin: 0 !important;
  cursor: pointer;
}

.reviews-pagination .swiper-pagination-bullet-active {
  width: 22px;
  background: var(--color-accent);
}

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
  transition: border-color var(--transition-fast), transform var(--transition-base), box-shadow var(--transition-base);
}

.review-card:hover {
  border-color: var(--color-border-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.review-card__stars { display: flex; gap: 3px; }
.review-card__stars svg { width: 14px; height: 14px; fill: #f59e0b; color: #f59e0b; }

.review-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}

.review-card__author { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; }

.review-card__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-accent-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  flex-shrink: 0;
  border: 1px solid var(--color-accent-glow);
}

.review-card__name { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--color-text-primary); }
.review-card__date { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: clamp(82px, 10vw, 100px);
  right: clamp(16px, 3vw, 28px);
  z-index: var(--z-toast);
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  animation: wa-pulse 2.8s ease-in-out 3s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  animation: none;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.25); }
  50%       { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 14px rgba(37,211,102,0); }
}

.whatsapp-float__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #128C7E;
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.whatsapp-float:hover .whatsapp-float__tooltip { opacity: 1; }

@media (max-width: 767px) {
  .whatsapp-float { bottom: 76px; width: 50px; height: 50px; }
}

/* ============================================================
   ACCOUNT ICON IN NAV
   ============================================================ */
.nav-account {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.nav-account__dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--color-surface);
}

.nav-account__dot--in {
  background: var(--color-success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.7); }
}
