/* Lucky Gold — Beige + Mocha Brown theme */
:root {
  --beige: #F4EDE2;
  --beige-deep: #EBDFCC;
  --cream: #FBF8F3;
  --taupe: #B79B7C;
  --mocha: #49372D;
  --mocha-deep: #33261F;
  --gold: #D2B16F;
  --gold-deep: #9C7A3C;
  --text: #3B2D25;
  --muted: #7C6A5C;
  --line: #E3D6C3;
  --wa: #3FCF7A;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(73, 55, 45, .06), 0 12px 32px -12px rgba(73, 55, 45, .18);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--mocha); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mocha); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1348px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.i { width: 1.1em; height: 1.1em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow {
  display: inline-block;
  font-size: .74rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep);
}
.link { color: var(--mocha); font-weight: 500; border-bottom: 1px solid var(--taupe); padding-bottom: 1px; transition: border-color .2s; }
.link:hover { border-color: var(--mocha); }
@media (max-width: 639px) { .hide-sm { display: none !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 500; font-size: .98rem; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 1em; font-size: .9rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 1.8em; font-size: 1.05rem; width: 100%; }
.btn-dark { background: var(--mocha); color: var(--cream); }
.btn-dark:hover { background: var(--mocha-deep); box-shadow: 0 10px 24px -10px rgba(51, 38, 31, .6); }
.btn-ghost { background: transparent; color: var(--mocha); border-color: var(--taupe); }
.btn-ghost:hover { background: rgba(183, 155, 124, .14); }
.btn-gold { background: var(--gold); color: var(--mocha-deep); }
.btn-gold:hover { background: #DCC084; }
.btn-outline-light { border-color: rgba(244, 237, 226, .4); color: var(--beige); }
.btn-outline-light:hover { background: rgba(244, 237, 226, .08); }
.btn-wa { background: var(--mocha); color: var(--cream); }
.btn-wa .i { color: var(--wa); width: 1.3em; height: 1.3em; }
.btn-wa:hover { background: var(--mocha-deep); box-shadow: 0 10px 24px -10px rgba(51, 38, 31, .6); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 248, 243, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.scrolled .site-header { border-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mocha); }
.brand-sub { margin-top: 5px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav > a { font-size: .95rem; color: var(--text); position: relative; padding: 6px 0; }
.main-nav > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--mocha); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.main-nav > a:hover::after { transform: scaleX(1); }
.nav-cats { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

@media (max-width: 899px) {
  :root { --header-h: 68px; }
  .brand-name { font-size: 1.45rem; }
  .header-actions { margin-left: auto; }
  .header-row { gap: 12px; }
  .site-header .brand { min-width: 0; }
  .header-actions { flex-shrink: 0; }
  .menu-btn {
    display: grid; place-content: center; gap: 6px;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--cream); cursor: pointer;
  }
  .menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--mocha); transition: transform .3s var(--ease); }
  .menu-btn span:last-child { width: 12px; margin-left: 6px; }
  .menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { width: 18px; margin-left: 0; transform: translateY(-3.75px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 8px 16px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(73, 55, 45, .35);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav > a { font-family: var(--serif); font-size: 1.6rem; color: var(--mocha); padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav > a::after { display: none; }
  .nav-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cats a { display: flex; align-items: center; min-height: 44px; max-width: 100%; padding: 8px 14px; border-radius: 999px; background: var(--beige); font-size: .9rem; overflow-wrap: anywhere; }
}

/* ---------- header WhatsApp button ---------- */
.header-wa:hover { background: var(--gold); color: var(--mocha); transform: translateY(-1px); box-shadow: 0 5px 14px rgba(73, 55, 45, .1); }
.header-wa:hover .i { color: #1FA855; }
.main-nav > a:hover { color: var(--gold-deep); }
.main-nav > a::after { background: var(--gold); }
@media (max-width: 639px) {
  .header-row { gap: 8px; }
  .site-header .brand-name { font-size: clamp(1.15rem, 6.5vw, 1.45rem); letter-spacing: .035em; }
  .header-actions { gap: 6px; }
  .header-wa { width: 46px; min-height: 46px; padding: 0; border-radius: 50%; order: 2; }
  .header-wa span { display: none; }
  .header-wa .i { width: 22px; height: 22px; }
  .menu-btn { order: 1; }
}

/* ---------- hero (open editorial layout) ---------- */
.hero { display: grid; gap: 36px; padding-top: 28px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-copy .eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .26em; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.95rem, 12.5vw, 4.5rem);
  font-weight: 500; line-height: .97; letter-spacing: -.015em;
  max-width: 9.2em; text-wrap: balance;
}
.hero-copy .lead { margin-top: 22px; font-size: 1rem; line-height: 1.6; color: var(--mocha); max-width: 23em; }
.hero-actions { margin-top: 28px; width: 100%; gap: 10px 13px; }
.hero-mobile-photo { display: none; }
.btn-hero { min-height: 54px; padding: 0 1.55em; border-radius: 10px; font-weight: 600; transition: transform .18s var(--ease), background .18s, color .18s, border-color .18s, box-shadow .18s; }
.btn-hero .i { width: 1.25em; height: 1.25em; }
.btn-hero.btn-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--mocha); transform: translateY(-2px); box-shadow: 0 5px 14px rgba(73, 55, 45, .1); }
.btn-hero.btn-ghost { background: var(--cream); }
.btn-hero.btn-ghost .i { color: #1FA855; }
.btn-hero.btn-ghost:hover { background: var(--beige); border-color: var(--mocha); transform: translateY(-2px); }

.hero-facts {
  list-style: none; margin: 24px 0 0; padding: 18px 0 0; width: 100%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0;
  border-top: 1px solid var(--taupe);
  font-size: .875rem; color: var(--mocha);
}
.hero-facts li { padding: 0 18px; border-left: 1px solid var(--taupe); line-height: 21px; }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts strong { font-weight: 600; }

.price-note-chip {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 22px; border-radius: 14px;
  background: var(--beige); color: var(--mocha); font-size: .875rem;
  transition: transform .18s var(--ease), background .18s;
}
.price-note-chip .i { width: 23px; height: 23px; color: #1FA855; }
.price-note-chip:hover { transform: translateY(-1px); background: var(--beige-deep); }

/* layered image composition: arch + two offset frames */
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hv { position: relative; display: block; overflow: hidden; background: var(--beige); box-shadow: 0 10px 28px rgba(73, 55, 45, .1); }
.hv img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.hv:hover img { transform: scale(1.03); }
.hv-main { grid-column: 1 / -1; aspect-ratio: 335 / 478; border-radius: 999px 999px 0 0; box-shadow: 0 12px 36px rgba(73, 55, 45, .1); }
.hv-top, .hv-bottom { aspect-ratio: 162 / 188; }
.hv-bottom { outline: 3px solid var(--cream); outline-offset: -3px; }

/* quick-browse collection rail */
.collection-rail { margin-top: 40px; }
.collection-rail .eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .26em; display: block; margin-bottom: 14px; }
.collection-rail ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--taupe); border-bottom: 1px solid var(--taupe); }
/* Dividers: each breakpoint resets every cell with :nth-child(n), then draws its own lines */
.collection-rail li { --pl: 14px; border: 0 solid rgba(183, 155, 124, .5); }
.collection-rail li:nth-child(n + 3) { border-top-width: 1px; }
.collection-rail li:nth-child(even) { border-left-width: 1px; }
.collection-rail li:nth-child(odd) { --pl: 2px; }
.collection-rail a {
  display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 8px 12px var(--pl);
  font-family: var(--serif); font-size: 1rem; font-weight: 600; line-height: 1.15; color: var(--mocha);
  transition: color .16s;
}
.cat-icon { flex: none; width: 30px; height: 30px; color: var(--gold); transition: transform .18s var(--ease); }
.collection-rail a:hover { color: var(--gold-deep); }
.collection-rail a:hover .cat-icon { transform: translateY(-2px); }

