/* TFT Mart — shared styles (converted from the "TFT Mart Homepage" design) */

/* The taka sign (৳, U+09F3) drawn like Bangladeshi price tags: the upright sign from Noto Sans Bengali (OFL), as
   tall and heavy as the digits. Only this one character uses it (unicode-range); each file is under 1 KB. */
@font-face { font-family: 'Churi Taka'; font-weight: 100 550; font-display: block; unicode-range: U+09F3; src: url('../assets/fonts/taka-400.woff2') format('woff2'); }
@font-face { font-family: 'Churi Taka'; font-weight: 551 900; font-display: block; unicode-range: U+09F3; src: url('../assets/fonts/taka-700.woff2') format('woff2'); }
/* Jost (headings) and Hind Siliguri (text), served by the shop. font-display: optional, so text never changes font after it appears. */
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 400; font-display: optional; src: url('../assets/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: optional; src: url('../assets/fonts/hind-siliguri-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 400; font-display: optional; src: url('../assets/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: optional; src: url('../assets/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: optional; src: url('../assets/fonts/hind-siliguri-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 500; font-display: optional; src: url('../assets/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: optional; src: url('../assets/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: optional; src: url('../assets/fonts/hind-siliguri-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 600; font-display: optional; src: url('../assets/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: optional; src: url('../assets/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: optional; src: url('../assets/fonts/hind-siliguri-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 700; font-display: optional; src: url('../assets/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; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: optional; src: url('../assets/fonts/jost-var-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: optional; src: url('../assets/fonts/jost-var-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; }

:root {
  /* TFT Mart brand colours: royal purple with a gold accent on soft lavender. Everything else below points at these.
     Brand purple carries the identity (top bar, menu bar, headings, buttons); the footer uses its deeper shade. */
  --white: #FFFFFF; --pink: #7A2DBE; --rose: #9A6A08; --brand: #5A1D8C; --soft-pink: #F4ECFC; --text: #24163A; --border: #E8DFF3; --purple: var(--brand); --purple-hover: var(--brand-hover);
  --pink-hover: #6522A3; --rose-hover: #7E5605; --brand-hover: #461470; --brand-deep: #3C0F62; /* the same colours a shade deeper, for hover */
  /* Gold, as in the logo: decoration, stars and highlights (text on white uses the deeper --gold-ink). */
  --gold-bright: #D9A520; --gold-ink: #8C6206;
  /* Violet: the product cards' cart buttons and the selected category pill (white on it 6.9:1), apart from the deep purple Buy Now. */
  --accent: #6E27AD; --accent-hover: #5A1D8C;
  --text-soft: #66576E; /* secondary text: the plum ink, lighter (6.4:1 on white) */
  --page-bg: var(--white); --header-bg: var(--white); --hero-bg: var(--white); --card-bg: var(--white); --topbar-bg: var(--brand); --blush: var(--soft-pink);
  --jade: var(--brand); --jade-hover: var(--brand-hover); --gold: var(--pink); --gold-antique: var(--pink); --gold-light: var(--soft-pink);
  --cta: var(--purple); --cta-hover: var(--purple-hover); --cta-text: var(--white); --gold-btn-text: var(--white);
  --price-old: #7A6C82; --badge-text: var(--white); --topbar-text: var(--white);
  --chip-border: var(--border);
  --footer-bg: var(--brand-deep); --footer-text: rgba(255,255,255,.82); --footer-link: var(--white); --footer-muted: rgba(255,255,255,.7); --footer-divider: rgba(255,255,255,.16);
  --primary: var(--jade);
  --primary-hover: var(--jade-hover);
  --navy: var(--jade);
  --navy-hover: var(--jade-hover);
  --navy-tint: var(--soft-pink);
  --navy-wash: var(--header-bg);
  --deep: var(--footer-bg);
  --deep-line: var(--footer-divider);
  --ink: var(--text);
  --ink-2: var(--text);
  --body-2: var(--text);
  --muted: var(--text-soft);
  --slate: var(--text-soft);
  --gray-1: var(--text-soft);
  --line: var(--border);
  --line-2: var(--chip-border);
  --line-soft: var(--header-bg);
  --bg: var(--card-bg);
  --sale: var(--cta);
  --save: var(--jade);
  --save-bg: var(--soft-pink);
  --save-ink: var(--pink);
  --ok: var(--jade);
  --err: #DC2626;
  --err-bg: #FEF2F2;
  --amber: #E0A03A;
  --cream: var(--blush);
  --wa: #25D366;
  --font-body: 'Churi Taka', 'Hind Siliguri', system-ui, sans-serif;
  --font-head: 'Churi Taka', 'Jost', 'Hind Siliguri', sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* Seamless page-to-page: cross-document view transitions (Chrome 126+, Safari 18.2+) keep the header on screen and
   avoid a blank frame. No fade: the new page replaces the old one the moment it is ready, like an app. */
@view-transition { navigation: auto; }
::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; }
.hdr { view-transition-name: site-header; }

*, *::before, *::after { box-sizing: border-box; }

/* Page edges (matched to the reference site). Content: 14px side gutter up to 960px wide, then a fixed width that
   steps up with the screen. Header and footer: their own gutters, up to 1400px wide. */
:root { --page-w: 100%; --page-pad: 14px; --hdr-pad: 12px; --foot-pad: 20px; }
@media (min-width: 640px) { :root { --hdr-pad: 20px; --foot-pad: 32px; } }
@media (min-width: 961px) { :root { --page-w: 800px; --page-pad: 0px; } }
@media (min-width: 1024px) { :root { --hdr-pad: 32px; --foot-pad: 5%; } }
@media (min-width: 1025px) { :root { --page-w: 970px; } }
@media (min-width: 1281px) { :root { --page-w: 1100px; } }
@media (min-width: 1401px) { :root { --page-w: 1200px; } }
@media (min-width: 1601px) { :root { --page-w: 1400px; } }
html { scroll-behavior: smooth; touch-action: manipulation; } /* no double-tap zoom */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button { font-family: inherit; cursor: pointer; }
select, input, textarea { font-family: inherit; }
img { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hd { font-family: var(--font-head); font-weight: 500; letter-spacing: -.005em; }
.price { font-family: var(--font-body); }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; height: 76px; background: rgba(11,44,177,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.hdr-in { max-width: 1400px; height: 100%; margin: 0 auto; padding: 0 var(--hdr-pad); display: flex; align-items: center; gap: 40px; }
/* Desktop: the header row lines up with the page content below it (same width as --page-w, no extra side padding),
   so the logo starts where the breadcrumbs, headings and product grid start, and Bag ends where the grid ends. */
@media (min-width: 1025px) { .hdr:not(.hdr-co) .hdr-in { max-width: var(--page-w); padding: 0; } }
.hdr-top { display: contents; }
.hdr-tag, .hdr-acts { display: contents; }
/* Desktop header, 104px in all: row 1 (64px) — logo centred, search pill + Track Order + Bag on the right, a hairline
   under it; row 2 (40px) — the categories on a slightly darker band. Phones keep their own header (.mob-bar). */
@media (min-width: 1025px) {
  .hdr:not(.hdr-co) { height: auto; }
  .hdr:not(.hdr-co) .hdr-in { display: block; height: auto; }
  .hdr-top { position: relative; display: flex; align-items: center; justify-content: space-between; height: 64px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hdr-tag { display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.8); }
  .hdr-top .hdr-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  /* The script logo is wide and its letters sit inside a swash: 44px tall reads at the same weight as the menu. */
  .hdr-top .hdr-logo img { height: var(--logo-h, 44px); max-width: 360px; }
  .hdr-acts { display: flex; align-items: center; justify-content: flex-end; gap: 24px; min-width: 0; margin-left: auto; }
  .hdr-acts .search { flex: 0 0 208px; min-width: 0; }
  .hdr-acts .srch { height: 36px; padding: 0 38px 0 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12px; transition: background .2s; }
  .hdr-acts .srch:hover { background: rgba(255,255,255,.15); }
  .hdr-acts .srch:focus { background: rgba(255,255,255,.2); outline: 2px solid rgba(255,255,255,.55); outline-offset: 0; }
  .hdr-acts .srch::placeholder { color: rgba(255,255,255,.6); }
  .hdr-acts .search-go { top: 2px; right: 2px; width: 32px; height: 32px; }
  .hdr-acts .search-go svg { width: 16px; height: 16px; }
  .hdr-acts .dd { top: 48px; left: auto; right: 0; width: 420px; }
  .hdr-acts .hdr-icons { margin-left: 0; gap: 24px; }
  /* Track Order: icon and words side by side; Bag: the icon and its count. */
  .hdr-acts .hdr-icon { flex-direction: row; gap: 6px; font-size: 12px; font-weight: 500; }
  .hdr-acts .hdr-icon svg { width: 20px; height: 20px; }
  .hdr-acts button.hdr-icon > span:not(.badge) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hdr-acts .badge { top: -6px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; font-weight: 700; color: var(--jade); }
  .hdr:not(.hdr-co) .main-nav { position: relative; height: 40px; justify-content: center; gap: 32px; }
  /* The band runs edge to edge as a shadow (shadows don't widen the page, so no sideways scroll), clipped to the row. */
  .hdr:not(.hdr-co) .main-nav::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.05); box-shadow: 0 0 0 100vmax rgba(0,0,0,.05); clip-path: inset(0 -100vmax); pointer-events: none; }
  .hdr:not(.hdr-co) .nav-a { position: relative; font-size: 12px; font-weight: 600; letter-spacing: .12em; padding: 4px 0; border-bottom: 0; transition: opacity .15s; }
  .hdr:not(.hdr-co) .nav-a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: .12em; bottom: -2px; height: 2px; border-radius: 2px; background: #fff; }
  .hdr-logo, .hdr-icon { transition: opacity .2s; }
  .hdr-logo:hover { opacity: .8; }
  .hdr:not(.hdr-co) .nav-a:hover, .hdr:not(.hdr-co) .hdr-icon:hover { opacity: .75; }
}
@media (min-width: 1025px) and (max-width: 1280px) { .hdr-acts .search { flex-basis: 180px; } .hdr-acts, .hdr-acts .hdr-icons { gap: 18px; } }
.hdr-logo { display: flex; align-items: center; flex-shrink: 0; }
/* Logo size from Admin → Settings → Store identity (--logo-h computers, --logo-hm phones; set by js/common.js).
   The checkout header shows it at 36px at the default 44. */
.hdr-logo img { height: calc(var(--logo-h, 44px) * 9 / 11); width: auto; max-width: 360px; }
.main-nav { display: flex; align-items: center; gap: 34px; flex-shrink: 0; }
.nav-a { color: #fff !important; font-family: var(--font-head); font-style: normal; font-weight: 600; font-size: 15px; letter-spacing: .13em; transition: opacity .2s; background: none; border: 0; padding: 6px 0; display: flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; }
.nav-a:hover { opacity: .78; }
.nav-a[aria-current="page"] { border-bottom-color: #fff; }
.nav-a .chev { transition: transform .2s; }
.nav-a[aria-expanded="true"] .chev { transform: rotate(180deg); }

.search { flex: 1; min-width: 200px; position: relative; margin: 0; }
.srch { width: 100%; height: 44px; border-radius: 3px; border: 1px solid rgba(255,255,255,.38); background: rgba(255,255,255,.12); color: #fff; font-size: 17px; padding: 0 52px 0 20px; }
.srch::placeholder { color: rgba(255,255,255,.88); }
.srch:focus { outline: 2px solid rgba(255,255,255,.7); outline-offset: 0; }
/* The clear (×) button: drawn to match the field instead of the browser's own. */
.srch::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-left: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .85; cursor: pointer; }
.search-go { position: absolute; right: 4px; top: 2px; width: 40px; height: 40px; border: 0; background: none; color: #fff; display: flex; align-items: center; justify-content: center; }

.hdr-icons { display: flex; align-items: center; gap: 30px; flex-shrink: 0; margin-left: auto; }
.hdr-icon { color: #fff !important; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; position: relative; transition: opacity .2s; background: none; border: 0; padding: 0; }
.hdr-icon:hover { opacity: .78; }
.badge { position: absolute; top: -6px; right: -8px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #fff; color: var(--primary); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.badge.pop-a { animation: popA .55s cubic-bezier(.3,1.6,.5,1); }
.badge.pop-b { animation: popB .55s cubic-bezier(.3,1.6,.5,1); }

/* search dropdown */
/* Search suggestions: a white card in the shop's colours — blue for the marked words, links and buttons, navy
   text, soft blue shadow. */
.dd { position: absolute; top: 52px; left: 0; right: 0; z-index: 5; background: #fff; color: var(--ink); text-align: left; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 22px 50px rgba(11, 44, 177, .18), 0 2px 6px rgba(11, 44, 177, .06); overflow: hidden; animation: ddIn .16s ease-out; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dd-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--jade); }
.dd-head span + span { letter-spacing: .02em; text-transform: none; font-weight: 600; color: #94A3B8; }
.dd-list { padding: 2px 6px 6px; }
.dd-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); transition: background .12s; }
.dd-row:hover, .dd-row.on { background: var(--hero-bg); color: var(--ink); }
.dd-row img { width: 46px; height: 54px; border-radius: 8px; object-fit: cover; background: #F1F5F9; flex-shrink: 0; }
.dd-info { flex: 1; min-width: 0; }
.dd-row .nm { font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-row .nm mark { background: none; color: var(--jade); font-weight: 700; }
.dd-row .ct { margin-top: 2px; font-size: 12px; color: #64748B; }
.dd-row .pr { flex-shrink: 0; text-align: right; }
.dd-row .pr b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.dd-row .pr s { font-size: 12px; color: #94A3B8; }
.dd-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 16px; border-top: 1px solid #EDF2F7; background: #F7F8FE; color: var(--jade); font-size: 13.5px; font-weight: 700; }
.dd-all:hover, .dd-all.on { background: var(--hero-bg); color: #08207F; }
.dd-empty { padding: 22px 20px 20px; text-align: center; }
.dd-empty .ic { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: var(--hero-bg); color: var(--jade); display: flex; align-items: center; justify-content: center; }
.dd-empty .t { font-size: 16px; font-weight: 700; color: var(--ink); }
.dd-empty .s { margin-top: 4px; font-size: 13px; color: #64748B; }
.dd-empty .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.dd-empty .chip-btn { height: 32px; padding: 0 14px; border: 1px solid var(--hero-bg); border-radius: 999px; background: #fff; color: var(--jade); font-size: 13px; font-weight: 600; cursor: pointer; }
.dd-empty .chip-btn:hover { border-color: var(--jade); background: var(--hero-bg); }
.dd-empty .browse { display: inline-block; margin-top: 16px; padding: 10px 20px; border-radius: 999px; background: var(--jade); color: #fff; font-size: 13.5px; font-weight: 700; }
.dd-empty .browse:hover { background: var(--jade); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip-btn { border: 1px solid #CBD5E1; background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--ink); }

/* mobile header */
/* Icons 24px in 44px tap areas; padding 4px puts each icon's edge on the page's 14px side margin (4 + 10), so the
   header lines up with the content below and both sides match. */
.mob-bar { display: none; height: 100%; padding: 0 4px; align-items: center; grid-template-columns: 1fr auto 1fr; column-gap: 8px; }
.mob-bar > :first-child { justify-self: start; }
.mob-bar > :last-child { justify-self: end; gap: 4px; }
.mob-bar img { height: var(--logo-hm, 28px); width: auto; max-width: calc(100vw - 150px); object-fit: contain; }
.mob-bar .icon-btn svg { width: 24px; height: 24px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; color: #fff; display: flex; align-items: center; justify-content: center; position: relative; }
.icon-btn .badge { top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
/* Phone search: a band in the header's blue with a white field (search icon on the left). */
.mob-search { display: none; background: var(--jade); padding: 0 12px 12px; position: relative; margin: 0; }
.mob-search .srch { height: 46px; font-size: 16px; padding: 0 14px 0 42px; border: 0; border-radius: 12px; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px center / 18px no-repeat; box-shadow: 0 2px 8px rgba(11, 44, 177, .15); }
.mob-search .srch::placeholder { color: #94A3B8; }
.mob-search .srch:focus { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 2px 8px rgba(11, 44, 177, .15); }
.mob-search .srch::-webkit-search-cancel-button { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); opacity: 1; }

/* mega menu */
.mega { position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 24px 48px rgba(15,23,42,.14); border-top: 1px solid #E2E8F0; }
.mega-in { max-width: 1360px; margin: 0 auto; padding: 36px 40px 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.mega-t { font-family: var(--font-head); font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: .18em; margin-bottom: 16px; color: var(--ink); }
.mega-col { display: flex; flex-direction: column; gap: 11px; }
.mega-a { color: #334155 !important; font-family: var(--font-head); font-style: normal; font-weight: 600; font-size: 15px; }
.mega-a:hover { color: var(--navy) !important; }
/* Menu badges (set per item in admin → Menus). */
.mbadge { display: inline-flex; align-items: center; height: 16px; margin-left: 6px; padding: 0 5px; border-radius: 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; line-height: 1; vertical-align: 2px; text-transform: uppercase; }
.mb-red { background: #DC2626; color: #fff; }
.mb-amber { background: var(--amber); color: #1A1206; }
.mb-green { background: #16A34A; color: #fff; }
.mb-blue { background: #2563EB; color: #fff; }
.mb-pink { background: #DB2777; color: #fff; }
.mb-white { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.mega-feat { border-radius: 10px; background: #D9C4A6 center / cover no-repeat; min-height: 240px; position: relative; overflow: hidden; display: block; }
.mega-feat::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,0) 35%, rgba(15,23,42,.72)); }
/* Only the text box is pinned to the bottom corner; its lines stack normally inside it. */
.mega-feat > div { position: absolute; left: 22px; right: 22px; bottom: 22px; color: #fff; }

/* toast */
.toast { position: absolute; left: 50%; top: calc(100% + 14px); z-index: 60; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 12px 14px 12px 12px; background: var(--ink); color: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(15,23,42,.28); animation: toastIn .42s var(--ease-out) both; transform: translateX(-50%); }
.toast .ck { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--ok); display: flex; align-items: center; justify-content: center; }
.toast .tx { min-width: 0; font-size: 14px; line-height: 1.35; }
.toast .tx span { display: block; color: #CBD5E1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-soon { width: max-content; }
.toast-soon .tx span { white-space: normal; }
.toast .ck.soon { background: var(--amber); color: #1A1206; }
.toast .ck.soon svg { width: 17px; height: 17px; }
.toast button, .toast a { flex-shrink: 0; margin-left: 6px; padding: 0; border: 0; background: none; color: #fff; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* menu drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: flex; }
.drawer-panel { width: 84%; max-width: 340px; background: #fff; height: 100%; overflow-y: auto; padding: 18px 0 30px; box-shadow: 0 0 40px rgba(0,0,0,.25); animation: menuIn .32s var(--ease-out) both; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 14px 22px; border-bottom: 1px solid #E2E8F0; }
.drawer-head .icon-btn { color: var(--ink); }
.drawer nav { display: flex; flex-direction: column; padding: 8px 0; }
.drawer nav a { padding: 15px 22px; font-family: var(--font-head); font-style: normal; font-weight: 600; font-size: 15px; letter-spacing: .12em; color: var(--ink); border-bottom: 1px solid #F1F5F9; }
.drawer .help-h { padding: 14px 22px 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.drawer nav a.help-a { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.drawer-scrim { flex: 1; border: 0; background: rgba(15,23,42,.5); animation: fadeIn .25s ease both; }

/* ---------- Buttons, fields, chips (shared) ---------- */
.buy { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 0; border-radius: 4px; background: var(--navy); color: #fff !important; font-size: 17px; font-weight: 500; transition: background .2s; }
.buy:hover { background: var(--navy-hover); color: #fff; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 1.5px solid var(--ink-2); border-radius: 4px; background: #fff; color: var(--ink-2) !important; font-size: 16px; font-weight: 500; transition: background .2s, color .2s; }
.btn-line:hover { background: var(--ink-2); color: #fff !important; }
.fld { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 16px; background: #fff; color: var(--ink-2); transition: border-color .2s, box-shadow .2s; }
textarea.fld { height: auto; padding: 10px 14px; line-height: 1.5; resize: vertical; }
.fld:focus { outline: none; border-color: var(--navy) !important; box-shadow: 0 0 0 3px rgba(11,31,75,.1); }
.fld::placeholder { color: #7D6F85; }
.fld[aria-invalid="true"] { border-color: var(--err); }
.lbl { display: block; font-size: 14px; font-weight: 600; color: var(--body-2); margin-bottom: 4px; }
.lbl .req { color: var(--err); }
.lbl .hint-o { font-weight: 400; color: #7D6F85; }
.ferr { margin-top: 6px; font-size: 13px; color: var(--err); animation: errIn .2s ease both; }
.fhint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.sel-wrap { position: relative; display: block; }
.sel-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.sel-wrap svg { position: absolute; right: 14px; top: 15px; pointer-events: none; }
.pill { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s; }
.pill:hover { border-color: var(--navy); }
.pill[aria-pressed="true"], .pill[aria-checked="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.crumbs { padding-top: 24px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink-2); }
.page-h { margin: 14px 0 0; font-size: 34px; font-weight: 600; line-height: 1.15; color: var(--brand); }
.page-sub { margin: 8px 0 0; font-size: 16px; color: var(--gray-1); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.shake-a { animation: shakeA .4s ease; }
.shake-b { animation: shakeB .4s ease; }

/* ---------- Product card ---------- */
.pc { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; animation: cardIn .42s var(--ease-out) both; }
.pc-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #F3F4F6; }
.pc-link { position: absolute; inset: 0; }
.pimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pc:hover .pimg { transform: scale(1.05); }
.pc.sold .pimg { filter: grayscale(1); opacity: .6; }
.tag-off { position: absolute; top: 12px; left: 12px; background: var(--sale); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; padding: 6px 8px; border-radius: 4px; pointer-events: none; }
.tag-sold { position: absolute; top: 12px; right: 12px; background: var(--ink-2); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1; padding: 7px 9px; border-radius: 4px; pointer-events: none; }
.pc-body { padding: 16px; display: flex; flex-direction: column; }
.pname { margin: 0; font-family: var(--font-head); font-size: 16px; font-weight: 400; letter-spacing: -.005em; line-height: 1.35; }
.pname a { color: var(--ink-2); }
.save { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 18px; background: var(--save-bg); color: var(--save-ink); font-size: 13px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 3px; }
.pc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.pc-prices { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; min-width: 0; white-space: nowrap; }
.pc-prices b { font-size: 20px; font-weight: 700; color: var(--ink-2); }
.pc-prices s { font-size: 14px; font-weight: 500; color: #66576E; }
.cart-wrap { position: relative; flex-shrink: 0; }
.cart-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; color: #fff; display: flex; align-items: center; justify-content: center; background: var(--navy); transition: background .3s; }
.cart-btn.open { background: var(--navy-hover); }
.cart-btn.added { background: var(--ok); animation: pressPop .5s cubic-bezier(.3,1.6,.5,1); }
.cart-btn.added svg { stroke-dasharray: 24; animation: drawCheck .4s ease-out both; }
.cart-btn:disabled { background: #DCD2E3; cursor: not-allowed; }
.plus1 { position: absolute; left: 50%; top: -8px; font-size: 13px; font-weight: 700; color: var(--ok); pointer-events: none; animation: floatUp .9s ease-out forwards; }
/* Card Buy Now — hope71.com's: 36px tall, 4px corners, 16.5px text, 14px bolt, 6px under the price row. */
.pc .buy { height: 36px; margin-top: 6px; gap: 4px; border-radius: 4px; font-size: 16.5px; font-weight: 400; box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); }
.pc .buy svg { width: 14px; height: 14px; stroke-width: 2; }
.pc .notify { height: 36px; margin-top: 6px; font-size: 15px; }
/* Wide desktops: card Buy Now at hope71.com's width (269px), centred, reaching a little into the card padding. */
@media (min-width: 1401px) { .pc .buy { width: 269px; max-width: calc(100% + 24px); align-self: center; } }
.notify { display: flex; align-items: center; justify-content: center; height: 48px; margin-top: 16px; border-radius: 4px; font-size: 16px; font-weight: 500; transition: all .2s; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); }
.notify.on { border-color: var(--save); background: #F0FDF4; color: var(--save-ink); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; row-gap: 24px; }

/* size sheet */
.sheet { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 14px; border-radius: 12px 12px 0 0; box-shadow: 0 -10px 30px rgba(15,23,42,.14); animation: sheetUp .34s var(--ease-out) both; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.sheet-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #F3F4F6; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.sz { height: 40px; border-radius: 6px; font-size: 14px; font-weight: 600; border: 1.5px solid #DCD2E3; background: #fff; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s, transform .15s; }
.sz.on { border-color: var(--navy); background: var(--navy); color: #fff; transform: scale(1.04); }
.sz.na { border: 1.5px dashed var(--line); background: #FAF7FC; color: #C0C4CC; text-decoration: line-through; cursor: not-allowed; }
.confirm { width: 100%; height: 42px; margin-top: 10px; border: 0; border-radius: 6px; font-size: 14px; font-weight: 700; background: #ECE5F0; color: var(--muted); cursor: not-allowed; transition: background .25s, color .25s; }
.confirm.ready { background: var(--navy); color: #fff; cursor: pointer; }

/* ---------- Cart drawer ---------- */
.cart { position: fixed; inset: 0; z-index: 100; }
.cart-scrim { position: absolute; inset: 0; border: 0; background: rgba(15,23,42,.45); animation: fadeIn .25s ease both; cursor: default; }
.cart-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -18px 0 48px rgba(15,23,42,.18); animation: drawerIn .38s var(--ease-out) both; }
.cart.closing .cart-panel { animation: drawerOut .26s ease-in both; }
.cart.closing .cart-scrim { animation: fadeOut .26s ease-in both; }
/* Opening: the panel glides in, then its header, lines and checkout bar settle in after it. */
.cart.opening .cart-scrim { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cart.opening .cart-panel { animation: drawerIn .52s cubic-bezier(.16,1,.3,1) both; }
.cart.opening .cart-head > * { animation: rowIn .4s .14s var(--ease-out) both; }
.cart.opening .cart-foot { animation: footIn .5s .22s var(--ease-out) both; }
/* "Added to your cart" note and the highlighted new line. */
.cart-added { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 12px; border-radius: 10px; background: #ECF7EF; color: var(--ok); animation: addedIn .5s .1s cubic-bezier(.3,1.4,.5,1) both; }
.cart-added .ck { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--ok); display: flex; align-items: center; justify-content: center; animation: ckPop .5s .25s cubic-bezier(.3,1.6,.5,1) both; }
.cart-added .ck path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: drawStroke .35s .45s ease-out forwards; }
.cart-added .tx { min-width: 0; font-size: 14px; line-height: 1.3; }
.cart-added .tx b { display: block; font-weight: 700; }
.cart-added .tx span { display: block; color: var(--body-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-row.just { position: relative; animation: justIn .55s .18s cubic-bezier(.3,1.3,.5,1) both; }
.cart-row.just::before { content: ""; position: absolute; inset: -8px; z-index: -1; border-radius: 10px; background: var(--navy-tint); box-shadow: 0 0 0 1.5px rgba(11,31,75,.14); animation: justGlow 2.4s .3s ease-out both; }
.cart-row.just > a { animation: justImg .6s .25s cubic-bezier(.3,1.5,.5,1) both; }
.cart-list { isolation: isolate; }
/* The product photo flying into the bag, and the bag catching it. */
.fly { position: fixed; z-index: 120; pointer-events: none; will-change: transform; }
.fly-in { width: 100%; height: 100%; overflow: hidden; border-radius: 12px; box-shadow: 0 14px 34px rgba(15,23,42,.32), 0 0 0 3px #fff; will-change: transform, opacity; }
.fly-in img { width: 100%; height: 100%; object-fit: cover; }
.bag-catch { animation: bagCatch .55s cubic-bezier(.3,1.6,.5,1); }
.cart-head { flex-shrink: 0; height: 64px; padding: 0 8px 0 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 20px; font-weight: 600; color: var(--ink-2); }
.cart-count { font-size: 12px; font-weight: 500; color: var(--gray-1); background: #EEF0F3; padding: 3px 8px; border-radius: 4px; line-height: 1.4; }
.cart-x { margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--body-2); display: flex; align-items: center; justify-content: center; }
.cart-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
.cart-list { display: flex; flex-direction: column; gap: 20px; }
.cart-row { display: flex; gap: 12px; animation: rowIn .38s var(--ease-out) both; }
.cart-row > a { flex-shrink: 0; width: 80px; height: 80px; border-radius: 6px; overflow: hidden; background: #F3F4F6; }
.cart-row > a img { width: 100%; height: 100%; object-fit: cover; }
.cart-row .info { flex: 1; min-width: 0; }
.cart-row .top { display: flex; align-items: flex-start; gap: 8px; }
.cart-row .nm { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm { flex-shrink: 0; width: 28px; height: 28px; margin: -4px -6px 0 0; border: 0; border-radius: 50%; background: none; color: #7D6F85; display: flex; align-items: center; justify-content: center; transition: color .2s; }
.rm:hover { color: #B91C1C; }
.cart-row .meta { margin-top: 2px; font-size: 13px; color: var(--muted); }
.cart-row .line { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-row .line b { font-size: 15px; color: var(--ink-2); }
.save-sm { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--save-ink); background: var(--save-bg); padding: 3px 7px; border-radius: 4px; line-height: 1.3; }
.qty-sm { margin-top: 10px; width: 74px; height: 28px; display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.qty-sm button { width: 24px; height: 100%; border: 0; background: none; color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.qty-sm button[aria-disabled="true"] { color: #C0C4CC; cursor: default; }
.qty-sm span { flex: 1; text-align: center; font-size: 13px; font-weight: 600; }
.cart-empty { padding: 56px 8px; text-align: center; animation: rowIn .4s var(--ease-out) both; }
.cart-empty .ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.cart-empty p { margin: 4px 0 18px; font-size: 14px; color: var(--muted); }
.cart-empty a { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.upsell { margin-top: 20px; padding: 14px; background: #F5F5F0; border: 1px solid #E7E7DF; border-radius: 8px; }
.upsell-t { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--body-2); }
.upsell-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; animation: upIn .35s var(--ease-out) both; }
/* Picture and full name on the first line; sizes like "1.5/2 year" and + Add on the second, under the name. */
.up-info { flex: 1 1 calc(100% - 66px); min-width: 0; }
.upsell-row .sel { margin-left: 66px; }
.upsell-row .add { flex: 1; }
.upsell-row img { flex-shrink: 0; width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: #ECE5F0; }
.upsell-row .nm { font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upsell-row .pr { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; font-size: 14px; }
.upsell-row .pr s { font-size: 12px; color: #7D6F85; }
.upsell-row select { appearance: none; -webkit-appearance: none; width: auto; min-width: 54px; max-width: 100px; height: 32px; padding: 0 20px 0 10px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.upsell-row .sel { position: relative; flex-shrink: 0; }
.upsell-row .sel svg { position: absolute; right: 7px; top: 11px; pointer-events: none; }
.add { flex-shrink: 0; height: 32px; padding: 0 12px; border: 0; border-radius: 4px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; transition: background .2s, transform .15s; }
.add:hover { background: var(--navy-hover); }
.add:active { transform: scale(.96); }
.cart-foot { flex-shrink: 0; padding: 14px 16px 16px; border-top: 1px solid var(--line); background: #fff; }
.cart-foot .sv { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--save-ink); }
.cart-foot .st { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 16px; font-weight: 600; color: var(--ink-2); }
.cart-foot .st b { font-size: 17px; }
.cart-foot .buy { height: 52px; margin-top: 16px; font-size: 16px; font-weight: 600; letter-spacing: .03em; }

/* ---------- Footer ---------- */
/* Phones: stacked blocks split by hairlines — brand + socials, offers, Quick Links | Need Help, the trust strip on a
   darker band, the copyright. Tablets: brand | offers over links | help. Desktop (≥1025px): a 12-column grid (brand 4,
   links 2, help 3, offers 3), then the trust pillars left and the copyright right on one line. */
.foot { --foot-ink: #CBD5E1; --foot-line: rgba(255,255,255,.1); background: linear-gradient(180deg, #0A1436 0%, #070E27 55%); color: var(--foot-ink); font-size: 12px; }
.foot-in { max-width: 1280px; margin: 0 auto; }
.foot-grid > *, .foot-cols { padding: 24px; }
.foot-brand { padding-top: 32px; }
.foot-offers, .foot-cols { border-top: 1px solid var(--foot-line); }
.foot img { display: block; height: 30px; width: auto; }
.foot p { margin: 12px 0 0; max-width: 320px; font-size: 12px; line-height: 1.65; color: var(--foot-ink); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.soc { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff !important; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.soc:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.soc svg { width: 17px; height: 17px; }
.foot-h { margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.foot-sub { display: none; }
.sub { display: flex; }
.sub input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid rgba(255,255,255,.15); border-right: 0; border-radius: 8px 0 0 8px; background: rgba(255,255,255,.1); color: #fff; font-size: 12px; outline: none; transition: border-color .2s, background .2s; }
.sub input::placeholder { color: rgba(255,255,255,.5); }
.sub input:focus { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.14); }
.sub button { flex-shrink: 0; height: 44px; padding: 0 20px; border: 0; border-radius: 0 8px 8px 0; background: #fff; color: var(--jade); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background .2s; }
.sub button:hover { background: rgba(255,255,255,.9); }
.sub button:disabled { opacity: .7; }
.sub-ok { margin-top: 10px; font-size: 12px; color: #86EFAC; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.foot-cols > * { padding: 0; }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; }
.flink { display: block; padding: 4px 0; font-size: 12px; color: var(--foot-ink) !important; transition: color .15s; }
.flink:hover, .foot-contact a:hover { color: #fff !important; }
.foot-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-contact a { display: flex; align-items: center; gap: 8px; max-width: 100%; font-size: 12px; color: var(--foot-ink) !important; transition: color .15s, background .2s; }
.foot-contact svg { flex-shrink: 0; }
.foot-contact span { min-width: 0; overflow-wrap: anywhere; }
.foot-contact .foot-track { margin-top: 4px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 600; color: #fff !important; }
.foot-contact .foot-track:hover { background: rgba(255,255,255,.2); }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 16px; background: rgba(0,0,0,.2); border-top: 1px solid var(--foot-line); border-bottom: 1px solid var(--foot-line); text-align: center; font-size: 11px; font-weight: 500; line-height: 1.3; color: rgba(255,255,255,.8); }
.trust div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trust svg { color: #fff; stroke: currentColor; }
.copy { padding: 18px 16px 42px; text-align: center; font-size: 11px; color: rgba(255,255,255,.55); } /* just clears the floating WhatsApp button */
@media (min-width: 641px) and (max-width: 1024px) {
  .foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px; }
  .foot-grid > * { padding: 32px 16px 24px; }
  .foot-offers { border-top: 0; }
  .foot-cols { grid-column: 1 / -1; padding: 24px 16px; }
  .copy { padding-bottom: 20px; }
}
@media (min-width: 1025px) {
  .foot-in { padding: 64px 32px 32px; }
  .foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; margin-bottom: 48px; }
  .foot-grid > *, .foot-cols, .foot-brand { padding: 0; border: 0; }
  .foot-cols { display: contents; }
  .foot-brand { grid-column: 1 / span 4; grid-row: 1; }
  .foot-quick { grid-column: 5 / span 2; grid-row: 1; }
  .foot-help { grid-column: 7 / span 3; grid-row: 1; }
  .foot-offers { grid-column: 10 / span 3; grid-row: 1; }
  .foot img { height: 34px; }
  .foot p { margin-top: 16px; font-size: 14px; }
  .socials { gap: 12px; margin-top: 20px; }
  .foot-h { margin-bottom: 16px; }
  .foot-sub { display: block; margin: 0 0 14px; font-size: 13px; }
  .foot-links { gap: 6px; }
  .flink, .foot-contact a { font-size: 14px; }
  .foot-contact { gap: 12px; }
  .foot-contact span { white-space: nowrap; }
  .foot-contact .foot-track { height: 36px; font-size: 13px; }
  .sub input { height: 44px; font-size: 16px; }
  .foot-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; border-top: 1px solid var(--foot-line); }
  .trust { display: flex; gap: 32px; padding: 0; background: none; border: 0; font-size: 13px; }
  .trust div { flex-direction: row; gap: 8px; }
  .copy { padding: 0; font-size: 13px; }
}
.foot-slim { background: var(--deep); color: var(--footer-muted); padding: 22px var(--foot-pad); }
.foot-slim > div { max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; }
.foot-slim a { color: #fff; font-weight: 600; }

/* checkout header */
.hdr-co .hdr-in { justify-content: space-between; gap: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 14px; font-size: 14px; color: rgba(255,255,255,.6); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps a { display: flex; align-items: center; gap: 8px; color: #fff; }
.steps .n { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.steps .done .n { background: #fff; color: var(--navy); }
.steps .cur { color: #fff; font-weight: 600; }
.steps .cur .n { background: #fff; color: var(--navy); box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.steps .todo .n { border: 1.5px solid rgba(255,255,255,.5); color: rgba(255,255,255,.7); }
.steps .bar { width: 40px; height: 1px; background: rgba(255,255,255,.35); }
.secure { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; }

/* ---------- WhatsApp ---------- */
.wa-fab { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: flex; align-items: center; gap: 10px; }
.wa-label { background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; box-shadow: 0 6px 20px rgba(15,23,42,.14); white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .25s; pointer-events: none; }
.wa-fab:hover .wa-label, .wa-fab:focus-visible .wa-label { opacity: 1; transform: none; }
.wa-btn { position: relative; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(37,211,102,.45); }
.wa-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: waPulse 2.4s ease-out infinite; }

/* ---------- Keyframes ---------- */
@keyframes cardIn { from { opacity: 0; transform: translate3d(0,12px,0); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0,14px,0); } to { opacity: 1; transform: none; } }
@keyframes rowIn { from { opacity: 0; transform: translate3d(0,10px,0); } to { opacity: 1; transform: none; } }
@keyframes upIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawerOut { from { transform: none; } to { transform: translateX(100%); } }
@keyframes menuIn { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%,4px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-26px); } }
@keyframes pressPop { 0% { transform: scale(.8); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes drawCheck { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes footIn { from { opacity: 0; transform: translate3d(0,24px,0); } to { opacity: 1; transform: none; } }
@keyframes addedIn { from { opacity: 0; transform: translate3d(0,-8px,0) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ckPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes justIn { from { opacity: 0; transform: translate3d(28px,0,0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes justGlow { 0% { opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes justImg { 0% { transform: scale(.85); } 100% { transform: scale(1); } }
@keyframes bagCatch { 0% { transform: scale(1); } 30% { transform: scale(.82) rotate(-8deg); } 65% { transform: scale(1.14) rotate(4deg); } 100% { transform: none; } }
@keyframes popA { 0% { transform: scale(1); } 40% { transform: scale(1.55); } 100% { transform: scale(1); } }
@keyframes popB { 0% { transform: scale(1); } 40% { transform: scale(1.55); } 100% { transform: scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%,-12px) scale(.96); } to { opacity: 1; transform: translate(-50%,0) scale(1); } }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes errIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes accOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes shakeA { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes shakeB { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes ringGrow { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive (shared) ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 22px; }
  .hdr-in { gap: 24px; }
}
@media (max-width: 1024px) {
  .hdr { height: 64px; }
  .hdr:not(.hdr-co) .hdr-in { display: none; }
  .hdr:not(.hdr-co) .mob-bar { display: grid; }
  .mob-search { display: block; }
  .mega { display: none; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .page-h { font-size: 26px; }
  .steps .bar { width: 16px; }
  .steps .lb, .secure .lb { display: none; }
}
@media (max-width: 640px) {
  .hdr { height: 56px; }
  .hdr-co .hdr-in img { height: var(--logo-hm, 28px); max-width: calc(100vw - 150px); }
  .wa-fab { right: 16px; bottom: 16px; }
  .wa-btn { width: 56px; height: 56px; }
  .wa-label { display: none; }
  .pname { font-size: 14px; }
  .grid4 { column-gap: 12px; row-gap: 16px; }
  .pc-body { padding: 12px; }
  .pc-prices b { font-size: 17px; }
  .pc-prices s { font-size: 12px; }
  .save { margin-top: 12px; font-size: 12px; }
  .notify { height: 44px; font-size: 15px; }
  .pc .notify { height: 36px; font-size: 14px; }
  .cart-btn { width: 40px; height: 40px; }
  .cart-panel { max-width: calc(100% - 32px); } /* a strip of page stays visible to tap closed */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .wa-ring { opacity: 0; }
}

/* ---------- Pop-up (Admin → Homepage → Pop-up; common.js sitePopup) ---------- */
.pop { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .25s ease both; }
.pop-scrim { position: absolute; inset: 0; border: 0; background: rgba(15,23,42,.55); }
.pop-box { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(15,23,42,.35); animation: popUp .4s var(--ease-out) both; }
.pop-corner { align-items: flex-end; justify-content: flex-end; pointer-events: none; }
.pop-corner .pop-scrim { display: none; }
.pop-corner .pop-box { width: min(360px, 100%); pointer-events: auto; }
.pop-full .pop-box { width: 100%; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; }
.pop-img { display: block; width: 100%; height: 190px; object-fit: cover; }
.pop-full .pop-img { height: 100%; min-height: 320px; }
.pop-x { position: absolute; top: 10px; right: 10px; z-index: 1; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.pop-body { padding: 22px 24px 20px; text-align: center; }
.pop-body h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.pop-body p { margin: 8px 0 0; color: var(--body-2); font-size: 15px; line-height: 1.5; }
.pop-timer { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--accent); }
.pop-form { display: flex; gap: 8px; margin-top: 16px; }
.pop-form input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 16px; }
.pop-form button, .pop-go { height: 46px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--accent); color: #fff !important; font-size: 14px; font-weight: 700; letter-spacing: .04em; display: inline-flex; align-items: center; justify-content: center; }
.pop-go { width: 100%; margin-top: 14px; }
.pop-code { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; padding: 12px; border: 1.5px dashed var(--accent); border-radius: 10px; }
.pop-code:empty { display: none; }
.pop-code span { font-size: 13px; color: var(--muted); }
.pop-code b { font-size: 20px; letter-spacing: .08em; color: var(--accent); }
.pop-code button { border: 0; background: none; color: var(--accent); font-weight: 700; text-decoration: underline; }
.pop-no { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; }
@media (max-width: 640px) { .pop-full .pop-box { grid-template-columns: 1fr; } .pop-full .pop-img { height: 180px; min-height: 0; } }
@keyframes popUp { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Desktop: the checkout's slim footer reads one size up ---------- */
@media (min-width: 1025px) {
  .foot-slim > div { font-size: 14px; }
}

/* Desktop: the SHOP menu's columns line up with the page content, like the header rows above them. */
@media (min-width: 1025px) { .mega-in { max-width: var(--page-w); padding-left: 0; padding-right: 0; } }

/* SHOP menu: larger, darker links and headings so the sub-categories read easily (desktop only; the menu is desktop-only). */
.mega-t { font-size: 13.5px; letter-spacing: .16em; color: #64748B; margin-bottom: 18px; }
.mega-col { gap: 14px; }
.mega-a { font-size: 17px; font-weight: 500; color: var(--text) !important; transition: color .15s; }
.mega-a:hover { color: var(--primary) !important; }

/* ---------- Phone product cards: hope71.com's card, measured at 375px ----------
   168 × 322px card, 6px corners, 166px square photo, 10px inside spacing; name 13px on up to two lines; Save badge
   13px tall, 4px under the name; price row 8px lower with a 32px cart button; Buy Now 36px, 6px under it.
   TFT Mart's own fonts and colours. Desktop cards are unchanged. */
@media (max-width: 640px) {
  .pc { border-radius: 6px; }
  .pc-body { padding: 10px; }
  .pname { font-size: 13px; line-height: 1.375; min-height: 34px; padding-right: 4px; white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .pc .save { margin-top: 4px; padding: 2px 6px; border-radius: 3px; font-size: 9px; font-weight: 600; line-height: 9px; gap: 3px; }
  .pc .save svg { width: 7px; height: 7px; }
  .pc-row { margin-top: 8px; gap: 6px; }
  .pc-prices { column-gap: 4px; }
  .pc-prices b { font-size: 16px; font-weight: 800; line-height: 16px; }
  .pc-prices s { font-size: 10px; line-height: 15px; }
  .cart-btn { width: 32px; height: 32px; }
  .cart-btn svg { width: 16px; height: 16px; }
  .pc .buy { margin-top: 6px; }
  .pc .notify { margin-top: 6px; }
  .pc .tag-off { top: 6px; left: 6px; padding: 2px 6px; border-radius: 2px; font-size: 10px; line-height: 15px; }
  .pc .tag-sold { top: 6px; right: 6px; padding: 2px 6px; border-radius: 2px; font-size: 10px; line-height: 15px; }
}

/* Free-delivery progress in the cart drawer */
.free-bar { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--hero-bg); color: var(--jade); font-size: 13px; }
.free-tx b { font-weight: 700; }
.free-track { height: 6px; margin-top: 8px; border-radius: 999px; background: #DCE1F7; overflow: hidden; }
.free-track span { display: block; height: 100%; border-radius: 999px; background: var(--jade); transition: width .4s ease; }

/* Combo offer in the cart drawer */
.combo-ok, .combo-hint { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.combo-ok { background: #ECFDF5; color: #047857; }
.combo-hint { background: #FFF7ED; color: #9A3412; }

/* Announcement bar (above the header): TFT Mart's minimal moving bar — font, colours and speed — a touch smaller, and
   tuned for phones (a hair more letter-spacing keeps small capitals readable). It stays above the header and slides
   away with a fade once the page is scrolled; the header slides up with it, so nothing jumps (js/common.js). */
.ann-bar { position: sticky; top: 0; z-index: 51; width: 100%; overflow: hidden; background: #f5f3ee; color: #000; padding: 3px 0; transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .3s ease; }
.ann-gone .ann-bar { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.ann-on .hdr { top: var(--ann-h, 0px); transition: top .3s cubic-bezier(.4, 0, .2, 1); }
.ann-on.ann-gone .hdr { top: 0; }
.ann-vp { width: 100%; overflow: hidden; display: flex; align-items: center; }
.ann-track { display: flex; width: max-content; animation: annMove var(--ann-speed, 30s) linear infinite; will-change: transform; }
@media (hover: hover) { .ann-track:hover { animation-play-state: paused; } }
.ann-group { display: flex; align-items: center; flex-shrink: 0; white-space: nowrap; }
.ann-item { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.ann-text { display: inline-block; padding-left: 20px; color: #000; font-family: "Times New Roman", Times, serif; font-size: 11px; font-weight: 400; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.ann-sep { width: 3px; height: 3px; display: inline-block; flex: 0 0 auto; background: #000; opacity: .9; }
@keyframes annMove { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 749px) { .ann-bar { padding: 3px 0; } .ann-text { font-size: 9.5px; letter-spacing: .08em; padding-left: 14px; } .ann-item { gap: 14px; } .ann-sep { width: 2.5px; height: 2.5px; } }
@media (max-width: 360px) { .ann-text { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { .ann-track { animation-play-state: paused; } .ann-bar, .ann-on .hdr { transition: none; } }

/* Search suggestions under the phone search box: as wide as the screen allows, scrolling inside itself. */
.mob-search .dd { top: 54px; left: 12px; right: 12px; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); overflow-y: auto; overscroll-behavior: contain; }
.mob-search .dd-row .nm { font-size: 14px; }

/* Product card names: a taller tap area than the text (phones) without moving anything. */
.pname a { display: block; padding: 5px 0; margin: -5px 0; }
/* The link is what holds the text now, so on desktop's one-line name the dots belong on it too. */
/* Computers: up to two lines, then dots, so the end of a long name (often its colour) still shows; cards keep one height. */
@media (min-width: 641px) { .pname a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; min-height: calc(2em * 1.35 + 10px); } }

/* WhatsApp chat button: WhatsApp's green gradient, the logo in white, a soft shine on top, layered shadow, a gentle
   lift on hover and a calmer pulse. */
.wa-btn { background: linear-gradient(160deg, #5FFC7B 0%, #28D146 55%, #1FAF38 100%); box-shadow: 0 10px 24px rgba(31, 175, 56, .38), 0 2px 6px rgba(15, 23, 42, .18), inset 0 1px 0 rgba(255, 255, 255, .45); transition: transform .2s ease, box-shadow .2s ease; overflow: visible; }
.wa-btn::before { content: ""; position: absolute; inset: 3px 8px auto; height: 45%; border-radius: 50% 50% 45% 45%; background: linear-gradient(to bottom, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0)); pointer-events: none; }
.wa-ic { position: relative; width: 32px; height: 32px; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .18)); }
.wa-fab:hover .wa-btn, .wa-fab:focus-visible .wa-btn { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 30px rgba(31, 175, 56, .45), 0 3px 8px rgba(15, 23, 42, .2), inset 0 1px 0 rgba(255, 255, 255, .45); }
.wa-ring { border-color: rgba(37, 211, 102, .55); }
@media (max-width: 749px) { .wa-ic { width: 29px; height: 29px; } }
@media (prefers-reduced-motion: reduce) { .wa-btn { transition: none; } }

/* ---------- Brand styling: white pages, purple header, green footer, pink and purple shopping actions ---------- */
body { background: var(--white); color: var(--text); }
.ann-bar { background: var(--purple); color: var(--white); box-shadow: inset 0 -1px 0 rgba(255,255,255,.14); }
.ann-text { color: var(--white); }
.ann-sep { background: var(--white); }
.hdr { background: var(--purple); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr-logo img, .mob-bar a[href="./"] img { filter: none; } /* the logo file is white */ /* the white logo, in brand green */
.hdr-top { border-bottom-color: rgba(255,255,255,.14); }
.hdr-tag { color: rgba(255,255,255,.8); }
.nav-a { color: var(--white) !important; }
.nav-a[aria-current="page"] { border-bottom-color: var(--white); }
.hdr:not(.hdr-co) .nav-a[aria-current="page"]::after { background: var(--white); }
.hdr:not(.hdr-co) .main-nav::before { background: var(--purple); box-shadow: 0 0 0 100vmax var(--purple); }
.hdr-icon, .hdr .icon-btn { color: var(--white) !important; }
.search-go { color: var(--purple) !important; } /* inside the white search box */
.srch { border-color: var(--border); background: var(--white); color: var(--text); }
.srch::placeholder { color: var(--text-soft); }
.hdr-acts .srch, .hdr-acts .srch:hover { background: var(--white); box-shadow: none; }
.hdr-acts .srch:focus { background: var(--white); outline-color: var(--white); }
.hdr-acts .srch::placeholder { color: var(--text-soft); }
.badge, .hdr-acts .badge { background: var(--pink); color: var(--white); box-shadow: 0 0 0 2px var(--purple); }
.mob-search { background: var(--purple); }
.mob-search .srch { box-shadow: none; }
/* Product cards */
.pc { background: var(--white); border-color: var(--border); }
.pc-media { background: var(--white); }
.pname a, .pc-prices b, .pd-name, .pd-price b { color: var(--text); }
.tag-off { background: var(--pink); color: var(--white); }
.save { background: var(--soft-pink); color: var(--pink); }
.cart-btn { background: var(--accent); color: var(--white); }
.cart-btn:hover, .cart-btn.open { background: var(--accent-hover); }
.buy { background: var(--purple); color: var(--white) !important; }
.buy:hover { background: var(--purple-hover); }
.add { background: var(--pink); }
.add:hover { background: var(--pink-hover); }
.hero { background: var(--white); }
/* Footer */
.foot { --foot-ink: rgba(255,255,255,.82); --foot-line: rgba(255,255,255,.16); background: var(--brand-deep); }
.foot-h { color: var(--white); }
.flink, .foot-contact a { color: var(--white) !important; }
.flink:hover, .foot-contact a:hover { color: var(--soft-pink) !important; }
.copy { color: rgba(255,255,255,.7); }
.sub button { color: var(--brand); }
/* Checkout steps */
.steps { color: rgba(255,255,255,.7); }
.steps a, .steps .cur { color: var(--white); }
.steps .done .n, .steps .cur .n { background: var(--white); color: var(--purple); }
.steps .cur .n { box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.steps .todo .n { border-color: rgba(255,255,255,.5); color: rgba(255,255,255,.75); }
.steps .bar { background: rgba(255,255,255,.35); }
.secure { color: var(--white); }
/* Cart drawer: white boxes with the brand border, not tinted backgrounds */
.cart-added { background: var(--white); border: 1px solid var(--border); color: var(--brand); }
.upsell { background: var(--white); border-color: var(--border); }
/* Footer trust badges sit on the same green, separated by a line */
.trust { background: var(--brand-deep); }
/* Desktop header icons: the same 24px medium outline as on phones */
@media (min-width: 1025px) { .hdr-acts .hdr-icon svg { width: 24px; height: 24px; } }
/* Keyboard focus follows the brand */
:focus-visible { outline-color: var(--pink); }
/* The cart's "add 1 more set" suggestion, when it unlocks a combo saving. */
.upsell.upsell-combo { border-color: #A7F3D0; background: #F0FDF8; }
.upsell-combo .upsell-t { color: #047857; }

/* Thumb-sized taps in the cart (about 40 px each), the same look. */
.qty-sm { width: 116px; height: 40px; }
.qty-sm button { width: 38px; }
.rm { width: 40px; height: 40px; margin: -10px -10px 0 0; }
/* The WhatsApp bubble steps aside while the size, pack and Add / Buy buttons are on screen (phones), so it never
   covers a choice; it comes back as soon as they scroll away. */
.wa-fab { transition: opacity .2s, transform .2s; }
.wa-fab.wa-aside { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wa-fab { transition: none; } }

/* ---------- TFT Mart header: white bar with the logo, a wide search and labelled icons; under it a full-width
   purple bar with every department (marketplace style). The checkout keeps its slim purple header. ---------- */
.hdr:not(.hdr-co) { background: var(--white); box-shadow: 0 1px 0 var(--border), 0 6px 18px rgba(60,15,98,.06); }
@media (min-width: 1025px) {
  .hdr:not(.hdr-co) .hdr-top { height: 88px; justify-content: flex-start; gap: 40px; border-bottom: 0; }
  .hdr:not(.hdr-co) .hdr-tag { display: none; }
  .hdr:not(.hdr-co) .hdr-top .hdr-logo { position: static; transform: none; }
  .hdr:not(.hdr-co) .hdr-top .hdr-logo img { height: 52px; }
  .hdr:not(.hdr-co) .hdr-acts { flex: 1; gap: 32px; margin-left: 0; }
  .hdr:not(.hdr-co) .hdr-acts .search { flex: 1 1 auto; max-width: 620px; margin: 0 auto; }
  .hdr:not(.hdr-co) .hdr-acts .srch, .hdr:not(.hdr-co) .hdr-acts .srch:hover { height: 50px; padding: 0 56px 0 20px; border: 1px solid var(--border); border-radius: 12px; background: #F7F2FC; font-size: 15px; color: var(--text); }
  .hdr:not(.hdr-co) .hdr-acts .srch:focus { background: var(--white); outline: 2px solid var(--brand); outline-offset: 0; }
  .hdr:not(.hdr-co) .hdr-acts .search-go { top: 3px; right: 3px; width: 44px; height: 44px; border-radius: 10px; background: var(--brand); color: var(--white) !important; }
  .hdr:not(.hdr-co) .hdr-acts .search-go svg { width: 20px; height: 20px; }
  .hdr:not(.hdr-co) .hdr-acts .dd { top: 58px; left: 0; right: 0; width: auto; }
  .hdr:not(.hdr-co) .hdr-acts .hdr-icons { gap: 28px; }
  .hdr:not(.hdr-co) .hdr-acts .hdr-icon { flex-direction: column; gap: 5px; color: var(--brand-deep) !important; font-size: 13px; font-weight: 600; }
  .hdr:not(.hdr-co) .hdr-acts .hdr-icon svg { width: 26px; height: 26px; color: var(--brand); }
  .hdr:not(.hdr-co) .hdr-acts button.hdr-icon > span:not(.badge) { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .hdr:not(.hdr-co) .hdr-acts .badge { top: -6px; right: -4px; min-width: 18px; height: 18px; background: var(--gold-bright); color: var(--brand-deep); font-size: 11px; }
  .hdr:not(.hdr-co) .main-nav { height: 52px; justify-content: flex-start; gap: 34px; }
  .hdr:not(.hdr-co) .main-nav::before { background: var(--brand); box-shadow: 0 0 0 100vmax var(--brand); }
  .hdr:not(.hdr-co) .nav-a { color: var(--white) !important; font-size: 15px; font-weight: 500; letter-spacing: 0; padding: 6px 0; white-space: nowrap; }
  .hdr:not(.hdr-co) .nav-a[aria-current="page"]::after { background: var(--gold-bright); height: 3px; bottom: -4px; }
}
@media (min-width: 1025px) and (max-width: 1280px) { .hdr:not(.hdr-co) .main-nav { gap: 22px; } .hdr:not(.hdr-co) .nav-a { font-size: 14px; } }
/* Phones and tablets: white bar, purple icons; the search opens under it as before. */
.hdr:not(.hdr-co) .mob-bar .icon-btn { color: var(--brand) !important; }
.hdr:not(.hdr-co) .mob-bar .badge { background: var(--gold-bright); color: var(--brand-deep); }
.hdr:not(.hdr-co) .mob-search { background: var(--white); border-top: 1px solid var(--border); }
.hdr:not(.hdr-co) .mob-search .srch { background: #F7F2FC; border: 1px solid var(--border); border-radius: 12px; }

/* Card badges on desktop: "Best Selling" (gold, top left) and "Save N%" (violet, top right). Phones and tablets keep
   the "-N%" tag top left. The Add to Cart label is for screen readers on the round cart button; the desktop category
   page shows it as a full-width outline button. */
.tag-best, .tg-save { display: none; }
.cart-lb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1025px) {
  .tg-save { display: inline; }
  .tg-minus { display: none; }
  .pc .tag-off { left: auto; right: 10px; top: 10px; background: var(--pink); font-size: 12px; padding: 5px 8px; border-radius: 6px; }
  .tag-best { display: block; position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--gold-bright); color: var(--brand-deep); font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 6px; pointer-events: none; }
  .pc .tag-sold { top: auto; bottom: 10px; right: 10px; }
}

/* Marketplace-style header icons: the uneven menu lines and the cart trolley a little larger, the count a round gold
   badge on the trolley's top-right corner. */
.hdr:not(.hdr-co) .mob-bar .icon-btn svg { width: 27px; height: 27px; }
.hdr:not(.hdr-co) .mob-bar [data-cart-open] .badge { top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.hdr:not(.hdr-co) .hdr-acts [data-cart-open] svg { width: 28px; height: 28px; }

/* Header icons in near-black, as in the marketplace reference (menu, search and cart on phones; Track Order and
   Cart on desktop). The count badge stays gold. */
.hdr:not(.hdr-co) .mob-bar .icon-btn { color: #1A1A1A !important; }
.hdr:not(.hdr-co) .hdr-acts .hdr-icon, .hdr:not(.hdr-co) .hdr-acts .hdr-icon svg { color: #1A1A1A !important; }
