/* Layout: cabeçalho fixo, topo em duas colunas (texto + logo vertical), loja com filtros, passo a passo, visite a loja com foto e endereço, rodapé e área da loja. */
:root {
  --bg: #100d09;
  --surface: #1a1610;
  --surface-2: #241e16;
  --line: #3a3126;
  --fg: #f3ebd8;
  --muted: #b5a98f;
  --gold: #e9b824;
  --gold-light: #f7de6b;
  --gold-soft: rgba(233, 184, 36, 0.13);
  --on-gold: #1c1305;
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--bg); z-index: 30;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
  background: rgba(16, 13, 9, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.nav { display: none; gap: 28px; margin-left: auto; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 0; }
.nav a:hover { color: var(--gold); }
.cart-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
  padding: 9px 16px; border-radius: 4px; cursor: pointer; font-weight: 600;
}
.cart-btn:hover { background: var(--gold-soft); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--gold); color: var(--on-gold); font-size: 13px; font-weight: 700;
  display: inline-grid; place-items: center; font-variant-numeric: tabular-nums;
}
@media (min-width: 760px) { .nav { display: flex; } .cart-btn { margin-left: 0; } }

/* Hero */
.hero { padding-block: 48px 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.02em; max-width: 14ch; }
.hero p.lead { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 4px; border: 1px solid var(--gold);
  background: var(--gold); color: var(--on-gold); font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: var(--gold-soft); }
