/* =========================================================
   Alexia Laticínios — Landing page
   Layout: editorial em faixas alternadas (creme / couro / floresta),
   seguindo a identidade do Catálogo 2026.
   ========================================================= */
:root {
  /* Cor */
  --bg: #f6f0e6;          /* creme do catálogo */
  --surface: #fffaf2;     /* cartões e campos */
  --surface-2: #efe5d4;   /* áreas de imagem */
  --ink: #2a211b;         /* texto principal */
  --muted: #6a6356;       /* texto secundário */
  --line: #ddd0bb;        /* filetes */
  --gold: #b88a3e;        /* dourado da marca */
  --gold-ink: #8b6629;    /* dourado para texto (contraste) */
  --leather: #4a3322;     /* faixa marrom */
  --leather-2: #3a281b;
  --forest: #2f3a2b;      /* faixa verde (Parte II) */
  --band-ink: #f4ead9;    /* texto sobre faixas escuras */
  --band-muted: #c8b9a1;
  --focus: #b88a3e;
  --shadow: 0 1px 2px rgba(42, 33, 27, .06), 0 12px 32px -12px rgba(42, 33, 27, .18);

  /* Tipografia */
  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala */
  --t-xs: .75rem; --t-sm: .875rem; --t-md: 1rem; --t-lg: 1.125rem;
  --t-xl: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  --t-2xl: clamp(2rem, 1.3rem + 2.6vw, 3rem);
  --t-3xl: clamp(2.6rem, 1.4rem + 4.6vw, 4.6rem);

  --radius: 14px;
  --wrap: 1200px;
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 64px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px), 4vw);
  padding-right: max(16px, env(safe-area-inset-right, 0px), 4vw);
}
@media (min-width: 1300px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.section { padding-block: clamp(64px, 9vw, 120px); }

.eyebrow {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: var(--t-lg); color: var(--muted); max-width: 60ch; }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--t-2xl); }
.section-head h2 em, .hero h1 em { font-style: italic; color: var(--gold-ink); font-weight: 600; }

/* Botões */
.btn {
  --b-bg: var(--ink); --b-fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: var(--t-sm); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { --b-bg: var(--gold); --b-fg: #1d150f; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { --b-bg: var(--band-ink); --b-fg: #2a211b; }
.btn--sm { min-height: 40px; padding: 0 16px; }
.btn--block { width: 100%; }

/* ============ Header ============ */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 50px; height: 50px; object-fit: contain; }
.brand__name { display: grid; line-height: 1.05; }
.brand__name strong { font-family: var(--f-display); font-size: 1.3rem; }
.brand__name span { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { text-decoration: none; font-size: var(--t-sm); font-weight: 500; padding: 8px 12px; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); background: var(--surface-2); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.cart-btn { position: relative; }
.cart-btn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #1d150f;
  font-size: .72rem; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums;
}
.cart-btn__count[data-empty="true"] { background: color-mix(in srgb, var(--bg) 25%, transparent); color: inherit; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: var(--t-md); }
  .menu-btn { display: inline-grid; }
  .cart-btn .label { display: none; }
}
@media (max-width: 420px) { .brand__name span { display: none; } .brand img { width: 42px; height: 42px; } }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero__copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: var(--t-3xl); letter-spacing: -.02em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 12px; }
.fact { padding: 18px 16px 0 0; display: grid; gap: 2px; }
.fact + .fact { padding-left: 16px; border-left: 1px solid var(--line); }
.fact b { font-family: var(--f-display); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 700; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.fact span { font-size: var(--t-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

.hero__art { position: relative; aspect-ratio: 1 / 1; max-width: 100%; }
.hero__rings { position: absolute; inset: -6%; border-radius: 50%; pointer-events: none; }
.hero__rings::before, .hero__rings::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
.hero__rings::before { inset: 0; }
.hero__rings::after { inset: 9%; border-style: dashed; border-color: color-mix(in srgb, var(--gold) 30%, transparent); animation: spin 120s linear infinite; }
.hero__disc { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, var(--surface) 0%, var(--surface-2) 70%); }
.hero__photo { position: absolute; left: 2%; bottom: 8%; width: 96%; height: auto; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(42,33,27,.45); }
.hero__badge {
  position: absolute; top: 0; right: 2%; width: 36%; max-width: 210px; aspect-ratio: 1; filter: drop-shadow(0 14px 22px rgba(42,33,27,.3));
  animation: float 7s ease-in-out infinite;
}
.hero__badge img { width: 100%; height: 100%; object-fit: contain; }
.hero__stamp {
  position: absolute; left: 0; top: 10%; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px 10px 10px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); font-size: var(--t-sm);
}
.hero__stamp i { width: 34px; height: 34px; border-radius: 50%; background: var(--forest); color: var(--band-ink); display: grid; place-items: center; }
.hero__stamp i svg { width: 18px; height: 18px; }
.hero__stamp b { display: block; line-height: 1.2; }
.hero__stamp small { color: var(--muted); font-size: var(--t-xs); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px) rotate(2deg); } }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; width: 100%; margin-inline: auto; order: -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { padding-top: 16px; }
}
@media (max-width: 520px) { .hero__stamp { top: auto; bottom: 0; } }

