/* =========================================================================
   WCELL Distribuidor — estilos da loja
   Identidade "preto e branco premium" (como o logo da loja): fundo claro, preto
   elegante, fotos grandes e um azul discreto só nos botões. Mobile-first.
   ========================================================================= */

/* ------------------------------- Tokens ------------------------------- */
:root {
  --black: #000;
  --ink: #1d1d1f;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --bg: #f5f5f7;
  --card: #fff;
  --line: #e5e5ea;
  --line-2: #d2d2d7;

  --accent: #0071e3;       /* azul dos botões e links */
  --accent-dark: #005bbf;
  --accent-soft: #eef5fe;
  --nav-link: #424245;

  --ok: #12804a;   --ok-bg: #e7f6ee;
  --warn: #8a4b00; --warn-bg: #fff4e0;
  --bad: #b42318;  --bad-bg: #fdecea;
  --info: #175cd3; --info-bg: #e8f0fe;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .1);
  --shadow-lg: 0 14px 36px rgba(16, 24, 40, .16);
  --header-h: 64px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ------------------------------- Base ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0; letter-spacing: -.022em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
abbr[title] { text-decoration: none; color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.band--hero :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

[hidden] { display: none !important; }   /* o atributo hidden sempre vence (campos e blocos têm display próprio) */
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.noscript-msg { padding: 2rem; text-align: center; }
.main { padding-block: 24px 56px; min-height: 50vh; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; z-index: 200; font-weight: 600; }
.skip-link:focus { top: 8px; }
.muted { color: var(--muted); }
.link { background: none; border: 0; padding: 0; color: var(--accent-dark); font-weight: 600; text-decoration: none; cursor: pointer; }
.link:hover { text-decoration: underline; }
.link--danger { color: var(--bad); font-weight: 500; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }
.ic { flex: none; }

/* ------------------------------- Botões ------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.2; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: auto; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover:not([disabled]) { background: var(--accent-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover:not([disabled]) { background: #3a3a3c; }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover:not([disabled]) { border-color: var(--ink); }
.btn--danger { background: var(--bad); color: #fff; }
.btn--danger:hover:not([disabled]) { background: #8f1c12; }
.btn--danger-ghost { color: var(--bad); border-color: #f1b8b3; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.btn--lg { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn.is-busy { opacity: .75; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; color: inherit; }
.icon-btn:hover { background: rgba(127, 127, 127, .18); }

/* ------------------------------- Formulários ------------------------------- */
.form { display: grid; gap: 16px; }
.form--narrow { max-width: 460px; }
.form__row { display: grid; gap: 16px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 4px; }
.form__links { text-align: center; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: .9rem; }
.input { width: 100%; min-height: 46px; padding: 10px 14px; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
textarea.input { resize: vertical; min-height: 96px; }
.input:hover { border-color: #98a2b3; }
.input:focus { outline: none; border-color: #111; box-shadow: 0 0 0 3px rgba(17, 17, 17, .12); }
.input[aria-invalid="true"] { border-color: var(--bad); background: #fffafa; }
.input[disabled] { background: #f2f4f7; color: var(--muted); }
.input--sm { min-height: 38px; padding: 6px 10px; font-size: .9rem; }
.field__hint { font-size: .8rem; color: var(--muted); }
.field__error { font-size: .82rem; color: var(--bad); font-weight: 500; min-height: 0; }
.field__error:empty { display: none; }
.field__aside { align-self: end; padding-bottom: 12px; font-size: .85rem; }
.input-group { position: relative; display: flex; }
.input-group .input { padding-right: 84px; }
.input-group__btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px 10px; font-size: .8rem; font-weight: 600; color: var(--muted); border-radius: 6px; }
.input-group__btn:hover { color: #000; background: #f2f4f7; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check--row { align-items: center; padding: 6px 0; }
.check--row em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--muted); }
.field--check { gap: 4px; }

@media (min-width: 640px) {
  .form__row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .form__row--cep { grid-template-columns: 200px 1fr; }
}

/* ------------------------------- Avisos / selos ------------------------------- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius); background: var(--info-bg); color: #0b3a8a; font-size: .92rem; }
.notice a { font-weight: 600; }
.notice--ok { background: var(--ok-bg); color: #0b5a34; }
.notice--warn { background: var(--warn-bg); color: var(--warn); }
.notice--big { padding: 20px 24px; margin-bottom: 20px; align-items: center; }
.notice--big h2 { font-size: 1.25rem; margin-bottom: 2px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; background: #eef0f3; color: #344054; }
.badge--novo { background: var(--ok-bg); color: var(--ok); }
.badge--seminovo { background: var(--info-bg); color: var(--info); }
.badge--usado { background: var(--warn-bg); color: var(--warn); }
.badge--off { background: var(--ink); color: #fff; }
.badge--feat { background: var(--ink); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; font-size: .82rem; font-weight: 500; }
.tag:hover { border-color: #111; }
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #eef0f3; color: #344054; white-space: nowrap; }
.status--ok { background: var(--ok-bg); color: var(--ok); }
.status--warn { background: var(--warn-bg); color: var(--warn); }
.status--info { background: var(--info-bg); color: var(--info); }
.status--bad { background: var(--bad-bg); color: var(--bad); }
.status--lg { font-size: .9rem; padding: 6px 16px; }

.empty { text-align: center; padding: 56px 16px; display: grid; justify-items: center; gap: 10px; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); grid-column: 1 / -1; }
.empty__icon { width: 76px; height: 76px; border-radius: 50%; background: #f2f4f7; display: grid; place-items: center; color: var(--muted); }
.empty h2, .empty h3 { font-size: 1.25rem; }
.empty p { color: var(--muted); max-width: 46ch; }

.skeleton { background: linear-gradient(90deg, #eceff3 25%, #f7f8fa 37%, #eceff3 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
.skeleton--line { height: 14px; margin: 10px 0; }
.skeleton--block { height: 280px; border-radius: var(--radius-lg); }
.skeleton .w60, .w60 { width: 60%; } .w40 { width: 40%; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ------------------------------- Toasts ------------------------------- */
.toasts { position: fixed; z-index: 400; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { background: #101828; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .92rem; animation: toast-in .25s ease; border-left: 4px solid #667085; pointer-events: auto; }
.toast--success { border-left-color: #32d583; }
.toast--error { border-left-color: #f97066; }
.toast--warn { border-left-color: #fdb022; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------- Dialog ------------------------------- */
.dlg { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); background: #fff; color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
.dlg[open] { display: flex; flex-direction: column; }
.dlg::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); }
.dlg--sm { width: min(420px, calc(100% - 24px)); }
.dlg--lg { width: min(980px, calc(100% - 24px)); }
.dlg--xl { width: min(1100px, calc(100% - 24px)); }
.dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line); }
.dlg__title { font-size: 1.1rem; }
.dlg__body { padding: 20px; overflow: auto; }
.dlg__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fafafa; }
.dlg__msg { color: var(--muted); }
.dlg--search { align-self: start; margin-top: 10vh; }
.dlg--light .dlg__body { padding: 0; background: #f6f7f9; }

/* ------------------------------- Aviso do modo demo ------------------------------- */
.demo-banner { background: #fff4c2; color: #5b4400; font-size: .82rem; padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; align-items: center; text-align: center; }
.demo-banner__btn { background: none; border: 1px solid #b38900; border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 600; color: #5b4400; }
.demo-banner__btn:hover { background: #ffe58a; }

/* ------------------------------- Cabeçalho (claro, translúcido, logo preto) ------------------------------- */
#site-header { position: sticky; top: 0; z-index: 60; }  /* o contêiner é quem "gruda" no topo */
.site-header { position: relative; background: rgba(255, 255, 255, .88); color: var(--ink); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }
.site-header__bar { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); }
.nav-toggle { color: var(--ink); margin-left: -10px; }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; margin-right: 2px; }
.logo__top { font-family: var(--font-head); font-size: 1.6rem; font-weight: 500; letter-spacing: -.03em; }
.logo__top b { font-weight: 800; }
.logo__top i { font-style: normal; font-weight: 800; }
.logo__sub { font-family: var(--font-head); font-size: .56rem; font-weight: 700; letter-spacing: .3em; color: var(--muted); margin-top: 3px; }
.site-footer .logo { color: #fff; }
.site-footer .logo__sub { color: #a1a1a6; }

/* brilho no nome: um reflexo de luz atravessa "WCELL_ DISTRIBUIDOR" a cada ~5 s, como metal polido */
.logo { --logo-base: var(--ink); --logo-luz: #d9d9de; --logo-sub: var(--muted); --logo-sub-luz: #e5e5ea; }
.site-footer .logo, .login__brand .logo, .adm__side .logo { --logo-base: #c7c7cc; --logo-luz: #fff; --logo-sub: #8e8e93; --logo-sub-luz: #fff; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .logo__top, .logo__sub {
    color: transparent; -webkit-background-clip: text; background-clip: text;
    background-size: 300% 100%; background-position: 110% 0; animation: logo-brilho 5s ease-in-out 1s infinite;
  }
  .logo__top { background-image: linear-gradient(105deg, var(--logo-base) 0 44%, var(--logo-luz) 50%, var(--logo-base) 56% 100%); }
  .logo__sub { background-image: linear-gradient(105deg, var(--logo-sub) 0 44%, var(--logo-sub-luz) 50%, var(--logo-sub) 56% 100%); }
  .logo__top b, .logo__top i { color: inherit; }
}
@keyframes logo-brilho { 0% { background-position: 110% 0; } 36%, 100% { background-position: -10% 0; } }
@media (prefers-reduced-motion: reduce) { .logo__top, .logo__sub { animation: none !important; } }
.dept { position: relative; display: none; }
.dept__btn { width: 34px; height: 34px; border: 0; background: transparent; color: var(--ink); border-radius: 50%; display: grid; place-items: center; }
.dept__btn:hover { background: rgba(0, 0, 0, .06); }
.dept__menu { position: absolute; top: calc(100% + 10px); left: -40px; min-width: 240px; background: #fff; color: var(--text); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 8px; z-index: 80; }
.dept__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-decoration: none; border-radius: 8px; font-weight: 500; }
.dept__menu a:hover { background: var(--bg); color: var(--ink); }
.dept__all { border-top: 1px solid var(--line); margin-top: 6px; border-radius: 0 0 8px 8px !important; font-weight: 700 !important; }
.site-nav { display: none; }
.site-header.is-open .site-nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 6px 16px 18px; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0, 0, 0, .08); max-height: calc(100dvh - var(--header-h)); overflow: auto; }
.site-nav a { position: relative; color: var(--nav-link); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active { color: var(--ink); font-weight: 700; }
.site-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-actions .icon-btn, .account-link, .cart-link { color: var(--ink); }
.site-actions .icon-btn:hover { background: rgba(0, 0, 0, .06); }
.account-link, .cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 22px; text-decoration: none; font-size: .88rem; font-weight: 600; }
.account-link:hover, .cart-link:hover { background: rgba(0, 0, 0, .06); }
.account-link span { display: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }

@media (min-width: 640px) { .account-link span { display: inline; } }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .dept { display: block; }
  .site-nav, .site-header.is-open .site-nav { display: flex; flex-direction: row; position: static; background: none; padding: 0; border: 0; gap: 2px; margin-left: 6px; max-height: none; overflow: visible; }
  .site-nav a { border: 0; padding: 8px 9px; font-size: .9rem; white-space: nowrap; }
  .site-nav a.is-active::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: -11px; height: 2px; border-radius: 2px; background: var(--ink); }
  .account-link span { display: none; }
}
@media (min-width: 1180px) {
  .site-nav { gap: 4px; margin-left: 10px; }
  .site-nav a { padding: 8px 12px; font-size: .93rem; }
  .site-nav a.is-active::after { left: 12px; right: 12px; }
  .account-link span { display: inline; }
}

/* ------------------------------- Capa (página inicial) e cabeçalho das páginas ------------------------------- */
.band { position: relative; z-index: 5; isolation: isolate; }
.band__inner { padding-block: 26px 28px; }
.band__eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; margin-bottom: 14px; }
.band__title { font-size: clamp(1.45rem, 3.4vw, 2.1rem); font-weight: 800; max-width: 26ch; }
.band__lead { margin-top: 10px; max-width: 60ch; font-size: 1rem; }

/* páginas internas: fundo claro, título preto, migalhas discretas */
.band--page { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.band--page .band__lead { color: var(--muted); }
.crumbs { font-size: .82rem; margin-bottom: 8px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* capa: preto profundo com um brilho suave, título grande, busca e vitrine dos últimos aparelhos */
.band--hero { color: #fff; background: #000; background-image: radial-gradient(70% 90% at 82% 18%, rgba(56, 94, 160, .38) 0%, rgba(0, 0, 0, 0) 62%), radial-gradient(50% 60% at 10% 100%, rgba(255, 255, 255, .06) 0%, rgba(0, 0, 0, 0) 70%); }
.band--hero .band__inner { padding-block: 44px 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; }
.band--hero .band__eyebrow { color: #a1a1a6; }
.band--hero .band__eyebrow svg { color: #f5c542; fill: currentColor; }
.band--hero .band__title { font-size: clamp(2.1rem, 5.6vw, 3.9rem); max-width: 16ch; line-height: 1.04; letter-spacing: -.035em; }
.band--hero .band__lead { font-size: 1.1rem; margin: 16px 0 26px; color: #c7c7cc; max-width: 52ch; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.brand-chips a { display: inline-block; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none; font-weight: 600; font-size: .88rem; transition: .15s; }
.brand-chips a:hover { background: #fff; color: #000; border-color: #fff; }
@media (min-width: 1000px) {
  .band--hero .band__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding-block: 72px 76px; gap: 48px; }
}

/* vitrine da capa: 2 cartões com a foto real dos aparelhos mais recentes (só no computador) */
.hero-vitrine { display: none; }
@media (min-width: 1000px) {
  .hero-vitrine:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
}
.hero-vitrine__titulo { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a1a1a6; }
.hcard { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); transition: transform .25s ease; }
.hcard--1 { margin-top: 36px; }
.hcard:hover { transform: translateY(-4px); }
.hcard__foto { display: block; aspect-ratio: 1; background: #f5f5f7; overflow: hidden; }
.hcard__foto img { width: 100%; height: 100%; object-fit: cover; }
.hcard__foto .ph { min-height: 100%; }
.hcard__info { display: grid; gap: 2px; padding: 14px 16px 16px; }
.hcard__info small { color: var(--muted); font-size: .76rem; font-weight: 600; }
.hcard__info b { font-size: 1rem; letter-spacing: -.01em; line-height: 1.25; }
.hcard__preco { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }

/* ------------------------------- Busca ------------------------------- */
.searchbox { position: relative; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 620px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); color: var(--text); }
.searchbox__icon { color: var(--muted); display: grid; }
.searchbox__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 6px; font-size: 1rem; }
.searchbox__input::-webkit-search-cancel-button { display: none; }
.searchbox__btn { background: var(--accent); color: #fff; min-height: 44px; padding-inline: 22px; }
.searchbox__btn:hover { background: var(--accent-dark); }
.searchbox__panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 90; max-height: 70vh; overflow-y: auto; text-align: left; }
.sb-group { padding: 10px 8px 4px; }
.sb-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 4px 10px; }
.sb-opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; text-decoration: none; border-radius: 10px; color: var(--text); }
.sb-opt:hover, .sb-opt.is-active { background: #f2f4f7; }
.sb-thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #f3f4f6; flex: none; }
.sb-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sb-thumb .ph { padding: 0; gap: 0; font-size: 0; }
.sb-thumb .ph svg { width: 22px; height: 22px; }
.sb-text { display: grid; min-width: 0; flex: 1; }
.sb-text b { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-text small { color: var(--muted); }
.sb-price { font-weight: 700; font-size: .9rem; white-space: nowrap; flex: none; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px 8px; }
.sb-opt--chip { padding: 6px 14px; background: #f2f4f7; border-radius: 999px; font-weight: 500; font-size: .88rem; }
.sb-all { border-top: 1px solid var(--line); border-radius: 0; padding: 14px 18px; font-size: .9rem; color: var(--accent-dark); }
.dlg--search .searchbox { box-shadow: none; border: 1.5px solid var(--line-2); max-width: none; }
/* janela "Buscar produtos": a lista vem embaixo do campo (fora dele), um aparelho por linha */
.searchbox__panel--stacked, .dlg--search .searchbox__panel { position: static; box-shadow: none; margin-top: 10px; border: 1px solid var(--line); max-height: none; }
.searchbox__panel--stacked .sb-text b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.searchbox__panel--stacked .sb-price { white-space: nowrap; }
.searchbox__panel--stacked .sb-all { display: block; }
.dlg--search .dlg__body { min-height: 120px; }

/* ------------------------------- Home ------------------------------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust__list { display: grid; gap: 14px; padding-block: 18px; grid-template-columns: 1fr 1fr; }
.trust__list li { display: flex; gap: 12px; align-items: center; }
.trust__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--bg); color: var(--ink); }
.trust__list b { display: block; font-size: .92rem; letter-spacing: -.01em; }
.trust__list div span { display: none; font-size: .8rem; color: var(--muted); line-height: 1.3; }
@media (min-width: 900px) { .trust__list { grid-template-columns: repeat(4, 1fr); padding-block: 22px; } .trust__list div span { display: block; } }
.section { padding-block: 36px 8px; }
.section[hidden] { display: none; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section__head h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 800; letter-spacing: -.03em; }
.section__head .link { color: var(--accent); }
.section__note { margin: -10px 0 16px; font-size: .9rem; }
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }
.cat-card { display: grid; justify-items: center; gap: 12px; padding: 22px 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; font-weight: 600; text-align: center; transition: .2s; }
.cat-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cat-card__icon { width: 62px; height: 62px; border-radius: 50%; background: var(--bg); color: var(--ink); display: grid; place-items: center; transition: .2s; }
.cat-card:hover .cat-card__icon { background: var(--ink); color: #fff; }
.brand-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .brand-grid { grid-template-columns: repeat(7, 1fr); } }
.brand-grid a { display: grid; place-items: center; min-height: 64px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; color: var(--ink); transition: .15s; }
.brand-grid a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ------------------------------- Assistência técnica (página inicial) ------------------------------- */
.assist { margin-top: 44px; background: #000; color: #fff; background-image: radial-gradient(60% 80% at 100% 0%, rgba(56, 94, 160, .32) 0%, rgba(0, 0, 0, 0) 65%); scroll-margin-top: var(--header-h); }
.assist__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: #a1a1a6; }
.assist h2 { margin-top: 12px; font-size: clamp(1.8rem, 4.2vw, 2.8rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; max-width: 18ch; }
.assist__lead { margin-top: 14px; color: #c7c7cc; font-size: 1.05rem; max-width: 52ch; }
.assist__servicos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.assist__servicos li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-weight: 600; font-size: .92rem; }
.assist__servicos svg { color: #fff; opacity: .9; }
.assist__lojas { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #a1a1a6; font-size: .9rem; }
.assist__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px 20px; border-radius: 22px; background: #fff; color: var(--text); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.assist__form .btn { white-space: normal; text-align: center; padding-inline: 16px; }
.assist__form h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.assist__problemas { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.assist__problemas legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.assist__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-radio span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: .88rem; font-weight: 500; transition: .15s; }
.chip-radio:hover span { border-color: var(--ink); }
.chip-radio input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-radio input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.assist__nota { text-align: center; font-size: .84rem; color: var(--muted); }
@media (min-width: 640px) { .assist__servicos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .assist__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; padding-block: 76px; } .assist__form { padding: 30px; } }

/* ------------------------------- Loja fechada (painel → Configurações → Status da loja) ------------------------------- */
.closed { max-width: 620px; margin: 24px auto 40px; padding: 40px 24px; display: grid; justify-items: center; gap: 14px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .06); }
.closed__icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--ink); color: #fff; }
.closed__tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.closed__tag i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.closed__title { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; max-width: 22ch; }
.closed__msg { color: var(--muted); font-size: 1.05rem; max-width: 46ch; white-space: pre-line; }
.closed__when { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--bg); font-size: .95rem; }
.closed__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.closed__note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.closed__note a { color: var(--accent); font-weight: 600; }
@media (max-width: 520px) { .closed { padding: 32px 18px; border-radius: 20px; } .closed__actions .btn { flex: 1 1 100%; } }

/* ------------------------------- Rodapé: redes ------------------------------- */
.footer-social { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.footer-ig { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #3a3a3c; color: #fff !important; text-decoration: none !important; }
.footer-ig:hover { background: #fff; color: #000 !important; }

/* ------------------------------- Cartão de produto ------------------------------- */
.grid-products { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .grid-products { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .grid-products { grid-template-columns: repeat(4, 1fr); } }
/* vitrines da home e "relacionados" têm 4 itens: no meio-termo (3 colunas) esconde o 4º para não sobrar um órfão */
@media (min-width: 760px) and (max-width: 1099px) {
  .section .grid-products > :nth-child(4), .pdp__section .grid-products > :nth-child(4) { display: none; }
}
.grid-products--shop { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .grid-products--shop { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid-products--shop { grid-template-columns: repeat(4, 1fr); } }

.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s; }
.pcard:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .1); border-color: var(--line-2); transform: translateY(-3px); }
.pcard__media { display: block; aspect-ratio: 1; background: #f6f7f9; }
.pcard__media { overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }   /* fotos reais preenchem o quadro */
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard.is-out .pcard__media img, .pcard.is-out .ph { filter: grayscale(1); opacity: .55; }
.pcard__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.pcard__compare { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; color: var(--muted); }
.pcard__compare:hover { color: #000; border-color: #000; }
.pcard__compare.is-on { background: #111; border-color: #111; color: #fff; }
.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.pcard__brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.pcard__title { font-size: .95rem; font-weight: 600; font-family: var(--font); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard__title a { text-decoration: none; }
.pcard__title a:hover { color: var(--accent-dark); }
.pcard__stock { font-size: .8rem; }
.pcard .btn { margin-top: auto; }
.pcard--skeleton { pointer-events: none; }
.pcard--skeleton .pcard__media { aspect-ratio: 1; border-radius: 0; }
.ph { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
/* produto sem foto: grafite neutro (variações discretas, para combinar com o preto e branco da loja) */
.ph--0 { background: linear-gradient(135deg, #3a3a3c, #1d1d1f); }
.ph--1 { background: linear-gradient(135deg, #48484a, #232325); }
.ph--2 { background: linear-gradient(135deg, #2c2c2e, #0f0f10); }
.ph--3 { background: linear-gradient(135deg, #545456, #2a2a2c); }
.ph--4 { background: linear-gradient(135deg, #3c3f45, #1b1d21); }
.ph--5 { background: linear-gradient(135deg, #444446, #1f1f21); }
.ph--6 { background: linear-gradient(135deg, #35383d, #16181b); }
.ph--7 { background: linear-gradient(135deg, #4a4a4c, #262628); }
.chips-row { display: flex; flex-wrap: wrap; gap: 4px; }
.chips-row li { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: #f2f4f7; color: #475467; font-weight: 500; }
.chips-row .chip--battery { display: inline-flex; align-items: center; gap: 4px; background: var(--ok-bg); color: var(--ok); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price__old { width: 100%; font-size: .8rem; color: var(--muted); text-decoration: line-through; }
.price__now { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.price__off { font-size: .78rem; font-weight: 700; color: var(--ok); }
.price--big .price__now { font-size: 2rem; }
.price--big .price__old { font-size: .95rem; }
.stock { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.stock--ok { color: var(--ok); } .stock--low { color: var(--warn); } .stock--out { color: var(--bad); }

/* ------------------------------- Rodapé ------------------------------- */
.site-footer { background: var(--black); color: #cfcfcf; margin-top: 40px; }
.footer-grid { display: grid; gap: 28px; padding-block: 40px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; } }
.footer-brand p { margin-top: 14px; max-width: 34ch; font-size: .9rem; color: #a3a3a3; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 12px; }
.site-footer li { margin: 8px 0; font-size: .9rem; }
.site-footer a { text-decoration: none; color: #cfcfcf; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { margin-top: 3px; color: #a1a1a6; }
.footer-bottom { border-top: 1px solid #1f1f1f; padding-block: 16px; font-size: .8rem; color: #8a8a8a; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.footer-secure { display: inline-flex; align-items: center; gap: 6px; }

/* ------------------------------- Barra de comparação ------------------------------- */
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #111; color: #fff; box-shadow: 0 -8px 24px rgba(0, 0, 0, .25); }
.compare-bar[hidden] { display: none; }
.compare-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.compare-bar__text { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.compare-bar__actions { display: inline-flex; gap: 8px; }
.compare-bar .btn--ghost { background: transparent; color: #fff; border-color: #555; }
.compare-bar .btn--ghost:hover { border-color: #fff; }

/* ------------------------------- Catálogo ------------------------------- */
.shop { display: grid; gap: 20px; }
@media (min-width: 960px) { .shop { grid-template-columns: 270px 1fr; align-items: start; } }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px 16px 16px; }
.filters__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0 6px; }
.filters__head h2 { font-size: 1.05rem; }
.filters__close, .filters__foot { display: none; }
.fgroup { border-top: 1px solid var(--line); padding: 4px 0; }
.fgroup summary { cursor: pointer; font-weight: 700; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; font-size: .92rem; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: '+'; font-size: 1.2rem; line-height: 1; color: var(--muted); }
.fgroup[open] summary::after { content: '–'; }
.fgroup__body { padding: 0 10px 10px 2px; max-height: 280px; overflow: auto; scrollbar-gutter: stable; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.price-inputs label { font-size: .78rem; color: var(--muted); display: grid; gap: 4px; }
.chips-select { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line-2); font-size: .82rem; font-weight: 500; }
.chip-btn:hover { border-color: #111; }
.chip-btn.is-on { background: #111; color: #fff; border-color: #111; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.toolbar__filters { display: inline-flex; }
.toolbar__count { flex: 1; font-weight: 600; min-width: 160px; }
.toolbar__sort { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.active-filters:empty { display: none; }
.didyoumean { margin-bottom: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.didyoumean a { color: var(--accent-dark); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 26px; }
.pager:empty { display: none; }
.pager__n { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; }
.pager__n:hover { border-color: #111; }
.pager__n.is-on { background: #111; color: #fff; border-color: #111; }
.pager__gap { padding: 0 4px; color: var(--muted); }

@media (min-width: 960px) { .toolbar__filters { display: none; } }
@media (max-width: 959px) {
  .filters { position: fixed; z-index: 150; top: 0; bottom: 0; left: 0; width: min(360px, 90vw); border-radius: 0; overflow: auto; transform: translateX(-102%); transition: transform .25s ease; padding-bottom: 90px; }
  .filters.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .filters__close { display: grid; }
  .filters__foot { display: block; position: fixed; bottom: 0; left: 0; width: min(360px, 90vw); padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); transform: translateX(-102%); transition: transform .25s ease; z-index: 151; }
  .filters.is-open .filters__foot { transform: none; }
  .filters-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 140; }
  .filters-backdrop[hidden] { display: none; }
}

/* ------------------------------- Produto ------------------------------- */
.pdp { display: grid; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.05fr 1fr; padding: 28px; gap: 40px; } }
.gallery { display: grid; gap: 12px; align-content: start; }
.gallery__main { display: block; width: 100%; aspect-ratio: 1; background: #f6f7f9; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; padding: 0; cursor: zoom-in; }
.gallery__main[disabled] { cursor: default; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; mix-blend-mode: multiply; }
.gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumbs button { width: 72px; height: 72px; border: 2px solid var(--line); border-radius: 10px; background: #f6f7f9; padding: 0; overflow: hidden; flex: none; }
.gallery__thumbs button.is-on { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp__buy { display: grid; gap: 14px; align-content: start; }
.pdp__badges { display: flex; gap: 6px; }
.pdp__brand { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.pdp__title { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 800; }
.pdp__rating { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; text-decoration: none; width: fit-content; }
.pdp__pay { display: flex; align-items: center; gap: 6px; font-size: .88rem; }
.battery { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .88rem; padding: 10px 12px; background: var(--ok-bg); border-radius: var(--radius); color: var(--ok); }
.battery span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
progress { appearance: none; -webkit-appearance: none; height: 8px; border: 0; border-radius: 99px; background: #e4e7ec; overflow: hidden; width: 100%; }
progress::-webkit-progress-bar { background: #e4e7ec; border-radius: 99px; }
progress::-webkit-progress-value { background: var(--ok); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--ok); border-radius: 99px; }
.buybox { display: grid; gap: 10px; margin-top: 4px; }
@media (min-width: 520px) { .buybox { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; } .buybox:has(> .qty[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.buybox .btn { white-space: normal; text-align: center; }   /* nos celulares estreitos o texto quebra em vez de estourar a tela */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; width: fit-content; height: 52px; }
.qty[hidden] { display: none; }
.qty__btn { width: 44px; height: 100%; border: 0; background: none; border-radius: 999px; display: grid; place-items: center; }
.qty__btn:hover:not([disabled]) { background: #f2f4f7; }
.qty__input { width: 46px; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 40px; }
.qty--sm .qty__btn { width: 36px; }
.qty--sm .qty__input { width: 38px; }
#cmp-btn { width: fit-content; }
#cmp-btn.is-on { background: #111; color: #fff; border-color: #111; }
.pdp__trust { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; color: #344054; }
.pdp__trust li { display: flex; gap: 10px; align-items: center; }
.pdp__trust svg { color: var(--ink); }
.pdp__section { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.pdp__section[hidden] { display: none; }
.pdp__section > h2 { font-size: 1.25rem; margin-bottom: 14px; }
.prose { max-width: 75ch; color: #344054; white-space: pre-line; }
.spec-table { max-width: 720px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.spec-table th { width: 38%; font-weight: 600; color: var(--muted); background: #fafbfc; }
.stars { display: inline-flex; color: #f5a623; gap: 1px; }
.stars .star { fill: none; }
.stars .star.is-on { fill: currentColor; }
.reviews { display: grid; gap: 24px; }
@media (min-width: 800px) { .reviews { grid-template-columns: 280px 1fr; } }
.reviews__avg { display: grid; gap: 4px; justify-items: start; }
.reviews__avg b { font-family: var(--font-head); font-size: 3rem; line-height: 1; }
.reviews__dist { display: grid; gap: 6px; margin-top: 14px; }
.reviews__dist li { display: grid; grid-template-columns: 34px 1fr 24px; gap: 8px; align-items: center; font-size: .82rem; }
.reviews__dist progress::-webkit-progress-value { background: #f5a623; }
.reviews__dist progress::-moz-progress-bar { background: #f5a623; }
.reviews__main { display: grid; gap: 18px; align-content: start; }
.review-form { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfc; }
.rating-input { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; flex-wrap: wrap; gap: 0 2px; }
.rating-input legend { float: left; width: 100%; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { cursor: pointer; color: #c9ced6; padding: 2px; }
.rating-input label svg { fill: none; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f5a623; }
.rating-input input:checked ~ label svg, .rating-input label:hover svg, .rating-input label:hover ~ label svg { fill: currentColor; }
.rating-input input:focus-visible + label { outline: 3px solid #2563eb; border-radius: 6px; }
.rating-input .field__error { width: 100%; order: 10; }
.review-list { display: grid; gap: 14px; }
.review { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; }
.review__title { font-weight: 700; }
.lightbox { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 50vh; }
.lightbox__img { width: 100%; max-height: 74vh; object-fit: contain; }
.lightbox__nav[hidden] { display: none; }

/* ------------------------------- Carrinho / Resumo ------------------------------- */
.cart, .checkout, .order { display: grid; gap: 22px; align-items: start; }
@media (min-width: 960px) { .cart, .checkout, .order { grid-template-columns: 1fr 360px; } }
.cart__lines { display: grid; gap: 12px; }
.cline { display: grid; grid-template-columns: 84px 1fr; gap: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; }
.cline.is-out { background: #fffafa; border-color: #f4c7c3; }
.cline__img { grid-row: span 2; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: #f6f7f9; }
.cline__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cline__brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.cline__name { font-weight: 600; text-decoration: none; display: block; }
.cline__name:hover { color: var(--accent-dark); }
.cline__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.cline__warn { display: flex; align-items: center; gap: 6px; color: var(--warn); font-size: .82rem; font-weight: 600; margin-top: 4px; }
.cline.is-out .cline__warn { color: var(--bad); }
.cline__qty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cline__price { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; }
.cline__price b { font-family: var(--font-head); font-size: 1.15rem; }
@media (min-width: 700px) {
  .cline { grid-template-columns: 96px 1fr 150px 120px; align-items: center; }
  .cline__img { grid-row: auto; width: 96px; height: 96px; }
  .cline__qty { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .cline__price { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 2px; }
}
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: grid; gap: 14px; }
.summary--sticky { position: sticky; top: calc(var(--header-h) + 16px); }
.summary h2 { font-size: 1.15rem; }
.summary h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 6px; }
.summary__rows { display: grid; gap: 10px; margin: 0; }
.summary__rows > div { display: flex; justify-content: space-between; gap: 12px; }
.summary__rows dt { color: var(--muted); }
.summary__rows dd { margin: 0; font-weight: 600; }
.summary__rows--tight { margin-top: 10px; }
.summary__total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.15rem; }
.summary__total dt { color: var(--text); font-weight: 700; }
.summary__total dd { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; }
.summary__note { font-size: .84rem; }
.summary__secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.summary__items { display: grid; gap: 12px; max-height: 260px; overflow: auto; }
.summary__items li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: .88rem; }
.summary__thumb { position: relative; width: 52px; height: 52px; border-radius: 8px; background: #f6f7f9; }
.summary__thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; mix-blend-mode: multiply; }
.summary__thumb .ph { font-size: 0; } .summary__thumb .ph svg { width: 24px; height: 24px; } .summary__thumb .ph span { display: none; }
.summary__thumb em { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: #111; color: #fff; font-size: .7rem; font-style: normal; display: grid; place-items: center; padding: 0 5px; }
.summary__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------- Checkout ------------------------------- */
.card-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.step-title { font-size: 1.3rem; margin-bottom: 14px; }
.step-sub { font-size: 1.05rem; margin: 8px 0 -4px; }
.steps { display: flex; gap: 8px; margin-bottom: 16px; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.steps li span { width: 24px; height: 24px; border-radius: 50%; background: #e4e7ec; display: grid; place-items: center; font-size: .78rem; flex: none; }
.steps li.is-current { color: #fff; background: #111; border-color: #111; }
.steps li.is-current span { background: var(--accent); color: #fff; }
.steps li.is-done { color: var(--ok); } .steps li.is-done span { background: var(--ok); color: #fff; }
@media (max-width: 520px) { .steps li { font-size: 0; padding: 8px; justify-content: center; } .steps li span { font-size: .8rem; } }
.options { display: grid; gap: 10px; }
@media (min-width: 640px) { .options:not(.options--col) { grid-template-columns: 1fr 1fr; } }
.option { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius); cursor: pointer; background: #fff; transition: .15s; }
.option:hover { border-color: #111; }
.option.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.option input { accent-color: var(--accent); width: 20px; height: 20px; flex: none; }
.option__icon { color: var(--ink); }
.option b { display: block; }
.option small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.review-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 6px; }
.review-box__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.review-box__head h3 { font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.review-items { display: grid; gap: 6px; font-size: .92rem; }
.review-items li { display: flex; justify-content: space-between; gap: 12px; }

/* ------------------------------- Conta / Pedidos ------------------------------- */
.auth-wrap { display: grid; gap: 20px; max-width: 920px; margin-inline: auto; }
@media (min-width: 860px) { .auth-wrap { grid-template-columns: 1.3fr 1fr; align-items: start; } .auth-wrap > .card-box:only-child { grid-column: 1 / -1; max-width: 520px; margin-inline: auto; width: 100%; } }
.tabs { display: flex; gap: 4px; background: #f2f4f7; padding: 4px; border-radius: 999px; margin-bottom: 18px; }
.tab { flex: 1; border: 0; background: none; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.tab.is-active { background: #fff; color: #000; box-shadow: var(--shadow); }
.demo-hint ul { display: grid; gap: 10px; margin: 10px 0; font-size: .88rem; }
.demo-hint code { background: #f2f4f7; padding: 1px 6px; border-radius: 4px; }
.account { display: grid; gap: 20px; }
@media (min-width: 860px) { .account { grid-template-columns: 270px 1fr; align-items: start; } }
.account__nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; display: grid; gap: 10px; }
.account__user { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.account__user div { min-width: 0; display: grid; }
.account__user b, .account__user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__user small { color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.account__nav nav { display: grid; gap: 4px; }
.account__tab { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 0; border-radius: 10px; background: none; font-weight: 600; text-decoration: none; text-align: left; width: 100%; }
.account__tab:hover { background: #f2f4f7; }
.account__tab.is-active { background: #111; color: #fff; }
.account__main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; min-width: 0; }
.account__main > h2 { font-size: 1.3rem; margin-bottom: 16px; }
.order-list { display: grid; gap: 12px; }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; }
.order-card__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.order-card__head div { display: grid; }
.order-card__head small { color: var(--muted); }
.order-card__items { color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-card__foot b { font-family: var(--font-head); font-size: 1.1rem; }

.order__main { display: grid; gap: 16px; min-width: 0; }
.order__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.order__top h2 { font-size: 1.7rem; }
.tracking { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--info-bg); border-radius: var(--radius); margin-bottom: 14px; }
.timeline { display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; position: relative; padding-bottom: 14px; }
.timeline li::before { content: ''; position: absolute; left: 8px; top: 16px; bottom: 0; width: 2px; background: var(--line-2); }
.timeline li:last-child { padding-bottom: 0; } .timeline li:last-child::before { display: none; }
.timeline__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 4px solid #d6e7fb; margin-top: 3px; }
.timeline div { display: grid; font-size: .92rem; }
.timeline small { color: var(--muted); }
/* Pedido pelo WhatsApp: aviso na revisão do checkout e cartão "envie o pedido" na página do pedido */
.wa-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.wa-step__icon { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.wa-step b { display: block; margin-bottom: 2px; }
.wa-step p { font-size: .9rem; color: var(--muted); }
.wa-send { display: grid; gap: 14px; }
.wa-send.is-new { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.wa-send h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.wa-send__steps { list-style: decimal; padding-left: 20px; display: grid; gap: 6px; color: #344054; font-size: .92rem; }
.wa-send__fine { font-size: .82rem; text-align: center; }
/* Aparelho de entrada (troca) — revisão do checkout, página do pedido */
.trade { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.trade.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.trade__toggle { display: flex; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; }
.trade__toggle input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.trade__toggle b { display: block; }
.trade__toggle small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.trade__icon { color: var(--ink); flex: none; }
.trade__fields { display: grid; gap: 12px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.trade__cond { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.trade__cond legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.trade-info { display: flex; gap: 12px; align-items: flex-start; }
.trade-info svg { flex: none; margin-top: 2px; }
.trade-info p { font-size: .92rem; }
.summary__plus { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); text-align: right; }
.pix h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pix__steps { list-style: decimal; padding-left: 20px; display: grid; gap: 4px; color: #344054; font-size: .92rem; margin-bottom: 14px; }
.pix__key { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; background: #f6f7f9; border: 1px dashed #98a2b3; border-radius: var(--radius); margin-bottom: 14px; }
.pix__key div { display: grid; gap: 2px; min-width: 0; }
.pix__key code { font-size: 1.05rem; font-weight: 700; word-break: break-all; }
.pix__key small { color: var(--muted); }
.pix__proof { display: grid; gap: 10px; justify-items: start; }
.order-items { display: grid; gap: 10px; margin-top: 10px; }
.order-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.order-items__img { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #f6f7f9; }
.order-items__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.order-items__img .ph { font-size: 0; } .order-items__img .ph svg { width: 24px; height: 24px; } .order-items__img .ph span { display: none; }
.order-items__name { display: grid; font-weight: 600; font-size: .92rem; }
.order-items__name small { color: var(--muted); font-weight: 400; }

/* ------------------------------- Comparar ------------------------------- */
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cmp { min-width: 640px; }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .9rem; }
.cmp tbody th { position: sticky; left: 0; background: #fafbfc; width: 150px; font-weight: 600; color: var(--muted); z-index: 1; }
.cmp thead td { width: 150px; }
.cmp__head { position: relative; min-width: 190px; font-weight: 400; }
.cmp__remove { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; }
.cmp__img { display: block; width: 130px; aspect-ratio: 1; margin: 0 auto 8px; background: #f6f7f9; border-radius: 10px; overflow: hidden; }
.cmp__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cmp__brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.cmp__name { font-weight: 700; text-decoration: none; }
.cmp__name:hover { color: var(--accent-dark); }
.cmp__price { font-family: var(--font-head); font-size: 1.2rem; }
.cmp td.is-best { background: #effaf4; color: var(--ok); font-weight: 700; }
.best-tag { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; background: var(--ok); color: #fff; padding: 2px 6px; border-radius: 99px; margin-left: 4px; vertical-align: middle; }
.cmp__actions td { display: table-cell; }
.cmp__actions td .btn { margin-bottom: 8px; }
.cmp__foot { margin-top: 12px; }

/* ------------------------------- Documentos (políticas) ------------------------------- */
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.doc-nav a { padding: 8px 16px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.doc-nav a:hover { border-color: #111; }
.prose-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 18px; max-width: 880px; }
.prose-doc h2 { font-size: 1.5rem; margin-bottom: 12px; }
.prose-doc h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.prose-doc p { color: #344054; }

/* ------------------------------- Aparelho único: selos e avisos ------------------------------- */
.badge--unique { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent-dark); border: 1px solid #c6dcf7; }
.stock--reserved { color: #b45309; }
.stock--unique { color: var(--accent-dark); }
.pcard__note { font-size: .78rem; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard.is-reserved .pcard__media img { opacity: .8; filter: saturate(.55); }

/* faixa no topo da foto: Reservado / Vendido / Esgotado */
.ribbon { position: absolute; z-index: 4; left: 0; right: 0; top: 0; padding: 6px 12px; text-align: center; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.ribbon--reserved { background: #d97706; }
.ribbon--sold { background: #344054; }
.ribbon--out { background: var(--bad); }
.pcard.is-out .pcard__badges { top: 40px; }
.pcard.is-out .pcard__compare { top: 38px; }

.gallery__main { position: relative; }
.gallery__main.is-sold img { filter: grayscale(1); opacity: .6; }
.gallery__main.is-reserved img { opacity: .85; filter: saturate(.6); }
.pdp-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); }
.pdp-alert svg { margin-top: 2px; }
.pdp-alert b { display: block; font-size: 1rem; }
.pdp-alert p { margin: 2px 0 10px; font-size: .9rem; line-height: 1.45; }
.pdp-alert__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-alert--warn { background: var(--warn-bg); color: #6b3a00; border: 1px solid #f4d9a6; }
.pdp-alert--bad { background: var(--bad-bg); color: #7a1a12; border: 1px solid #f4c7c3; }
.pdp__note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: #f6f7f9; border-radius: var(--radius); font-size: .92rem; line-height: 1.45; }
.pdp__note svg { margin-top: 2px; color: var(--muted); }
.pdp__fine { display: flex; gap: 6px; align-items: flex-start; font-size: .82rem; line-height: 1.4; }

/* página do aparelho: peças trocadas (o cliente só vê aqui, não nos cartões) */
.parts { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.parts__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .92rem; }
.parts__sum { margin-left: auto; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.parts__sum.is-ok { background: var(--ok-bg); color: var(--ok); }
.parts__sum.is-swap { background: var(--warn-bg); color: var(--warn); }
.parts__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.parts__list li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .86rem; color: var(--muted); }
.parts__list li span { flex: 1; min-width: 0; color: var(--text); }
.parts__list em { font-style: normal; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.parts__list li.is-swap svg, .parts__list li.is-swap em { color: var(--warn); }
@media (max-width: 400px) { .parts__list { grid-template-columns: 1fr; } }
.field__label { font-weight: 600; font-size: .9rem; }
.pdp__fine svg { margin-top: 2px; flex: none; }

/* ------------------------------- "Chegou agora" (vitrine em formato de story) ------------------------------- */
.fresh__head h2 { display: flex; align-items: center; gap: 10px; }
.fresh__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(0, 113, 227, .55); animation: pulse 1.9s ease-out infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, .55); } 70% { box-shadow: 0 0 0 11px rgba(0, 113, 227, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); } }
.fresh__nav { display: none; gap: 8px; }
.fresh__nav[hidden] { display: none; }
@media (min-width: 760px) { .fresh__nav { display: flex; } }
.fresh__btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; display: grid; place-items: center; padding: 0; }
.fresh__btn:hover:not(:disabled) { border-color: #111; }
.fresh__btn:disabled { opacity: .35; cursor: default; }
.fresh__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 4px 16px 16px; margin-inline: -16px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.fresh__track::-webkit-scrollbar { display: none; }
.fresh__track > .story { flex: 0 0 min(72vw, 270px); scroll-snap-align: start; }
@media (min-width: 1232px) { .fresh__track { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } }
@media (min-width: 760px) { .fresh__track > .story { flex-basis: 250px; } }

/* foto quadrada em cima (o aparelho aparece inteiro) e a legenda num painel escuro embaixo, fundido à foto por um degradê */
.story { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #0b0d12; color: #fff; text-decoration: none; box-shadow: var(--shadow); isolation: isolate; transition: transform .2s ease, box-shadow .2s ease; -webkit-tap-highlight-color: transparent; }
a.story:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.story__media { position: relative; display: block; aspect-ratio: 1; flex: none; background: #e9edf2; overflow: hidden; }
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
a.story:hover .story__media img { transform: scale(1.04); }
.story__media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 34%; pointer-events: none; background: linear-gradient(to top, #0b0d12 4%, rgba(11, 13, 18, 0)); }
.story__top { position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.story__tag, .story__new { padding: 4px 10px; border-radius: 99px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.story__tag { background: rgba(255, 255, 255, .94); color: #111; }
.story__tag--novo { background: #d1fadf; color: #05603a; }
.story__tag--seminovo { background: #dbeafe; color: #1d4ed8; }
.story__tag--usado { background: #fef3c7; color: #92400e; }
.story__new { background: var(--accent); color: #fff; }
.story.is-reserved .story__top, .story.is-sold .story__top { top: 40px; }
.story.is-sold .story__media img { filter: grayscale(1); opacity: .6; }
.story.is-reserved .story__media img { filter: saturate(.55); opacity: .85; }
.story__info { position: relative; z-index: 2; margin-top: -30px; padding: 0 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.story__title { font-family: var(--font-head); font-weight: 800; font-size: 1.14rem; line-height: 1.15; }
.story__title small { font-size: .8em; font-weight: 600; opacity: .9; }
.story__meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .76rem; }
.story__bat { display: inline-flex; align-items: center; gap: 4px; background: rgba(18, 128, 74, .95); padding: 3px 9px; border-radius: 99px; font-weight: 700; }
.story__note { background: rgba(255, 255, 255, .18); padding: 3px 9px; border-radius: 99px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(4px); }
.story__price { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.1; }
.story__price::before { content: 'Apenas'; display: block; font-family: var(--font); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-bottom: 1px; }
.story__cta { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: #fff; border-radius: 99px; padding: 10px 14px; font-weight: 700; font-size: .88rem; margin-top: auto; transition: background .15s; }
.story__price { margin-bottom: 5px; }
a.story:hover .story__cta { background: var(--accent-dark); }
.story.is-sold .story__cta, .story.is-reserved .story__cta { background: rgba(255, 255, 255, .22); }
.story--preview { cursor: default; }

/* indicador de carregamento (também usado no painel) */
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #d0d5dd; border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------- Celular em primeiro lugar ------------------------------- */
html { -webkit-tap-highlight-color: transparent; }
body.has-stickybar { padding-bottom: 84px; }                       /* deixa espaço para a barra fixa de compra */

/* barra fixa no rodapé (só celular): preço + botão principal quando o botão da página sai da tela */
.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 28px rgba(16, 24, 40, .14); transform: translateY(115%); transition: transform .25s ease; }
.stickybar.is-on { transform: none; }
.stickybar__info { display: grid; line-height: 1.15; min-width: 0; }
.stickybar__info small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stickybar__info b { font-family: var(--font-head); font-size: 1.28rem; font-weight: 800; white-space: nowrap; }
.stickybar .btn { flex: 1; min-height: 50px; white-space: normal; text-align: center; line-height: 1.15; }
body.has-stickybar .compare-bar { bottom: 74px; }                  /* a barra de comparação sobe para não ficar por baixo */
@media (min-width: 900px) { .stickybar { display: none; } body.has-stickybar { padding-bottom: 0; } body.has-stickybar .compare-bar { bottom: 0; } }

/* galeria da página do produto: no celular, deslizar com o dedo */
.gallery__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #f6f7f9; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.gallery__strip::-webkit-scrollbar { display: none; }
.gallery__slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; padding: 0; border: 0; background: transparent; cursor: zoom-in; overflow: hidden; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; padding: 12px; mix-blend-mode: multiply; }
.gallery__slide.is-sold img { filter: grayscale(1); opacity: .6; }
.gallery__slide.is-reserved img { opacity: .85; filter: saturate(.6); }
.gallery__dots { display: flex; justify-content: center; gap: 7px; padding-top: 2px; }
.gallery__dots i { width: 8px; height: 8px; border-radius: 99px; background: #cfd4dc; transition: width .2s, background .2s; }
.gallery__dots i.is-on { width: 22px; background: var(--ink); }

/* faixa vermelha "compacta" (páginas de produto): o título já aparece logo abaixo, então só ficam as migalhas */
.band--compact .band__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.band--compact .band__inner { padding-block: 8px 6px; }
.band--compact .crumbs { margin-bottom: 0; }
@media (min-width: 760px) {
  .band--compact .band__title { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .band--compact .band__inner { padding-block: 26px 28px; }
  .band--compact .crumbs { margin-bottom: 8px; }
}

@media (max-width: 640px) {
  /* campos com 16 px: o iPhone não "dá zoom" ao tocar */
  .input, .input--sm, select.input, textarea.input, .searchbox__input { font-size: 16px; }
  .input--sm { min-height: 44px; }

  /* alvos de toque de pelo menos 44 px */
  .logo { min-height: 44px; justify-content: center; }
  .crumbs a { display: inline-block; padding-block: 12px; }
  .crumbs { gap: 0 4px; margin-bottom: 0; align-items: center; }
  .chip-btn { min-height: 42px; padding: 8px 14px; font-size: .88rem; }
  .pager__n { min-width: 44px; height: 44px; }
  .qty { height: 48px; } .qty__btn { width: 48px; } .qty__input { width: 52px; font-size: 1rem; }
  .qty--sm { height: 44px; } .qty--sm .qty__btn { width: 44px; } .qty--sm .qty__input { width: 44px; }
  .link--danger { min-height: 44px; padding-inline: 4px; }
  .link { padding-block: 8px; display: inline-block; }
  .section__head .link { padding-block: 10px; }
  #cmp-btn, .btn--sm { min-height: 44px; }
  .pcard__compare { width: 42px; height: 42px; top: 6px; right: 6px; }
  .pcard__title a, .cline__name { display: inline-block; padding-block: 4px; }
  .site-footer li a, .footer-contact a { display: inline-block; padding-block: 11px; }
  .site-footer li { margin: 0; }
  .account-link, .cart-link, .site-actions .icon-btn { min-width: 44px; justify-content: center; }
  .demo-banner__btn { min-height: 36px; padding-inline: 14px; }

  /* textos pequenos demais ficam em 12 px ou mais */
  .badge, .pcard__brand, .chips-row li, .cline__brand, .story__tag, .story__new, .cart-count { font-size: .75rem; }
  .logo__sub { font-size: .6rem; }

  /* página inicial: a faixa "Chegou agora" aparece logo na primeira tela */
  .band--hero .band__inner { padding-block: 20px 22px; }
  .band--hero .band__eyebrow { margin-bottom: 6px; font-size: .7rem; }
  .band--hero .band__title { font-size: 1.75rem; max-width: none; }
  .band--hero .band__lead { display: none; }
  .band--hero .searchbox { margin-top: 12px; }
  .brand-chips { flex-wrap: nowrap; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
  .brand-chips::-webkit-scrollbar { display: none; }
  .brand-chips li { flex: none; }
  .brand-chips a { padding: 11px 18px; }
  .trust__list { gap: 4px 10px; padding-block: 10px; }
  .trust__list li { min-height: 44px; gap: 8px; }
  .trust__list b { font-size: .84rem; line-height: 1.2; }
  .trust__icon { width: 34px; height: 34px; border-radius: 10px; }
  .trust__list svg { width: 18px; height: 18px; }
  .section { padding-block: 22px 4px; }
  .main { padding-top: 14px; }

  /* janelas: avisos curtos sobem de baixo; janelas grandes (pedido, produto) ocupam a tela toda */
  .dlg { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92dvh; }
  .dlg--lg, .dlg--xl { height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .dlg--search { margin: 0 0 auto; border-radius: 0 0 18px 18px; }
  .dlg__head { padding: 10px 6px 10px 16px; }
  .dlg__body { padding: 16px; }
  .dlg__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .dlg__foot .btn { flex: 1; min-height: 48px; }
  .toasts { bottom: calc(12px + env(safe-area-inset-bottom)); }
  body.has-stickybar .toasts { bottom: 88px; }
}

/* ------------------------------- Movimento reduzido ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
