/* =====================================================================
   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;
  --gold: #C9A24D;
  --gold-soft: #F3E7C9;
  --cream: #FAF6EF;
  --ink: #2B2B2B;
  /* Supporting */
  --blush: #F3E4E1;
  --paper: #FFFFFF;
  --muted: #6A645E;
  --line: #E9DFD0;
  --wa: #1E8E4A;          /* WhatsApp buttons (white text passes contrast) */
  --wa-dark: #187A3F;
  --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 6px 22px rgba(107, 30, 46, .08);
  --shadow-hover: 0 12px 30px rgba(107, 30, 46, .14);
  --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(--gold); 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(--blush); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(250, 246, 239, .96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.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; }
.logo-text.small { font-size: 1.1rem; }
.header-search { display: none; }
.cat-nav { display: none; }

@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .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(380px, 40vw); position: relative; }
  .header-search input { width: 100%; height: 46px; padding: 0 48px 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
  .header-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,77,.25); }
  .header-search .icon-btn { position: absolute; right: 2px; }
  .cat-nav { display: block; border-top: 1px solid var(--line); }
  .cat-nav > ul { display: flex; flex-wrap: wrap; gap: 4px 26px; list-style: none; margin: 0 auto; padding: 0 var(--gutter); }
  .cat-nav li { position: relative; }
  .cat-nav > ul > li > a { display: block; padding: 13px 0; color: var(--ink); 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: var(--maroon); border-bottom-color: var(--gold); }
  .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;
  }
  .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(--cream); 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; border-bottom: 1px solid var(--line); }
.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(--gold); 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(--gold-soft); }
.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 ---------- */
.hero { position: relative; max-width: 1240px; margin: 12px auto 0; padding: 0 var(--gutter); }
.hero-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--r-lg); scrollbar-width: none; background: var(--blush);
}
.hero-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.slide img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.slide-copy {
  position: absolute; left: 14px; right: 14px; top: 14px;
  background: rgba(250, 246, 239, .92); border-radius: var(--r-md); padding: 18px 18px 20px;
  box-shadow: 0 4px 20px rgba(43,43,43,.08);
}
.slide-title { font-size: clamp(1.5rem, 1.1rem + 2.4vw, 3rem); margin: 0 0 .3em; }
.slide-sub { color: var(--ink); margin-bottom: 14px; max-width: 46ch; }
.hero-controls { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 10px; }
.hero-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--maroon); font-size: 24px; line-height: 1; cursor: pointer; }
.hero-dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: #D9CBB5; cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.dot[aria-selected="true"], .dot.is-active { width: 26px; background: var(--maroon); }
@media (min-width: 768px) {
  .hero { margin-top: 20px; }
  .slide img { aspect-ratio: 12 / 5; }
  .slide-copy { top: 50%; left: 5%; right: auto; transform: translateY(-50%); max-width: 44%; padding: 28px 30px 30px; }
}

/* ---------- 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) ---------- */
.standee-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .standee-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .standee-grid { grid-template-columns: repeat(5, 1fr); gap: 32px 22px; } }
.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(--blush);
  box-shadow: inset 0 0 0 1px rgba(107,30,46,.06);
  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(201, 162, 77, .55), inset 0 0 0 6px rgba(255, 255, 255, .35);
}
.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, #D8B866, var(--gold) 60%, #A9843A);
  box-shadow: 0 6px 10px -4px rgba(107,30,46,.35);
}
.standee-name { margin-top: 12px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--maroon); line-height: 1.25; }
.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(--gold); 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)); } }

.card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s ease; }
.card:hover { box-shadow: var(--shadow-hover); }
.card-media { position: relative; display: block; background: var(--blush); 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); }
.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: #C9BBA5; }
.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(--gold); box-shadow: 0 0 0 3px rgba(201,162,77,.25); }

/* ---------- 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-gold { color: #8A6A22; }
.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-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.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(--gold); }
.pill-price { font-size: 12px; color: var(--muted); font-weight: 500; }
.pill-input:checked + .pill { border-color: var(--maroon); background: #FBF1F2; box-shadow: inset 0 0 0 1px var(--maroon); }
.pill-input:focus-visible + .pill { outline: 3px solid var(--gold); 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(--gold); box-shadow: 0 0 0 3px rgba(201,162,77,.25); }
.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: #FDFBF7; }

.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(--gold); 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(--gold); 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: #F4E9EA; }
.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: var(--gold-soft); margin-top: 6px; }
.footer-brand p { max-width: 40ch; }
.footer-title { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--gold); 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: #F4E9EA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .btn-wa { margin-top: 6px; }
.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: #D9C3C6; }
.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); color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 8px 24px rgba(30, 142, 74, .35);
}
.wa-float:hover { background: var(--wa-dark); 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); } }

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