/* LuvinCo — componentes */

/* ── marca ─────────────────────────────────────────────── */
.wordmark { height: 26px; width: auto; color: var(--brand); overflow: visible; }
.symbol { height: 34px; width: 34px; color: var(--brand); overflow: visible; }
.mark-dot { fill: var(--ambar-500); }
.logo-h { display: inline-flex; align-items: center; gap: 10px; }
.half-mark { width: 1em; height: 1em; overflow: visible; }

/* ── faixa da campanha ─────────────────────────────────── */
.promo-bar { background: var(--pinheiro-900); color: var(--nevoa-50); font-size: var(--fs-sm); position: relative; overflow: hidden; }
.promo-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(232 201 135 / 0.14) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 7s var(--ease-in-out) 1.2s infinite; pointer-events: none; }
@keyframes sheen { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .promo-bar::after { animation: none; display: none; } }
.promo-track { max-width: var(--maxw); margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.promo-track p { margin: 0; }
.promo-track strong { color: var(--ambar-300); font-weight: 600; }
.promo-sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--ambar-400); margin: 0 10px; vertical-align: middle; }
.promo-half { width: 20px; height: 20px; color: var(--ambar-400); flex: none; }
.promo-track a { color: var(--nevoa-50); font-weight: 600; white-space: nowrap; }
.promo-track a:hover { color: var(--ambar-300); }
@media (max-width: 720px) { .promo-track { justify-content: space-between; text-align: left; font-size: 0.8125rem; } .promo-track p span.promo-sep, .promo-track p strong + .promo-sep { display: none; } .promo-track p strong { display: block; } .promo-half { display: none; } }

/* ── cabeçalho ─────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgb(241 242 236 / 0.9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), background var(--t-mid) var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 8px 24px -20px rgb(11 42 31 / 0.5); background: rgb(250 250 246 / 0.94); }
.hdr-inner { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); height: var(--header-h); transition: height var(--t-mid) var(--ease); }
.site-header.is-scrolled .hdr-inner { height: 62px; }
.hdr-logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.hdr-logo .symbol { height: 36px; width: 36px; transition: transform var(--t-mid) var(--ease); }
.hdr-logo .wordmark { height: 25px; transition: transform var(--t-mid) var(--ease); transform-origin: left center; }
.site-header.is-scrolled .hdr-logo .symbol { transform: scale(0.86); }
.hdr-logo:hover .mark-dot { fill: var(--ambar-400); }
.icon-btn.hdr-menu { display: none; } /* .icon-btn (mais abaixo) não pode reexibir o botão no desktop */

.hdr-nav { flex: 1; min-width: 0; }
.hdr-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 11px; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.9688rem; white-space: nowrap; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.nav-link:hover, .nav-item.is-open > .nav-link { background: var(--surface-2); color: var(--brand); }
.nav-caret { width: 16px; height: 16px; opacity: 0.6; transition: transform var(--t-mid) var(--ease); }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }
.nav-campaign { color: var(--pinheiro-800); }
.nav-half { width: 18px; height: 18px; color: var(--ambar-500); }

