/* ============================================
   Bent Najran  ·  بنت نجران
   White heritage theme. Coffee, spice, bukhoor.
   ============================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tokens ---------- */
:root {
  /* canvas */
  --bg:           #FAF7F2;
  --bg-card:      #FFFFFF;
  --bg-elev:     #FFFCF6;
  --bg-line:      #E8DFD3;

  /* text */
  --text:         #2A1F17;
  --text-body:    #4A3A2E;
  --text-dim:     #8A7B6E;

  /* brand */
  --coffee:       #5B3A1A;   /* matches logo brown */
  --coffee-deep:  #3E2611;
  --caramel:      #C68A4E;
  --gold-soft:    #D4B47C;

  /* section accents */
  --spice:        #8B2E1F;
  --spice-warm:   #C44D2B;
  --bukhoor:      #5C4A6B;
  --bukhoor-mist: #8E7FA4;

  /* utility */
  --accent:       var(--coffee);
  --shadow-sm:    0 1px 2px rgba(60, 36, 18, 0.06), 0 1px 3px rgba(60, 36, 18, 0.04);
  --shadow-md:    0 4px 14px rgba(60, 36, 18, 0.08), 0 2px 6px rgba(60, 36, 18, 0.05);
  --shadow-lg:    0 18px 48px rgba(60, 36, 18, 0.10), 0 8px 16px rgba(60, 36, 18, 0.06);
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    24px;
  --radius-pill:  999px;

  --ease:         cubic-bezier(.2, .8, .2, 1);
  --ease-out:     cubic-bezier(.16, 1, .3, 1);
  --dur:          .35s;

  --container:    1200px;
  --pad-x:        clamp(20px, 4vw, 48px);

  --font-display: "Reem Kufi Fun", "Tajawal", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  /* Keep light theme always. Brand demands warm white. */
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 16px);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
/* prevent any descendant from creating horizontal scroll on tiny screens */
body > * { max-width: 100vw; }

/* When Lenis smooth-scroll is active */
html.lenis { height: auto; }
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  background: var(--coffee);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.dot { display: inline-block; margin-inline: .5em; color: var(--caramel); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: grid; place-items: center; gap: 32px; }
.preloader-icon {
  width: 120px; height: 120px;
  animation: gentle-pulse 2.4s var(--ease-out) infinite;
}
@keyframes gentle-pulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%      { transform: scale(1.06); opacity: 1; }
}
.preloader-bar {
  width: 200px; height: 2px;
  background: var(--bg-line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.preloader-fill {
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--coffee), transparent);
  animation: preloader-slide 1.4s var(--ease) infinite;
}
@keyframes preloader-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* ---------- Scroll progress (sticky strip) ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(232, 223, 211, 0.5);
  z-index: 200;
  pointer-events: none;
}
.scroll-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--coffee), var(--caramel), var(--spice), var(--bukhoor));
  transition: width .12s linear;
}
.scroll-progress-stops {
  position: absolute; top: 8px; left: 0; right: 0;
  display: flex; justify-content: space-around;
  font-family: var(--font-display);
  font-size: 11px; color: var(--text-dim);
  letter-spacing: .04em;
  opacity: 0; transition: opacity .3s;
}
.scroll-progress.show-stops .scroll-progress-stops { opacity: 1; }
.scroll-progress-stops .stop { transition: color .3s, font-weight .3s; }
.scroll-progress-stops .stop.active { color: var(--coffee); font-weight: 700; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 18px;
  transition: backdrop-filter .3s, background .3s, padding .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
  padding-block: 12px;
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--coffee);
}
.logo-icon { width: 40px; height: 40px; }
.logo-word { font-size: 22px; letter-spacing: -.01em; }

.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(91, 58, 26, 0.08); color: var(--coffee); }
.nav-links a.active { background: var(--coffee); color: #fff; }

.cart-toggle {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  color: var(--coffee);
  transition: transform .2s, box-shadow .2s;
}
.cart-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cart-count {
  position: absolute; top: -4px; inset-inline-start: -4px;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--spice);
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  transform: scale(0); transition: transform .25s var(--ease);
}
.cart-count.has-items { transform: scale(1); }