@media (min-width: 640px) {
  .hero h1 { font-size: clamp(3.4rem, 7.8vw, 3.75rem); }
  .hero-copy .lead { font-size: 1.125rem; line-height: 1.67; }
  .hero-actions { width: auto; }
  .hero-visual { grid-template-columns: 5fr 3fr; grid-template-rows: auto auto; gap: 16px 0; align-items: start; }
  .hv-main { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: 430 / 610; }
  .hv-top { grid-column: 2; grid-row: 1; margin-top: 40px; }
  .hv-bottom { grid-column: 2; grid-row: 2; margin-left: -16px; outline-width: 4px; outline-offset: -4px; z-index: 1; }
  .hero-visual-1 { grid-template-columns: 1fr; }
  .collection-rail { margin-top: 48px; }
  .collection-rail ul { grid-template-columns: repeat(3, 1fr); }
  .collection-rail li:nth-child(n) { --pl: 16px; border-width: 0 0 0 1px; }
  .collection-rail li:nth-child(n + 4) { border-top-width: 1px; }
  .collection-rail li:nth-child(3n + 1) { --pl: 4px; border-left-width: 0; }
  .cat-icon { width: 34px; height: 34px; }
}
@media (width < 640px) {
  .hero-actions .btn { width: 100%; }
  .hero-actions .hero-whatsapp { display: none; }
  .hero-mobile-photo { display: block; width: 100%; aspect-ratio: 4 / 3; margin-top: 16px; overflow: hidden; border-radius: 10px; background: #29151a; }
  .hero-mobile-photo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
  .price-note-chip { width: 100%; font-size: .8125rem; padding: 0 18px; }
  .hero-facts li { padding: 0 14px; }
}

@media (min-width: 1024px) {
  /* The visual breaks out past the right gutter, as in the concept */
  .hero {
    --bleed: clamp(0px, calc(max(28px, (100vw - 1292px) / 2) - 21px), 54px);
    grid-template-columns: minmax(380px, 470px) 1fr; column-gap: 36px; align-items: center;
    padding-top: 12px;
  }
  .hero h1 { font-size: clamp(3.75rem, 5vw, 4.5rem); line-height: .97; }
  .hero-visual {
    display: block; position: relative; margin-right: calc(-1 * var(--bleed));
    aspect-ratio: 840 / 696; max-height: calc(100dvh - var(--header-h) - 150px); min-height: 520px;
  }
  .hv { position: absolute; margin: 0; }
  .hv-main { left: 0; top: 0; width: 56.8%; height: 97.6%; aspect-ratio: auto; border-radius: 999px 999px 0 0; }
  .hv-top { left: 60.4%; top: 6.3%; width: 39.6%; height: 51.9%; aspect-ratio: auto; }
  .hv-bottom { left: 56.9%; top: 50.3%; width: 36.8%; height: 49.7%; aspect-ratio: auto; z-index: 1; }
  .hero-visual-1 .hv-main { left: 20%; }
  .collection-rail { margin-top: 20px; }
  .collection-rail ul { display: flex; }
  .collection-rail li:nth-child(n) { flex: 1 1 auto; --pl: 16px; border-width: 0 0 0 1px; }
  .collection-rail li:first-child { --pl: 4px; border-left-width: 0; }
  .collection-rail a { justify-content: center; padding-top: 10px; padding-bottom: 10px; padding-right: 16px; min-height: 66px; font-size: 1.05rem; }
  .collection-rail li:first-child a { justify-content: flex-start; }
  .collection-rail li:last-child a { justify-content: flex-end; padding-right: 2px; }
}

/* ---------- sections ---------- */
.section { padding-top: 72px; }
.section-tight { padding-top: 20px; padding-bottom: 24px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head .eyebrow { margin-bottom: 8px; }
@media (max-width: 639px) { .section { padding-top: 56px; } }

/* categories */
.cat-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 42%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none;
}
.cat-rail::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .cat-rail { grid-auto-columns: 28%; margin: 0 -28px; padding: 0 28px 8px; } }
@media (min-width: 1000px) { .cat-rail { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 0; padding: 0; } }
.cat-tile { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.cat-img {
  width: 100%; aspect-ratio: 4 / 5; margin-bottom: 12px;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden; background: var(--beige);
  outline: 1px solid var(--line); outline-offset: -1px;
}
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-tile:hover .cat-img img { transform: scale(1.06); }
.cat-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--mocha); line-height: 1.15; }
.cat-count { font-size: .8rem; color: var(--muted); }