.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: var(--z-mega); background: var(--surface); border-top: 1px solid var(--line-soft); box-shadow: var(--sh-3); opacity: 0; visibility: hidden; transform: translateY(-6px); clip-path: inset(0 0 100% 0); transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), clip-path var(--t-mid) var(--ease), visibility 0s linear var(--t-mid); }
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: none; clip-path: inset(0 0 -40px 0); transition-delay: 0s; }
.mega-inner { max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) 40px; display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 48px; }
.mega-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
.mega-tagline { color: var(--ink-3); margin-bottom: 20px; }
.mega-links { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line-soft); }
.mega-links a { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); font-weight: 550; transition: padding var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.mega-links a:hover { padding-left: 8px; color: var(--brand); }
.mega-links small { color: var(--ink-3); font-weight: 400; }
.mega-picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mega-picks a { display: grid; gap: 8px; text-decoration: none; color: var(--ink); }
.mega-pick-img { display: block; aspect-ratio: 1; border-radius: var(--r-arch); overflow: hidden; background: var(--photo-bg); }
.mega-pick-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform var(--t-slow) var(--ease); }
.mega-picks a:hover img { transform: scale(1.05); }
.mega-pick-name { font-size: var(--fs-sm); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hdr-search { position: relative; flex: 0 1 220px; min-width: 160px; }
@media (max-width: 1380px) and (min-width: 1181px) { .hdr-search { flex-basis: 180px; } .hdr-act-label { display: none; } .nav-link { padding-inline: 9px; } }
.hdr-search input { width: 100%; height: 42px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); padding: 0 44px 0 18px; font-size: 0.9375rem; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.hdr-search input::placeholder { color: var(--ink-3); }
.hdr-search input:focus { outline: none; border-color: var(--pinheiro-600); box-shadow: 0 0 0 3px rgb(43 107 83 / 0.18); }
.hdr-search-btn { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--brand); color: var(--nevoa-50); display: grid; place-items: center; }
.hdr-search-btn .icon { width: 18px; height: 18px; }
.hdr-actions .hdr-search-toggle { display: none; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; width: min(440px, 92vw); background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-3); border: 1px solid var(--line-soft); padding: 8px; z-index: var(--z-mega); }
.suggest a { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--surface-2); }
.suggest img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--photo-bg); mix-blend-mode: multiply; }
.suggest-name { font-size: var(--fs-sm); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.suggest-price { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.suggest-all { display: block !important; text-align: center; font-weight: 600; color: var(--brand) !important; margin-top: 4px; }
.suggest-empty { padding: 12px; margin: 0; color: var(--ink-3); font-size: var(--fs-sm); }

.hdr-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr-act { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.9375rem; transition: background var(--t-fast) var(--ease); }
.hdr-act:hover { background: var(--surface-2); color: var(--ink); }
.hdr-act-label { white-space: nowrap; }
.hdr-act-label small { font-weight: 400; color: var(--ink-3); font-size: 0.8125rem; }
.count { position: absolute; top: 4px; left: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ambar-500); color: var(--pinheiro-900); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.count.is-bump { animation: bump 420ms var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }

@media (max-width: 1180px) {
  .hdr-nav { display: none; }
  .icon-btn.hdr-menu { display: inline-grid; }
  .hdr-search { margin-left: auto; }
}
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .hdr-search { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 10px var(--gutter) 12px; background: var(--surface); border-bottom: 1px solid var(--line-soft); flex: none; }
  .hdr-search.is-open { display: block; }
  .hdr-search-btn { right: calc(var(--gutter) + 4px); top: 14px; }
  .hdr-actions .hdr-search-toggle { display: inline-grid; }
  .hdr-act-label { display: none; }
  .hdr-logo .wordmark { height: 21px; }
  .hdr-logo .symbol { height: 30px; width: 30px; }
  .hdr-act { padding: 0 9px; }
  .count { left: 22px; }
}
@media (max-width: 380px) { .hdr-logo .symbol { display: none; } }

/* ── botões ────────────────────────────────────────────── */
.btn { --btn-bg: var(--brand); --btn-fg: var(--nevoa-50); --btn-bd: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); border: 1.5px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg); font-weight: 650; font-size: 0.9688rem; letter-spacing: 0.005em; text-decoration: none; white-space: nowrap; position: relative; isolation: isolate; overflow: hidden; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgb(11 42 31 / 0.55); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { --btn-bg: var(--pinheiro-800); }
.btn-primary:hover { --btn-bg: var(--pinheiro-700); }
.btn-gold { --btn-bg: var(--ambar-400); --btn-fg: var(--pinheiro-900); }
.btn-gold:hover { --btn-bg: var(--ambar-300); }
.btn-quiet { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn-quiet:hover { --btn-bg: var(--surface); --btn-bd: var(--pinheiro-600); --btn-fg: var(--brand); box-shadow: none; }
.btn-ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor; }
.btn-ghost:hover { --btn-bg: rgb(250 250 246 / 0.1); box-shadow: none; }
.btn-danger:hover { --btn-fg: var(--danger); --btn-bd: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: var(--fs-sm); }
.btn-sm .icon { width: 18px; height: 18px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.0313rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { --btn-bg: var(--pedra-300); --btn-fg: var(--ink-3); cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin 700ms linear infinite; }
.btn.is-done { --btn-bg: var(--pinheiro-600); }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn-line { border: 1.5px solid var(--line); }
.icon-btn-line:hover { border-color: var(--pinheiro-600); color: var(--brand); background: var(--surface); }
.link-strong { font-weight: 650; color: var(--brand); text-decoration: underline; text-decoration-color: var(--ambar-400); text-decoration-thickness: 2px; text-underline-offset: 0.3em; transition: text-decoration-color var(--t-fast) var(--ease); }
.link-strong:hover { text-decoration-color: var(--brand); }

/* ── campos ────────────────────────────────────────────── */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.9063rem; }
.field label small { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea, .select select { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.field input:hover, .select select:hover { border-color: var(--pedra-500); }
.field input:focus, .field select:focus, .select select:focus { outline: none; border-color: var(--pinheiro-600); box-shadow: 0 0 0 3px rgb(43 107 83 / 0.18); }
.field input[aria-invalid="true"], .field.has-error input { border-color: var(--danger); box-shadow: 0 0 0 3px rgb(163 57 43 / 0.12); }
.field-error { color: var(--danger); font-size: var(--fs-sm); margin: 0; display: flex; gap: 6px; }
.field-hint { color: var(--ink-3); font-size: var(--fs-sm); margin: 0; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 52px; }
.input-icon { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: transparent; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink-2); }
.input-icon:hover { background: var(--surface-2); }
.input-icon .when-shown { display: none; }
.input-icon[aria-pressed="true"] .when-shown { display: block; }
.input-icon[aria-pressed="true"] .when-hidden { display: none; }
.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; height: 42px; cursor: pointer; }
.select .icon { position: absolute; right: 12px; width: 18px; height: 18px; pointer-events: none; color: var(--ink-2); }
.field .select { display: flex; }
.field .select select { height: 48px; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.9375rem; line-height: 1.4; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--pedra-500); border-radius: 5px; background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--nevoa-50); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform var(--t-fast) var(--ease); }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; }