.menu-toggle { display: none; width: 40px; height: 40px; }
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--coffee); margin: 5px auto;
  transition: transform .3s, opacity .3s;
  border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(80vw, 320px);
    flex-direction: column; align-items: stretch;
    background: var(--bg-card);
    padding: 100px 28px 40px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 18px; font-size: 17px; text-align: start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coffee);
  color: #fff;
  box-shadow: 0 6px 18px rgba(91, 58, 26, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(91, 58, 26, 0.34); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--coffee);
  box-shadow: inset 0 0 0 1.5px var(--bg-line);
}
.btn-ghost:hover { background: var(--bg-card); box-shadow: inset 0 0 0 1.5px var(--coffee), var(--shadow-sm); }
.btn-lg { padding: 18px 36px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding-block: 140px 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(212, 180, 124, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(198, 138, 78, 0.10), transparent 70%),
    var(--bg);
}
.hero-decor {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.bean {
  position: absolute;
  width: clamp(60px, 9vw, 120px);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(91, 58, 26, 0.18));
  will-change: transform;
}
.bean-1 { top: 12%;  left: 6%;   width: clamp(80px, 11vw, 140px); transform: rotate(-22deg); }
.bean-2 { top: 18%;  right: 8%;  width: clamp(70px, 10vw, 130px); transform: rotate(18deg); }
.bean-3 { bottom: 16%; left: 14%; width: clamp(90px, 12vw, 160px); transform: rotate(34deg); }
.bean-4 { bottom: 20%; right: 10%; width: clamp(60px, 8vw, 100px); transform: rotate(-12deg); }
.bean-5 { top: 56%;  left: 4%;  width: clamp(50px, 7vw, 90px);   transform: rotate(8deg); opacity: .55; }

/* hero mix: spices + bukhoor sprinkled with the beans */
.hero-mix { opacity: 1; }
.mix-1 { top: 7%;   right: 24%; width: clamp(60px, 7vw, 110px);  transform: rotate(20deg); }   /* cardamom */
.mix-2 { bottom: 7%; left: 30%;  width: clamp(68px, 8vw, 120px); transform: rotate(-18deg); }  /* chili */
.mix-3 { top: 28%;  left: 20%;  width: clamp(58px, 6.5vw, 100px); transform: rotate(12deg); }  /* saffron */
.mix-4 { top: 42%;  right: 6%;  width: clamp(60px, 7vw, 110px);   transform: rotate(-14deg); } /* anise */
.mix-5 { top: 5%;   left: 28%;  width: clamp(62px, 7vw, 115px);   transform: rotate(8deg); }   /* mistika */
.mix-6 { bottom: 9%; right: 28%; width: clamp(56px, 6.5vw, 100px); transform: rotate(-22deg); }/* oud */
.mix-7 { top: 60%;  right: 20%; width: clamp(54px, 6vw, 95px);    transform: rotate(16deg); } /* turmeric */

.hero-inner {
  position: relative; z-index: 1;
  text-align: center;
  display: grid; gap: 28px; justify-items: center;
}
.hero-overline {
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: .25em;
  color: var(--caramel);
  text-transform: uppercase;
}
.hero-wordmark {
  font-family: var(--font-display);   /* Reem Kufi Fun, same as section titles */
  font-weight: 700;
  font-size: clamp(56px, 13vw, 150px);
  line-height: 1.05;
  color: var(--coffee);
  letter-spacing: -.015em;
  margin-block: 8px 6px;
  text-shadow: 0 6px 22px rgba(91, 58, 26, 0.16), 0 2px 5px rgba(91, 58, 26, 0.08);
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 500;
  color: var(--text);
  max-width: 36ch;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-scroll-cue {
  margin-top: 24px;
  display: grid; place-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: .2em;
  color: var(--text-dim);
  animation: bob 2.4s var(--ease-out) infinite;
}
.cue-arrow {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--text-dim), transparent);
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ---------- Section base ---------- */
.scene, .story, .megabox, .contact {
  position: relative;
  padding-block: clamp(80px, 12vh, 140px);
  isolation: isolate;
}
.section-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(91, 58, 26, 0.06);
  color: var(--coffee);
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.6vw, 56px);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.title-accent { color: var(--coffee); position: relative; }
.title-accent::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 6px;
  background: rgba(212, 180, 124, 0.45);
  border-radius: var(--radius-pill);
  z-index: -1;
}
.section-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-body);
  max-width: 56ch;
  margin-bottom: 48px;
}
.scene-header { text-align: center; max-width: 760px; margin-inline: auto; margin-bottom: 56px; }
.scene-header .section-sub { margin-inline: auto; }

