/* ═══════════════════════════════════════════════════════════════
   Muchhad · Warm Rustic Stylesheet (clean rebuild)
   Palette: Oat cream + Espresso + Terracotta + Jaggery + Sage
═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #F4E9D5;
  --bg-2:      #ECDCC0;
  --cream:     #FBF3DF;
  --ink:       #2A1810;
  --ink-m:     #7A5A3A;
  --ink-soft:  #A8896B;
  --clay:      #BC4A2C;
  --clay-deep: #8C3318;
  --gold:      #D6982A;
  --sage:      #7E8C5C;
  --line:      rgba(42,24,16,0.12);
  --line-2:    rgba(42,24,16,0.22);
}

/* ── Base ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 800px 400px at 10% 0%, rgba(214,152,42,0.07), transparent 60%),
    radial-gradient(ellipse 600px 300px at 90% 100%, rgba(188,74,44,0.05), transparent 60%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  color: var(--ink);
}
.paper-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
::selection { background: var(--clay); color: var(--cream); }

.sepia-img { filter: sepia(0.18) saturate(1.05) contrast(1.02); transition: filter 0.4s ease; }
.sepia-img:hover { filter: sepia(0.05) saturate(1.1) contrast(1.05); }

.nav-link {
  font-family: 'Fraunces', serif; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  position: relative; padding-bottom: 2px;
  transition: color 0.25s;
}
.nav-link::after {
  content: ''; position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 1.5px; background: var(--clay);
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover { color: var(--clay); }
.nav-link:hover::after { width: 100%; left: 0; }

@keyframes successPop {
  0%   { transform: scale(0) rotate(-12deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.success-icon { animation: successPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }

/* ═══ TOP MARQUEE ═══════════════════════════════════════ */
.marquee-bar {
  background: var(--ink);
  overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid var(--gold);
  position: relative;
}
.marquee-bar::before, .marquee-bar::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.marquee-bar::before { left: 0;  background: linear-gradient(to right, var(--ink), transparent); }
.marquee-bar::after  { right: 0; background: linear-gradient(to left,  var(--ink), transparent); }
.marquee-track {
  display: inline-flex; align-items: center;
  animation: marqueeScroll 35s linear infinite;
  font-family: 'Fraunces', serif; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gold); padding: 9px 0; width: max-content;
}
.marquee-track span { padding: 0 14px; }
.marquee-dot { color: var(--clay); font-size: 14px; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════════════════════════
   HERO — semantic, bulletproof, no Tailwind responsive shenanigans
   Mobile-first: stacked. Desktop: 2-col text + crossfading photo.
═══════════════════════════════════════════════════════════════ */
.hero-wrap {
  position: relative;
  padding: 36px 0 28px;
  overflow: hidden;
  
}
.hero-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 640px)  { .hero-inner { padding: 0 32px; } }
@media (min-width: 1024px) {
  .hero-wrap  { padding: 48px 0 36px; }
  .hero-inner {
    padding: 0 80px;
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* ─── LEFT TEXT COLUMN ─────────────────────────────────── */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
  /* GUARANTEED visible — no animation, no opacity tricks */
  opacity: 1;
  position: relative;
  z-index: 3;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Fraunces', serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--clay);
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--clay); }

.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(42px, 7.4vw, 30px);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin: 0;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%; bottom: -6px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 14' xmlns='http://www.w3.org/2000/svg' fill='none'%3E%3Cpath d='M2 8 Q 50 1, 100 6 T 198 4' stroke='%23BC4A2C' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.hero-strike { display: block; }

.hero-sub {
  font-family: 'Newsreader', serif;
  font-size: clamp(15px, 1.5vw, 18px);
  font-style: italic;
  line-height: 1.00;
  color: var(--ink-m);
  max-width: 540px;
  margin: 0;
}
@media (max-width: 540px) {
  .hero-sub { font-size: 15px; margin-top: 4px; }
}

.hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.hero-cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 28px;
  background: var(--clay); color: var(--cream);
  font-family: 'Fraunces', serif; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  border: 1.5px solid var(--clay); border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 6px 20px -8px rgba(188, 74, 44, 0.5);
}
.hero-cta-primary:hover {
  background: var(--ink); border-color: var(--ink); color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(42, 24, 16, 0.5);
}
.hero-cta-secondary {
  display: inline-flex; align-items: center;
  height: 52px; padding: 0 24px;
  background: transparent; color: var(--ink);
  font-family: 'Fraunces', serif; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  border: 1.5px solid var(--ink); border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s;
}
.hero-cta-secondary:hover { background: var(--ink); color: var(--cream); }

.hero-trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding-top: 4px; }
.hero-trust {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Fraunces', serif; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-m);
}
.hero-trust .material-symbols-outlined { color: var(--clay); font-size: 16px; }

/* ═══ HERO USP ROW (big, prominent) ═══ */
.hero-usp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-top: 2px;
  margin-top: 2px;
  margin-bottom: 4px;
  
}
.hero-usp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}



/* ═══ HERO TAGLINE (Hindi-English punchline) ═══ */
.hero-tagline {
  font-family: 'Fraunces', serif;
  font-size: 50px;
  font-weight: 600;
  font-style: italic;
  color: var(--clay);
  margin-top: 1px;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  .hero-tagline { font-size: 30px; margin-top: 8px; }
}




/* ─── RIGHT PHOTO COLUMN — single tall image, photos crossfade ── */
.hero-photo-wrap {
  position: relative;
  width: 100%;
  
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  /* Cap height so the hero never blows up too tall on big screens */
  max-height: min(540px, calc(100vh - 280px));
  position: absolute; 
  right: 0; 
  top: 0; 
  bottom: 0; 
  width: 52%; 
  border-radius: 0; 
  border: none; 
  box-shadow: none; 
  aspect-ratio: unset; 
  max-height: none;
  overflow: hidden;
  z-index: 1;
}
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: clamp(500px, 14vw, 220px);
  pointer-events: none;
  background: linear-gradient(to right, var(--bg), rgba(244, 233, 213, 0.70), transparent 95%);
  z-index: 2;
}
@media (min-width: 1024px) {
  .hero-photo-wrap {
    max-width: none;
    margin: 0;
  }
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroCrossfade 20s infinite;
  filter: sepia(0.15) saturate(1.08);
}
/* Stagger 4 photos at 5s intervals over a 20s loop */
.hero-photo:nth-child(1) { animation-delay: -1s; }
.hero-photo:nth-child(2) { animation-delay:  4s; }
.hero-photo:nth-child(3) { animation-delay:  9s; }
.hero-photo:nth-child(4) { animation-delay: 14s; }
.hero-photo-wrap:hover .hero-photo { animation-play-state: paused; }

@keyframes heroCrossfade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  30%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Tiny dot indicators below the photo (decorative) */
.hero-photo-dots {
  position: absolute;
  bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.hero-photo-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cream); opacity: 0.55;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ═══ TRUST STRIP ═══════════════════════════════════════ */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 243, 223, 0.5);
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Fraunces', serif; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink);
}
.trust-item .material-symbols-outlined { color: var(--clay); font-size: 18px; }

/* ═══ SECTION EYEBROWS / TITLES ═════════════════════════ */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--clay);
}
.section-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--clay); }
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--ink); margin: 0;
}
.section-title em { font-style: italic; color: var(--clay); font-weight: 400; }

/* ═══ FILTER PILLS ═══ */
.filter-btn {
  height: 36px; padding: 0 18px;
  font-family: 'Fraunces', serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  border: 1.5px solid var(--line-2);
  background: transparent; color: var(--ink-m);
  cursor: pointer; border-radius: 999px;
  transition: all 0.25s;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ═══ PRODUCT CARD ═══ */
.product-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s, border-color 0.3s;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute; top: 8px; right: 8px;
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--clay); opacity: 0.5;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -20px rgba(42, 24, 16, 0.25);
  border-color: var(--ink-m);
}
.product-card .card-img-wrap {
  aspect-ratio: 1; overflow: hidden;
  border-radius: 4px;
  background: var(--bg-2);
  margin-bottom: 12px;
  position: relative;
  border: 1px solid var(--line);
}


