/* Shop look: Ooty hills, chocolate drips, cards and motion. Loaded by index.html and the information pages (contact, policies).
   Nothing here is needed for the shop to work: it is decoration and animation. */

/* ---------- Header: chocolate drips hang below it ---------- */
body.store .site-header { box-shadow: none; }
body.store .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40px; pointer-events: none; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='28' viewBox='0 0 120 28'%3E%3Cpath fill='%233f2416' d='M0,0H120V5H112C108,5 108.5,7 108.5,10V16a4.5,4.5 0 0 1 -9,0V10C99.5,7 100,5 96,5H78C74,5 73.5,7 73.5,10V22a3.5,3.5 0 0 1 -7,0V10C66.5,7 66,5 62,5H44C40.5,5 40,6.5 40,9V12a4,4 0 0 1 -8,0V9C32,6.5 31.5,5 28,5H0Z'/%3E%3C/svg%3E") repeat-x top left / 170px 40px;
  transition: opacity .3s;
}
body.store .site-header.scrolled { padding-top: .5rem; padding-bottom: .5rem; box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .8); }
.brand { display: inline-flex; align-items: center; gap: .5rem; }
.brand .logo { width: 30px; height: 30px; transition: transform .6s var(--ease); }
.brand:hover .logo { transform: rotate(-20deg) scale(1.1); }
.brand em { font-style: normal; background: linear-gradient(90deg, #f3cf94, #d9a05b); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.store .site-header nav a, body.store .site-header nav .link { position: relative; padding: .2rem 0; }
body.store .site-header nav a::after, body.store .site-header nav .link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
body.store .site-header nav a:hover::after, body.store .site-header nav .link:hover::after { transform: scaleX(1); }
.cart-btn.bump, .badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* ---------- Hero: dusk over the Nilgiri hills ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff; padding: 5.5rem 1.25rem 10.5rem;
  background: radial-gradient(900px 420px at 50% -8%, rgba(217, 160, 91, .28), transparent 70%), linear-gradient(180deg, var(--h1, #25130b) 0%, var(--h2, #4a2a1a) 52%, var(--h3, #7a4a30) 100%); }
.hero-inner { position: relative; z-index: 3; max-width: 760px; margin: 0 auto; transform: translateY(calc(var(--py, 0) * .12px)); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .9rem; border: 1px solid rgba(243, 207, 148, .45); border-radius: 999px; color: #f3cf94; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.7rem); margin: 1rem 0 .8rem; letter-spacing: -.01em; text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.hero h1 .gold { background: linear-gradient(90deg, #f6d9a3, #d9a05b 55%, #f6d9a3); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.hero p { margin: 0 auto 1.8rem; max-width: 540px; color: #f3e3d3; font-size: 1.08rem; }
.hero .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; }
.btn.ghost { background: rgba(255, 255, 255, .08); border: 1px solid rgba(243, 207, 148, .6); box-shadow: none; color: #f6e2c0; backdrop-filter: blur(4px); }
.btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .16); box-shadow: none; }
.hero .rise { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--n, 0) * 130ms + 120ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

.glow { position: absolute; z-index: 0; width: 420px; height: 420px; right: 12%; bottom: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(246, 217, 163, .55), rgba(217, 160, 91, .15) 45%, transparent 70%); animation: pulse 9s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .8; } }
.mist { position: absolute; z-index: 1; left: -20%; width: 140%; height: 220px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 255, 255, .17), transparent 62%); filter: blur(14px); pointer-events: none; }
.mist.m1 { bottom: 70px; animation: drift 34s ease-in-out infinite alternate; }
.mist.m2 { bottom: 20px; opacity: .8; animation: drift 46s ease-in-out -12s infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-9%); } to { transform: translateX(9%); } }

.bean { position: absolute; z-index: 2; left: var(--x); bottom: -40px; width: var(--s); height: var(--s); opacity: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='12' rx='7.5' ry='11' transform='rotate(35 12 12)' fill='%23b0703f'/%3E%3Cpath d='M7 5c4 3 6 9 10 14' stroke='%233a2013' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: float var(--t) linear var(--d) infinite; }
@keyframes float { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; } 12% { opacity: .55; } 85% { opacity: .35; } 100% { transform: translate3d(var(--dx, 30px), -560px, 0) rotate(300deg); opacity: 0; } }

