/* ==========================================================================
   Jeniq storefront — design system
   Black establishes the brand, gold marks key actions, neutrals carry content.
   Gold is only ever used as a background behind black text (≈10:1 contrast);
   gold-coloured text uses --gold-ink, which passes AA on white.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --black: #171717;
  --ink: #171717;
  --gold: #E8B93F;
  --gold-hover: #D9A82A;
  --gold-soft: #FBF1D6;
  --gold-ink: #7A5A08;
  --gold-rgb: 232,185,63;
  --on-gold: #171717;    /* text on the accent colour */
  --white: #FFFFFF;
  --bg: #F4F4F2;
  --muted: #5F5F5F;      /* #666 nudged darker for AA on #F4F4F2 */
  --line: #E5E5E5;
  --line-strong: #D4D4D0;
  /* Semantic tokens (switch with the theme) */
  --surface: #FFFFFF;      /* cards, header, inputs */
  --contrast: #171717;     /* strong fills/borders: dark buttons, selected states */
  --on-contrast: #FFFFFF;  /* text on --contrast */
  --brand-dark: #171717;   /* always-dark brand areas: hero, footer, announcement */
  --media-bg: #F4F4F2;     /* product photo tiles stay light in both themes */
  --gold-border: #EBD69C;
  --focus: #171717;
  --success: #1E7B3A;
  --success-bg: #E7F4EB;
  --warning: #8A5A00;
  --warning-bg: #FFF4DB;
  --danger: #B42318;
  --danger-bg: #FDECEA;
  --info: #1D5C99;
  --info-bg: #E8F1FB;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(23,23,23,.06), 0 4px 16px rgba(23,23,23,.06);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --header-h: 60px;
  --bottom-nav-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--surface); overflow-x: hidden;
  padding-bottom: var(--bottom-nav-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[x-cloak] { display: none !important; }

.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 0; }
.section--tight { padding: 24px 0; }
.section--soft { background: var(--bg); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.link-more { font-weight: 600; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--brand-dark); color: var(--white); padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }


