/* ============================================================================
   assets/app.css — Sakmina customer design (the ONE shared stylesheet)
   ============================================================================
   Mobile-first (360–430 px), max 1200 px on desktop.
   Tokens: older pages use --ink/--muted/--line/--bg/--card/--brand, so those
   names are kept and simply point at the Sakmina palette.
   Contrast: white text only sits on --brand-dk (#0B7A3B, ≈5.6:1). #12A150 is
   used for icons, borders and large shapes.
   ============================================================================ */
:root {
  --brand: #12A150; --brand-dk: #0B7A3B; --brand-lt: #E8F7EE;
  --sale: #E8462F; --live: #D92D20;
  --ink: #1B2420; --muted: #5A665F; --line: #E1E7E3; --bg: #F3F6F4; --card: #FFFFFF;
  --r: 12px; --nav-h: 62px;
  --sh: 0 1px 2px rgba(16, 40, 28, .06), 0 2px 8px rgba(16, 40, 28, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.45;
  background: var(--bg); color: var(--ink); overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); }
a { color: var(--brand-dk); text-decoration: none; } a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: pretty; }
.gm-wrap { max-width: 1200px; margin: 0 auto; padding: 0 12px; }
.muted { color: var(--muted); }
.gm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Header ---------------------------------------------------------------- */
.gm-header { position: sticky; top: 0; z-index: 40; background: var(--brand-dk); color: #fff; padding: 10px 0 8px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.gm-hrow { display: flex; align-items: center; gap: 8px; }
.gm-hrow-sub { min-height: 44px; }
.gm-htitle { flex: 1; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-logo { display: none; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 20px; flex: none; }
.gm-logo:hover { color: #fff; }
@media (min-width: 760px) { .gm-logo { display: inline-flex; } }
.gm-hicon { position: relative; flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #fff; border-radius: 10px; }
.gm-hicon:hover { color: #fff; background: rgba(255,255,255,.12); }
.gm-badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--sale); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--brand-dk); }
.gm-search { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; background: #fff; border-radius: 10px; height: 44px; color: var(--ink); }
.gm-search-ic { padding: 0 4px 0 10px; color: var(--muted); display: flex; }
.gm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 44px; padding: 0 6px; font-size: 15px; }
.gm-sbtn { flex: none; width: 40px; height: 44px; border: 0; background: transparent; color: var(--brand-dk); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.gm-sbtn.on { color: var(--sale); }
/* v28: second header row = phone logo (branding module) + location chip. Same height as before. */
.gm-hrow2 { display: flex; align-items: center; gap: 10px; margin-top: 8px; min-width: 0; }
.gm-hrow2 .gm-locchip { margin-top: 0; min-width: 0; }
.gm-mlogo { flex: none; display: inline-flex; align-items: center; min-height: 34px; max-width: 46%; color: #fff; }
.gm-mlogo img { max-width: 100%; height: auto; max-height: 26px; }
@media (min-width: 760px) { .gm-mlogo { display: none; } }      /* desktop shows the big logo in the first row */
.gm-locchip { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 34px; padding: 4px 12px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #fff; cursor: pointer; font-size: 13px; }
.gm-locchip span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Search-as-you-type dropdown */
.gm-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: var(--r); box-shadow: 0 10px 28px rgba(0,0,0,.18); z-index: 60; overflow: hidden; color: var(--ink); }
.gm-suggest a { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; color: var(--ink); min-height: 56px; }
.gm-suggest a:hover, .gm-suggest a.on { background: var(--brand-lt); }
.gm-suggest .s-img { width: 44px; height: 44px; border-radius: 8px; background: var(--brand-lt) center/cover; }
.gm-suggest .s-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-suggest .s-store { display: block; font-size: 12px; color: var(--muted); }
.gm-suggest .s-price { font-weight: 700; color: var(--sale); }
.gm-suggest .s-foot { display: block; padding: 12px; border-top: 1px solid var(--line); color: var(--brand-dk); font-weight: 600; }
.gm-suggest .s-empty { padding: 12px; color: var(--muted); font-size: 14px; }

/* ---- Generic blocks ---------------------------------------------------------- */
.gm-main { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.gm-card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 14px; }
.gm-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.gm-sec-h h2 { font-size: 17px; font-weight: 700; }
.gm-sec-h a { font-size: 14px; font-weight: 600; white-space: nowrap; }
.gm-flash { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--brand-lt); color: var(--brand-dk); }
.gm-flash.error { background: #FDECEA; color: #8A1C12; }
.gm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; text-align: center; }
.gm-btn:hover { border-color: var(--brand); color: var(--ink); }
.gm-btn.primary { background: var(--brand-dk); border-color: var(--brand-dk); color: #fff; }
.gm-btn.primary:hover { background: #096A33; color: #fff; }
.gm-btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.gm-btn.sale { background: var(--sale); border-color: var(--sale); color: #fff; }
.gm-empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.gm-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--brand-lt); color: var(--brand-dk); }
.gm-tag.warn { background: #FFF1D6; color: #7A4B00; } .gm-tag.bad { background: #FDECEA; color: #8A1C12; } .gm-tag.live { background: var(--live); color: #fff; }
.gm-input, .gm-card input[type=text], .gm-card input[type=password], .gm-card input[type=email], .gm-card select, .gm-card textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.gm-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }

/* ---- Account strip ------------------------------------------------------------ */
.gm-acct { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; }
.gm-acct-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.gm-acct-stats b { display: block; font-size: 17px; color: var(--ink); }

/* ---- Shortcut icons: 2 rows, swipe sideways --------------------------------------- */
.gm-shortcuts { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 72px; gap: 12px 6px;
  overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: none; }
.gm-shortcuts::-webkit-scrollbar { display: none; }
.gm-sc { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); font-size: 12px; text-align: center; line-height: 1.2; min-height: 80px; }
.gm-sc:hover { color: var(--brand-dk); }
.gm-sc i { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.gm-sc span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) { .gm-shortcuts { grid-auto-columns: 84px; } }

/* ---- Banner carousel ---------------------------------------------------------------- */
.gm-banner { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 12 / 5; background: var(--brand-lt); box-shadow: var(--sh); touch-action: pan-y; }
.gm-banner-track { display: flex; height: 100%; transition: transform .45s ease; }
.gm-slide { flex: 0 0 100%; height: 100%; position: relative; display: block; color: #fff; }
.gm-slide img { width: 100%; height: 100%; object-fit: cover; }
.gm-slide-gen { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 6%; background: var(--brand-dk); }
.gm-slide-gen b { font-size: clamp(24px, 7vw, 52px); line-height: 1; }
.gm-slide-gen span { font-size: clamp(14px, 3.4vw, 22px); }
.gm-slide-gen em { font-style: normal; align-self: flex-start; margin-top: 6px; background: #fff; color: var(--brand-dk); font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.gm-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.gm-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.6); cursor: pointer; transition: width .2s; }
.gm-dots button.on { width: 20px; background: #fff; }

/* ---- Live + Flash duo cards ---------------------------------------------------------- */
.gm-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gm-duo.single { grid-template-columns: minmax(0, 1fr); }
.gm-duo .gm-card { padding: 12px; }
.gm-duo-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gm-live-tile { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #1B2420 center/cover; color: #fff; display: block; }
.gm-live-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 55%); }
.gm-live-tile .lt-top { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; gap: 4px; z-index: 1; flex-wrap: wrap; }
.gm-live-tile .lt-name { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 1; font-size: 12px; font-weight: 600; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-live-tile .lt-title { display: block; font-weight: 400; font-size: 11px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-viewers { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.55); }
.gm-mini { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.gm-mini .pc-img { border-radius: 10px; }
.gm-mini b { color: var(--sale); }
.gm-count { font-size: 12px; color: var(--muted); }

/* ---- Horizontal rails (flash deals, collections) --------------------------------------- */
.gm-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 170px); gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; }
.gm-rail > * { scroll-snap-align: start; }
.gm-fd { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--ink); }
.gm-fd .pc-body { padding: 8px; gap: 4px; }
.gm-bar { height: 6px; border-radius: 3px; background: #FBE3DF; overflow: hidden; }
.gm-bar span { display: block; height: 100%; background: var(--sale); }
.gm-col { display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.gm-col .pc-img { border-radius: 10px; }
.gm-col small { color: var(--muted); }

/* ---- Filter chips ---------------------------------------------------------------- */
.gm-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gm-chips::-webkit-scrollbar { display: none; }
.gm-chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; }
.gm-chip.on { background: var(--brand-dk); border-color: var(--brand-dk); color: #fff; }

/* ---- Product grid + card ---------------------------------------------------------- */
.gm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px)  { .gm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px)  { .gm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1100px) { .gm-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pc { display: flex; flex-direction: column; background: var(--card); border-radius: 10px; overflow: hidden; box-shadow: var(--sh); color: var(--ink); min-width: 0; }
.pc:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--brand), var(--sh); }
.pc-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--brand-lt); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: .55; }
.pc-off { position: absolute; top: 0; right: 0; background: var(--sale); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 7px; border-bottom-left-radius: 8px; }
.pc-body { display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 10px; min-width: 0; }
.pc-name { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pc-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.pc-chip { font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 4px; border: 1px solid var(--brand); color: var(--brand-dk); line-height: 18px; white-space: nowrap; }
.pc-chip.live { border-color: var(--live); background: var(--live); color: #fff; }
.pc-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pc-price b { color: var(--sale); font-size: 16px; }
.pc-price s { color: var(--muted); font-size: 12px; }
.pc-meta { display: flex; gap: 8px; font-size: 12px; color: var(--muted); }
.pc-rate { display: inline-flex; align-items: center; gap: 2px; color: #8A5A00; }
.pc-rate svg { fill: #F2A900; stroke: #F2A900; }
.pc-store { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-more { display: flex; justify-content: center; padding: 8px 0 4px; }

/* ---- Bottom navigation ------------------------------------------------------------ */
.gm-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(16,40,28,.06); }
.gm-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 12px; min-height: 44px; }
.gm-nav a.on { color: var(--brand-dk); font-weight: 700; }
.gm-nav a.on .gm-nav-ic::before { content: ''; position: absolute; top: -8px; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 2px; background: var(--brand); }
.gm-nav-ic { position: relative; display: flex; }
.gm-nav .gm-badge { top: -6px; right: -12px; box-shadow: 0 0 0 2px #fff; }
@media (min-width: 900px) { .gm-nav { left: 50%; right: auto; width: 560px; margin-left: -280px; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; } }

/* ---- Tabs (My orders etc.) --------------------------------------------------------- */
.gm-tabs { display: flex; gap: 4px; overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 4px; scrollbar-width: none; }
.gm-tabs::-webkit-scrollbar { display: none; }
.gm-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.gm-tabs a.on { background: var(--brand-lt); color: var(--brand-dk); }
.gm-tabs a em { font-style: normal; font-size: 12px; background: var(--sale); color: #fff; border-radius: 999px; padding: 0 6px; }
.gm-ocard { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
.gm-ocard .pc-img { border-radius: 8px; }
.gm-oactions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 10px; }
.gm-list a.gm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.gm-list a.gm-row:last-child { border-bottom: 0; }
.gm-list a.gm-row span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.gm-list a.gm-row svg { color: var(--brand-dk); }

/* ---- Location modal (bottom sheet) ---------------------------------------------- */
.gm-modal { position: fixed; inset: 0; z-index: 80; background: rgba(10,20,15,.5); display: none; align-items: flex-end; justify-content: center; }
.gm-modal.open { display: flex; }
.gm-sheet { width: 100%; max-width: 520px; background: #fff; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; max-height: 92vh; overflow-y: auto; }
.gm-sheet h3 { font-size: 18px; } .gm-sheet p { margin: 0; color: var(--muted); font-size: 14px; }
.gm-sheet label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.gm-sheet select { min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; }
.gm-sheet .row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 600px) { .gm-modal { align-items: center; } .gm-sheet { border-radius: 18px; } }

/* ---- Photo search menu --------------------------------------------------------- */
.gm-photomenu { position: absolute; z-index: 70; background: #fff; border-radius: 12px; padding: 6px; display: flex; flex-direction: column; min-width: 210px; box-shadow: 0 10px 28px rgba(0,0,0,.18); color: var(--ink); }
.gm-photomenu button { text-align: left; border: 0; background: none; padding: 12px; border-radius: 8px; cursor: pointer; min-height: 44px; }
.gm-photomenu button:hover { background: var(--brand-lt); }
.gm-photomenu span { font-size: 12px; color: var(--muted); padding: 4px 12px 8px; }

/* ---- Coupons (Offers page) ------------------------------------------------------ */
.gm-coupon { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0; overflow: hidden; }
.gm-coupon .cp-val { align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--brand-dk); color: #fff; font-weight: 700; font-size: 18px; text-align: center; padding: 10px 6px; border-right: 2px dashed #fff; }
.gm-coupon .cp-val small { font-size: 11px; font-weight: 500; }
.gm-coupon .cp-txt { padding: 10px 0; min-width: 0; }
.gm-coupon .cp-txt code { font-family: inherit; font-weight: 700; color: var(--brand-dk); background: var(--brand-lt); padding: 1px 6px; border-radius: 4px; }
.gm-coupon .gm-btn { margin-right: 12px; }

/* ---- Utilities (keep LAST) ----------------------------------------------------
   The HTML hidden attribute must always win: classes like .gm-photomenu or
   .wait set display:flex, which would otherwise override [hidden]. JS shows
   and hides these with el.hidden = true/false. */
[hidden] { display: none !important; }

/* ---- Site footer (v11): pages, contact, "We accept" payment logos ---------------- */
.gm-foot { margin-top: 24px; background: #fff; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.gm-foot-grid { display: grid; grid-template-columns: 1fr; gap: 18px; padding-top: 20px; padding-bottom: 8px; }
@media (min-width: 720px) { .gm-foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.gm-foot-col b { display: block; font-size: 15px; margin-bottom: 8px; }
.gm-foot-col p { margin: 0 0 8px; color: var(--muted); }
.gm-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gm-foot-col a { color: var(--ink); } .gm-foot-col a:hover { color: var(--brand-dk); }
.gm-foot-brand { font-size: 18px !important; color: var(--brand-dk); }
.gm-foot-social a { color: var(--brand-dk) !important; font-weight: 600; }
.gm-foot-pay { padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--line); }
.gm-foot-pay > b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.gm-pays { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-pay { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 600; font-size: 13px; }
.gm-pay img { display: block; height: 28px; width: auto; max-width: 110px; object-fit: contain; }
.gm-pay.only-logo { padding: 4px 8px; }
.gm-foot-copy { padding-top: 10px; padding-bottom: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
/* Content pages (page.php) */
.gm-page { line-height: 1.7; }
.gm-page h1 { font-size: 22px; margin: 0 0 8px; }
.gm-page h2 { font-size: 18px; margin: 18px 0 6px; }
.gm-page h3 { font-size: 16px; margin: 14px 0 4px; }
.gm-page p { margin: 0 0 10px; }
.gm-page ul, .gm-page ol { margin: 0 0 10px; padding-left: 22px; }
.gm-page a { text-decoration: underline; }

/* ---- v12: interactive product card ------------------------------------------
   Stretched link (.pc-link) covers the tile; ♥ and cart buttons sit above it.
   Motion respects prefers-reduced-motion. */
.pc { position: relative; transition: transform .18s ease, box-shadow .18s ease; -webkit-tap-highlight-color: transparent; }
.pc-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pc-link:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.pc-img img { transition: transform .35s ease; }
@media (hover: hover) {
  .pc:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--brand), 0 10px 24px rgba(16, 40, 28, .14); }
  .pc:hover .pc-img img { transform: scale(1.06); }
}
.pc:active { transform: scale(.98); }
.pc-like, .pc-add { position: relative; z-index: 2; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pc-like { position: absolute; top: 6px; left: 6px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.pc-like svg { fill: none; stroke: #5A665F; stroke-width: 2; transition: transform .2s ease; }
.pc-like.on svg { fill: var(--sale); stroke: var(--sale); }
.pc-like.pop svg { animation: gm-pop .45s ease; }
@keyframes gm-pop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }
.pc-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; min-width: 0; }
.pc-row .pc-price { min-width: 0; }
.pc-add { flex: none; width: 36px; height: 32px; border-radius: 9px; background: var(--brand-lt); color: var(--brand-dk); gap: 0; transition: background .15s, color .15s, transform .15s; }
.pc-add b { font-size: 13px; line-height: 1; margin-left: -2px; margin-top: -10px; }
.pc-add:hover { background: var(--brand-dk); color: #fff; }
.pc-add:active { transform: scale(.9); }
.pc-add.busy { opacity: .6; pointer-events: none; }
.pc-add.done { background: var(--brand-dk); color: #fff; animation: gm-pop .45s ease; }
.pc-rib { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; font-size: 11px; font-weight: 700; color: #fff; border-top-right-radius: 8px; }
.pc-rib.flash { background: linear-gradient(90deg, var(--sale), #F2762E); }
.pc-rib.flash svg { fill: #FFE27A; stroke: #FFE27A; }
.pc-rib.live { background: var(--live); }
.pc-rib.live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: gm-blink 1.2s infinite; }
@keyframes gm-blink { 50% { opacity: .25; } }
.pc-ship { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #0E7C6B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-ship svg { flex: none; }
.pc-off { z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .pc, .pc-img img, .pc-like svg, .pc-add { transition: none !important; animation: none !important; }
  .pc:hover, .pc:active { transform: none; }
  .pc:hover .pc-img img { transform: none; }
}

/* Small toast used by cards / product page */
.gm-toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 76px); transform: translateX(-50%) translateY(-8px); z-index: 120; opacity: 0;
  background: #0B7A3B; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; max-width: 90vw; text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.22); transition: opacity .2s, transform .2s; pointer-events: none; }
.gm-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.gm-toast.bad { background: #8a1c12; }

/* ---- v14: square promotion tiles ---------------------------------------------
   Three equal squares. Product tiles: the photo fills the square; a soft dark scrim at the
   bottom carries the price in white. Offer tile: solid deep green, value as the headline.
   One radius, one shadow, no gradients on the frame — the products are the colour. */
.gm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gm-tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gm-tile { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; isolation: isolate;
  background: #fff; color: #fff !important; box-shadow: 0 1px 2px rgba(16,40,28,.08), 0 1px 6px rgba(16,40,28,.06);
  transition: transform .15s ease, box-shadow .15s ease; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .gm-tile:hover { box-shadow: 0 0 0 1px var(--brand), 0 6px 16px rgba(16,40,28,.12); } }
.gm-tile:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.gm-tile:active, .gm-tile.gm-press { transform: scale(.98); }
.gt-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--brand-lt); transition: opacity .3s ease; }
.gt-noimg { display: flex; align-items: center; justify-content: center; }
.gt-scrim { position: absolute; inset: 45% 0 0 0; background: linear-gradient(to bottom, rgba(10,24,17,0), rgba(10,24,17,.72)); pointer-events: none; }
.gt-tag { position: absolute; top: 7px; left: 7px; max-width: calc(100% - 52px); padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--brand-dk); color: #fff; }
.t-mega .gt-tag { background: #C2311F; }
.gt-off { position: absolute; top: 7px; right: 7px; padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 800; line-height: 18px; background: #fff; color: #C2311F; }
.gt-foot { position: absolute; left: 8px; right: 8px; bottom: 12px; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.gt-now { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.gt-old { font-size: 11px; opacity: .85; min-height: 12px; }
.gt-dots { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 3px; }
.gt-dots i { width: 4px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.5); transition: width .3s, background .3s; }
.gt-dots i.on { width: 10px; background: #fff; }
/* swap: quick crossfade of photo + labels; the price counts down (alive.js) */
.gm-tile.out .gt-img, .gm-tile.out .gt-off { opacity: 0; }
.gm-tile .gt-off { transition: opacity .3s ease; }
/* offer tile */
.gm-tile.t-offer { background: #0B5E3A; }
.t-offer .gt-tag { background: rgba(255,255,255,.16); }
.gt-offer { position: absolute; inset: 34px 8px 10px; display: flex; flex-direction: column; gap: 3px; transition: opacity .25s ease; }
.gt-offer.out { opacity: 0; }
.gt-big { font-size: 17px; font-weight: 800; line-height: 1.1; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-sub { font-size: 10.5px; line-height: 1.25; color: rgba(255,255,255,.85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* code sits bottom-left — the same place the price sits on the product tiles */
.gt-code { position: absolute; left: 0; bottom: 0; font-size: 11px; font-weight: 700; letter-spacing: .04em; border: 1px dashed rgba(255,255,255,.75); border-radius: 5px; padding: 0 6px; line-height: 18px; }
@media (min-width: 600px) {
  .gm-tiles { gap: 12px; }
  .gt-tag, .gt-off { font-size: 13px; top: 10px; } .gt-tag { left: 10px; } .gt-off { right: 10px; }
  .gt-foot { left: 12px; bottom: 16px; } .gt-now { font-size: 24px; } .gt-old { font-size: 13px; }
  .gt-big { font-size: 26px; } .gt-sub { font-size: 14px; } .gt-code { font-size: 13px; }
  .gt-offer { inset: 46px 14px 16px; gap: 8px; }
}
@media (min-width: 900px) {
  .gm-tiles { gap: 16px; }
  .gt-tag, .gt-off { font-size: 16px; line-height: 26px; padding: 2px 12px; top: 16px; border-radius: 8px; } .gt-tag { left: 16px; } .gt-off { right: 16px; }
  .gt-foot { left: 20px; bottom: 26px; } .gt-now { font-size: 36px; } .gt-old { font-size: 16px; }
  .gt-big { font-size: 40px; } .gt-sub { font-size: 17px; } .gt-code { font-size: 16px; line-height: 30px; padding: 0 12px; }
  .gt-offer { inset: 64px 22px 26px; gap: 12px; justify-content: center; padding-bottom: 40px; }
  .gt-dots { right: 14px; bottom: 14px; }
}
@media (max-width: 379px) { .gt-sub { -webkit-line-clamp: 1; } }
@media (max-width: 340px) { .gt-now, .gt-big { font-size: 15px; } .gt-tag { font-size: 10px; padding: 1px 6px; } }

/* ---- v13: scroll-in reveal (only when alive.js runs: html.gm-anim) ---------- */
.gm-anim .gm-rv { opacity: 0; transform: translateY(14px); transition: opacity .45s ease var(--d, 0ms), transform .45s ease var(--d, 0ms); }
.gm-anim .gm-rv.gm-in { opacity: 1; transform: none; }
.gm-anim .gm-bar.gm-rv { opacity: 1; transform: none; }
.gm-anim .gm-bar.gm-rv span { transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.8,.2,1) .15s; }
.gm-anim .gm-bar.gm-rv.gm-in span { transform: scaleX(1); }
/* photo shimmer while it loads */
.gm-anim .pc-img { background: linear-gradient(100deg, var(--brand-lt) 40%, #F5FBF7 50%, var(--brand-lt) 60%) 0 0 / 300% 100%; animation: gm-shimmer 1.4s linear infinite; }
.gm-anim .pc-img.ld, .gm-anim .pc-img:not(:has(img)) { animation: none; background: var(--brand-lt); }   /* stop once the photo is in */
@keyframes gm-shimmer { to { background-position: -150% 0; } }
/* live viewer number rolling */
[data-viewers] { font-variant-numeric: tabular-nums; display: inline-block; }
.gm-tick { animation: gm-tick .6s ease; }
@keyframes gm-tick { 30% { transform: translateY(-3px); color: #FFE27A; } }
.gm-sc.gm-press i { animation: gm-bounce .4s ease; }
@keyframes gm-bounce { 40% { transform: scale(.86); } 70% { transform: scale(1.08); } }
.gm-sc i { transition: transform .2s; }
@media (hover: hover) { .gm-sc:hover i { transform: translateY(-3px); } }

/* ---- v13: "just bought" pop-up ---------------------------------------------- */
.gm-just { position: fixed; left: 10px; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); z-index: 80; display: flex; align-items: center; gap: 4px;
  max-width: min(340px, calc(100vw - 20px)); background: #fff; border-radius: 14px; padding: 6px 6px 6px 6px; box-shadow: 0 8px 26px rgba(16,40,28,.22);
  transform: translateX(-120%); opacity: 0; transition: transform .45s cubic-bezier(.2,1.2,.4,1), opacity .3s; }
.gm-just.show { transform: none; opacity: 1; }
.gj-a { display: flex; align-items: center; gap: 10px; color: var(--ink) !important; min-width: 0; }
.gj-img { width: 46px; height: 46px; border-radius: 10px; background: var(--brand-lt) center / cover; flex: none; }
.gj-t { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.3; }
.gj-t b { color: var(--brand-dk); }
.gj-t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gj-t small { color: var(--muted); font-size: 11px; }
.gj-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #F1F4F2; cursor: pointer; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .gm-just { bottom: calc(var(--nav-h) + 24px); left: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .gm-tile .gt-img, .gt-offer, .gm-just { transition: none !important; animation: none !important; }
  .gm-anim .pc-img { animation: none; }
}

/* v15: photo + name are links (work even before the stylesheet updates) — keep them looking like text */
a.pc-name, a.pc-name:hover { color: var(--ink); }
a.pc-img { color: inherit; }
