/* Página branca e editorial. Cores da HAJAS (verde #0b3d2d, caramelo #db9452) só como acento. */
:root {
  --verde: #0b3d2d;
  --caramelo: #db9452;
  --caramelo-texto: #9a5a22;    /* caramelo escurecido para texto pequeno no branco (contraste AA) */
  --caramelo-marcador: #b8692a; /* letra de marcador, texto grande: contraste acima de 3:1 */
  --papel: #ffffff;
  --cartao: #f1f1ef;
  --tinta: #111111;
  --cinza: #5c5c5c;
  --linha: #e3e3e0;
  --erro: #a3321f;
  --gutter: clamp(16px, 4vw, 48px);
  --fonte: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marcador: "Permanent Marker", "Segoe Print", cursive;
  --saida: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 16px/1.5 var(--fonte); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { overflow-wrap: break-word; font-stretch: 112%; font-weight: 800; line-height: 1; letter-spacing: -0.02em; margin: 0; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }
::selection { background: var(--verde); color: #fff; }
input, textarea { caret-color: var(--verde); accent-color: var(--verde); }
.pular { position: absolute; left: -9999px; }
.pular:focus { left: 16px; top: 8px; z-index: 30; background: var(--tinta); color: #fff; padding: 8px 12px; }
[hidden] { display: none !important; }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 var(--gutter); height: 60px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); }
.marca { display: flex; align-items: baseline; gap: 6px; text-decoration: none; justify-self: start; }
.marca-nome { font-weight: 800; font-stretch: 125%; font-size: 19px; letter-spacing: -0.01em; text-transform: uppercase; }
.marca-sub { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cinza); }
.menu { display: flex; gap: clamp(20px, 3vw, 44px); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.menu a { text-decoration: none; padding: 6px 0; }
.menu a:hover { color: var(--verde); text-decoration: underline; text-underline-offset: 6px; }
.botao-sacola { justify-self: end; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 4px; border: 0; background: transparent; font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.botao-sacola:hover { color: var(--verde); }
.contador { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--verde); color: #fff; font-size: 12px; letter-spacing: 0; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid transparent; border-radius: 0; transition: background-color .2s ease, color .2s ease; }
.btn-cheio { background: var(--tinta); color: #fff; }
.btn-cheio:hover { background: var(--verde); }
.btn-cheio:disabled { background: #b5b5b2; cursor: not-allowed; }
.btn-linha { background: transparent; border-color: var(--tinta); color: var(--tinta); }
.btn-linha:hover { background: var(--tinta); color: #fff; }

/* ---------- abertura editorial ---------- */
.abertura { padding: 0 var(--gutter); }
.gigante { margin: clamp(16px, 3vw, 40px) 0 0; font-size: clamp(56px, 10vw, 148px); line-height: .85; font-stretch: 125%; letter-spacing: -0.04em; overflow-wrap: normal; }
.ed { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); }
.ed-1 { margin-top: clamp(24px, 4vw, 56px); align-items: start; }
.ed-sobre { grid-column: 1 / span 3; grid-row: 1; margin: 0; font-size: 14px; line-height: 1.6; max-width: 30ch; }
.ed-foto { margin: 0; background: var(--cartao); overflow: hidden; }
.ed-foto a { display: block; height: 100%; }
.ed-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--saida); }
.ed-foto a:hover img { transform: scale(1.025); }
.ed-foto-1 { grid-column: 4 / span 8; grid-row: 1 / span 2; aspect-ratio: 5 / 4; }
.ed-foto-1 .video { height: 100%; aspect-ratio: auto; }
.assinatura { grid-column: 9 / span 4; grid-row: 2; align-self: end; justify-self: end; z-index: 1; font: 400 clamp(40px, 5.6vw, 80px)/1 var(--marcador); color: var(--caramelo-marcador); transform: rotate(-8deg); white-space: nowrap; pointer-events: none; margin: 0 -0.2em 0.4em 0; }
.ed-legenda { grid-column: 4 / span 6; margin: 22px 0 0; font-size: clamp(16px, 1.6vw, 21px); font-weight: 800; font-stretch: 112%; text-transform: uppercase; line-height: 1.2; }
.ed-2 { margin-top: clamp(56px, 9vw, 128px); align-items: end; padding-bottom: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--linha); }
.ed-foto-2 { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.ed-foto-3 { grid-column: 6 / span 2; aspect-ratio: 3 / 4; }
.ed-texto { grid-column: 9 / span 4; align-self: start; }
.ed-local { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cinza); }
.ed-texto h2 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 20px; }
.passos { margin: 0 0 28px; padding: 0 0 0 1.4em; display: grid; gap: 12px; font-size: 14px; line-height: 1.6; }
.passos li::marker { font-weight: 700; }