.form-status { margin: 0 0 12px; font-size: 0.9375rem; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); background: var(--vermelho-100); padding: 10px 12px; border-radius: var(--r-sm); }
.form-status.is-ok { color: var(--pinheiro-700); background: var(--pinheiro-100); padding: 10px 12px; border-radius: var(--r-sm); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 16px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; font-size: 0.9375rem; }

.pw-rules { list-style: none; padding: 0; margin: -6px 0 16px; display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--ink-3); }
.pw-rules li { display: inline-flex; align-items: center; gap: 6px; }
.pw-rules li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--pedra-500); transition: background var(--t-fast), border-color var(--t-fast); }
.pw-rules li.is-ok { color: var(--pinheiro-700); }
.pw-rules li.is-ok::before { background: var(--pinheiro-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-8.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: var(--pinheiro-600); }

/* ── chips, pílulas, notas ─────────────────────────────── */
.chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.9063rem; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.chip:hover { border-color: var(--pinheiro-600); color: var(--brand); }
.chip small { color: var(--ink-3); font-weight: 400; }
.chip.is-current { background: var(--brand); color: var(--nevoa-50); border-color: var(--brand); }
.chip-remove .icon { width: 16px; height: 16px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); background: var(--pinheiro-100); color: var(--pinheiro-700); font-size: var(--fs-xs); font-weight: 650; vertical-align: middle; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); font-size: 0.9375rem; margin: 0 0 20px; }
.note .icon { margin-top: 1px; }
.note-warn { background: var(--ambar-100); color: #5A4313; }
.note-ok { background: var(--pinheiro-100); color: var(--pinheiro-700); }
.note-muted { background: var(--surface-2); color: var(--ink-2); }

/* ── preço e selo ──────────────────────────────────────── */
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 0; }
.price-was { color: var(--ink-3); font-size: 0.875rem; text-decoration-thickness: 1.5px; text-decoration-color: rgb(98 104 102 / 0.75); order: 0; font-variant-numeric: tabular-nums; }
.price-now { font-family: var(--font-display); font-weight: 720; color: var(--ink); font-size: 1.25rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; order: 1; flex-basis: 100%; line-height: 1.15; }
.price-now small { font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; letter-spacing: 0; color: var(--ink-3); margin-right: 2px; }
.price-sm .price-now { font-size: 1.0625rem; }
.price-sm .price-was { font-size: 0.8125rem; }
.price-lg .price-now { font-size: 1.75rem; }
.price-xl .price-was { font-size: 1.0625rem; }
.price-xl .price-now { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); letter-spacing: -0.03em; }
.price-request { font-weight: 600; color: var(--ink-2); }