.scene-decor {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.scene-decor .float {
  position: absolute;
  width: clamp(64px, 8vw, 120px);
  filter: drop-shadow(0 10px 22px rgba(60, 36, 18, 0.22)) drop-shadow(0 2px 4px rgba(60, 36, 18, 0.14));
  will-change: transform, opacity;
  opacity: 1;
  transform-origin: 50% 50%;
}
/* desktop positions, distributed around the section */
.scene-decor .float-1 { top: 5%;   right: 3%;   width: clamp(80px, 9vw, 140px); }
.scene-decor .float-2 { top: 22%;  left: 3%;    width: clamp(70px, 8vw, 120px); }
.scene-decor .float-3 { bottom: 18%; right: 6%; width: clamp(90px, 10vw, 150px); }
.scene-decor .float-4 { bottom: 4%; left: 7%;   width: clamp(70px, 8vw, 120px); }
.scene-decor .float-5 { top: 12%;  left: 26%;   width: clamp(58px, 6.5vw, 100px); opacity: .9; }
.scene-decor .float-6 { top: 48%;  right: 22%;  width: clamp(64px, 7vw, 110px);   opacity: .9; }
.scene-decor .float-7 { bottom: 28%; left: 32%; width: clamp(56px, 6vw, 95px);    opacity: .9; }
.scene-decor .float-8 { top: 38%;  left: 13%;   width: clamp(52px, 5.5vw, 90px);  opacity: .85; }
.scene-decor svg.smoke {
  width: clamp(80px, 10vw, 150px);
  height: auto;
  color: var(--bukhoor);
  opacity: .85;
  filter: drop-shadow(0 0 12px rgba(92, 74, 107, 0.35));
}
/* smoke positioned to rise out of nearby bukhoor pieces */
.scene-bukhoor .float-5 { top: -4%;   right: 10%;  }
.scene-bukhoor .float-6 { top: 16%;   left: 12%;   }
.scene-bukhoor .float-7 { bottom: 22%; right: 14%; }

/* Scene tints */
.scene-coffee::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(91, 58, 26, 0.05), transparent 50%),
    var(--bg);
}
.scene-spices::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(196, 77, 43, 0.06), transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(212, 180, 124, 0.10), transparent 55%),
    var(--bg-elev);
}
.scene-bukhoor::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(92, 74, 107, 0.07), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(142, 127, 164, 0.08), transparent 55%),
    var(--bg);
}

/* ---------- Story cards ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.story-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s;
  position: relative;
  overflow: hidden;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.story-card::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--coffee), var(--caramel));
}
.story-num {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 16px;
  line-height: 1;
}
.story-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.story-card p { color: var(--text-body); font-size: 15px; line-height: 1.75; }

/* ---------- Product grid ---------- */
.product-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s;
  display: flex; flex-direction: column;
  position: relative;
  will-change: transform;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #f6efe5, #ede2cf);
}
.product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.product-card:hover .product-image img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 14px; inset-inline-start: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  color: var(--coffee);
  letter-spacing: .08em;
}
.product-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--text);
}
.product-desc { color: var(--text-body); font-size: 14px; line-height: 1.65; flex: 1; }
.size-picker {
  display: flex; gap: 6px;
  margin-top: 12px;
  direction: rtl;
}
.size-chip {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 6px;
  border: 1px solid var(--bg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--text-dim);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  white-space: nowrap;
  text-align: center;
  letter-spacing: 0;
}
.size-chip:hover { border-color: var(--coffee); color: var(--coffee); }
.size-chip.active {
  background: var(--coffee);
  border-color: var(--coffee);
  color: #fff;
  font-weight: 700;
}
.scene-spices .size-chip:hover { border-color: var(--spice); color: var(--spice); }
.scene-spices .size-chip.active { background: var(--spice); border-color: var(--spice); color: #fff; }
.scene-bukhoor .size-chip:hover { border-color: var(--bukhoor); color: var(--bukhoor); }
.scene-bukhoor .size-chip.active { background: var(--bukhoor); border-color: var(--bukhoor); color: #fff; }

.product-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-line);
}
.product-price {
  font-family: var(--font-display);
  font-weight: 700;
}
.product-price .num { font-size: 22px; color: var(--coffee); }
.product-price .currency { font-size: 13px; color: var(--text-dim); margin-inline-start: 4px; }
.product-size { font-size: 13px; color: var(--text-dim); }
.product-add {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--coffee);
  color: #fff;
  display: grid; place-items: center;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.product-add:hover { background: var(--coffee-deep); transform: rotate(90deg); }