/* ============ Marquee de marcas ============ */
.marquee { border-block: 1px solid var(--line); background: var(--surface); padding-block: 22px; overflow: hidden; }
.marquee__label { text-align: center; font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { width: 76px; height: 76px; border-radius: 16px; object-fit: contain; background: #fff; box-shadow: 0 1px 0 var(--line); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ História ============ */
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.story__media { position: relative; min-width: 0; }
.story__year { font-family: var(--f-display); font-size: clamp(4.5rem, 3rem + 7vw, 9rem); line-height: .9; color: var(--leather); letter-spacing: -.03em; }
.story__year small { display: block; font-size: var(--t-xl); font-style: italic; font-weight: 400; color: var(--gold-ink); letter-spacing: 0; margin-bottom: 6px; }
.story__img { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.story__img img { width: 100%; aspect-ratio: 1365 / 532; object-fit: cover; }
.story__copy { display: grid; gap: 20px; min-width: 0; }
.story__copy h2 { font-size: var(--t-2xl); }
.story__copy p { color: var(--muted); max-width: 62ch; }
.story__copy p strong { color: var(--ink); }
.quote { border-left: 2px solid var(--gold); padding: 4px 0 4px 20px; font-family: var(--f-display); font-size: var(--t-xl); font-style: italic; line-height: 1.3; color: var(--ink); }
@media (max-width: 860px) { .story__grid { grid-template-columns: 1fr; } }

/* ============ Linhas (as três partes do catálogo) ============ */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.line-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 28px; min-height: 360px;
  display: flex; flex-direction: column; gap: 14px; color: var(--band-ink); text-decoration: none;
  isolation: isolate; transition: transform .3s ease;
}
.line-card:hover { transform: translateY(-4px); }
.line-card--1 { background: var(--leather); }
.line-card--2 { background: var(--forest); }
.line-card--3 { background: var(--leather-2); }
.line-card__num { position: absolute; right: 18px; top: -30px; font-family: var(--f-display); font-size: 11rem; line-height: 1; color: rgba(244, 234, 217, .07); z-index: -1; font-weight: 700; }
.line-card__part { font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.line-card h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.line-card p { color: var(--band-muted); font-size: var(--t-sm); }
.line-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.line-card li { font-size: .75rem; border: 1px solid rgba(244,234,217,.22); border-radius: 999px; padding: 4px 10px; }
.line-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid rgba(244,234,217,.16); font-size: var(--t-sm); font-weight: 600; }
.line-card__foot svg { width: 20px; height: 20px; transition: transform .25s; }
.line-card:hover .line-card__foot svg { transform: translateX(4px); }
@media (max-width: 900px) { .lines { grid-template-columns: 1fr; } .line-card { min-height: 0; } }

/* ============ Catálogo ============ */
.catalog { background: var(--surface); border-block: 1px solid var(--line); }
.toolbar {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding-block: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); display: grid; gap: 12px;
}
.toolbar__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search { position: relative; flex: 1 1 280px; min-width: 0; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  padding: 0 44px 0 46px; font-size: var(--t-md);
}
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.search__clear { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; display: grid; place-items: center; }
.search__clear svg { position: static; translate: none; width: 14px; height: 14px; }
.select {
  height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); padding: 0 40px 0 18px;
  appearance: none; -webkit-appearance: none; cursor: pointer; flex: 0 1 220px; min-width: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b88a3e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: -2px; padding-inline: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font-size: var(--t-sm); font-weight: 500; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: .2s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip small { font-size: .7rem; opacity: .7; font-variant-numeric: tabular-nums; }
.results-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: var(--t-sm); color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.results-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold-ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); gap: 16px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  animation: cardIn .4s ease both;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
@keyframes cardIn { from { opacity: .001; transform: translateY(8px); } }
.card__media {
  position: relative; aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; padding: 22px;
  border-bottom: 1px solid var(--line);
}
.card__media img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__brand {
  position: absolute; top: 10px; left: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,250,242,.92); color: #4a3322; border: 1px solid #e7dcc9; padding: 3px 8px; border-radius: 999px;
}
.card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__cat { font-size: .7rem; color: var(--gold-ink); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.card__name { font-family: var(--f-body); font-weight: 600; font-size: .95rem; line-height: 1.35; letter-spacing: 0; text-wrap: pretty; }
.card__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.tag { font-size: .72rem; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.tag--code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .02em; }
.card__foot { padding: 0 16px 16px; }
.add-btn {
  width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-weight: 600; font-size: var(--t-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .2s;
}
.add-btn:hover { background: var(--ink); color: var(--bg); }
.add-btn svg { width: 16px; height: 16px; }
.stepper { display: grid; grid-template-columns: 42px 1fr 42px; height: 42px; border-radius: 10px; background: var(--ink); color: var(--bg); overflow: hidden; }
.stepper button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 1.15rem; font-weight: 600; }
.stepper button:hover { background: rgba(255,255,255,.12); }
.stepper input { width: 100%; min-width: 0; border: 0; background: transparent; color: inherit; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__label { font-size: .7rem; text-align: center; color: var(--muted); margin-top: 6px; }
.more { display: flex; justify-content: center; margin-top: 32px; }
.empty { text-align: center; padding: 64px 16px; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; gap: 12px; justify-items: center; }
.empty h3 { font-size: var(--t-xl); }
.empty p { color: var(--muted); max-width: 46ch; }

/* ============ Logística ============ */
.band { background: var(--leather); color: var(--band-ink); position: relative; overflow: hidden; }
.band .eyebrow { color: var(--gold); }
.band .lead { color: var(--band-muted); }
.band .section-head h2 em { color: var(--gold); }
.band__bg { position: absolute; inset: auto 0 0 0; height: 55%; background-size: cover; background-position: center bottom; opacity: .12; filter: sepia(1) contrast(1.1); mask-image: linear-gradient(to top, #000 30%, transparent); -webkit-mask-image: linear-gradient(to top, #000 30%, transparent); pointer-events: none; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(244,234,217,.14); border: 1px solid rgba(244,234,217,.14); border-radius: var(--radius); overflow: hidden; position: relative; }
.feature { background: var(--leather); padding: 28px 24px; display: grid; gap: 12px; align-content: start; }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(208,168,95,.14); color: var(--gold); }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--band-muted); font-size: var(--t-sm); }
.segments { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; position: relative; }
.segments > span { font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.segments ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.segments li { border: 1px solid rgba(244,234,217,.25); border-radius: 999px; padding: 8px 14px; font-size: var(--t-sm); }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ============ Marcas ============ */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)); gap: 12px; }
.brand-tile {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px 12px 12px;
  display: grid; gap: 10px; justify-items: center; text-align: center; cursor: pointer; transition: .25s; color: var(--ink);
}
.brand-tile:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.brand-tile img, .brand-tile__mono { width: 72px; height: 72px; border-radius: 14px; object-fit: contain; background: #fff; }
.brand-tile__mono { display: grid; place-items: center; font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: #4a3322; border: 1px solid #e7dcc9; }
.brand-tile b { font-size: var(--t-sm); font-weight: 600; }
.brand-tile small { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ============ Como pedir ============ */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--ink); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--f-display); font-size: 2.6rem; font-style: italic; color: var(--gold-ink); line-height: 1; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ============ Contato ============ */
.contact { background: var(--forest); color: var(--band-ink); }
.contact .eyebrow { color: var(--gold); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__info { display: grid; gap: 24px; min-width: 0; }
.contact__info h2 { font-size: var(--t-2xl); }
.contact__info > p { color: var(--band-muted); font-size: var(--t-lg); }
.channels { display: grid; gap: 10px; }
.channel {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius);
  border: 1px solid rgba(244,234,217,.18); background: rgba(244,234,217,.04); min-width: 0;
}
.channel__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(208,168,95,.16); color: var(--gold); }
.channel__icon svg { width: 22px; height: 22px; }
.channel div { min-width: 0; }
.channel small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); font-weight: 600; }
.channel a, .channel span.v { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; user-select: all; }
.channel a:hover { text-decoration: underline; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(244,234,217,.22); background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: rgba(244,234,217,.1); }
.icon-btn svg { width: 18px; height: 18px; }