.product-card .card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card:hover .card-img-wrap img { transform: scale(1.08); }


.product-card h3 {
  font-size: 1.05rem;
}

.product-card p {
  font-size: 0.8rem;
}

.product-card .font-display.text-sm {
  font-size: 1.1rem;
}

.card-compare-price {
  font-size: 0.85rem;
}



.card-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--clay); color: var(--cream);
  padding: 3px 9px;
  font-family: 'Fraunces', serif; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  border-radius: 999px;
}
.card-compare-price { text-decoration: line-through; color: var(--ink-soft); font-size: 12px; margin-right: 6px; }




/* ═══ DIAGONAL CORNER RIBBON (top-left) ═══ */
/* ═══ DIAGONAL CORNER RIBBON (top-left, sits on card) ═══ */
.corner-ribbon {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 88px;
  height: 88px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}
.corner-ribbon span {
  position: absolute;
  display: block;
  width: 130px;
  padding: 5px 0;
  background: var(--clay);
  background-image: linear-gradient(135deg, var(--clay) 0%, var(--clay-deep) 100%);
  color: var(--cream);
  font-family: 'Fraunces', serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  transform: rotate(-45deg);
  top: 20px;
  left: -34px;
  box-shadow: 0 4px 10px -2px rgba(42, 24, 16, 0.4);
  border-top: 1px solid rgba(251, 243, 223, 0.25);
  border-bottom: 1px solid rgba(140, 51, 24, 0.6);
}
.corner-ribbon::before,
.corner-ribbon::after {
  content: '';
  position: absolute;
  border-style: solid;
  border-color: var(--clay-deep) transparent transparent transparent;
  z-index: -1;
}
.corner-ribbon::before { top: 0; left: 0;  border-width: 6px 0 0 6px; }
.corner-ribbon::after  { top: 0; right: 0; border-width: 6px 6px 0 0; }

/* Mobile — noticeably smaller so it doesn't eat the product image */
@media (max-width: 768px) {
  .corner-ribbon {
    width: 68px;
    height: 68px;
  }
  .corner-ribbon span {
    width: 100px;
    font-size: 8px;
    padding: 3px 0;
    top: 14px;
    left: -28px;
    letter-spacing: 0.08em;
  }
}

/* Carousel cards use the same default size on desktop, smaller on mobile */
.carousel-card { position: relative; }

/* IMPORTANT: cards must allow ribbon to overflow their image box */
.product-card { overflow: visible; }









/* Make sure carousel card image area can host the ribbon */





/* ATC */
.atc-btn {
  width: 100%; height: 40px; margin-top: 10px;
  background: var(--ink); color: var(--cream);
  font-family: 'Fraunces', serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1.5px solid var(--ink); border-radius: 999px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.atc-btn:hover { background: var(--clay); border-color: var(--clay); color: var(--cream); transform: translateY(-1px); }
.atc-btn.added { background: var(--sage); border-color: var(--sage); color: var(--cream); pointer-events: none; }

/* ═══ BESTSELLER CAROUSEL — contained ═══ */
.product-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  touch-action: pan-y;
  cursor: grab;
}
.product-carousel.dragging {
  cursor: grabbing;
  user-select: none;
}
.carousel-track {
  display: flex; gap: 20px;
  width: max-content;
  padding: 6px 8px;
  will-change: transform;
}
.carousel-card {
  flex-shrink: 0; width: 190px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s, border-color 0.3s;
}
@media (max-width: 768px) {
  .carousel-card {
    width: 170px;
    padding: 7px;
  }
}
.carousel-card:hover { transform: translateY(-6px); box-shadow: 0 20px 36px -18px rgba(42,24,16,0.28); border-color: var(--ink-m); }
.carousel-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.carousel-card h3 { font-family: 'Fraunces', serif; font-size: 14px; font-weight: 700; text-transform: uppercase; margin-top: 10px; line-height: 1.15; }
.carousel-card p { font-family: 'Newsreader', serif; font-size: 12px; color: var(--ink-m); font-style: italic; margin-top: 2px; }
.carousel-card .carousel-price { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 700; margin-top: 6px; color: var(--ink); }
.carousel-card .carousel-atc {
  width: 100%; height: 34px; margin-top: 8px;
  background: transparent; color: var(--ink);
  font-family: 'Fraunces', serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1.5px solid var(--ink); border-radius: 999px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s;
}
.carousel-card .carousel-atc:hover { background: var(--clay); color: var(--cream); border-color: var(--clay); }

