/* Khajurwala storefront — "from the orchard" edition
   A fixed date-orchard scene sits behind everything; content floats over it on
   liquid-glass panels. Mobile first. */
:root {
  --palm: #1f4a2c;
  --palm-2: #2b6139;
  --palm-deep: #13301e;
  --mahogany: #6b2a14;
  --honey: #e09a2e;
  --honey-2: #f3c062;
  --ink: #15291a;
  --muted: #4c5a49;
  --line: rgb(31 74 44 / .14);
  --danger: #a3261b;

  /* glass */
  --glass-bg: linear-gradient(150deg, rgb(255 255 255 / .62), rgb(255 255 255 / .38));
  --glass-bg-strong: linear-gradient(150deg, rgb(255 253 246 / .86), rgb(255 250 236 / .74));
  --glass-blur: blur(22px) saturate(180%);
  --glass-edge: rgb(255 255 255 / .7);
  --glass-shadow:
    inset 0 1px 0 rgb(255 255 255 / .85),
    inset 0 -1px 0 rgb(255 255 255 / .25),
    inset 0 0 0 1px rgb(255 255 255 / .28),
    0 1px 2px rgb(30 40 10 / .08),
    0 12px 32px -8px rgb(40 50 15 / .28);

  --font-display: "Tiro Bangla", "Noto Serif Bengali", Georgia, serif;
  --font-body: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.15rem, 1.4rem + 3.4vw, 3.9rem);

  --wrap: 1180px;
  --gutter: clamp(14px, 4vw, 40px);
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 30px;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100dvh;
  background: #cdbf86;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[lang="bn"], .bn { font-family: var(--font-display); }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 8px; }
.lang-bn h1, .lang-bn h2, .lang-bn h3 { line-height: 1.32; letter-spacing: 0; }
body.lang-bn { line-height: 1.72; }

/* ============ The orchard scene (static background) ============ */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #cdbf86; }
.scene picture, .scene img { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene img { object-fit: cover; object-position: 50% 45%; }
.scene-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(250 240 210 / .12) 0%, rgb(250 240 210 / 0) 35%, rgb(30 50 20 / .18) 100%);
}
/* slow drifting pollen / light motes */
.motes span {
  position: absolute; bottom: -10px;
  left: calc(6% + var(--i) * 11%);
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 246 210 / .95), rgb(255 230 160 / 0) 70%);
  opacity: 0;
  animation: mote calc(16s + var(--i) * 2.3s) linear infinite;
  animation-delay: calc(var(--i) * -3.1s);
}
.motes span:nth-child(3n) { width: 10px; height: 10px; }
@keyframes mote {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate3d(30px, -55vh, 0); }
  90% { opacity: .7; }
  100% { transform: translate3d(-20px, -110vh, 0); opacity: 0; }
}

/* ============ Liquid glass ============ */
.glass, .glass-strong {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  isolation: isolate;
}
.glass-strong { background: var(--glass-bg-strong); }
/* specular sheen across the top edge, like light hitting curved glass */
.glass::before, .glass-strong::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    radial-gradient(120% 60% at 15% 0%, rgb(255 255 255 / .55), rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, rgb(255 255 255 / .18), rgb(255 255 255 / 0) 40%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgb(255 252 242 / .9); }
  .glass-strong { background: rgb(255 252 242 / .97); }
}