.btn.small { padding: 8px 14px; font-size: 0.92rem; }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art img { width: clamp(140px, 24vw, 230px); height: auto; display: block; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (min-width: 900px) {
  .hero { padding-block: 72px 88px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
}

/* Loja */
.shop { padding-block: 24px 80px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-variant-numeric: tabular-nums; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding-block: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; }
.chip {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 500;
}
.chip:hover { border-color: var(--gold); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 700; }
.field {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 10px 14px; min-width: 0;
}
.field:focus-within { border-color: var(--gold); }
.field input, .field select { background: transparent; border: 0; outline: 0; width: 100%; }
.field select option { background: var(--surface); color: var(--fg); }
.field.search { flex: 1 1 240px; }
.field.sort { flex: 0 1 200px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--surface); border-radius: 4px; display: flex; flex-direction: column; min-width: 0; }
.card .art-wrap { background: var(--surface-2); border-radius: 4px 4px 0 0; padding: 14px; }
.art { width: 100%; height: auto; display: block; aspect-ratio: 1; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art .soft { fill: var(--gold-soft); }
.art .solid { fill: var(--gold); stroke: none; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; flex: 1; }
.card h3 { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.card .spec { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.card .buy { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.empty { grid-column: 1 / -1; padding: 40px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 4px; }

/* Como comprar */
.steps { background: var(--surface); border-block: 1px solid var(--line); margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); padding-block: 64px; }
.steps ol { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.steps .n { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--gold); min-width: 1ch; }
.steps h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.steps p { color: var(--muted); max-width: 38ch; }

/* Visite a loja */
.visit { padding-block: 72px; }
.visit .wrap { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 860px) { .visit .wrap { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; } }
.visit figure { margin: 0; max-width: 520px; width: 100%; }
.visit figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.visit h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; }
.visit-intro { color: var(--muted); margin-top: 12px; max-width: 46ch; }
.address { font-style: normal; margin-top: 24px; font-size: 1.1rem; line-height: 1.55; }
.address strong { display: block; font-family: var(--font-display); font-size: 1.35rem; }
.hours { margin-top: 10px; color: var(--muted); max-width: 46ch; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.wa { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.wa .label { color: var(--muted); }
.wa .num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; user-select: all; }
.wa .visit-actions { margin-top: 12px; }

footer { border-top: 1px solid var(--line); margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 40px; color: var(--muted); font-size: 0.92rem; }
footer img { height: 32px; width: auto; display: block; }
footer address { font-style: normal; line-height: 1.55; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: inherit; }
.foot-links a:hover { color: var(--gold); }

/* Carrinho */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 40; }
.scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 50;
  background: var(--surface); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) 0;
  transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.2rem; font-weight: 700; }
.icon-btn { background: transparent; border: 1px solid var(--line); border-radius: 4px; width: 38px; height: 38px; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.drawer-list { list-style: none; margin: 0; padding: 8px 20px; overflow-y: auto; flex: 1; }
.drawer-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-list .thumb { background: var(--surface-2); border-radius: 4px; padding: 4px; }
.drawer-list .thumb svg { width: 100%; height: auto; display: block; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.drawer-list .thumb .soft { fill: var(--gold-soft); }
.drawer-list .thumb .solid { fill: var(--gold); stroke: none; }
.drawer-list .name { font-weight: 600; line-height: 1.3; }
.drawer-list .line-price { color: var(--muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--line); border-radius: 4px; }
.qty button { background: transparent; border: 0; width: 34px; height: 32px; cursor: pointer; font-size: 1.1rem; }
.qty button:hover { color: var(--gold); }
.qty span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.drawer-empty { padding: 40px 24px; color: var(--muted); text-align: center; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 20px 20px; display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total strong { font-family: var(--font-display); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.drawer-foot .note { color: var(--muted); font-size: 0.85rem; }
.drawer-foot details summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.drawer-foot textarea { width: 100%; min-height: 120px; margin-top: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 10px; resize: vertical; font-size: 0.88rem; }
.btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: var(--fg); color: var(--bg); padding: 11px 18px; border-radius: 4px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Cartões com foto e botões de detalhe */
button.art-wrap { display: block; width: 100%; border: 0; cursor: pointer; color: inherit; }
.card .art-wrap.has-photo { padding: 0; }
.photo { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 4px 4px 0 0; background: var(--surface-2); }
.title-btn { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; font-family: var(--font-display); font-weight: 700; line-height: 1.25; color: inherit; }
.title-btn:hover { color: var(--gold); }
.card.off .art-wrap { opacity: 0.55; }
.soldout { color: #e9a38f; font-weight: 600; font-size: 0.9rem; }
.muted { color: var(--muted); }
.price.big { font-size: 1.5rem; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: inherit; font: inherit; }
.linkbtn:hover { color: var(--gold); }

/* Diálogos */
dialog { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 0; width: min(640px, calc(100% - 32px)); max-height: calc(100% - 32px); }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 1.15rem; font-weight: 700; }
.dlg-body { padding: 20px; display: grid; gap: 14px; overflow-y: auto; }
.detail { grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 560px) { .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; } }
.detail .photo { border-radius: 4px; }
.detail .art { background: var(--surface-2); border-radius: 4px; padding: 16px; }
.detail-info { display: grid; gap: 12px; align-content: start; justify-items: start; }
.prose h3 { font-size: 1rem; font-weight: 700; margin-top: 6px; }
.prose p, .prose li { color: var(--muted); max-width: 62ch; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Aviso de cookies */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--surface); border-top: 1px solid var(--gold); padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.consent .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.consent p { flex: 1 1 340px; min-width: 0; font-size: 0.95rem; max-width: 72ch; }

/* Área da loja */
.admin-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); background: rgba(16, 13, 9, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.admin-top .brand img { height: 36px; }
.admin-top .title { margin-left: auto; color: var(--muted); font-weight: 600; }
.admin-main { padding-block: 40px 140px; }
.admin-main h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 800; }
.admin-main .lead { color: var(--muted); margin-top: 10px; max-width: 62ch; }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 24px; display: grid; gap: 14px; max-width: 600px; justify-items: start; }
.notice h2 { font-size: 1.2rem; }
.notice textarea { width: 100%; min-height: 160px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 10px; font-size: 0.85rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 28px 24px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 600; }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.panel { display: grid; gap: 28px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 20px; display: grid; gap: 16px; min-width: 0; }
.form-card h2, .plist-head h2 { font-size: 1.2rem; font-weight: 700; }
.fgrid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fgrid .wide { grid-column: 1 / -1; } }
.fld { display: grid; gap: 6px; min-width: 0; align-content: start; }
.fld > span { font-weight: 600; font-size: 0.92rem; }
.fld small, .hint { color: var(--muted); font-size: 0.85rem; }
.fld input:not([type="checkbox"]):not([type="file"]), .fld select { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; width: 100%; min-width: 0; }
.fld input:focus, .fld select:focus { border-color: var(--gold); outline: none; }
.fld input[type="file"] { max-width: 100%; font-size: 0.9rem; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.photo-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.photo-prev { width: 84px; height: 84px; flex: none; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-prev svg { width: 70%; height: 70%; fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.photo-actions { display: grid; gap: 8px; min-width: 0; justify-items: start; }
.form-error { color: #e9a38f; min-height: 1.4em; font-weight: 600; }
.plist-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plist li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.plist .thumb { width: 56px; height: 56px; border-radius: 4px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.plist .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plist .thumb svg { width: 80%; height: 80%; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.plist .thumb .soft { fill: var(--gold-soft); }
.plist .thumb .solid { fill: var(--gold); stroke: none; }
.plist .meta { min-width: 0; }
.plist .meta strong { display: block; overflow-wrap: anywhere; }
.plist .meta span { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.plist .acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 560px) { .plist li { grid-template-columns: 56px minmax(0, 1fr); } .plist .acts { grid-column: 1 / -1; justify-content: flex-start; } }
.badge { display: inline-block; font-size: 0.78rem; padding: 1px 8px; border-radius: 999px; border: 1px solid #7a4a3d; color: #e9a38f; margin-left: 6px; }
.pubbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface-2); border-top: 1px solid var(--gold); padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.status { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 6px 20px; margin: 0; font-size: 0.95rem; }
.status dt { color: var(--muted); }
.status dd { margin: 0; overflow-wrap: anywhere; }
.evlog { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; max-height: 180px; overflow: auto; }
#admin:not([hidden]) ~ #consent { display: none; }
.fld small.bad { color: #e9a38f; font-weight: 600; }
.fld input[aria-invalid="true"] { border-color: #e9a38f; }
#diag-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }

/* rodapé: ícone ao lado do texto */
.foot-links .linkbtn{display:inline-flex;align-items:center;gap:.4rem}

/* botão flutuante do WhatsApp */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); }
.wa-float:hover { background: var(--gold-light); }
.wa-float svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wa-float[hidden] { display: none; }
#consent:not([hidden]) ~ .wa-float, .scrim.open ~ .wa-float { display: none; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }
#d-share { margin-top: 10px; }

/* <picture> só entrega o WebP; o layout continua sendo do <img> */
picture { display: contents; }

/* ---- promoção, destaque e estoque ---- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.card { position: relative; }
.tags { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.tag { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.02em; padding: 3px 9px; border-radius: 999px; line-height: 1.4; }
.tag.top { background: var(--gold); color: var(--on-gold); }
.tag.promo { background: #f3ebd8; color: #8a1f11; }
.price .was { display: block; font-size: 0.82rem; font-weight: 500; color: var(--muted); line-height: 1.2; }
.price .was del { text-decoration-thickness: 1px; }
.price .now { display: block; }
.price.big .was { font-size: 1rem; }
.stock { color: var(--gold-light); font-size: 0.85rem; font-weight: 600; margin: 0; }
.badge.gold { border-color: var(--gold); color: var(--gold); }
.plist .acts .mv { padding-left: 10px; padding-right: 10px; min-width: 38px; }
.plist .acts button:disabled { opacity: 0.35; cursor: default; }
.qty button:disabled { opacity: 0.35; cursor: default; }

/* ---- vitrine: filtros, aviso de cookies, detalhe e carrinho no celular ---- */

/* categorias numa faixa que rola de lado e fica fixa embaixo do cabeçalho */
.chips-bar {
  position: sticky; top: calc(69px + env(safe-area-inset-top, 0px)); z-index: 15;
  background: var(--bg);
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  padding: 10px max(16px, env(safe-area-inset-left, 0px));
  margin-bottom: 14px;
}
.toolbar { margin-top: 18px; margin-bottom: 22px; }
@media (max-width: 719px) {
  .field.search { flex: 1 1 150px; }
  .field.sort { flex: 0 1 150px; }
  .field.sort select { text-overflow: ellipsis; }
}

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.qty-row .qty { margin-top: 0; }
.subtotal { font-weight: 700; font-variant-numeric: tabular-nums; }
.drawer-list .thumb.has-photo { padding: 0; overflow: hidden; align-self: start; aspect-ratio: 1; }
.drawer-list .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (pointer: coarse) {
  .qty button { width: 42px; height: 40px; }
  .btn.small { min-height: 40px; }
}

@media (max-width: 559px) {
  .hero { padding-block: 32px 40px; }
  .hero .wrap { gap: 28px; }
  /* aviso de cookies mais baixo, para não cobrir os produtos */
  .consent { padding-top: 12px; }
  .consent .wrap { gap: 10px; }
  .consent p { flex-basis: 100%; font-size: 0.84rem; line-height: 1.4; }
  .consent .row { width: 100%; gap: 8px; flex-wrap: nowrap; }
  .consent .row .btn { flex: 1; min-height: 40px; padding: 8px 12px; font-size: 0.9rem; }
  /* detalhe do produto: a imagem não empurra o preço e o botão para fora da tela */
  #d-art { display: grid; justify-items: center; }
  #d-art .photo, #d-art .art { height: 34vh; height: 34dvh; width: auto; max-width: 100%; aspect-ratio: 1; object-fit: cover; }
}