.badge-off { display: inline-flex; align-items: baseline; gap: 3px; padding: 5px 10px 5px 9px; border-radius: var(--r-pill); background: var(--pinheiro-800); color: var(--ambar-300); font-size: 0.75rem; font-weight: 650; line-height: 1; letter-spacing: 0.02em; }
.badge-off b { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 750; color: var(--ambar-300); letter-spacing: -0.02em; }

/* ── card de produto ───────────────────────────────────── */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.grid-products.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-products.grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-products, .grid-products.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line-soft); transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease); min-width: 0; }
.card-media { position: relative; display: block; aspect-ratio: 1; margin: 6px 6px 0; border-radius: calc(var(--r-md) - 4px); overflow: hidden; background: var(--photo-bg); isolation: isolate; }
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 700ms var(--ease), opacity var(--t-mid) var(--ease); }
.card-img-alt { opacity: 0; }
.card-media .badge-off, .card-state { position: absolute; left: 10px; top: 10px; z-index: 2; }
.card-state { padding: 5px 10px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: 0.75rem; font-weight: 650; box-shadow: var(--sh-1); }
.img-missing { position: absolute; inset: 0; display: grid; place-items: center; color: var(--pedra-300); }
.img-missing .symbol { width: 40%; height: 40%; color: var(--pedra-300); }
.fav-btn { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgb(250 250 246 / 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--ink-2); box-shadow: var(--sh-1); transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.fav-btn .icon { width: 20px; height: 20px; }
.fav-btn:hover { color: var(--brand); transform: scale(1.08); }
.fav-btn[aria-pressed="true"], .fav-wide[aria-pressed="true"] { color: var(--pinheiro-700); }
.fav-btn[aria-pressed="true"] .icon, .fav-wide[aria-pressed="true"] .icon { fill: currentColor; }
.fav-btn.is-pop .icon, .fav-wide.is-pop .icon { animation: pop 420ms var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 0.75rem; color: var(--ink-3); font-weight: 600; letter-spacing: 0.01em; }
.card-title { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 550; line-height: 1.35; letter-spacing: 0; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-md); }
.card-opts { font-size: 0.75rem; color: var(--ink-3); }
.card-body .price { margin-top: auto; padding-top: 4px; }
.card-actions { position: relative; z-index: 2; padding: 0 14px 14px; display: flex; }
.card-actions .btn { width: 100%; }
.card.is-unavailable .card-img { opacity: 0.55; filter: grayscale(0.4); }