/* Section-specific accents on products */
.scene-spices .product-add { background: var(--spice); }
.scene-spices .product-add:hover { background: var(--spice-warm); }
.scene-spices .product-price .num { color: var(--spice); }
.scene-spices .product-badge { color: var(--spice); }

.scene-bukhoor .product-add { background: var(--bukhoor); }
.scene-bukhoor .product-add:hover { background: var(--bukhoor-mist); }
.scene-bukhoor .product-price .num { color: var(--bukhoor); }
.scene-bukhoor .product-badge { color: var(--bukhoor); }

/* ---------- Category bundle CTA card ---------- */
.bundle {
  margin-top: 36px;
  background: #fff;
  border: 1px solid var(--bg-line);
  border-radius: 22px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(35, 22, 12, 0.06);
  --bundle-accent: var(--coffee);
}
.bundle-coffee { --bundle-accent: var(--coffee); }
.bundle-spice  { --bundle-accent: var(--spice); }
.bundle-bukhoor{ --bundle-accent: var(--bukhoor); }
.bundle::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 6px; height: 100%;
  background: var(--bundle-accent);
  opacity: 0.85;
}

.bundle-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 6px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f6efe5, #ede2cf);
  padding: 10px;
}
.bundle-thumbs img {
  width: 72px;
  height: 90px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .bundle-thumbs img { width: 62px; height: 78px; }
}

.bundle-info { direction: rtl; }
.bundle-tag {
  display: inline-block;
  background: var(--bundle-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.bundle-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.bundle-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 16px;
}

.bundle-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  font-family: var(--font-display);
}
.bundle-price-orig {
  text-decoration: line-through;
  color: var(--text-dim);
  font-size: 18px;
  font-weight: 500;
}
.bundle-price-num {
  font-size: 38px;
  font-weight: 700;
  color: var(--bundle-accent);
  line-height: 1;
}
.bundle-price-cur { font-size: 16px; color: var(--text-dim); }
.bundle-save {
  background: rgba(45, 106, 79, 0.12);
  color: #2D6A4F;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-inline-start: auto;
}

.bundle-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bundle-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}
.bundle-add:hover { transform: translateY(-2px); filter: brightness(1.05); }

@media (max-width: 720px) {
  .bundle { grid-template-columns: 1fr; padding: 20px; gap: 18px; margin-top: 28px; }
  .bundle::before { width: 100%; height: 5px; bottom: auto; top: 0; }
  .bundle-thumbs { padding: 6px; gap: 6px; }
  .bundle-title { font-size: 22px; }
  .bundle-price-num { font-size: 32px; }
}

/* ---------- Side jump nav (desktop) ---------- */
.side-nav {
  position: fixed;
  top: 50%;
  inset-inline-start: 18px;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(35, 22, 12, 0.12);
  pointer-events: auto;
}
.side-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.side-nav-link:hover { background: rgba(91, 58, 26, 0.06); color: var(--coffee); }
.side-nav-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--dot, var(--coffee));
  flex-shrink: 0;
  transition: transform .2s;
}
.side-nav-link.active {
  background: rgba(91, 58, 26, 0.08);
  color: var(--coffee-deep);
}
.side-nav-link.active .side-nav-dot { transform: scale(1.4); box-shadow: 0 0 0 4px rgba(255,255,255,0.85); }

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

