/* CWS Phones — vitrine. Mobile first. */
:root {
  /* Paleta da CWS Phones: azul do logotipo sobre branco */
  --bg: #ffffff;
  --bg-2: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --ink-rgb: 16, 24, 40;
  --line: rgba(16, 24, 40, 0.12);
  --text: #101828;
  --muted: #566074;
  --accent: #1f58a8;
  --accent-ink: #ffffff;
  --accent-hover: #194a8e;
  --accent-soft: #e6eefb;
  --wa: #25d366;
  --ok: #15803d;
  --warn: #b45309;
  --warn-ink: #92400e; /* texto sobre fundo claro: contraste ≥ 4,5:1 */
  --bad: #dc2626;
  color-scheme: light;
  --light-bg: #f5f5f7;
  --light-text: #141416;
  --light-muted: #5d5d66;
  --r: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --hdr: 64px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable", "Segoe UI", Inter, Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
html { scrollbar-gutter: stable; }
/* janela aberta (ficha, comparar, zoom): o fundo não rola com a roda do mouse */
html:has(dialog[open]) { overflow: hidden; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.04; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(34px, 6vw, 68px); }
.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 46ch; text-wrap: pretty; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform 0.15s ease, background 0.2s, border-color 0.2s; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border: 1px solid var(--line); background: rgba(var(--ink-rgb), 0.05); }
.btn--ghost:hover { border-color: rgba(var(--ink-rgb), 0.28); }
.btn--wa { background: var(--wa); color: #05260f; }
.btn--wa:hover { background: #3ee07e; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn small { font-weight: 500; opacity: 0.75; }
.btn--light { background: var(--light-text); color: #fff; }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.hdr__in { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; min-height: var(--hdr); display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand . burger" "search search search"; align-items: center; gap: 0 12px; padding-block: 8px; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand__mark { background: var(--accent); color: var(--accent-ink); padding: 3px 8px; border-radius: 9px; font-size: 15px; letter-spacing: 0; }
.nav, .hdr__wa { display: none; }
.burger { grid-area: burger; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.burger span, .burger span::before { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform 0.2s; }
.burger span::before { content: ""; position: absolute; top: 6px; }
.burger[aria-expanded="true"] span { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::before { transform: translateY(-6px) rotate(-90deg); top: 6px; }
.search { grid-area: search; position: relative; padding-block: 6px 4px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-40%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--ink-rgb), 0.07); padding: 0 16px 0 42px; font-size: 16px; outline: none; transition: border-color 0.2s, background 0.2s; }
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--accent); background: rgba(var(--ink-rgb), 0.1); }
.search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* contorno visível ao navegar pelo teclado */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); max-height: min(60vh, 420px); overflow: auto; z-index: 5; }
.suggest button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; text-align: left; min-height: 44px; }
.suggest button:hover, .suggest button[aria-selected="true"] { background: rgba(var(--ink-rgb), 0.08); }
.suggest em { font-style: normal; color: var(--muted); font-size: 13px; }
.suggest .none { padding: 12px; color: var(--muted); }

/* mega menu (desktop) / gaveta (celular) */
.mega { position: fixed; z-index: 49; left: 0; right: 0; top: var(--hdr-h, 112px); bottom: 0; background: var(--bg); overflow: auto; padding: 16px var(--gutter) 40px; border-top: 1px solid var(--line); }
.mega__grid { display: grid; gap: 22px; }
.mega h3 { font-size: 15px; letter-spacing: 0; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.mega h3 button, .mega h3 a { display: inline-flex; align-items: center; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--text); padding: 6px 0; min-height: 44px; }
.mega ul { list-style: none; }
.mega li button, .mega li a { display: flex; width: 100%; justify-content: space-between; padding: 10px 0; min-height: 44px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; }
.mega li button:hover, .mega li a:hover { color: var(--text); }
.mega li span { font-size: 13px; opacity: 0.7; }

@media (min-width: 900px) {
  :root { --hdr: 68px; }
  .hdr__in { grid-template-columns: auto auto minmax(220px, 420px) auto; grid-template-areas: "brand nav search wa"; justify-content: space-between; gap: 0 22px; }
  .burger { display: none; }
  .nav { grid-area: nav; display: flex; align-items: center; gap: 4px; }
  .nav a, .nav__btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s, background 0.2s; }
  .nav a:hover, .nav__btn:hover, .nav__btn[aria-expanded="true"] { color: var(--text); background: rgba(var(--ink-rgb), 0.07); }
  .nav__btn svg { width: 14px; height: 14px; transition: transform 0.2s; }
  .nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
  .hdr__wa { grid-area: wa; display: inline-flex; }
  .mega { top: var(--hdr); bottom: auto; max-height: calc(100vh - var(--hdr)); padding: 28px var(--gutter) 36px; box-shadow: 0 30px 60px rgba(16, 24, 40, 0.16); }
  .mega__grid { width: min(1180px, 100%); margin-inline: auto; grid-template-columns: repeat(6, 1fr); gap: 28px; }
  .mega li button, .mega li a { border: 0; padding: 7px 0; min-height: 36px; }
}