@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
  .card:hover .card-img { transform: scale(1.045); }
  .card:hover .card-img-alt { opacity: 1; }
  .card:has(.card-img-alt):hover .card-img:not(.card-img-alt) { opacity: 0; }
  .card-actions { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; background: linear-gradient(to top, var(--surface) 70%, transparent); border-radius: 0 0 var(--r-md) var(--r-md); opacity: 0; transform: translateY(8px); transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
  .card:hover .card-actions, .card:focus-within .card-actions { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .card-body { padding: 10px 10px 12px; }
  .card-title { font-size: 0.875rem; }
  .card-actions { padding: 0 10px 10px; }
  .card-actions .btn { min-height: 38px; padding: 0 10px; font-size: 0.8438rem; }
  .fav-btn { top: 10px; right: 10px; width: 34px; height: 34px; }
  .card-media .badge-off { left: 8px; top: 8px; }
}

/* ── arco (assinatura) ─────────────────────────────────── */
.arch { margin: 0; border-radius: var(--r-arch); overflow: hidden; background: var(--photo-bg); position: relative; }
.arch img { width: 100%; height: 100%; object-fit: contain; padding: 16% 9% 7%; display: block; mix-blend-mode: multiply; }
.arch.fit-cover img, .fit-cover > img { object-fit: cover; padding: 0; mix-blend-mode: normal; }

/* ── trilho horizontal ─────────────────────────────────── */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 268px); gap: clamp(12px, 1.6vw, 20px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 6px var(--gutter) 24px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--pedra-300) transparent; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 760px) { .rail { grid-auto-columns: 46vw; } }
.rail-nav { display: flex; align-items: center; gap: 8px; }
.rail-nav .link-strong { margin-right: 12px; }
@media (max-width: 760px) { .rail-nav .icon-btn { display: none; } }

/* ── seções ────────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section-head { margin-bottom: clamp(20px, 2.5vw, 36px); max-width: 64ch; }
.section-head h2 { margin-bottom: 6px; }
.section-head p { color: var(--ink-3); margin: 0; font-size: var(--fs-lead); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; flex-wrap: wrap; }

/* ── trilha, paginação ─────────────────────────────────── */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 16px; font-size: var(--fs-sm); color: var(--ink-3); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--pedra-300); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-3); }