/* ═══ INGREDIENTS ENDLESS MARQUEE ═══ */
.ingredients-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.ingredients-track {
  display: flex; gap: 18px;
  width: max-content;
  animation: ingredientScroll 28s linear infinite;
  padding: 4px 0;
}
.ingredients-track:hover { animation-play-state: paused; }
@keyframes ingredientScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ingredient-card {
  flex-shrink: 0;
  width: 120px; height: 120px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 12px;
  transition: transform 0.4s, border-color 0.3s, box-shadow 0.3s;
}
.ingredient-card:hover { transform: translateY(-4px) scale(1.04); border-color: var(--clay); box-shadow: 0 12px 24px -12px rgba(188,74,44,0.4); }
.ingredient-card .ing-emoji { font-size: 28px; }
.ingredient-card .ing-label { font-family: 'Fraunces', serif; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; color: var(--ink); }

/* ═══ STORY CAROUSEL ═══ */
.story-carousel { position: relative; overflow: hidden; }
.story-slide { display: none; gap: 40px; align-items: center; }
.story-slide.active { display: grid; grid-template-columns: 1fr 1.1fr; }
@media (max-width: 768px) { .story-slide.active { grid-template-columns: 1fr; } }
.story-img-wrap {
  width: 100%; max-width: 420px; aspect-ratio: 4/5;
  overflow: hidden; border-radius: 6px;
  border: 1px solid var(--ink);
  box-shadow: 14px 14px 0 var(--clay);
  margin: 0 auto;
}
.story-img { width: 100%; height: 100%; object-fit: cover; }
.story-content { padding: 16px 0; }
.story-content h3 { font-family: 'Fraunces', serif; font-weight: 400; font-style: italic; }
.story-dot { width: 32px; height: 4px; border-radius: 4px; background: var(--line-2); border: none; cursor: pointer; transition: all 0.4s; }
.story-dot.active { background: var(--clay); width: 50px; }

/* ═══ TEAM ═══ */
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.team-photo {
  width: 90px; height: 90px; border-radius: 50%;
  border: 1.5px solid var(--ink); object-fit: cover;
  filter: sepia(0.25) saturate(1.05);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 4px; background: var(--cream);
}
.team-card:hover .team-photo { filter: sepia(0.05) saturate(1.1); transform: translateY(-3px); box-shadow: 0 14px 24px -12px rgba(188,74,44,0.5); border-color: var(--clay); }

