/* =====================================================================
   OtakuOriginals — Minimalist Manga Aesthetic
   ===================================================================== */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --accent: #e63946;
  --soft-line: #e6e6e6;
  --radius: 4px;
  --shadow: 5px 5px 0 var(--ink);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* html carries the page colour so the looping background can sit above it */
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 80px; max-width: 100%; overflow-x: hidden; }
body { background: transparent; color: var(--ink); font-family: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; max-width: 100%; overflow-x: hidden; position: relative; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, .brand { font-family: var(--display); letter-spacing: -0.02em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon.lg { width: 30px; height: 30px; }

/* ---------- Infinite manga background loop (always on, behind content) ---------- */
.bg-loop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.bg-loop .dots { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: linear-gradient(135deg, #000 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,.4) 58%, #000 100%); mask-image: linear-gradient(135deg, #000 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,.4) 58%, #000 100%); }
.bg-loop .dots i { position: absolute; inset: -200px; background-image: radial-gradient(circle, rgba(17,17,17,.30) 1.5px, transparent 2px); background-size: 18px 18px; animation: dotsMove 20s linear infinite; }
@keyframes dotsMove { to { transform: translate3d(180px, 180px, 0); } }
.bg-loop .rays { position: absolute; left: 100%; top: 0; width: 150vmax; height: 150vmax; background: repeating-conic-gradient(rgba(230,57,70,.16) 0 4deg, transparent 4deg 12deg); -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 65%); mask-image: radial-gradient(circle, #000 0%, transparent 65%); animation: raysSpin 100s linear infinite; }
@keyframes raysSpin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.bg-loop .float, .bg-loop .bubble { position: absolute; bottom: 0; animation: floatUp linear infinite; }
.bg-loop .float { border: 2px solid rgba(17,17,17,.22); background: rgba(255,255,255,.35); }
.bg-loop .f1 { left: 6%; width: 80px; height: 108px; animation-duration: 30s; }
.bg-loop .f2 { left: 30%; width: 56px; height: 76px; background: rgba(230,57,70,.14); animation-duration: 38s; animation-delay: -12s; }
.bg-loop .f3 { left: 60%; width: 100px; height: 64px; animation-duration: 34s; animation-delay: -22s; }
.bg-loop .f4 { left: 84%; width: 64px; height: 88px; background: rgba(230,57,70,.14); animation-duration: 42s; animation-delay: -6s; }
.bg-loop .bubble { border: 2px solid rgba(17,17,17,.2); border-radius: 50%; background: rgba(255,255,255,.5); }
.bg-loop .b1 { left: 18%; width: 90px; height: 60px; animation-duration: 36s; animation-delay: -18s; }
.bg-loop .b2 { left: 74%; width: 70px; height: 48px; animation-duration: 44s; animation-delay: -30s; }
@keyframes floatUp { from { transform: translateY(20vh) rotate(-8deg); } to { transform: translateY(-120vh) rotate(10deg); } }
.bg-loop .sfx { position: absolute; left: 0; font-family: var(--display); font-weight: 700; font-size: 6rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(17,17,17,.16); white-space: nowrap; animation: sfxDrift linear infinite; }
.bg-loop .s1 { top: 16%; animation-duration: 45s; }
.bg-loop .s2 { top: 50%; font-size: 8rem; -webkit-text-stroke-color: rgba(230,57,70,.28); animation-duration: 58s; animation-delay: -25s; }
.bg-loop .s3 { top: 78%; animation-duration: 52s; animation-delay: -38s; }
@keyframes sfxDrift { from { transform: translateX(-50vw) rotate(-6deg); } to { transform: translateX(110vw) rotate(-6deg); } }

/* ---------- Tickers & manga band ---------- */
.ticker { background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ticker-track, .band-track { display: inline-flex; will-change: transform; animation: marquee 30s linear infinite; }
.ticker-track span { padding: 9px 26px; }
.ticker-track b { color: var(--accent); margin-right: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.band { background: var(--accent); color: #fff; overflow: hidden; white-space: nowrap; border-bottom: 2px solid var(--ink); }
.band-track { animation-duration: 40s; animation-direction: reverse; }
.band-track span { font-family: var(--display); font-weight: 700; font-size: 1.5rem; padding: 8px 22px; letter-spacing: .04em; }
.band-track span.out { color: transparent; -webkit-text-stroke: 1.5px #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 26px; font-weight: 600; font-size: .95rem; border: 2px solid var(--ink); border-radius: var(--radius); transition: transform .2s, box-shadow .2s, background .2s; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn-primary:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { background: var(--card); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn.block { display: block; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Navbar ---------- */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(250,250,250,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { font-size: 1.35rem; font-weight: 700; white-space: nowrap; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 22px; font-size: .9rem; font-weight: 500; margin-left: 8px; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width .25s; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.search-box { display: flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: var(--radius); padding: 7px 12px; background: var(--card); }
.search-box input { border: none; outline: none; background: none; font: inherit; font-size: .9rem; width: 170px; min-width: 0; }
.cart-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); transition: background .2s, color .2s; flex-shrink: 0; }
.cart-btn:hover { background: var(--ink); color: #fff; }
.cart-count { position: absolute; top: -8px; right: -8px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); transition: transform .25s; }
.cart-count.bump { transform: scale(1.4); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 100px; border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }
.eyebrow { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); margin-bottom: 18px; }
.hero-title { font-size: clamp(2.4rem, 8vw, 5.6rem); line-height: 1.02; font-weight: 700; margin-bottom: 22px; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { max-width: 480px; color: var(--muted); font-size: 1.05rem; margin-bottom: 32px; }
.reveal-text { display: block; overflow: hidden; }
.reveal-text > span { display: inline-block; transform: translateY(110%); animation: textUp .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-title .reveal-text:nth-child(2) > span { animation-delay: .15s; }
.fade-in { opacity: 0; transform: translateY(16px); animation: fadeUp .8s .55s ease forwards; }
.fade-in.delay { animation-delay: .75s; }
@keyframes textUp { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-lines { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-lines .line { position: absolute; background: var(--ink); top: 0; width: 2px; height: 0; transform: rotate(18deg); transform-origin: top; animation: grow 1.2s ease forwards; }
.hero-lines .l1 { right: 22%; animation-delay: .3s; }
.hero-lines .l2 { right: 12%; animation-delay: .5s; opacity: .35; }
.hero-lines .l3 { right: 32%; animation-delay: .7s; opacity: .15; }
@keyframes grow { to { height: 140%; } }
.hero-lines .panel { position: absolute; border: 2px solid var(--ink); opacity: 0; animation: fadeIn 1s 1s ease forwards; }
.hero-lines .p1 { right: 6%; bottom: 14%; width: 150px; height: 190px; background-color: var(--accent); background-image: radial-gradient(rgba(17,17,17,.35) 1.2px, transparent 1.6px); background-size: 7px 7px; transform: rotate(-4deg); }
.hero-lines .p2 { right: 15%; bottom: 22%; width: 120px; height: 150px; background: var(--card); transform: rotate(5deg); }
@keyframes fadeIn { to { opacity: 1; } }
.sfx-hero { position: absolute; right: 4%; top: 6%; font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 13vw, 10rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--ink); transform: rotate(-8deg); animation: sfxPulse 2.4s ease-in-out infinite; }
@keyframes sfxPulse { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-8deg) scale(1.07); } }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 2px solid var(--ink); background: rgba(255,255,255,.93); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 26px 18px; border-right: 1px solid var(--soft-line); }
.trust-item:last-child { border-right: none; }
.trust-item strong { display: block; font-family: var(--display); font-size: .98rem; }
.trust-item span { font-size: .8rem; color: var(--muted); }

/* ---------- Offers section ---------- */
.offers { padding-top: 60px; }
.offers .section-head { margin-bottom: 30px; }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.offer { position: relative; background: var(--card); border: 2px solid var(--ink); padding: 18px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.offer::after { content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; background-image: radial-gradient(rgba(230,57,70,.55) 1.3px, transparent 1.7px); background-size: 7px 7px; -webkit-mask-image: radial-gradient(circle, #000, transparent 70%); mask-image: radial-gradient(circle, #000, transparent 70%); }
.offer .o-min { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.offer h3 { font-size: 1.35rem; color: var(--accent); margin: 4px 0 6px; }
.offer p { font-size: .86rem; color: #333; line-height: 1.45; }

/* ---------- Shop ---------- */
.shop { padding-top: 70px; padding-bottom: 90px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.section-head h2 { position: relative; display: inline-block; font-size: clamp(1.5rem, 3.6vw, 2.3rem); line-height: 1.15; padding-bottom: 8px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 56%; height: 5px; background: var(--accent); transform: skewX(-25deg); }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { padding: 8px 18px; border: 2px solid var(--ink); border-radius: 99px; font-size: .88rem; font-weight: 500; background: var(--card); transition: all .2s; }
.pill:hover { background: var(--soft-line); }
.pill.active { background: var(--ink); color: #fff; }
#sortSelect { padding: 9px 14px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); font: inherit; font-size: .88rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.card { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 4/5; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--soft-line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.08); }
.card-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45; background-image: radial-gradient(rgba(17,17,17,.5) 1px, transparent 1.4px); background-size: 6px 6px; -webkit-mask-image: linear-gradient(200deg, transparent 62%, #000); mask-image: linear-gradient(200deg, transparent 62%, #000); }
.badge { position: absolute; z-index: 1; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border: 2px solid var(--ink); }
.badge.off { left: auto; right: 12px; background: var(--card); color: var(--ink); }
.sold { position: absolute; z-index: 1; inset: 0; background: rgba(250,250,250,.7); display: grid; place-items: center; font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.card-name { font-family: var(--display); font-size: 1.02rem; line-height: 1.3; font-weight: 600; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.price { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.old { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.card .btn { margin: 0 16px 16px; padding: 11px; font-size: .88rem; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- SEO content block ---------- */
.about { padding-top: 10px; padding-bottom: 70px; }
.about h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); margin-bottom: 14px; }
.about h3 { font-size: 1.05rem; margin-bottom: 8px; }
.about p { color: #333; max-width: 760px; margin-bottom: 18px; font-size: .96rem; }
.about ul { list-style: disc; padding-left: 20px; font-size: .92rem; color: #333; }
.about li { margin-bottom: 6px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 18px; background: rgba(255,255,255,.9); border: 2px solid var(--ink); padding: 22px; }
@media (max-width: 680px) { .about-grid { grid-template-columns: 1fr; gap: 18px; padding: 16px; } .about { padding-bottom: 44px; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #eee; padding: 60px 0 0; }
.footer .brand { color: #fff; font-size: 1.5rem; display: inline-block; margin-bottom: 12px; }
.footer .muted { color: #aaa; max-width: 340px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { font-size: .95rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .1em; }
.footer li { margin-bottom: 9px; font-size: .92rem; overflow-wrap: anywhere; }
.footer li a { color: #bbb; transition: color .2s; }
.footer li a:hover { color: var(--accent); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #555; border-radius: var(--radius); transition: all .2s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 20px; border-top: 1px solid #333; font-size: .8rem; color: #888; }

/* ---------- Overlay / Drawer / Modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(17,17,17,.55); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }

/* Closed drawer is hidden (visibility) so it can never widen the page */
.drawer { position: fixed; top: 0; right: 0; height: 100%; height: 100dvh; width: min(420px, 100vw); max-width: 100vw; background: var(--card); border-left: 2px solid var(--ink); z-index: 100; display: flex; flex-direction: column; transform: translateX(105%); visibility: hidden; transition: transform .4s cubic-bezier(.2,.8,.2,1), visibility 0s linear .4s; }
.drawer.open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 2px solid var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 20px; }
.drawer-foot { padding: 16px 20px 20px; border-top: 2px solid var(--ink); background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.drawer-foot .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .98rem; }
.drawer-foot .row.disc strong { color: #1b8a3a; }
.drawer-foot .row.total { font-size: 1.2rem; border-top: 2px dashed var(--ink); padding-top: 8px; }
.close-btn { width: 36px; height: 36px; font-size: 1rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); transition: all .2s; flex-shrink: 0; }
.close-btn:hover { background: var(--ink); color: #fff; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 0; }

.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--soft-line); }
.cart-item img { width: 72px; height: 90px; object-fit: cover; border: 2px solid var(--ink); }
.ci-name { font-family: var(--display); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.ci-price { color: var(--muted); font-size: .88rem; margin: 2px 0 8px; }
.ci-controls { display: flex; align-items: center; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--radius); }
.qty button { width: 32px; height: 32px; font-size: 1.1rem; }
.qty button:hover { background: var(--ink); color: #fff; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; font-size: .9rem; }
.remove { font-size: .8rem; color: var(--accent); text-decoration: underline; margin-left: auto; }

/* offer progress + recommendations inside the cart */
.progress { margin-bottom: 14px; padding: 14px 14px 10px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; }
.pg-msg { font-size: .84rem; line-height: 1.4; }
.pg-msg b { color: var(--accent); }
.pg-bar { position: relative; height: 10px; background: #eee; border: 2px solid var(--ink); border-radius: 99px; margin: 16px 12px 30px; }
.pg-fill { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .5s ease; }
.pg-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; font-size: .62rem; font-weight: 700; line-height: 1; }
.pg-mark.on { background: var(--accent); color: #fff; }
.pg-mark small { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); font-size: .58rem; font-weight: 600; white-space: nowrap; color: var(--muted); }
.recs { margin-top: 18px; }
.recs h4 { font-size: .9rem; margin-bottom: 4px; }
.rec { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--soft-line); }
.rec img { width: 52px; height: 65px; object-fit: cover; border: 2px solid var(--ink); }
.rec .tag { display: inline-block; background: var(--accent); color: #fff; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 6px; margin-bottom: 3px; }
.rec .rn { font-size: .82rem; font-weight: 600; line-height: 1.25; }
.rec .rp { font-size: .8rem; color: var(--muted); }
.rec button { border: 2px solid var(--ink); border-radius: var(--radius); padding: 7px 11px; font-size: .78rem; font-weight: 600; background: #fff; transition: all .2s; }
.rec button:hover { background: var(--ink); color: #fff; }
.gift-line { font-size: .8rem; background: #fff1f2; border: 2px dashed var(--accent); border-radius: var(--radius); padding: 8px 10px; line-height: 1.4; }

.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; z-index: 110; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s linear .3s; }
.modal.open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.modal::before { content: ""; position: absolute; inset: 0; background: rgba(17,17,17,.6); }
.modal-card { position: relative; width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 8px 8px 0 var(--accent); transform: translateY(24px) scale(.97); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.modal.open .modal-card { transform: none; }
.modal-card.wide { max-width: 860px; padding: 0; }
.modal-card > .close-btn { position: absolute; top: 14px; right: 14px; z-index: 3; }
.modal-card h3 { font-size: 1.5rem; margin-bottom: 16px; padding-right: 40px; }
.modal-card p { margin-bottom: 12px; color: #333; font-size: .95rem; }
.modal-card ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; font-size: .93rem; color: #333; }
.modal-card li { margin-bottom: 6px; }

.qv { display: grid; grid-template-columns: 1fr 1fr; }
.qv-img { border-right: 2px solid var(--ink); background: var(--soft-line); }
.qv-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.qv-info { padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.qv-info h3 { margin: 0; font-size: 1.5rem; padding-right: 30px; }
.qv-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.qv-price .price { font-size: 1.7rem; }
.off-tag { background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 8px; }
.stock { font-size: .85rem; font-weight: 600; }
.stock.in { color: #1b8a3a; }
.stock.out { color: var(--accent); }

/* ---------- Checkout form ---------- */
.notice { border: 2px solid var(--accent); background: #fff1f2; border-left-width: 8px; padding: 14px 16px; margin-bottom: 16px; font-size: .92rem; line-height: 1.5; border-radius: var(--radius); }
.notice strong { color: var(--accent); }
.co-summary { border: 2px solid var(--ink); background: var(--bg); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 16px; font-size: .86rem; }
.co-summary .row { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.co-summary .row.total { border-top: 1px dashed var(--ink); margin-top: 4px; padding-top: 6px; font-weight: 700; font-size: .95rem; }
.co-summary .ok { color: #1b8a3a; }
#checkoutForm { display: flex; flex-direction: column; gap: 14px; }
#checkoutForm label { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; font-weight: 600; }
#checkoutForm input, #checkoutForm textarea { width: 100%; padding: 12px; border: 2px solid var(--ink); border-radius: var(--radius); font: inherit; font-size: 16px; font-weight: 400; background: var(--bg); outline: none; resize: vertical; }
#checkoutForm input:focus, #checkoutForm textarea:focus { border-color: var(--accent); background: #fff; }
#checkoutForm .invalid { border-color: var(--accent); }
.err { color: var(--accent); font-weight: 500; font-size: .78rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 13px 22px; border-left: 5px solid var(--accent); border-radius: var(--radius); font-size: .9rem; opacity: 0; pointer-events: none; transition: all .35s; z-index: 200; max-width: 90vw; width: max-content; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ---------- Phones ---------- */
@media (max-width: 680px) {
  html { scroll-padding-top: 110px; }
  .container { padding: 0 16px; }

  /* tickers */
  .ticker { font-size: .66rem; }
  .ticker-track span { padding: 7px 16px; }
  .band-track span { font-size: 1rem; padding: 5px 14px; }

  /* navbar: brand + cart on row one, search on row two */
  .nav-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; height: auto; padding-top: 8px; padding-bottom: 8px; }
  .nav-actions { display: contents; }
  .brand { font-size: 1.15rem; }
  .acct-btn { order: 2; margin-left: auto; height: 40px; }
  .acct-btn + .cart-btn { margin-left: 0; }
  .cart-btn { order: 2; margin-left: auto; width: 40px; height: 40px; }
  .acct-label { max-width: 70px; }
  .search-box { order: 3; width: 100%; padding: 6px 10px; }
  .search-box input { width: 100%; font-size: 16px; }

  /* hero */
  .hero { padding: 44px 0 52px; }
  .eyebrow { font-size: .68rem; margin-bottom: 12px; }
  .hero-title { font-size: clamp(2.2rem, 10.5vw, 3rem); margin-bottom: 16px; }
  .hero-sub { font-size: .95rem; margin-bottom: 22px; }
  .hero .btn { display: block; width: 100%; max-width: 360px; }
  .sfx-hero { display: none; }
  .hero-lines .line { opacity: .25; }
  .hero-lines .p1 { top: 14px; bottom: auto; right: 16px; width: 58px; height: 74px; }
  .hero-lines .p2 { top: 28px; bottom: auto; right: 52px; width: 46px; height: 60px; }

  /* compact 4-in-a-row trust strip */
  .trust-item, .trust-item:nth-child(n) { flex-direction: column; justify-content: flex-start; text-align: center; gap: 5px; padding: 11px 3px; border-bottom: none; }
  .trust-item strong { font-size: .62rem; line-height: 1.2; }
  .trust-item span { display: none; }
  .icon.lg { width: 21px; height: 21px; }

  /* offers */
  .offers { padding-top: 40px; }
  .offer-grid { gap: 10px; }
  .offer { padding: 12px; box-shadow: 3px 3px 0 var(--ink); }
  .offer h3 { font-size: 1rem; }
  .offer p { font-size: .74rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-head h2 { font-size: 1.45rem; }

  /* shop */
  .shop { padding-top: 44px; padding-bottom: 60px; }
  .toolbar { display: block; margin-bottom: 22px; }
  /* swipeable category row, edge to edge */
  .pills { position: relative; display: flex; flex-wrap: nowrap; gap: 8px; width: auto; max-width: none; margin: 0 -16px 12px; padding: 2px 16px 8px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: 0 0 auto; padding: 8px 16px; font-size: .85rem; white-space: nowrap; scroll-snap-align: start; }
  #sortSelect { width: 100%; font-size: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px; gap: 4px; }
  .card-cat { font-size: .64rem; }
  .card-name { font-size: .82rem; }
  .price { font-size: 1rem; }
  .old { font-size: .78rem; }
  .card .btn { margin: 0 10px 10px; font-size: .78rem; padding: 9px 4px; }
  .badge { font-size: .58rem; padding: 3px 6px; top: 8px; left: 8px; }
  .badge.off { right: 8px; left: auto; }

  /* popups */
  .modal { padding: 10px; }
  .modal-card { padding: 22px 16px; box-shadow: 5px 5px 0 var(--accent); }
  .modal-card.wide { padding: 0; }
  .qv { grid-template-columns: 1fr; }
  .qv-img { border-right: none; border-bottom: 2px solid var(--ink); }
  .qv-img img { aspect-ratio: 1/1; }
  .qv-info { padding: 20px 16px; }
  .two { grid-template-columns: 1fr; }

  /* cart drawer */
  .drawer { width: 100vw; border-left: none; }
  .drawer-body { padding: 14px 16px; }
  .drawer-foot { padding: 14px 16px 18px; }

  /* footer */
  .footer { padding-top: 44px; }
  .footer-grid { gap: 28px; }

  /* background words smaller on phones */
  .bg-loop .sfx { font-size: 3.6rem; }
  .bg-loop .s2 { font-size: 4.6rem; }
  .toast { bottom: 16px; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal-text > span, .fade-in, .reveal { opacity: 1; transform: none; }
  .bg-loop *, .ticker-track, .band-track, .sfx-hero { animation: none !important; }
}

/* =====================================================================
   v2 additions: gallery, journey slider, reviews, story, FAQ, chat, nudge
   ===================================================================== */

/* ---------- checkout extras ---------- */
.co-meta { font-size: .84rem; margin-bottom: 6px; color: #333; line-height: 1.45; }
.consent { font-size: .76rem; color: var(--muted); line-height: 1.45; }
.consent a, .rv-note a { color: var(--accent); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- product photo gallery ---------- */
.qv-img.gallery { position: relative; display: flex; flex-direction: column; }
.g-main { flex: 1; min-height: 0; }
.g-main img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; display: block; }
.g-nav { position: absolute; top: 42%; width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; z-index: 2; }
.g-nav:hover { background: var(--ink); color: #fff; }
.g-nav.prev { left: 10px; } .g-nav.next { right: 10px; }
.g-thumbs { display: flex; gap: 8px; padding: 10px; background: #fff; border-top: 2px solid var(--ink); overflow-x: auto; }
.g-thumb { flex: 0 0 auto; width: 52px; height: 64px; border: 2px solid transparent; opacity: .6; transition: all .2s; }
.g-thumb.on { border-color: var(--accent); opacity: 1; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Our Journey slider ---------- */
.journey { padding: 70px 0 20px; overflow: hidden; }
.slider { position: relative; }
.slider-track { display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden; padding: 6px 20px 18px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.slider-track::-webkit-scrollbar { display: none; }
.reel { position: relative; flex: 0 0 min(300px, 76vw); height: 480px; border: 2px solid var(--ink); background: #fff; box-shadow: 5px 5px 0 var(--ink); scroll-snap-align: start; overflow: hidden; }
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; background: #fff; }
.reel-link { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 14px; background: linear-gradient(transparent 70%, rgba(17,17,17,.55)); }
.reel-link span { background: var(--accent); color: #fff; border: 2px solid var(--ink); padding: 8px 14px; font-size: .82rem; font-weight: 700; }
.reel.soon { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; text-align: center; background: var(--ink); color: #fff; background-image: radial-gradient(rgba(255,255,255,.14) 1.5px, transparent 2px); background-size: 12px 12px; }
.reel.soon .reel-no { font-family: var(--display); font-size: 4.5rem; font-weight: 700; color: transparent; -webkit-text-stroke: 2px var(--accent); line-height: 1; }
.reel.soon strong { font-family: var(--display); font-size: 1.2rem; }
.reel.soon small { color: #bbb; }
.slider-ctrl { display: flex; align-items: center; gap: 14px; padding-top: 4px; flex-wrap: wrap; }
.sl-btn { width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; font-size: 1.1rem; }
.sl-btn:hover { background: var(--ink); color: #fff; }
.sl-dots { display: flex; gap: 7px; }
.sl-dots i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; transition: all .3s; }
.sl-dots i.on { background: var(--accent); width: 22px; border-radius: 6px; }
.slider-ctrl .btn { margin-left: auto; padding: 10px 18px; font-size: .85rem; }

/* ---------- Reviews ---------- */
.reviews { padding-top: 60px; }
.reviews .section-head { align-items: center; }
.reviews .section-head .btn { padding: 11px 20px; font-size: .88rem; flex-shrink: 0; }
.rv-note { margin: -8px 0 22px; font-size: .9rem; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.rv, .rv-empty { background: #fff; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.rv-empty { grid-column: 1 / -1; padding: 28px; text-align: center; }
.rv-photos { display: grid; gap: 2px; border-bottom: 2px solid var(--ink); background: var(--ink); }
.rv-photos.n2 { grid-template-columns: 1fr 1fr; }
.rv-photos img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.rv-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.rv-stars { color: var(--accent); letter-spacing: 2px; font-size: 1rem; }
.rv-body p { font-size: .92rem; color: #222; margin: 0; overflow-wrap: anywhere; }
.rv-meta { font-size: .8rem; color: var(--muted); }
.like { align-self: flex-start; border: 2px solid var(--ink); border-radius: 99px; padding: 5px 14px; font-size: .85rem; font-weight: 600; background: #fff; transition: all .2s; }
.like:hover { background: var(--soft-line); }
.like.on { background: var(--accent); color: #fff; }
.like.on:active { transform: scale(1.12); }
#reviewForm { display: flex; flex-direction: column; gap: 14px; }
#reviewForm label:not(.btn) { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; font-weight: 600; }
#reviewForm input[type="text"], #reviewForm textarea, #reviewForm select { width: 100%; padding: 12px; border: 2px solid var(--ink); border-radius: var(--radius); font: inherit; font-size: 16px; font-weight: 400; background: var(--bg); outline: none; }
#reviewForm input:focus, #reviewForm textarea:focus, #reviewForm select:focus { border-color: var(--accent); background: #fff; }
.stars-input { border: none; }
.stars-input legend { font-size: .84rem; font-weight: 600; margin-bottom: 4px; }
.star-row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-row input { position: absolute; opacity: 0; pointer-events: none; }
.star-row label { font-size: 2rem; line-height: 1; color: #ccc; cursor: pointer; transition: color .15s, transform .15s; }
.star-row label:hover, .star-row label:hover ~ label, .star-row input:checked ~ label { color: var(--accent); }
.star-row input:focus-visible + label { outline: 2px solid var(--ink); }
.photo-previews { display: flex; gap: 10px; margin-top: 10px; }
.pv { position: relative; width: 72px; height: 72px; border: 2px solid var(--ink); }
.pv img { width: 100%; height: 100%; object-fit: cover; }
.pv button { position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .65rem; }

/* ---------- Our story ---------- */
.story { padding-top: 70px; padding-bottom: 40px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 40px; align-items: center; background: rgba(255,255,255,.92); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 28px; }
.story-img { border: 2px solid var(--ink); background: var(--soft-line); transform: rotate(-1.5deg); box-shadow: 5px 5px 0 var(--accent); }
.story-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story-text h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 14px; }
.story-text p { color: #333; margin-bottom: 14px; max-width: 560px; }
.story-text .eyebrow { margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq { padding-top: 60px; padding-bottom: 50px; }
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item { background: #fff; border: 2px solid var(--ink); }
.faq-item summary { cursor: pointer; padding: 15px 48px 15px 16px; font-family: var(--display); font-weight: 600; font-size: 1rem; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); transition: transform .25s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] summary { border-bottom: 2px dashed var(--ink); }
.faq-item p { padding: 14px 16px 16px; color: #333; font-size: .93rem; }

/* ---------- Abandoned-cart nudge ---------- */
.nudge { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 24px); width: min(560px, calc(100vw - 24px)); background: #fff; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--accent); padding: 12px 14px; display: flex; align-items: center; gap: 12px; z-index: 70; opacity: 0; transition: opacity .3s, transform .3s; }
.nudge[hidden] { display: none; }
.nudge.show { opacity: 1; transform: translate(-50%, 0); }
.nudge-text { font-size: .86rem; line-height: 1.4; flex: 1; }
.nudge-text b { color: var(--accent); }
.nudge-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nudge-actions .btn { padding: 9px 14px; font-size: .82rem; }

/* ---------- Help assistant ---------- */
.chat-fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 99px; font-weight: 600; font-size: .9rem; box-shadow: 3px 3px 0 var(--accent); transition: transform .2s, box-shadow .2s; }
.chat-fab:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--accent); }
.chat { position: fixed; right: 16px; bottom: 76px; width: min(360px, calc(100vw - 24px)); height: min(500px, calc(100dvh - 110px)); background: #fff; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); z-index: 95; display: flex; flex-direction: column; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s, transform .25s; }
.chat[hidden] { display: none; }
.chat.open { opacity: 1; transform: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--ink); color: #fff; font-family: var(--display); }
.chat-head .close-btn { width: 30px; height: 30px; background: transparent; color: #fff; border-color: #fff; font-size: .8rem; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 86%; padding: 10px 12px; font-size: .88rem; line-height: 1.45; border: 2px solid var(--ink); overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: #fff; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; }
.msg-btn { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--accent); text-decoration: underline; }
.chat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-top: 2px solid var(--ink); scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 2px solid var(--ink); border-radius: 99px; padding: 5px 12px; font-size: .78rem; font-weight: 500; background: #fff; white-space: nowrap; }
.chip:hover { background: var(--ink); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 2px solid var(--ink); }
.chat-form input { flex: 1; min-width: 0; padding: 10px; border: 2px solid var(--ink); border-radius: var(--radius); font: inherit; font-size: 16px; outline: none; }
.chat-form input:focus { border-color: var(--accent); }
.chat-form .btn { padding: 10px 16px; font-size: .85rem; }
.chat-human { display: block; text-align: center; padding: 9px; font-size: .8rem; font-weight: 600; color: var(--accent); border-top: 1px solid var(--soft-line); }

@media (max-width: 680px) {
  .journey { padding-top: 46px; }
  .slider-track { padding-left: 16px; padding-right: 16px; gap: 14px; }
  .reel { height: 440px; }
  .slider-ctrl .btn { margin-left: 0; width: 100%; }
  .reviews { padding-top: 44px; }
  .reviews .section-head { flex-direction: row; align-items: center; }
  .rv-grid { grid-template-columns: 1fr; }
  .story { padding-top: 44px; }
  .story-grid { grid-template-columns: 1fr; gap: 22px; padding: 16px; box-shadow: 4px 4px 0 var(--ink); }
  .story-img { max-width: 260px; margin: 0 auto; }
  .faq { padding-top: 44px; }
  .nudge { bottom: 76px; flex-direction: column; align-items: stretch; gap: 8px; }
  .nudge-actions { justify-content: space-between; }
  .nudge-actions .btn { flex: 1; }
  .chat { right: 8px; bottom: 70px; }
  .chat-fab { right: 12px; bottom: 12px; padding: 11px 16px; }
  .g-main img { aspect-ratio: 1/1; }
}
@media (prefers-reduced-motion: reduce) { .slider-track { scroll-behavior: auto; } }

/* =====================================================================
   v3 additions: payments, UPI QR screen, offers grid
   ===================================================================== */
[hidden] { display: none !important; }

.offer-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.offer.bonus { background: #fff1f2; }
.offer.bonus h3 { color: var(--ink); }
.offer.bonus h3::after { content: ""; display: block; width: 40px; height: 4px; background: var(--accent); margin-top: 6px; transform: skewX(-25deg); }

.upi-hint { font-size: .82rem; line-height: 1.4; background: #effaf1; border: 2px dashed #1b8a3a; border-radius: var(--radius); padding: 8px 10px; }
.upi-hint b { color: #1b8a3a; }

/* payment method choice in checkout */
.pay-methods { border: none; display: grid; gap: 10px; }
.pay-methods legend { font-size: .84rem; font-weight: 600; margin-bottom: 8px; }
#checkoutForm .pay-opt { flex-direction: row; align-items: flex-start; gap: 12px; border: 2px solid var(--ink); border-radius: var(--radius); padding: 12px; cursor: pointer; font-weight: 400; background: #fff; transition: background .2s, box-shadow .2s; }
#checkoutForm .pay-opt input { width: auto; padding: 0; margin-top: 3px; border: none; accent-color: var(--accent); flex-shrink: 0; }
#checkoutForm .pay-opt:has(input:checked) { background: #fff1f2; box-shadow: 3px 3px 0 var(--accent); }
#checkoutForm .pay-opt.off { opacity: .5; cursor: not-allowed; }
.po-body { display: flex; flex-direction: column; gap: 3px; }
.po-body strong { font-family: var(--display); font-size: .98rem; }
.po-body small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.save-tag { display: inline-block; background: #1b8a3a; color: #fff; font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; margin-left: 4px; }

/* UPI payment screen */
#payContent h3 { margin-bottom: 4px; }
.pay-qr { display: grid; place-items: center; border: 2px solid var(--ink); background: #fff; padding: 12px; margin: 14px 0 8px; box-shadow: 4px 4px 0 var(--ink); }
.pay-qr svg { width: min(240px, 100%); height: auto; display: block; }
.pay-steps { text-align: center; font-size: .84rem; color: var(--muted); margin-bottom: 12px !important; }
#payContent .btn.block { margin-top: 10px; }
.pay-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 6px; padding: 10px 12px; background: var(--bg); border: 2px dashed var(--ink); font-size: .9rem; overflow-wrap: anywhere; }
.pay-id .chip { flex-shrink: 0; }
.utr { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; font-weight: 600; margin: 12px 0 4px; }
.utr input { width: 100%; padding: 12px; border: 2px solid var(--ink); border-radius: var(--radius); font: inherit; font-size: 16px; font-weight: 400; background: var(--bg); outline: none; }
.utr input:focus { border-color: var(--accent); background: #fff; }

@media (max-width: 680px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-qr { padding: 8px; }
}

/* v3.1 thank-you screen */
.thanks { text-align: center; }
.thanks .tick { width: 64px; height: 64px; margin: 6px auto 12px; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #fff; background: #1a9e55; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: 50%; }
.thanks p { margin: 8px 0; }
.thanks .btn { margin-top: 10px; }
#payContent .btn + .btn, #payContent .pay-qr + .pay-id { margin-top: 10px; }

/* v3.3 discount code box */
.code-box { margin-bottom: 10px; }
.code-form { display: flex; gap: 8px; }
.code-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--ink); background: #fff; font: inherit; text-transform: uppercase; letter-spacing: .06em; }
.code-form .btn { padding: 10px 16px; }
.code-applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: #e9f8ef; border: 2px dashed #1a9e55; font-size: .88rem; }
.code-applied button { border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: underline; font: inherit; }
.code-msg { font-size: .8rem; min-height: 1em; margin-top: 4px; color: var(--accent); }
.code-msg.ok { color: #1a9e55; }


/* ===== v3.4 customer accounts ===== */
.acct-btn { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; flex-shrink: 0; transition: background .2s, color .2s; }
.acct-btn[hidden] { display: none; }
.acct-btn:hover { background: var(--ink); color: #fff; }
.acct-btn .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acct-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; }
.av { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.lg { width: 46px; height: 46px; font-size: 1.1rem; }
.auth-card { max-width: 440px; }
.auth-card h3 { margin-bottom: 8px; }
.auth-perks { margin: 12px 0 16px; padding-left: 18px; font-size: .9rem; line-height: 1.7; }
.auth-reason { background: #fff6d6; border: 2px solid var(--ink); border-radius: var(--radius); padding: 8px 12px; font-size: .88rem; font-weight: 500; }
.gbtn { display: flex; justify-content: center; min-height: 44px; margin: 6px 0; }
.consent { font-size: .72rem; color: var(--muted); line-height: 1.5; margin-top: 12px; }
.auth-card form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 10px; }
.auth-card form input { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: var(--radius); font: inherit; font-size: 16px; background: var(--card); }
.link-btn { display: block; margin: 14px auto 0; background: none; border: none; text-decoration: underline; font: inherit; font-size: .82rem; color: var(--muted); cursor: pointer; }
.acct-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-right: 30px; }
.acct-head > div { min-width: 0; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button { flex: 1; padding: 9px 6px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }
.tabs button.on { background: var(--ink); color: #fff; }
.ord { border: 2px solid var(--ink); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; background: var(--card); }
.ord-top, .ord-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ord-items { font-size: .86rem; margin: 8px 0; overflow-wrap: anywhere; }
.opill { padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; border: 2px solid var(--ink); background: #fff3c4; }
.opill.green { background: #d3f5dd; } .opill.purple { background: #e6dcff; } .opill.red { background: #ffd9dc; }
.steps { list-style: none; display: flex; margin: 10px 0 8px; padding: 0; }
.steps li { flex: 1; text-align: center; font-size: .7rem; color: var(--muted); position: relative; }
.steps li i { display: block; width: 14px; height: 14px; margin: 0 auto 4px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); position: relative; z-index: 1; }
.steps li::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--soft-line); }
.steps li:first-child::before { display: none; }
.steps li.done { color: var(--ink); font-weight: 600; }
.steps li.done i { background: var(--accent); }
.steps li.done::before { background: var(--ink); }
.trk { margin: 6px 0; overflow-wrap: anywhere; }
.signed-as { font-size: .82rem; margin: 0 0 10px; padding: 6px 10px; background: #e8f7ee; border: 2px solid var(--ink); border-radius: var(--radius); }
.vb { font-size: .7rem; font-weight: 700; color: #167a3a; white-space: nowrap; }
input[readonly] { background: #f1f1f1; }

/* ===== v3.5 wishlist + notify ===== */
.wish { display: none; position: absolute; bottom: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); color: #aaa; font-size: 1.05rem; line-height: 1; cursor: pointer; place-items: center; padding: 0; }
body.acct-on .wish { display: grid; }
.wish.on { color: var(--accent); }
.wish-text { display: none; margin-top: 8px; }
body.acct-on .wish-text { display: block; }
.wish-text.on { color: var(--accent); }
.saved .sv-row { display: flex; gap: 10px; align-items: center; }
.saved .sv-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; border: 2px solid var(--ink); }
.saved .sv-row > div { min-width: 0; overflow-wrap: anywhere; }
.sv-act { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sv-act .btn { flex: 1; padding: 9px 10px; font-size: .85rem; }
.thanks { text-align: center; }