/* ---------- seções ---------- */
.secao { padding: clamp(48px, 7vw, 96px) var(--gutter); }
.secao + .secao { padding-top: 0; }
.secao-cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 44px); }
.secao h2 { font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -0.03em; line-height: .95; }
.filtros { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.filtro { flex: none; height: 40px; padding: 0; border: 0; background: transparent; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cinza); cursor: pointer; white-space: nowrap; }
.filtro:hover { color: var(--tinta); }
.filtro[aria-pressed="true"] { color: var(--tinta); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.carregando { color: var(--cinza); }

/* ---------- grade de produtos ---------- */
.grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(12px, 2vw, 28px); }
.card { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.card-foto { order: 0; aspect-ratio: 4 / 5; background: var(--cartao); overflow: hidden; margin-bottom: 10px; }
.card-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--saida); }
.card-foto img.deitada, .ed-foto img.deitada, .slide img.deitada { object-fit: contain; }
.card:hover .card-foto img { transform: scale(1.03); }
.card-nome { order: 1; font-weight: 600; font-size: 12px; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; }
.card:hover .card-nome { text-decoration: underline; text-underline-offset: 3px; }
.card-cat { order: 2; font-size: 12px; color: var(--cinza); }
.card-preco { order: 3; margin-top: 4px; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.card-preco.sob, .preco.sob { color: var(--caramelo-texto); font-weight: 600; font-size: 14px; }
.sem-foto { width: 100%; height: 100%; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--cartao); }
.sem-foto svg { width: 58%; max-width: 220px; fill: #fff; stroke: #8f8f8b; stroke-width: 1; stroke-linejoin: round; }
.sem-foto span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--cinza); }
.vazio { color: var(--cinza); }

