/* ==========================================================================
   Perni Prakashan — storefront styles (v2)
   Brand: logo olive (#547604), WoodMart green (#83b735), gold (#fbbc34), seed brown (#865229).
   Motif: पेरणी = sowing — sprouts grow, seeds drift, sections rise from the soil.
   ========================================================================== */
:root {
  --brand: #83B735;          /* exact brand green (WoodMart primary) */
  --primary: #547604;        /* logo green — buttons, links (white text passes contrast) */
  --primary-700: #3F5A03;
  --primary-900: #1C2A05;
  --primary-50: #F0F5E4;
  --gold: #FBBC34;           /* WoodMart secondary */
  --gold-300: #FDD47A;
  --seed: #865229;           /* brown seeds in the logo */
  --green: #3E7A1C;
  --green-50: #EAF4DD;
  --paper: #F8FAF3;
  --paper-2: #EFF4E4;
  --card: #FFFFFF;
  --ink: #1B2111;
  --ink-2: #4B5340;
  --ink-3: #7A8270;
  --line: #E2E8D5;
  --danger: #B3261E;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(28, 42, 5, .05), 0 4px 14px rgba(28, 42, 5, .05);
  --shadow: 0 18px 40px -18px rgba(28, 42, 5, .28);
  --shadow-lg: 0 40px 80px -30px rgba(28, 42, 5, .45);
  --glow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -20px rgba(84, 118, 4, .55);
  --font: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Baloo 2", "Mukta", system-ui, sans-serif;
  --serif: var(--display);
  --mr: var(--font);
  --ease: cubic-bezier(.22, .9, .24, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --container: 1260px;
  --header-h: 112px;
  --ticker-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.mr { letter-spacing: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.ico { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons & forms ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--display); font-weight: 600; font-size: 15.5px; line-height: 1; white-space: nowrap;
  transition: transform .35s var(--spring), box-shadow .3s, background .25s, color .25s, border-color .25s;
}
.btn .ico { transition: transform .3s var(--spring); }
.btn:hover .ico:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: linear-gradient(135deg, var(--primary) 0%, #6B9410 100%); color: #fff; box-shadow: 0 10px 24px -10px rgba(84,118,4,.7); }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(84,118,4,.75); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(251,188,52,.9); }
.btn--gold:hover { background: #FFC94F; color: var(--ink); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.6); border-color: var(--line); color: var(--ink); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: var(--paper); transform: translateY(-2px); }
.btn--glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-2px); }
.btn--sm { padding: 9px 15px; font-size: 14px; }
.btn--lg { padding: 17px 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink-2); }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50);
}
.field small { color: var(--ink-3); }
.captcha__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha__row img { width: 180px; height: 60px; border-radius: 12px; border: 1px solid var(--line); background: var(--primary-50); user-select: none; }
.captcha__refresh { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--primary); cursor: pointer; transition: background .2s, color .2s; }
.captcha__refresh:hover { background: var(--primary); color: #fff; }
.captcha__refresh.spin svg { animation: captchaSpin .5s var(--ease); }
@keyframes captchaSpin { to { transform: rotate(360deg); } }
.captcha__row input { flex: 1 1 180px; min-width: 0; letter-spacing: .25em; text-transform: uppercase; font-weight: 600; }
.captcha__row input::placeholder { letter-spacing: normal; text-transform: none; font-weight: 400; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }

.alert { padding: 13px 18px; border-radius: var(--radius-sm); margin: 16px 0; font-weight: 500; animation: slideDown .4s var(--ease); }
.alert--success { background: var(--green-50); color: var(--green); }
.alert--error { background: #FDECEA; color: var(--danger); }
.alert--info { background: #FFF5DD; color: #7A5A0B; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Scroll progress + announcement ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; background: linear-gradient(90deg, var(--brand), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

.announce { background: var(--primary-900); color: #DDE8C8; font-size: 13.5px; overflow: hidden; }
.announce__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.announce__inner > * { display: inline-flex; align-items: center; gap: 6px; }
.announce .ico { color: var(--gold); }
.announce a:hover { color: #fff; }

/* ---------- Header (glass) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 250, 243, .72); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid rgba(226, 232, 213, .7); transition: transform .4s var(--ease), box-shadow .3s, background .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px -20px rgba(28,42,5,.35); background: rgba(255, 255, 255, .82); }
.site-header.hide { transform: translateY(-100%); }
.header__main { position: relative; display: flex; align-items: center; gap: 24px; padding-top: 8px; padding-bottom: 8px; transition: padding .3s; }
.site-header.scrolled .header__main { padding-top: 4px; padding-bottom: 4px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { width: 46px; height: 46px; border-radius: 14px; background: var(--primary); color: var(--gold-300); display: grid; place-items: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__local { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--primary); }
.brand__en { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.brand--light .brand__local { color: #fff; }
.brand--light .brand__en { color: #CFD8C4; }
.brand--light .brand__mark { background: var(--brand); color: #fff; }
.brand__logo { height: 54px; width: auto; max-width: 220px; object-fit: contain; transition: height .3s var(--ease), transform .4s var(--spring); }
.brand:hover .brand__logo { transform: rotate(-3deg) scale(1.04); }
.site-header.scrolled .brand__logo { height: 44px; }
.brand--light .brand__logo { height: 70px; }

.search { position: relative; flex: 1; display: flex; }
.search input {
  width: 100%; padding: 13px 56px 13px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: rgba(255,255,255,.9);
  transition: border-color .2s, box-shadow .3s;
}
.search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 5px var(--primary-50), var(--shadow-sm); }
.search button { position: absolute; right: 5px; top: 5px; bottom: 5px; width: 44px; border-radius: 999px; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; transition: transform .3s var(--spring); }
.search button:hover { transform: scale(1.08) rotate(-8deg); }
.search__suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; animation: slideDown .25s var(--ease); }
.search__suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--paper-2); }
.search__suggest a:hover, .search__suggest a.active { background: var(--paper); color: inherit; }
.search__suggest img { width: 36px; height: 54px; object-fit: cover; border-radius: 6px; }
.search__suggest .s-title { font-weight: 600; line-height: 1.2; }
.search__suggest .s-meta { font-size: 13px; color: var(--ink-3); }
.search__suggest .s-all { justify-content: center; font-weight: 600; color: var(--primary); }

.header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); transition: background .2s, color .2s, transform .3s var(--spring); }
.icon-btn:hover { background: var(--primary-50); color: var(--primary); transform: translateY(-1px); }
.icon-btn__label { font-weight: 600; font-size: 14px; }
.badge { position: absolute; top: 1px; right: -1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.badge.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.5) rotate(-10deg); } }
.menu-toggle { display: none; }

/* Main menu (under the search bar) */
.mainnav { flex: 1; display: flex; justify-content: center; }
.mainnav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mainnav__list > li { position: relative; }
.mainnav__list > li > a { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 22px 14px; font-family: var(--display); font-weight: 600; font-size: 16.5px; color: var(--ink-2); white-space: nowrap; }
.mainnav__list > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 14px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--gold)); transform: scaleX(0); transition: transform .4s var(--spring); }
.mainnav__list > li > a:hover { color: var(--primary); }
.mainnav__list > li > a:hover::after, .mainnav__list > li > a.active::after { transform: scaleX(1); }
.mainnav__list > li > a.active { color: var(--primary); }
.mainnav .caret { transition: transform .3s var(--ease); }
.has-mega:hover .caret, .has-mega:focus-within .caret { transform: rotate(180deg); }
.search-toggle .ico { transition: transform .4s var(--spring); }
.search-toggle[aria-expanded="true"] { background: var(--primary); color: #fff; }
.search-toggle[aria-expanded="true"] .ico { transform: rotate(90deg) scale(.9); }

/* Search panel — drops down below the header row */
.search-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 65; padding: 18px 0 20px; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(28,42,5,.35); opacity: 0; visibility: hidden; transform: translateY(-14px); transition: opacity .3s var(--ease), transform .45s var(--spring), visibility 0s .3s; }
.search-panel.open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .45s var(--spring); }
.search-panel__inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; max-width: 860px; }
.search-panel .search input { padding: 16px 60px 16px 22px; font-size: 17px; }
.search-panel .search button { width: 50px; }
.search-panel__chips { grid-column: 1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-3); }
.search-panel__chips a { padding: 5px 13px; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-weight: 500; transition: background .2s, color .2s, transform .3s var(--spring); }
.search-panel__chips a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.search-panel__close { grid-column: 2; grid-row: 1; }
.search-panel .search { z-index: 5; }
.search-panel.open .search-panel__chips a { animation: popIn .5s var(--spring) both; }
.search-panel.open .search-panel__chips a:nth-child(n) { animation-delay: calc(.05s * var(--i, 1)); }
.mega { position: absolute; top: 100%; left: -8px; z-index: 70; width: min(640px, 90vw); padding: 16px; border-radius: var(--radius); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: 20% 0; transition: opacity .25s var(--ease), transform .35s var(--spring), visibility 0s .25s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .35s var(--spring); }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mega__grid a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); transition: background .2s, transform .3s var(--spring); }
.mega__grid a:hover { background: var(--primary-50); transform: translateX(3px); }
.mega__grid a .ico { color: var(--primary); }
.mega__grid b { display: block; font-family: var(--display); font-weight: 600; line-height: 1.25; }
.mega__grid small { color: var(--ink-3); font-size: 12.5px; }
.mega__all { grid-column: 1 / -1; background: linear-gradient(120deg, var(--primary), #6E9A12); color: #fff !important; }
.mega__all .ico, .mega__all small { color: rgba(255,255,255,.85) !important; }
.mega__all:hover { background: linear-gradient(120deg, var(--primary-700), var(--primary)) !important; }
.drawer-nav a.is-current { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.drawer-nav__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 4px 10px; }

/* ---------- Drawers & toasts ---------- */
.scrim { position: fixed; inset: 0; background: rgba(28, 42, 5, .4); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); background: var(--paper); z-index: 100; display: flex; flex-direction: column; transition: transform .45s var(--ease); box-shadow: var(--shadow-lg); }
.drawer--right { right: 0; transform: translateX(105%); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.drawer--left { left: 0; transform: translateX(-105%); width: min(330px, 88vw); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: var(--radius-sm); font-weight: 500; opacity: 0; transform: translateX(-12px); transition: background .2s, opacity .4s var(--ease), transform .4s var(--ease); }
.drawer.open .drawer-nav a { opacity: 1; transform: none; }
.drawer.open .drawer-nav a:nth-child(n) { transition-delay: calc(var(--i, 0) * 35ms); }
.drawer-nav a:hover { background: var(--primary-50); }
.drawer-nav .ico { color: var(--primary); }
.drawer-nav small { color: var(--ink-3); display: block; font-size: 12px; line-height: 1; }
.drawer-nav hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }

.mini-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); animation: slideDown .35s var(--ease); }
.mini-item img { width: 60px; height: 90px; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow-sm); }
.mini-item .t { font-weight: 600; line-height: 1.25; }
.mini-item .m { font-size: 13px; color: var(--ink-3); }
.mini-foot { position: sticky; bottom: -16px; background: var(--paper); padding: 16px 0; margin-top: 8px; }
.mini-foot .row { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.ship-meter { background: var(--paper-2); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; margin-bottom: 12px; }
.ship-meter .bar { height: 7px; background: var(--line); border-radius: 99px; margin-top: 7px; overflow: hidden; }
.ship-meter .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--brand)); border-radius: 99px; transition: width .6s var(--ease); }
.empty { text-align: center; padding: 40px 10px; color: var(--ink-3); }
.empty .ico { color: var(--line); margin-bottom: 8px; }
.loader { width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: rgba(27, 33, 17, .92); backdrop-filter: blur(10px); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: toastIn .45s var(--spring); pointer-events: auto; font-weight: 500; }
.toast .ico { color: var(--gold); }
.toast a { color: var(--gold); font-weight: 700; margin-left: 6px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }

/* ==========================================================================
   Hero slider
   ========================================================================== */
.hs { position: relative; overflow: hidden; background: var(--primary-900); color: #fff; isolation: isolate; touch-action: pan-y; }
/* The slider fills the screen below the header and leaves room for the award ticker. --chrome is measured in JS. */
.hs__track { display: grid; height: clamp(460px, calc(100svh - var(--chrome, 125px) - var(--ticker-h)), 820px); }
.hs__slide { position: relative; grid-area: 1 / 1; min-height: 0; overflow: hidden; display: grid; align-items: center; padding: 16px 0 96px; opacity: 0; visibility: hidden; transition: opacity .35s ease-in, visibility 0s .35s; }
.hs__slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease) .2s; z-index: 2; }
.hs__bg { position: absolute; inset: -4%; z-index: -2; background-size: cover; background-position: center; }
.hs__slide.is-active .hs__bg { animation: kenburns 9s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.12) translate3d(1.5%, 1%, 0); } to { transform: scale(1) translate3d(0, 0, 0); } }
.hs__bg--blur { filter: blur(40px) saturate(1.4) brightness(.55); inset: -12%; }
.hs__shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(900px 600px at 80% 30%, rgba(131,183,53,.25), transparent 60%),
  linear-gradient(100deg, rgba(20,30,4,.92) 0%, rgba(20,30,4,.7) 45%, rgba(20,30,4,.2) 100%); }
