/* Layout: quiet luxury catalogue. Sticky bar (menu | wordmark | search, theme),
   two-image hero, edge-to-edge product grid, full-screen product page. */
:root {
  --bg: #FFFFFF;
  --panel: #F2EDE4;      /* crudo */
  --sand: #E6DCCD;       /* beige, image placeholder */
  --ink: #141414;
  --muted: #6B5E50;      /* taupe */
  --line: #E4DCD0;
  --on-ink: #FFFFFF;
  --scrim: rgba(20, 20, 20, 0.35);
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Jost", "Futura", "Avenir Next", "Helvetica Neue", sans-serif;
  --bar-h: 60px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121110;
  --panel: #1C1A18;
  --sand: #2A2622;
  --ink: #F2EDE4;
  --muted: #B3A694;
  --line: #2F2B27;
  --on-ink: #121110;
  --scrim: rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; transition: background-color .25s, color .25s; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 30; height: var(--bar-h); padding-inline: 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar-side { display: flex; gap: 18px; align-items: center; }
.bar-side.end { justify-content: flex-end; }
.brand { font-family: var(--display); font-size: 19px; letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none; padding-left: 0.3em; white-space: nowrap; }
.brand.small { font-size: 13px; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; justify-content: center; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.icon-btn .label { display: inline; }
#themeBtn .i-sun { display: none; }
:root[data-theme="dark"] #themeBtn .i-sun { display: block; }
:root[data-theme="dark"] #themeBtn .i-moon { display: none; }
.text-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }

.search-panel { position: absolute; left: 0; right: 0; top: var(--bar-h); background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 20px; display: flex; gap: 16px; align-items: center; }
.search-panel input { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 18px; padding: 10px 0; outline: none; }
.search-panel input::placeholder { color: var(--muted); }

/* menu drawer */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; }
.menu { position: fixed; top: 0; bottom: 0; left: 0; width: min(380px, 88vw); z-index: 41; background: var(--bg); padding: 0 28px 28px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; padding-top: env(safe-area-inset-top, 0px); }
.menu-head { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.menu-list, .menu-small { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.menu-list button { font-family: var(--display); font-size: 26px; line-height: 1.2; padding: 8px 0; text-align: left; width: 100%; }
.menu-list button:hover { font-style: italic; }
.menu-list .group { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); padding: 18px 0 6px; }
.menu-small a { display: block; padding: 8px 0; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; }
.menu-foot { margin: auto 0 0; font-size: 13px; color: var(--muted); }

/* hero */
.hero { position: relative; background: #1A1715; }
.hero-img { width: 100%; height: min(80vh, 860px); min-height: 420px; max-width: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-copy { position: absolute; inset: 0; padding: 48px clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px; text-align: left; color: #FFFFFF; background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 70%), linear-gradient(rgba(0,0,0,0) 55%, rgba(0,0,0,0.4)); }
@media (max-width: 560px) {
  .hero-copy { align-items: center; text-align: center; background: linear-gradient(rgba(0,0,0,0) 35%, rgba(0,0,0,0.65)); }
}
.hero-copy .eyebrow { color: #F2EDE4; }
.hero-copy h1 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 44px); line-height: 1.12; margin: 0; text-wrap: balance; }
.text-link { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* catalogue */
.catalog { padding-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding: 18px 20px; position: sticky; top: var(--bar-h); background: var(--bg); z-index: 20; border-bottom: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tabs button { min-height: 36px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; }
.tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.count { margin-left: auto; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.query-note { padding: 14px 20px 0; margin: 0; font-size: 13px; color: var(--muted); }
.query-note button { text-decoration: underline; font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding-top: 2px; }
.card { display: flex; flex-direction: column; text-align: left; background: var(--bg); }
.card .ph { position: relative; aspect-ratio: 3 / 4; max-width: 100%; overflow: hidden; background: var(--sand); }
.card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease; }
.card .ph img.alt { opacity: 0; }
.card:hover .ph img.alt, .card:focus-visible .ph img.alt { opacity: 1; }
.card .tag { position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; background: var(--bg); color: var(--ink); padding: 4px 8px; }
.card .tag.sold { background: var(--ink); color: var(--on-ink); }
.card .meta { padding: 12px 14px 26px; display: flex; flex-direction: column; gap: 2px; }
.card .name { font-size: 13px; letter-spacing: 0.06em; }
.card .sub { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.card .price { font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.card.is-sold img { filter: grayscale(.7); opacity: .55; }
.empty { grid-column: 1 / -1; padding: 64px 20px; text-align: center; color: var(--muted); }

/* how to buy */
.how { background: var(--panel); padding: 64px 20px; display: grid; gap: 20px; justify-items: center; text-align: center; margin-top: 48px; }
.how h2 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0; }
.how-lead { margin: 0; color: var(--muted); max-width: 52ch; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1000px; width: 100%; text-align: left; }
.steps li { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--ink); padding-top: 16px; }
.steps .n { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps b { font-weight: 500; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.foot { padding: 32px 20px 48px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
.foot a { text-decoration: none; }
.brand-foot { font-family: var(--display); letter-spacing: 0.3em; color: var(--ink); font-size: 13px; }

/* full-screen product page */
.pdp { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; padding-top: env(safe-area-inset-top, 0px); }
.pdp-bar { position: sticky; top: 0; z-index: 2; height: var(--bar-h); padding-inline: 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--bg); border-bottom: 1px solid var(--line); }
.pdp-pos { justify-self: end; font-size: 11px; letter-spacing: 0.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.pdp-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
/* photo carousel: one photo at a time, arrows + swipe */
.pdp-gallery { position: relative; align-self: start; position: sticky; top: var(--bar-h); background: var(--sand); }
.pdp-media { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; height: calc(100vh - var(--bar-h)); max-height: 1100px; }
.pdp-media::-webkit-scrollbar { display: none; }
.pdp-media { cursor: grab; user-select: none; }
.pdp-media.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; margin: 0; overflow: hidden; scroll-snap-align: start; }
/* blurred fill behind, whole photo in front: any aspect ratio fits without cropping */
.slide-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(28px) saturate(.9); opacity: .55; transform: scale(1.05); pointer-events: none; }
.slide-img { position: relative; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ia-cap { position: absolute; left: 16px; bottom: 48px; max-width: calc(100% - 32px); font-size: 11px; letter-spacing: 0.06em; color: #141414; background: rgba(255,255,255,0.86); padding: 6px 10px; }
.ia-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); border-left: 0; padding: 10px 12px; background: var(--panel); }
.card .ia-tag { position: absolute; right: 10px; bottom: 10px; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: #141414; background: rgba(255,255,255,0.8); padding: 3px 6px; transition: opacity .3s; }
.card:hover .ia-tag, .card:focus-visible .ia-tag { opacity: 0; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; background: rgba(255,255,255,0.82); color: #141414; border-radius: 50%; transition: opacity .2s; }
.gal-arrow.prev { left: 16px; }
.gal-arrow.next { right: 16px; }
.gal-arrow:disabled { opacity: 0; pointer-events: none; }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
.gal-dots button { width: 24px; height: 24px; display: grid; place-items: center; }
.gal-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); box-shadow: 0 0 0 1px rgba(0,0,0,0.15); }
.gal-dots button[aria-current="true"]::before { background: #FFFFFF; transform: scale(1.3); }
.pdp-info { position: sticky; top: var(--bar-h); align-self: start; padding: 48px clamp(20px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pdp-info h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 0; text-wrap: balance; }
.pdp-price { margin: 0; font-size: 17px; font-variant-numeric: tabular-nums; }
.pdp-desc { margin: 0; max-width: 46ch; }
.specs { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 24px; margin: 0; padding: 18px 0; border-block: 1px solid var(--line); font-size: 14px; }
.specs dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.specs dd { margin: 0; }
.buy { display: flex; align-items: center; justify-content: center; min-height: 52px; background: var(--ink); color: var(--on-ink); text-decoration: none; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.buy[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.note { margin: 0; font-size: 13px; color: var(--muted); }
.pdp-how { background: var(--panel); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pdp-how p { margin: 0; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .pdp-body { grid-template-columns: minmax(0, 1fr); }
  .pdp-gallery { position: relative; top: auto; }
  .pdp-media { height: auto; aspect-ratio: 3 / 4; max-height: 80vh; }
  .gal-arrow { width: 40px; height: 40px; }
  .gal-arrow.prev { left: 10px; }
  .gal-arrow.next { right: 10px; }
  .pdp-info { position: static; padding: 28px 20px 48px; }
}
@media (max-width: 560px) {
  .icon-btn .label { display: none; }
  .bar { padding-inline: 8px; }
  .brand { font-size: 14px; letter-spacing: 0.22em; }
  .hero-img { height: 72vh; object-position: 52% 50%; }
  .count { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

#catalogo, #comprar { scroll-margin-top: var(--bar-h); }
.pdp-bar .text-btn { justify-self: start; }
.foot .credit { text-transform: none; letter-spacing: 0.04em; font-size: 11px; }

/* product options: color swatches, size select, size guide */
.opts { display: flex; flex-direction: column; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.opt { display: flex; flex-direction: column; gap: 10px; }
.opt-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.opt-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.opt-label b { font-weight: 400; color: var(--ink); letter-spacing: 0.08em; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 50%; padding: 0; background: var(--sw); border: 1px solid var(--line); box-shadow: inset 0 0 0 3px var(--bg); position: relative; }
.swatch[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--bg), 0 0 0 1px var(--ink); }
.swatch.sold::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: var(--muted); transform: rotate(-45deg); }
.select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 46px; padding: 0 40px 0 14px; font: inherit; font-size: 14px; color: var(--ink); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236B5E50' stroke-width='1.3' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid var(--line); border-radius: 0; cursor: pointer; }
.select:disabled { cursor: default; opacity: 1; color: var(--ink); }
.select.small { width: auto; min-height: 36px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; padding-left: 12px; }
.link-btn { font-size: 12px; letter-spacing: 0.06em; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); min-height: 32px; }
.guide { background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.guide-title { margin: 0; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.guide-scroll { overflow-x: auto; }
.guide table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.guide th, .guide td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.guide thead th { font-weight: 500; }
.guide tbody th { text-align: left; font-weight: 400; color: var(--muted); }
.guide-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.guide-src { font-size: 12px; color: var(--muted); }
.brand-filter { display: inline-flex; }
.foot .mail { text-transform: none; letter-spacing: 0.06em; }
.menu-small a[href^="mailto"] { text-transform: none; letter-spacing: 0.04em; }
