/* =====================================================================
   Nevorika Catalog — Public website styles (mobile-first)
   File: assets/css/style.css
   Brand colours are in :root — change them here.
   ===================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Brand */
  --maroon: #6B1E2E;
  --maroon-dark: #531623;
  --maroon-deep: #45111D;  /* trust bar */
  --white: #FFFFFF;
  --ink: #2B2B2B;
  /* Neutrals (no pink/cream tints — two-tone maroon + white) */
  --cream: #FFFFFF;        /* page background */
  --paper: #FFFFFF;
  --soft: #F6F6F6;         /* image placeholders, table headers */
  --blush: #F6F6F6;
  --muted: #666666;
  --line: #E8E8E8;
  --gold: #6B1E2E;         /* kept for old rules: accents are maroon now */
  --gold-soft: #F6F6F6;
  --focus: #6B1E2E;
  --wa: #6B1E2E;           /* Buy Now / WhatsApp buttons use the brand maroon */
  --wa-dark: #531623;
  --wa-green: #187A3F;     /* only the small floating chat bubble */
  --ok: #2E7D32;
  --danger: #B3261E;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .05);
  --shadow-hover: 0 10px 26px rgba(0, 0, 0, .10);
  --gutter: 16px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon-dark); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--maroon); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
main:focus { outline: none; }