.hs__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; width: 100%; }
.hs__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; color: var(--gold-300); margin-bottom: 20px; }
.hs__title { font-size: clamp(34px, min(5.4vw, 8.4vh), 76px); line-height: 1.12; color: #fff; margin-bottom: 16px; font-weight: 700; }
.hs__title--long { font-size: clamp(28px, min(3.6vw, 6vh), 52px); line-height: 1.2; }
.hs__title em { font-style: normal; }
.hs__title em .w { background: linear-gradient(90deg, var(--gold) 0%, #D7F08A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hs__title .w { display: inline-block; }
.hs__lead { font-size: clamp(15px, 1.5vw, 18px); color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: clamp(16px, 3vh, 30px); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hs__cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hs__price { font-family: var(--display); font-size: 34px; font-weight: 700; color: var(--gold); margin-right: 6px; }
.hs__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hs__meta span { font-size: 13.5px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.85); }

/* Content entrance (staggered) — runs each time a slide becomes active */
/* Hidden state lives in the keyframe "from" so outgoing slides keep their content while fading. */
.hs__slide.is-active [data-anim] { animation: riseIn .9s var(--ease) both; animation-delay: calc(.4s + var(--d, 0) * .1s); }
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hs__slide.is-active .hs__title .w { animation: wordUp .9s var(--ease) both; animation-delay: calc(.45s + var(--w) * .08s); }
@keyframes wordUp { from { opacity: 0; transform: translateY(.6em) rotate(4deg); } to { opacity: 1; transform: none; } }

/* Visual side */
.hs__visual { position: relative; height: clamp(220px, calc(100svh - var(--chrome, 125px) - var(--ticker-h) - 150px), 500px); perspective: 1400px; }
/* Three covers side by side with clear gaps — never overlapping. Widths are % of the visual column. */
.fan { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5%; padding: 0 2%; container-type: size; }
.fan__book { position: relative; flex: 0 0 auto; width: min(28cqw, 58cqh); aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; box-shadow: var(--glow), 0 30px 60px -20px rgba(0,0,0,.7); background: #fff; transform: translateY(var(--y)) rotate(var(--r)); transition: transform .5s var(--ease), box-shadow .4s; }
.fan__book img { width: 100%; height: 100%; object-fit: cover; }
.fan__book:nth-child(1) { --r: -3deg; --y: 7%; }
.fan__book:nth-child(2) { --r: 0deg; --y: -6%; width: min(32cqw, 66cqh); }
.fan__book:nth-child(3) { --r: 3deg; --y: 9%; }
.fan__book:hover { box-shadow: var(--glow), 0 40px 70px -20px rgba(0,0,0,.8); }
.hs__slide.is-active .fan__book { animation: fanIn 1.1s var(--spring) both, floaty 6s ease-in-out 1.3s infinite; }
.hs__slide.is-active .fan__book:nth-child(1) { animation-delay: .3s, 1.5s; }
.hs__slide.is-active .fan__book:nth-child(2) { animation-delay: .15s, 1.3s; }
.hs__slide.is-active .fan__book:nth-child(3) { animation-delay: .45s, 1.8s; }
@keyframes fanIn { from { opacity: 0; transform: translateY(40%) rotate(0) scale(.8); } }
@keyframes floaty { 0%, 100% { transform: translateY(var(--y)) rotate(var(--r)); } 50% { transform: translateY(calc(var(--y) - 12px)) rotate(var(--r)); } }

.spot { position: absolute; inset: 0; display: grid; place-items: center; container-type: size; }
.spot__book { position: relative; width: min(340px, 64cqw, 74cqh); border-radius: 14px; overflow: hidden; box-shadow: var(--glow), 0 50px 80px -30px rgba(0,0,0,.8); transform: rotateY(-16deg) rotateX(4deg); transition: transform .6s var(--ease); }
.spot__book img { width: 100%; }
.spot__book::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-100%); }
.hs__slide.is-active .spot__book { animation: spotIn 1.2s var(--spring) .2s both; }
.hs__slide.is-active .spot__book::after { animation: shine 2.4s var(--ease) 1.2s; }
.spot:hover .spot__book { transform: rotateY(0) rotateX(0) scale(1.02); }
@keyframes spotIn { from { opacity: 0; transform: rotateY(-50deg) translateX(80px) scale(.85); } }
@keyframes shine { to { transform: translateX(100%); } }
.spot__badge { position: absolute; top: 12%; right: 10%; z-index: 4; width: 110px; height: 110px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 700; line-height: 1.05; font-size: 15px; box-shadow: 0 20px 40px -10px rgba(251,188,52,.6); animation: spin 18s linear infinite; }
.spot__badge span { animation: spin 18s linear infinite reverse; display: block; }

/* Sprout that grows (brand motif) */
.sprout-draw { position: absolute; left: -6%; bottom: -2%; width: 40%; max-width: 240px; z-index: -1; opacity: .6; pointer-events: none; }
.sprout-draw path { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.sprout-draw .leaf { fill: rgba(131,183,53,.18); }
.hs__slide.is-active .sprout-draw path { animation: draw 2.4s var(--ease) .4s forwards; }
.hs__slide.is-active .sprout-draw path:nth-child(2) { animation-delay: 1s; }
.hs__slide.is-active .sprout-draw path:nth-child(3) { animation-delay: 1.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Drifting seeds & leaves */
.seeds { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.seeds i { position: absolute; top: -40px; left: var(--x); width: var(--s); height: calc(var(--s) * .55); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--c, var(--seed)); opacity: .75; animation: fall var(--t) linear var(--dl) infinite; }
.seeds i.lf { height: var(--s); border-radius: 0 100% 0 100%; background: linear-gradient(135deg, var(--brand), #3F5A03); opacity: .55; }
@keyframes fall {
  0% { transform: translate3d(0, -5vh, 0) rotate(0); }
  50% { transform: translate3d(40px, 50vh, 0) rotate(200deg); }
  100% { transform: translate3d(-20px, 105vh, 0) rotate(400deg); }
}

/* Delivery slide */
.road { position: absolute; left: 0; right: 0; bottom: 22%; height: 4px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 34px, transparent 34px 64px); animation: road 1.2s linear infinite; }
@keyframes road { to { background-position: -64px 0; } }
.truck { position: absolute; left: 50%; bottom: calc(22% + 6px); transform: translateX(-50%); color: var(--gold); animation: bob .6s ease-in-out infinite alternate; filter: drop-shadow(0 18px 20px rgba(0,0,0,.4)); }
@keyframes bob { to { transform: translate(-50%, -4px); } }
.paychips { position: absolute; inset: 8% 6% auto; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.paychips span { padding: 10px 18px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); font-weight: 700; font-family: var(--display); }
.hs__slide.is-active .paychips span { animation: popIn .7s var(--spring) both; animation-delay: calc(.3s + var(--i) * .1s); }
@keyframes popIn { from { opacity: 0; transform: scale(.4) translateY(20px); } }

/* Author slide */
.ring { position: absolute; inset: 0; display: grid; place-items: center; container-type: size; }
.ring__svg { width: min(420px, 92cqw, 96cqh); aspect-ratio: 1; animation: spin 26s linear infinite; }
.ring__svg text { fill: rgba(255,255,255,.75); font-family: var(--display); font-size: 15px; letter-spacing: 3px; }
.ring__core { position: absolute; width: min(220px, 48cqw, 50cqh); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #EAF4DD); display: grid; place-items: center; box-shadow: var(--glow); }
.ring__core img { width: 58%; }
.hs__slide.is-active .ring__core { animation: popIn 1s var(--spring) .3s both; }

/* Controls */
.hs__nav { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 5; }
.hs__nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hs__dots { display: flex; gap: 10px; flex: 1; max-width: 640px; }
.hs__dot { flex: 1; min-width: 0; background: none; border: 0; padding: 10px 0 0; text-align: left; color: rgba(255,255,255,.55); font-size: 12.5px; font-weight: 600; letter-spacing: .03em; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.hs__dot::before, .hs__dot::after { content: ""; position: absolute; top: 0; left: 0; height: 3px; border-radius: 3px; }
.hs__dot::before { right: 0; background: rgba(255,255,255,.22); }
.hs__dot::after { width: 0; background: var(--gold); }
.hs__dot.is-active { color: #fff; }
.hs__dot.is-active::after { animation: progress var(--dur, 7s) linear forwards; }
.hs.is-paused .hs__dot.is-active::after { animation-play-state: paused; }
.hs__dot.is-done::after { width: 100%; }
@keyframes progress { to { width: 100%; } }
.hs__arrows { display: flex; gap: 10px; }
.hs__arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; transition: background .2s, transform .3s var(--spring); }
.hs__arrow:hover { background: var(--gold); color: var(--ink); transform: scale(1.08); }
.hs__arrow--prev .ico { transform: rotate(180deg); }
.hs__count { font-family: var(--display); font-weight: 700; color: rgba(255,255,255,.6); font-size: 14px; min-width: 52px; text-align: right; }
.hs__count b { color: #fff; font-size: 22px; }
.hs__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 4; width: 100%; height: 60px; color: var(--paper); pointer-events: none; }

/* ---------- Ticker ---------- */
.ticker { position: relative; background: var(--gold); color: var(--ink); overflow: hidden; padding: 14px 0; transform: rotate(-1deg); margin: -10px -2% 0; width: 104%; box-shadow: var(--shadow); z-index: 3; }
.ticker__track { display: flex; gap: 44px; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 17px; white-space: nowrap; }
.ticker span::after { content: ""; width: 9px; height: 12px; margin-left: 32px; border-radius: 50%; background: var(--seed); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 88px 0; }
.section--tint { background: var(--paper-2); }
.section--blob::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(131,183,53,.18), transparent 65%); pointer-events: none; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 36px; }
.section__head h2 { font-size: clamp(30px, 4vw, 46px); margin: 0; }
.section__head h2 .mr { display: flex; width: fit-content; align-items: center; gap: 8px; font-size: 15px; color: var(--primary); font-weight: 600; margin-bottom: 8px; padding: 5px 14px 5px 10px; border-radius: 999px; background: var(--primary-50); letter-spacing: .02em; }
.section__head h2 .mr::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(131,183,53,.25); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary); padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; transition: all .3s var(--ease); }
.link-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.link-arrow .ico { transition: transform .3s var(--spring); }
.link-arrow:hover .ico { transform: translateX(4px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); background: var(--primary-50); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero { position: relative; overflow: hidden; background: radial-gradient(1000px 500px at 85% -10%, rgba(251, 188, 52, .2), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(131, 183, 53, .18), transparent 60%), var(--paper); }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); margin-bottom: 16px; }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 560px; margin-bottom: 28px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }


/* ---------- Book card ---------- */
.grid-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 24px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 230px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 24px; margin: -10px -4px 0; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); transition: transform .5s var(--ease); }
.card__cover { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #fff, var(--paper-2)); box-shadow: 0 18px 30px -18px rgba(28, 42, 5, .45); transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .5s var(--ease), box-shadow .4s; will-change: transform; }
.card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card__cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.35), transparent 45%); opacity: 0; transition: opacity .3s; }
.card:hover .card__cover { box-shadow: 0 34px 50px -24px rgba(28, 42, 5, .55); }
.card:hover .card__cover::after { opacity: 1; }
.card:hover .card__cover img { transform: scale(1.06); }
.ribbon { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.chip { position: absolute; bottom: 12px; left: 12px; z-index: 2; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; gap: 4px; align-items: center; }
.chip--gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 14px -6px rgba(251,188,52,.9); }
.chip--gold::before { content: "★"; }
.chip--muted { background: rgba(27,33,17,.8); color: #fff; backdrop-filter: blur(6px); left: auto; right: 12px; }
.wish { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); color: var(--ink-2); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .4s var(--spring), background .2s, color .2s; }
.wish:hover { color: #E0475B; transform: scale(1.15); }
.wish.on { color: #fff; background: #E0475B; animation: heart .5s var(--spring); }
.wish.on svg { fill: currentColor; }
@keyframes heart { 30% { transform: scale(1.35); } }
.card__quick { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; opacity: 0; transform: translateY(14px); transition: opacity .35s var(--ease), transform .45s var(--spring); }
.card:hover .card__quick, .card:focus-within .card__quick { opacity: 1; transform: none; }
.card:hover .chip--gold { opacity: 0; }
.card__quick .btn { width: 100%; backdrop-filter: blur(8px); }
.card__body { padding: 16px 4px 0; display: flex; flex-direction: column; flex: 1; }
.card__title { font-family: var(--display); font-size: 18px; margin: 0 0 2px; line-height: 1.3; font-weight: 600; }
.card__sub { font-size: 13.5px; color: var(--ink-3); margin: 0; line-height: 1.35; }
.card__author { font-size: 13.5px; color: var(--primary); margin: 4px 0 10px; font-weight: 500; }
.card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card__add { width: 42px; height: 42px; padding: 0; border-radius: 50%; flex-shrink: 0; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price__now { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); }
.price__mrp { color: var(--ink-3); font-size: 14px; }

/* ---------- Stats band ---------- */
.stats-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--primary-900), var(--primary) 60%, #6E9A12); color: #fff; padding: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats-band::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 44V28M30 28c0-7-5-11-11-11 0 7 5 11 11 11zM30 31c0-6 4-10 10-10 0 6-4 10-10 10z' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.5'/%3E%3C/svg%3E"); pointer-events: none; }
.stat-n { position: relative; z-index: 1; }
.stat-n b { display: block; font-family: var(--display); font-size: clamp(38px, 5vw, 56px); line-height: 1; color: var(--gold); font-weight: 800; }
.stat-n span { font-size: 15px; color: rgba(255,255,255,.8); }

/* ---------- Promo banners ---------- */
.promo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.promo__card { position: relative; border-radius: var(--radius-lg); padding: 44px; overflow: hidden; color: #fff; min-height: 260px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; isolation: isolate; transition: transform .5s var(--ease); }
.promo__card:hover { transform: translateY(-4px); }
.promo__card h3 { font-size: clamp(26px, 3vw, 36px); max-width: 420px; color: #fff; }
.promo__card p { opacity: .9; max-width: 400px; }
.promo__card--primary { background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary) 55%, var(--brand) 120%); }
.promo__card--green { background: linear-gradient(135deg, #7A4A1E 0%, var(--seed) 50%, #B07A3C 100%); }
.promo__card .code { font-family: monospace; background: rgba(255,255,255,.18); border: 1.5px dashed rgba(255,255,255,.6); padding: 4px 12px; border-radius: 8px; font-size: 18px; letter-spacing: .1em; margin-bottom: 16px; }
.promo__card::before { content: ""; position: absolute; z-index: -1; right: -80px; bottom: -80px; width: 300px; height: 300px; border-radius: 50%; border: 50px solid rgba(255,255,255,.08); transition: transform 1s var(--ease); }
.promo__card:hover::before { transform: scale(1.15) rotate(20deg); }
.promo__art { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); width: 140px; opacity: .9; z-index: -1; }

/* ---------- Quote / author / newsletter ---------- */
.quote { text-align: center; max-width: 860px; margin: 0 auto; }
.quote blockquote { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 60px); margin: 0 0 12px; line-height: 1.2; background: linear-gradient(90deg, var(--primary), var(--brand), var(--gold), var(--primary)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradientShift 8s ease-in-out infinite; }
@keyframes gradientShift { 50% { background-position: 100% 0; } }
.quote cite { color: var(--ink-3); font-style: normal; }
.pen-line { display: block; width: 220px; height: 24px; margin: 0 auto 18px; }
.pen-line path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.reveal.in .pen-line path { animation: draw 1.6s var(--ease) .3s forwards; }
.testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); transition: transform .4s var(--spring), box-shadow .3s; }
.testi:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testi .stars { margin-bottom: 8px; }
.testi p { color: var(--ink-2); }
.testi b { display: block; }
.testi small { color: var(--ink-3); }
.stars { color: var(--line); letter-spacing: 2px; }
.stars .on { color: var(--gold); }
.stars .half { background: linear-gradient(90deg, var(--gold) 50%, var(--line) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.author-spot { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; }
.author-ring { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; margin: 0 auto; }
.author-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 30s linear infinite; }
.author-ring text { fill: var(--primary); font-family: var(--display); font-weight: 600; font-size: 14.5px; letter-spacing: 2.5px; }
.author-ring__core { position: absolute; inset: 17%; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, var(--primary-50)); display: grid; place-items: center; box-shadow: var(--shadow-lg), inset 0 0 0 8px #fff; }
.author-ring__core img { width: 52%; transition: transform .6s var(--spring); }
.author-ring:hover .author-ring__core img { transform: rotate(-12deg) scale(1.08); }
.author-ring__badge { position: absolute; right: 4%; bottom: 10%; background: var(--gold); color: var(--ink); border-radius: 18px; padding: 10px 16px; font-family: var(--display); font-weight: 700; line-height: 1.1; box-shadow: var(--shadow); animation: floatY 4s ease-in-out infinite; }
.author-ring__badge b { display: block; font-size: 28px; }

/* Flipbook — open book of cover wraps; the right leaf turns to the next title */
.author-spot:has(.flipbook) { grid-template-columns: minmax(0, 470px) 1fr; }
.author-ring:has(.flipbook) { aspect-ratio: auto; max-width: 470px; padding: 34px 14px 40px; }
.author-ring:has(.flipbook)::before { content: ""; position: absolute; inset: 0 8%; border-radius: 50%; background: radial-gradient(circle, var(--primary-50) 0%, transparent 68%); }
.author-ring:has(.flipbook) svg { display: none; }
.author-ring:has(.flipbook) .author-ring__badge { right: -2%; bottom: 4%; z-index: 4; }
.flipbook { position: relative; width: 100%; z-index: 1; }
.flipbook::before { content: ""; position: absolute; inset: -10px -12px -14px; border-radius: 10px; background: linear-gradient(#7a3b12, #5c2a0b); box-shadow: 0 30px 50px -18px rgba(40, 20, 5, .55); }
.flipbook__pg { overflow: hidden; background: #f6f1e7; }
.flipbook__pg img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
/* spine crease on every page */
.flipbook__pg::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.flipbook__pg--l::after { background: linear-gradient(to left, rgba(0, 0, 0, .3), rgba(0, 0, 0, .07) 9%, transparent 22%); }
.flipbook__pg--r::after { background: linear-gradient(to right, rgba(0, 0, 0, .3), rgba(0, 0, 0, .07) 9%, transparent 22%); }
.flipbook__pg--l { border-radius: 4px 0 0 4px; }
.flipbook__pg--r { border-radius: 0 4px 4px 0; }
/* before the page-flip script runs (or without JS): a static open book on the first spread */
.flipbook:not(.is-ready) .flipbook__book { display: flex; aspect-ratio: 880 / 647; }
.flipbook:not(.is-ready) .flipbook__pg { position: relative; width: 50%; }
.flipbook:not(.is-ready) .flipbook__pg:nth-child(n+3) { display: none; }
.flipbook.is-ready .flipbook__book { cursor: grab; }
@media (max-width: 1100px) { .author-spot:has(.flipbook) { grid-template-columns: minmax(0, 380px) 1fr; gap: 44px; } }
@media (max-width: 720px) {
  .author-spot:has(.flipbook) { grid-template-columns: minmax(0, 1fr); }
  .author-ring:has(.flipbook) { width: 100%; max-width: 400px; padding: 20px 16px 30px; }
  .author-ring:has(.flipbook) .author-ring__badge { right: 0; bottom: 0; padding: 8px 12px; }
  .author-ring:has(.flipbook) .author-ring__badge b { font-size: 22px; }
}
@keyframes floatY { 50% { transform: translateY(-10px); } }
.awards { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.awards span { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

.newsletter { background: linear-gradient(135deg, var(--primary-900), #2C3F07); color: #fff; border-radius: var(--radius-lg); padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.newsletter::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; left: -120px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(251,188,52,.3), transparent 65%); animation: floatY 7s ease-in-out infinite; }
.newsletter h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.newsletter p { color: #C9D3B8; margin: 0; }
.newsletter form { display: flex; gap: 8px; background: rgba(255,255,255,.95); padding: 6px; border-radius: 999px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.newsletter input { flex: 1; border: 0; padding: 0 18px; min-width: 0; background: transparent; color: var(--ink); }
.newsletter input:focus { outline: none; }

/* ---------- Sprout field (above footer, all pages) ---------- */
.field-row { display: block; width: 100%; height: 70px; margin-bottom: -1px; color: #1E2616; }
.field-row .s { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1s var(--spring); transition-delay: calc(var(--i) * 40ms); }
.field-row.in .s { transform: scaleY(1); }
.field-row .s path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }

/* ---------- Trust + footer ---------- */
.trust { background: #fff; border-top: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.trust__grid > div { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.trust__grid .ico { grid-row: span 2; color: var(--primary); width: 52px; height: 52px; padding: 12px; border-radius: 16px; background: var(--primary-50); transition: transform .5s var(--spring); }
.trust__grid > div:hover .ico { transform: rotate(-10deg) scale(1.1); }
.trust__grid strong { font-family: var(--display); font-size: 17px; }
.trust__grid span { font-size: 14px; color: var(--ink-3); }

.site-footer { background: #1E2616; color: #C4CDB6; padding-top: 48px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 19px; margin-bottom: 14px; }
.site-footer a { display: block; padding: 3px 0; transition: color .2s, transform .3s var(--ease); }
.site-footer a:hover { color: var(--gold); transform: translateX(4px); }
.footer__brand p { margin-top: 16px; max-width: 320px; }
.footer__contact { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer__contact .ico { color: var(--brand); margin-top: 3px; }
.footer__contact a { display: inline; padding: 0; }
.footer__contact a:hover { transform: none; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { padding: 6px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: 14px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; padding-bottom: 24px; font-size: 14px; }
.paywith b { display: inline-block; background: rgba(255,255,255,.08); padding: 3px 9px; border-radius: 6px; margin-left: 4px; font-size: 12px; font-weight: 600; color: #fff; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7); transition: transform .4s var(--spring); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 70%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { color: #fff; transform: scale(1.1) rotate(-8deg); }

/* ---------- Inner pages: hero band ---------- */
.page-head { position: relative; padding-top: 40px; padding-bottom: 16px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 4px; }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.crumbs a:hover { color: var(--primary); }

/* ---------- Shop page ---------- */
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 36px; padding-bottom: 72px; }
.filters { position: sticky; top: 150px; align-self: start; background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.filters h4 { font-size: 13px; font-family: var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 20px 0 10px; }
.filters h4:first-child { margin-top: 0; }
.filters a.f { display: flex; justify-content: space-between; padding: 7px 12px; border-radius: var(--radius-sm); font-size: 15px; transition: background .2s, padding .3s var(--ease); }
.filters a.f:hover { background: var(--paper); padding-left: 16px; }
.filters a.f.active { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.filters a.f small { color: var(--ink-3); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.toolbar select { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; }
.filter-toggle { display: none; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; transition: all .2s; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 460px 1fr; gap: 64px; padding: 24px 0 72px; }
.product__cover { position: sticky; top: 150px; align-self: start; }
.product__cover .frame { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 35%, #fff, var(--paper-2)); border-radius: var(--radius-lg); padding: 44px; perspective: 1200px; }
.product__cover .frame::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(131,183,53,.35), transparent 70%); filter: blur(20px); animation: floatY 6s ease-in-out infinite; }
.product__cover img { position: relative; width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 2deg)); transition: transform .5s var(--ease); animation: spotIn 1s var(--spring) both; }
.product h1 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 4px; }
.product .en-title { font-size: 20px; color: var(--ink-3); font-family: var(--display); margin-bottom: 8px; }
.product .by { color: var(--ink-2); margin-bottom: 14px; }
.product .by a { color: var(--primary); font-weight: 600; }
.buybox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 22px 0; box-shadow: var(--shadow-sm); }
.buybox .price__now { font-size: 40px; }
.buybox .price__mrp { font-size: 18px; }
.save { color: var(--green); font-weight: 700; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; margin: 8px 0 18px; }
.stock--in { color: var(--green); }
.stock--low { color: #B06A00; }
.stock--out { color: var(--danger); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 42px; height: 46px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); border-radius: 50%; transition: color .2s, transform .3s var(--spring); }
.qty button:hover { color: var(--primary); transform: scale(1.15); }
.qty input { width: 40px; text-align: center; border: 0; font-weight: 700; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm button { width: 30px; height: 34px; }
.qty--sm input { width: 30px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; font-size: 13.5px; color: var(--ink-2); }
.perks div { display: flex; gap: 8px; align-items: center; }
.perks .ico { color: var(--primary); }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.specs div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; }
.specs small { display: block; color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.specs b { font-weight: 600; }
.prose { color: var(--ink-2); font-size: 17.5px; line-height: 1.8; }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 28px; margin: 32px 0 20px; }
.tabs button { position: relative; background: none; border: 0; padding: 12px 0; font-weight: 600; color: var(--ink-3); }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--primary); transform: scaleX(0); transition: transform .35s var(--ease); }
.tabs button.active { color: var(--primary); }
.tabs button.active::after { transform: scaleX(1); }
.review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review b { margin-right: 8px; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { display: none; }
.rating-input label { font-size: 30px; color: var(--line); cursor: pointer; margin: 0; transition: transform .3s var(--spring), color .2s; }
.rating-input label:hover { transform: scale(1.2); }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--gold); }
.wish-inline.on { color: #E0475B; border-color: #E0475B; }
.wish-inline.on svg { fill: currentColor; }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 390px; gap: 32px; padding-bottom: 72px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h3 { font-size: 21px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 84px; height: 112px; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-sm); }
.cart-line .t { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.3; }
.cart-line .lt { font-family: var(--display); font-weight: 700; font-size: 19px; min-width: 80px; text-align: right; }
.remove { background: none; border: 0; color: var(--ink-3); display: inline-flex; gap: 4px; align-items: center; font-size: 13px; padding: 4px 0; }
.remove:hover { color: var(--danger); }
.summary { position: sticky; top: 150px; }
.summary .line { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-2); }
.summary .line.total { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 14px; font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); }
.summary .line.green { color: var(--green); font-weight: 600; }
.coupon-form { display: flex; gap: 8px; margin: 16px 0; }
.coupon-form input { flex: 1; padding: 10px 16px; border: 1.5px dashed var(--line); border-radius: 999px; text-transform: uppercase; min-width: 0; }
.checkout-steps { display: flex; gap: 8px; align-items: center; margin-bottom: 24px; font-weight: 600; color: var(--ink-3); font-size: 14px; flex-wrap: wrap; }
.checkout-steps span.on { color: var(--primary); }
.pay-opt { display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; cursor: pointer; transition: all .2s; }
.pay-opt:hover { border-color: var(--brand); }
.pay-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.pay-opt input { margin-top: 5px; accent-color: var(--primary); }
.pay-opt b { display: block; }
.pay-opt small { color: var(--ink-3); }
.summary-items { max-height: 280px; overflow-y: auto; margin-bottom: 12px; }
.summary-items .mini-item { grid-template-columns: 44px 1fr auto; }
.summary-items .mini-item img { width: 44px; height: 60px; }

/* ---------- Success / account ---------- */
.success { text-align: center; max-width: 640px; margin: 56px auto; }
.success__ico { width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--brand)); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; animation: pop .6s var(--spring); box-shadow: var(--glow); }
@keyframes pop { from { transform: scale(0) rotate(-30deg); } }
.auth { max-width: 460px; margin: 56px auto 80px; }
.auth .panel { padding: 36px; box-shadow: var(--shadow); }
.auth h1 { font-size: 32px; }
.account { display: grid; grid-template-columns: 250px 1fr; gap: 32px; padding-bottom: 72px; }
.account nav a { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: var(--radius-sm); font-weight: 500; }
.account nav a.active, .account nav a:hover { background: var(--primary-50); color: var(--primary); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 600; }
.table tr { transition: background .2s; }
.table tr:hover td { background: var(--paper); }
.table-wrap { overflow-x: auto; }
.status { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; text-transform: capitalize; background: var(--paper-2); color: var(--ink-2); }
.status--paid, .status--delivered, .status--confirmed { background: var(--green-50); color: var(--green); }
.status--shipped, .status--processing { background: #E6EEF8; color: #1E4E8C; }
.status--failed, .status--cancelled { background: #FDECEA; color: var(--danger); }
.status--pending { background: #FFF5DD; color: #7A5A0B; }
.timeline { display: flex; justify-content: space-between; position: relative; margin: 32px 0; }
.timeline::before { content: ""; position: absolute; top: 15px; left: 8%; right: 8%; height: 3px; background: var(--line); }
.timeline div { position: relative; text-align: center; flex: 1; font-size: 14px; color: var(--ink-3); }
.timeline i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--line); color: #fff; margin: 0 auto 8px; font-style: normal; font-weight: 700; }
.timeline .done { color: var(--ink); font-weight: 600; }
.timeline .done i { background: var(--green); animation: pop .5s var(--spring) both; }

/* ---------- Scroll reveal ("grow from the soil") ---------- */
.reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal--grow { transform-origin: 50% 100%; transform: scaleY(.85) translateY(30px); }
[data-stagger] > * { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--spring); transition-delay: calc(var(--i, 0) * 70ms); }
[data-stagger].in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, [data-stagger] > *, .field-row .s { opacity: 1 !important; transform: none !important; filter: none !important; }
  .sprout-draw path { stroke-dashoffset: 0; }
  .seeds { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .mainnav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header__main { justify-content: space-between; }
  .brand { margin-right: auto; }
}
@media (max-width: 1100px) {
  .product { grid-template-columns: 380px 1fr; gap: 40px; }
  .hs__inner { gap: 24px; }
  .author-spot { grid-template-columns: 280px 1fr; gap: 40px; }
  .mainnav__list > li > a { padding: 22px 10px; font-size: 15.5px; }
  .mainnav__list > li > a::after { left: 10px; right: 10px; }
  .header__main { gap: 14px; }
}
@media (max-width: 900px) {
  :root { --header-h: 80px; }
  .hs__track { height: max(520px, calc(100svh - var(--chrome, 90px) - var(--ticker-h))); }
  .hs__slide { padding: 12px 0 76px; align-items: stretch; }
  .hs__inner { display: flex; flex-direction: column; justify-content: center; gap: 12px; height: 100%; }
  .hs__inner { align-items: flex-start; }
  .hs__visual { order: -1; flex: 1 1 0; align-self: stretch; min-height: 130px; max-height: 340px; height: auto; }
  .hs__title { font-size: clamp(30px, 7vw, 48px); margin-bottom: 10px; }
  .hs__title--long { font-size: clamp(22px, 5.6vw, 34px); }
  .hs__kicker { margin-bottom: 10px; padding: 5px 12px; font-size: 12.5px; }
  .hs__meta { margin-bottom: 10px; }
  .hs__meta span:not(:first-child) { display: none; }
  .hs__price { font-size: 26px; }
  .fan { max-width: 560px; margin: 0 auto; }
  .spot__badge { width: 86px; height: 86px; font-size: 12.5px; right: 6%; }
  .hs__dot { font-size: 0; }
  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 36px 28px; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(330px, 88vw); z-index: 100; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; transform: translateX(-105%); transition: transform .45s var(--ease); overflow-y: auto; top: 0; }
  .filters.open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .product { grid-template-columns: 1fr; }
  .product__cover { position: static; max-width: 380px; margin: 0 auto; }
  .cart-layout, .account { grid-template-columns: 1fr; }
  .summary { position: static; }
  .promo, .testis, .newsletter { grid-template-columns: 1fr; }
  .author-spot { grid-template-columns: 1fr; text-align: center; }
  .author-spot .awards, .author-spot .hero__cta { justify-content: center; }
  .author-ring { max-width: 260px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --radius-lg: 24px; }
  .container { padding: 0 16px; }
  .hide-sm { display: none !important; }
  .header__main { gap: 8px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__local { font-size: 20px; }
  .brand__logo, .site-header.scrolled .brand__logo { height: 40px; max-width: 150px; }
  .search-panel { padding: 12px 0 14px; }
  .search-panel .search input { padding: 13px 54px 13px 18px; font-size: 16px; }
  .search-panel__chips { grid-column: 1 / -1; }
  .announce__inner { justify-content: center; }
  .hs__slide { padding: 10px 0 70px; }
  .hs__visual { min-height: 110px; }
  .hs__lead { font-size: 14.5px; -webkit-line-clamp: 3; }
  .hs__cta { gap: 8px; }
  .spot__badge { width: 64px; height: 64px; font-size: 11px; top: 4%; right: 4%; }
  .paychips { gap: 6px; inset: 2% 2% auto; }
  .paychips span { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
  .truck .ico { width: 84px; height: 84px; }

  .hs__cta .btn--lg { padding: 13px 18px; font-size: 15px; }
  .hs__arrow { width: 42px; height: 42px; }
  .hs__count { display: none; }
  .road { bottom: 14%; }
  .truck { bottom: calc(14% + 6px); }
  .ticker span { font-size: 15px; }
  .section { padding: 60px 0; }
  .section__head { flex-wrap: wrap; align-items: flex-start; margin-bottom: 26px; }
  .grid-books { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .rail { grid-auto-columns: 46%; gap: 14px; }
  .card__quick { display: none; }
  .card__title { font-size: 16px; }
  .price__now { font-size: 18px; }
  .wish { width: 34px; height: 34px; top: 8px; right: 8px; }
  .chip { left: 8px; bottom: 8px; }
  .ribbon { top: 8px; left: 8px; }
  .stats-band { padding: 30px 22px; gap: 22px 12px; }
  .promo__card { padding: 30px 24px; min-height: 220px; }
  .promo__art { width: 90px; right: 14px; opacity: .5; }
  .newsletter { padding: 32px 22px; }
  .newsletter form { flex-direction: column; border-radius: 20px; }
  .newsletter input { padding: 12px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .trust__grid { grid-template-columns: 1fr; gap: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; gap: 12px; }
  .cart-line img { width: 64px; height: 86px; }
  .cart-line .qty, .cart-line .lt { grid-column: 2; justify-self: start; text-align: left; }
  .perks { grid-template-columns: 1fr; }
  .product__cover .frame { padding: 28px; }
  .buy-row { gap: 10px; }
  .buy-row > .qty { flex: 0 0 auto; }
  .buy-row .btn--lg { flex: 1 1 calc(50% - 10px); padding: 15px 14px; font-size: 16px; }
  .buy-row .wish-inline { flex: 0 0 54px; padding: 0; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
@media (max-width: 380px) {
  .grid-books { gap: 18px 10px; }
  .hs__title { font-size: 28px; }
}
.hs__visual { transition: transform .4s ease-out; }

/* ---------- Inner page hero band ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 56px 0 64px; background: radial-gradient(800px 400px at 85% 0, rgba(251,188,52,.18), transparent 60%), radial-gradient(700px 400px at 0 100%, rgba(131,183,53,.2), transparent 60%), var(--paper-2); }
.page-hero::after { content: ""; position: absolute; z-index: -1; right: 6%; bottom: -30px; width: 220px; height: 260px; opacity: .14; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260'%3E%3Cpath d='M100 260V110' stroke='%23547604' stroke-width='6' fill='none'/%3E%3Cpath d='M100 150C70 150 40 130 34 92c36 0 62 20 66 58zM100 120c26-2 56-22 64-58-36 0-60 22-64 58z' fill='%23547604'/%3E%3C/svg%3E") no-repeat center / contain; animation: floatY 6s ease-in-out infinite; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 8px; animation: riseIn .9s var(--ease) both; }
.page-hero h1 .mr { display: flex; width: fit-content; align-items: center; gap: 8px; font-size: 15px; color: var(--primary); font-weight: 600; margin-bottom: 10px; padding: 5px 14px 5px 10px; border-radius: 999px; background: #fff; }
.page-hero h1 .mr::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(131,183,53,.25); }
.page-hero p { font-size: 18px; color: var(--ink-2); max-width: 640px; margin: 0; animation: riseIn .9s var(--ease) .15s both; }

/* Page heroes on the logo green (#547604) — used by every inner page */
.page-hero {
  color: #fff;
  background:
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 22px 22px,
    radial-gradient(760px 380px at 88% -10%, rgba(251, 188, 52, .26), transparent 62%),
    radial-gradient(680px 420px at -6% 110%, rgba(131, 183, 53, .55), transparent 62%),
    linear-gradient(135deg, var(--primary-700) 0%, var(--primary) 55%, #5f8406 100%);
}
.page-hero::after { filter: brightness(0) invert(1); opacity: .12; }
.page-hero h1 { color: #fff; }
.page-hero p, .page-hero .muted { color: rgba(255, 255, 255, .86); }
.page-hero .crumbs, .page-hero .crumbs a { color: rgba(255, 255, 255, .72); }
.page-hero .crumbs a:hover { color: var(--gold); }
.page-hero .eyebrow { color: var(--primary-900); background: var(--gold); }
.page-hero .checkout-steps { color: rgba(255, 255, 255, .55); }
.page-hero .checkout-steps span.on { color: var(--gold); }
.page-hero--center { text-align: center; }
.page-hero--center p { margin: 0 auto; font-size: 21px; }
.page-hero--center::after { right: auto; left: 5%; }
.page-hero--compact { padding: 40px 0 44px; margin-bottom: 32px; }
.page-hero--compact .page-head { padding-top: 0; padding-bottom: 0; }
/* About page intro — text left, portrait right (photo comes first in the markup so it leads on phones) */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; max-width: 1160px; }
.about-intro .prose { grid-column: 1; grid-row: 1; }
.about-photo { grid-column: 2; grid-row: 1; position: sticky; top: 110px; margin: 8px 14px 0 0; }
.about-photo::before { content: ""; position: absolute; inset: 16px -14px -14px 16px; border: 2px solid var(--gold); border-radius: 24px; z-index: -1; transition: transform .6s var(--spring); }
.about-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.about-photo figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 12px 16px; border-radius: 16px; color: #fff; font-size: 13px; line-height: 1.4; background: rgba(28, 42, 5, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.about-photo figcaption b { display: block; font-family: var(--display); font-size: 19px; color: var(--gold); }
.about-photo:hover::before { transform: translate(-6px, -6px); }
@media (max-width: 960px) {
  .about-intro { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about-intro .prose, .about-photo { grid-column: 1; grid-row: auto; }
  .about-photo { position: relative; top: 0; width: 100%; max-width: 340px; margin: 0 auto; }
  .about-photo img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
}
.page-hero--compact::after { width: 150px; height: 180px; bottom: -24px; }

/* ---------- Gallery (masonry + lightbox) ---------- */
.masonry { columns: 4 260px; column-gap: 14px; }
.masonry__item { position: relative; display: block; margin-bottom: 14px; break-inside: avoid; border-radius: 16px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-sm); cursor: zoom-in; }
.masonry__item img { width: 100%; height: auto; transition: transform .8s var(--ease), filter .4s; }
.masonry__item:hover img { transform: scale(1.06); filter: saturate(1.15); }
.masonry__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-weight: 600; font-size: 14px; background: linear-gradient(transparent, rgba(20,30,4,.85)); transform: translateY(100%); transition: transform .4s var(--ease); }
.masonry__item:hover .masonry__cap, .masonry__item:focus-visible .masonry__cap { transform: none; }
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(12,18,3,.92); backdrop-filter: blur(10px); animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1100px, 90vw); text-align: center; }
.lightbox img { max-height: 80vh; max-width: 100%; margin: 0 auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: popIn .45s var(--spring); }
.lightbox figcaption { color: #E6EDD8; margin-top: 14px; font-weight: 500; min-height: 1.5em; }
.lightbox__close, .lightbox__nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: background .2s, transform .3s var(--spring); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--ink); transform: scale(1.08); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; right: 20px; margin-top: -26px; }
.lightbox__nav--prev { left: 20px; right: auto; }
.lightbox__nav--prev .ico { transform: rotate(180deg); }
.lightbox__count { position: absolute; top: 32px; left: 28px; color: rgba(255,255,255,.7); font-family: var(--display); font-weight: 600; }

/* ---------- साहित्यरंग works list ---------- */
.works { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; gap: 14px; }
.work { position: relative; display: grid; grid-template-columns: 54px 80px 1fr auto; gap: 22px; align-items: center; padding: 16px 22px 16px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--spring), box-shadow .3s, border-color .3s; }
.work:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: transparent; }
.work::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(var(--brand), var(--gold)); transform: scaleY(0); transition: transform .4s var(--ease); }
.work:hover::before { transform: scaleY(1); }
.work__n { font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--primary-50); -webkit-text-stroke: 1.5px var(--brand); text-align: center; }
.work__cover { display: block; width: 80px; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); transform: perspective(600px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .4s var(--ease); }
.work__cover img { width: 100%; height: 100%; object-fit: cover; }
.work__cover--blank { display: grid; place-items: center; background: var(--paper-2); color: var(--ink-3); }
.work__type { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--primary); background: var(--primary-50); padding: 3px 10px; border-radius: 999px; margin-bottom: 6px; }
.work__body h3 { font-size: 20px; margin: 0 0 2px; font-weight: 600; }
.work__body p { margin: 0; color: var(--ink-3); font-size: 14.5px; }
.work__buy { display: flex; align-items: center; gap: 12px; }

/* ---------- प्रकाशित पुस्तके shelf ---------- */
.shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.shelf__item { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .45s var(--spring), box-shadow .3s; }
.shelf__item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.shelf__cover { display: block; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 30px -16px rgba(28,42,5,.5); transform: perspective(800px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .45s var(--ease); }
.shelf__cover img { width: 100%; height: 100%; object-fit: cover; }
.shelf__body h2 { font-size: 23px; margin: 0 0 4px; font-weight: 700; }
.shelf__meta { color: var(--primary); font-size: 14.5px; font-weight: 500; margin-bottom: 8px; }
.shelf__desc { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.shelf__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shelf__foot .price__now { margin-right: 6px; }

@media (max-width: 900px) {
  .shelf { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page-hero { padding: 36px 0 44px; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .masonry__item { margin-bottom: 10px; border-radius: 12px; }
  .masonry__cap { transform: none; font-size: 12.5px; padding: 22px 10px 8px; }
  .lightbox__nav { top: auto; bottom: 24px; margin: 0; right: calc(50% - 64px); }
  .lightbox__nav--prev { left: calc(50% - 64px); right: auto; }
  .work { grid-template-columns: 64px 1fr; gap: 14px; padding: 14px; }
  .work__n { position: absolute; top: 8px; right: 14px; font-size: 26px; }
  .work__cover { width: 64px; }
  .work__body h3 { font-size: 17px; padding-right: 36px; }
  .work__buy { grid-column: 2; }
  .shelf__item { grid-template-columns: 100px 1fr; gap: 16px; padding: 16px; }
  .shelf__body h2 { font-size: 19px; }
  .shelf__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Short screens (landscape phones, small laptops): drop the paragraph so headings and buttons fit. */
@media (max-height: 640px) {
  .hs__lead { display: none; }
}
@media (max-width: 900px) and (max-height: 740px) {
  .hs__lead { -webkit-line-clamp: 2; }
}
/* Floating WhatsApp button hides while the hero slider is on screen (it covered the slide buttons on phones). */
.wa-float { transition: transform .4s var(--spring), opacity .3s, visibility .3s; }
body.hero-in-view .wa-float { opacity: 0; visibility: hidden; transform: scale(.6); }

/* Hero slide 4: author portrait inside the rotating text ring */
.hs__shade--warm { background: radial-gradient(800px 600px at 75% 50%, rgba(134,82,41,.35), transparent 65%), linear-gradient(100deg, rgba(26,16,6,.94) 0%, rgba(26,16,6,.78) 45%, rgba(26,16,6,.45) 100%); }
.ring__core--photo { width: min(290px, 62cqw, 64cqh); padding: 0; background: #2A1A0A; border: 5px solid rgba(255,255,255,.92); overflow: visible; box-shadow: 0 0 0 10px rgba(251,188,52,.18), 0 40px 70px -25px rgba(0,0,0,.85); }
.ring__core--photo > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 38% 30%; transition: transform .8s var(--ease); }
.ring:hover .ring__core--photo > img { transform: scale(1.04); }
.ring__pen { position: absolute; right: 2%; bottom: 4%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); border: 3px solid var(--gold); animation: floatY 4s ease-in-out infinite; }
.ring__pen img { width: 62%; }

/* ---------- Browse by category: genre cards with real covers ---------- */
.genres { background:
  radial-gradient(700px 380px at 10% 0%, rgba(131,183,53,.14), transparent 60%),
  radial-gradient(600px 360px at 95% 100%, rgba(251,188,52,.14), transparent 60%),
  var(--paper); }
.genres__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.genres__head h2 { font-size: clamp(30px, 4.2vw, 50px); margin-bottom: 8px; }
.genres__head h2 em { font-style: normal; background: linear-gradient(90deg, var(--primary), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.genres__head p { color: var(--ink-3); font-size: 17px; margin: 0; }
.genres__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.genre { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: stretch; min-height: 200px; padding: 24px 0 24px 26px; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, var(--t1) 0%, var(--t2) 100%);
  box-shadow: 0 18px 34px -20px var(--t1); transition: transform .5s var(--spring), box-shadow .4s; }
.genre:hover { color: #fff; transform: translateY(-6px); box-shadow: 0 30px 50px -22px var(--t1); }
/* faint sprout pattern + light sweep */
.genre::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 42V27M28 27c0-6-4-10-10-10 0 6 4 10 10 10zM28 30c0-5 4-9 9-9 0 5-4 9-9 9z' fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.4'/%3E%3C/svg%3E"); }
.genre::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); transform: translateX(-110%); transition: transform .9s var(--ease); }
.genre:hover::after { transform: translateX(110%); }

.genre__text { display: flex; flex-direction: column; min-width: 0; z-index: 1; }
.genre__n { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .1em; opacity: .55; }
.genre h3 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.2; margin: 6px 0 4px; color: #fff; font-weight: 700; }
.genre small { font-size: 13.5px; opacity: .8; }
.genre__go { margin-top: auto; display: inline-flex; align-items: center; gap: 0; width: fit-content; padding: 9px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); font-family: var(--display); font-weight: 600; font-size: 14px; transition: background .3s, color .3s, gap .4s var(--spring), padding .4s var(--spring); }
.genre__go span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease); }
.genre:hover .genre__go { background: var(--gold); color: var(--ink); border-color: var(--gold); gap: 6px; padding: 9px 14px; }
.genre:hover .genre__go span { max-width: 60px; }

/* Cover stack on the right — covers stay mostly visible, and spread apart on hover */
.genre__stack { position: relative; width: 170px; margin: -6px 0 -40px; }
.genre__stack img { position: absolute; bottom: 18px; width: 96px; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; border: 3px solid rgba(255,255,255,.9); box-shadow: 0 16px 28px -10px rgba(0,0,0,.6); transition: transform .6s var(--spring); }
.genre__stack--1 img { right: 34px; transform: rotate(6deg); }
.genre__stack--2 img:nth-child(1) { right: 66px; transform: rotate(-8deg); z-index: 1; }
.genre__stack--2 img:nth-child(2) { right: 12px; transform: rotate(8deg) translateY(-14px); z-index: 2; }
.genre:hover .genre__stack--1 img { transform: rotate(0) translateY(-10px) scale(1.05); }
.genre:hover .genre__stack--2 img:nth-child(1) { transform: rotate(-12deg) translate(-18px, -6px); }
.genre:hover .genre__stack--2 img:nth-child(2) { transform: rotate(10deg) translate(6px, -22px); }
.genre__ico { position: absolute; right: 30px; bottom: 50px; width: 84px; height: 84px; border-radius: 24px; background: rgba(255,255,255,.14); display: grid; place-items: center; color: var(--gold); }

@media (max-width: 1100px) {
  .genres__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .genres__head { margin-bottom: 28px; text-align: left; }
  .genres__grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 2px 18px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .genres__grid::-webkit-scrollbar { display: none; }
  .genre { scroll-snap-align: center; min-height: 180px; padding: 20px 0 20px 20px; }
  .genre__stack { width: 140px; }
  .genre__stack img { width: 80px; }
  .genre__stack--2 img:nth-child(1) { right: 54px; }
}

/* Home "लेखक परिचय": author photo above the name */
.author-photo { position: relative; margin: 4px 0 26px; max-width: 520px; }
.author-photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--gold); border-radius: 22px; z-index: -1; transition: transform .6s var(--spring); }
.author-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 40% 35%; border-radius: 22px; box-shadow: var(--shadow-lg); transition: transform .8s var(--ease); }
.author-photo:hover::before { transform: translate(-6px, -6px); }
.author-photo:hover img { transform: scale(1.02); }
@media (max-width: 900px) {
  .author-photo { margin: 4px auto 26px; }
}
@media (max-width: 720px) {
  .author-photo::before { inset: 10px -8px -10px 8px; }
}