/* ---------- Dark theme ----------
   Applied when the visitor chooses dark, or when their device prefers dark and
   they have not chosen light. Colours are defined once per selector below. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ECECEA;
  --bg: #0F0F0F;
  --surface: #181818;
  --muted: #A6A6A2;
  --line: #2A2A2A;
  --line-strong: #3B3B3B;
  --contrast: #ECECEA;
  --on-contrast: #121212;
  --brand-dark: #0A0A0A;
  --media-bg: #ECECEA;
  --gold-soft: #2A2312;
  --gold-ink: #E8B93F;
  --gold-border: #5A4A1E;
  --focus: #E8B93F;
  --success: #6FD39A; --success-bg: #11261A;
  --warning: #F2C063; --warning-bg: #2A210D;
  --danger: #F59A90;  --danger-bg: #2E1714;
  --info: #8DBEF5;    --info-bg: #10203A;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --ink: #ECECEA;
  --bg: #0F0F0F;
  --surface: #181818;
  --muted: #A6A6A2;
  --line: #2A2A2A;
  --line-strong: #3B3B3B;
  --contrast: #ECECEA;
  --on-contrast: #121212;
  --brand-dark: #0A0A0A;
  --media-bg: #ECECEA;
  --gold-soft: #2A2312;
  --gold-ink: #E8B93F;
  --gold-border: #5A4A1E;
  --focus: #E8B93F;
  --success: #6FD39A; --success-bg: #11261A;
  --warning: #F2C063; --warning-bg: #2A210D;
  --danger: #F59A90;  --danger-bg: #2E1714;
  --info: #8DBEF5;    --info-bg: #10203A;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
  }
}
.logo-on-dark { display: none !important; }
/* Text logo (Settings → Branding → "Text logo") and recoloured uploaded logos */
.text-logo { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap; color: var(--ink); display: inline-flex; align-items: baseline; text-decoration: none; }
.text-logo .text-logo-dot { color: var(--gold); }
.text-logo.is-on-dark { color: #FFFFFF; }
.logo-whiten { filter: brightness(0) invert(1); }
.logo-img { width: auto; max-width: 220px; object-fit: contain; }
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .alert { border-color: var(--line-strong); }
:root[data-theme="dark"] .help-cta { box-shadow: inset 0 0 0 1px #2A2A2A; }
:root[data-theme="dark"] .ph-art--light { color: #8A8A8A; }
:root[data-theme="dark"] .logo-on-light { display: none !important; }
:root[data-theme="dark"] .logo-on-dark { display: inline-block !important; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: inline-block; }
:root[data-theme="dark"] .table th { background: #1D1D1D !important; }
:root[data-theme="dark"] .table tr:hover td { background: #1C1C1C !important; }
:root[data-theme="dark"] .variant-row { background: #1C1C1C !important; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .alert { border-color: var(--line-strong); }
:root:not([data-theme="light"]) .help-cta { box-shadow: inset 0 0 0 1px #2A2A2A; }
:root:not([data-theme="light"]) .ph-art--light { color: #8A8A8A; }
:root:not([data-theme="light"]) .logo-on-light { display: none !important; }
:root:not([data-theme="light"]) .logo-on-dark { display: inline-block !important; }
:root:not([data-theme="light"]) .theme-icon-moon { display: none; }
:root:not([data-theme="light"]) .theme-icon-sun { display: inline-block; }
:root:not([data-theme="light"]) .table th { background: #1D1D1D !important; }
:root:not([data-theme="light"]) .table tr:hover td { background: #1C1C1C !important; }
:root:not([data-theme="light"]) .variant-row { background: #1C1C1C !important; }
}

/* ---------- Theme toggle ---------- */
.theme-toggle .icon { width: 21px; height: 21px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-dark { background: var(--contrast); color: var(--on-contrast); }
.btn-dark:hover { opacity: .88; }
.btn-outline { background: var(--surface); border-color: var(--contrast); color: var(--contrast); }
.btn-outline:hover { background: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 12px; }
.btn-ghost:hover { background: var(--bg); }
.btn-whatsapp { background: #1F8A4C; color: #fff; }
.btn-whatsapp:hover { background: #18703D; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 1.05rem; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; text-decoration: none; position: relative; }
.icon-btn:hover { background: var(--bg); }
.icon-btn .icon { width: 22px; height: 22px; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--brand-dark); color: var(--white); text-align: center; font-size: .85rem; padding: 7px 16px; }
.announce a { color: var(--gold); }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 40px; width: auto; }
@media (min-width: 900px) { .brand img { height: 46px; } }
@media (max-width: 380px) { .brand img { height: 32px; } }
.header-search { flex: 1; max-width: 520px; margin: 0 auto; position: relative; display: none; }
.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--gold); color: var(--on-gold); font-size: .72rem; font-weight: 800; line-height: 19px; text-align: center;
}
.cat-nav { border-top: 1px solid var(--line); display: none; }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-nav a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink); white-space: nowrap; border-bottom: 3px solid transparent; }
.cat-nav a:hover, .cat-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

.search-box { position: relative; display: flex; }
.search-box input {
  width: 100%; height: 46px; border: 2px solid var(--line-strong); border-radius: 999px; padding: 0 48px 0 18px; background: var(--surface);
}
.search-box input:focus { border-color: var(--contrast); outline: none; }
.search-box button { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border-radius: 999px; border: 0; background: var(--contrast); color: var(--on-contrast); display: grid; place-items: center; cursor: pointer; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 50; overflow: hidden; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-decoration: none; }
.suggest a:hover, .suggest a.is-active { background: var(--bg); }
.suggest img, .suggest .ph { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--bg); flex: none; }
.suggest .s-name { font-weight: 600; font-size: .92rem; }
.suggest .s-price { font-size: .85rem; color: var(--muted); }

.mobile-search { padding: 10px 16px 12px; border-top: 1px solid var(--line); }

/* Drawer menu */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: var(--surface); z-index: 61; overflow-y: auto; padding: 16px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.drawer nav a.sub { padding-left: 18px; font-weight: 500; color: var(--muted); }
.drawer .drawer-contact { margin-top: 20px; display: grid; gap: 10px; }

/* Bottom nav (mobile) */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; font-size: .7rem; font-weight: 600; text-decoration: none; color: var(--muted); background: none; border: 0; cursor: pointer; position: relative; }
.bottom-nav .icon { width: 22px; height: 22px; }
.bottom-nav a[aria-current="page"] { color: var(--ink); }
.bottom-nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--gold); border-radius: 0 0 3px 3px; }
.bottom-nav .cart-count { top: 2px; right: calc(50% - 22px); }
body.has-bottom-nav { --bottom-nav-h: 62px; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: calc(var(--bottom-nav-h) + 16px); z-index: 44; width: 54px; height: 54px; border-radius: 999px; background: #1F8A4C; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); text-decoration: none; }
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:hover { background: #18703D; }
.wa-float:not(.wa-mobile) { display: none; }
@media (min-width: 900px) { .wa-float.wa-mobile:not(.wa-desktop) { display: none; } .wa-float.wa-desktop { display: grid; } }
.promo-banner { padding-top: 16px; }
.promo-banner a, .promo-banner picture { display: block; }
.promo-banner img { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; background: var(--media-bg); }
.hero + .promo-banner { padding-top: 20px; }
body.no-wa-float .wa-float { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--brand-dark); color: var(--white); position: relative; overflow: hidden; }
.hero-inner { display: grid; gap: 20px; padding: 28px 16px; max-width: var(--wrap); margin: 0 auto; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 10px; font-size: clamp(1.55rem, 5vw, 2.7rem); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: #D6D6D6; max-width: 46ch; margin-bottom: 18px; }
.hero-media { border-radius: var(--radius-lg); overflow: hidden; background: rgba(255,255,255,.07); aspect-ratio: 16 / 10; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.hero .btn-outline:hover { border-color: var(--white); background: transparent; }

/* Placeholder art (clearly not a product photo) */
.ph-art { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; color: #8C8C8C; background:
  radial-gradient(circle at 70% 30%, rgba(var(--gold-rgb),.35), transparent 45%), repeating-linear-gradient(135deg, #2A2A2A 0 14px, #262626 14px 28px); font-size: .8rem; padding: 12px; }
.ph-art--light { color: #8A8A8A; background: radial-gradient(circle at 70% 30%, rgba(var(--gold-rgb),.25), transparent 50%), repeating-linear-gradient(135deg, #F2F2EF 0 12px, #ECECE8 12px 24px); }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-tile { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 650; font-size: .93rem; min-height: 64px; transition: border-color .15s; }
.cat-tile:hover { border-color: var(--contrast); }
.cat-tile .cat-img { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--gold-soft); display: grid; place-items: center; flex: none; color: var(--gold-ink); }
.cat-tile .cat-img img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap; cursor: pointer; }
.chip.is-active, .chip:hover { border-color: var(--contrast); background: var(--contrast); color: var(--on-contrast); }

/* ---------- Product grid + cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-media { aspect-ratio: 1 / 1; background: var(--media-bg); display: block; position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: .72rem; font-weight: 750; letter-spacing: .01em; line-height: 1.4; }
.badge-sale { background: var(--gold); color: var(--on-gold); }
.badge-new { background: var(--contrast); color: var(--on-contrast); }
.badge-muted { background: var(--line); color: var(--muted); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-primary { background: var(--gold-soft); color: var(--gold-ink); }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-family: var(--font-body); font-size: .93rem; font-weight: 600; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-attrs { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.price-now { font-weight: 800; font-size: 1.05rem; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.price-from { font-size: .78rem; color: var(--muted); font-weight: 500; }
.stock { font-size: .78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.stock-success { color: var(--success); }
.stock-warning { color: var(--warning); }
.stock-muted { color: var(--muted); }
.card-actions { margin-top: auto; padding-top: 4px; position: relative; z-index: 2; }
.card-actions .btn { width: 100%; min-height: 42px; font-size: .9rem; padding: 0 10px; }

/* ---------- Listing ---------- */
.page-head { padding: 20px 0 8px; }
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line-strong); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.listing { display: grid; gap: 20px; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar select { height: 42px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0 12px; background: var(--surface); }
.filters { background: var(--surface); }
.filter-group { border-bottom: 1px solid var(--line); padding: 14px 0; }
.filter-group h3 { font-size: .9rem; margin-bottom: 8px; }
.filter-group label { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .92rem; cursor: pointer; }
.filter-group input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--contrast); }
.price-inputs { display: flex; gap: 8px; }
.price-inputs input { width: 100%; height: 42px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 10px; }
.empty { text-align: center; padding: 48px 16px; background: var(--bg); border-radius: var(--radius-lg); }
.empty .icon { width: 40px; height: 40px; color: var(--muted); margin: 0 auto 10px; }

/* Pagination */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 28px 0 8px; list-style: none; padding: 0; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-strong); text-decoration: none; font-weight: 600; }
.pagination [aria-current] { background: var(--contrast); color: var(--on-contrast); border-color: var(--contrast); }
.pagination .disabled { opacity: .45; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 22px; padding: 12px 0 32px; }
.gallery-main { aspect-ratio: 1 / 1; background: var(--media-bg); border-radius: var(--radius-lg); overflow: hidden; position: relative; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; }
.thumbs button { flex: none; width: 66px; height: 66px; border-radius: 8px; overflow: hidden; border: 2px solid var(--line); background: var(--media-bg); padding: 0; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--contrast); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10,10,10,.94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100vw; max-height: 86vh; object-fit: contain; touch-action: pinch-zoom; }
.lightbox .icon-btn { position: absolute; color: #fff; background: rgba(255,255,255,.12); }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 10px; top: 50%; }
.lightbox .lb-next { right: 10px; top: 50%; }
.pdp-info h1 { font-size: clamp(1.35rem, 3.5vw, 2rem); margin-bottom: 6px; }
.pdp-brand { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.pdp-price .price-now { font-size: 1.7rem; }
.pdp-short { color: var(--ink); opacity: .9; }
.variant-picker { margin: 16px 0; }
.variant-picker legend { font-weight: 700; margin-bottom: 8px; font-size: .92rem; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-options label { position: relative; }
.variant-options input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.variant-options span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--line-strong); border-radius: var(--radius); font-weight: 600; background: var(--surface); }
.variant-options input:checked + span { border-color: var(--contrast); background: var(--contrast); color: var(--on-contrast); }
.variant-options input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.variant-options .is-out span { color: var(--muted); text-decoration: line-through; }
.buy-row { display: flex; gap: 10px; align-items: stretch; margin: 14px 0; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line-strong); border-radius: var(--radius); height: 52px; flex: none; }
.qty button { width: 44px; height: 100%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty input { width: 44px; text-align: center; border: 0; height: 100%; font-weight: 700; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 40px; }
.qty--sm button { width: 36px; }
.qty--sm input { width: 34px; }
.buy-row .btn { flex: 1; min-height: 52px; }
.assurances { display: grid; gap: 8px; margin: 16px 0; padding: 14px; background: var(--bg); border-radius: var(--radius); font-size: .9rem; }
.assurances div { display: flex; gap: 10px; align-items: flex-start; }
.assurances .icon { color: var(--gold-ink); margin-top: 2px; }
.tabs-section { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; font-family: var(--font-head); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform .2s; }
.acc[open] summary .icon { transform: rotate(180deg); }
.acc .acc-body { padding: 0 0 18px; }
.prose { max-width: 70ch; }
.prose ul { padding-left: 1.2em; }
.prose img { border-radius: 8px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 45%; color: var(--muted); font-weight: 600; }
.spec-note { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: var(--bottom-nav-h); z-index: 43; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
.sticky-buy .price-now { font-size: 1.1rem; }
.sticky-buy .btn { flex: 1; min-height: 46px; }

/* ---------- Alerts / toasts ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); margin: 12px 0; font-size: .95rem; border: 1px solid transparent; }
.alert .icon { margin-top: 2px; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: #BFE3CB; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: #F5C2BD; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #C3DAF2; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: #F2D9A0; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom-nav-h) + 18px); z-index: 90; background: var(--contrast); color: var(--on-contrast); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; width: min(92vw, 440px); font-size: .93rem; }
.toast a { color: var(--gold); font-weight: 700; white-space: nowrap; }
.toast.is-error { background: var(--danger); }
.toast.is-error a { color: #fff; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .label { font-weight: 650; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 10px 14px; background: var(--surface); font-size: 16px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--contrast); outline: none; box-shadow: 0 0 0 3px rgba(var(--gold-rgb),.45); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.optional { font-weight: 400; color: var(--muted); font-size: .85rem; }
.choice-list { display: grid; gap: 10px; }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.choice:hover { border-color: #9A9A96; }
.choice input[type=radio] { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--contrast); flex: none; }
.choice.is-selected { border-color: var(--contrast); box-shadow: inset 0 0 0 1px var(--contrast); }
.choice.is-disabled { opacity: .5; cursor: not-allowed; }
.choice-title { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.choice-desc { font-size: .87rem; color: var(--muted); margin-top: 2px; }
.choice-aside { margin-left: auto; font-weight: 700; white-space: nowrap; font-size: .92rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { width: 20px; height: 20px; accent-color: var(--contrast); flex: none; margin-top: 2px; }

/* ---------- Cart + checkout ---------- */
.cart-layout, .checkout-layout { display: grid; gap: 20px; padding: 8px 0 40px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img, .cart-line .ph-art { width: 76px; height: 76px; border-radius: 8px; object-fit: contain; background: var(--media-bg); }
.cart-line-name { font-weight: 650; text-decoration: none; line-height: 1.3; display: block; }
.cart-line-meta { font-size: .82rem; color: var(--muted); }
.cart-line-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cart-line-total { font-weight: 800; }
.line-issue { font-size: .85rem; color: var(--danger); font-weight: 600; margin-top: 6px; display: flex; gap: 6px; }
.line-note { font-size: .85rem; color: var(--warning); font-weight: 600; margin-top: 6px; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; display: inline-flex; gap: 4px; align-items: center; }
.link-btn:hover { color: var(--danger); }
.summary-card { background: var(--bg); border-radius: var(--radius-lg); padding: 18px; align-self: start; }
.summary-card h2 { font-size: 1.1rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .95rem; }
.sum-row.total { border-top: 1px solid var(--line-strong); margin-top: 6px; padding-top: 12px; font-size: 1.15rem; font-weight: 800; }
.co-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 14px; }
.co-section h2 { font-size: 1.05rem; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.pay-note { display: flex; gap: 10px; align-items: flex-start; background: var(--gold-soft); border: 1px solid var(--gold-border); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 14px; font-size: .9rem; }
.pay-note .icon { color: var(--gold-ink); margin-top: 2px; }
.pay-note p { margin: 0 0 .4em; } .pay-note p:last-child { margin: 0; }
.step-num { width: 28px; height: 28px; border-radius: 99px; background: var(--contrast); color: var(--on-contrast); display: inline-grid; place-items: center; font-size: .85rem; flex: none; }
.co-items { max-height: 260px; overflow: auto; margin-bottom: 8px; }
.co-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: .9rem; }
.co-item img, .co-item .ph-art { width: 48px; height: 48px; border-radius: 6px; object-fit: contain; background: var(--media-bg); flex: none; }
.co-item .qtyb { font-size: .78rem; color: var(--muted); }
.place-bar { position: sticky; bottom: var(--bottom-nav-h); background: var(--surface); padding: 12px 0; border-top: 1px solid var(--line); z-index: 5; }
.secure-note { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 8px; }

/* ---------- Order page ---------- */
.order-hero { text-align: center; padding: 26px 16px; background: var(--bg); border-radius: var(--radius-lg); margin: 14px 0; }
.order-hero .big-icon { width: 56px; height: 56px; border-radius: 99px; display: grid; place-items: center; margin: 0 auto 10px; }
.order-hero .big-icon .icon { width: 30px; height: 30px; }
.big-icon.ok { background: var(--success-bg); color: var(--success); }
.big-icon.wait { background: var(--warning-bg); color: var(--warning); }
.big-icon.bad { background: var(--danger-bg); color: var(--danger); }
.order-number { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.bank-box { background: var(--gold-soft); border: 1px solid var(--gold-border); border-radius: var(--radius); padding: 14px; }
.copy-val { display: inline-flex; gap: 6px; align-items: center; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 99px; background: var(--contrast); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 99px; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Content blocks ---------- */
.why-grid { display: grid; gap: 12px; }
.why-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.why-item .icon-wrap { width: 40px; height: 40px; border-radius: 10px; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; flex: none; }
.help-cta { background: var(--brand-dark); color: var(--white); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 16px; }
.help-cta h2 { color: var(--white); }
.help-cta p { color: #D0D0D0; margin: 0; }
.help-cta .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.help-cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.contact-card:hover { border-color: var(--contrast); }
.contact-card .icon-wrap { width: 44px; height: 44px; border-radius: 99px; background: var(--bg); display: grid; place-items: center; flex: none; }
.draft-banner { background: var(--warning-bg); color: var(--warning); padding: 10px 14px; border-radius: var(--radius); font-size: .88rem; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #CFCFCF; padding: 36px 0 24px; margin-top: 24px; font-size: .92rem; }
.site-footer a { color: #E6E6E6; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; gap: 26px; }
.site-footer h3 { color: var(--white); font-size: .95rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px; font-size: .82rem; color: #A3A3A3; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  :root { --header-h: 70px; }
  body.has-bottom-nav { --bottom-nav-h: 0px; }
  .bottom-nav, .mobile-search, .mobile-only { display: none !important; }
  .header-search { display: block; }
  .cat-nav { display: block; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; padding: 48px 16px; gap: 40px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .listing { grid-template-columns: 250px 1fr; gap: 28px; }
  .listing .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp { grid-template-columns: 1.05fr 1fr; gap: 40px; padding-top: 20px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
  .checkout-layout .summary-card { position: sticky; top: calc(var(--header-h) + 16px); }
  .sticky-buy { display: none; }
  .place-bar { position: static; border: 0; padding: 0; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .help-cta { grid-template-columns: 1fr auto; align-items: center; padding: 32px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .section { padding: 56px 0; }
  .desktop-hidden { display: none !important; }
}
@media (max-width: 899px) {
  .desktop-only { display: none !important; }
  .filters:not(.is-open) .filter-panel { display: none; }
  /* Keep the WhatsApp button clear of the sticky buy bar on product pages. */
  body:has(.sticky-buy:not([style*="display: none"])) .wa-float { bottom: calc(var(--bottom-nav-h) + 84px); }
  .gallery-main { aspect-ratio: 4 / 3; }
  .filters.is-open { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
}
@media (min-width: 1100px) {
  .listing .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media print {
  .site-header, .site-footer, .bottom-nav, .wa-float, .announce { display: none !important; }
}

/* Currency switcher (display only) */
.cur-switch { position: relative; }
.cur-btn { width: auto; min-width: 44px; padding: 0 8px; font-weight: 700; font-size: .78rem; letter-spacing: .02em; }
.cur-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; min-width: 240px; }
.cur-menu form { display: grid; }
.cur-opt { display: flex; gap: 10px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 6px; cursor: pointer; color: var(--ink); font: inherit; }
.cur-opt span { color: var(--muted); font-size: .88rem; }
.cur-opt:hover, .cur-opt:focus-visible { background: var(--bg); }
.cur-opt.is-current { background: var(--gold-soft); }
.cur-menu-note { margin: 4px 10px 6px; font-size: .75rem; color: var(--muted); text-transform: none; }
.cur-note { display: flex; gap: 6px; align-items: flex-start; font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.cur-approx { color: var(--muted); font-size: .9rem; }
.charge-note { display: flex; gap: 8px; align-items: flex-start; background: var(--gold-soft); border: 1px solid var(--gold-border); border-radius: var(--radius); padding: 10px 12px; margin-top: 10px; font-size: .88rem; }
.charge-note .icon { color: var(--gold-ink); margin-top: 2px; }
/* Install-app icon */
.install-wrap { position: relative; display: inline-flex; }
.install-wrap [hidden] { display: none !important; }
.install-hint { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 230px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px; font-size: .85rem; }
@media (max-width: 380px) { .cur-btn { min-width: 38px; padding: 0 4px; } }