.sr-only { position: absolute !important; 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; z-index: 100; background: var(--maroon); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
@media (min-width: 768px) { :root { --gutter: 28px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-text { background: none; color: var(--maroon); text-decoration: underline; min-height: 44px; padding: 8px 6px; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 56px; font-size: 17px; padding: 14px 26px; }
.btn-block { width: 100%; }
.btn .icon { flex: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--maroon); cursor: pointer; }
.icon-btn:hover { background: var(--soft); }

/* ---------- Trust bar (above header) ---------- */
.topbar {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: 6px var(--gutter);
  background: var(--maroon-deep); color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .01em; text-align: center; text-decoration: none;
}
a.topbar:hover { color: #fff; text-decoration: underline; }
.topbar-icon { flex: none; opacity: .9; }
.topbar-messages { display: grid; }
.topbar-msg { grid-area: 1 / 1; opacity: 0; transition: opacity .4s ease; }
.topbar-msg.is-active { opacity: 1; }
.topbar :focus-visible, .topbar:focus-visible { outline-color: #fff; }

/* ---------- Header (maroon) ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--maroon); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.site-header :focus-visible { outline-color: #fff; }
.header-row { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.site-header .icon-btn { color: #fff; }
.site-header .icon-btn:hover { background: rgba(255,255,255,.12); }
.logo { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.logo img { height: 40px; width: auto; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; letter-spacing: .2em; color: var(--maroon); padding-left: .2em; }
.site-header .logo-text { color: #fff; }
.logo-text.small { font-size: 1.1rem; }
.header-search { display: none; }
.cat-nav { display: none; }

@media (min-width: 960px) {
  :root { --header-h: 72px; }
  .menu-toggle, .search-link { display: none; }
  .logo { margin-right: 0; }
  .logo-text { font-size: 1.7rem; }
  .header-search { display: flex; align-items: center; margin-left: auto; width: min(400px, 40vw); position: relative; }
  .header-search input { width: 100%; height: 44px; padding: 0 48px 0 18px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); }
  .header-search input::placeholder { color: #8a8a8a; }
  .header-search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
  .header-search .icon-btn { position: absolute; right: 2px; color: var(--maroon); }
  .header-search .icon-btn:hover { background: var(--soft); }
  .cat-nav { display: block; border-top: 1px solid rgba(255,255,255,.14); }
  .cat-nav > ul { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0 auto; padding: 0 var(--gutter); }
  .cat-nav li { position: relative; }
  .cat-nav > ul > li > a { display: block; padding: 12px 0; color: rgba(255,255,255,.9); text-decoration: none; font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; }
  .cat-nav > ul > li > a:hover, .cat-nav > ul > li > a[aria-current] { color: #fff; border-bottom-color: #fff; }
  .sub-menu {
    position: absolute; top: 100%; left: -16px; z-index: 50; min-width: 220px; list-style: none; margin: 0; padding: 8px;
    background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-hover);
    opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
  }
  .sub-menu :focus-visible { outline-color: var(--focus); }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
  .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
  .sub-menu a:hover { background: var(--soft); color: var(--maroon); }
}

/* ---------- Drawer (mobile menu) & dialogs ---------- */
dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(43, 43, 43, .45); }
.drawer {
  margin: 0; width: min(88vw, 380px); max-width: none; height: 100dvh; max-height: none;
  background: var(--cream); overflow-y: auto; padding: 0 0 24px;
}
.drawer[open] { animation: slide-in .22s ease; }
@keyframes slide-in { from { transform: translateX(-100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 20px; background: var(--maroon); color: #fff; }
.drawer-head .logo-text { color: #fff; }
.drawer-head .icon-btn { color: #fff; }
.drawer-head .icon-btn:hover { background: rgba(255,255,255,.12); }
.drawer-search { padding: 16px 20px 6px; }
.drawer-search input { width: 100%; height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.drawer-nav, .drawer-pages { list-style: none; margin: 0; padding: 8px 20px; }
.drawer-nav > li { border-bottom: 1px solid var(--line); }
.drawer-nav a, .drawer-nav summary { display: block; padding: 14px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 17px; cursor: pointer; }
.drawer-nav summary { list-style: none; display: flex; justify-content: space-between; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav summary::after { content: "+"; color: var(--maroon); font-size: 22px; line-height: 1; }
.drawer-nav details[open] summary::after { content: "–"; }
.drawer-nav details ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.drawer-nav details a { padding: 10px 0; font-size: 16px; font-weight: 400; }
.drawer-pages a { display: block; padding: 8px 0; color: var(--muted); text-decoration: none; }

/* ---------- Hero slider (image-only banners) ---------- */
.hero { position: relative; max-width: 1240px; margin: 0 auto; }
.hero-frame { position: relative; overflow: hidden; background: var(--soft); aspect-ratio: var(--ratio-m, 1 / 1); }
.hero-track {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.hero-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: block; }
.slide picture, .slide img { display: block; width: 100%; height: 100%; }
.slide img { object-fit: cover; }
a.slide:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.hero-dots {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 7px;
  padding: 6px 10px; border-radius: 99px; background: rgba(0,0,0,.28); backdrop-filter: blur(4px);
}
.dot { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(255,255,255,.6); cursor: pointer; transition: width .25s ease, background-color .25s ease; position: relative; }
.dot[aria-selected="true"], .dot.is-active { width: 22px; background: #fff; }
.gallery-dots .dot { background: #CFCFCF; }
.gallery-dots .dot.is-active { background: var(--maroon); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--maroon);
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.15); opacity: 0; transition: opacity .2s ease;
}
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }
@media (hover: hover) and (pointer: fine) {
  .hero-arrow { display: inline-flex; }
  .hero-frame:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
}
@media (min-width: 768px) {
  .hero { padding: 20px var(--gutter) 0; }
  .hero-frame { aspect-ratio: var(--ratio-d, 24 / 5); border-radius: var(--r-lg); }
}

/* ---------- Sections ---------- */
.section { padding-top: 44px; padding-bottom: 8px; }   /* only top/bottom: .container sets the sides */
.section-head { margin-bottom: 20px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head h2 { margin-bottom: 4px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.link-more { white-space: nowrap; font-weight: 600; font-size: 15px; }
@media (min-width: 768px) { .section { padding-top: 64px; } }

/* ---------- Category "standees" (signature element) ---------- */
/* 2 per row on phones, 3 on tablets, 6 on laptops. A short last row is centred, so no empty hole on one side. */
.standee-grid { --cols: 2; --gap-x: 14px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 26px var(--gap-x); }
.standee-grid > li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap-x)) / var(--cols)); min-width: 0; }
@media (min-width: 640px) { .standee-grid { --cols: 3; --gap-x: 20px; } }
@media (min-width: 1024px) { .standee-grid { --cols: 6; --gap-x: 20px; row-gap: 32px; } }
.standee { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); }
.standee-cut {
  position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 18px 18px;                /* laser-cut arch silhouette */
  background: var(--soft);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
  transition: transform .25s ease;
}
.standee-cut img { width: 100%; height: 100%; object-fit: cover; }
.standee-cut::after {                                     /* thin gold edge, like a cut MDF outline */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(107, 30, 46, .35), inset 0 0 0 6px rgba(255, 255, 255, .5);
}
.standee-base {                                          /* the gold stand under every standee */
  display: block; width: 72%; height: 12px; margin-top: -4px; border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(180deg, #8C3346, var(--maroon) 60%, var(--maroon-deep));
  box-shadow: 0 6px 10px -4px rgba(0,0,0,.3);
}
.standee-name { margin-top: 12px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--maroon); line-height: 1.25; overflow-wrap: anywhere; text-wrap: balance; }
@media (min-width: 1024px) and (max-width: 1279px) { .standee-name { font-size: .98rem; } }
.standee-count { font-size: 13px; color: var(--muted); margin-top: 2px; }
.standee:hover .standee-cut { transform: translateY(-4px); }
.standee:focus-visible { outline: none; }
.standee:focus-visible .standee-cut { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- Product grid & card ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.listing-main .grid { }
@media (min-width: 960px) and (max-width: 1099px) { .listing-main .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .listing-main .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* .grid-fill (home sections, "You may also like"): if the last row would be
   half empty, those extra cards are hidden on that screen size, so every row is full.
   Only used where a "See all" link exists, never on category/search pages. */
@media (max-width: 767px) {
  .grid-fill:not(.grid-scroll) > :nth-child(2n+3):last-child { display: none; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .grid-fill > :nth-child(3n+4):nth-last-child(-n+2),
  .grid-fill > :nth-child(3n+4):nth-last-child(-n+2) ~ * { display: none; }
}
@media (min-width: 1100px) {
  .grid-fill > :nth-child(4n+5):nth-last-child(-n+3),
  .grid-fill > :nth-child(4n+5):nth-last-child(-n+3) ~ * { display: none; }
}

.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.card:hover { box-shadow: var(--shadow-hover); border-color: transparent; }
.card-media { position: relative; display: block; background: var(--soft); aspect-ratio: 1 / 1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.tag { position: absolute; left: 10px; top: 10px; background: var(--maroon); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.tag-muted { background: #fff; color: var(--muted); }
.card-body { padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.35; margin: 0; color: var(--ink); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: calc(2em * 1.35); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }           /* whole card area is clickable */
.card { position: relative; }
.card-title a:hover { color: var(--maroon); }
.card-note { font-size: 12px; color: var(--muted); }
.btn-card { position: relative; z-index: 2; margin: 4px 12px 12px; min-height: 42px; padding: 8px 12px; font-size: 14px; }
@media (min-width: 768px) { .card-body { padding: 16px 16px 8px; } .card-title { font-size: 16px; } .btn-card { margin: 6px 16px 16px; } }

.grid-scroll { }
@media (max-width: 767px) {
  .grid-scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; scrollbar-width: none; }
  .grid-scroll::-webkit-scrollbar { display: none; }
  .grid-scroll > .card { flex: 0 0 62%; scroll-snap-align: start; }
}

/* ---------- Price ---------- */
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price-now { font-weight: 700; font-size: 16px; color: var(--ink); }
.price-was { color: var(--muted); font-size: 14px; }
.price-off { color: var(--ok); font-size: 13px; font-weight: 600; }
.price-hidden { color: var(--maroon); font-weight: 600; font-size: 14px; }
.price-lg .price-now { font-size: 1.9rem; font-family: var(--font-head); color: var(--maroon); }
.price-lg .price-was { font-size: 1.05rem; }
.price-lg .price-off { font-size: .95rem; }

/* ---------- Breadcrumbs & page header ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 16px 0 6px; font-size: 14px; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: #BDBDBD; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--maroon); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }
.page-header { padding: 6px 0 18px; }
.page-header h1 { margin-bottom: .25em; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 62ch; }

/* ---------- Chips (subcategories) ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; margin: 0 calc(var(--gutter) * -1) 6px; padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; }
.chip:hover { border-color: var(--maroon); color: var(--maroon); }
.chip.is-active { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* ---------- Listing: filters + grid ---------- */
.listing-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 16px; }
.result-count { margin: 0; color: var(--muted); font-size: 15px; }
.sort-form { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sort-form label { font-size: 14px; color: var(--muted); }
.sort-form select, .filters-form select { height: 44px; padding: 0 36px 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--maroon) 50%), linear-gradient(135deg, var(--maroon) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.filter-toggle { order: 3; }
@media (max-width: 559px) { .sort-form label { display: none; } .sort-form { margin-left: 0; } .filter-toggle { order: 0; } .result-count { width: 100%; } }

.filters-panel {
  width: min(92vw, 420px); max-height: 92dvh; border-radius: var(--r-lg); background: var(--cream);
}
.filters-panel[open] { animation: pop .18s ease; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
.filters-form { padding: 6px 20px 22px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--cream); padding: 10px 0; z-index: 1; }
.filters-head h2 { margin: 0; font-size: 1.3rem; }
.filters-form fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.filters-form legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.filters-form select { width: 100%; margin-bottom: 8px; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs label { flex: 1; }
.price-inputs input { width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--maroon); }
.filters-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters-actions .btn-primary { flex: 1; }

@media (min-width: 960px) {
  .filter-toggle { display: none; }
  .listing-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
  .filters-panel {
    display: block; position: sticky; top: calc(var(--header-h) + 60px); width: auto; max-height: none; margin: 0;
    border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow); overflow: visible;
  }
  .filters-close { display: none; }
  .filters-form { padding: 4px 18px 20px; }
  .filters-head { background: #fff; }
  .filters-head h2 { font-size: 1.1rem; }
}

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 30px 0 10px; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination a:hover { border-color: var(--maroon); color: var(--maroon); }
.pagination [aria-current] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.pagination .gap { border: 0; background: none; min-width: 20px; padding: 0; }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 40px 20px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.empty-title { font-family: var(--font-head); font-size: 1.5rem; color: var(--maroon); margin-bottom: 6px; }
.empty p { max-width: 52ch; margin-left: auto; margin-right: auto; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.empty-home { margin-top: 40px; }

/* ---------- Search ---------- */
.search-big { display: flex; gap: 8px; max-width: 620px; margin-top: 12px; }
.search-big input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 16px; }
.search-big input:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(107,30,46,.14); }

/* ---------- Product page ---------- */
.product-layout { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); padding-bottom: 8px; }
@media (min-width: 900px) { .product-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }

.gallery { position: relative; min-width: 0; }
@media (min-width: 900px) { .gallery { position: sticky; top: calc(var(--header-h) + 56px); } }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-lg); background: var(--blush); scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; aspect-ratio: 1 / 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; transform-origin: center; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gallery-thumbs { display: none; }
@media (min-width: 900px) {
  .gallery-dots { display: none; }
  .gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
  .thumb-btn { width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--blush); cursor: pointer; }
  .thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
  .thumb-btn.is-active { border-color: var(--maroon); }
  .gallery-slide.is-zooming img { transform: scale(2); }
}

.product-info h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin-bottom: 6px; }
.product-code { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.product-code strong { color: var(--ink); font-weight: 600; }
.product-price { margin-bottom: 6px; min-height: 2.6rem; }
.availability { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.availability::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.availability-ok { color: var(--ok); }
.availability-made { color: var(--maroon); }
.availability-muted { color: var(--muted); }

.enquiry { border-top: 1px solid var(--line); padding-top: 18px; }
.enquiry fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.enquiry legend { font-weight: 600; padding: 0; margin-bottom: 10px; font-size: 15px; }
.selected-label { font-weight: 400; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { position: relative; display: inline-flex; }
.pill-input { position: absolute; top: 50%; left: 50%; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pill {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 46px; padding: 8px 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; font-weight: 500; line-height: 1.25;
  transition: border-color .12s ease, background-color .12s ease;
}
.pill:hover { border-color: var(--maroon); }
.pill-price { font-size: 12px; color: var(--muted); font-weight: 500; }
.pill-input:checked + .pill { border-color: var(--maroon); background: var(--maroon); color: #fff; }
.pill-input:checked + .pill .pill-price { color: rgba(255,255,255,.85); }
.pill-input:focus-visible + .pill { outline: 3px solid var(--focus); outline-offset: 2px; }
.personalize legend { font-family: var(--font-head); font-size: 1.2rem; color: var(--maroon); font-weight: 600; }
.personalize .field { margin-bottom: 14px; }
.personalize label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.personalize input, .personalize select, .personalize textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 16px;
}
.personalize textarea { min-height: 96px; resize: vertical; }
.personalize input:focus, .personalize select:focus, .personalize textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(107,30,46,.14); }
.personalize .has-error input, .personalize .has-error select, .personalize .has-error textarea { border-color: var(--danger); }
.req { color: var(--danger); }
.optional { color: var(--muted); font-weight: 400; font-size: 13px; }
.field-error { color: var(--danger); font-size: 14px; margin: 6px 0 0; }
.enquiry-note { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0 0; }

.product-details { display: grid; gap: 28px; padding: 32px 0 8px; border-top: 1px solid var(--line); margin-top: 28px; }
@media (min-width: 900px) { .product-details { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; } }
.product-details > section > h2 { font-size: 1.45rem; margin-top: 0; }
.specs { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 42%; font-weight: 600; color: var(--muted); background: var(--soft); }

.prose { max-width: 68ch; }
.prose h2 { font-size: 1.45rem; margin-top: 1.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 0 0 1em; padding: 4px 0 4px 16px; border-left: 3px solid var(--maroon); color: var(--muted); font-style: italic; }
.prose > :first-child { margin-top: 0; }

/* Mobile sticky enquiry bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(43,43,43,.08);
  transform: translateY(110%); transition: transform .2s ease;
}
.sticky-bar.is-visible { transform: none; }
.sticky-price { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sticky-amount { font-weight: 700; font-size: 18px; color: var(--maroon); }
.sticky-amount.small { font-size: 14px; }
.sticky-name { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-bar .btn { min-height: 48px; }
.page-product { padding-bottom: 76px; }
@media (min-width: 900px) { .sticky-bar { display: none; } .page-product { padding-bottom: 0; } }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: rgba(20, 16, 14, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 88dvh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 12px; right: 12px; color: #fff; background: rgba(255,255,255,.12); }
.lightbox-close:hover { background: rgba(255,255,255,.24); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }

/* ---------- Content pages ---------- */
.contact-cards { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 26px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card { display: flex; align-items: center; gap: 12px; padding: 18px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.contact-card > span { display: flex; flex-direction: column; }
.contact-card strong { color: var(--maroon); }
.contact-card:hover { box-shadow: var(--shadow-hover); }
.contact-wa { background: var(--wa); color: #fff; }
.contact-wa strong { color: #fff; }
.contact-extra { margin-top: 10px; }

/* ---------- 404 / error ---------- */
.not-found { text-align: center; padding: 50px 0 20px; }
.not-found-art { font-family: var(--font-head); font-size: clamp(4rem, 3rem + 6vw, 7rem); line-height: 1; color: var(--maroon); opacity: .2; margin: 0 0 10px; }
.not-found p { max-width: 52ch; margin-left: auto; margin-right: auto; color: var(--muted); }
.not-found .search-big { margin: 18px auto; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 70px; background: var(--maroon); color: rgba(255,255,255,.88); }
.site-footer :focus-visible { outline-color: #fff; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; padding-top: 46px; padding-bottom: 30px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.site-footer .logo-text { color: #fff; }
.footer-tagline { color: rgba(255,255,255,.75); margin-top: 6px; }
.footer-brand p { max-width: 40ch; }
.footer-title { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 10px; letter-spacing: .02em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .btn-wa { margin-top: 6px; background: #fff; color: var(--maroon); }
.site-footer .btn-wa:hover { background: rgba(255,255,255,.9); color: var(--maroon-dark); }
.site-footer .btn-wa:hover { text-decoration: none; }
.social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; padding-bottom: 26px; font-size: 14px; color: rgba(255,255,255,.7); }
.footer-bottom p { margin: 0; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 44;
  display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 18px 0 16px;
  border-radius: 999px; background: var(--wa-green); color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 8px 24px rgba(30, 142, 74, .35);
}
.wa-float:hover { background: #126632; color: #fff; }
.wa-float .icon { width: 26px; height: 26px; }
@media (max-width: 559px) { .wa-float { width: 56px; padding: 0; justify-content: center; } .wa-float-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Reels (home) ---------- */
.reels { position: relative; }
.reel-track {
  display: flex; gap: 12px; list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel { flex: 0 0 44%; scroll-snap-align: start; }
@media (min-width: 640px) { .reel { flex-basis: 30%; } }
@media (min-width: 1024px) { .reel { flex-basis: calc((100% - 48px) / 5); } .reel-track { margin: 0; padding: 2px 0 10px; } }
.reel-card {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: var(--r-md);
  overflow: hidden; background: #1d1d1d; cursor: pointer; color: #fff; text-align: left;
}
.reel-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.65)); pointer-events: none; }
.reel-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--maroon); box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .2s ease, opacity .2s ease;
}
.reel-card.is-previewing .reel-play { opacity: .0; }
.reel-card:hover .reel-play { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
.reel-caption { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 10px; font-size: 13px; font-weight: 500; line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.reel-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.reel-viewer { width: min(94vw, 420px); max-height: 94dvh; padding: 0; background: #000; border-radius: var(--r-md); overflow: visible; }
.reel-viewer[open] { display: flex; flex-direction: column; align-items: center; }
.reel-stage { width: 100%; aspect-ratio: 9 / 16; max-height: 86dvh; background: #000; border-radius: var(--r-md); overflow: hidden; }
.reel-stage video, .reel-stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.reel-stage iframe { background: #fff; }
.reel-close { position: absolute; top: 8px; right: 8px; z-index: 2; color: #fff; background: rgba(0,0,0,.45); }
.reel-close:hover { background: rgba(0,0,0,.65); }
.reel-ig-link { display: block; width: 100%; padding: 12px; text-align: center; color: #fff; font-weight: 600; font-size: 14px; background: #111; border-radius: 0 0 var(--r-md) var(--r-md); }
.reel-ig-link:hover { color: #fff; }

/* ---------- Customer photos slider ---------- */
.photo-slider { position: relative; }
.photo-track {
  display: flex; gap: 12px; list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.photo-track::-webkit-scrollbar { display: none; }
.photo-track:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.photo-item { flex: 0 0 42%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 640px) { .photo-item { flex-basis: 30%; } }
@media (min-width: 1024px) { .photo-item { flex-basis: calc((100% - 48px) / 5); } .photo-track { margin: 0; padding: 2px 0 8px; } }
.photo-btn { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--soft); cursor: zoom-in; aspect-ratio: 4 / 5; }
.photo-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-btn:hover img { transform: scale(1.03); }
.photo-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.photo-caption { font-size: 13px; color: var(--muted); }
.slider-arrow {
  position: absolute; top: calc(50% - 16px); transform: translateY(-50%); display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--maroon);
  cursor: pointer; box-shadow: var(--shadow);
}
.slider-arrow.prev { left: -14px; }
.slider-arrow.next { right: -14px; }
.slider-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) { .slider-arrow { display: inline-flex; } }

/* ---------- Delivery details (product page) ---------- */
.delivery { border-top: 1px solid var(--line); padding-top: 18px; }
.field-row { display: grid; gap: 0 12px; grid-template-columns: 1.4fr 1fr; }
.personalize .has-error label { color: var(--danger); }
.form-summary { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r-sm); background: #FDECEA; color: #7a1712; font-size: 14px; font-weight: 500; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-track, .reel-track { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-track, .gallery-track { scroll-behavior: auto; }
}

/* Sliders with side padding: the first card's snap point must be "0", otherwise the browser
   moves the slider by itself on page load (that hidden scroll also stops Google's LCP speed measurement). */
.grid-scroll, .reel-track, .photo-track { scroll-padding-inline: var(--gutter); }

/* Banner dots: 24 × 24 px tap area, small dot look */
.hero-dots { gap: 0; padding: 2px 6px; }
.hero-dots .dot { width: 24px; height: 24px; background: transparent; display: grid; place-items: center; }
.hero-dots .dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.6); transition: width .25s ease, background-color .25s ease; }
.hero-dots .dot[aria-selected="true"], .hero-dots .dot.is-active { width: 30px; background: transparent; }
.hero-dots .dot[aria-selected="true"]::before, .hero-dots .dot.is-active::before { width: 22px; background: #fff; }

/* Banner of a different shape than the frame: show it whole on a soft background (never cut, never stretched) */
@media (max-width: 767px) { .slide.fit-m img { object-fit: contain; } }
@media (min-width: 768px) { .slide.fit-d img { object-fit: contain; } }

/* Dots sit UNDER the banner, so they never cover banner text or products */
.hero-dots { position: static; transform: none; display: flex; justify-content: center; width: max-content; margin: 8px auto 0;
  background: transparent; backdrop-filter: none; padding: 0; }
.hero-dots .dot::before { background: #CFCFCF; }
.hero-dots .dot[aria-selected="true"]::before, .hero-dots .dot.is-active::before { background: var(--maroon); }

/* Laptop/desktop: banner runs edge to edge — no white gap on the left and right */
@media (min-width: 768px) {
  .hero { max-width: none; padding: 0; }
  .hero-frame { border-radius: 0; }
}
/* Less empty space between the banner and the first section */
.hero + .section { padding-top: 22px; }
@media (min-width: 768px) { .hero + .section { padding-top: 30px; } }

/* =====================================================================
   Social proof — labels, "bought" tags, customer reviews (v1.4)
   All numbers/labels come from the admin; nothing is generated.
   ===================================================================== */
.card-tags { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; pointer-events: none; }
.card-tags .tag { position: static; }
.tag-proof { box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.tag-best_seller { background: var(--maroon); color: #fff; }
.tag-most_gifted { background: #FFF4D6; color: #6B4A00; border: 1px solid #EBD9A6; }
.proof-pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 4px 11px; border-radius: 99px; margin-bottom: 8px; }
.proof-pill.tag-best_seller { background: var(--maroon); color: #fff; }
.page-header .proof-pill { margin-bottom: 6px; }

.bought { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: #4A4A4A; line-height: 1.3; }
.bought-icon { flex: none; color: var(--maroon); }
.card-body .bought { margin-top: 2px; }
.proof-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -12px 0 18px; }
.proof-line .bought { font-size: 14px; }
.rating-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; min-height: 24px; }
.rating-link:hover { text-decoration: underline; }
.rating-link span { color: var(--muted); font-weight: 500; }

/* Category standee label */
.standee { position: relative; }
.standee-label { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 1; white-space: nowrap;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; box-shadow: 0 2px 6px rgba(0,0,0,.12); max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) { .standee-label { font-size: 12px; top: 12px; } }

/* Stars: fill width from data-half (0–10) — no inline styles because of the CSP */
.stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 1px; color: #D9D9D9; white-space: nowrap; vertical-align: -1px; }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #E0A100; width: 0; }
.stars[data-half="1"] .stars-fill { width: 10%; } .stars[data-half="2"] .stars-fill { width: 20%; }
.stars[data-half="3"] .stars-fill { width: 30%; } .stars[data-half="4"] .stars-fill { width: 40%; }
.stars[data-half="5"] .stars-fill { width: 50%; } .stars[data-half="6"] .stars-fill { width: 60%; }
.stars[data-half="7"] .stars-fill { width: 70%; } .stars[data-half="8"] .stars-fill { width: 80%; }
.stars[data-half="9"] .stars-fill { width: 90%; } .stars[data-half="10"] .stars-fill { width: 100%; }

/* Review cards */
.count-muted { color: var(--muted); font-weight: 400; font-size: .8em; }
.rating-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0 0; color: var(--muted); }
.rating-summary strong { color: var(--ink); }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 768px) { .review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .review-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review-list > li { min-width: 0; }
.review-card { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; min-width: 0; }
.review-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.review-source { font-size: 12px; color: var(--muted); background: var(--soft); padding: 3px 8px; border-radius: 99px; }
.review-body { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.review-media { display: flex; flex-wrap: wrap; gap: 8px; }
.review-photo { width: 72px; height: 72px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--soft); cursor: zoom-in; flex: none; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; }
.review-photo:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.review-by { margin-top: auto; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.review-by strong { color: var(--ink); }
.review-product { display: block; margin-top: 4px; font-size: 13px; color: var(--maroon); font-weight: 600; text-decoration: none; }
.review-product:hover { text-decoration: underline; }
.review-more { margin-top: 16px; }
/* Home: review slider (reuses the photo slider arrows/swipe) */
.review-track > li { flex: 0 0 84%; scroll-snap-align: start; display: flex; min-width: 0; }
.review-track > li > .review-card { width: 100%; }
@media (min-width: 640px) { .review-track > li { flex-basis: 46%; } }
@media (min-width: 1024px) { .review-track > li { flex-basis: calc((100% - 36px) / 3); } }

/* =====================================================================
   Home on phones (v1.4.1): banner ≈ 40% of the screen, small category
   cards in one swipeable row right under it, less empty space
   ===================================================================== */
@media (max-width: 767px) {
  .standee-grid {
    flex-wrap: nowrap; justify-content: flex-start; gap: 10px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 6px;
  }
  .standee-grid::-webkit-scrollbar { display: none; }
  .standee-grid:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
  /* 3½ cards visible → customers see there is more to swipe */
  .standee-grid > li { flex: 0 0 calc((100% - var(--gutter) - 30px) / 3.5); scroll-snap-align: start; }
  .standee-cut { border-radius: 999px 999px 12px 12px; }
  .standee-cut::after { box-shadow: inset 0 0 0 1.5px rgba(107, 30, 46, .35), inset 0 0 0 4px rgba(255, 255, 255, .5); }
  .standee-base { height: 8px; margin-top: -3px; }
  .standee-name { margin-top: 6px; font-size: 13px; line-height: 1.2; }
  .standee-count { display: none; }
  .standee:hover .standee-cut { transform: none; }
  .standee-label { top: 4px; font-size: 9.5px; padding: 2px 6px; }

  .page-home .section { padding-top: 30px; }
  .page-home .hero + .section { padding-top: 12px; }
  .page-home .section-head { margin-bottom: 12px; }
  .page-home .section-head h2 { margin-bottom: 2px; font-size: 1.35rem; }
  .page-home .hero-dots { margin-top: 4px; }
}