/* ============ Buttons ============ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 var(--step-0)/1.1 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease-spring), background-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  color: #fffaf0;
  background: linear-gradient(180deg, #2f6a3e, var(--palm) 55%, #183d24);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -2px 6px rgb(0 0 0 / .18), 0 8px 20px -6px rgb(23 60 30 / .55);
}
.btn-primary:hover { background: linear-gradient(180deg, #367a48, var(--palm-2) 55%, #1d4a2b); }
.btn-primary.is-added { background: linear-gradient(180deg, var(--honey-2), var(--honey)); color: var(--palm-deep); }
.btn-glass {
  color: var(--palm-deep);
  background: linear-gradient(150deg, rgb(255 255 255 / .6), rgb(255 255 255 / .3));
  border-color: rgb(255 255 255 / .75);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 6px 16px -6px rgb(40 50 15 / .3);
}
.btn-glass:hover { background: rgb(255 255 255 / .75); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: var(--step-1); padding-inline: 1.6rem; }
.btn-sm { min-height: 36px; padding: .4rem .9rem; font-size: var(--step--1); }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: var(--step--1); text-decoration: underline; cursor: pointer; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .7); background: rgb(255 255 255 / .55); color: var(--ink); cursor: pointer;
}

/* ============ Notice + header ============ */
.notice {
  text-align: center; font-size: var(--step--1); font-weight: 500; color: #fff8e6;
  padding: .45rem var(--gutter);
  background: linear-gradient(90deg, rgb(19 48 30 / .82), rgb(43 97 57 / .82), rgb(19 48 30 / .82));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-header {
  position: sticky; top: 0; z-index: 30;
  padding: 10px var(--gutter) 0;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto;
}
.header-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: 6px 6px 6px 14px; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: .45rem; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-mark { width: 38px; height: auto; flex: none; }
.brand-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff; border: 1.5px solid var(--honey); }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; color: var(--mahogany); white-space: nowrap; padding-top: .15em; }
.nav { display: none; gap: .25rem; }
.nav a { text-decoration: none; font-weight: 500; padding: .5rem .8rem; border-radius: 999px; color: var(--ink); transition: background-color .2s; }
.nav a:hover { background: rgb(255 255 255 / .55); }
.lang-switch {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem;
  border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--palm-deep);
  background: rgb(255 255 255 / .45); border: 1px solid rgb(255 255 255 / .7);
}
.lang-switch:lang(bn) { font-family: var(--font-body); }
.bag-btn {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer; color: #fffaf0;
  background: linear-gradient(180deg, #2f6a3e, var(--palm) 60%, #183d24);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 6px 14px -4px rgb(23 60 30 / .5);
}
.bag-count {
  position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--honey); color: var(--palm-deep); font-size: .78rem; font-weight: 700;
  box-shadow: 0 0 0 2px rgb(255 255 255 / .9);
  transition: transform .3s var(--ease-spring);
}
.bag-count.is-empty { transform: scale(0); }
.bag-btn.bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }

@media (min-width: 900px) {
  .nav { display: flex; }
  .brand-name { font-size: 1.7rem; }
  .header-bar { padding-left: 18px; }
}