/* product grid + cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: #29151a; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--cream); color: var(--mocha); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.card-body { padding-top: 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-body .eyebrow { font-size: .66rem; }
.card h3 { font-size: 1.22rem; line-height: 1.15; }
.card h3 a:hover { color: var(--gold-deep); }
.card-meta { font-size: .84rem; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price-note { font-size: .78rem; color: var(--muted); font-style: italic; }
.wa-mini {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px; border-radius: 999px;
  background: var(--mocha); color: var(--cream); font-size: .82rem; font-weight: 500;
  transition: background .2s, transform .2s var(--ease);
}
.wa-mini .i { color: var(--wa); }
.wa-mini:hover { background: var(--mocha-deep); }
.wa-mini:active { transform: scale(.95); }
@media (max-width: 420px) {
  .price-note { display: none; }
  .wa-mini { width: 100%; justify-content: center; }
}

/* how it works */
.steps { display: grid; gap: 32px; background: var(--beige); border-radius: var(--radius); padding: 36px 24px; }
.steps-intro { display: flex; flex-direction: column; gap: 12px; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.step-list li { display: flex; gap: 18px; align-items: start; }
.step-list li > span { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--gold); line-height: 1; min-width: 44px; }
.step-list h3 { font-size: 1.35rem; margin-bottom: 4px; }
.step-list p { color: var(--muted); font-size: .95rem; }
@media (min-width: 900px) { .steps { grid-template-columns: 1fr 1.3fr; padding: 56px; gap: 56px; align-items: center; } }

