/* =====================================================================
   INTER TEC — loja (visual "marketplace premium", out/2026)
   Claro, painéis cinza, botões pretos em pílula, fotos em destaque.
   O painel admin NÃO usa este arquivo (continua em base.css + admin.css).
   ===================================================================== */
:root {
  --bg: #ffffff;
  --panel: #f5f5f7;          /* painéis e fundo das fotos */
  --panel-2: #ebebef;
  --line: #e5e5ea;
  --line-2: #d2d2d7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --ink: #1d1d1f;            /* botão principal */
  --link: #0066cc;
  --sale: #d70015;
  --ok: #1d8a3a;
  --warn: #b64400;
  --danger: #d70015;
  --star: #f5a524;

  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;

  --r: 18px;
  --r-lg: 28px;
  --r-sm: 12px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 50px rgba(0, 0, 0, .12);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .06);

  --surface: #ffffff;        /* janelas, gaveta, campos */
  --on-ink: #ffffff;         /* texto do botão principal */
  --ink-hover: #000000;
  --photo: #f5f5f7;          /* fundo atrás das fotos dos produtos */
  --plate: #ffffff;          /* placa da foto grande do destaque */
  --header-bg: rgba(255, 255, 255, .86);
  --selection: #cfe3ff;
  --ok-soft: #e8f6ec;
  --scheme: light;
  color-scheme: light;
}

/* ---------------- Tema escuro (padrão da loja; o botão ☾/☀ troca e fica salvo) ----------------
   Carvão em vez de preto puro, texto quase branco, botão principal branco. Sem neon nem degradê.
   As fotos do AliExpress têm fundo branco: em vez de escurecê-las, ficam numa "placa" clara. */
:root[data-theme="dark"] {
  --bg: #121214;
  --panel: #1c1c1f;
  --panel-2: #26262a;
  --line: #2a2a2e;
  --line-2: #3a3a40;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --ink: #f5f5f7;
  --on-ink: #121214;
  --ink-hover: #ffffff;
  --link: #5aa9ff;
  --sale: #ff6b61;
  --ok: #34c759;
  --warn: #ffb340;
  --danger: #ff6b61;
  --star: #ffc94a;
  --surface: #1c1c1f;
  --photo: #efefef;
  --plate: #efefef;
  --header-bg: rgba(18, 18, 20, .82);
  --selection: #234a7a;
  --ok-soft: rgba(52, 199, 89, .16);
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .35);
  --scheme: dark;
  color-scheme: dark;
}
/* Fotos no escuro: fundo branco × 0,94 = #efefef, igual à placa → a foto "some" na placa, sem borda */
:root[data-theme="dark"] :is(.card__media, .pm__frame, .pm__thumbs, .hero__visual, .hero__thumb, .cat-tile, .line) img {
  mix-blend-mode: normal; background: #fff; filter: brightness(.94);
}
:root[data-theme="dark"] .modal::backdrop, :root[data-theme="dark"] .scrim { background: rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .tag:not(.tag--accent):not(.tag--danger) { background: var(--panel-2); box-shadow: none; }
:root[data-theme="dark"] .tag--danger { background: #1d1d1f; color: #fff; }
/* Dentro da gaveta/janelas (fundo = --surface = --panel): elementos "de painel" precisam de um tom acima */
:root[data-theme="dark"] :is(.promo input, .qty, .ship-meter, .code-box, .stripe-pay, .track-card, .modal__close) { background: var(--panel-2); }
:root[data-theme="dark"] .card__media .tag:not(.tag--accent):not(.tag--danger) { background: #fff; color: #1d1d1f; }
:root[data-theme="dark"] .steps__list li { background: var(--panel); border-color: transparent; }

/* Botão de tema (☾ no claro, ☀ no escuro) */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------------- Base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--f-body); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--selection); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--on-ink); border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.section-title { font-size: clamp(26px, 3.4vw, 40px); }

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease), opacity .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary:not(:disabled):hover { background: var(--ink-hover); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); }
.btn--ghost:not(:disabled):hover { border-color: var(--text); }
.btn--link { min-height: 46px; padding: 0 6px; background: none; color: var(--link); }
.btn--link:not(:disabled):hover { text-decoration: underline; text-underline-offset: 4px; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font-size: 14px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent;
  cursor: pointer; font-size: 14px; transition: background .2s;
}
.icon-btn:hover { background: var(--panel); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------------- Campos ---------------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text); color-scheme: var(--scheme);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px rgba(0, 102, 204, .14); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: 12px; color: var(--danger); }
.form-error { color: var(--danger); font-size: 14px; margin-top: 12px; }
.form-error:empty { display: none; }