.hills { position: absolute; z-index: 2; left: 0; right: 0; bottom: -1px; width: 100%; aspect-ratio: 1440 / 240; min-height: 150px; pointer-events: none; }
.hills svg { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.hills .hl1 { transform: translate3d(0, calc(var(--py, 0) * -.05px), 0); }
.hills .hl2 { transform: translate3d(0, calc(var(--py, 0) * -.025px), 0); }

/* ---------- Perks ---------- */
.perks { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1100px; margin: -3.2rem auto 0; padding: 0 1.25rem; }
.perk { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 34px -22px rgba(47, 27, 16, .55); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.perk:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -22px rgba(47, 27, 16, .6); }
.perk svg { flex: none; width: 42px; height: 42px; padding: 8px; border-radius: 12px; background: var(--mist); }
.perk h3 { margin: 0 0 .15rem; font-size: 1.02rem; }
.perk p { margin: 0; font-size: .88rem; color: var(--cocoa-soft); }
@media (max-width: 760px) { .perks { grid-template-columns: 1fr; margin-top: -2.4rem; } }

/* ---------- Section headings ---------- */
.section-head { text-align: center; margin: .5rem 0 1.4rem; }
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.section-head p { margin: .3rem 0 0; color: var(--muted); }
.leafline { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: .6rem; color: var(--leaf); }
.leafline::before, .leafline::after { content: ""; width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.leafline::after { transform: scaleX(-1); }
.leafline svg { width: 22px; height: 22px; }
#shopView .filters { justify-content: center; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-8px); box-shadow: 0 26px 44px -24px rgba(47, 27, 16, .6); border-color: #dcc3a6; }
.card .pic { position: relative; height: 176px; overflow: hidden; background: linear-gradient(135deg, #5a3522, #a0623d); }
.card .pic svg.art, .card .pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .pic svg.art, .card:hover .pic img { transform: scale(1.1) rotate(-1.5deg); }
.card .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s var(--ease); pointer-events: none; }
.card:hover .pic::after { transform: translateX(120%); }
.card .cat { position: absolute; z-index: 2; left: .7rem; top: .7rem; padding: .18rem .65rem; border-radius: 999px; background: rgba(255, 250, 243, .92); color: var(--cocoa-soft); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(4px); }
.card .body { display: flex; flex-direction: column; flex: 1; gap: .35rem; padding: 1rem 1.05rem 1.1rem; }
.card h3 { margin: 0; font-size: 1.12rem; }
.card .desc { flex: 1; margin: 0; font-size: .9rem; color: var(--cocoa-soft); }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .6rem; }
.card .foot .btn { padding: .55rem 1.05rem; white-space: nowrap; font-size: .92rem; }
.card .foot .price { white-space: nowrap; }
.price { font: 700 1.2rem Georgia, serif; color: var(--cocoa); }
.card .low { align-self: flex-start; padding: .1rem .6rem; border-radius: 999px; background: #fdecea; font-weight: 600; }
.card.soldout .pic { filter: grayscale(.8) brightness(.8); }
.card.soldout .pic::before { content: "Sold out"; position: absolute; z-index: 3; right: -2.2rem; top: 1.1rem; padding: .2rem 2.6rem; transform: rotate(35deg); background: var(--err); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.stepper { display: inline-flex; align-items: center; background: linear-gradient(135deg, #c2603a, #a4471f); color: #fff; border-radius: 999px; overflow: hidden; box-shadow: 0 8px 16px -10px rgba(142, 63, 30, .9); animation: pop .3s var(--ease); }
.stepper button { width: 2.5rem; height: 2.5rem; border: 0; background: transparent; color: #fff; font-size: 1.3rem; line-height: 1; transition: background .2s, transform .15s var(--ease); }
.stepper button:hover:not(:disabled) { background: rgba(0, 0, 0, .18); }
.stepper button:active:not(:disabled) { transform: scale(.85); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper .n { min-width: 2.2rem; text-align: center; font-weight: 700; }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* flying bean when something is added to the cart */
.fly-bean { position: fixed; z-index: 200; width: 26px; height: 26px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='12' rx='7.5' ry='11' transform='rotate(35 12 12)' fill='%23b0703f'/%3E%3Cpath d='M7 5c4 3 6 9 10 14' stroke='%233a2013' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }

/* skeleton cards while products load */
.skel { height: 330px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(100deg, #f1e6d9 30%, #fbf3e9 50%, #f1e6d9 70%) 0 0 / 240% 100%; animation: sheen 1.4s linear infinite; }
@keyframes sheen { to { background-position: -140% 0; } }

/* ---------- Scroll reveal (only when JavaScript is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease) calc(var(--i, 0) * 70ms), transform .7s var(--ease) calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
#shopView:not([hidden]), #ordersView:not([hidden]) { animation: view-in .55s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- My orders ---------- */
#ordersView h2 { text-align: center; font-size: clamp(1.6rem, 4vw, 2.1rem); }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.empty .big { display: block; font-size: 2.6rem; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-6deg); } }
.status { display: inline-block; padding: .2rem .8rem; border-radius: 999px; font-size: .82rem; background: #f4ece3; }
.status.s-pending { background: #fdecea; }
.status.s-processing { background: #fff3d6; }
.status.s-paid, .status.s-shipped, .status.s-delivered { background: #e3f3e8; }
.status.s-cancelled { background: #ece7e2; color: var(--muted); }
.track { display: grid; grid-template-columns: repeat(5, 1fr); margin: 1rem 0 1.2rem; padding: 0; list-style: none; counter-reset: step; }
.track li { position: relative; padding-top: 1.7rem; text-align: center; font-size: .72rem; color: var(--muted); }
.track li::before { content: ""; position: absolute; left: 50%; top: 0; z-index: 1; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 2px solid var(--line); transition: background .4s, border-color .4s; }
.track li::after { content: ""; position: absolute; left: -50%; top: 6px; width: 100%; height: 2px; background: var(--line); }
.track li:first-child::after { display: none; }
.track li.done { color: var(--cocoa); }
.track li.done::before { background: var(--leaf); border-color: var(--leaf); }
.track li.done::after { background: linear-gradient(90deg, var(--leaf), var(--leaf)); }
.track li.now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 0 rgba(217, 160, 91, .6); animation: ring 1.8s ease-out infinite; }
.track li.now { font-weight: 700; color: var(--accent-dark); }
@keyframes ring { to { box-shadow: 0 0 0 11px rgba(217, 160, 91, 0); } }

/* ---------- Why MissOoty: full-screen story (dark and gold, light beams, depth) ---------- */
.story { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: center; min-height: 100vh; min-height: 100svh;
  margin-top: 4.5rem; padding: 9rem 1.25rem 9rem; color: #f3e3d3;
  background: radial-gradient(900px 520px at 85% 8%, rgba(217, 160, 91, .22), transparent 65%), radial-gradient(800px 500px at 8% 92%, rgba(91, 122, 82, .22), transparent 65%), linear-gradient(180deg, #1b0e07 0%, #2a160c 48%, #1d1009 100%); }
.story-top, .story-bottom { position: absolute; left: 0; right: 0; width: 100%; height: 90px; display: block; z-index: 3; pointer-events: none; }
.story-top { top: -1px; }
.story-bottom { bottom: -1px; }
.story-inner { position: relative; z-index: 2; width: 100%; max-width: 1100px; margin: 0 auto; }
.story-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.story-head h2 { margin: 1rem 0 .9rem; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -.01em; color: #fff; }
.story-head h2 .gold { background: linear-gradient(90deg, #f6d9a3, #d9a05b 55%, #f6d9a3); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
.story .lead { margin: 0 auto; max-width: 620px; font-size: 1.12rem; line-height: 1.7; color: #e5d0b9; }

/* moving light and floating ingredients */
.story-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.beam { position: absolute; top: -20%; bottom: -20%; width: 34%; left: -40%; transform: skewX(-18deg); filter: blur(14px);
  background: linear-gradient(90deg, transparent, rgba(246, 217, 163, .20) 45%, rgba(246, 217, 163, .34) 50%, rgba(246, 217, 163, .20) 55%, transparent); animation: sweep 11s ease-in-out infinite; }
.beam.b2 { width: 18%; opacity: .7; animation-duration: 15s; animation-delay: -6s; }
@keyframes sweep { 0% { left: -45%; } 55%, 100% { left: 125%; } }
.orb { position: absolute; border-radius: 50%; filter: blur(8px); background: radial-gradient(circle, rgba(246, 217, 163, .35), rgba(217, 160, 91, .08) 55%, transparent 70%); animation: pulse 10s ease-in-out infinite; }
.orb.o1 { width: 340px; height: 340px; right: -4%; top: 12%; }
.orb.o2 { width: 260px; height: 260px; left: -3%; bottom: 14%; animation-delay: -4s; }
.float { position: absolute; width: var(--s, 30px); height: var(--s, 30px); left: var(--x); top: var(--y); opacity: .5;
  transform: translate3d(0, calc((var(--sp, .5) - .5) * var(--k, 160) * -1px), 0) rotate(calc(var(--sp, .5) * var(--r, 120deg))); will-change: transform;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='12' rx='7.5' ry='11' transform='rotate(35 12 12)' fill='%23b0703f'/%3E%3Cpath d='M7 5c4 3 6 9 10 14' stroke='%233a2013' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.float.f1 { --x: 6%; --y: 22%; --s: 34px; --k: 220; --r: 160deg; }
.float.f2 { --x: 90%; --y: 30%; --s: 26px; --k: 140; --r: -120deg; }
.float.f3 { --x: 14%; --y: 70%; --s: 22px; --k: 260; --r: 200deg; opacity: .35; }
.float.f4 { --x: 82%; --y: 74%; --s: 38px; --k: 180; --r: -160deg; }
.float.f5 { --x: 48%; --y: 8%; --s: 18px; --k: 120; --r: 90deg; opacity: .3; }
.float.f6 { --x: 60%; --y: 90%; --s: 24px; --k: 200; --r: 140deg; opacity: .4; }

/* four pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 3.4rem; perspective: 900px; }
.pillar { position: relative; padding: 1.5rem 1.3rem 1.4rem; border-radius: 20px; border: 1px solid rgba(243, 207, 148, .22); backdrop-filter: blur(6px);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .9);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: border-color .4s, box-shadow .4s, background .4s; }
.pillar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(246, 217, 163, .2), transparent 60%); }
.pillar:hover { border-color: rgba(246, 217, 163, .6); box-shadow: 0 30px 48px -26px rgba(0, 0, 0, 1), 0 0 0 1px rgba(246, 217, 163, .12); }
.pillar:hover::before { opacity: 1; }
.pillar svg { width: 46px; height: 46px; padding: 9px; margin-bottom: .9rem; border-radius: 14px; color: #f3cf94; background: rgba(217, 160, 91, .14); transition: transform .5s var(--ease), background .4s; }
.pillar:hover svg { transform: translateY(-3px) rotate(-6deg); background: rgba(217, 160, 91, .26); }
.pillar h3 { margin: 0 0 .45rem; font-size: 1.15rem; color: #fff; }
.pillar p { margin: 0; font-size: .93rem; line-height: 1.65; color: #d8c2aa; }

/* from our hands to yours */
.journey { margin-bottom: 3rem; text-align: center; }
.journey h3, .inrange h3 { margin: 0 0 1.4rem; font-size: clamp(1.4rem, 3vw, 1.9rem); color: #fff; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 0 .5rem; }
.steps li::before { content: ""; position: absolute; left: -50%; top: 21px; width: 100%; height: 2px; background: linear-gradient(90deg, rgba(246, 217, 163, .15), rgba(246, 217, 163, .6)); transform-origin: left; }
.steps li:first-child::before { display: none; }
.js .steps li.reveal::before { transform: scaleX(0); transition: transform .9s var(--ease) calc(var(--i, 0) * 120ms + 300ms); }
.js .steps li.reveal.in::before { transform: scaleX(1); }
.steps b { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto .7rem; border-radius: 50%; font: 700 1.1rem Georgia, serif; color: #2a160c;
  background: linear-gradient(135deg, #f6d9a3, #d9a05b); box-shadow: 0 0 0 6px rgba(217, 160, 91, .16); }
.steps span { display: block; font-weight: 700; color: #fff; }
.steps small { display: block; margin-top: .15rem; color: #cdb69e; font-size: .82rem; line-height: 1.4; }

/* what goes into our range */
.inrange { margin-bottom: 1.8rem; text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(243, 207, 148, .3); background: rgba(255, 255, 255, .05); color: #f3e3d3; font-size: .95rem;
  transition: transform .35s var(--ease), background .3s, border-color .3s; }
.chips li:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .11); border-color: rgba(246, 217, 163, .7); }
.chips i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .22); }
.story-note { max-width: 640px; margin: 0 auto 1.8rem; text-align: center; font-size: .86rem; line-height: 1.6; color: #b9a38c; }
.story-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .story { padding: 7rem 1.1rem 7rem; }
  .steps { grid-template-columns: 1fr; gap: 1.2rem; max-width: 320px; margin: 0 auto; text-align: left; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; align-items: center; padding: 0; }
  .steps li::before { display: none; }
  .steps b { margin: 0; grid-row: span 2; }
  .steps small { margin-top: 0; }
}
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Reel-inspired polish: depth, light and softer entrances ---------- */
.js .reveal { filter: blur(6px); }
.js .reveal.in { filter: none; }
.js .reveal { transition-property: opacity, transform, filter; }
.scroll-bar { position: fixed; z-index: 60; left: 0; top: 0; height: 3px; width: 100%; transform-origin: left; transform: scaleX(var(--prog, 0)); pointer-events: none; background: linear-gradient(90deg, #8e3f1e, #d9a05b, #f6d9a3); box-shadow: 0 0 10px rgba(217, 160, 91, .7); }
.hero::after { content: ""; position: absolute; z-index: 1; top: -30%; bottom: -30%; width: 26%; left: -40%; transform: skewX(-18deg); pointer-events: none; filter: blur(16px);
  background: linear-gradient(90deg, transparent, rgba(246, 217, 163, .16) 50%, transparent); animation: sweep 14s ease-in-out 2s infinite; }
.card { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
.card:hover { --lift: -8px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px); }
.card.tilting, .pillar.tilting { transition: transform .12s linear, border-color .4s, box-shadow .4s; }
.btn { transition: transform .25s var(--ease), box-shadow .3s, background .3s; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }


/* ---------- Build your own gift box ---------- */
#boxDialog { width: min(860px, 95vw); max-height: 92vh; overflow-y: auto; }
#boxDialog h3 { margin-bottom: .2rem; }
.box-layout { display: grid; grid-template-columns: 1fr 280px; gap: 1.4rem; align-items: start; margin-top: .8rem; }
.box-choices h4 { margin: 1rem 0 .5rem; font: 700 .85rem system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf-dark); }
.box-choices h4:first-child, #boxThemesWrap h4 { margin-top: 0; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.opt { position: relative; display: grid; gap: .1rem; padding: .7rem .8rem .7rem 2.6rem; text-align: left; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--cocoa); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.opt:hover { transform: translateY(-2px); }
.opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181, 83, 43, .16); }
.opt .sw { position: absolute; left: .7rem; top: .75rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.opt small, .irow small { display: block; color: var(--muted); font-size: .78rem; }
.opt em { font-style: normal; font-size: .8rem; color: var(--leaf-dark); font-weight: 600; }
.irow { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.irow .price { font-size: 1rem; }
.bstep { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.bstep button { width: 2.1rem; height: 2.1rem; border: 0; background: transparent; font-size: 1.2rem; line-height: 1; color: var(--accent-dark); }
.bstep button:hover:not(:disabled) { background: #f6ece2; }
.bstep button:disabled { opacity: .3; cursor: not-allowed; }
.bstep span { min-width: 1.8rem; text-align: center; font-weight: 700; }
.box-sum { position: sticky; top: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #fffaf3; }
.box-preview { --c1: #2f1b10; --c2: #d9a05b; display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 6px; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.box-preview i { aspect-ratio: 1; border-radius: 6px; border: 1.5px dashed rgba(255, 255, 255, .5); transition: background .25s, transform .25s var(--ease); }
.box-preview i.on { border-style: solid; background: radial-gradient(circle at 35% 30%, #9a6642, #3a2013); transform: scale(1.06); }
.meter { height: 6px; margin: .7rem 0 .3rem; border-radius: 6px; background: #eadfd3; overflow: hidden; }
.meter div { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--leaf), var(--gold)); transition: width .3s var(--ease); }
.sum { width: 100%; margin: .4rem 0; border-collapse: collapse; font-size: .92rem; }
.sum td { padding: .22rem 0; } .sum td:last-child { text-align: right; }
.sum tr.total td { padding-top: .5rem; border-top: 1px solid var(--line); font: 700 1.15rem Georgia, serif; }
.card.build .pic { background: linear-gradient(135deg, #3f4f3d, #8aa07f); }
.card.build { border-style: dashed; border-color: var(--gold); }
.box-bar { display: none; }
#boxDialog h3:focus { outline: none; }
.opt:focus-visible, .bstep button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 720px) {
  .box-layout { grid-template-columns: 1fr; }
  .box-sum { position: static; }
  .box-sum .row { display: none; } /* the bar at the bottom has the buttons on small screens */
  .box-bar { position: sticky; bottom: -1.5rem; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: 1rem -1.5rem -1.5rem; padding: .7rem 1.5rem; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 20px -16px rgba(0, 0, 0, .5); }
  .box-bar strong { font: 700 1.15rem Georgia, serif; }
  .box-bar small { display: block; font: 400 .78rem system-ui, sans-serif; color: var(--muted); }
}

/* ---------- Entry page banner and festival looks ----------
   One banner, restyled per category with colours, a pattern and an emoji (no image files). html[data-fest] also gives the
   whole page the festival's accent colour and hero tint; html[data-fest-type="festival"] swaps the floating beans for the festival's symbol. */
:root {
  --p-dots: radial-gradient(rgba(255, 255, 255, .24) 1.5px, transparent 2px) 0 0 / 18px 18px;
  --p-stripes: repeating-linear-gradient(135deg, rgba(255, 255, 255, .14) 0 8px, transparent 8px 20px);
  --p-confetti: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .5) 2px, transparent 3px) 0 0 / 46px 46px, radial-gradient(circle at 70% 70%, rgba(255, 255, 255, .35) 3px, transparent 4px) 0 0 / 62px 62px;
  --p-snow: radial-gradient(circle, rgba(255, 255, 255, .7) 2px, transparent 3px) 0 0 / 54px 54px, radial-gradient(circle, rgba(255, 255, 255, .4) 1.5px, transparent 2.5px) 27px 27px / 54px 54px;
  --p-stars: radial-gradient(rgba(255, 244, 200, .8) 1px, transparent 1.6px) 0 0 / 34px 34px, radial-gradient(rgba(255, 244, 200, .45) 1px, transparent 1.6px) 17px 17px / 34px 34px;
  --p-lines: repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 2px, transparent 2px 16px);
}
.fest-banner { position: relative; overflow: hidden; color: #fff; background: linear-gradient(100deg, var(--f1, #2f1b10) 0%, var(--f2, #8e3f1e) 58%, var(--f3, #d9a05b) 100%); }
.fest-banner::before { content: ""; position: absolute; inset: 0; background: var(--pat, var(--p-dots)); opacity: .9; pointer-events: none; }
.fest-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--edge, var(--f3, #d9a05b)); }
.fest-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 1rem; max-width: 1100px; margin: 0 auto; padding: 1.9rem 3rem .9rem 1.25rem; } /* top space clears the chocolate drips under the header */
.fest-glyph { flex: none; font-size: 2.1rem; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); animation: bob 3.4s ease-in-out infinite; }
.fest-glyph::before { content: var(--fg, "✨"); }
.fest-text { flex: 1; display: grid; gap: .1rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.fest-text strong { font: 700 .78rem system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; opacity: .92; }
.fest-text span { font: 600 1.05rem/1.4 Georgia, serif; }
.fest-banner .btn { flex: none; background: rgba(255, 255, 255, .95); color: #2a160c; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6); }
.fest-banner .btn:hover:not(:disabled) { background: #fff; }
.fest-x { position: absolute; z-index: 2; right: .6rem; top: .55rem; width: 1.9rem; height: 1.9rem; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .22); color: #fff; font-size: 1.2rem; line-height: 1; transition: background .2s; }
.fest-x:hover { background: rgba(0, 0, 0, .4); }
@media (max-width: 640px) { .fest-in { flex-wrap: wrap; padding: 1.9rem 2.6rem .9rem 1rem; gap: .6rem .8rem; } .fest-glyph { font-size: 1.7rem; } .fest-banner .btn { margin-left: auto; padding: .45rem .9rem; } }

/* page look while a festival banner is on */
html[data-fest] { --accent: var(--fa, #b5532b); --accent-dark: var(--fb, #8e3f1e); }
html[data-fest-type="festival"] .bean { background: none; display: grid; place-items: center; font-size: calc(var(--s) * .9); line-height: 1; }
html[data-fest-type="festival"] .bean::before { content: var(--pg, var(--fg)); }
html[data-fest-type="festival"] .hero .eyebrow { color: #fff; border-color: rgba(255, 255, 255, .55); }

/* the categories: colours (banner left to right), accent, hero tint, symbol, pattern, bottom edge */
html[data-fest="new-product"] { --f1: #2f1b10; --f2: #8e3f1e; --f3: #d9a05b; --fg: "✨"; --pat: var(--p-stars); }
html[data-fest="discount"] { --f1: #7f1d1d; --f2: #d9381e; --f3: #f59e0b; --fg: "🏷️"; --pat: var(--p-stripes); --edge: repeating-linear-gradient(135deg, #fff 0 8px, #d9381e 8px 16px); }
html[data-fest="newyear"] { --f1: #0b1030; --f2: #2b2f77; --f3: #b9892f; --fg: "🎆"; --pg: "✨"; --pat: var(--p-stars); --fa: #5a4fcf; --fb: #3f35a8; --h1: #0b1030; --h2: #1e2260; --h3: #3b3f8f; }
html[data-fest="pongal"] { --f1: #4d3208; --f2: #b87a12; --f3: #e9c46a; --fg: "🌾"; --pat: var(--p-lines); --fa: #b87a12; --fb: #8a5509; --h1: #2a1d06; --h2: #6b4a0c; --h3: #b08a2a; }
html[data-fest="republic"] { --f1: #10264d; --f2: #1d3f7a; --f3: #ff9933; --fg: "☸️"; --pat: var(--p-dots); --edge: linear-gradient(90deg, #ff9933 33.3%, #fff 33.3% 66.6%, #138808 66.6%); --fa: #1d3f7a; --fb: #10264d; --h1: #0b1a36; --h2: #1d3f7a; --h3: #4a6ba5; }
html[data-fest="valentine"] { --f1: #4a0d2a; --f2: #c2185b; --f3: #ff80ab; --fg: "💝"; --pg: "❤️"; --pat: var(--p-confetti); --fa: #c2185b; --fb: #8e1145; --h1: #2d0618; --h2: #7d1040; --h3: #c2185b; }
html[data-fest="holi"] { --f1: #7b1fa2; --f2: #e91e63; --f3: #ffb300; --fg: "🎨"; --pg: "🎨"; --pat: var(--p-confetti); --edge: linear-gradient(90deg, #e91e63, #ff9800, #ffeb3b, #4caf50, #00bcd4, #7b1fa2); --fa: #d81b60; --fb: #a3154a; --h1: #3a0f55; --h2: #8e1b7e; --h3: #d9467a; }
html[data-fest="eid"] { --f1: #053b2e; --f2: #0d7a5f; --f3: #c9a227; --fg: "🌙"; --pg: "⭐"; --pat: var(--p-stars); --fa: #0d7a5f; --fb: #075a46; --h1: #032a21; --h2: #0a5b47; --h3: #2f8f77; }
html[data-fest="rakhi"] { --f1: #7a1f3d; --f2: #e8590c; --f3: #ffd166; --fg: "🎀"; --pat: var(--p-dots); --fa: #d9480f; --fb: #a33608; --h1: #4a1226; --h2: #9a3a1a; --h3: #d9772e; }
html[data-fest="independence"] { --f1: #0d4d1f; --f2: #138808; --f3: #ff9933; --fg: "☸️"; --pg: "⭐"; --pat: var(--p-dots); --edge: linear-gradient(90deg, #ff9933 33.3%, #fff 33.3% 66.6%, #138808 66.6%); --fa: #138808; --fb: #0b5f05; --h1: #07300f; --h2: #137a1c; --h3: #58a65a; }
html[data-fest="ganesh"] { --f1: #8a2c00; --f2: #e07a00; --f3: #ffc94d; --fg: "🌺"; --pg: "🌺"; --pat: var(--p-dots); --fa: #d96a00; --fb: #a85200; --h1: #4d1800; --h2: #a04a08; --h3: #d98a2a; }
html[data-fest="onam"] { --f1: #14532d; --f2: #c9a227; --f3: #f6d365; --fg: "🌼"; --pg: "🌼"; --pat: var(--p-confetti); --edge: linear-gradient(90deg, #14532d, #f6d365, #c62828, #f6d365, #14532d); --fa: #1d7a3e; --fb: #14532d; --h1: #0c3a1e; --h2: #1d7a3e; --h3: #8aa63a; }
html[data-fest="navratri"] { --f1: #4a148c; --f2: #d81b60; --f3: #ff9800; --fg: "💃"; --pg: "✨"; --pat: var(--p-confetti); --edge: linear-gradient(90deg, #ff9800, #d81b60, #7b1fa2, #00acc1, #ff9800); --fa: #a4247f; --fb: #7b1b61; --h1: #2f0a5a; --h2: #8a1f6e; --h3: #d9582f; }
html[data-fest="diwali"] { --f1: #3b0a0a; --f2: #b3261e; --f3: #f6b93b; --fg: "🪔"; --pg: "✨"; --pat: var(--p-stars); --edge: repeating-linear-gradient(90deg, #f6b93b 0 10px, #b3261e 10px 14px); --fa: #c77800; --fb: #8f5500; --h1: #1a0505; --h2: #4a0e0e; --h3: #8a2a10; }
html[data-fest="christmas"] { --f1: #0b3d2e; --f2: #1b6b4a; --f3: #c62828; --fg: "🎄"; --pg: "❄️"; --pat: var(--p-snow); --edge: repeating-linear-gradient(135deg, #c62828 0 8px, #fff 8px 16px); --fa: #c62828; --fb: #8e1b1b; --h1: #06241b; --h2: #0f4a35; --h3: #1b6b4a; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 5rem; padding: 2.2rem 1rem 2.4rem; text-align: center; color: #e8d3bd; background: linear-gradient(#2f1b10, #22110a); font-size: .92rem; }
.site-footer .foot-hills { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: 70px; display: block; }
.site-footer .foot-brand { display: block; margin-bottom: .3rem; font: 700 1.3rem Georgia, serif; color: #fff; }
.site-footer .foot-brand em { font-style: normal; color: var(--gold); }
.site-footer a { color: #f3cf94; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 2rem; max-width: 1000px; margin: 0 auto 1.6rem; text-align: left; }
.foot-col h4 { margin: 0 0 .6rem; font: 700 .78rem system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.foot-col a, .foot-col address { display: block; margin: 0 0 .35rem; font-style: normal; line-height: 1.5; }
.foot-col p { margin: 0; max-width: 28ch; color: #d9c2aa; }
.foot-legal { margin: 0 0 .5rem; padding-top: 1.1rem; border-top: 1px solid rgba(243, 207, 148, .22); color: #f3e3d3; }
.foot-legal strong { letter-spacing: .04em; }
.foot-copy { margin: 0; font-size: .85rem; color: #b79f88; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 1.4rem; text-align: center; } .foot-col p { margin: 0 auto; } }

/* ---------- Document pages (contact, shipping, terms, privacy) ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 3.4rem 1.25rem 1rem; animation: view-in .55s var(--ease); }
.doc-head { text-align: center; margin-bottom: 1.8rem; }
.doc-head h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 2.7rem); }
.doc-head .leafline { margin-top: .8rem; }
.doc-head p { margin: .6rem 0 0; color: var(--muted); }
.doc-body { padding: 1.6rem 1.7rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 34px -26px rgba(47, 27, 16, .5); line-height: 1.7; }
.doc-body h2 { margin: 1.8rem 0 .4rem; padding-bottom: .3rem; font-size: 1.3rem; border-bottom: 1px solid var(--line); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: var(--cocoa-soft); }
.doc-body ul { padding-left: 1.2rem; }
.doc-body li { margin: .25rem 0; }
.doc-body a { color: var(--accent-dark); }
.doc-note { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 12px; background: #fff7e6; border: 1px solid #f0dcae; color: #6b4a14; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0 0 1.6rem; }
.contact-card { display: block; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: #fffaf3; color: var(--cocoa); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.contact-card:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -22px rgba(47, 27, 16, .6); text-decoration: none; }
.contact-card .k { display: block; margin-bottom: .2rem; font: 700 .72rem system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); }
.contact-card .v { display: block; font-size: 1.08rem; font-weight: 600; word-break: break-word; }
.contact-card.wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } .doc-body { padding: 1.2rem 1.1rem; } }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .hero { padding: 3.8rem 1.1rem 9rem; }
  .glow { width: 260px; height: 260px; right: -5%; }
  .site-header { padding: .65rem .9rem; }
  .site-header nav { gap: .75rem; }
  .card .pic { height: 205px; }
  .track li { font-size: .62rem; }
}

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .hero .rise { opacity: 1; transform: none; filter: none; }
  .beam, .orb, .float, .hero::after { display: none; }
  .scroll-bar { display: none; }
  .fest-glyph { animation: none; }
  .bean { display: none; }
}

/* ---------- Discounts and coupons ---------- */
.price s { font: 400 .85em system-ui, sans-serif; color: var(--muted); text-decoration-thickness: 1.5px; }
.card .price s { display: block; line-height: 1.1; } /* old price above the new one so the Add button keeps its room */
.card .pic .sale { position: absolute; z-index: 2; left: .7rem; bottom: .7rem; padding: .2rem .65rem; border-radius: 999px; background: var(--err); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .6); }
.card.soldout .pic .sale { display: none; }
.coupon-row { display: flex; gap: .5rem; margin: 1rem 0 .3rem; }
.coupon-row input { margin: 0; text-transform: uppercase; }
.coupon-row .btn { flex: none; }
#couponMsg { min-height: 1.2em; margin: .2rem 0 .4rem; }
#couponMsg.bad { color: var(--err); }
.cart-sum { margin: 0 0 .3rem; } .cart-sum:empty { display: none; }

/* ---------- Gift box: build card layout, theme pictures, free-box hint ---------- */
.card.build .foot { flex-direction: column; align-items: stretch; gap: .6rem; }
.card.build .foot .btn { width: 100%; text-align: center; }
.card.build .foot .price { font-size: 1.1rem; }
.opt .timg { position: absolute; left: .7rem; top: .7rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.opt:has(.timg) { padding-left: 3.5rem; }
.theme-pic { height: 96px; margin-bottom: .6rem; border-radius: 12px; overflow: hidden; background: var(--line); }
.theme-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.box-sum #boxHint { margin: 0 0 .4rem; min-height: 1.2em; color: var(--leaf-dark); font-size: .85rem; font-weight: 600; }
.sum s { color: var(--muted); font-size: .85em; }
