/* ============================================================
   M Santana Confecções — folha de estilo do catálogo
   Identidade visual: laranja #F68D1F · marrom #2B2522 · terracota #AF6024
   Tipografia: Anton (títulos) · Cinzel (marca) · Open Sans (texto)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
fieldset { border: 0; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Tokens ---------- */
:root {
  --brand: #F68D1F;          /* laranja da marca (cor_primaria) */
  --brand-dark: #EC7E12;
  --brand-light: #F9A11B;
  --accent: #AF6024;         /* terracota (links) */
  --accent-dark: #7A3F12;
  --ink: #2B2522;            /* quase preto quente */
  --ink-soft: #3A332F;
  --body: #4A423D;           /* texto corrido */
  --muted: #8A8178;
  --line: #E9E4DF;
  --line-strong: #E4E2DF;
  --soft: #EEEEEF;
  --soft-warm: #F5F3F0;
  --cream: #FFF7EC;
  --white: #FFFFFF;
  --danger: #B3261E;
  --ok: #15803D;

  --font-display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --font-brand: 'Cinzel', Georgia, serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1240px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(43, 37, 34, .06);
  --shadow-md: 0 18px 40px rgba(43, 37, 34, .14);
}

/* Elementos escondidos pelo JS usam o atributo hidden — garantimos que ele
   vença qualquer display definido no CSS (senão o "1" do carrinho e o selo
   com 0 continuariam aparecendo). */
[hidden] { display: none !important; }

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 32px; }
.wrap-narrow { max-width: 760px; }
.center { text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Títulos e seções ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: .005em;
}
h1.display { font-size: clamp(38px, 5.2vw, 72px); }
/* no hero o título é controlado à parte: precisa caber em 3 linhas */
.hero h1.display { font-size: clamp(30px, 3.9vw, 54px); }
h2.display { font-size: clamp(28px, 3.4vw, 46px); }
h3.display { font-size: clamp(19px, 1.6vw, 26px); }
.display .ou { font-family: var(--font-brand); font-weight: 700; text-transform: none; }

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .display { color: #fff; }
.section-soft { background: var(--soft-warm); }
.section-darker .display .destaque { color: var(--brand); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head p.lead { color: var(--body); font-size: 15px; max-width: 640px; margin-top: 16px; }
.section-head .meta { color: var(--muted); font-size: 13px; white-space: nowrap; padding-bottom: 6px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 26px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700; line-height: 1;
  border: 2px solid transparent;
  transition: filter .15s, background .15s, color .15s, border-color .15s, transform .12s;
  text-align: center;
}
.btn svg { flex-shrink: 0; }
.btn-brand { background: var(--brand); color: var(--ink); }
.btn-brand:hover { filter: brightness(.94); color: var(--ink); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1C1815; color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-whats { background: var(--brand); color: var(--ink); }
.btn-whats:hover { filter: brightness(.94); color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; padding: 0 34px; font-size: 15px; }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.link-button {
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
  font-size: 13.5px; font-weight: 700;
}
.link-button:hover { color: var(--accent-dark); }
.link-danger { color: var(--danger); }

/* ---------- Faixa de aviso ---------- */
.promo-bar {
  background: var(--ink); color: #fff;
  text-align: center; font-size: 13px; padding: 10px 32px;
  letter-spacing: .01em;
}
.promo-bar a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line-strong);
  position: sticky; top: 0; z-index: 60;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px; padding-block: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--font-brand); font-weight: 500;
  font-size: 25px; letter-spacing: .02em; color: var(--ink);
}
.brand-text small {
  font-size: 10px; letter-spacing: .34em; margin-top: 5px;
  font-weight: 700; color: var(--ink); text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--ink); font-size: 14px; font-weight: 600;
  text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--accent); border-bottom-color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* busca no cabeçalho */
