/* Walk Store · public site */
:root {
  --paper: #f7f2ea;
  --paper-2: #efe7d9;
  --ink: #1d1812;
  --muted: #6b6155;
  --line: #e2d8c6;
  --accent: #c9973f;
  --accent-ink: #7a5216;
  --danger: #a33a2a;
  --ok: #2f6b43;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(29, 24, 18, .08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; }
legend { font-family: var(--serif); font-size: 1.25rem; margin-bottom: .75rem; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 680px; }
.narrow-wide { max-width: 1000px; }
.centered { text-align: center; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }   /* bot trap: never shown */
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 .6rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.muted, .help { color: var(--muted); }
.small { font-size: .85rem; }
.empty { color: var(--muted); padding: 2rem 0; }

/* buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 46px; padding: .7rem 1.4rem; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #3a3128; border-color: #3a3128; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { min-height: 38px; padding: .45rem 1rem; font-size: .92rem; }
.btn-block { display: flex; width: 100%; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.text-link { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); cursor: pointer; text-decoration: underline; }
.text-button.danger { color: var(--danger); }

/* header and footer */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
.brand { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.main-nav { display: flex; gap: clamp(12px, 2.5vw, 28px); align-items: center; flex-wrap: wrap; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bag-link { display: inline-flex; align-items: center; gap: 8px; }
.bag-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #1d1812; font-size: .8rem; font-weight: 700; }
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); padding-block: 28px; margin-top: 48px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.footer-row nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-row a { color: var(--muted); }

/* flash messages */
.flash-stack { padding-top: 16px; }
.flash { margin: 0 0 10px; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.flash-ok { border-color: #b9d6c1; background: #eef7f1; color: var(--ok); }
.flash-error { border-color: #e8c0b8; background: #fbeeea; color: var(--danger); }
main > .flash-stack:first-child, main > .flash:first-child { margin-top: 16px; }
main > .flash { max-width: 1200px; margin-inline: auto; }

/* ================= HERO: walk through the store (canvas) ================= */
.hero { position: relative; height: 100vh; height: 100svh; background: #0c0907; }
.hero--static { height: auto; }
.hero--static .stage { position: relative; height: 80vh; min-height: 520px; }
.stage {
  position: relative; height: 100%; overflow: hidden;
  background: #0c0907; cursor: grab; user-select: none; touch-action: none;
  color: #f6f1e8;
}
.stage:focus-visible { outline: 2px solid #e0b874; outline-offset: -4px; }
.stage.drag { cursor: grabbing; }
.stage.gallery { touch-action: pan-y; }   /* on the doors page a swipe scrolls the page; inside the store it walks */
.room { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0,0,0,.3) 100%); }
.hint { position: absolute; top: 14px; left: 0; right: 0; width: max-content; max-width: calc(100% - 32px); margin: 0 auto; text-align: center; font-size: .85rem; z-index: 4; pointer-events: none; letter-spacing: .03em; padding: 6px 16px; border-radius: 999px; background: rgba(13,10,8,.62); color: #f6f1e8; }
.stage:not(.gallery) .copy { display: none; }   /* the title belongs to the doors page; inside the store it would block the view */
.map-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid #e0b874;
  background: rgba(13,10,8,.7); color: #f6f1e8; font: inherit; font-size: .9rem; cursor: pointer;
}
.map-btn:hover, .map-btn:focus-visible, .map-btn[aria-pressed="true"] { background: #e0b874; color: #14110b; outline: none; }
.walk-ctrl {
  position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%); z-index: 5;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px);
}
.walk-ctrl button {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(224,184,116,.7);
  background: rgba(13,10,8,.75); color: #f6f1e8; font: inherit; font-size: .9rem; cursor: pointer; touch-action: manipulation;
}
.walk-ctrl button:hover, .walk-ctrl button:focus-visible { background: #e0b874; color: #14110b; outline: none; }
.stage.map-open .walk-ctrl, .stage.map-open .copy, .stage.map-open .caption { opacity: 0; pointer-events: none; }
.copy { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; z-index: 4; pointer-events: none; }
.copy::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(10,7,5,.6) 0%, rgba(10,7,5,.25) 45%, transparent 70%); }
.copy .eyebrow { color: #e0b874; }
.copy h1 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.05; text-shadow: 0 4px 30px rgba(0,0,0,.7); }
.copy .sub { color: #f6f1e8; margin: 16px auto 26px; max-width: 460px; font-size: 1.02rem; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.cta { pointer-events: auto; display: inline-block; width: max-content; margin: 0 auto; padding: 14px 30px; border: 1px solid #e0b874; border-radius: 999px; color: #f6f1e8; text-decoration: none; background: rgba(0,0,0,.25); }
.cta:hover, .cta:focus-visible { background: #e0b874; color: #14110b; outline: none; }
.mapview {
  position: absolute; inset: 0; z-index: 7; opacity: 0; pointer-events: none; transition: opacity .45s;
  background: #2b1f16; cursor: pointer;
}
.mapview canvas { width: 100%; height: 100%; display: block; }
.stage.map-open .mapview { opacity: 1; pointer-events: auto; }
.map-streets {
  position: absolute; top: 112px; left: 16px; z-index: 8; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 32px);
  opacity: 0; pointer-events: none; transition: opacity .45s;
}
.stage.map-open .map-streets { opacity: 1; pointer-events: auto; }
.map-streets button {
  min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid #e0b874;
  background: rgba(13,10,8,.8); color: #f6f1e8; font: inherit; font-size: .88rem; cursor: pointer;
}
.map-streets button:hover, .map-streets button:focus-visible { background: #e0b874; color: #14110b; outline: none; }
.caption {
  position: absolute; left: 50%; bottom: 14vh; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; z-index: 5;
  display: flex; gap: 16px; align-items: center; white-space: nowrap; padding: 12px 20px; border-radius: 999px;
  background: rgba(13,10,8,.85); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px);
  transition: opacity .35s, transform .35s; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis;
}
.caption.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.caption .price { color: #e0b874; font-weight: 600; }
.caption button { background: none; border: 0; border-bottom: 1px solid #e0b874; color: #f6f1e8; font: inherit; cursor: pointer; padding: 0; }

.trust-band { background: var(--ink); color: #f6f1e8; text-align: center; padding: 16px; letter-spacing: .04em; font-size: .95rem; }
.trust-band p { margin: 0; }

/* sections */
.section-head { margin-bottom: 28px; }
.section-head.split { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cat-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 3; min-height: 220px; padding: 20px; border-radius: var(--radius); text-decoration: none; color: #fff; overflow: hidden; box-shadow: var(--shadow); isolation: isolate; }
.cat-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.78) 100%); }
.cat-card:hover .cat-img, .cat-card:focus-visible .cat-img { transform: scale(1.05); }
.cat-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cat-body { display: flex; flex-direction: column; gap: 4px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.cat-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; font-size: .9rem; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }
/* ================= Hero slideshow (behind the doors) ================= */
.hero-slides { position: absolute; inset: 0; z-index: 1; display: none; overflow: hidden; background: #120c08; }
.stage.gallery .hero-slides { display: block; }
.hero-slides .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 6s ease;
}
.hero-slides .slide.is-on { opacity: 1; transform: scale(1); }
.hero-slides::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,11,7,.74) 0%, rgba(16,11,7,.58) 40%, rgba(16,11,7,.86) 100%);
}
.slides-toggle {
  position: absolute; right: 16px; bottom: 4vh; z-index: 6; display: none; align-items: center;
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(224,184,116,.8);
  background: rgba(13,10,8,.75); color: #f6f1e8; font: inherit; font-size: .85rem; cursor: pointer;
}
.slides-toggle:hover, .slides-toggle:focus-visible { background: #e0b874; color: #14110b; outline: none; }
.stage.gallery .slides-toggle:not([hidden]) { display: inline-flex; }
.stage.map-open .slides-toggle { display: none !important; }
@media (max-width: 700px) { .slides-toggle { top: 62px; bottom: auto; right: 12px; } }
@media (prefers-reduced-motion: reduce) { .hero-slides .slide { transition: opacity .2s; transform: none; } }

@media (prefers-reduced-motion: reduce) { .cat-img { transition: none; } }
.cat-card:hover .cat-go { text-decoration: underline; }
.cat-0 { background: linear-gradient(160deg, #6d5a48, #3d3128); }
.cat-1 { background: linear-gradient(160deg, #7b8a7a, #3e4a3f); }
.cat-2 { background: linear-gradient(160deg, #9a6a4a, #553a27); }
.cat-3 { background: linear-gradient(160deg, #56657c, #2c3646); }
.cat-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.cat-desc { font-size: .95rem; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-go { font-weight: 600; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.product-card { min-width: 0; }
.product-media { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-media:hover img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .78rem; font-weight: 600; }
.badge-sale { background: var(--accent); color: #1d1812; }
.product-info { padding-top: 12px; }
.product-cat { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.product-info h3 { font-size: 1.08rem; margin: 0 0 4px; }
.product-info h3 a { color: var(--ink); text-decoration: none; }
.product-info h3 a:hover { text-decoration: underline; }
.price { font-weight: 600; margin: 0; }
.price .was { color: var(--muted); font-weight: 400; margin-right: 8px; }
.price-lg { font-size: 1.5rem; }

.about { background: var(--paper-2); padding-block: clamp(56px, 8vw, 110px); text-align: center; }
.about-inner { max-width: 760px; }
.about h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.about .lead { margin-inline: auto; }

/* listing page */
.page-head { margin-bottom: 28px; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: 84px; }
.search-form { display: grid; gap: 10px; margin-bottom: 26px; }
.filter-title { font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.cat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.cat-list a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.cat-list a:hover { background: var(--paper-2); }
.cat-list a.is-current { background: var(--ink); color: var(--paper); }
.result-note { color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.pager-info { color: var(--muted); }

/* forms */
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff; width: 100%;
  border: 1px solid #cfc3ae; border-radius: 8px; padding: .65rem .8rem; min-height: 46px;
}
textarea { min-height: 96px; }
input[type="checkbox"] { width: auto; min-height: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-ink); outline: 2px solid var(--accent); outline-offset: 1px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.field .req { color: var(--danger); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.error { color: var(--danger); margin: 0; font-size: .92rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.add-form, .qty-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.add-form label, .qty-form label { font-weight: 600; }
.add-form select, .qty-form input { width: auto; min-width: 84px; }
.qty-form input { max-width: 110px; }

/* product page */
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 20px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.gallery { display: grid; gap: 12px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.gallery-item img { width: 100%; height: auto; }
.buy-box { position: sticky; top: 90px; }
.stock { font-weight: 600; margin: 0 0 8px; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--danger); }
.description p { color: #3c342b; }
.related { margin-top: 72px; }

/* cart and checkout */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.cart-lines { list-style: none; padding: 0; margin: 0; }
.cart-line { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-thumb img { width: 104px; height: 132px; object-fit: cover; border-radius: 8px; background: var(--paper-2); }
.cart-info h2 { font-size: 1.2rem; margin: 0 0 4px; }
.cart-info h2 a { color: var(--ink); text-decoration: none; }
.line-total { font-weight: 700; margin: 0; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.summary h2 { font-size: 1.4rem; }
.summary .btn { margin: 12px 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.sum-row.total { font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.checkout-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.checkout-form .btn { margin-top: 8px; }
.note { background: var(--paper-2); padding: 12px; border-radius: 8px; }

/* modal (opened from the banner) */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(8,6,4,.78); backdrop-filter: blur(6px); }
.sheet { position: relative; display: grid; grid-template-columns: 1fr 1fr; max-width: 880px; width: 100%; max-height: calc(100svh - 40px); overflow: auto; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.sheet img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; display: block; background: var(--paper-2); }
.info { padding: 36px 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.info h2 { font-size: 2rem; margin: 0; }
.info .eyebrow { margin: 0; }
.info .price { font-size: 1.25rem; color: var(--accent-ink); }
.info .desc { color: var(--muted); }
.modal-form { display: flex; gap: 10px; flex-wrap: wrap; }
.x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 1; }
@media (max-width: 700px) {
  .sheet { grid-template-columns: 1fr; }
  .sheet img { min-height: 0; height: 52vh; }
  .info { padding: 24px 22px; }
}

/* page-level responsive */
@media (max-width: 900px) {
  .shop-layout, .product-layout, .cart-layout { grid-template-columns: 1fr; }
  .filters, .buy-box, .summary { position: static; }
  .shop-layout { gap: 24px; }
}
@media (max-width: 600px) {
  .header-row { gap: 10px; }
  .main-nav { gap: 14px; font-size: .95rem; }
  .hint { font-size: .75rem; top: 12px; }
  .copy .sub { font-size: .95rem; }
  .cart-line { grid-template-columns: 80px minmax(0, 1fr); }
  .cart-thumb img { width: 80px; height: 100px; }
  .line-total { grid-column: 2; }
}
/* ================= Phone menu: a bar at the bottom of the screen ================= */
.bottom-nav { display: none; }
@media (max-width: 700px) {
  .main-nav { display: none; }
  body { padding-bottom: 64px; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: space-around;
    background: var(--paper); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    flex: 1; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--ink); text-decoration: none; font-size: .8rem; font-weight: 600; border-radius: 10px;
  }
  .bottom-nav a:focus-visible { outline: 2px solid var(--accent-ink, #8a5a1a); outline-offset: -2px; }
  .walk-ctrl { bottom: 80px; left: 12px; right: 12px; transform: none; justify-content: space-between; }
  .walk-ctrl button { flex: 1 1 0; min-width: 0; padding: 8px 10px; font-size: .85rem; }
  .caption { bottom: 20vh; }
  .hint { top: 10px; font-size: .74rem; padding: 5px 12px; max-width: calc(100% - 24px); }
  .copy { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .copy h1 { font-size: 2.3rem; overflow-wrap: anywhere; }
  .copy .sub { font-size: .95rem; }
}

/* ================= Section controls, door row and fade (hero) ================= */
.section-bar {
  position: absolute; top: 56px; left: 16px; z-index: 8; display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; white-space: nowrap;
  color: #f6f1e8; font-size: .88rem;
}
.section-bar label { padding: 6px 10px; border-radius: 999px; background: rgba(13,10,8,.62); color: #f6f1e8; }
.section-bar select { max-width: 220px; }
.section-bar select, .section-bar button {
  min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid #e0b874;
  background: rgba(13,10,8,.8); color: #f6f1e8; font: inherit; font-size: .88rem; cursor: pointer;
}
.section-bar button:disabled { opacity: .45; cursor: default; }
.section-bar select:focus-visible, .section-bar button:focus-visible, .section-bar button:hover:not(:disabled) { background: #e0b874; color: #14110b; outline: none; }
.stage.map-open .section-bar label, .stage.map-open .section-bar select, .stage.map-open #leaveSection { display: none; }
.walk-hall {
  position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%); z-index: 5;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1px solid #e0b874;
  background: rgba(13,10,8,.8); color: #f6f1e8; font: inherit; cursor: pointer;
}
.walk-hall:hover, .walk-hall:focus-visible { background: #e0b874; color: #14110b; outline: none; }
.stage:not(.gallery) .walk-hall, .stage.map-open .walk-hall { display: none; }
.stage.gallery .section-bar label, .stage.gallery .section-bar select, .stage.gallery #leaveSection { display: none; }
.stage.gallery .walk-ctrl { display: none; }
.stage.gallery .copy { place-content: start center; padding-top: 96px; }
.stage.gallery .copy::before { display: none; }
.stage.gallery .copy .sub, .stage.gallery .cta { display: none; }
.fade {
  position: absolute; inset: 0; z-index: 9; background: #0c0907; opacity: 0; pointer-events: none; transition: opacity .35s;
}
.fade.on { opacity: 1; }
@media (max-width: 700px) {
  .section-bar { top: 62px; left: 12px; right: 12px; flex-wrap: wrap; }
  .section-bar label { display: none; }
  .section-bar select { flex: 1 1 140px; min-width: 0; }
  .walk-ctrl { bottom: 146px; }
  .caption { bottom: 28vh; }
}

/* ================= Store front: the department doors (hero) ================= */
.storefront { display: none; }
.stage.gallery .storefront {
  position: absolute; left: 0; right: 0; top: 34%; bottom: calc(4vh + 64px); z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 16px;
}
.stage.map-open .storefront { opacity: 0; pointer-events: none; }
.front-lead { margin: 0; color: #e0b874; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; font-weight: 600; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.door-list {
  list-style: none; margin: 0; padding: 8px 6px 2px; display: flex; gap: clamp(10px, 1.6vw, 22px); align-items: flex-end;
  max-width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; touch-action: pan-x; scrollbar-width: thin;
}
.door-list li { flex: 0 1 132px; min-width: 92px; scroll-snap-align: center; }
.door-list li:first-child { margin-left: auto; }
.door-list li:last-child { margin-right: auto; }
.door-card {
  --door: #8a5a1a;
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%;
  padding: 0; border: 0; background: none; color: #f6f1e8; font: inherit; cursor: pointer;
}
.door-sign {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 2.9em; padding: 4px 6px; border-radius: 6px;
  background: #f6f1e8; color: #2b1f16; font-family: Georgia, "Times New Roman", serif; font-size: clamp(.72rem, .85vw, .86rem);
  font-weight: 700; line-height: 1.2; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.45), 0 0 0 2px var(--door);
  overflow-wrap: break-word; hyphens: auto;
}
.door-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 2;
  border-radius: 60px 60px 4px 4px; background: linear-gradient(180deg, #4a3624, #1d140e);
  box-shadow: 0 18px 30px rgba(0,0,0,.55), inset 0 0 0 2px rgba(224,184,116,.4);
  perspective: 700px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease;
}
.door-inside {
  position: absolute; inset: 6px 6px 0; border-radius: 54px 54px 0 0; overflow: hidden;
  background: radial-gradient(ellipse at 50% 25%, #fff1d6 0%, #d9b98a 45%, #5a4330 100%);
}
.door-inside img { display: block; width: 100%; height: 100%; object-fit: cover; }
.leaf {
  position: absolute; top: 6px; bottom: 0; width: calc(50% - 6px);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.28)), var(--door);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.leaf-l { left: 6px; transform-origin: left center; border-radius: 54px 0 0 0; }
.leaf-r { right: 6px; transform-origin: right center; border-radius: 0 54px 0 0; }
.leaf::before {
  content: ""; position: absolute; left: 18%; right: 18%; top: 14%; height: 34%; border-radius: 30px 30px 3px 3px;
  background: linear-gradient(180deg, rgba(255,240,214,.4), rgba(255,240,214,.08)); box-shadow: inset 0 0 0 2px rgba(0,0,0,.25);
}
.leaf::after {
  content: ""; position: absolute; top: 56%; width: 4px; height: 16%; border-radius: 3px;
  background: #e0b874; box-shadow: 0 0 6px rgba(224,184,116,.7);
}
.leaf-l::after { right: 7px; }
.leaf-r::after { left: 7px; }
.door-card:hover .leaf-l, .door-card:focus-visible .leaf-l { transform: rotateY(-30deg); }
.door-card:hover .leaf-r, .door-card:focus-visible .leaf-r { transform: rotateY(30deg); }
.door-card.is-opening .leaf-l { transform: rotateY(-105deg); }
.door-card.is-opening .leaf-r { transform: rotateY(105deg); }
.door-card:hover .door-frame, .door-card:focus-visible .door-frame {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(0,0,0,.6), inset 0 0 0 2px #e0b874, 0 0 30px rgba(224,184,116,.35);
}
.door-card:focus-visible { outline: none; }
.door-card:focus-visible .door-sign { outline: 3px solid #e0b874; outline-offset: 3px; }
.door-meta { font-size: .78rem; color: rgba(246,241,232,.85); }
.dc-0 { --door: #8a5a1a; } .dc-1 { --door: #1f5c7a; } .dc-2 { --door: #3b6b2f; } .dc-3 { --door: #6b3a7a; } .dc-4 { --door: #8a2f3a; }
.dc-5 { --door: #2f6b6b; } .dc-6 { --door: #6b5a1f; } .dc-7 { --door: #3a3f8a; } .dc-8 { --door: #7a4a2a; } .dc-9 { --door: #4a6b2f; }
@media (max-width: 700px) {
  .stage.gallery .storefront { top: 230px; bottom: 148px; }
  .door-list li { flex: 0 0 108px; }
  .walk-hall { bottom: 84px; }
}
/* the categories past the tenth: one row of small links under the doors */
.more-cats { display: flex; align-items: center; gap: 10px; max-width: 100%; }
.more-cats-label { flex: 0 0 auto; color: #e0b874; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.more-cats ul {
  list-style: none; margin: 0; padding: 2px; display: flex; flex-wrap: nowrap; gap: 8px; min-width: 0;
  overflow-x: auto; touch-action: pan-x; scrollbar-width: thin;
}
.more-cats a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 8px;
  border: 1px solid rgba(224,184,116,.7); background: rgba(13,10,8,.78); color: #f6f1e8;
  font-size: .82rem; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.more-cats a:hover, .more-cats a:focus-visible { background: #e0b874; color: #14110b; outline: none; }
@media (max-width: 700px) { .more-cats-label { display: none; } }

/* ================= Shop page: one toolbar row, 4 to 6 products per row ================= */
.wrap-wide { max-width: 1440px; }
.shop-toolbar {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px; padding: 10px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2);
}
.shop-search { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin: 0; }
.shop-search input[type="search"] { width: 220px; }
.shop-search select { width: auto; }
.shop-search .btn { min-height: 46px; }
.cat-chips { flex: 1 1 auto; min-width: 0; }
.cat-chips ul {
  list-style: none; margin: 0; padding: 2px; display: flex; flex-wrap: nowrap; gap: 8px;
  overflow-x: auto; scrollbar-width: thin;
}
.cat-chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: border-color .2s, background .2s;
}
.cat-chips a:hover { border-color: var(--ink); }
.cat-chips a.is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (min-width: 1200px) { .shop-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .shop-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-search input[type="search"] { width: auto; flex: 1 1 auto; min-width: 0; }
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

@media (prefers-reduced-motion: reduce) {
  .leaf, .door-frame { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