/* ---------- medidas ---------- */
.medidas { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.abas { display: flex; gap: 0; border-bottom: 1px solid var(--linha); margin-bottom: 4px; overflow-x: auto; }
.abas button { flex: none; height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; color: var(--cinza); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.abas button[aria-selected="true"] { color: var(--tinta); border-bottom-color: var(--tinta); }
.tabela { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabela th, .tabela td { padding: 10px 8px; border-bottom: 1px solid var(--linha); text-align: left; }
.tabela thead th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--cinza); font-weight: 600; }
.tabela tbody th { font-weight: 700; }
.nota { font-size: 14px; color: var(--cinza); margin: 12px 0 0; }
.tecidos { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tecidos li { border-top: 1px solid var(--linha); padding-top: 12px; }
.tecidos b { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.tecidos span { color: var(--cinza); font-size: 15px; }

/* ---------- rodapé ---------- */
.rodape { padding: clamp(32px, 4vw, 48px) var(--gutter) clamp(28px, 4vw, 40px); border-top: 1px solid var(--linha); }
.rodape-cima { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.rodape-chamada { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; }
#rodape-local { margin: 10px 0 0; font-size: 13px; color: var(--cinza); }
.contatos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px 56px; }
.contatos span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contatos a { font-size: 14px; text-decoration: none; }
.contatos a:hover { color: var(--verde); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- barra fixa do pedido (celular) ---------- */
.barra-pedido { position: fixed; z-index: 9; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--papel); border-top: 1px solid var(--linha); font-weight: 600; font-size: 14px; }
.barra-pedido .btn { min-height: 44px; }

/* ---------- painéis (dialog) ---------- */
.painel { max-width: 100vw; border: 0; padding: 0; background: var(--papel); color: var(--tinta); max-height: 100dvh; }
.painel::backdrop { background: rgba(17, 17, 17, .5); }
.fechar-form { position: sticky; top: 0; z-index: 2; height: 0; display: flex; justify-content: flex-end; }
.fechar { width: 44px; height: 44px; margin: 8px; border: 0; background: var(--papel); font-size: 26px; line-height: 1; cursor: pointer; }
.fechar:hover { color: var(--verde); }
.painel-produto { width: min(1080px, 100vw - 32px); }
.produto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.galeria { position: relative; background: var(--cartao); min-width: 0; }
.trilho { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; }
.trilho::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.slide img, .slide .video, .slide .sem-foto { width: 100%; height: 100%; object-fit: cover; }
.pontos { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.pontos button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(17, 17, 17, .3); cursor: pointer; }
.pontos button[aria-current] { background: var(--tinta); }
.produto-form { padding: 28px clamp(16px, 3vw, 36px) 0; display: flex; flex-direction: column; }
.sobretitulo { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cinza); }
.produto-form h2 { font-size: clamp(24px, 2.8vw, 34px); padding-right: 40px; }
.preco { font-size: 20px; font-weight: 700; margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.produto-desc { color: var(--cinza); margin: 10px 0 4px; }
.opcoes { border: 0; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opcoes legend, .tamanhos legend { width: 100%; padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cinza); }
.opcao-unica { margin: 14px 0 0; font-size: 15px; }
.opcao-unica span { display: inline-block; min-width: 64px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cinza); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--linha); font-size: 14px; background: #fff; transition: border-color .15s ease; }
.chip:hover span { border-color: var(--tinta); }
.chip input:checked + span { border-color: var(--tinta); background: var(--tinta); color: #fff; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--verde); outline-offset: 2px; }
.tamanhos { border: 0; padding: 0; margin: 20px 0 0; }
.link-medidas { float: right; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--caramelo-texto); }
.tamanhos-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tamanho { display: grid; grid-template-columns: auto 34px minmax(0, 1fr) 34px; align-items: center; border: 1px solid var(--linha); background: #fff; padding-left: 12px; }
.tamanho-nome { font-weight: 700; min-width: 26px; }
.passo { height: 40px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.passo:hover { color: var(--verde); }
.tamanho input { width: 100%; min-width: 0; height: 40px; border: 0; text-align: center; font-variant-numeric: tabular-nums; background: none; -moz-appearance: textfield; }
.tamanho input::-webkit-inner-spin-button, .tamanho input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.campo { display: block; margin-top: 16px; font-size: 14px; font-weight: 600; }
.campo input, .campo textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--linha); background: #fff; font-weight: 400; font-size: 16px; resize: vertical; }
.campo input:focus, .campo textarea:focus { border-color: var(--tinta); outline: none; }
.opcional { font-weight: 400; color: var(--cinza); }
.produto-rodape { position: sticky; bottom: 0; margin-top: auto; padding: 16px 0 20px; background: var(--papel); display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--linha); margin-top: 20px; }
.subtotal { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.painel-sacola { width: min(560px, 100vw); height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 24px clamp(16px, 3vw, 28px) 32px; }
.painel-sacola .fechar-form { margin: -16px -12px 0 0; }
.painel-sacola h2 { position: sticky; top: -24px; z-index: 1; font-size: 30px; margin: -24px 0 4px; padding: 24px 52px 14px 0; background: var(--papel); }
.itens { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linha); }
.item { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linha); }
.item > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item span { font-size: 14px; color: var(--cinza); }
.item-nota { font-style: italic; overflow-wrap: anywhere; }
.item-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; flex: none; }
.item-valor { font-weight: 700; color: var(--tinta) !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.remover { border: 0; background: none; padding: 4px 0; font-size: 13px; color: var(--erro); text-decoration: underline; cursor: pointer; }
.total { font-weight: 700; font-size: 17px; margin: 14px 0 4px; font-variant-numeric: tabular-nums; }
.campos-duplos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.previa { margin-top: 16px; font-size: 14px; }
.previa summary { cursor: pointer; color: var(--caramelo-texto); font-weight: 600; }
.previa pre { white-space: pre-wrap; font: 13px/1.5 ui-monospace, Consolas, monospace; background: var(--cartao); padding: 12px; margin: 8px 0 0; }
.enviar-titulo { margin: 22px 0 8px; font-weight: 700; }
.vendedores { display: grid; gap: 8px; }
.btn-whats { justify-content: space-between; background: #1f7a4d; color: #fff; }
.btn-whats:hover { background: #18663f; }
.btn-whats span { font-weight: 500; opacity: .9; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.enviado { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--tinta); background: #fff; }
.enviado p { margin: 0 0 10px; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-play { position: absolute; left: 16px; bottom: 16px; padding: 12px 18px; background: var(--papel); color: var(--tinta); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- telas menores ---------- */
@media (max-width: 960px) {
  .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ed-sobre { grid-column: 1 / span 4; }
  .ed-foto-1, .ed-legenda { grid-column: 5 / span 8; }
  .ed-foto-2 { grid-column: 1 / span 6; }
  .ed-foto-3 { grid-column: 7 / span 2; }
}
@media (max-width: 760px) {
  .topo { grid-template-columns: 1fr auto; }
  .menu { display: none; }
  .ed-1, .ed-2 { display: flex; flex-direction: column; }
  .ed-foto-1 { aspect-ratio: 4 / 5; }
  .assinatura { align-self: flex-end; margin: -1.2em 2px 0 0; font-size: 46px; }
  .ed-legenda { margin-top: 16px; }
  .ed-sobre { order: 3; margin-top: 16px; max-width: none; font-size: 15px; }
  .ed-2 { margin-top: 48px; display: grid; grid-template-columns: 2fr 1fr; gap: 12px; align-items: end; }
  .ed-foto-2, .ed-foto-3 { grid-column: auto; }
  .ed-texto { grid-column: 1 / -1; margin-top: 24px; }
  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .medidas { grid-template-columns: 1fr; }
  .painel-produto { width: 100vw; max-width: 100vw; height: 100dvh; margin: 0; }
  .produto { grid-template-columns: 1fr; }
  .trilho { aspect-ratio: 1 / 1; }
  .produto-form { padding-top: 20px; }
  .tamanhos-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campos-duplos { grid-template-columns: 1fr; }
  body:has(.barra-pedido:not([hidden])) .rodape { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