/* visit band */
.visit-band { margin-top: 88px; background: var(--mocha); color: var(--beige); }
.visit-inner { display: grid; gap: 28px; padding-top: 56px; padding-bottom: 56px; }
.visit-band h2 { color: var(--beige); margin: 8px 0 12px; }
.visit-band .soft { color: var(--taupe); }
.eyebrow-light { color: var(--gold); }
@media (min-width: 900px) { .visit-inner { grid-template-columns: 1fr auto; align-items: center; padding-top: 72px; padding-bottom: 72px; } }

/* ---------- collections page ---------- */
.page-head { padding-top: 28px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--muted); }
.crumbs a:hover { color: var(--mocha); }
.crumbs span:last-child { color: var(--text); }
.filter-bar {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgba(251, 248, 243, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  margin-top: 16px;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--cream);
  font-size: .9rem; transition: background .2s, border-color .2s, color .2s;
}
.chip small { font-size: .75rem; color: var(--muted); }
.chip:hover { border-color: var(--taupe); }
.chip.on { background: var(--mocha); border-color: var(--mocha); color: var(--cream); }
.chip.on small { color: var(--taupe); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 24px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.search:focus-within { border-color: var(--taupe); box-shadow: 0 0 0 3px rgba(210, 177, 111, .25); }
.search .i { color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 16px; }
.toolbar select { min-height: 48px; padding: 0 40px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2349372D' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: 16px; }
.count { margin-left: auto; font-size: .9rem; }

/* ---------- item page ---------- */
.item-page { padding-top: 20px; }
.item-grid { display: grid; gap: 28px; margin-top: 16px; }
@media (min-width: 900px) { .item-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } .gallery { position: sticky; top: calc(var(--header-h) + 20px); } }
.gallery-main { position:relative; display:block; width:100%; padding:0; border:0; cursor:zoom-in; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #29151a; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-hint { position:absolute; right:12px; bottom:12px; padding:6px 10px; border-radius:20px; background:var(--cream); color:var(--mocha); font-size:.75rem; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb { flex: none; width: 76px; height: 76px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--beige); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; background:#29151a; }
.thumb.on { border-color: var(--mocha); }
.photo-viewer { border:0; border-radius:16px; padding:16px; background:#21181b; color:#fff; width:min(1000px, 96vw); max-width:96vw; max-height:96dvh; }
.photo-viewer::backdrop { background:rgba(18,10,12,.88); }
.photo-viewer .btn { background:transparent; color:#fffaf3; border:1px solid rgba(255,250,243,.6); }
.photo-viewer > img { display:block; margin:auto; max-width:100%; width:auto; height:auto; max-height:calc(96dvh - 170px); object-fit:contain; }
.photo-viewer-tools,.photo-viewer-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.photo-viewer-tools { margin-bottom:12px; }
.photo-viewer-nav { margin-top:12px; }
body:has(.photo-viewer[open]) { overflow:hidden; }
.import-preview { padding:12px 20px; background:#49372d; color:#fffaf3; text-align:center; font-size:.85rem; }
.import-preview a { text-decoration:underline; }
@media(min-width:1000px) { .cat-rail { grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); } }
.item-info { display: flex; flex-direction: column; gap: 14px; }
.item-info h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.code { font-size: .88rem; color: var(--muted); letter-spacing: .04em; }
.price-box { display: flex; align-items: center; gap: 14px; background: var(--beige); border-radius: var(--radius-sm); padding: 16px 18px; border-left: 3px solid var(--gold); }
.price-box strong { display: block; font-family: var(--serif); font-size: 1.45rem; color: var(--mocha); line-height: 1.1; }
.price-box span { font-size: .85rem; color: var(--muted); }
.desc { font-size: 1.02rem; color: #574539; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.specs div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 500; color: var(--mocha); }
.enquire { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.preview summary { cursor: pointer; font-size: .88rem; color: var(--gold-deep); font-weight: 500; }
.preview pre { margin: 10px 0 0; padding: 14px 16px; background: #E6F4EA; border-radius: 12px 12px 12px 2px; white-space: pre-wrap; word-break: break-word; font: .86rem/1.5 var(--sans); color: #1F2D24; }
.sticky-enquire { display: none; }
@media (max-width: 899px) {
  [data-page="item"] .wa-float { display: none; }
  [data-page="item"] main { padding-bottom: 84px; }
  .sticky-enquire {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(251, 248, 243, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .sticky-enquire div { flex: 1; min-width: 0; line-height: 1.2; }
  .sticky-enquire strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--mocha); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-enquire span { font-size: .78rem; color: var(--muted); }
}

/* ---------- misc ---------- */
.empty { padding: 48px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.empty-page { min-height: 50vh; justify-content: center; }
.loading { min-height: 60vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--mocha); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mocha); color: var(--wa);
  box-shadow: 0 12px 28px -8px rgba(51, 38, 31, .55);
  transition: transform .25s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }

/* footer */
.site-footer { background: var(--beige); margin-top: 88px; padding-top: 56px; border-top: 1px solid var(--line); }
.visit-band + .site-footer, main:has(.visit-band) + .site-footer { margin-top: 0; }
.footer-grid { display: grid; gap: 32px; }
.footer-grid h4 { margin: 0 0 10px; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.footer-grid p { margin-bottom: 6px; }
.brand-footer { margin-bottom: 16px; }
.footer-note { max-width: 38ch; font-size: .92rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); margin-top: 40px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* entrance */
.reveal { animation: rise .7s var(--ease) both; }
.hero-visual.reveal { animation-delay: .08s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