/* ═══ REVIEWS MARQUEE ═══ */
.review-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.review-track {
  display: flex; gap: 18px;
  width: max-content;
  animation: reviewScroll 70s linear infinite;
  padding: 6px 0;
}
.review-track:hover { animation-play-state: paused; }
.review-pill {
  flex-shrink: 0; width: 300px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
  position: relative;
  transition: all 0.3s;
}
.review-pill::before {
  content: '“';
  position: absolute; top: -12px; left: 16px;
  font-family: 'Newsreader', serif;
  font-size: 60px; color: var(--clay); line-height: 1;
}
.review-pill:hover { transform: translateY(-3px); border-color: var(--clay); box-shadow: 0 16px 30px -16px rgba(188,74,44,0.3); }
.review-stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; margin-bottom: 6px; }
.review-pill p { font-family: 'Newsreader', serif; font-size: 13px; line-height: 1.55; font-style: italic; color: var(--ink); }
.review-author { font-family: 'Fraunces', serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--clay); display: block; margin-top: 10px; }
@keyframes reviewScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══ CART SIDEBAR ═══ */
#cart-sidebar {
  position: fixed; top: 0; right: 0;
  width: 400px; max-width: 100vw; height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--ink);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px -20px rgba(42, 24, 16, 0.4);
}
#cart-sidebar.open { transform: translateX(0); }
#cart-backdrop {
  position: fixed; inset: 0; background: rgba(42, 24, 16, 0.5);
  z-index: 1099; opacity: 0; pointer-events: none;
  transition: opacity 0.4s; backdrop-filter: blur(4px);
}
#cart-backdrop.open { opacity: 1; pointer-events: all; }
.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; background: var(--cream);
}
.cart-body { flex: 1; overflow-y: auto; padding: 14px 24px; }
.cart-body::-webkit-scrollbar { width: 4px; }
.cart-body::-webkit-scrollbar-thumb { background: var(--clay); border-radius: 4px; }
.cart-footer { padding: 16px 24px 22px; border-top: 1px solid var(--line); flex-shrink: 0; background: var(--cream); }
.cart-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.cart-item-img { width: 60px; height: 60px; flex-shrink: 0; border-radius: 4px; border: 1px solid var(--line); object-fit: cover; }

.qty-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--ink); background: transparent;
  font-family: 'Fraunces', serif; font-size: 14px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qty-btn:first-of-type { border-radius: 999px 0 0 999px; }
.qty-btn:nth-of-type(2) { border-radius: 0 999px 999px 0; border-left: none; }
.qty-btn:hover { background: var(--ink); color: var(--cream); }
.cart-qty-display {
  width: 28px; height: 26px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 12px; font-weight: 700;
}
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--clay);
  border: 2px solid var(--bg);
  border-radius: 9999px;
  font-family: 'Fraunces', serif; font-size: 9px; font-weight: 800;
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-badge.visible { transform: scale(1); }
.empty-cart { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 12px; padding: 30px 16px; text-align: center; color: var(--ink-m); }


/* ═══ PRODUCT MODAL ═══ */
#product-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
  #product-modal { padding: 12px; align-items: flex-start; }
}



#product-modal.open { opacity: 1; pointer-events: all; }
#product-modal-backdrop { position: absolute; inset: 0; background: rgba(42, 24, 16, 0.55); backdrop-filter: blur(4px); }
#product-modal-box {
  position: relative; z-index: 1; width: 100%; max-width: 820px;
  max-height: calc(100dvh - 24px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--bg);
  border: 1px solid var(--ink); border-radius: 8px;
  box-shadow: 0 40px 80px -20px rgba(42, 24, 16, 0.6), 16px 16px 0 var(--clay);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}





#product-modal.open #product-modal-box { transform: translateY(0) scale(1); }
.modal-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; }
@media (max-width: 640px) { .modal-inner { grid-template-columns: 1fr; } }

/* ═══ CHECKOUT MODAL ═══ */
#checkout-modal {
  position: fixed; inset: 0; z-index: 1300;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
#checkout-modal.open { opacity: 1; pointer-events: all; }
#checkout-backdrop { position: absolute; inset: 0; background: rgba(42, 24, 16, 0.7); backdrop-filter: blur(6px); }
#checkout-box {
  position: relative; z-index: 1; width: 100%; max-width: 880px;
  max-height: 94vh; overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--ink); border-radius: 8px;
  box-shadow: 0 40px 80px -20px rgba(42, 24, 16, 0.6), 16px 16px 0 var(--clay);
  transform: translateY(28px) scale(0.96);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#checkout-modal.open #checkout-box { transform: translateY(0) scale(1); }