/* ---------- hero fixado (scroll narrativo) ---------- */
.pin { position: relative; height: 520vh; background: radial-gradient(120% 80% at 50% 0%, #e6eefb 0%, var(--bg) 60%); }
.pin__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; padding-top: var(--hdr); }
.aurora { position: absolute; inset: -20%; background: radial-gradient(40% 40% at 50% 55%, var(--glow, rgba(31, 88, 168, 0.18)), transparent 70%); transition: background 0.6s; pointer-events: none; }
.intro { position: absolute; z-index: 3; text-align: center; padding: 0 var(--gutter); top: calc(var(--hdr) + 44px); left: 0; right: 0; will-change: opacity, transform; }
.intro .hero__name { font-size: clamp(48px, 11vw, 132px); margin-bottom: 14px; }
.intro .lead { margin: 0 auto 22px; }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.phone { position: relative; z-index: 2; height: min(70vh, 640px); aspect-ratio: 300 / 620; perspective: 1400px; will-change: transform; margin-top: 10vh; }
.phone__in { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 40px 60px rgba(16, 24, 40, 0.3)); }
.face--front { transform: rotateY(180deg); }
.face svg { width: 100%; height: 100%; }
.swatches { position: absolute; z-index: 4; bottom: 78px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.swatches span { font-size: 13px; color: var(--muted); margin-right: 4px; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35); position: relative; }
.swatches button::after { content: ""; position: absolute; inset: -12px; }
.swatches button[aria-pressed="true"] { border-color: #fff; }
.feat { position: absolute; z-index: 3; opacity: 0; pointer-events: none; will-change: opacity, transform; left: var(--gutter); right: var(--gutter); bottom: 128px; padding: 18px 20px; border-radius: var(--r); background: linear-gradient(180deg, rgba(8, 8, 10, 0.2), rgba(8, 8, 10, 0.88)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.feat.is-on { pointer-events: auto; }
.feat h2 { font-size: clamp(30px, 8vw, 40px); margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 16px; }
.feat .big { display: block; font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.feat ul { list-style: none; margin-top: 12px; display: grid; gap: 6px; }
.feat li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.feat li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--ink-rgb), 0.06); font-size: 15px; font-weight: 500; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.chip__n { margin-left: 6px; opacity: 0.75; }
.chip:hover { border-color: rgba(var(--ink-rgb), 0.3); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.gauge { display: grid; gap: 6px; margin-top: 14px; max-width: 360px; }
.gauge__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.gauge__row b { color: var(--text); }
.bar { height: 8px; border-radius: 4px; background: rgba(var(--ink-rgb), 0.12); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--ok); }
.bar i.mid { background: var(--warn); }
.bar i.low { background: var(--bad); }

@media (min-width: 900px) {
  .swatches { bottom: 24px; }
  .phone { margin-top: 4vh; height: min(76vh, 700px); }
  .intro { top: calc(var(--hdr) + 7vh); }
  .feat { left: auto; right: auto; bottom: auto; top: 50%; width: min(440px, 40vw); padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: translateY(-50%); }
  .feat--r { right: max(var(--gutter), calc((100vw - 1180px) / 2)); }
  .feat--l { left: max(var(--gutter), calc((100vw - 1180px) / 2)); }
  .feat h2 { font-size: clamp(40px, 4.4vw, 60px); }
}
/* movimento reduzido: vira lista simples */
.pin.is-static { height: auto; }
.pin.is-static .pin__stage { position: static; height: auto; display: block; padding: calc(var(--hdr) + 32px) var(--gutter) 40px; overflow: visible; }
.pin.is-static .intro, .pin.is-static .feat { position: static; opacity: 1 !important; transform: none !important; margin: 0 auto 36px; width: min(560px, 100%); background: none; padding: 0; text-align: left; }
.pin.is-static .phone { margin: 24px auto; transform: none !important; height: 460px; }
.pin.is-static .phone__in { transform: none !important; }
.pin.is-static .swatches { display: none; }

/* ---------- faixas ---------- */
.band { padding-block: clamp(72px, 12vw, 150px); position: relative; overflow: hidden; }
.band--light { background: var(--light-bg); color: var(--light-text); }
.band--light .lead, .band--light .muted { color: var(--light-muted); }
.band--mac { background: radial-gradient(90% 70% at 50% 100%, #dbe7f7, var(--bg)); }
.split { display: grid; gap: 36px; align-items: center; }
.split__art { max-width: 560px; margin-inline: auto; width: 100%; }
.split__art svg { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); }
.band--light .split__art svg { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.25)); }
.split h2 { margin-bottom: 18px; }
.from { display: inline-flex; align-items: baseline; gap: 6px; margin-left: 4px; color: var(--muted); font-size: 15px; }
.band--light .from { color: var(--light-muted); }
.from b { color: inherit; font-size: 1.25em; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.dots-sw { display: flex; gap: 10px; margin-top: 22px; }
.dots-sw button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2); position: relative; }
.dots-sw button::after { content: ""; position: absolute; inset: -9px; }
.dots-sw button[aria-pressed="true"] { border-color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts b { display: block; font-size: clamp(20px, 3vw, 28px); letter-spacing: -0.02em; }
.facts span { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split--rev .split__art { order: -1; }
}
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal], .reduce [data-reveal] { opacity: 1; transform: none; transition: none; }

/* bento */
.bento { display: grid; gap: 14px; margin-top: 40px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; text-align: left; transition: transform 0.3s ease, border-color 0.3s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(var(--ink-rgb), 0.22); }
.tile h3 { font-size: clamp(28px, 4vw, 38px); }
.tile p { color: var(--muted); margin-top: 6px; }
.tile__art { margin: 18px auto 0; width: min(78%, 330px); }
.tile .from { margin: 10px 0 0; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(3, 1fr); } }

