:root {
  --ink: #f8f2ed;
  --muted: #b6a79f;
  --paper: #1c0f09;
  --surface: #271710;
  --surface-deep: #160c08;
  --line: #3a2418;
  --accent: #ef815a;
  --accent-dark: #d9633d;
  --whatsapp: #237a50;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, a { font: inherit; }
a { color: inherit; }

.site-header {
  min-height: 76px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 760; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); font-size: 13px; letter-spacing: .08em; }
.brand-mark svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-contact { padding: 10px 15px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; }
.header-contact:hover { color: var(--paper); background: var(--ink); }

main { width: min(1240px, 92vw); margin: 0 auto; }
.intro { min-height: 430px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 7vw; align-items: end; padding: 84px 0 68px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: .78rem; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.accent { color: var(--accent-dark); }
h1, h2 { margin: 0; letter-spacing: -.045em; line-height: 1.03; }
h1 { max-width: 860px; font-size: clamp(3rem, 6.5vw, 6.6rem); font-weight: 650; }
h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 620; }
.intro-copy > p { margin: 0 0 30px; font-size: 1.1rem; }
.purchase-notes { margin: 0; display: grid; gap: 14px; }
.purchase-notes div { display: grid; grid-template-columns: 82px 1fr; padding-top: 14px; border-top: 1px solid var(--line); }
.purchase-notes dt { color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; }
.purchase-notes dd { margin: 0; }

.catalog-section { padding: 76px 0 18px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading > p { max-width: 320px; margin: 0; color: var(--muted); text-align: right; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(23,37,42,.10); }
.product-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.product-image { position: relative; aspect-ratio: 4 / 3; background: var(--surface-deep); overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .35s ease; }
.product-card:hover img { transform: scale(1.025); }
.priority-badge { position: absolute; top: 12px; left: 12px; padding: 7px 10px; color: #fff8ed; background: var(--accent-dark); border-radius: 999px; font-size: .75rem; font-weight: 800; }
.product-body { padding: 18px 19px 20px; }
.product-category { margin: 0 0 8px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 760; }
.product-title { margin: 0 0 12px; font-size: 1.38rem; line-height: 1.18; font-weight: 650; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .92rem; }
.product-price { color: var(--ink); font-weight: 800; }

footer { margin-top: 80px; padding: 32px 4vw; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--ink); background: var(--surface-deep); border-top: 1px solid var(--line); }
footer p { margin: 0; }
footer a { font-weight: 750; }

dialog { width: min(1060px, 94vw); max-height: 94vh; padding: 0; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--surface); box-shadow: 0 26px 90px rgba(0,0,0,.55); overflow: auto; }
dialog::backdrop { background: rgba(11,19,22,.72); backdrop-filter: blur(5px); }
.dialog-close { position: fixed; z-index: 4; margin: 14px 0 0 14px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: rgba(39,23,16,.94); font-size: 2rem; line-height: 1; cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: minmax(420px, 1.05fr) .95fr; min-height: 680px; }
.gallery { padding: 20px; background: var(--surface-deep); }
.gallery-stage { width: min(100%, 470px); height: min(72vh, 650px); margin: 0 auto; display: grid; place-items: center; border-radius: 14px; overflow: hidden; background: #110906; }
.gallery-stage img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 9px; margin-top: 12px; padding-bottom: 3px; overflow-x: auto; }
.thumb { flex: 0 0 66px; width: 66px; height: 88px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: #110906; cursor: pointer; }
.thumb.active { border-color: var(--accent-dark); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.dialog-copy { padding: 70px 48px 42px; display: flex; flex-direction: column; align-items: start; }
.dialog-copy h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); }
.dialog-price { margin: 24px 0 20px; font-size: 1.35rem; font-weight: 850; }
.dialog-description { margin: 0; color: var(--muted); font-size: 1.04rem; white-space: pre-line; }
.dialog-details { width: 100%; margin: 30px 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); }
.dialog-details li { margin: 8px 0; }
.whatsapp-button { margin-top: auto; width: 100%; padding: 15px 20px; border-radius: 12px; color: white; background: var(--whatsapp); text-align: center; text-decoration: none; font-weight: 800; }
.whatsapp-button:hover { background: #0f5031; }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; min-height: auto; padding: 62px 0 48px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-layout { grid-template-columns: 1fr; }
  .gallery-stage { width: min(100%, 520px); height: min(63vh, 620px); min-height: 420px; }
  .dialog-copy { padding: 42px 28px 34px; }
}

@media (max-width: 620px) {
  .site-header { padding: 0 20px; min-height: 68px; }
  .brand > span:last-child { display: none; }
  .header-contact { font-size: .82rem; padding: 9px 12px; }
  main { width: min(100% - 32px, 1240px); }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; text-align: left; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { aspect-ratio: 1 / .78; }
  footer { align-items: start; flex-direction: column; }
  dialog { width: 100vw; max-width: none; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .gallery { padding: 12px; }
  .gallery-stage { width: 100%; height: 58vh; min-height: 360px; }
  .dialog-close { margin: 10px 0 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