.checkout-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: 480px; }
@media (max-width: 700px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-summary { background: var(--cream); border-right: 1px solid var(--line); padding: 28px 24px; display: flex; flex-direction: column; }
.checkout-form-panel { padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }

/* Form fields */
.field-wrap { display: flex; flex-direction: column; gap: 4px; }
.field-label { font-family: 'Fraunces', serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-m); }
.field-input {
  width: 100%; height: 42px; padding: 0 14px;
  background: var(--cream);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: 'Lora', serif; font-size: 14px; color: var(--ink);
  outline: none; transition: all 0.2s;
}
.field-input:focus { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(188, 74, 44, 0.15); }
.field-input.error { border-color: #c0392b; }
.field-input::placeholder { color: var(--ink-soft); font-style: italic; }
textarea.field-input { height: 70px; padding: 10px 14px; resize: none; }
.field-error { font-family: 'Newsreader', serif; font-size: 11px; color: #c0392b; font-style: italic; display: none; }
.field-error.show { display: block; }

/* Toast */
.toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(60px);
  z-index: 2000;
  background: var(--ink); color: var(--cream);
  font-family: 'Fraunces', serif; font-size: 13px; font-weight: 600;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid var(--gold);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0; white-space: nowrap; pointer-events: none;
  box-shadow: 0 16px 40px -10px rgba(42, 24, 16, 0.5);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* WhatsApp button */
.whatsapp-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.5);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.whatsapp-btn:hover { transform: scale(1.08) rotate(-4deg); box-shadow: 0 18px 36px -8px rgba(37, 211, 102, 0.6); }
@media (max-width: 768px) { .whatsapp-btn { bottom: 10px; right: 16px; width: 52px; height: 52px; } .whatsapp-btn svg { width: 24px; height: 24px; } }


/* ═══ INSTAGRAM FLOATING BUTTON ═══ */
.instagram-btn {
  position: fixed;
  bottom: 94px; /* sits above whatsapp (24 + 58 + 12 gap) */
  right: 24px;
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(220, 39, 67, 0.5);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.instagram-btn:hover {
  transform: scale(1.08) rotate(4deg);
  box-shadow: 0 18px 36px -8px rgba(220, 39, 67, 0.6);
}
@media (max-width: 768px) {
  .instagram-btn {
    bottom: 74px; /* above whatsapp on mobile (80 + 52 + 12) */
    right: 16px;
    width: 52px;
    height: 52px;
  }
  .instagram-btn svg { width: 22px; height: 22px; }
}

/* Footer ornament */
.footer-divider { height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }




/* ═══════════════════════════════════════════════════════════════
   AUTH — Login Modal & User Menu (Step 3.2)
═══════════════════════════════════════════════════════════════ */

/* ── Generic modal backdrop ── */
#login-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

#login-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.login-modal-box {
  background: var(--bg-light, #f5efe6);
  border: 2px solid var(--tx, #2b1d14);
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 1; 
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

#login-modal.open .login-modal-box {
  transform: translateY(0);
}

/* ── Auth tabs ── */
.auth-tab {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.875rem 0.5rem;
  color: var(--tx-m, #6b5a4a);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.auth-tab:hover {
  color: var(--tx, #2b1d14);
}

.auth-tab.active {
  color: var(--tx, #2b1d14);
  border-bottom-color: var(--tx, #2b1d14);
}

/* ── Auth form fields ── */
.auth-field-label {
  display: block;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--tx, #2b1d14);
  margin-bottom: 0.375rem;
}

.auth-field {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1.5px solid var(--tx, #2b1d14);
  background: white;
  font-family: var(--font-body, 'Lora', serif);
  font-size: 0.875rem;
  color: var(--tx, #2b1d14);
  outline: none;
  transition: border-color 0.15s ease;
}

.auth-field:focus {
  border-color: var(--accent, #9d7b3a);
  border-width: 2px;
}

.auth-field::placeholder {
  color: var(--tx-m, #6b5a4a);
  opacity: 0.6;
}

/* ── User menu dropdown ── */
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: var(--bg-light, #f5efe6);
  border: 2px solid var(--tx, #2b1d14);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 50;
}

.user-menu-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tx, #2b1d14);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(43, 29, 20, 0.1);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.user-menu-item:last-child {
  border-bottom: none;
}

.user-menu-item:hover {
  background: rgba(43, 29, 20, 0.08);
}

/* ── Mobile tweaks ── */
@media (max-width: 640px) {
  .login-modal-box {
    max-height: 95vh;
  }
}


/* ── Password visibility toggle ── */
.auth-password-wrapper {
  position: relative;
}

.auth-password-wrapper .auth-field {
  padding-right: 2.75rem; /* room for the icon */
}

.auth-password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0.375rem;
  color: var(--tx-m, #6b5a4a);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.auth-password-toggle:hover {
  color: var(--tx, #2b1d14);
}

.auth-password-toggle .material-symbols-outlined {
  font-size: 1.125rem;
}




/* ═══════════════════════════════════════════════════════════════
   ACCOUNT PAGES (Step 3.4)
═══════════════════════════════════════════════════════════════ */

.order-card {
  display: block;
  padding: 1.25rem;
  background: var(--bg-light, #f5efe6);
  border: 2px solid var(--tx, #2b1d14);
  text-decoration: none;
  color: var(--tx, #2b1d14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.order-section {
  background: rgba(255, 255, 255, 0.4);
  border: 1.5px solid var(--tx, #2b1d14);
  padding: 1.25rem;
}

.account-section-title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--tx-m, #6b5a4a);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(43, 29, 20, 0.15);
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.badge-success  { color: #166534; background: rgba(34, 197, 94, 0.1); }
.badge-pending  { color: #854d0e; background: rgba(234, 179, 8, 0.1); }
.badge-info     { color: #1e3a8a; background: rgba(59, 130, 246, 0.1); }
.badge-danger   { color: #991b1b; background: rgba(239, 68, 68, 0.1); }
.badge-neutral  { color: #44403c; background: rgba(120, 113, 108, 0.1); }

/* Spinner (used on loading states) */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(43, 29, 20, 0.15);
  border-top-color: var(--tx, #2b1d14);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════════════════════════
   OUT OF STOCK (Step 6)
═══════════════════════════════════════════════════════════════ */
.sold-out-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: white;
  z-index: 2;
}

.sold-out-btn {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}



/* ═══════════════════════════════════════════════════════════════
   QTY STEPPER ON PRODUCT CARDS (Step 7)
═══════════════════════════════════════════════════════════════ */
.atc-stepper {
  display: flex;
  align-items: stretch;
  height: 2.5rem;
  border: 2px solid var(--tx, #2b1d14);
  background: var(--bg-light, #f5efe6);
  overflow: hidden;
  user-select: none;
}

.atc-stepper-btn {
  flex: 0 0 auto;
  width: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tx, #2b1d14);
  transition: background 0.15s ease;
}

.atc-stepper-btn:hover {
  background: rgba(43, 29, 20, 0.08);
}

.atc-stepper-btn:active {
  background: rgba(43, 29, 20, 0.15);
}

.atc-stepper-qty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 0.95rem;
  font-weight: 700;
  border-left: 1.5px solid var(--tx, #2b1d14);
  border-right: 1.5px solid var(--tx, #2b1d14);
  background: white;
}

/* ── Smaller variant for the carousel cards ── */
.carousel-atc-stepper {
  display: flex;
  align-items: stretch;
  height: 1.875rem;
  border: 1.5px solid var(--tx, #2b1d14);
  background: var(--bg-light, #f5efe6);
  overflow: hidden;
  user-select: none;
  margin-top: 0.25rem;
}

.atc-stepper-btn-sm {
  flex: 0 0 auto;
  width: 1.875rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--tx, #2b1d14);
}

.atc-stepper-btn-sm:hover {
  background: rgba(43, 29, 20, 0.08);
}

.atc-stepper-qty-sm {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 0.8rem;
  font-weight: 700;
  border-left: 1px solid var(--tx, #2b1d14);
  border-right: 1px solid var(--tx, #2b1d14);
  background: white;
  min-width: 1.5rem;
}