body.pdp-open .side-nav { display: none; }

/* ---------- Megabox ---------- */
.megabox-card {
  background: linear-gradient(135deg, var(--coffee) 0%, var(--coffee-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 56px);
  text-align: center;
  display: grid; gap: 18px; justify-items: center;
  box-shadow: 0 30px 80px rgba(91, 58, 26, 0.28);
  position: relative; overflow: hidden;
}
.megabox-card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(212, 180, 124, 0.4), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(198, 138, 78, 0.25), transparent 55%);
  pointer-events: none;
}
.megabox-tag {
  position: relative;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: .25em;
  text-transform: uppercase;
}
.megabox-title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  margin: 0;
}
.megabox-sub { position: relative; font-size: 17px; opacity: .85; max-width: 40ch; }
.megabox-price {
  position: relative;
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display);
  margin-block: 12px;
}
.megabox-price .price-now { font-size: 64px; font-weight: 700; line-height: 1; color: var(--gold-soft); }
.megabox-price .price-currency { font-size: 22px; color: rgba(255, 255, 255, 0.7); }
.megabox-card .btn-primary {
  position: relative;
  background: var(--gold-soft);
  color: var(--coffee-deep);
}
.megabox-card .btn-primary:hover { background: #fff; color: var(--coffee-deep); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; align-items: center; gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(91, 58, 26, 0.08);
  color: var(--coffee);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 4px;
}
.contact-text span { font-size: 14px; color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer {
  padding-block: 56px 40px;
  background: var(--coffee-deep);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}
.footer-inner { display: grid; gap: 16px; justify-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { filter: brightness(0) invert(1) sepia(.4) hue-rotate(-25deg) saturate(2); }
.footer-word {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--gold-soft);
}
.footer-tagline { font-size: 15px; opacity: .8; }
.footer-meta {
  font-size: 12px; opacity: .6;
  display: flex; gap: 10px;
  flex-wrap: wrap; justify-content: center;
  font-family: var(--font-display);
}

/* ---------- Cart drawer ---------- */
.cart-backdrop {
  position: fixed; inset: 0;
  background: rgba(42, 31, 23, 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
  z-index: 200;
}
.cart-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; bottom: 0;
  inset-inline-start: 0;
  width: min(420px, 90vw);
  background: var(--bg-card);
  z-index: 201;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .4s var(--ease);
  box-shadow: var(--shadow-lg);
}
[dir="rtl"] .cart-drawer { transform: translateX(100%); }
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--bg-line);
}
.cart-header h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); }
.cart-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: background .2s, color .2s;
}
.cart-close:hover { background: var(--bg); color: var(--coffee); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; color: var(--text-dim); padding: 60px 20px; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
}
.cart-item-img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-item-info { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.cart-item-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); }
.cart-item-price { font-size: 13px; color: var(--text-dim); }
.cart-item-qty { display: flex; align-items: center; gap: 6px; }
.cart-item-qty button {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--coffee);
  font-weight: 700;
  display: grid; place-items: center;
  transition: background .2s;
}
.cart-item-qty button:hover { background: var(--bg-line); }
.cart-item-qty span { min-width: 20px; text-align: center; font-weight: 600; }
.cart-item-remove { color: var(--text-dim); font-size: 13px; transition: color .2s; }
.cart-item-remove:hover { color: var(--spice); }
.cart-footer { padding: 22px 28px; border-top: 1px solid var(--bg-line); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-family: var(--font-display); }
.cart-total strong { font-size: 22px; color: var(--coffee); }
.cart-note { display: block; text-align: center; margin-top: 10px; color: var(--text-dim); font-size: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--text);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  transition: transform .35s var(--ease);
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.toast-success { background: #2D6A4F; }
.toast.toast-error   { background: var(--spice); }

/* ---------- Product detail modal (PDP) ---------- */
.pdp-backdrop {
  position: fixed; inset: 0;
  background: rgba(35, 22, 12, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-out);
  z-index: 290;
}
body.pdp-open .navbar,
body.pdp-open .scroll-progress { display: none !important; }
.pdp-backdrop.open { opacity: 1; pointer-events: auto; }

.pdp {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -45%) scale(0.96);
  width: min(1100px, 94vw);
  max-height: 92vh;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(35, 22, 12, 0.35);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out);
}
.pdp.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.pdp-close {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 30;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--coffee-deep);
  color: #fff;
  border: 2px solid #fff;
  display: grid; place-items: center;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  transition: background .18s, transform .18s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}
