/* ---- v51: Hind Siliguri served from our own site (assets/fonts/, uploaded once to the server — the
   .woff2 files are not in git). The browser downloads only the weights/scripts a page uses. ---- */
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/hind-siliguri-400-bengali.woff2') format('woff2'); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/hind-siliguri-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/hind-siliguri-500-bengali.woff2') format('woff2'); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/hind-siliguri-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/hind-siliguri-600-bengali.woff2') format('woff2'); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/hind-siliguri-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/hind-siliguri-700-bengali.woff2') format('woff2'); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/hind-siliguri-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============================================================================
   assets/app.css — Nexivey 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 Nexivey 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-tx,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: var(--surface,#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-tx,var(--brand-dk)); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.gm-sbtn.on { color: var(--sale); }
/* v40: one header row — logo · Deliver to · (search) · icons. Phones wrap the search onto a full-width second line. */
.gm-mlogo { flex: none; display: inline-flex; align-items: center; color: #fff; }
@media (min-width: 760px) { .gm-mlogo { display: none; } }      /* tablets/desktops use the main logo */
.gm-header .gm-hmain .gm-logo, .gm-header .gm-hmain .gm-mlogo { flex: none; min-width: 0; max-width: 132px; margin-right: 2px; }
.gm-header .gm-hmain .gm-logo img, .gm-header .gm-hmain .gm-logo svg,
.gm-header .gm-hmain .gm-mlogo img, .gm-header .gm-hmain .gm-mlogo svg { display: block; max-height: 18px !important; max-width: 100% !important; width: auto !important; height: auto !important; }
.gm-locchip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; min-height: 36px; padding: 3px 10px 3px 8px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font: inherit; font-size: 13px; text-align: left; line-height: 1.15; }
.gm-locchip:hover { background: rgba(255,255,255,.2); }
.gm-locchip > span:nth-of-type(1) { display: flex; flex-direction: column; min-width: 0; }
.gm-locchip small { font-size: 10.5px; opacity: .8; }
.gm-locchip b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.gm-locchip > span:last-child { opacity: .8; }
@media (max-width: 759px) {
  .gm-header { padding-top: 8px; }
  .gm-hmain { flex-wrap: wrap; row-gap: 8px; gap: 6px; }
  .gm-hmain .gm-logo-all { display: inline-flex; }
  .gm-header .gm-hmain .gm-logo, .gm-header .gm-hmain .gm-mlogo { max-width: 92px; }
  .gm-hmain .gm-locchip { flex: 1 1 0; max-width: none; margin: 0 4px 0 2px; padding-right: 8px; justify-content: center; }  /* fills the gap up to the ♥, content centred */
  .gm-hmain .gm-locchip > span:last-child { display: none; }
  .gm-hmain .gm-hicon { width: 36px; height: 40px; }
  .gm-hdesk { display: none; }        /* Messages & Orders live in the bottom bar / home card on phones */
  .gm-hmain .gm-search { order: 10; flex: 1 1 100%; }
}
@media (max-width: 340px) { .gm-locchip small { display: none; } }
/* v41: ♥ My likes in the header — pops when something is saved */
.gm-hlike.pop svg { animation: hlikePop .45s ease; }
.gm-hlike.pop svg path { fill: #fff; }
@keyframes hlikePop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .gm-hlike.pop svg { animation: none; } }
/* v43: card quick-pick sheet (Size / Colour) */
.qp-modal { z-index: 130; }
.qp-top { display: flex; gap: 12px; align-items: center; }
.qp-top img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: var(--brand-lt); }
.qp-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.qp-name { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qp-price { color: var(--sale); font-weight: 700; font-size: 18px; }
.qp-x { flex: none; align-self: flex-start; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2,#F1F3F2); cursor: pointer; font-size: 16px; }
.qp-opt { display: flex; flex-direction: column; gap: 8px; }
.qp-lbl { font-weight: 700; font-size: 14px; }
.qp-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.qp-v { min-height: 38px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface,#fff); font: inherit; font-size: 14px; cursor: pointer; }
.qp-v small { color: var(--muted); font-size: 11px; }
.qp-v.on { border-color: var(--brand-dk); background: var(--brand-lt); color: var(--brand-tx,var(--brand-dk)); font-weight: 700; }
.qp-v:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.qp-go { width: 100%; min-height: 48px; font-size: 16px; }
.qp-go:disabled { opacity: .55; }
/* Search-as-you-type dropdown */
.gm-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface,#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-tx,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-tx,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: var(--surface,#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-tx,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: var(--surface,#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); }
/* v58: one-line member strip */
.gm-acct-slim { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13.5px; color: var(--muted); }
.gm-acct-slim b { color: var(--ink); }
.gm-acct-slim span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-acct-go { flex: none; color: var(--brand-tx,var(--brand-dk)); font-weight: 700; }

/* ---- Shortcut icons: 2 rows, swipe sideways --------------------------------------- */
/* v57: shop features — one scrollable row of tinted pills */
.gm-quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; scroll-snap-type: x proximity; }
.gm-quick::-webkit-scrollbar { display: none; }
.gm-q { position: relative; flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px 0 11px; height: 40px;
  border-radius: 999px; background: var(--surface-2,#F4F6F5); background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid var(--bd,#E3E8E5); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--bd,#fff));
  color: var(--c); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.gm-q svg { flex: none; }
.gm-q:hover { background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--c); }
.gm-q em { position: absolute; top: 7px; left: 25px; width: 7px; height: 7px; border-radius: 50%; background: #D92D20; box-shadow: 0 0 0 2px #fff; animation: gmLiveDot 1.2s ease-in-out infinite; }
@keyframes gmLiveDot { 50% { opacity: .35; transform: scale(.8); } }
/* v57: categories — soft tinted circles with a coloured icon */
.gm-cats { padding: 12px 10px 10px; scroll-margin-top: calc(var(--hdr-h, 64px) + var(--hl-h, 0px) + var(--dn-h, 0px) + 8px); }
.gm-cats-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 8px; }
.gm-cats-h h2 { margin: 0; font-size: 15px; } .gm-cats-h small { font-weight: 500; color: var(--muted); }
.gm-shortcuts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 4px; }
.gm-sc { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; }
.gm-sc:hover, .gm-sc.on { color: var(--c); }
.gm-sc i { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none;
  background: var(--surface-2,#F1F4F2); background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); border: 1px solid var(--bd,#E3E8E5); border: 1px solid color-mix(in srgb, var(--c) 18%, var(--bd,#fff)); }
.gm-sc.on i { background: var(--c); color: #fff; }
.gm-sc span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 340px) { .gm-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- 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: var(--surface,#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: var(--surface,#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-tx,var(--brand-dk)); line-height: 18px; white-space: nowrap; }
.pc-chip.live { border-color: var(--live); background: var(--live); color: #fff; }
.pc-chip.pc-chip-muted { border-color: var(--line,#d0d5dd); color: var(--muted,#667085); }
.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; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); min-width: 0; white-space: nowrap; }
/* v42: star rating on every card */
.pc-rate { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.pc-stars { position: relative; display: inline-block; flex: none; font-size: 12px; line-height: 1; letter-spacing: .5px; color: #D9DED9; }
.pc-stars::before { content: '★★★★★'; position: absolute; left: 0; top: 0; width: var(--r, 0%); overflow: hidden; white-space: nowrap; color: #F2A900; }
.pc-rtxt { color: var(--muted); }
.pc-zone { align-self:flex-start; font-size:11px; font-weight:700; color:#8A5A00; background:#FFF3D6; border-radius:999px; padding:1px 7px; margin-bottom:2px; }   /* v77 */
.pc-store { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* v188: store name · delivery-area badge on one line — the store name shortens first, the badge keeps "+2" / "নেই" */
.pc-store { display: flex; align-items: center; gap: 5px; min-width: 0; }
.pc-store-n { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-area { display: inline-flex; align-items: center; gap: 3px; min-width: 0; max-width: 72%; flex: 0 1 auto; margin-left: auto; font-size: 11px; font-weight: 600; line-height: 18px; padding: 0 6px; border-radius: 6px; white-space: nowrap; }
.pc-area svg { flex: none; }
.pc-area-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pc-area-x { flex: none; }
.pc-area.t-local { background: #E7F6EC; color: #05603A; }
.pc-area.t-wide  { background: #F2F4F7; color: #344054; }
.pc-area.t-all   { background: none; color: var(--muted,#667085); font-weight: 500; padding: 0 2px; }
.pc-area.t-no    { background: #F2F4F7; color: #98A2B3; }
html.dm-dark .pc-area.t-local { background: rgba(18,161,80,.18); color: #6CE9A6; }
html.dm-dark .pc-area.t-wide, html.dm-dark .pc-area.t-no { background: rgba(255,255,255,.08); color: #D0D5DD; }
.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: var(--surface,#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-tx,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: var(--surface,#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-tx,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-tx,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: var(--surface,#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: var(--surface,#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: var(--surface,#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-tx,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 ---------------- */
/* ---- Footer (v63: calm and simple) -------------------------------------------------- */
.gm-foot { margin-top: 28px; color: #C9DDD1; font-size: 14px; }
.gm-foot a { color: inherit; }
.gm-foot-main { background: #0C2C1C; padding-top: 28px; }
.gm-foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-bottom: 22px; }
.gm-foot-brandcol { grid-column: 1 / -1; }
.gm-foot-logo img { max-width: 140px !important; max-height: 22px !important; width: auto !important; height: auto !important; display: block; }
.gm-foot-brandcol p { margin: 10px 0 0; color: #9FBAAB; line-height: 1.6; max-width: 360px; font-size: 13.5px; }
.gm-foot-social { display: flex; gap: 8px; margin-top: 12px; }
.gm-foot-social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.gm-foot-social a:hover { background: #12A150; }
.gm-foot-col b { display: block; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.gm-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gm-foot-col li a, .gm-foot-col li.gfa { display: inline-flex; align-items: flex-start; gap: 7px; color: #B8CFC2; line-height: 1.4; }
.gm-foot-col li a:hover { color: #fff; text-decoration: none; }
.gm-foot-col li svg { flex: none; margin-top: 1px; color: #6FCF97; }
.gm-foot-col:last-child { grid-column: 1 / -1; }
.gm-foot-pay { padding-top: 14px; padding-bottom: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.gm-foot-pay > b { display: block; font-size: 12px; color: #8FB3A0; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.gm-pays { display: flex; flex-wrap: wrap; gap: 8px; }   /* v71: bigger badges */
.gm-pay { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 12px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; }
.gm-pay img { display: block; height: 32px; width: auto; max-width: 130px; object-fit: contain; }
.gm-pay.only-logo { padding: 6px 10px; }
.gm-pay-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--pc, #0B7A3B);
  background: var(--surface-2,#EEF3F0); background: color-mix(in srgb, var(--pc, #0B7A3B) 12%, #fff); font-style: normal; flex: none; }
.gm-foot-copy { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 16px;
  border-top: 1px solid rgba(255,255,255,.08); color: #8FB3A0; font-size: 12.5px; }
.gm-foot-top { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff !important; font-weight: 600; }
.gm-foot-top:hover { background: rgba(255,255,255,.16); text-decoration: none; }
@media (max-width: 1023px) {
  body:has(.gm-foot) { padding-bottom: 0; }
  .gm-foot-main { padding-bottom: calc(var(--nav-h, 60px) + 4px + env(safe-area-inset-bottom)); }
}
@media (min-width: 720px) {
  .gm-foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
  .gm-foot-brandcol, .gm-foot-col:last-child { grid-column: auto; }
}
/* 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; }
/* v42: full-width "Add to cart" button, always at the bottom of the card */
.pc-body { flex: 1; }
/* v43: Add to cart + Buy now side by side */
.pc-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.pc-acts.one { grid-template-columns: 1fr; }
.pc-add, .pc-buy { position: relative; z-index: 2; height: 36px; min-width: 0; padding: 0 4px; gap: 5px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; transition: background .15s, color .15s, transform .15s; }
.pc-add { width: 100%; background: var(--brand-lt); color: var(--brand-tx,var(--brand-dk)); }
.pc-add.in { background: var(--brand-dk); color: #fff; }   /* v44: already in the cart */
.pc-buy { background: var(--sale); color: #fff; }
.pc-buy:hover { background: #C8321F; color: #fff; }
.pc-buy:active { transform: scale(.96); }
@media (max-width: 599px) { .pc-add svg { display: none; } }   /* phones: text only, so both fit */
.pc-body > .pc-store { margin-bottom: 4px; }
.pc-add svg { flex: none; }
.pc-add:hover { background: var(--brand-dk); color: #fff; }
.pc-add:active { transform: scale(.96); }
.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: var(--surface,#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; }
/* v52: 4th tile — 4 across everywhere. Phones: small square tiles with compact type. */
.t-four .gt-tag { background: #5B3FD1; }
@media (max-width: 599px) {
  .gm-tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .gm-tiles.four .gm-tile { border-radius: 10px; }
  .gm-tiles.four .gt-tag { top: 4px; left: 4px; max-width: calc(100% - 8px); padding: 0 5px; font-size: 9px; line-height: 15px; border-radius: 4px; }
  .gm-tiles.four .gt-off { top: 20px; right: 4px; font-size: 9px; line-height: 14px; padding: 0 4px; }
  .gm-tiles.four .gt-foot { left: 5px; right: 4px; bottom: 7px; }
  .gm-tiles.four .gt-now { font-size: 12.5px; }
  .gm-tiles.four .gt-old { font-size: 9px; }
  .gm-tiles.four .gt-dots { display: none; }
  .gm-tiles.four .gt-offer { inset: 22px 5px 6px; gap: 2px; }
  .gm-tiles.four .gt-big { font-size: 12.5px; white-space: normal; }
  .gm-tiles.four .gt-sub { font-size: 8.5px; -webkit-line-clamp: 2; }
  .gm-tiles.four .gt-code { font-size: 8.5px; line-height: 14px; padding: 0 4px; letter-spacing: 0; }
}
@media (min-width: 600px) {
  .gm-tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {   /* 4 narrower tiles → slightly smaller type */
  .gm-tiles.four .gt-now { font-size: 28px; } .gm-tiles.four .gt-big { font-size: 30px; } .gm-tiles.four .gt-sub { font-size: 15px; }
  .gm-tiles.four .gt-tag, .gm-tiles.four .gt-off { font-size: 14px; line-height: 22px; }
  .gm-tiles.four .gt-offer { inset: 52px 18px 20px; padding-bottom: 34px; }
}
.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: var(--surface,#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-tx,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: var(--surface-2,#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; }

/* ---- v34: pinned category bar ------------------------------------------------------
   The chips under "Just for you" stick right under the (sticky) header while the
   products scroll; --hdr-h is the header height, measured by index.php. A soft shadow
   appears only while pinned. Ends with the #feed section (sticky inside its parent). */
.gm-chipbar { position: sticky; top: calc(var(--hdr-h, 64px) + var(--hl-h, 0px) + var(--dn-h, 0px)); z-index: 30; background: var(--bg); margin: 0 -12px; padding: 8px 12px; transition: box-shadow .2s; }
.gm-chipbar.stuck { box-shadow: 0 8px 12px -10px rgba(16, 40, 28, .35); border-bottom: 1px solid var(--line); }
#feed { scroll-margin-top: calc(var(--hdr-h, 64px) + var(--hl-h, 0px) + var(--dn-h, 0px) + 4px); }

/* ============================================================================
   v32: DESKTOP LAYOUT (≥ 1024 px). Phones and tablets below 1024 px are untouched.
   Marketplace-style header: logo · big search · Account / Messages / Orders / Cart with
   labels, a white section bar under it (replaces the phone bottom nav), full-width
   category grid, calmer promo tiles, no floating phone bars.
   ============================================================================ */
.gm-hlbl, .gm-hacct { display: none; }
/* v60: section bar — under the headline, pinned while the page scrolls (phones: one swipeable row) */
body:has(.gm-dnav) { --dn-h: 45px; }
.gm-dnav { display: block; position: sticky; top: calc(var(--hdr-h, 64px) + var(--hl-h, 0px)); z-index: 35; background: var(--surface,#fff);
  border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px -4px rgba(16,40,28,.14); }
.gm-dnav .gm-wrap { display: flex; align-items: center; gap: 2px; height: 44px; overflow-x: auto; scrollbar-width: none; padding: 0 8px; }
.gm-dnav .gm-wrap::-webkit-scrollbar { display: none; }
.gm-dnav a { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.gm-dnav a:hover { background: var(--brand-lt); color: var(--brand-tx,var(--brand-dk)); }
.gm-dnav a.on { background: var(--brand-lt); color: var(--brand-tx,var(--brand-dk)); }
.gm-dnav a svg { color: var(--brand-tx,var(--brand-dk)); flex: none; }
.gm-dnav a em { font-style: normal; font-size: 11px; background: var(--sale); color: #fff; border-radius: 999px; padding: 0 6px; line-height: 17px; }
.gm-dnav-sp { flex: 1; min-width: 8px; }
@media (min-width: 1024px) {
  body { padding-bottom: 0; font-size: 15px; }
  .gm-wrap { max-width: 1280px; padding: 0 24px; }

  /* Header: one tidy row */
  .gm-header { padding: 14px 0; box-shadow: none; }
  .gm-header .gm-hrow { gap: 14px; min-height: 52px; }
  .gm-header .gm-hmain .gm-logo { max-width: 168px; margin-right: 4px; }
  .gm-header .gm-hmain .gm-logo img, .gm-header .gm-hmain .gm-logo svg { max-height: 22px !important; }
  .gm-header .gm-logo .br-plate { max-width: 100%; }
  .gm-search { height: 48px; border-radius: 12px; max-width: 720px; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
  .gm-search input { height: 48px; font-size: 16px; }
  .gm-search:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
  .gm-hicon { width: auto; height: 48px; padding: 0 10px; gap: 8px; border-radius: 10px; }
  .gm-hicon .gm-badge { top: 2px; right: auto; left: 22px; }
  .gm-hlbl { display: inline-flex; flex-direction: column; font-size: 14px; font-weight: 600; line-height: 1.15; white-space: nowrap; }
  .gm-hlbl small { font-size: 12px; font-weight: 400; opacity: .85; }
  .gm-hacct { display: inline-flex; }
  /* "Deliver to" sits beside the logo, Amazon-style */
  .gm-locchip { flex: none; max-width: 170px; min-height: 48px; background: transparent; font-size: 14px; }
  .gm-locchip small { font-size: 12px; }

  /* White section bar = desktop navigation */
  body:has(.gm-dnav) { --dn-h: 47px; }
  .gm-dnav .gm-wrap { height: 46px; gap: 4px; padding: 0 24px; }
  .gm-dnav a { height: 34px; padding: 0 12px; border-radius: 8px; font-size: 14px; gap: 6px; }
  .gm-nav { display: none; }                         /* phone bottom nav: replaced by the bar above */

  /* Page rhythm */
  .gm-main { gap: 20px; padding-top: 20px; }
  .gm-card { padding: 20px; border-radius: 14px; }
  .gm-sec-h h2 { font-size: 20px; }
  .gm-flash { margin-top: 16px; }
  .gm-acct-guest { display: none; }
  .gm-chipbar { margin: 0 -24px; padding: 10px 24px; }                  /* header already offers "Log in / Sign up" */

  /* Categories: a full-width grid, no sideways scrolling */
  .gm-cats { padding: 18px 20px 20px; }
  .gm-cats-h h2 { font-size: 17px; }
  .gm-shortcuts { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 18px 10px; }
  .gm-sc { font-size: 13.5px; gap: 10px; }
  .gm-sc i { width: 62px; height: 62px; }
  .gm-sc i svg { width: 26px; height: 26px; }
  .gm-quick { gap: 10px; }
  .gm-q { height: 44px; font-size: 14.5px; padding: 0 18px 0 14px; }

  /* Promo tiles: 4:3, the whole product photo is shown (not cropped) on a white card */
  .gm-tiles { gap: 20px; }
  .gm-tile { aspect-ratio: 4 / 3; border-radius: 16px; }
  .gm-tile:not(.t-offer) { background: var(--surface,#fff); }
  .gm-tile:not(.t-offer) .gt-img { object-fit: contain; padding: 14px 14px 56px; background: var(--surface,#fff); }
  .gm-tile:not(.t-offer) .gt-scrim { inset: 55% 0 0 0; }

  /* Banner: 1600×500 (3.2 : 1) — the whole uploaded banner, never taller than ~385 px */
  .gm-banner { aspect-ratio: 16 / 5; border-radius: 16px; }
  /* Never crop a banner on desktop: the whole picture is shown; if it is not 1600×500 the
     side gaps are filled with a blurred copy of the same picture (--bimg set in index.php). */
  .gm-slide { overflow: hidden; background: #0B3D26; }
  .gm-slide::before { content: ''; position: absolute; inset: -30px; background: var(--bimg) center / cover no-repeat; filter: blur(24px) brightness(.85); }
  .gm-slide img { position: relative; object-fit: contain; }
  .gt-now { font-size: 32px; } .gt-big { font-size: 34px; }
  .gt-offer { inset: 62px 24px 24px; padding-bottom: 36px; }

  /* Product grid */
  .gm-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .pc { border-radius: 12px; }
  .pc-body { padding: 10px 12px 12px; gap: 6px; }
  .pc-name { font-size: 15px; }
  .pc-price b { font-size: 18px; }

  /* Floating cards: bottom corners instead of above the (hidden) phone bar */
  .gm-just { left: 24px; bottom: 24px; }
  #gmPushCard { left: auto !important; right: 24px !important; bottom: 24px !important; margin: 0 !important; }
  .gm-toast { top: 96px; }

  /* Footer */
  .gm-foot { margin-top: 40px; }
  .gm-foot-main { padding-top: 40px; }
}
@media (min-width: 1360px) { .gm-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* v101: centre "Shop" button in the bottom nav — raised orange circle */
.gm-nav a.gm-nav-shop { color: #e8452f; font-weight: 700; }
.gm-nav a.gm-nav-shop .gm-nav-ic { width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #ff8a1a, #ff2d55); box-shadow: 0 6px 16px rgba(255, 60, 40, .38), 0 0 0 4px #fff; transition: transform .15s; }
.gm-nav a.gm-nav-shop:active .gm-nav-ic { transform: scale(.94); }
.gm-nav a.gm-nav-shop.on .gm-nav-ic::before { display: none; }
.gm-nav a.gm-nav-shop .gm-badge { top: -2px; right: -4px; }

/* v118: categories in one auto-gliding row (index.php #catRun) */
.gm-shortcuts.gm-catrun { display: flex; grid-template-columns: none; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 2px 0 4px; margin: 0 -4px; touch-action: pan-x; }
.gm-catrun::-webkit-scrollbar { display: none; }
.gm-catrun .gm-sc { flex: 0 0 78px; }
.gm-catrun.is-auto { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
@media (min-width: 900px) { .gm-catrun .gm-sc { flex-basis: 96px; } }

/* ---- v157: compact "Where should we deliver?" sheet (index.php #locModal) -------------------------- */
.ls-sheet { gap: 10px; padding: 14px 14px calc(12px + env(safe-area-inset-bottom)); }
.ls-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ls-head h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.ls-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--surface-2, #F1F4F2); color: var(--tx2, #5A665F); font-size: 22px; line-height: 1; cursor: pointer; }
.gm-sheet .ls-sub { margin-top: -6px; font-size: 13px; }
.ls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gm-sheet .ls-f { position: relative; gap: 0; min-width: 0; }
.ls-f > span { position: absolute; z-index: 1; top: 7px; left: 12px; right: 28px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--tx2, #6B7670);
  pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-sheet .ls-f select { width: 100%; min-width: 0; min-height: 54px; padding: 20px 28px 5px 11px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--tx, #1B2420);
  -webkit-appearance: none; appearance: none; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer;
  background: var(--surface, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237C8781' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.gm-sheet .ls-f select:focus { outline: none; border-color: #12A150; box-shadow: 0 0 0 3px rgba(18,161,80,.15); }
.gm-sheet .ls-f select:disabled { opacity: .5; cursor: not-allowed; }
.ls-foot { position: sticky; bottom: calc(-12px - env(safe-area-inset-bottom)); margin: 2px -14px 0; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); background: var(--surface, #fff);
  border-top: 1px solid var(--bd, #E8ECEA); }
.ls-foot .gm-btn { min-height: 46px; }
@media (min-width: 600px) { .ls-sheet { padding: 20px 20px 0; } .ls-foot { bottom: 0; margin: 2px -20px 0; padding: 12px 20px 16px; } }
/* v158: the sheet follows the visible area (keyboard open) — height comes from the modal, not the screen */
.gm-modal .ls-sheet { max-height: calc(100% - 10px); }
/* v160: no "just bought" pop-up on top of an open sheet / dialog */
body:has(.gm-modal.open) .gm-just { display: none !important; }
body.gm-asking .gm-just { display: none !important; }   /* v169: the notifications card has the spot */