.search-box { position: relative; }
.search-box form {
  display: flex; align-items: center; gap: 4px;
  background: var(--soft); border: 2px solid transparent;
  border-radius: var(--radius-pill); padding: 3px 4px 3px 16px;
  transition: border-color .15s, background .15s;
}
.search-box form:focus-within { background: #fff; border-color: var(--ink); }
.search-box input[type="search"] {
  border: 0; background: transparent; padding: 8px 0; width: 150px; font-size: 14px;
}
.search-box input[type="search"]:focus { outline: none; }
.search-box button[type="submit"] {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
}
.search-box button[type="submit"]:hover { background: var(--brand); }

.search-suggest {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(420px, 88vw);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 8px; z-index: 80;
  max-height: 68vh; overflow-y: auto;
}
.search-suggest a { display: flex; align-items: center; gap: 12px; padding: 9px; border-radius: var(--radius-sm); color: var(--ink); }
.search-suggest a:hover { background: var(--soft-warm); color: var(--ink); }
.search-suggest img { width: 44px; height: 44px; object-fit: contain; background: var(--soft); border-radius: 8px; padding: 4px; }
.search-suggest .s-name { font-weight: 700; font-size: 14px; }
.search-suggest .s-meta { color: var(--muted); font-size: 12.5px; }
.search-suggest .s-price { margin-left: auto; font-weight: 800; color: var(--accent); font-size: 13.5px; }
.search-suggest .s-empty { padding: 14px; color: var(--muted); font-size: 13.5px; }

.cart-button {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius-pill);
  border: 2px solid var(--ink); color: var(--ink);
  font-size: 14px; font-weight: 700;
}
.cart-button:hover { background: var(--ink); color: #fff; }
.cart-count {
  background: var(--brand); color: var(--ink);
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.cart-button:hover .cart-count { background: #fff; }

/* ---------- Hero ----------
   O laranja sangra até a borda (camada de fundo com corte diagonal), mas o
   CONTEÚDO fica dentro do mesmo .wrap do header e do resto da página — assim
   logo, título, catálogo e rodapé ficam todos no mesmo eixo. */
.hero { position: relative; background: var(--soft-warm); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--brand);
  clip-path: polygon(0 0, 64% 0, 50% 100%, 0 100%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 440px; }

.hero-copy { display: flex; align-items: center; padding: 46px 48px 46px 0; }
.hero-copy-inner { max-width: 560px; width: 100%; }
.hero h1 { color: #fff; }
.hero h1 .ou { color: #fff; font-size: .92em; }
.hero h1 .amp-text { margin-left: .2em; }
.hero-sub {
  font-family: var(--font-display); text-transform: uppercase;
  color: #fff; font-size: clamp(17px, 1.5vw, 23px);
  margin-top: 18px; padding-top: 18px; border-top: 2px solid rgba(255,255,255,.55);
  max-width: 420px; line-height: 1.12;
}
.hero p.hero-text { color: #fff; font-size: 15px; margin-top: 18px; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hero-side {
  display: flex; align-items: center;
  /* Alinha o conjunto da marca à direita da coluna (mesmo eixo do header),
     tirando o "M" de cima da diagonal laranja. */
  justify-content: flex-end;
  padding: 40px 0 40px 48px; position: relative;
}
.hero-lockup { position: relative; text-align: center; }
.hero-lockup img { height: clamp(120px, 13vw, 210px); width: auto; margin: 0 auto 8px; }
.hero-lockup .brand-name {
  font-family: var(--font-brand); font-weight: 500;
  font-size: clamp(30px, 3.2vw, 46px); letter-spacing: .06em; color: var(--ink); line-height: 1;
}
.hero-lockup .brand-sub {
  font-size: 11px; letter-spacing: .38em; font-weight: 700;
  color: var(--ink); margin-top: 10px; text-transform: uppercase;
}
.hero-lockup .brand-claim {
  font-size: 11px; letter-spacing: .24em; font-weight: 700;
  color: var(--muted); margin-top: 26px; text-transform: uppercase;
}
.hero-social { display: flex; gap: 14px; justify-content: center; margin-top: 18px; }
.hero-social a { color: var(--ink); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.hero-social a:hover { background: var(--brand); color: var(--ink); }

/* ---------- Faixa escura de destaques ---------- */
.strip { background: var(--ink); color: #fff; }
.strip-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px;
  padding-block: 22px;
}
.strip-item { display: flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.strip-item::before {
  content: ''; width: 9px; height: 9px; background: var(--brand); flex-shrink: 0;
}

/* ---------- Catálogo: filtros e grade ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: var(--radius-pill);
  border: 2px solid var(--line-strong); background: #fff; color: var(--ink);
  font-size: 13.5px; font-weight: 700;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.product-grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.product-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card.is-sold-out { opacity: .92; }

.card-media {
  position: relative; display: block; aspect-ratio: 1 / 1;
  background: var(--soft); overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 18%; }
.card-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #C9C2B6; }
.card-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 5px; }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.94); color: var(--ink);
}
.badge-promo { background: var(--brand); color: var(--ink); }
.badge-muted { background: var(--ink); color: #fff; }
.badge-float { position: absolute; top: 12px; left: 12px; z-index: 2; }

.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 16px; line-height: 1.1; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); }
.card-desc { font-size: 12.5px; color: var(--body); line-height: 1.5; }
.card-price { display: flex; align-items: baseline; gap: 8px; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 12.5px; }
.price-now { font-weight: 800; font-size: 16px; color: var(--ink); }
.price-sob { font-weight: 700; color: var(--accent); font-size: 13.5px; }
.card-techs { display: flex; flex-wrap: wrap; gap: 5px; }
.tech-chip {
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  background: var(--soft-warm); color: var(--body);
  border-radius: 999px; padding: 3px 9px;
}
.card-sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.size-chip { border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 10.5px; color: var(--muted); }
.card-actions { margin-top: auto; padding-top: 10px; }
.card-actions .btn { min-height: 42px; font-size: 13.5px; }

/* ciclo de cores dos blocos de imagem (como no layout aprovado) */
.card-media.tile-1 { background: var(--brand); }
.card-media.tile-2 { background: var(--soft); }
.card-media.tile-3 { background: var(--accent); }
.card-media.tile-4 { background: var(--ink); }
.card-media.tile-1 img, .card-media.tile-3 img, .card-media.tile-4 img { filter: drop-shadow(0 6px 16px rgba(0,0,0,.18)); }

/* card "não achou seu modelo?" */
.card-cta {
  border: 2px dashed var(--brand); border-radius: var(--radius);
  background: var(--cream); padding: 26px 22px;
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
}
.card-cta .amp { font-family: var(--font-brand); font-weight: 700; font-size: 32px; color: var(--brand); line-height: 1; }
.card-cta h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 19px; line-height: 1.1; color: var(--ink); }
.card-cta p { font-size: 12.5px; color: var(--body); }
.card-cta .btn { margin-top: 4px; }

/* ---------- Técnicas ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.tech-card { background: var(--ink-soft); border-radius: var(--radius); padding: 26px 24px; }
.tech-num { font-family: var(--font-display); font-size: 30px; color: var(--brand); line-height: 1; }
.tech-card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; color: #fff; font-size: 22px; margin: 12px 0 12px; }
.tech-card p { color: #C9C4BF; font-size: 12.5px; line-height: 1.6; }
.tech-card .ideal { color: var(--brand); font-size: 12px; font-style: italic; margin-top: 14px; }

/* ---------- Como funciona ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.step-num { font-family: var(--font-display); font-size: 30px; color: var(--brand); line-height: 1; }
.step-card h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin: 12px 0 8px; }
.step-card p { font-size: 12.5px; color: var(--body); line-height: 1.6; }

/* ---------- Chamada final ---------- */
.cta-final { background: var(--brand); }
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-block: 72px; }
.cta-final h2 { color: #fff; }
.cta-final p { color: #fff; font-size: 15px; margin-top: 18px; max-width: 420px; }
.cta-final .btn { margin-top: 26px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 28px 26px; }
.contact-card .who { font-size: 16px; font-weight: 800; color: var(--ink); }
.contact-card .role { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.contact-rows { display: grid; gap: 12px; }
.contact-row { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--ink); }
.contact-row .ico { width: 20px; display: grid; place-items: center; color: var(--ink); flex-shrink: 0; }
.contact-row a { color: var(--ink); }
.contact-row a:hover { color: var(--accent); }
.contact-card .socials { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.contact-card .socials a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft-warm); color: var(--ink); }
.contact-card .socials a:hover { background: var(--brand); color: var(--ink); }
.contact-card .socials span { font-size: 13px; color: var(--muted); margin-left: 4px; }
.contact-address { display: flex; gap: 11px; margin-top: 18px; font-size: 13.5px; color: var(--body); }
.contact-address .ico { width: 20px; flex-shrink: 0; color: var(--ink); }
.contact-address a { color: var(--accent); font-weight: 700; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: #fff; padding-block: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; }
.footer-brand img { height: 74px; width: auto; }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1; margin-left: 10px; }
.footer-brand-text strong { font-family: var(--font-brand); font-weight: 500; font-size: 22px; letter-spacing: .06em; color: #fff; }
.footer-brand-text small { font-size: 8px; letter-spacing: .38em; color: var(--brand); margin-top: 6px; font-weight: 700; }
.footer-right { text-align: right; }
.footer-right .claim { color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-right .info { color: #A9A29B; font-size: 12.5px; margin-top: 8px; }
.footer-right .copy { color: #7E7770; font-size: 12px; margin-top: 4px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; }
.footer-links a { color: #C9C4BF; }
.footer-links a:hover { color: #fff; }

/* ---------- Migalhas ---------- */
.breadcrumbs { padding-top: 22px; font-size: 12.5px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs a { color: var(--accent); }
.crumb-sep { color: #C4BFB6; }

/* ---------- Cabeçalho de página (categoria, busca, institucional) ---------- */
.page-head { background: var(--soft-warm); padding: 44px 0 40px; }
.page-head h1 { color: var(--ink); }
.page-head .lead { color: var(--body); font-size: 15px; max-width: 680px; margin-top: 14px; }
.page-head-image { width: 100%; max-width: 320px; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Grade / ferramentas de lista ---------- */
.list-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; padding: 16px 0 22px; border-top: 1px solid var(--line); margin-top: 6px;
}
.list-count { color: var(--muted); font-size: 13.5px; }
.sort-form { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.sort-form select {
  border: 2px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 9px 16px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink);
}

/* ---------- Paginação ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 44px; flex-wrap: wrap; }
.page-numbers { display: flex; align-items: center; gap: 6px; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 42px; height: 42px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 2px solid var(--line-strong); background: #fff; color: var(--ink);
  font-size: 13.5px; font-weight: 700;
}
.page-link:hover { border-color: var(--ink); color: var(--ink); }
.page-link.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-gap { color: var(--muted); padding: 0 4px; }

/* ---------- Página do produto ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 52px; align-items: start; padding-top: 32px; }
.gallery-main {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--soft); aspect-ratio: 1 / 1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.gallery-placeholder { display: grid; place-items: center; height: 100%; color: #B9B2A6; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid var(--line); padding: 0; background: var(--soft);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.thumb.is-active { border-color: var(--brand); }

.product-info h1 { font-size: clamp(30px, 3.4vw, 46px); }
.product-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.product-cats a { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.product-code { color: var(--muted); font-size: 13px; margin-top: 8px; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.product-price .price-now { font-size: 30px; font-family: var(--font-display); font-weight: 400; }
.product-price-note { color: var(--muted); font-size: 12.5px; }
.product-short { margin-top: 16px; color: var(--body); font-size: 15px; }
.product-techs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.product-techs .tech-chip { font-size: 11.5px; padding: 5px 12px; background: var(--soft); }

.notice { border-radius: var(--radius-sm); padding: 13px 16px; font-size: 13.5px; margin-top: 18px; }
.notice-warn { background: var(--cream); border: 1px solid #F0D9A8; color: #6B4E13; }

.product-form { margin-top: 26px; }
.option-group { margin-bottom: 22px; }
.option-group legend {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em;
  color: var(--muted); margin-bottom: 10px;
}
.option-row { display: flex; flex-wrap: wrap; gap: 8px; }
.size-option input, .color-option input { position: absolute; opacity: 0; pointer-events: none; }
.size-option span {
  display: inline-block; min-width: 48px; text-align: center;
  padding: 10px 14px; border: 2px solid var(--line-strong); border-radius: 10px;
  font-size: 14px; font-weight: 700; color: var(--ink); transition: all .15s;
}
.size-option input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.size-option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.color-option { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.color-swatch {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--line-strong); background: #fff; display: inline-block;
  box-shadow: inset 0 0 0 2px #fff;
}
.color-option input:checked + .color-swatch { border-color: var(--ink); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--brand); }
.color-name { font-size: 13.5px; font-weight: 600; }

.qty-group { margin-bottom: 22px; }
.qty-group > label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 10px; }
.qty-control { display: inline-flex; align-items: center; border: 2px solid var(--line-strong); border-radius: var(--radius-pill); overflow: hidden; background: #fff; }
.qty-control button { width: 44px; height: 44px; font-size: 18px; color: var(--ink); display: grid; place-items: center; }
.qty-control button:hover { background: var(--soft-warm); }
.qty-control input { width: 56px; text-align: center; border: 0; border-inline: 1px solid var(--line); height: 44px; font-weight: 700; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-small button { width: 32px; height: 32px; font-size: 15px; }
.qty-small input { width: 44px; height: 32px; }

.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-actions .btn { flex: 1 1 210px; }
.product-share { margin-top: 16px; }
.product-trust { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 14px; }
.product-trust li { display: grid; gap: 3px; font-size: 13.5px; }
.product-trust strong { color: var(--ink); }
.product-trust span { color: var(--body); }
.product-description { max-width: 820px; }
.product-description h2 { margin-bottom: 16px; }
.product-description p + p { margin-top: 14px; }

/* ---------- Grade de tamanhos (quantidade por tamanho) ---------- */
.size-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; max-width: 560px;
}
.size-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 2px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 6px 10px 6px 14px; background: #fff;
  transition: border-color .15s;
}
.size-row:focus-within { border-color: var(--ink); }
.size-label { font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.size-row input[type="number"] {
  width: 84px; border: 0; background: var(--soft-warm); border-radius: 8px;
  padding: 9px 8px; text-align: center; font-weight: 700; font-size: 15px;
  -moz-appearance: textfield;
}
.size-row input[type="number"]::-webkit-outer-spin-button,
.size-row input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.size-row input[type="number"]:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.size-row.has-value { border-color: var(--brand); background: var(--cream); }
.size-total { font-size: 13.5px; color: var(--body); margin-top: 12px; }
.size-total strong { font-size: 16px; color: var(--ink); }
.size-hint { color: var(--muted); }

/* grade dentro do carrinho (compacta, editável) */
.cart-grade { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cart-grade label { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; }
.cart-grade input {
  width: 52px; border: 2px solid var(--line-strong); border-radius: 8px;
  padding: 5px 6px; text-align: center; font-size: 13px; font-weight: 700;
  -moz-appearance: textfield;
}
.cart-grade input::-webkit-outer-spin-button,
.cart-grade input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Busca ---------- */
.search-form-large { display: flex; gap: 10px; margin-top: 22px; max-width: 620px; }
.search-form-large input {
  flex: 1; border: 2px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 13px 22px; font-size: 15px;
}
.search-form-large input:focus { border-color: var(--ink); outline: none; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list a { display: inline-block; padding: 9px 18px; border-radius: var(--radius-pill); border: 2px solid var(--line-strong); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.chip-list a:hover { border-color: var(--brand); color: var(--ink); }
.chip-list span { color: var(--muted); font-size: 12px; }

/* ---------- Carrinho ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 32px; margin-top: 32px; align-items: start; }
.cart-items { display: grid; gap: 14px; }
.cart-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.cart-item-media img { width: 92px; height: 92px; object-fit: contain; background: var(--soft); border-radius: var(--radius-sm); padding: 8px; }
.cart-item-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.cart-item-name:hover { color: var(--brand); }
.cart-item-variants { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.cart-item-controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.cart-item-price { font-weight: 800; color: var(--ink); white-space: nowrap; }
.cart-summary { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px; position: sticky; top: 100px; }
.cart-summary h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 20px; margin-bottom: 16px; }
.cart-summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--muted); }
.cart-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.cart-total strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--ink); }
.cart-summary-note { font-size: 12px; color: var(--muted); margin: 12px 0 18px; }
.cart-continue { display: inline-block; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.cart-empty { text-align: center; padding: 52px 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius); }
.cart-feedback { margin-top: 12px; font-size: 13.5px; }
.cart-feedback.is-error { color: var(--danger); }
.cart-feedback.is-ok { color: var(--ok); }

.customer-fields { display: grid; gap: 12px; margin-bottom: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.field input, .field textarea {
  border: 2px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14px; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field textarea { min-height: 88px; resize: vertical; }
.field-required { color: var(--danger); }

/* ---------- Estados vazios / avisos ---------- */
.empty-state { text-align: center; padding: 60px 24px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: #fff; }
.empty-state p { color: var(--body); margin-bottom: 16px; }
.empty-state .btn { margin: 5px; }
.muted { color: var(--muted); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(43, 37, 34, .32);
  transition: transform .15s, background .15s;
}
.whatsapp-float:hover { transform: scale(1.06); background: var(--brand); color: var(--ink); }

/* ---------- Aviso flutuante ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 13px 24px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Bloco de contato (página contato) ---------- */
.contact-block { margin-top: 30px; }
.contact-block .contact-list { display: grid; gap: 10px; margin-top: 20px; font-size: 14px; }
.contact-social { display: flex; gap: 16px; margin-top: 20px; font-size: 13.5px; }
.page-content p + p { margin-top: 14px; }
.page-content { margin-top: 12px; }
.page-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Responsivo (mesmos cortes do layout original) ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-bg { display: none; }
  .hero { background: var(--brand); }
  .hero-side { background: var(--soft-warm); }
  .hero-copy { padding: 56px 0; }
  .hero-side { padding: 40px 0; }
  .product-layout { grid-template-columns: 1fr; gap: 34px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cta-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .section { padding: 62px 0; }
  .tech-grid { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .search-box input[type="search"] { width: 110px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
}

@media (max-width: 760px) {
  .wrap { padding-inline: 18px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .header-inner { gap: 12px; }
  .cart-button span:not(.cart-count) { display: none; }
  .cart-button { padding: 0 14px; }
  .hero-copy { padding: 44px 0; }
  .hero-side { padding: 36px 0; }
  .product-actions .btn { flex: 1 1 100%; }
  .search-form-large { flex-direction: column; }
  .cart-item { grid-template-columns: 76px 1fr; }
  .cart-item-media img { width: 76px; height: 76px; }
  .cart-item-price { grid-column: 2; text-align: right; }
}

@media (max-width: 480px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .brand-text strong { font-size: 20px; }
  .brand-logo { height: 38px; }
  .search-box { display: none; }
}

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

@media print {
  .site-header, .site-footer, .whatsapp-float, .promo-bar, .product-actions, .hero-side { display: none; }
}