.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 40px 0 8px; flex-wrap: wrap; }
.pager ol { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.pager a, .pager-gap, .pager-step { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--r-pill); text-decoration: none; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pager a:hover { background: var(--surface-2); }
.pager a[aria-current="page"] { background: var(--brand); color: var(--nevoa-50); }
.pager-step { display: inline-flex; gap: 4px; border: 1.5px solid var(--line); }
.pager-step.is-off { opacity: 0.4; }
.pager-step .icon { width: 18px; height: 18px; }
@media (max-width: 560px) { .pager-step span { display: none; } }

/* ── abas ──────────────────────────────────────────────── */
.tablist { display: flex; gap: 6px; padding: 5px; border-radius: var(--r-pill); background: var(--surface-2); width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 24px; scrollbar-width: none; }
.tablist [role="tab"] { border: 0; background: transparent; padding: 10px 20px; border-radius: var(--r-pill); font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease); }
.tablist [role="tab"]:hover { color: var(--brand); }
.tablist [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--sh-1); }
.tabpanel.is-entering .card { animation: rise 520ms var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.tabpanel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.tabpanel-head p { margin: 0; color: var(--ink-2); }

/* ── tabelas de especificação ──────────────────────────── */
.spec-table { margin: 0; border-top: 1px solid var(--line); }
.spec-table > div { display: grid; grid-template-columns: minmax(140px, 32%) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.spec-table dt { color: var(--ink-3); font-weight: 550; }
.spec-table dd { margin: 0; overflow-wrap: anywhere; }
.spec-compact > div { padding: 8px 0; }

/* ── gavetas e sobreposição ────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: rgb(11 42 31 / 0.42); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; transition: opacity var(--t-mid) var(--ease); }
.scrim.is-on { opacity: 1; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: var(--z-drawer); width: min(440px, 92vw); background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--sh-3); transition: transform var(--t-mid) var(--ease); }
.drawer-right { right: 0; transform: translateX(104%); border-radius: var(--r-lg) 0 0 var(--r-lg); }
.drawer-left { left: 0; transform: translateX(-104%); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line-soft); }
.drawer-head h2 { margin: 0; font-size: 1.375rem; }
.drawer-body { overflow-y: auto; padding: 16px 22px 32px; flex: 1; }
.drawer-logo .wordmark { height: 22px; }
.drawer-logo .symbol { width: 30px; height: 30px; }
.drawer-search { position: relative; margin-bottom: 16px; }
.drawer-search input { width: 100%; height: 48px; border-radius: var(--r-pill); border: 1.5px solid var(--line); padding: 0 52px 0 18px; background: var(--bg); }
.drawer-search .icon-btn { position: absolute; right: 3px; top: 3px; }
.mnav { list-style: none; margin: 0; padding: 0; }
.mnav > li > a, .mnav summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 2px; border-bottom: 1px solid var(--line-soft); font-family: var(--font-display); font-size: 1.25rem; font-weight: 650; color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary .icon { transition: transform var(--t-mid) var(--ease); }
.mnav details[open] summary .icon { transform: rotate(180deg); }
.mnav details ul { list-style: none; padding: 6px 0 12px 12px; margin: 0; border-bottom: 1px solid var(--line-soft); }
.mnav details ul a { display: block; padding: 9px 0; color: var(--ink-2); text-decoration: none; font-weight: 550; }
.mnav details[open] ul { animation: rise 320ms var(--ease) both; }
.mnav-campaign { color: var(--brand) !important; justify-content: flex-start !important; }
.mnav-secondary { margin-top: 24px; }
.mnav-logout { all: unset; box-sizing: border-box; display: flex; align-items: center; width: 100%; color: inherit; cursor: pointer; }
.mnav-logout:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.mnav.mnav-secondary > li > a, .mnav.mnav-secondary > li > .mnav-logout { justify-content: flex-start; gap: 12px; padding: 12px 2px; font-family: var(--font-body); font-size: 1rem; font-weight: 550; border-bottom: 0; }

/* ── carrinho (gaveta e página) ────────────────────────── */
.cart-content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart-loading { padding: 24px; color: var(--ink-3); }
.cart-lines { list-style: none; margin: 0; padding: 8px 22px; overflow-y: auto; flex: 1; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); animation: rise 360ms var(--ease) both; }
.cart-line.is-removing { animation: fade-out 240ms var(--ease) forwards; }
@keyframes fade-out { to { opacity: 0; transform: translateX(24px); } }
.cart-line-img { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--photo-bg); }
.cart-line-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-line-name { font-size: 0.9063rem; font-weight: 550; line-height: 1.35; margin: 0 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-line-name a { color: var(--ink); text-decoration: none; }
.cart-line-name a:hover { color: var(--brand); text-decoration: underline; }
.cart-line-var { font-size: 0.8125rem; color: var(--ink-3); margin: 0 0 8px; }
.cart-line-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cart-line-price { text-align: right; }
.cart-line-price s { display: block; font-size: 0.8125rem; color: var(--ink-3); }
.cart-line-price b { font-family: var(--font-display); font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.cart-line-unit { font-size: 0.75rem; color: var(--ink-3); display: block; }
.cart-line.is-off { opacity: 0.6; }
.cart-line-off { color: var(--danger); font-size: var(--fs-sm); margin: 0 0 6px; }
.cart-remove { border: 0; background: none; padding: 6px; color: var(--ink-3); border-radius: var(--r-sm); display: inline-flex; gap: 4px; align-items: center; font-size: 0.8125rem; }
.cart-remove:hover { color: var(--danger); background: var(--vermelho-100); }
.cart-remove .icon { width: 18px; height: 18px; }
.cart-summary { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--bg); border-radius: 0 0 0 var(--r-lg); }
.cart-summary dl { margin: 0 0 14px; display: grid; gap: 6px; }
.cart-summary dl div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.cart-summary dt { color: var(--ink-2); }
.cart-summary dd { margin: 0; }
.cart-discount dd { color: var(--pinheiro-700); font-weight: 600; }
.cart-total { padding-top: 10px; border-top: 1px solid var(--line-soft); margin-top: 4px; }
.cart-total dt { font-weight: 650; color: var(--ink); }
.cart-total dd { font-family: var(--font-display); font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; }
.cart-checkout-note { display: flex; gap: 8px; font-size: 0.8125rem; color: var(--ink-3); margin: 10px 0 0; }
.cart-checkout-note .icon { width: 18px; height: 18px; }
.cart-empty { padding: 48px 28px; text-align: center; }
.cart-empty .empty-arch { margin-inline: auto; }
.cart-empty p { color: var(--ink-3); }
.cart-campaign { margin: 0 22px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--pinheiro-100); color: var(--pinheiro-700); font-size: 0.8438rem; font-weight: 550; display: flex; gap: 8px; align-items: center; }
.cart-campaign .half-mark { width: 18px; height: 18px; color: var(--pinheiro-700); }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--surface); height: 44px; }
.qty input { width: 40px; height: 100%; border: 0; text-align: center; background: transparent; font-weight: 650; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--pinheiro-600); }
.qty-btn { width: 40px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); border-radius: var(--r-pill); }
.qty-btn:hover { color: var(--brand); background: var(--surface-2); }
.qty-btn .icon { width: 18px; height: 18px; }
.qty-sm { height: 36px; }
.qty-sm .qty-btn { width: 34px; }
.qty-sm input { width: 32px; font-size: 0.875rem; }
.qty-val.is-tick { animation: tick 300ms var(--ease); }
@keyframes tick { 40% { transform: translateY(-3px); color: var(--pinheiro-600); } }