.pdp-close > * { pointer-events: none; }
.pdp-close:hover, .pdp-close:active { background: var(--coffee); transform: scale(1.05); }

.pdp-close-bar {
  display: none;
  position: sticky;
  bottom: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border: 0;
  border-top: 1px solid var(--bg-line);
  color: var(--coffee-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(91, 58, 26, 0.2);
  z-index: 15;
}
.pdp-close-bar > * { pointer-events: none; }
.pdp-close-bar:active { background: var(--coffee); color: #fff; }

.pdp-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  height: 100%;
  max-height: 92vh;
  overflow: hidden;
}

.pdp-gallery {
  background: linear-gradient(135deg, #faf6ef, #f0e6d4);
  display: flex;
  flex-direction: column;
  padding: 28px;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.pdp-hero {
  position: relative;
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  min-height: 320px;
}
.pdp-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .35s var(--ease-out);
}
.pdp-hero img.swap { opacity: 0; }

.pdp-stage {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(91, 58, 26, 0.92);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: -0.01em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pdp-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  padding: 0;
}
.pdp-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pdp-thumb:hover { transform: translateY(-2px); }
.pdp-thumb.active { border-color: var(--coffee); }
.scene-spices .pdp-thumb.active,
.pdp[data-cat="spice"] .pdp-thumb.active { border-color: var(--spice); }
.pdp[data-cat="incense"] .pdp-thumb.active { border-color: var(--bukhoor); }

.pdp-info {
  padding: 36px 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.pdp-badge {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--coffee);
  letter-spacing: 0.04em;
  text-transform: none;
}
.pdp[data-cat="spice"] .pdp-badge { color: var(--spice); }
.pdp[data-cat="incense"] .pdp-badge { color: var(--bukhoor); }
.pdp[data-cat="spice"] .pdp-stage { background: rgba(139, 46, 31, 0.92); }
.pdp[data-cat="incense"] .pdp-stage { background: rgba(92, 74, 107, 0.92); }

.pdp-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}
.pdp-desc {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.7;
}

.pdp-tip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(135deg, #fbf6ee, #f4ebda);
  border-radius: 14px;
  padding: 14px 18px;
  border-right: 3px solid var(--coffee);
}
.pdp[data-cat="spice"] .pdp-tip { border-right-color: var(--spice); }
.pdp[data-cat="incense"] .pdp-tip { border-right-color: var(--bukhoor); }
.pdp-tip-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--coffee);
  letter-spacing: 0.02em;
}
.pdp[data-cat="spice"] .pdp-tip-label { color: var(--spice); }
.pdp[data-cat="incense"] .pdp-tip-label { color: var(--bukhoor); }
.pdp-tip-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.pdp-sizes {
  display: flex; gap: 10px;
  margin-top: 4px;
}
.pdp-sizes:empty { display: none; }
.pdp-size-chip {
  flex: 1;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 14px;
  border: 1.5px solid var(--bg-line);
  border-radius: 14px;
  background: #fff;
  color: var(--text-dim);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.pdp-size-chip:hover { border-color: var(--coffee); color: var(--coffee); }
.pdp-size-chip.active {
  background: var(--coffee);
  border-color: var(--coffee);
  color: #fff;
  font-weight: 700;
}
.pdp[data-cat="spice"] .pdp-size-chip:hover { border-color: var(--spice); color: var(--spice); }
.pdp[data-cat="spice"] .pdp-size-chip.active { background: var(--spice); border-color: var(--spice); color: #fff; }
.pdp[data-cat="incense"] .pdp-size-chip:hover { border-color: var(--bukhoor); color: var(--bukhoor); }
.pdp[data-cat="incense"] .pdp-size-chip.active { background: var(--bukhoor); border-color: var(--bukhoor); color: #fff; }

.pdp-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--bg-line);
  padding-top: 16px;
  margin-top: 4px;
}
.pdp-price {
  font-family: var(--font-display);
  font-weight: 700;
}
.pdp-price .num { font-size: 36px; color: var(--coffee); }
.pdp[data-cat="spice"] .pdp-price .num { color: var(--spice); }
.pdp[data-cat="incense"] .pdp-price .num { color: var(--bukhoor); }
.pdp-price .currency { font-size: 18px; color: var(--text-dim); margin-inline-start: 6px; }
.pdp-size-label { font-family: var(--font-display); color: var(--text-dim); font-size: 16px; }

.pdp-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--coffee);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 8px 22px rgba(91, 58, 26, 0.22);
}
.pdp-add:hover { background: var(--coffee-deep); transform: translateY(-2px); }
.pdp[data-cat="spice"] .pdp-add { background: var(--spice); box-shadow: 0 8px 22px rgba(139, 46, 31, 0.22); }
.pdp[data-cat="spice"] .pdp-add:hover { background: var(--spice-warm); }
.pdp[data-cat="incense"] .pdp-add { background: var(--bukhoor); box-shadow: 0 8px 22px rgba(92, 74, 107, 0.22); }
.pdp[data-cat="incense"] .pdp-add:hover { background: var(--bukhoor-mist); }