/* ============ Hero ============ */
.hero { padding-block: clamp(1.25rem, 5vw, 4.5rem) clamp(2rem, 6vw, 4rem); }
.hero-wrap { position: relative; }
.hero-card {
  background: linear-gradient(155deg, rgb(255 253 244 / .58), rgb(255 250 235 / .26) 60%, rgb(255 255 255 / .18));
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 5vw, 3.2rem);
  max-width: 640px;
}
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: var(--step--1); color: var(--palm);
  padding: .3rem .8rem .3rem .6rem; border-radius: 999px;
  background: rgb(255 255 255 / .6); border: 1px solid rgb(255 255 255 / .8);
  margin-bottom: 1rem;
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #3f9a52; box-shadow: 0 0 0 0 rgb(63 154 82 / .6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgb(63 154 82 / 0); } 100% { box-shadow: 0 0 0 0 rgb(63 154 82 / 0); } }
.hero h1 { color: var(--palm-deep); max-width: 15ch; }
.lang-bn .hero h1 { font-size: clamp(2.05rem, 1.3rem + 3vw, 3.5rem); }
.lede { font-size: var(--step-1); color: #2c3a28; max-width: 44ch; }
.trust-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.4rem; }
.trust-chips li {
  font-size: var(--step--1); font-weight: 600; color: var(--mahogany);
  padding: .3rem .75rem; border-radius: 999px;
  background: rgb(255 240 205 / .7); border: 1px solid rgb(255 255 255 / .8);
}
.trust-chips li::before { content: "✓ "; color: var(--palm-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.pledge {
  margin: 1.5rem 0 0; padding: .1rem 0 .1rem .9rem; border-left: 3px solid var(--honey);
  font-family: var(--font-display); font-size: var(--step-0); line-height: 1.55; color: var(--mahogany); max-width: 34ch;
}

/* floating dates around the hero */
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.fl { position: absolute; width: 46px; filter: drop-shadow(0 14px 12px rgb(40 20 5 / .35)); animation: drift 7s ease-in-out infinite; }
.fl svg { width: 100%; height: auto; }
.fl-1 { right: calc(var(--gutter) + 8px); top: -6px; width: 44px; rotate: 24deg; animation-duration: 6.5s; }
.fl-2 { right: calc(var(--gutter) + 52px); top: 38px; width: 30px; rotate: -18deg; animation-duration: 8s; animation-delay: -2s; }
.fl-3 { right: calc(var(--gutter) - 4px); bottom: 34%; width: 38px; rotate: -30deg; animation-delay: -4s; }
.fl-4 { left: calc(var(--gutter) - 10px); bottom: -14px; width: 40px; rotate: 40deg; animation-duration: 9s; animation-delay: -1s; }
.fl-5 { right: 30%; bottom: -22px; width: 86px; rotate: -12deg; animation-duration: 10s; opacity: .9; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33% { transform: translate3d(4px, -12px, 0) rotate(6deg); }
  66% { transform: translate3d(-5px, -4px, 0) rotate(-5deg); }
}
@media (min-width: 900px) {
  .hero-card { max-width: 620px; }
  .fl { width: 70px; }
  .fl-1 { right: 18%; top: 4%; width: 92px; }
  .fl-2 { right: 8%; top: 30%; width: 64px; }
  .fl-3 { right: 26%; bottom: 14%; width: 80px; }
  .fl-4 { right: 6%; left: auto; bottom: 4%; width: 58px; }
  .fl-5 { right: 15%; bottom: 40%; width: 140px; }
}

/* ============ Shop ============ */
.shop { padding-block: clamp(1.5rem, 5vw, 3.5rem); }
.section-title { color: var(--palm-deep); }
.title-plate { display: inline-block; justify-self: start; margin: 0; padding: .35rem 1.1rem .2rem; border-radius: 999px; font-size: var(--step-2); }
.shop-head { display: grid; gap: .7rem; margin-bottom: 1.2rem; }
.chips {
  display: flex; gap: 4px; padding: 4px; border-radius: 999px; overflow-x: auto; scrollbar-width: none;
  width: max-content; max-width: 100%;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 0; background: transparent; font: 600 var(--step--1)/1 var(--font-body);
  color: var(--ink); padding: .65rem 1rem; border-radius: 999px; cursor: pointer;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.chip.is-active { background: var(--palm); color: #fffaf0; box-shadow: 0 4px 10px -3px rgb(23 60 30 / .5); }

.grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card { border-radius: var(--r-lg); padding: 10px; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card-visual {
  position: relative; aspect-ratio: 16 / 10; border-radius: calc(var(--r-lg) - 8px);
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(70% 70% at 50% 45%, color-mix(in srgb, var(--tint) 18%, rgb(255 248 228 / .85)), rgb(255 248 228 / .25) 75%);
}
.card-visual .halo {
  position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 236 180 / .9), rgb(255 236 180 / 0) 68%);
}
.float-item {
  position: relative; width: 62%; z-index: 1;
  animation: float 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.3s);
}
.float-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px; }
.float-shadow {
  position: absolute; bottom: 9%; width: 42%; height: 9%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(40 20 5 / .35), rgb(40 20 5 / 0));
  animation: shadow 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.3s);
}
.card { --i: 0; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 4px, 0) rotate(-1.5deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(1.5deg); }
}
@keyframes shadow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.75); opacity: .6; }
}
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: .8rem; font-weight: 700; color: var(--mahogany);
  padding: .25rem .7rem; border-radius: 999px;
  background: rgb(255 248 230 / .78); border: 1px solid rgb(255 255 255 / .85);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.badge-out { color: #fff; background: rgb(60 60 60 / .7); }
.card.is-out .float-item { filter: grayscale(.7); opacity: .7; animation-play-state: paused; }

.card-body { padding: .9rem .6rem .4rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .2rem; color: var(--palm-deep); font-size: 1.45rem; }
.card-body h3 .alt-name { font-family: var(--font-body); font-size: var(--step--1); font-weight: 500; color: var(--muted); margin-left: .25rem; }
.origin { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; font-size: var(--step--1); color: var(--mahogany); font-weight: 500; margin-bottom: .5rem; }
.origin .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.desc { color: #34402f; font-size: .98rem; flex: 1; }
@media (max-width: 619px) {
  .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
  .card-visual { aspect-ratio: 16 / 9; }
  .float-item { width: 52%; }
  .hero h1 { font-size: 2rem; }
  .lede { font-size: 1.05rem; }
}
.buy { display: grid; gap: .6rem; margin-top: .2rem; }
.packs {
  border: 0; margin: 0; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  border-radius: 16px; background: rgb(31 74 44 / .08); box-shadow: inset 0 1px 2px rgb(0 0 0 / .06);
}
.packs-one { grid-template-columns: 1fr; }
.packs label { cursor: pointer; }
.packs input { position: absolute; opacity: 0; pointer-events: none; }
.packs span {
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .45rem .3rem; border-radius: 12px; font-size: var(--step--1); color: var(--muted);
  transition: background-color .25s, box-shadow .25s, color .25s, transform .3s var(--ease-spring);
}
.packs b { font-size: 1.08rem; color: var(--ink); }
.packs input:checked + span {
  background: rgb(255 255 255 / .92); color: var(--palm);
  box-shadow: 0 1px 0 rgb(255 255 255 / .9) inset, 0 3px 10px -2px rgb(30 40 10 / .22);
}
.packs input:active + span { transform: scale(.96); }
.packs input:focus-visible + span { outline: 3px solid var(--honey); outline-offset: 1px; }
.empty { padding: 2rem; text-align: center; border-radius: var(--r-md); }

/* add-to-bag flight */
.flyer { position: fixed; z-index: 60; pointer-events: none; will-change: transform, opacity; }
.flyer svg, .flyer img { width: 100%; height: auto; }

/* ============ Promise strip ============ */
.promise-sec { padding-block: .5rem 1rem; }
.promise { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-block: 0; }
.promise li { border-radius: var(--r-md); padding: 1rem; display: grid; gap: .15rem; align-content: start; }
.promise strong { font-size: 1.02rem; color: var(--palm-deep); line-height: 1.3; }
.promise li > span:last-child { font-size: var(--step--1); color: var(--muted); line-height: 1.45; }
.p-ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .35rem;
  color: var(--palm); background: rgb(255 255 255 / .7); box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgb(0 0 0 / .08);
}
.p-ico svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .promise { grid-template-columns: repeat(4, 1fr); gap: 1rem; } .promise li { padding: 1.3rem; } }