.form { background: var(--surface); color: var(--ink); border-radius: calc(var(--radius) + 6px); padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); min-width: 0; }
.form h3 { font-size: var(--t-xl); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: var(--t-sm); font-weight: 600; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.field input[aria-invalid="true"] { border-color: #b4452f; }
.field .err { font-size: .78rem; color: #b4452f; min-height: 0; }
.form__quote { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; font-size: var(--t-sm); color: var(--muted); display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.form__quote b { color: var(--ink); }
.form__note { font-size: .78rem; color: var(--muted); }
.result { border-radius: 12px; background: var(--surface-2); padding: 16px; display: grid; gap: 12px; }
.result p { font-size: var(--t-sm); }
.result__actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ============ Footer ============ */
.footer { background: var(--leather-2); color: var(--band-muted); padding-block: 48px 32px; font-size: var(--t-sm); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand__name strong { color: var(--band-ink); }
.footer .brand__name span { color: var(--band-muted); }
.footer h4 { color: var(--band-ink); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--band-ink); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(244,234,217,.12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ============ Painel de cotação ============ */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(23, 18, 14, .5); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: -20px 0 50px rgba(0,0,0,.2);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); gap: 12px; }
.drawer__head h2 { font-size: 1.4rem; }
.drawer__head p { font-size: var(--t-sm); color: var(--muted); }
.drawer__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; flex: none; }
.drawer__close svg { width: 18px; height: 18px; }
.drawer__list { flex: 1; overflow-y: auto; padding: 8px 20px; overscroll-behavior: contain; }
.q-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.q-item img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 4px; }
.q-item__name { font-weight: 600; font-size: var(--t-sm); line-height: 1.35; }
.q-item__meta { font-size: .75rem; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.q-item__row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 12px; }
.q-item .stepper { width: 128px; height: 36px; grid-template-columns: 36px 1fr 36px; border-radius: 8px; }
.q-item__rm { background: none; border: 0; color: var(--muted); font-size: .78rem; text-decoration: underline; cursor: pointer; padding: 6px; }
.drawer__empty { text-align: center; padding: 56px 12px; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.drawer__empty svg { width: 44px; height: 44px; color: var(--gold); }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 10px; background: var(--surface); }
.drawer__foot p { font-size: .78rem; color: var(--muted); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 20px; z-index: 90;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: var(--t-sm); font-weight: 500;
  opacity: 0; pointer-events: none; transition: .3s; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; translate: -50% 0; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* Revelação ao rolar — sempre visível em repouso */
.reveal { transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s; }
.js .reveal:not(.is-in) { transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .js .reveal:not(.is-in) { transform: none; opacity: 1; }
}

/* Catálogo em duas colunas no celular */
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body { padding: 12px; gap: 6px; }
  .card__name { font-size: .84rem; }
  .card__foot { padding: 0 12px 12px; }
  .card__brand { font-size: .6rem; top: 8px; left: 8px; }
  .add-btn { font-size: .8rem; gap: 6px; }
  .add-btn .long { display: none; }
  .stepper { grid-template-columns: 36px 1fr 36px; }
  .tag { font-size: .66rem; }
}

/* Quantidade digitável */
.add-row { display: grid; grid-template-columns: 72px 1fr; gap: 8px; }
.qty-pre input {
  width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  text-align: center; font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.qty-pre input::-webkit-outer-spin-button, .qty-pre input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-pre input:focus, .stepper input:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent); }
.stepper input { background: var(--bg); color: var(--ink); border-radius: 6px; margin: 5px 0; height: calc(100% - 10px); font-size: .95rem; cursor: text; }
.q-item .stepper { width: 150px; }
.q-item .stepper input { margin: 4px 0; height: calc(100% - 8px); }
.btn--wa { --b-bg: #1f9d55; --b-fg: #fff; }
.drawer__send-title { font-size: var(--t-xs) !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.drawer__links { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-sm); padding-top: 2px; }
@media (max-width: 560px) { .add-row { grid-template-columns: 56px 1fr; gap: 6px; } .add-btn svg { display: none; } }