/* ---------------- Janelas (<dialog>) ---------------- */
.modal {
  width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: clamp(22px, 4vw, 44px);
  background: var(--surface); color: var(--text); border: 0; border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(0, 0, 0, .35); backdrop-filter: blur(8px); }
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px); } }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--panel); }
.modal__close:hover { background: var(--panel-2); }

/* ---------------- Avisos ---------------- */
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; translate: -50% 0; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px;
  background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow); font-size: 14px;
  animation: toast-in .35s var(--ease); pointer-events: auto;
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34c759; flex: none; }
.toast--error::before { background: #ff453a; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------------- Selos ---------------- */
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tag--accent { background: var(--sale); color: #fff; }
.tag--warn { color: var(--warn); }
.tag--danger { background: var(--text); color: var(--bg); }
.tag--ok { color: var(--ok); }

/* ---------------- Faixa e cabeçalho ---------------- */
.announce {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 14px;
  padding: 9px var(--gutter); background: var(--panel); font-size: 13px; color: var(--muted); text-align: center;
}
.announce b { color: var(--text); font-weight: 600; }
.announce__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: .04em; flex: none; }
.brand__mark { width: 24px; height: 24px; stroke: none; fill: currentColor; }

.nav { display: flex; gap: 2px; }
.nav__link { height: 36px; padding: 0 12px; white-space: nowrap; border: 0; border-radius: 999px; background: none; font-size: 14px; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.nav__link:hover { color: var(--text); background: var(--panel); }

.search { flex: 1; max-width: 340px; margin-left: auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; background: var(--panel); transition: box-shadow .2s, background .2s; }
.search:focus-within { background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 0 0 4px rgba(0, 102, 204, .12); }
.search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 14px; }
.search kbd { font: 500 11px/1 var(--f-mono); padding: 3px 6px; border-radius: 6px; background: var(--surface); color: var(--muted); }

.header__actions { display: flex; align-items: center; gap: 4px; flex: none; }
.currency select { height: 40px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; cursor: pointer; }
.currency select:hover { background: var(--panel); }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--sale); color: #fff; font: 600 11px/18px var(--f-body); text-align: center; }
.badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* ---------------- Destaque ---------------- */
.hero { padding-top: clamp(16px, 2.4vw, 28px); }
.hero__panel {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px 48px;
  padding: clamp(28px, 5vw, 72px); border-radius: var(--r-lg); background: var(--panel); overflow: hidden;
}
.hero__kicker { font-size: 15px; font-weight: 500; color: var(--sale); }
.hero__title { margin: 10px 0 14px; font-size: clamp(34px, 5.2vw, 64px); }
.hero__lead { max-width: 30ch; font-size: clamp(17px, 1.8vw, 21px); color: var(--muted); }
.hero__price { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 20px; font-weight: 600; min-height: 28px; }
.hero__price s { font-size: 15px; color: var(--muted); font-weight: 400; }
.hero__rating { font-size: 14px; font-weight: 400; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.hero__visual { justify-self: center; width: 100%; max-width: 480px; aspect-ratio: 1; border-radius: var(--r); background: var(--plate); overflow: hidden; box-shadow: var(--shadow-sm); }
.hero__visual img { width: 100%; height: 100%; object-fit: contain; transition: opacity .35s; }
.hero__visual img.is-swapping { opacity: 0; }
.hero__thumbs { grid-column: 1 / -1; display: flex; justify-content: center; gap: 10px; }
.hero__thumb { width: 56px; height: 56px; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: var(--plate); cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero__thumb:hover { opacity: 1; }
.hero__thumb[aria-selected="true"] { opacity: 1; border-color: var(--text); }

/* ---------------- Categorias ---------------- */
.cats { padding-top: clamp(48px, 6vw, 80px); }
.cats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 22px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 260px;
  padding: 26px; border: 0; border-radius: var(--r-lg); background: var(--panel); text-align: left; cursor: pointer; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cat-tile__text b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.cat-tile__text span { font-size: 14px; color: var(--muted); }
.cat-tile img { align-self: flex-end; width: 62%; aspect-ratio: 1; object-fit: contain; border-radius: var(--r); mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.cat-tile:hover img { transform: scale(1.04); }

/* ---------------- Catálogo ---------------- */
.catalog { padding-block: clamp(48px, 6vw, 80px) 24px; }
.catalog__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--panel); cursor: pointer; font-size: 14px; transition: background .2s, color .2s; }
.chip small { font-size: 12px; color: var(--muted); }
.chip:hover { background: var(--panel-2); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.chip[aria-selected="true"] small { color: var(--on-ink); opacity: .6; }
.catalog__status { margin: 14px 0; min-height: 20px; font-size: 14px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 28px 18px; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; cursor: pointer; animation: card-in .5s var(--ease) both; outline-offset: 6px; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.card__media { position: relative; aspect-ratio: 1; border-radius: var(--r); background: var(--photo); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 9%; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__tags { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 0 2px; }
.card__name { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.card__tagline { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-size: 17px; font-weight: 600; }
.price s { margin-right: 6px; font-size: 14px; font-weight: 400; color: var(--muted); }
.price__from { margin-right: 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
.card__add {
  display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s, transform .2s var(--ease);
}
.card__add svg { width: 15px; height: 15px; stroke-width: 2.2; }
.card__add:hover:not(:disabled) { background: var(--ink-hover); }
.card__add[data-choose] { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.card__add[data-choose]:hover { box-shadow: inset 0 0 0 1px var(--text); }
.card__add:disabled { background: var(--panel); color: var(--muted); cursor: not-allowed; }
.card__add.is-added { background: var(--ok); transform: scale(1.04); }
.card--soldout .card__media img { opacity: .45; }
.card--skeleton { min-height: 380px; cursor: default; border-radius: var(--r); background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

.stars { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.stars__bar { position: relative; display: inline-block; font-size: 13px; letter-spacing: 1px; color: var(--line-2); line-height: 1; }
.stars__bar span { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--star); }
.stars .tag { box-shadow: none; padding: 0; height: auto; background: none; color: var(--sale); }

.empty { grid-column: 1 / -1; text-align: center; padding: 60px 16px; border-radius: var(--r-lg); background: var(--panel); color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ---------------- Garantias ---------------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: clamp(40px, 5vw, 64px) 0; }
.trust__item { display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: var(--r-lg); background: var(--panel); }
.trust__item svg { width: 28px; height: 28px; margin-bottom: 8px; color: var(--text); }
.trust__item b { font-size: 16px; font-weight: 600; }
.trust__item span { font-size: 14px; color: var(--muted); }

/* ---------------- Como funciona / FAQ ---------------- */
.steps { padding-block: clamp(56px, 7vw, 96px) 0; }
.steps__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps__list li { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.steps__n { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 15px; font-weight: 600; }
.steps__list b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.steps__list p { color: var(--muted); font-size: 15px; }

.faq { padding-block: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 24px 48px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* ---------------- Rodapé ---------------- */
.footer { margin-top: 24px; background: var(--panel); font-size: 14px; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
.footer__brand .brand { color: var(--text); margin-bottom: 10px; }
.footer__brand p { max-width: 34ch; }
.footer h3 { margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__links button, .footer__links a { padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.footer__links button:hover, .footer__links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 28px; border-top: 1px solid var(--line-2); font-size: 13px; }

/* ---------------- Sacola (gaveta) ---------------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .3); backdrop-filter: blur(6px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--shadow);
  transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; }
.drawer__head h2 { font-size: 22px; }
.ship-meter { margin: 0 22px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--panel); font-size: 14px; }
.ship-meter b { font-weight: 600; }
.ship-meter__bar { height: 4px; margin-top: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.ship-meter__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width .6s var(--ease); }
.ship-meter.is-free .ship-meter__bar span { background: var(--ok); }
.drawer__items { list-style: none; margin: 0; padding: 6px 22px; overflow-y: auto; flex: 1; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 76px; height: 76px; border-radius: var(--r-sm); object-fit: contain; background: var(--photo); mix-blend-mode: multiply; }
.line__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.line__variant { font-size: 13px; color: var(--muted); }
.line__unit { font-size: 13px; color: var(--muted); }
.line__right { display: grid; justify-items: end; gap: 8px; }
.line__right b { font-family: var(--f-body); font-weight: 600; }
.line__remove { padding: 0; background: none; border: 0; color: var(--link); font-size: 13px; cursor: pointer; }
.line__remove:hover { text-decoration: underline; }
.qty { display: inline-flex; align-items: center; height: 36px; border-radius: 999px; background: var(--panel); overflow: hidden; }
.qty button { width: 34px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 17px; }
.qty button:hover:not(:disabled) { background: var(--panel-2); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty output { min-width: 26px; text-align: center; font-size: 14px; font-weight: 500; }
.drawer__empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 40px; color: var(--muted); text-align: center; }
.drawer__empty svg { width: 52px; height: 52px; opacity: .35; }
.drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.promo { display: flex; gap: 8px; }
.promo input { flex: 1; min-width: 0; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--panel); border: 0; text-transform: uppercase; font-size: 14px; }
.promo input::placeholder { text-transform: none; }
.promo input:focus { outline: 2px solid var(--link); }
.promo__msg { font-size: 13px; margin: 6px 0 0; }
.promo__msg.is-ok { color: var(--ok); }
.promo__msg.is-error { color: var(--danger); }
.drawer__note { margin-top: 10px; text-align: center; font-size: 12px; color: var(--muted); }

.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 16px 0; font-size: 15px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; }
.totals .is-discount { color: var(--ok); }
.totals .is-total { padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); font-size: 19px; font-weight: 600; }

/* ---------------- Detalhe do produto ---------------- */
.modal--product { width: min(1080px, calc(100% - 32px)); }
.pm { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(22px, 4vw, 52px); }
.pm__media { align-self: start; position: sticky; top: 0; display: grid; gap: 10px; }
.pm__frame { border-radius: var(--r); background: var(--photo); overflow: hidden; }
.pm__frame img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.pm__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.pm__thumbs:empty { display: none; }
.pm__thumbs button { flex: none; width: 60px; height: 60px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--photo); cursor: pointer; opacity: .7; }
.pm__thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--text); }
.pm__thumbs img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pm__cat { font-size: 14px; font-weight: 500; color: var(--sale); }
.pm__info h2 { margin: 6px 0 8px; padding-right: 40px; font-size: clamp(26px, 3.2vw, 38px); }
.pm__tagline { font-size: 17px; color: var(--muted); }
.pm__rating { margin-top: 12px; }
.pm__price { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 26px; font-weight: 600; }
.pm__price s { font-size: 16px; color: var(--muted); font-weight: 400; }

.pm__options { display: grid; gap: 16px; margin-top: 22px; }
.pm__options:empty { display: none; }
.opt-group { border: 0; padding: 0; margin: 0; }
.opt-group legend { padding: 0; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.opt-group legend b { color: var(--text); font-weight: 600; }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 42px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.opt:hover { border-color: var(--muted); }
.opt[aria-checked="true"] { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.opt.is-soldout { color: var(--muted); text-decoration: line-through; }

.pm__stock { margin-top: 14px; font-size: 14px; }
.pm__stock.is-low { color: var(--warn); }
.pm__stock.is-out { color: var(--danger); }
.pm__stock.is-ok { color: var(--ok); }
.pm__buy { display: flex; gap: 12px; margin-top: 18px; }
.pm__buy .qty { height: 48px; }
.pm__buy .qty button { width: 42px; }
.pm__buy .btn { min-height: 48px; }
.pm__eta { margin-top: 12px; font-size: 14px; color: var(--muted); }
.pm__eta b { color: var(--text); font-weight: 500; }
.pm__more { margin-top: 18px; border-top: 1px solid var(--line); }
.pm__more + .pm__more { margin-top: 0; }
.pm__more summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 600; }
.pm__more summary::-webkit-details-marker { display: none; }
.pm__more summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--muted); }
.pm__more[open] summary::after { content: "−"; }
.pm__desc { padding-bottom: 16px; color: var(--muted); font-size: 15px; white-space: pre-line; max-height: 320px; overflow: auto; }
.specs { display: grid; grid-template-columns: minmax(110px, auto) 1fr; margin: 0 0 16px; font-size: 14px; }
.specs dt, .specs dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); padding-right: 16px; }
.specs dt:last-of-type, .specs dd:last-of-type { border-bottom: 0; }

/* ---------------- Checkout ---------------- */
.modal--checkout { width: min(900px, calc(100% - 32px)); }
.co__title { font-size: 28px; margin-bottom: 18px; }
.stepper { list-style: none; display: flex; padding: 0 44px 0 0; margin: 0; gap: 8px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding-bottom: 12px; border-bottom: 2px solid var(--line); transition: color .3s, border-color .3s; }
.stepper span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--panel); font-size: 12px; font-weight: 600; flex: none; transition: all .3s; }
.stepper li.is-current { color: var(--text); border-color: var(--text); }
.stepper li.is-current span { background: var(--ink); color: var(--on-ink); }
.stepper li.is-done { color: var(--text); border-color: var(--text); }
.stepper li.is-done span { background: var(--ok); color: #fff; }
.co__guest { margin: 14px 0 22px; font-size: 13px; color: var(--muted); }
.co-step { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; animation: card-in .4s var(--ease); }
.field--full { grid-column: 1 / -1; }
.co-nav { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.co-nav--center { justify-content: center; flex-wrap: wrap; }

.ship-options { grid-column: 1 / -1; display: grid; gap: 12px; border: 0; padding: 0; margin: 0; }
.ship-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.ship-opt:hover { border-color: var(--muted); }
.ship-opt:has(input:checked) { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.ship-opt input { width: 18px; height: 18px; accent-color: var(--link); }
.ship-opt b { display: block; font-weight: 600; }
.ship-opt span { font-size: 14px; color: var(--muted); }
.ship-opt__price { font-size: 17px; font-weight: 600; text-align: right; }
.ship-opt__price s { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
.ship-opt__price .free { color: var(--ok); }

.co-pay { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.co-pay > div { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.co-pay .link-btn { grid-column: 1 / -1; justify-self: start; }
.card-preview {
  grid-column: 1 / -1; aspect-ratio: 1.7; max-height: 190px; padding: 20px 22px; border-radius: 18px;
  display: grid; grid-template-rows: 1fr auto auto; background: linear-gradient(135deg, #2c2c2e, #1d1d1f); color: #fff; font-family: var(--f-mono);
}
.card-preview__brand { justify-self: end; font-weight: 500; letter-spacing: .1em; }
.card-preview__num { font-size: clamp(15px, 2.4vw, 19px); letter-spacing: .08em; }
.card-preview__exp { font-size: 12px; opacity: .7; margin-top: 6px; }

.co-pay > .stripe-pay { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r); background: var(--panel); }
.stripe-pay h3 { font-size: 19px; }
.stripe-pay p { color: var(--muted); font-size: 15px; }
.stripe-pay__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); }
.stripe-pay__icon svg { width: 22px; height: 22px; }
.stripe-pay__list { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.stripe-pay__list b { color: var(--text); font-weight: 600; }

.summary { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); align-self: start; }
.summary h3 { font-size: 17px; }
.summary__items { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; font-size: 14px; }
.summary__items li { display: flex; justify-content: space-between; gap: 10px; }
.summary__items span { color: var(--muted); }
.summary__items b { font-family: var(--f-body); font-weight: 600; }
.summary__note { font-size: 13px; color: var(--muted); }

.co-done { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 12px 0; }
.co-done__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); animation: pop .6s var(--ease); }
.co-done__icon svg { width: 36px; height: 36px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .25s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.co-done h3 { font-size: 26px; max-width: 22ch; }
.co-done p { color: var(--muted); }
.code-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; padding: 16px 20px; border-radius: var(--r); background: var(--panel); }
.code-box span { font-size: 13px; color: var(--muted); }
.code-box strong { font: 600 20px/1 var(--f-mono); letter-spacing: .04em; }
.co-done__eta { font-size: 15px; }

/* ---------------- Rastreio ---------------- */
.modal--track { width: min(660px, calc(100% - 32px)); }
.modal--track h2 { margin-bottom: 6px; font-size: 28px; }
.modal--track > .muted { margin-bottom: 20px; font-size: 15px; }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.track-card { margin-top: 22px; padding: 18px; border-radius: var(--r); background: var(--panel); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; }
.track-card b { font-family: var(--f-mono); }
.track-ship { margin-top: 14px; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.track-ship b { font-family: var(--f-mono); }
.timeline { list-style: none; padding: 0; margin: 24px 0 0; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; padding-bottom: 22px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 12px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); z-index: 1; }
.timeline li.is-done { color: var(--text); }
.timeline li.is-done .dot { border-color: var(--ok); background: var(--ok); }
.timeline li.is-done::before { background: var(--ok); }
.timeline li.is-cancel .dot { border-color: var(--danger); background: var(--danger); }
.timeline time { font-size: 13px; }

/* ---------------- Responsivo ---------------- */
/* 6 categorias com nomes em português ocupam ~660 px: abaixo disso o menu some (ficam os blocos e filtros) */
@media (max-width: 1280px) {
  .nav { display: none; }
}
/* Com o menu visível, "Rastrear" e "Carrinho" ficam só no ícone (senão o cabeçalho transborda) */
@media (min-width: 1281px) {
  .header__actions .icon-btn__label { display: none; }
}
@media (max-width: 960px) {
  .hero__panel { grid-template-columns: 1fr; text-align: center; }
  .hero__text { display: grid; justify-items: center; }
  .hero__price, .hero__cta { justify-content: center; }
  .hero__visual { max-width: 400px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .pm { grid-template-columns: 1fr; }
  .pm__media { position: static; }
  .co-pay { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .header__inner { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 8px 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .search kbd { display: none; }
  .header__actions { margin-left: auto; }
  .icon-btn__label { display: none; }
  .announce > span:nth-child(n+4), .announce__dot { display: none; }
  .hero { padding-inline: 12px; }
  .hero__panel { padding: 28px 20px; border-radius: 24px; }
  .catalog__head { flex-direction: column; align-items: stretch; }
  .sort select { flex: 1; }
  /* Categorias em 2 colunas compactas: empilhadas ocupavam a tela inteira antes dos produtos */
  .cats__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
  .cat-tile { min-height: 0; padding: 16px; gap: 8px; border-radius: var(--r); }
  .cat-tile__text b { font-size: 16px; }
  .cat-tile__text span { font-size: 13px; }
  .cat-tile img { width: 72%; }
  .co-step { grid-template-columns: 1fr; }
  .co-pay > div { grid-template-columns: 1fr 1fr; }
  .stepper li { font-size: 0; gap: 0; justify-content: center; }
  .track-form { grid-template-columns: 1fr; }
  .modal { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
}
@media (max-width: 480px) {
  .trust { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .card__tagline, .card .stars > span:last-child { display: none; }
  .card__name { font-size: 15px; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card__add { justify-content: center; }
  .price { font-size: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