.pdp-promise {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-dim);
  justify-content: center;
}
.pdp-promise .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2D6A4F;
}

@media (max-width: 800px) {
  .pdp {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    transform: translate(-50%, -50%) scale(1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .pdp.open { transform: translate(-50%, -50%) scale(1); }
  .pdp-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; max-height: none; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .pdp-gallery { padding: 70px 18px 14px; }
  .pdp-hero { min-height: 240px; }
  .pdp-info { padding: 22px 22px 28px; }
  .pdp-name { font-size: 26px; }
  .pdp-price .num { font-size: 30px; }
  .pdp-close { top: max(14px, env(safe-area-inset-top)); left: 14px; width: 56px; height: 56px; font-size: 36px; }
  .pdp-close-bar { display: block; flex-shrink: 0; }
}

.product-card { cursor: pointer; }
.product-card .product-add { cursor: pointer; }

/* ---------- Reveal animation hooks ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* CSS-only float bob: runs whenever GSAP isn't ready (mobile fallback). */
@keyframes bn-bob-a { 0%,100% { translate: 0 0; } 50% { translate: 6px -10px; } }
@keyframes bn-bob-b { 0%,100% { translate: 0 0; } 50% { translate: -8px -6px; } }
@keyframes bn-bob-c { 0%,100% { translate: 0 0; } 50% { translate: 5px 8px; } }
@keyframes bn-bob-d { 0%,100% { translate: 0 0; } 50% { translate: -6px 10px; } }

body:not(.gsap-ready) .scene-decor .float:nth-child(4n+1),
body:not(.gsap-ready) .hero-decor .bean:nth-child(4n+1) { animation: bn-bob-a 4.2s ease-in-out infinite; }
body:not(.gsap-ready) .scene-decor .float:nth-child(4n+2),
body:not(.gsap-ready) .hero-decor .bean:nth-child(4n+2) { animation: bn-bob-b 5.1s ease-in-out infinite; }
body:not(.gsap-ready) .scene-decor .float:nth-child(4n+3),
body:not(.gsap-ready) .hero-decor .bean:nth-child(4n+3) { animation: bn-bob-c 4.6s ease-in-out infinite; }
body:not(.gsap-ready) .scene-decor .float:nth-child(4n),
body:not(.gsap-ready) .hero-decor .bean:nth-child(4n)   { animation: bn-bob-d 5.4s ease-in-out infinite; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .bean, .scene-decor .float { transform: none !important; }
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 600px) {
  .hero { min-height: 92svh; padding-block: 110px 60px; }
  .bean { width: clamp(48px, 13vw, 78px) !important; }
  .bean-1 { top: 6%;  left: 4%;  width: 70px !important; }
  .bean-2 { top: 9%;  right: 4%; width: 64px !important; }
  .bean-3 { bottom: 14%; left: 5%; width: 72px !important; }
  .bean-4 { bottom: 18%; right: 5%; width: 58px !important; }
  .bean-5 { top: 55%; left: 3%; opacity: .55; width: 50px !important; }

  /* mobile hero mix positions - spread around but away from text */
  .hero-mix { width: 50px !important; opacity: .85; }
  .mix-1 { top: 4%;   right: 26%; width: 54px !important; }
  .mix-2 { bottom: 4%; left: 30%;  width: 60px !important; }
  .mix-3 { top: 28%;  left: 18%;  width: 44px !important; }
  .mix-4 { top: 42%;  right: 4%;  width: 50px !important; }
  .mix-5 { top: 4%;   left: 28%;  width: 54px !important; opacity: .8; }
  .mix-6 { bottom: 8%; right: 28%; width: 48px !important; opacity: .8; }
  .mix-7 { top: 62%;  right: 18%; width: 46px !important; opacity: .8; }

  .scene-decor .float        { width: 60px !important; opacity: .95; }
  .scene-decor .float-1      { top: 3%;  right: 2%;  width: 78px !important; }
  .scene-decor .float-2      { top: 16%; left: 2%;   width: 66px !important; }
  .scene-decor .float-3      { bottom: 12%; right: 3%; width: 84px !important; }
  .scene-decor .float-4      { bottom: 3%; left: 3%; width: 68px !important; }
  .scene-decor .float-5      { top: 9%;  left: 38%;  width: 54px !important; opacity: .85; }
  .scene-decor .float-6      { top: 50%; right: 30%; width: 60px !important; opacity: .8; }
  .scene-decor .float-7      { bottom: 24%; left: 40%; width: 54px !important; opacity: .8; }
  .scene-decor .float-8      { top: 34%; left: 11%;  width: 52px !important; opacity: .75; }
  .scene-decor svg.smoke     { width: 80px !important; opacity: .85 !important; }
  .scene-bukhoor .float-5    { top: -2%;  right: 8%; }
  .scene-bukhoor .float-6    { top: 14%;  left: 9%;  }
  .scene-bukhoor .float-7    { bottom: 18%; right: 12%; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
  .product-body { padding: 14px 14px 16px; gap: 8px; }
  .product-name { font-size: 16px; }
  .product-desc { font-size: 13px; line-height: 1.6; }
  .product-meta { margin-top: 10px; padding-top: 12px; }
  .product-price .num { font-size: 19px; }
  .product-add { width: 38px; height: 38px; }
  .scene, .story, .megabox, .contact { padding-block: 64px; }
  .scene-header { margin-bottom: 32px; }
  .section-title { font-size: clamp(24px, 7vw, 36px); }
  .section-sub { margin-bottom: 28px; }
  .nav-container { gap: 10px; padding-inline: 16px; }
  .logo-word { font-size: 17px; }
  .logo-icon { width: 34px; height: 34px; }
  .cart-toggle { width: 40px; height: 40px; }
  .footer-meta { font-size: 11px; }

  .hero-overline { font-size: 11px; }
  .hero-tagline { font-size: clamp(15px, 4.2vw, 19px); }
  .hero-ctas { gap: 10px; flex-direction: row; flex-wrap: wrap; justify-content: center; width: 100%; }
  .hero-ctas .btn { padding: 13px 22px; font-size: 14px; flex: 1 1 140px; min-width: 0; }
  .hero-scroll-cue { margin-top: 16px; }

  .megabox-card { padding: 36px 22px; }
  .megabox-price .price-now { font-size: 52px; }
  .contact-card { padding: 22px; gap: 14px; }
  .contact-icon { width: 48px; height: 48px; }

  /* mobile cart drawer */
  .cart-drawer { width: min(94vw, 380px); }
}

/* very small phones */
@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-name { font-size: 15px; }
  .product-desc { display: none; }
  .hero-mix { display: none; } /* keep only the 5 beans on tiny phones */
}