/* ── avisos (toast) ────────────────────────────────────── */
.toasts { position: fixed; z-index: var(--z-toast); right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; border-radius: var(--r-md); background: var(--pinheiro-900); color: var(--nevoa-50); box-shadow: var(--sh-3); animation: toast-in 360ms var(--ease) both; font-size: 0.9375rem; }
.toast.is-out { animation: toast-out 240ms var(--ease) forwards; }
.toast img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--nevoa-50); }
.toast .icon { color: var(--ambar-300); }
.toast a { color: var(--ambar-300); font-weight: 650; white-space: nowrap; }
.toast-error { background: var(--vermelho-600); }
.toast-error .icon { color: var(--nevoa-50); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
@media (max-width: 560px) { .toasts { left: 16px; right: 16px; bottom: 16px; width: auto; } }

/* ── estados vazios ────────────────────────────────────── */
.empty-state { text-align: center; padding: 56px 20px; max-width: 520px; margin: 0 auto; }
.empty-state h2 { font-size: var(--fs-h3); }
.empty-state p { color: var(--ink-3); }
.empty-arch { width: 88px; height: 104px; margin: 0 auto 20px; border-radius: var(--r-arch); background: var(--surface-2); display: grid; place-items: center; color: var(--pinheiro-600); }
.empty-arch .symbol { width: 48px; height: 48px; }
.empty-arch .icon { width: 34px; height: 34px; }
.empty-compact { padding: 32px 0; text-align: left; margin: 0; }
.empty-compact .empty-arch { margin: 0 0 16px; }
.inline-search { display: flex; gap: 8px; max-width: 560px; margin: 20px 0; }
.inline-search input { flex: 1; height: 52px; border-radius: var(--r-pill); border: 1.5px solid var(--line); padding: 0 20px; background: var(--surface); min-width: 0; }
.inline-search input:focus { outline: none; border-color: var(--pinheiro-600); box-shadow: 0 0 0 3px rgb(43 107 83 / 0.18); }
.inline-search .btn { min-height: 52px; }

/* ── consentimento de cookies de medição (Meta Pixel) ── */
.consent-banner { position: fixed; z-index: calc(var(--z-toast) + 1); left: 20px; bottom: 20px; width: min(460px, calc(100vw - 32px)); display: grid; gap: var(--s-3); padding: var(--s-4) var(--s-5); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3); font-size: var(--fs-sm); line-height: 1.5; }
.consent-banner p { margin: 0; }
.consent-banner a { color: var(--brand); font-weight: 600; }
.consent-actions { display: flex; gap: var(--s-2); justify-content: flex-end; flex-wrap: wrap; }
.consent-actions .btn { min-height: 40px; padding: 0 18px; }
@media (max-width: 760px) {
  .consent-banner { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; padding: var(--s-4); }
  .consent-actions .btn { flex: 1; }
}