/* ============ Panels: ordering, about ============ */
.panel { border-radius: var(--r-lg); padding: clamp(1.3rem, 4vw, 2.6rem); }
.ordering, .about { padding-block: clamp(1rem, 3vw, 2rem); }
.steps { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1.1rem; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: .9rem; align-items: start; }
.step-n {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.4rem; color: #fffaf0;
  background: linear-gradient(180deg, var(--honey-2), var(--honey) 60%, #b97418);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 6px 12px -4px rgb(150 90 10 / .6);
}
.steps h3 { margin-bottom: .2rem; color: var(--palm-deep); }
.steps p { margin: 0; color: #34402f; max-width: 40ch; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } .steps li { grid-template-columns: 1fr; } }
.track-hint { margin: 1.3rem 0 0; }
.track-hint a, .site-footer a { text-decoration-color: rgb(31 74 44 / .35); text-underline-offset: 3px; }

.about-grid { display: grid; gap: 1rem 3rem; }
.about-motto { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--mahogany); }
.about-body { font-size: 1.1rem; line-height: 1.75; max-width: 50ch; }
@media (min-width: 900px) { .about-grid { grid-template-columns: .8fr 1.2fr; } }

/* ============ Footer ============ */
.site-footer { padding: 1.5rem 0 calc(6.5rem + var(--safe-b)); }
.footer-card { border-radius: var(--r-lg); padding: clamp(1.3rem, 4vw, 2.4rem); }
.footer-grid { display: grid; gap: 1.4rem; }
.footer-grid h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-0); margin-bottom: .35rem; color: var(--palm-deep); }
.footer-grid p { margin-bottom: .3rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.9rem; color: var(--mahogany); margin-bottom: .2rem; line-height: 1.2; }
.footer-tagline { font-weight: 600; color: var(--mahogany); }
.footer-base {
  margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem;
}
/* Developer credit: quiet by default, a little invitation on hover */
.credit {
  display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--muted);
  padding: .3rem .7rem .3rem .3rem; border-radius: 999px; font-size: .8rem; line-height: 1.2;
  border: 1px solid transparent; transition: background-color .25s, border-color .25s, color .25s;
}
.credit b { font-weight: 600; color: #1d2b4f; }
.credit-mark {
  width: 26px; height: 26px; flex: none; padding: 3px; border-radius: 50%; object-fit: contain;
  background: #fff; box-shadow: 0 1px 4px rgb(20 33 61 / .2), inset 0 0 0 1px rgb(214 158 64 / .35);
}
.credit-cta {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; color: #9a6b12; font-weight: 600;
  transition: max-width .45s var(--ease-out), opacity .3s;
}
.credit:hover, .credit:focus-visible { background: rgb(255 255 255 / .6); border-color: rgb(255 255 255 / .9); color: var(--ink); }
.credit:hover .credit-cta, .credit:focus-visible .credit-cta { max-width: 14em; opacity: 1; }
@media (hover: none) {
  .credit { flex-wrap: wrap; row-gap: .1rem; }
  .credit-cta { max-width: none; opacity: 1; flex-basis: 100%; padding-left: calc(26px + .45rem); }
}
.socials { list-style: none; display: flex; gap: .5rem; padding: 0; margin: .75rem 0 0; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--palm);
  background: rgb(255 255 255 / .6); border: 1px solid rgb(255 255 255 / .85);
}
.socials a:hover { background: var(--palm); color: #fff; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; } .site-footer { padding-bottom: 2rem; } }

/* ============ Floating bag pill (phones) ============ */
.bag-pill {
  position: fixed; z-index: 40; left: 50%; bottom: calc(14px + var(--safe-b));
  display: flex; align-items: center; gap: .7rem;
  min-width: min(340px, calc(100vw - 28px)); padding: 7px 8px 7px 8px; border-radius: 999px;
  font: 600 var(--step-0)/1 var(--font-body); color: var(--ink); cursor: pointer;
  translate: -50% 0;
  transition: translate .45s var(--ease-spring), opacity .3s;
}
.bag-pill[hidden] { display: flex; translate: -50% 160%; opacity: 0; pointer-events: none; }
.bag-pill-icon {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: #fffaf0; background: linear-gradient(180deg, #2f6a3e, var(--palm) 60%, #183d24);
}
.bag-pill-icon b {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px;
  display: grid; place-items: center; font-size: .75rem; background: var(--honey); color: var(--palm-deep);
  box-shadow: 0 0 0 2px #fff;
}
.bag-pill-label { flex: 1; text-align: left; }
.bag-pill strong {
  padding: .65rem 1rem; border-radius: 999px; color: #fffaf0;
  background: linear-gradient(180deg, #2f6a3e, var(--palm) 60%, #183d24);
}
@media (min-width: 900px) { .bag-pill { display: none !important; } }

/* ============ Bag sheet ============ */
.bag {
  padding: 0; border: 0; color: var(--ink);
  width: 100vw; max-width: 100vw; height: fit-content; max-height: 88dvh;
  margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0;
  border: 1px solid var(--glass-edge); border-bottom: 0;
  transition: translate .42s var(--ease-out), opacity .3s, display .42s allow-discrete, overlay .42s allow-discrete;
  translate: 0 100%;
}
.bag[open]:not([data-closing]) { translate: 0 0; }
@starting-style { .bag[open] { translate: 0 100%; } }
.bag::backdrop {
  background: rgb(20 40 20 / 0);
  -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  transition: background-color .35s, backdrop-filter .35s, display .42s allow-discrete, overlay .42s allow-discrete;
}
.bag[open]:not([data-closing])::backdrop { background: rgb(20 40 20 / .32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@starting-style { .bag[open]::backdrop { background: rgb(20 40 20 / 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }
@media (min-width: 760px) {
  .bag {
    margin: 12px 12px 12px auto; width: min(440px, calc(100vw - 24px)); height: calc(100dvh - 24px); max-height: none;
    border-radius: var(--r-lg); border-bottom: 1px solid var(--glass-edge); translate: 110% 0;
  }
  @starting-style { .bag[open] { translate: 110% 0; } }
  .sheet-grip { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bag, .bag::backdrop { transition-duration: .01s; } }
.bag-inner { display: flex; flex-direction: column; height: 100%; max-height: inherit; }
.sheet-grip { width: 42px; height: 5px; border-radius: 99px; background: rgb(0 0 0 / .18); margin: 8px auto 0; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1.2rem .5rem; }
.bag-head h2 { margin: 0; font-size: var(--step-2); }
.bag-items { flex: 1; overflow-y: auto; padding: 0 1.2rem; overscroll-behavior: contain; min-height: 120px; }
.bag-foot { padding: 1rem 1.2rem calc(1rem + var(--safe-b)); border-top: 1px solid var(--line); }
.bag-total { display: flex; justify-content: space-between; font-size: var(--step-1); margin-bottom: .3rem; }
.bag-empty { padding: 2.5rem 0; text-align: center; }

.line { display: grid; grid-template-columns: 56px 1fr auto; gap: .85rem; align-items: start; padding: .9rem 0; border-bottom: 1px solid var(--line); animation: line-in .35s var(--ease-out) both; }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } }
.line:last-child { border-bottom: 0; }
.line-thumb { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; background: rgb(255 240 205 / .8); display: grid; place-items: center; box-shadow: inset 0 1px 0 #fff; }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-date { width: 20px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--tint) 55%, #fff), var(--tint) 45%, #140806); transform: rotate(-14deg); }
.line-name { font-weight: 600; margin: 0; }
.line-meta { color: var(--muted); font-size: var(--step--1); margin: 0 0 .4rem; }
.line-price { text-align: right; font-weight: 600; display: grid; gap: .3rem; justify-items: end; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: rgb(31 74 44 / .08); padding: 2px; }
.qty button { width: 32px; height: 32px; border: 0; background: rgb(255 255 255 / .85); font-size: 1.1rem; cursor: pointer; color: var(--ink); border-radius: 50%; box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.qty button:active { transform: scale(.9); }
.qty span { min-width: 2em; text-align: center; font-weight: 700; }

.toast {
  position: fixed; left: 50%; top: calc(76px + env(safe-area-inset-top, 0px)); translate: -50% -40px;
  color: var(--ink); padding: .75rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  z-index: 70; opacity: 0; pointer-events: none; max-width: calc(100vw - 28px); text-align: center;
  transition: translate .45s var(--ease-spring), opacity .3s;
}
.toast.is-on { translate: -50% 0; opacity: 1; }

/* ============ Checkout ============ */
.checkout, .success, .track { padding-block: clamp(1.25rem, 4vw, 3rem) 2rem; }
.page-head { border-radius: var(--r-lg); padding: 1rem 1.3rem; }
.page-head h1 { font-size: var(--step-3); color: var(--palm-deep); margin-bottom: .1rem; }
.page-head .lede { font-size: var(--step-0); color: #2c3a28; margin: 0; }
.checkout-grid { display: grid; gap: 1rem; align-items: start; margin-top: 1rem; }
.co-form fieldset { border: 1px solid var(--glass-edge); margin: 0 0 1rem; min-width: 0; }
.co-form legend {
  float: left; width: 100%; font-family: var(--font-display); font-size: var(--step-1); padding: 0; margin-bottom: .8rem; color: var(--palm-deep);
}
.co-form legend + * { clear: both; }
.opt { font-family: var(--font-body); font-size: var(--step--1); color: var(--muted); font-weight: 400; }
.field { display: grid; gap: .3rem; margin-bottom: .9rem; align-content: start; }
.field-row { display: grid; gap: 0 1rem; }
.field label { font-weight: 600; font-size: .97rem; }
.field input, .field select, .field textarea, .track-input input {
  width: 100%; min-height: 50px; padding: .7rem .95rem;
  font: inherit; font-size: 16px; color: var(--ink);
  background: rgb(255 255 255 / .72); border: 1px solid rgb(255 255 255 / .9); border-radius: var(--r-sm);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / .08);
  transition: box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 0; }
.field input:focus, .field select:focus, .field textarea:focus, .track-input input:focus {
  outline: none; background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--honey) 55%, transparent);
}
.field [aria-invalid="true"] { box-shadow: 0 0 0 2px var(--danger); }
.hint { font-size: var(--step--1); color: var(--muted); margin: 0; }
.err { color: var(--danger); font-size: var(--step--1); font-weight: 600; margin: 0; }
.err:empty { display: none; }
.err-block { padding: .8rem 1rem; background: rgb(255 228 220 / .9); border-radius: var(--r-sm); margin: 0 0 1rem; }
.zones { display: grid; gap: .6rem; }
.zone { cursor: pointer; }
.zone input { position: absolute; opacity: 0; pointer-events: none; }
.zone span {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .85rem 1rem;
  border-radius: var(--r-sm); background: rgb(255 255 255 / .5); border: 1px solid rgb(255 255 255 / .85);
  transition: background-color .2s, box-shadow .2s;
}
.zone em { font-style: normal; color: var(--muted); font-weight: 600; }
.zone input:checked + span { background: #fff; box-shadow: 0 0 0 2px var(--palm), 0 6px 14px -6px rgb(30 40 10 / .35); }
.zone input:focus-visible + span { outline: 3px solid var(--honey); outline-offset: 2px; }
.zone input:disabled + span { opacity: .45; cursor: not-allowed; }
@media (min-width: 560px) { .field-row, .zones { grid-template-columns: 1fr 1fr; } }

.summary h2 { font-size: var(--step-2); }
.sum-items { max-height: 340px; overflow-y: auto; margin-bottom: .6rem; }
.sum-lines { margin: 0 0 1rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.sum-lines div { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; }
.sum-lines dt { color: var(--muted); }
.sum-lines dd { margin: 0; font-weight: 600; text-align: right; }
.sum-total { padding-top: .7rem; margin-top: .6rem; border-top: 1px solid var(--line); font-size: var(--step-1); }
.sum-total dt { color: var(--ink); }
.free-hint { color: var(--mahogany); font-weight: 600; }
.free-hint:empty { display: none; }
@media (min-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr 400px; gap: 1.5rem; }
  .summary { position: sticky; top: 90px; }
}
@media (max-width: 899px) { .summary { order: -1; } }

/* ============ Success + tracking ============ */
.success-card { max-width: 620px; margin-inline: auto; border-radius: var(--r-lg); padding: clamp(1.4rem, 5vw, 2.8rem); text-align: center; }
.success-card .lede { margin-inline: auto; font-size: var(--step-0); }
.success-mark { width: 68px; margin: 0 auto 1rem; filter: drop-shadow(0 8px 14px rgb(20 50 20 / .35)); }
.success-mark .tick { stroke-dasharray: 48; stroke-dashoffset: 48; animation: tick .6s .35s var(--ease-out) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.track-box {
  margin: 1.2rem auto; padding: 1.1rem; border-radius: var(--r-md); max-width: 420px;
  background: linear-gradient(160deg, rgb(255 244 214 / .9), rgb(255 255 255 / .6));
  border: 1px dashed rgb(160 100 20 / .45);
}
.track-box p { margin-bottom: .4rem; }
.track-label { font-size: var(--step--1); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .2rem; }
.lang-bn .track-label { text-transform: none; letter-spacing: 0; }
.track-code-row { display: flex; align-items: center; justify-content: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .5rem; }
.track-code { font: 700 1.55rem/1.1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; color: var(--mahogany); margin: 0; }
.order-code strong { color: var(--ink); }
.success-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; text-align: left; }
.success-table td { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.success-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 1rem; }
.success-table tfoot td { font-size: var(--step-1); font-weight: 700; border-bottom: 0; }
.center-row { justify-content: center; }

.track-card { max-width: 620px; margin-inline: auto; }
.track-card h1 { font-size: var(--step-3); color: var(--palm-deep); }
.track-card .lede { font-size: var(--step-0); }
.track-form { margin-bottom: 1rem; }
.track-form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.track-input { display: flex; gap: .5rem; }
.track-input input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: .05em; }
.track-input input::placeholder { color: rgb(0 0 0 / .3); }
.track-input .btn { flex: none; }
.track-form.is-compact .track-input input { min-height: 42px; }
.track-form.is-compact .btn { min-height: 42px; }
.track-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.status-pill { display: inline-block; padding: .3rem .8rem; border-radius: 999px; font-size: var(--step--1); font-weight: 700; white-space: nowrap; background: rgb(255 255 255 / .75); color: var(--palm); box-shadow: inset 0 0 0 1px rgb(31 74 44 / .2); }
.status-new { color: #8a5a00; background: #fff1cf; }
.status-confirmed { color: var(--palm); background: #e3f1df; }
.status-shipped { color: #1f4f7a; background: #dfeefa; }
.status-delivered { color: #fff; background: var(--palm); }
.status-cancelled { color: #fff; background: #8b3a2e; }

.timeline { list-style: none; padding: 0; margin: .4rem 0 1.4rem; }
.timeline li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: .8rem; padding-bottom: 1.2rem; animation: line-in .45s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: rgb(31 74 44 / .15); }
.timeline li.is-done:not(.is-current)::before { background: var(--palm-2); }
.timeline li:last-child::before { display: none; }
.tl-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 2px rgb(31 74 44 / .18); color: #fff; }
.tl-dot svg { width: 16px; }
.is-done .tl-dot { background: var(--palm-2); box-shadow: none; }
.is-current .tl-dot { background: var(--honey); box-shadow: 0 0 0 0 rgb(224 154 46 / .6); animation: ping-honey 2s infinite; }
.is-cancelled .tl-dot { background: #8b3a2e; animation: none; }
@keyframes ping-honey { 70% { box-shadow: 0 0 0 10px rgb(224 154 46 / 0); } 100% { box-shadow: 0 0 0 0 rgb(224 154 46 / 0); } }
.tl-title { font-weight: 700; margin: .1rem 0 0; }
.timeline li:not(.is-done) .tl-title { color: var(--muted); font-weight: 500; }
.tl-desc { margin: 0; font-size: .95rem; color: #34402f; }
.tl-when { margin: 0; font-size: var(--step--1); color: var(--muted); }
.track-summary { border-top: 1px solid var(--line); padding-top: 1rem; }
.recent { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.recent ul { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .5rem; }
.recent a { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; padding: .7rem .9rem; border-radius: var(--r-sm); background: rgb(255 255 255 / .55); text-decoration: none; border: 1px solid rgb(255 255 255 / .85); }
.recent a strong { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.recent .status-pill { margin-left: auto; }

/* ============ Motion: entrances ============ */
.pop-in { animation: pop-in .6s var(--ease-spring) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
/* Scroll reveal: native scroll-driven where supported, JS class fallback otherwise */
@keyframes reveal-in { from { opacity: 0; transform: translateY(28px) scale(.97); } }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
  @supports not ((animation-timeline: view()) and (animation-range: entry)) {
    .js-reveal .reveal:not(.is-in) { opacity: 0; transform: translateY(28px) scale(.97); }
    .js-reveal .reveal { transition: opacity .7s var(--ease-out), transform .7s var(--ease-spring); transition-delay: calc(var(--i, 0) * 70ms); }
  }
}
.hero-card.reveal { animation: pop-in .8s var(--ease-spring) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .motes, .floaters { display: none; }
}