/* ---------- catálogo ---------- */
.cat { background: var(--bg-2); padding-block: clamp(64px, 10vw, 120px); border-top: 1px solid var(--line); }
.cat__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.filters { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 26px; }
.filters h3 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.scrollx { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: -4px; padding-inline: 4px; }
.scrollx::-webkit-scrollbar { display: none; }
.scrollx .chip { flex: none; }
.frow { display: grid; gap: 16px; }
.filters > *, .frow > * { min-width: 0; }
.field select { width: 100%; min-height: 48px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); padding: 0 14px; font-size: 16px; }
.range { width: 100%; accent-color: var(--accent); height: 44px; }
.range-out { font-weight: 600; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--text); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; min-height: 20px; }
.result-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 15px; gap: 10px; flex-wrap: wrap; }
.link { color: var(--accent); font-weight: 600; min-height: 44px; padding: 0 4px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(var(--ink-rgb), 0.22); box-shadow: 0 20px 40px rgba(16, 24, 40, 0.14); }
.card__media { aspect-ratio: 4 / 3.2; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 40%, var(--tint, rgba(var(--ink-rgb), 0.08)), transparent 75%), var(--surface-2); padding: 18px; position: relative; }
.card__media svg, .card__media img { max-height: 100%; width: auto; max-width: 78%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(16, 24, 40, 0.22)); }
.card__media img { max-width: 100%; width: 100%; height: 100%; object-fit: cover; filter: none; position: absolute; inset: 0; padding: 0; }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); z-index: 1; }
.badge--lacrado { color: var(--accent); } .badge--novo { color: var(--ok); } .badge--seminovo { color: var(--warn-ink); } .badge--usado { color: var(--warn-ink); }
.badge--res { left: auto; right: 12px; color: #fff; background: var(--accent); }
.card__body { padding: 16px 18px 18px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card__title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.card__meta { font-size: 14px; color: var(--muted); }
.mini { display: grid; gap: 5px; }
.mini .bar { height: 6px; }
.mini__txt { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.mini__txt b { color: var(--text); font-weight: 600; }
.card__price { margin-top: auto; padding-top: 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.card.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 100% { box-shadow: none; } 20% { box-shadow: 0 0 0 3px var(--accent), 0 0 40px rgba(31, 88, 168, 0.35); } }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 16px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.empty .btn { margin-top: 16px; }

/* explicação dos estados */
.states { display: grid; gap: 10px; margin-top: 40px; }
.states div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.states b { display: block; margin-bottom: 4px; }
.states p { font-size: 14px; color: var(--muted); }
@media (min-width: 700px) { .states { grid-template-columns: repeat(4, 1fr); } .frow { grid-template-columns: 1fr 1fr 1fr; align-items: end; } }
@media (min-width: 900px) { .filters { padding: 24px; } }

/* ---------- modal ---------- */
dialog.sheet { border: 0; padding: 0; background: var(--surface); color: var(--text); width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh; margin: auto 0 0; border-radius: 28px 28px 0 0; overflow: auto; overscroll-behavior: contain; }
dialog.sheet::backdrop { background: rgba(16, 24, 40, 0.5); backdrop-filter: blur(4px); }
dialog.sheet[open] { animation: up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet__x { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 5; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); font-size: 22px; }
/* celular: o float estreitava a grade e deixava uma faixa morta à direita; o botão continua fixo no topo, mas sem ocupar espaço */
@media (max-width: 899px) { .sheet__x { float: none; display: block; margin: 12px 12px -56px auto; } }
.sheet__grid { display: grid; }
.gal { background: radial-gradient(70% 70% at 50% 40%, var(--tint, rgba(var(--ink-rgb), 0.1)), transparent 75%), var(--surface-2); padding: 28px 20px 16px; display: grid; gap: 14px; }
.gal__main { height: min(44vh, 380px); display: grid; place-items: center; position: relative; }
.gal__main { touch-action: pan-y; } /* deixa a página rolar na vertical e entrega o deslize horizontal ao JavaScript (troca de foto) */
.gal__main img { -webkit-user-drag: none; user-select: none; }
.gal__main svg { max-height: 100%; width: auto; max-width: 70%; filter: drop-shadow(0 18px 26px rgba(16, 24, 40, 0.25)); }
.gal__main img { max-height: 100%; max-width: 100%; border-radius: 16px; object-fit: contain; }
.gal__th { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.gal__th button { width: 56px; height: 56px; border-radius: 12px; border: 2px solid transparent; background: var(--surface); overflow: hidden; display: grid; place-items: center; position: relative; }
.gal__th button[aria-pressed="true"] { border-color: var(--accent); }
.gal__th img { width: 100%; height: 100%; object-fit: cover; }
.gal__th svg { width: 70%; height: 70%; }
.info { padding: 22px 22px 28px; display: grid; gap: 16px; align-content: start; }
.info h2 { font-size: clamp(28px, 5vw, 40px); }
.info .price { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.specs div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.specs span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.specs b { font-size: 16px; }
.bigbat { padding: 14px 16px; border-radius: 16px; background: var(--surface-2); display: grid; gap: 8px; }
.cond-hint { font-size: 14px; color: var(--muted); }
.incl { font-size: 14px; color: var(--muted); }
.incl b { color: var(--text); }
.ctas { display: grid; gap: 10px; }
@media (min-width: 900px) {
  dialog.sheet { width: min(1040px, 94vw); margin: auto; border-radius: 28px; max-height: 88vh; }
  .sheet__grid { grid-template-columns: 1.05fr 1fr; }
  .gal { padding: 48px 32px 24px; }
  .gal__main { height: 460px; }
  .info { padding: 56px 36px 36px; }
}

/* ---------- troca / rodapé ---------- */
.steps { display: grid; gap: 14px; margin-top: 38px; counter-reset: s; }
.step { background: #fff; border-radius: 24px; padding: 24px; counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--light-muted); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.foot { padding-block: 56px 120px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot__in { display: grid; gap: 22px; }
.foot a:hover { color: var(--text); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { display: inline-flex; min-height: 44px; align-items: center; }
@media (min-width: 800px) { .foot__in { grid-template-columns: 1fr auto; align-items: center; } }

/* toast */
.toast { position: fixed; z-index: 70; top: calc(var(--hdr-h, 112px) + 10px); left: 50%; transform: translate(-50%, -16px); opacity: 0; transition: 0.35s; padding: 10px 18px; border-radius: 999px; background: var(--text); color: #111; font-size: 14px; font-weight: 600; max-width: calc(100vw - 32px); pointer-events: none; text-align: center; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ======================================================================
   Versão 2: cores animadas, tour de cores, disponibilidade, ficha do modelo
   ====================================================================== */
@property --c { syntax: '<color>'; inherits: true; initial-value: #8a8f98; }
svg.art { transition: --c 0.8s ease; }

.seg--hero { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(var(--ink-rgb), 0.08); border: 1px solid var(--line); margin: 0 auto 18px; max-width: 100%; }
.seg--hero button { min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.seg--hero button[aria-selected="true"] { background: var(--accent); color: #fff; }
.intro .hero__name { font-size: clamp(42px, 9vw, 112px); }
.intro .cta .btn { min-height: 46px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.ok { background: rgba(21, 128, 61, 0.12); color: var(--ok); }
.pill.warn { background: rgba(180, 83, 9, 0.12); color: var(--warn-ink); }

.tour { position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; width: min(440px, calc(100% - 24px)); padding: 8px; border-radius: 26px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); transition: border-color 0.4s; }
.tour.is-unavailable { border-color: rgba(251, 191, 36, 0.45); }
.tour__nav { width: 44px; height: 44px; flex: none; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--muted); }
.tour__nav:hover { color: var(--text); background: rgba(var(--ink-rgb), 0.08); }
.tour__mid { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: center; text-align: center; }
.tour__dots { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tour__dots button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35); position: relative; transition: transform 0.2s; }
.tour__dots button::after { content: ""; position: absolute; inset: -14px; }
.tour__dots button[aria-pressed="true"] { border-color: #fff; transform: scale(1.12); }
.tour__dots button.is-off { opacity: 0.55; outline: 1px dashed rgba(var(--ink-rgb), 0.55); outline-offset: 2px; }
.tour__info { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; justify-content: center; font-size: 14px; }
.tour__act { font-size: 13px; font-weight: 600; color: var(--accent); min-height: 32px; display: inline-flex; align-items: center; }
.tour.is-unavailable .tour__act { color: var(--warn-ink); }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 6px 12px; border-radius: 999px; border: 1px dashed rgba(var(--ink-rgb), 0.3); color: var(--muted); font-size: 14px; }
.opt.is-ok { border: 1px solid var(--ok); color: var(--text); background: rgba(74, 222, 128, 0.1); }
/* capacidade sem pronta entrega: link para pedir pelo WhatsApp */
a.opt--order { text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; }
a.opt--order:hover, a.opt--order:focus-visible { border-style: solid; border-color: var(--accent); color: var(--accent); }
a.opt--order:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* área de toque de 44 px ou mais de altura sem mudar o desenho (36 px visíveis + 5 px acima e abaixo) */
a.opt--order { position: relative; }
a.opt--order::after { content: ""; position: absolute; inset: -5px 0; }
.legend { font-size: 12px; color: var(--muted); margin-top: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1px dashed var(--muted); margin: 0 4px 0 10px; vertical-align: 0; }
.dot.ok { background: var(--ok); border: 0; margin-left: 0; }
.mini-h { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 14px 0 8px; }
.note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.feat ul { font-size: 15px; }
.link { background: none; text-align: left; }
.fam { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
#fModelInfo { padding-top: 4px; }

/* ficha do modelo */
.badge--ms { background: rgba(var(--ink-rgb), 0.08); color: var(--text); }
.hl { list-style: none; display: grid; gap: 6px; font-size: 15px; }
.hl li { display: flex; gap: 10px; align-items: baseline; }
.hl li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.ms-color { text-align: center; font-size: 16px; min-height: 24px; }
.cgrid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.cbtn { display: grid; grid-template-columns: 22px 1fr; gap: 3px 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 2px solid transparent; min-height: 44px; }
.cbtn i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.3); grid-row: span 2; }
.cbtn span { font-size: 14px; font-weight: 600; }
.cbtn em { grid-column: 2; justify-self: start; font-style: normal; }
.cbtn[aria-pressed="true"] { border-color: var(--accent); }
.specl { display: grid; }
.specl div { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specl dt { color: var(--muted); font-size: 13px; }
.specl dd { font-size: 14px; }
#modelSheet .info { gap: 14px; }

/* listas longas: o navegador pula o que está fora da tela */
.card { content-visibility: auto; contain-intrinsic-size: 300px 420px; }

@media (max-width: 899px) {
  .tour { bottom: 14px; }
  .feat { bottom: 190px; padding: 14px 16px; }
  .feat h2 { font-size: clamp(26px, 7.4vw, 34px); }
  .feat li, .feat p { font-size: 14px; line-height: 1.35; }
  .feat li { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .intro .cta .btn { flex: 1 1 auto; }
}
@media (min-width: 900px) {
  .tour { bottom: 24px; }
}

/* fotos reais por modelo/cor (opcionais): ficam em cartão claro, como nos fundos originais */
/* A caixa da foto tem proporção FIXA (quadrada, a das fotos do catálogo): fotos largas (16:9) ou estreitas cabem nela com
   object-fit: contain sobre o mesmo fundo. Antes a caixa seguia a proporção de cada foto e tudo abaixo pulava ao deslizar. */
.gal__main--photo { height: auto; width: 100%; aspect-ratio: 1 / 1; max-height: min(52vh, 460px); margin-inline: auto; border-radius: 16px; background: #f5f5f7; overflow: hidden; }
.gal__main--photo img, .gal__main--photo .ph-model { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; border-radius: 16px; background: #f5f5f7; filter: none; }
.gal__th img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- visualizador de fotos com zoom ---------- */
dialog.zoom { border: 0; padding: 0; margin: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; background: rgba(8, 8, 10, 0.97); color: var(--text); overflow: hidden; }
dialog.zoom::backdrop { background: rgba(0, 0, 0, 0.85); }
.zoom__bar { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; background: linear-gradient(rgba(8, 8, 10, 0.9), transparent); }
.zoom__hint { font-size: 13px; color: var(--muted); }
.zoom__btns { display: flex; gap: 6px; }
.zoom__btns button, .zoom__nav { min-width: 44px; height: 44px; border-radius: 22px; background: rgba(var(--ink-rgb), 0.1); border: 1px solid var(--line); font-size: 22px; line-height: 1; padding: 0 12px; }
.zoom__btns button:hover, .zoom__nav:hover { background: rgba(var(--ink-rgb), 0.2); }
.zoom__btns .zoom__fit { font-size: 14px; font-weight: 600; }
.zoom__stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.zoom__stage img { position: absolute; left: 50%; top: 50%; max-width: 94%; max-height: 82%; transform-origin: center; will-change: transform; background: #f5f5f7; border-radius: 12px; pointer-events: none; }
.zoom__nav { position: absolute; z-index: 3; top: 50%; margin-top: -22px; }
.zoom__nav--prev { left: 12px; } .zoom__nav--next { right: 12px; }
.zoom__dots { position: absolute; z-index: 3; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.zoom__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--ink-rgb), 0.3); }
.zoom__dots i.on { background: #fff; }
.zoom-btn { position: absolute; right: 12px; bottom: 12px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.gal__main { position: relative; }
.gal__main img[data-zoomable] { cursor: zoom-in; }

/* ======================================================================
   Herói com fotos reais: palco claro (o fundo das fotos é #f5f5f7)
   ====================================================================== */
.shots { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none; will-change: transform; }
.pin.is-photo .shots { display: block; }
.pin.is-photo .phone, .pin.is-photo .aurora { display: none; }
.shots img { position: absolute; left: 50%; top: 50%; height: 112vh; width: auto; max-width: none; transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.18s linear; }
.shots img[data-view="detalhe"] { height: 100vh; min-width: 100%; object-fit: cover; }

.pin { transition: background-color 0.4s; }
.pin.is-photo { background: #f5f5f7; --text: #111114; --muted: #55555d; --line: rgba(0, 0, 0, 0.14); color: #111114; }
.pin.is-photo .intro .hero__name, .pin.is-photo .feat h2 { color: #111114; }
.pin.is-photo .lead, .pin.is-photo .feat p, .pin.is-photo .feat li, .pin.is-photo .legend, .pin.is-photo .mini-h, .pin.is-photo .note { color: #55555d; }
.pin.is-photo .btn--ghost { background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.18); color: #111114; }
.pin.is-photo .btn--ghost:hover { border-color: rgba(0, 0, 0, 0.4); }
.pin.is-photo .seg--hero { background: rgba(0, 0, 0, 0.06); border-color: rgba(0, 0, 0, 0.1); }
.pin.is-photo .seg--hero button { color: #55555d; }
.pin.is-photo .seg--hero button[aria-selected="true"] { background: #111114; color: #fff; }
.pin.is-photo .chip { background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.16); color: #111114; }
.pin.is-photo .chip[aria-pressed="true"], .pin.is-photo .chip:hover { border-color: #111114; }
.pin.is-photo .gauge__row, .pin.is-photo .gauge__row b { color: #111114; }
.pin.is-photo .bar { background: rgba(0, 0, 0, 0.12); }
.pin.is-photo .opt { color: #55555d; border-color: rgba(0, 0, 0, 0.3); }
.pin.is-photo .opt.is-ok { color: #111114; background: rgba(22, 163, 74, 0.12); border-color: #16a34a; }
.pin.is-photo .link { color: var(--accent); }
@media (max-width: 899px) {
  .pin.is-photo .feat { background: linear-gradient(rgba(245, 245, 247, 0), rgba(245, 245, 247, 0.96) 38%); }
}
@media (min-width: 900px) {
  .shots img[data-view="detalhe"] { left: 33%; }
}

/* sem "pisca": o herói só aparece quando o modelo e as fotos já foram definidos */
.pin { transition: none; }
.pin__stage { opacity: 0; transition: opacity 0.35s ease; }
.pin.is-ready .pin__stage, .no-js .pin__stage { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pin__stage { transition: none; } }

/* materiais e pulseiras (ficha técnica) */
.mat { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mat h4 { font-size: 16px; letter-spacing: -0.01em; }
.mat ul { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.mat li { display: grid; grid-template-columns: minmax(96px, 30%) auto 1fr; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.mat li span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.mat li em { font-style: normal; color: var(--muted); grid-column: 1 / -1; font-size: 13px; }
@media (min-width: 560px) { .mat li em { grid-column: auto; } }

/* seção Apple Watch com foto real */
#watchArt { max-width: 340px; }
#watchArt.has-photo { max-width: 680px; }
#watchArt img { width: 100%; height: auto; border-radius: 20px; cursor: zoom-in; background: #fafafa; filter: none; }
.band--light .dots-sw { flex-wrap: wrap; }

/* iPhone Duo: foto larga (aparelho aberto), então fica menor e mais à esquerda para não cobrir o texto */
.shots[data-model="iphoneduo"] img,
.shots[data-model="iphoneduo"] img[data-view="detalhe"] { height: auto; width: min(64vh * 1.78, 92vw); min-width: 0; object-fit: contain; }
@media (min-width: 900px) {
  .shots[data-model="iphoneduo"] img,
  .shots[data-model="iphoneduo"] img[data-view="detalhe"] { left: 40%; width: min(76vh * 1.78, 58vw); }
}

/* cabeçalho claro com o logotipo azul da CWS Phone */
.hdr, .mega { --text: #111114; --muted: #5d5d66; --line: rgba(17, 17, 20, 0.12); --surface: #fff; --bg: #fff; }
.hdr { background: rgba(255, 255, 255, 0.9); }
.brand img { height: 44px; width: auto; }
.hdr .search input { background: rgba(17, 17, 20, 0.05); }
.hdr .search input:focus { background: #fff; }
.hdr .suggest button:hover, .hdr .suggest button[aria-selected="true"], .hdr .nav a:hover, .hdr .nav__btn:hover, .hdr .nav__btn[aria-expanded="true"] { background: rgba(17, 17, 20, 0.06); }

/* vitrines de modelos (MacBook, iPad, AirPods, acessórios) */
.pick__tabs { display: flex; gap: 8px; margin: 28px 0 18px; overflow-x: auto; scrollbar-width: none; }
.pick__tabs button { flex: none; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; color: var(--muted); }
.pick__tabs button[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.pick__body { display: grid; gap: 22px; align-items: center; }
.pick__stage { background: #f5f5f7; border-radius: 28px; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; }
.pick__stage img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.pick__art { width: min(70%, 340px); filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.25)); }
.pick__side h3 { font-size: clamp(26px, 3.4vw, 38px); }
.pick__meta { color: var(--muted); margin-top: 4px; font-size: 15px; }
.pick__specs { list-style: none; margin-top: 14px; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.pick__specs b { color: var(--text); font-weight: 600; }
.pick__dots { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pick__dots button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(var(--ink-rgb), 0.25); }
.pick__dots button[aria-pressed="true"] { border-color: var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.pick__cname { color: var(--muted); font-size: 14px; margin-left: 4px; }
.pick__price { margin-top: 14px; color: var(--muted); }
.pick__price b { color: var(--text); font-size: 22px; margin-left: 4px; }
.pick__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pick__pills { display: flex; gap: 8px; margin-top: 22px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.pick__pills button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 500; }
.pick__pills button[aria-selected="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.pick__body--compact .pick__side h3 { font-size: 22px; }
@media (min-width: 900px) {
  .pick--mais .pick__body { grid-template-columns: 1.15fr 1fr; gap: 48px; }
  #macArt { max-width: 640px; }
}

/* celular: a vitrine com fileira rolável não pode alargar a coluna e cortar o texto da seção */
.split { grid-template-columns: minmax(0, 1fr); }
.split > *, .pick__body > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
/* celular: primeiro a foto do produto, depois o texto e o botão "Ver ..." (Apple Watch e MacBook) */
@media (max-width: 899px) { .split__art { order: -1; } }

/* alvos de toque de 44 px nas bolinhas de cor das vitrines e no link do tour */
.pick__dots button { position: relative; }
.pick__dots button::after { content: ""; position: absolute; inset: -9px; }
.tour__act { min-height: 44px; }


/* ---- paleta azul e branco: o que continua escuro de propósito ---- */
dialog.zoom { --ink-rgb: 255, 255, 255; --text: #f5f7fb; --muted: #b8c2d4; --line: rgba(255, 255, 255, 0.18); color: #f5f7fb; }
.zoom-btn { color: #fff; }
.swatches { --ink-rgb: 255, 255, 255; }
.btn--wa { color: #05260f; }
.eyebrow { color: var(--accent); }

/* seletor de modelos: sem barra de rolagem do navegador */
.pick__pills { scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x proximity; padding-bottom: 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); }
.pick__pills::-webkit-scrollbar { display: none; }
.pick__pills button { scroll-snap-align: start; }
@media (min-width: 700px) {
  /* telas largas: os modelos quebram em linhas, sem rolar para o lado */
  .pick__pills { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; gap: 10px; }
}
.pick__pills button { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ---------- herói: seletor, ações e troca ---------- */
.intro .seg--hero { margin: 0 auto 14px; }
.cta__from { margin-top: 10px; color: var(--muted); font-size: 15px; }
.cta__from::first-line { font-weight: 500; }
.cta__trade { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 0 6px; color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(31, 88, 168, 0.35); }
.cta__trade:hover { text-decoration-color: var(--accent); }
@media (max-width: 899px) { .intro .cta .btn { flex: 1 1 140px; } }

/* ---------- painel de cores (claro, sobre a foto) ---------- */
.tour { background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16); gap: 2px; padding: 10px 8px 12px; }
.tour.is-unavailable { border-color: rgba(180, 83, 9, 0.35); }
.tour__mid { gap: 6px; }
.tour__dots button { box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.25); }
.tour__dots button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px #fff; transform: scale(1.08); }
.tour__dots button.is-off { opacity: 0.5; outline: 1px dashed rgba(16, 24, 40, 0.4); }
.tour__info b { color: var(--text); }
.tour__act { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); background: transparent; }
.tour__act:hover { background: var(--accent); color: #fff; }
.tour.is-unavailable .tour__act { border-color: var(--warn); color: var(--warn); }
.tour.is-unavailable .tour__act:hover { background: var(--warn); color: #fff; }
.tour__nav { color: var(--muted); }

/* ---------- vitrines: busca por outros modelos ---------- */
.pick__more { margin-top: 14px; position: relative; max-width: 520px; }
.pick__find { display: grid; gap: 6px; }
.pick__find span { font-size: 13px; font-weight: 600; color: var(--muted); }
.pick__find input { height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 18px; font-size: 16px; outline: none; }
.pick__find input:focus { border-color: var(--accent); background: #fff; }
.pick__res { margin-top: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12); display: grid; max-height: 280px; overflow: auto; }
.pick__res button { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; padding: 0 12px; border-radius: 12px; text-align: left; }
.pick__res button:hover { background: var(--accent-soft); }
.pick__res button span, .pick__res p { color: var(--muted); font-size: 13px; }
.pick__res p { padding: 12px; }

/* ---------- rodapé: redes com ícone; área da equipe discreta ---------- */
.foot nav.social { display: flex; gap: 12px; }
.foot nav.social a { width: 46px; height: 46px; min-height: 46px; justify-content: center; border-radius: 50%; border: 1px solid var(--line); color: var(--text); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.foot nav.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.foot { padding-block: 48px 110px; }
.foot__low { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Apple Watch: seletor dos dois modelos atuais ---------- */
.seg--watch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(var(--ink-rgb), 0.06); border: 1px solid var(--line); margin: 6px 0 4px; }
.seg--watch button { min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); }
.seg--watch button[aria-selected="true"] { background: var(--accent); color: #fff; }
.watch__name { font-size: 15px; font-weight: 600; margin: 10px 0 0; color: var(--text); }

/* telas baixas (celulares pequenos): abertura mais enxuta para o painel de cores não cobrir os botões */
@media (max-height: 720px) {
  .intro .lead { display: none; }
  .intro .hero__name { font-size: clamp(36px, 10vw, 60px); margin-bottom: 10px; }
  .intro .seg--hero { margin-bottom: 8px; }
  .cta__from { margin-top: 6px; font-size: 14px; }
  .tour { padding: 6px 6px 8px; bottom: 10px; }
  .tour__mid { gap: 2px; }
  .tour__act { min-height: 38px; font-size: 12px; padding: 0 12px; }
  .tour__dots button { width: 24px; height: 24px; }
}
@media (max-width: 480px) { .tour__info { flex-wrap: nowrap; } .tour__info .pill { white-space: nowrap; } }

/* celulares muito curtos (iPhone SE e semelhantes): abertura e painel ainda mais enxutos */
@media (max-height: 600px) {
  .intro { top: calc(var(--hdr) + 22px); }
  .intro .hero__name { font-size: clamp(30px, 9vw, 44px); margin-bottom: 6px; }
  .intro .eyebrow { margin-bottom: 4px; font-size: 11px; }
  .intro .seg--hero button { min-height: 38px; padding: 0 12px; }
  .intro .cta .btn { min-height: 42px; }
  .cta__from { display: none; }
  .cta__trade { min-height: 36px; font-size: 13px; }
  .tour__info .pill { font-size: 11px; padding: 2px 8px; }
  .tour__act { display: none; }
  .tour { bottom: 8px; }
}


/* ---------- vitrines: uma fileira por linha de produto ---------- */
.pick__lines { display: grid; gap: 12px; margin-top: 22px; }
.pick__line { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; }
.pick__lbl { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.pick__line .pick__pills { margin-top: 0; flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; padding-bottom: 0; gap: 8px; }
@media (max-width: 599px) { .pick__line { grid-template-columns: 1fr; gap: 6px; } }

/* celular: nenhum texto de seletor é cortado com reticências; o nome longo quebra em duas linhas */
@media (max-width: 599px) {
  .pick__pills button { max-width: 100%; white-space: normal; text-align: left; line-height: 1.25; padding-block: 8px; border-radius: 18px; overflow: visible; text-overflow: clip; }
}

/* Apple Watch: cores separadas por material (alumínio, titânio, cerâmica) */
#watchSw.dots-sw { display: grid; gap: 6px; margin-top: 14px; }
.watch__mat { display: flex; align-items: center; gap: 12px; }
.watch__lbl { flex: none; width: 78px; font-size: 13px; font-weight: 700; color: var(--muted); }
.watch__sw { display: flex; flex-wrap: wrap; gap: 10px; }

.foot__policy { text-decoration: underline; text-underline-offset: 3px; }
.foot__policy:hover { color: var(--accent); }

.more { display: flex; justify-content: center; margin-top: 20px; }
.more .btn { min-height: 48px; padding: 0 28px; }

#fBat { direction: rtl; }

.mega__more { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(var(--ink-rgb), 0.1); }
.mega__more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--accent); }
@media (min-width: 900px) { .mega__more { display: none; } }

/* ======================================================================
   Abertura estática (sem cena presa à rolagem): texto, foto única, cores e quatro cartões, em fluxo normal
   ====================================================================== */
.pin.is-static { height: auto; }
.pin.is-static .pin__stage { position: static; height: auto; overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; width: min(1180px, 100%); margin: 0 auto; padding: calc(var(--hdr) + 20px) var(--gutter) 40px; place-items: stretch; }
.pin.is-static .aurora { display: none; }
.pin.is-static .intro { position: static; grid-area: intro; opacity: 1 !important; translate: none !important; pointer-events: auto !important; padding: 0; text-align: center; width: auto; margin: 0; }
.pin.is-static .intro .hero__name { font-size: clamp(38px, 10vw, 64px); }
.pin.is-static .intro .lead { margin: 0 auto 18px; }
.pin.is-static .shots { position: static; grid-area: media; display: none; transform: none !important; pointer-events: auto; }
.pin.is-static.is-photo .shots { display: block; }
.pin.is-static .shots img { position: static; display: block; transform: none; opacity: 1 !important; height: auto; width: 100%; max-width: 520px; min-width: 0; margin: 0 auto; object-fit: contain; border-radius: 20px; transition: none; }
.pin.is-static .phone { position: relative; grid-area: media; justify-self: center; margin: 0; height: min(46vh, 420px); transform: none !important; will-change: auto; }
.pin.is-static .phone__in { transform: none !important; }
.pin.is-static .tour { position: static; grid-area: tour; transform: none; justify-self: center; width: min(440px, 100%); }
.pin.is-static .feat { position: static; opacity: 1 !important; translate: none !important; pointer-events: auto; width: auto; margin: 0; padding: 16px 18px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; left: auto; right: auto; bottom: auto; }
.pin.is-static .feat h2 { font-size: clamp(20px, 5vw, 26px); }
.pin.is-static .feat .big { margin-bottom: 6px; }
.pin.is-static .feat[data-i="1"] { grid-area: f1; } .pin.is-static .feat[data-i="2"] { grid-area: f2; }
.pin.is-static .feat[data-i="3"] { grid-area: f3; } .pin.is-static .feat[data-i="4"] { grid-area: f4; }
.pin.is-static .pin__stage { grid-template-areas: "intro" "media" "tour" "f1" "f2" "f3" "f4"; }
@media (min-width: 600px) {
  .pin.is-static .pin__stage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "intro intro" "media media" "tour tour" "f1 f2" "f3 f4"; }
}
@media (min-width: 900px) {
  .pin.is-static .pin__stage { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "intro intro media media" "tour tour media media" "f1 f2 f3 f4"; gap: 20px 24px; align-items: center; padding-top: calc(var(--hdr) + 36px); }
  .pin.is-static .intro { text-align: left; }
  .pin.is-static .intro .hero__name { font-size: clamp(44px, 5.4vw, 76px); }
  .pin.is-static .intro .lead { margin: 0 0 22px; }
  .pin.is-static .intro .seg--hero { margin: 0 0 14px; }
  .pin.is-static .intro .cta { justify-content: flex-start; }
  .pin.is-static .tour { justify-self: start; }
  .pin.is-static .phone { height: min(58vh, 520px); }
  .pin.is-static .feat { align-self: stretch; }
}

/* catálogo no celular: duas colunas de cartões compactos, para ver vários aparelhos de uma vez */
@media (max-width: 599px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 16px; }
  .card:hover { transform: none; }
  .card__media { aspect-ratio: 1 / 1; padding: 8px; }
  .badge { top: 6px; left: 6px; padding: 2px 7px; font-size: 12px; } /* selos legíveis: mínimo de 12 px */
  .badge--res { right: 6px; }
  .card__media .badge--res { top: auto; bottom: 6px; left: auto; } /* no canto de baixo: com o selo de 12 px, Seminovo + Reservado não cabem lado a lado no cartão de 2 colunas (e o left: 6px do .badge esticava o selo) */
  .card__body { padding: 10px 11px 12px; gap: 5px; }
  .card__title { font-size: 14px; line-height: 1.25; }
  .card__meta { font-size: 12px; }
  .mini .bar { height: 4px; }
  .mini__txt { font-size: 13px; } /* bateria e ciclos: mínimo de 13 px */
  .card__price { font-size: 17px; padding-top: 2px; }
}
.pin.is-static .shots img { aspect-ratio: 5 / 4; object-fit: cover; object-position: center 45%; max-width: 560px; }
@media (min-width: 900px) { .pin.is-static .shots img { aspect-ratio: 1 / 1; max-width: 100%; } }
/* celular: camera e desempenho ficam na ficha técnica (botão do topo); sobram bateria e estado */
@media (max-width: 599px) {
  .pin.is-static .feat[data-i="1"], .pin.is-static .feat[data-i="2"] { display: none; }
  .pin.is-static .pin__stage { grid-template-areas: "intro" "media" "tour" "f3" "f4"; }
}
@media (max-width: 599px) { .card__media svg { height: 100%; width: auto; max-width: 70%; } }

/* fotos "par" têm muita margem: aproxima para o aparelho aparecer maior no cartão */
.card__media { overflow: hidden; }

/* celular: textos de apoio e alvos de toque (mínimo 44 px) */
.pin.is-static .intro .lead { display: block; }
.intro .seg--hero button { min-height: 44px; }
.cta__trade { display: inline-flex; align-items: center; min-height: 44px; }
.tour__act { min-height: 44px; }
.tour__dots button::after { inset: -14px; }
.pin.is-static .intro .cta .btn { min-height: 46px; }

/* comparador de modelos */
.result-bar__act { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.cta__compare { margin-top: 0; }
.cmp { padding: 22px 18px 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.cmp h2 { font-size: clamp(26px, 5vw, 36px); padding-right: 48px; }
.cmp__cats { display: flex; gap: 8px; flex-wrap: wrap; }
.cmp__cats .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.cmp__sel { display: grid; gap: 10px; }
.cmp__pick { min-width: 0; display: grid; gap: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cmp__pick select { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; background: var(--surface); }
.cmp__only { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.cmp__only input { width: 22px; height: 22px; accent-color: var(--accent); }
.cmp__table { display: grid; gap: 10px; }
.cmp__row { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cmp__row.is-diff { border-color: var(--accent); background: var(--accent-soft, #e6eefb); }
.cmp__l { flex-wrap: wrap; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cmp__l em { font-style: normal; font-size: 11px; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; text-transform: none; letter-spacing: 0; }
.cmp__c { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.cmp__c::before { content: attr(data-name) ": "; font-weight: 700; color: var(--text); }
.cmp__head { background: none; border: 0; padding: 0 15px; }
.cmp__head .cmp__l { display: none; }
.cmp__h { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2, #f1f4f9); }
.cmp__h b { font-size: 17px; }
.cmp__h span { font-size: 13px; color: var(--muted); }
.cmp__same { color: var(--muted); padding: 18px 4px; }
.cmp__acts { display: grid; gap: 10px; margin-top: 6px; }
.cmp__btns { display: grid; gap: 10px; }
.cmp .btn { min-height: 48px; }
@media (min-width: 760px) {
  dialog#compare { width: min(1240px, 96vw); margin: auto; border-radius: 28px; max-height: 92vh; max-height: 92dvh; overflow-x: hidden; }
  .cmp { padding: 40px clamp(20px, 3vw, 36px) 36px; }
  .cmp__sel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cmp__row { grid-template-columns: minmax(130px, 170px) repeat(var(--n, 2), minmax(0, 1fr)); align-items: start; gap: 14px; }
  .cmp--2 .cmp__row { --n: 2; } .cmp--3 .cmp__row { --n: 3; }
  .cmp__c::before { content: none; }
  .cmp__head .cmp__l { display: block; }
  .cmp__btns { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 759px) { .cmp__cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding-inline: 18px; } .cmp__cats .chip { flex: none; } }

/* celular: botões do topo mais compactos (sobem) e o aparelho em destaque logo abaixo */
@media (max-width: 599px) {
  .pin.is-static .pin__stage { gap: 10px; padding-top: calc(var(--hdr) + 12px); }
  .pin.is-static .intro .cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
  .pin.is-static .intro .cta .btn { min-height: 46px; padding: 0 10px; font-size: 15px; line-height: 1.15; text-align: center; justify-content: center; }
  .pin.is-static .intro .cta #heroBuy { grid-column: 1 / -1; }
  .pin.is-static .intro .cta #heroAvail[hidden] + #heroSpecs { grid-column: 1 / -1; }
  .pin.is-static .intro .cta__trade { font-size: 14px; min-height: 40px; margin: 4px 8px 0; }
  .pin.is-static .intro .lead { font-size: 16px; margin-bottom: 12px; }
  .pin.is-static .intro .hero__name { margin-bottom: 8px; }
  .pin.is-static .shots img { max-width: 100%; border-radius: 16px; }
}
.pin.is-static .shots { overflow: hidden; border-radius: 20px; width: 100%; max-width: 560px; justify-self: center; }
@media (min-width: 900px) { .pin.is-static .shots { max-width: 100%; } }

/* faixa de atalhos gerais (aparelhos disponíveis, troca, comparar), fora do cartão do modelo */
.pin.is-static .quick { grid-area: quick; display: grid; gap: 4px; justify-items: stretch; }
.pin.is-static .quick .btn { min-height: 48px; justify-content: center; }
.pin.is-static .quick__links { display: flex; flex-wrap: wrap; gap: 0 18px; justify-content: center; align-items: center; text-align: center; width: 100%; }
.pin.is-static .quick .cta__trade { font-size: 14px; min-height: 44px; margin: 0; justify-content: center; text-align: center; min-width: 0; max-width: 100%; }
.pin.is-static .pin__stage { grid-template-areas: "quick" "intro" "media" "tour" "f1" "f2" "f3" "f4"; }
.pin.is-static .intro .cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pin.is-static .intro .cta #heroBuy { grid-column: auto; }
@media (min-width: 600px) {
  .pin.is-static .pin__stage { grid-template-areas: "quick quick" "intro intro" "media media" "tour tour" "f1 f2" "f3 f4"; }
}
@media (min-width: 900px) {
  .pin.is-static .pin__stage { grid-template-areas: "quick quick quick quick" "intro intro media media" "tour tour media media" "f1 f2 f3 f4"; }
  .pin.is-static .quick { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
  .pin.is-static .quick__links { justify-content: flex-start; width: auto; }
  .pin.is-static .intro .cta { display: flex; }
}
/* celular na horizontal (toque, largura >= 900): mantém o grupo de atalhos centralizado na tela */
@media (min-width: 900px) and (pointer: coarse) {
  .pin.is-static .quick { justify-content: center; }
  .pin.is-static .quick .btn { flex: 0 1 auto; }
  .pin.is-static .quick__links { justify-content: center; }
}
@media (max-width: 599px) {
  .pin.is-static .pin__stage { grid-template-areas: "quick" "intro" "media" "tour" "f3" "f4"; }
}
/* celular estreito: os dois botões do cartão do modelo quebram o texto em vez de passar da margem */
@media (max-width: 599px) {
  .pin.is-static .intro .cta { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .pin.is-static .intro .cta .btn { white-space: normal; min-width: 0; }
}
.foot__maker { font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.foot__low > span { line-height: 1.9; }
a.foot__maker { text-decoration: underline; text-underline-offset: 3px; }
a.foot__maker:hover, a.foot__maker:focus-visible { color: var(--accent); }

/* SEO: título fixo da página (h1) e nome do modelo em destaque (antes era o h1) */
.hero__name { letter-spacing: -0.035em; line-height: 1.04; font-weight: 700; text-wrap: balance; }
.intro .hero__h1 { font-size: 15px; line-height: 1.3; letter-spacing: 0; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.pin.is-photo .intro .hero__h1 { color: #4a4a52; }
/* menu da linha: modelos de cada família (link da página do modelo ou filtro do catálogo), numa lista só */
.mega li.has-kids { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.mega li.has-kids > a { border-bottom: 0; padding-bottom: 6px; }
.mega .mega__kids { display: flex; flex-wrap: wrap; gap: 6px; }
.mega .mega__kids a { display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--accent); }
.mega .mega__kids a span { opacity: 1; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(17, 17, 20, 0.07); border-radius: 999px; padding: 0 7px; line-height: 20px; }
.mega .mega__kids a:hover, .mega .mega__kids a:focus-visible { border-color: var(--accent); color: var(--text); }
@media (min-width: 900px) { .mega .mega__kids a { min-height: 30px; padding: 3px 10px; } }
a.card { color: inherit; }
/* rodapé com nome, cidade e contato (gerado por tools/build-paginas.js) */
.foot__nap { line-height: 1.6; }
.foot__name { color: var(--text); }
.foot__walink { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; }
.foot__pages { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 20px; font-size: 14px; }
.foot__pages a { display: inline-flex; align-items: center; min-height: 40px; }
.mega .mega__kids a.is-empty { color: var(--muted); }

/* celular: alvos de toque de 44 px no rodapé, no botão WhatsApp pequeno e nos atalhos do menu (área ampliada sem mexer na altura da linha) */
.foot a, a.foot__maker, a.foot__policy { padding-block: 14px; }
.foot a.foot__policy { padding-inline: 8px; margin-inline: -8px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.btn--sm { min-height: 44px; }
.hint { font-size: 14px; }
@media (max-width: 899px) { .mega .mega__kids a { min-height: 44px; } }

/* telas de 320 px: a grade das janelas não pode crescer além da largura (trilhos com minmax(0, 1fr)) */
.sheet__grid, .cmp { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sheet__grid { grid-template-columns: 1.05fr 1fr; } }
.cmp__pick, .cmp__pick select { min-width: 0; max-width: 100%; }
.cmp__pick select { width: 100%; }
.gal, .info { grid-template-columns: minmax(0, 1fr); min-width: 0; }
/* botões das janelas quebram o texto em vez de passar da margem em telas estreitas */
.ctas .btn, .cmp__btns .btn, .cmp__acts .btn { white-space: normal; text-align: center; justify-content: center; min-width: 0; max-width: 100%; line-height: 1.2; padding-block: 8px; }
/* bolinhas de cor: não encolhem quando há muitas cores (a área de toque fica em 44 px) */
.tour__dots button, .swatches button, .dots-sw button { flex: none; min-width: 28px; min-height: 28px; }
/* área de toque de 44 px por bolinha: o ::after já passa de 44 px, mas com 10 px de vão a vizinha "roubava" parte dele
   (centros a 38 px). O vão abre só o necessário para os centros ficarem a 44 px; o tamanho das bolinhas não muda. */
.tour__dots, .swatches { gap: 16px; }
.dots-sw, .watch__sw, #watchSw.dots-sw { gap: 14px; }
@media (max-height: 720px) { .tour__dots { gap: 20px; } }
@media (pointer: coarse) { .hdr .mega .mega__kids a, .mega .mega__kids a { min-height: 44px; } .mega__more a { min-height: 44px; } }
@media (pointer: coarse) { .mega li a, .mega li button, .mega .mega__kids a, .mega__more a { min-height: 44px; } }

/* ---------- ofertas do dia (faixa, botão do topo, selo e "De/Por") ---------- */
:root { --offer: #b42318; } /* vermelho do selo: contraste 6,1:1 com o branco */
.hdr__offers { grid-area: offers; justify-self: end; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--offer); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.hdr__in { grid-template-areas: "brand offers burger" "search search search"; }
.nav .nav__offers { color: var(--offer); font-weight: 700; }
@media (min-width: 900px) {
  .hdr__in { grid-template-areas: "brand nav search wa"; }
  .hdr__offers { display: none; }
  .nav a, .nav__btn { white-space: nowrap; }
  .nav:has(.nav__offers:not([hidden])) a, .nav:has(.nav__offers:not([hidden])) .nav__btn { padding: 0 9px; }
  .hdr__in:has(.nav__offers:not([hidden])) { grid-template-columns: auto auto minmax(150px, 420px) auto; gap: 0 14px; }
}
.offers { padding: calc(var(--hdr) + 16px) 0 20px; background: linear-gradient(180deg, #fff4ec, var(--bg)); border-bottom: 1px solid var(--line); }
.offers__head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 10px; }
.offers__head h2 { font-size: clamp(22px, 4vw, 30px); letter-spacing: -0.02em; }
.offers__until { font-size: 13px; font-weight: 600; color: #7a2e0b; background: #ffe6d3; border-radius: 999px; padding: 4px 11px; }
.offers__row { position: relative; display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 2px 2px 10px; }
.offers__note { font-size: 13px; color: var(--muted); margin-top: 4px; }
/* Com a faixa de ofertas logo acima, o iPhone em destaque não precisa reservar a altura do cabeçalho fixo
   (ele reservava porque era a primeira coisa da página): sem isto sobravam ~130 px em branco no celular e ~100 px no computador. */
.offers:not([hidden]) + .pin.is-static .pin__stage { padding-top: clamp(16px, 3vw, 28px); }
.ocard { position: relative; flex: 0 0 min(232px, 72vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.ocard__link { display: flex; flex-direction: column; gap: 6px; flex: 1; color: inherit; }
.ocard__media { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 40%, var(--tint, rgba(16, 24, 40, 0.08)), transparent 75%), #f4f5f8; }
.ocard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ocard__media svg { max-height: 88%; width: auto; max-width: 70%; }
.ocard__title { font-size: 15px; font-weight: 700; line-height: 1.25; }
.ocard__meta { font-size: 12.5px; color: var(--muted); }
.ocard__until { font-size: 12px; font-weight: 600; color: #7a2e0b; }
.ocard .btn { min-height: 44px; font-size: 14px; padding: 0 12px; }
.badge--offer { background: var(--offer); color: #fff; border-color: var(--offer); }
.card__media .badge--offer { top: 44px; }
.ocard__media .badge--offer { top: 8px; left: 8px; }
.ocard__media .badge--res { top: 8px; right: 8px; left: auto; }
.price-was { font-size: 13px; color: var(--muted); }
.price-was s { text-decoration-thickness: 1.5px; }
.price-now { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--ok); line-height: 1.1; }
.card__was { margin-top: auto; padding-top: 6px; }
.card__was + .card__price { margin-top: 0; padding-top: 0; color: var(--ok); }
.info .price-was { font-size: 15px; }
.info .price.price--offer { color: var(--ok); }
.offer-note { font-size: 14px; font-weight: 600; color: #7a2e0b; }
@media (max-width: 599px) {
  .card__media .badge--offer { top: 33px; } /* logo abaixo do selo de estado (12 px, 23 px de altura) */
  .card__was { font-size: 13px; padding-top: 2px; }
}
.hdr .brand { min-width: 59px; } .hdr .brand img { flex: none; width: 59px; height: auto; }

/* Apple Watch no celular: foto, modelos e cores na MESMA tela (a foto vem primeiro, os controles logo abaixo); o título e o texto vêm depois */
@media (max-width: 899px) {
  #watch .split { gap: 10px; }
  #watch .watch__txt { display: contents; }
  #watch .split__art { order: 1; }
  #watchArt.has-photo { max-width: min(680px, 38vh); }
  #watch .seg--watch { order: 2; justify-self: start; }
  #watch .watch__name { order: 3; margin: 4px 0 0; }
  #watch .dots-sw { order: 4; margin-top: 6px; }
  #watch #watchColor { order: 5; margin-top: 0 !important; }
  #watch .eyebrow { order: 6; margin-top: 22px; }
  #watch #watchTitle { order: 7; margin-bottom: 8px; }
  #watch .lead { order: 8; }
  #watch .watch__txt > .row { order: 9; }
}
/* celulares baixos (iPhone SE, 667 px): foto menor e controles mais juntos, para as cores continuarem na mesma tela */
@media (max-width: 899px) and (max-height: 720px) {
  #watchArt.has-photo { max-width: 29vh; }
  #watch .split { gap: 6px; }
  #watchSw.dots-sw { gap: 2px; }
  #watch .dots-sw button { width: 26px; height: 26px; }
}

/* Celular: o respiro entre as seções da página inicial (iPhone → Watch → Mac) era grande demais
   (72px de baixo de uma + 72px de cima da próxima, fora o espaço do fim do iPhone). Aqui fica a metade. */
@media (max-width: 700px) {
  .band { padding-block: 36px; }
  .pin.is-static .pin__stage { padding-bottom: 20px; }
}
