/* Teclas · sistema visual da proposta do site (marca 2E: Cursor, azul #2539EB)
   Cantos: painéis 20px, cartões 14px, botões e opções 10px, etiquetas 6px.
   Camadas: topo 50, mega 45, barra de compra 40, véu 70, gaveta 80, busca 90. */

:root {
  --azul: #2539EB;
  --azul-forte: #1A2AC4;
  --azul-claro: #DCE3FF;
  --gelo: #EEF1FF;
  --tinta: #121212;
  --texto: #23252E;
  --cinza: #565A6B;
  --linha: #E1E4F3;
  --branco: #FFFFFF;
  --r-painel: 20px;
  --r-cartao: 14px;
  --r-botao: 10px;
  --r-etq: 6px;
  --suave: cubic-bezier(.16, 1, .3, 1);
  --mola: cubic-bezier(.34, 1.4, .64, 1);
  --titulo: 'Unbounded', system-ui, sans-serif;
  --corpo: 'Manrope', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--branco); color: var(--texto); font: 500 16px/1.6 var(--corpo); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; border: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; border-radius: 4px; }
.sobre-escuro :focus-visible { outline-color: var(--azul-claro); }

.env { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.salto { position: absolute; left: 12px; top: -60px; background: var(--tinta); color: #fff; padding: 10px 14px; border-radius: var(--r-botao); z-index: 100; }
.salto:focus { top: 12px; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Tipografia ---------- */
.t1, .t2, .t3 { font-family: var(--titulo); font-weight: 700; letter-spacing: -.035em; color: var(--tinta); text-wrap: balance; }
.t1 { font-size: clamp(2.3rem, 5.4vw, 5.2rem); line-height: 1.03; }
.t2 { font-size: clamp(1.8rem, 3.5vw, 3.2rem); line-height: 1.06; }
.t3 { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.2; letter-spacing: -.025em; }
.lead { font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--cinza); max-width: 56ch; }

/* O destaque de texto selecionado é o gesto da marca. */
.sel { position: relative; display: inline-block; padding-inline: .16em; margin-inline: -.04em; isolation: isolate; color: var(--tinta); }
.sel::before { content: ''; position: absolute; inset: .02em 0 -.02em; background: var(--azul-claro); z-index: -1; transform-origin: left; transform: scaleX(1); }
.js .sel[data-rev]::before { transform: scaleX(0); transition: transform .7s var(--suave) calc(var(--i, 0) * 60ms + .15s); }
.js .sel[data-rev].in::before { transform: scaleX(1); }

/* ---------- Botões ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 0 26px; border-radius: var(--r-botao); font-weight: 700; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .35s var(--suave), color .25s, box-shadow .35s var(--suave); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--suave); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: scale(.98); }
.btn i { font-size: 1.15em; transition: transform .35s var(--suave); }
.btn:hover i.seta { transform: translateX(4px); }
.btn--azul { background: var(--azul); color: #fff; box-shadow: 0 10px 24px -14px rgba(37, 57, 235, .9); }
.btn--azul::before { background: var(--azul-forte); }
.btn--claro { background: var(--azul-claro); color: var(--tinta); }
.btn--claro::before { background: #fff; }
.btn--contorno { box-shadow: inset 0 0 0 2px currentColor; }
.btn--contorno::before { background: rgba(255, 255, 255, .14); }
.btn--contorno-tinta { box-shadow: inset 0 0 0 2px var(--tinta); color: var(--tinta); }
.btn--contorno-tinta::before { background: var(--gelo); }
.btn--largo { width: 100%; }
.btn--peq { min-height: 42px; padding: 0 16px; font-size: .92rem; }

.etq { display: inline-flex; align-items: center; font-family: var(--titulo); font-weight: 700; font-size: .68rem; letter-spacing: .01em; padding: .4em .65em; border-radius: var(--r-etq); background: var(--azul-claro); color: var(--tinta); line-height: 1; }

/* ---------- Faixa e topo ---------- */
.faixa { background: var(--tinta); color: #E8E9EF; font-size: .78rem; font-weight: 600; }
.faixa .env { display: flex; justify-content: space-between; gap: 24px; padding-block: 7px; }
.faixa ul { display: flex; gap: 28px; }
.faixa a:hover { color: var(--azul-claro); }

.topo { position: sticky; top: 0; z-index: 50; background: var(--branco); box-shadow: 0 1px 0 var(--linha); view-transition-name: topo; }
.topo__linha { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.logo { display: inline-flex; align-items: baseline; font-family: var(--titulo); font-weight: 700; font-size: 1.6rem; letter-spacing: -.03em; color: var(--tinta); line-height: 1; justify-self: start; }
.logo i { display: inline-block; width: .42em; height: .84em; margin-left: .07em; vertical-align: -.05em; background: var(--azul); animation: piscar 1.1s steps(1) infinite; }
.sobre-escuro .logo { color: #fff; }
.sobre-escuro .logo i { background: var(--azul); }
@keyframes piscar { 50% { opacity: 0; } }

.nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav > a, .nav__item > a { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 72px; padding: 0 14px; font-weight: 700; font-size: .95rem; color: var(--tinta); }
.nav > a::after, .nav__item > a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 18px; height: 3px; background: var(--azul); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--suave); }
.nav > a:hover::after, .nav__item:hover > a::after, .nav__item:focus-within > a::after { transform: scaleX(1); }
.nav__item > a i { font-size: .75em; transition: transform .35s var(--suave); }
.nav__item:hover > a i, .nav__item:focus-within > a i { transform: rotate(180deg); }

.acoes { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.acao { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-botao); font-size: 1.4rem; color: var(--tinta); transition: background .25s, transform .35s var(--suave); }
.acao:hover { background: var(--gelo); }
.acao:active { transform: scale(.94); }
.acao__conta { position: absolute; top: 3px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: var(--azul); color: #fff; font-size: .68rem; font-weight: 800; transform: scale(0); transition: transform .4s var(--mola); }
.acao__conta.tem { transform: scale(1); }
.acao__conta.salta { animation: salta .55s var(--mola); }
@keyframes salta { 40% { transform: scale(1.5); } }
.acao--menu { display: none; }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 45; background: var(--branco); box-shadow: 0 1px 0 var(--linha), 0 30px 50px -30px rgba(18, 24, 80, .35); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .4s var(--suave), visibility .25s; }
.nav__item:hover > .mega, .nav__item:focus-within > .mega { visibility: visible; opacity: 1; transform: none; }
.mega__g { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding-block: 20px 26px; }
.mega__m { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-cartao); transition: background .25s; opacity: 0; transform: translateY(8px); }
.nav__item:hover .mega__m, .nav__item:focus-within .mega__m { animation: entra .5s var(--suave) forwards; animation-delay: calc(var(--i) * 28ms); }
.mega__m:hover { background: var(--gelo); }
.mega__m div:first-child { width: 64px; height: 64px; background: var(--gelo); border-radius: 10px; overflow: hidden; }
.mega__m img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mega__m strong { display: block; color: var(--tinta); font-size: .92rem; line-height: 1.2; }
.mega__m span { font-size: .8rem; color: var(--cinza); }
@keyframes entra { to { opacity: 1; transform: none; } }

/* Mega menu dos telemóveis: uma coluna por marca */
.mega__cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; padding-block: 24px 30px; }
.mega__c { opacity: 0; transform: translateY(8px); }
.nav__item:hover .mega__c, .nav__item:focus-within .mega__c { animation: entra .5s var(--suave) forwards; animation-delay: calc(var(--i) * 40ms); }
.mega__t { display: block; font-family: var(--titulo); font-weight: 700; font-size: .92rem; letter-spacing: -.02em; color: var(--tinta); margin-bottom: 10px; }
.mega__t:hover { color: var(--azul); }
.mega__c li a { display: block; padding: 4px 0; font-size: .88rem; font-weight: 600; color: var(--cinza); transition: color .2s, transform .3s var(--suave); }
.mega__c li a:hover { color: var(--azul); transform: translateX(3px); }
.mega__c li a.mega__todos { color: var(--azul); font-weight: 800; }

/* Menu do telemóvel */
.movel { position: fixed; inset: 0; z-index: 70; background: var(--azul); color: #fff; padding: 88px var(--gutter) 32px; display: flex; flex-direction: column; gap: 6px; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--suave), visibility .55s; overflow-y: auto; }
.movel.aberto { visibility: visible; clip-path: inset(0); }
.movel a { font-family: var(--titulo); font-weight: 700; font-size: 1.7rem; letter-spacing: -.03em; padding: 10px 0; }
.movel__fechar { position: absolute; top: 16px; right: var(--gutter); color: #fff; font-size: 1.7rem; width: 44px; height: 44px; display: grid; place-items: center; }

/* ---------- Revelações ao descer ---------- */
.js [data-rev] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--suave), transform .8s var(--suave); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-rev].in { opacity: 1; transform: none; }

/* ---------- Herói ---------- */
.heroi { position: relative; background: var(--azul); color: #fff; overflow: clip; }
.heroi__g { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 24px; min-height: min(calc(100dvh - 104px), 760px); padding-block: clamp(32px, 4vw, 56px); }
.heroi__t { position: relative; font-family: var(--titulo); font-weight: 700; letter-spacing: -.035em; font-size: clamp(2.5rem, 5.6vw, 5.4rem); line-height: 1.04; margin-block: 16px 20px; }
.heroi__t .ln { display: block; white-space: nowrap; }
.heroi__t .car { visibility: hidden; }
.heroi__t .car.ok { visibility: visible; }
.heroi__t:not(.a-escrever) .car { visibility: visible; }
.heroi__marca { position: relative; display: inline-block; padding: 0 .14em; margin-left: -.14em; isolation: isolate; transition: color .35s; }
.heroi__marca::before { content: ''; position: absolute; inset: .03em 0 -.03em; background: var(--azul-claro); z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--suave); }
.heroi__t.selecionado .heroi__marca { color: var(--tinta); }
.heroi__t.selecionado .heroi__marca::before { transform: scaleX(1); }
.heroi__cursor { position: absolute; left: 0; top: 0; width: .42em; height: .84em; background: var(--tinta); }
.heroi__t.fim .heroi__cursor { animation: piscar 1.1s steps(1) infinite; }
.heroi__sub { color: #E6E9FF; font-size: clamp(1rem, 1.35vw, 1.2rem); max-width: 42ch; margin-bottom: 26px; }
.heroi__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.heroi__foto { position: relative; justify-self: center; width: min(100%, 640px); aspect-ratio: 1; }
.heroi__foto img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(6, 12, 90, .45)); }
.js .heroi__foto img { animation: sobe-foto 1.4s var(--suave) .15s both; }
@keyframes sobe-foto { from { opacity: 0; transform: translateY(70px) rotate(4deg) scale(.94); } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .heroi__foto { animation: heroi-par linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes heroi-par { to { transform: translateY(-70px) scale(1.04); } }
  }
}

/* ---------- Banners do topo: 3 a alternar (17/11) ----------
   Ocupam a mesma célula da grelha: a altura é a do maior e nada salta ao trocar. O que entra fica por cima e aparece;
   o que sai fica por baixo, inteiro, até a troca acabar (sem se ver o azul do fundo a meio). */
.banners { --nav-cor: #fff; --tempo: 7s; }
.banners[data-tom="claro"] { --nav-cor: var(--tinta); }
.banners__palco { display: grid; touch-action: pan-y; }
.banner { grid-area: 1 / 1; min-width: 0; background: var(--azul); color: #fff; opacity: 0; visibility: hidden; transition: opacity .7s var(--suave), visibility 0s .7s; }
.banner.ativo { opacity: 1; visibility: visible; z-index: 2; transition: opacity .7s var(--suave), visibility 0s; }
.banner.sai { opacity: 1; visibility: visible; z-index: 1; transition: none; }
.banner--tinta { background: var(--tinta); }
.banner--tinta .heroi__cursor { background: var(--azul); }
.banner--tinta .heroi__foto img { filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .65)); }
/* A foto oficial do S26 Ultra tem 697 px: acima de 540 px no ecrã começava a ficar esborratada (pedido do Gabriel, 17/11). */
.banner--tinta .heroi__foto { max-width: 540px; }
.banner--claro { background: var(--azul-claro); color: var(--tinta); }
.banner--claro .etq { background: #fff; }
.banner--claro .heroi__sub { color: var(--cinza); }
.banner--claro .heroi__marca::before { background: var(--azul); }
.banner--claro .heroi__t.selecionado .heroi__marca { color: #fff; }
.js .banner:not(.ativo) .heroi__foto img { animation: none; }
.banner__doze { position: relative; justify-self: center; display: grid; justify-items: start; align-content: center; width: min(100%, 560px); }
.banner__n { font-family: var(--titulo); font-weight: 800; font-size: clamp(9rem, 24vw, 21rem); line-height: .8; letter-spacing: -.08em; color: var(--azul); user-select: none; }
.banner__m { font-family: var(--titulo); font-weight: 700; font-size: clamp(1.5rem, 3.1vw, 2.7rem); letter-spacing: -.04em; line-height: 1.05; margin-top: .35em; }
.banner__tag { display: grid; gap: 2px; margin-top: clamp(18px, 3vw, 34px); padding: 14px 18px; border-radius: var(--r-cartao); background: #fff; color: var(--tinta); box-shadow: 0 24px 40px -22px rgba(6, 12, 90, .45); }
.banner__tag small { font-weight: 700; color: var(--cinza); font-size: .82rem; }
.banner__tag b { font-family: var(--titulo); font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.5rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.js .banner.ativo .banner__n, .js .banner.ativo .banner__tag { animation: sobe-foto 1.2s var(--suave) both; }
.js .banner.ativo .banner__tag { animation-delay: .2s; }
.banners__nav { position: absolute; left: 0; right: 0; bottom: clamp(10px, 2vw, 24px); z-index: 3; display: flex; align-items: center; gap: 4px; pointer-events: none; }
.banners__nav > * { pointer-events: auto; }
.banners:not([data-tom="claro"]) .banners__nav :focus-visible { outline-color: var(--azul-claro); }
.banners__pontos { display: flex; }
.banners__ponto { width: 48px; height: 44px; display: grid; place-items: center; }
.banners__ponto span { position: relative; display: block; width: 28px; height: 6px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--nav-cor) 32%, transparent); transition: width .4s var(--suave); }
.banners__ponto[aria-pressed="true"] span { width: 40px; }
/* O ponto do banner à vista enche-se durante os 7 s; parado, fica cheio. */
.banners__ponto span::after { content: ''; position: absolute; inset: 0; background: var(--nav-cor); transform: scaleX(0); transform-origin: left; }
.banners__ponto[aria-pressed="true"] span::after { transform: scaleX(1); }
.banners.a-correr .banners__ponto[aria-pressed="true"] span::after { animation: banner-tempo var(--tempo) linear both; }
.banners.parado .banners__ponto[aria-pressed="true"] span::after { animation-play-state: paused; }
@keyframes banner-tempo { from { transform: scaleX(0); } }
.banners__pausa { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-botao); color: var(--nav-cor); font-size: 1.15rem; transition: background .2s; }
.banners__pausa:hover { background: color-mix(in srgb, var(--nav-cor) 14%, transparent); }
@media (max-width: 860px) {
  .banners .heroi__g { padding-bottom: 58px; }
  /* No telemóvel o título já diz «12 meses»: fica só o exemplo da mensalidade, e o banner não cresce. */
  .banner__doze { width: 100%; justify-self: start; padding-bottom: 8px; }
  .banner__n, .banner__m { display: none; }
  .banner__tag { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .banner, .banner.ativo { transition: none; }
}

/* Banner da PS5, versão «prestações» (aprovada pelo Gabriel a 17/11, noite; estudo em Site e Loja/banners/ps5-gta/).
   Fundo de pôr do sol pastel, painel violeta ao centro com a mensalidade em destaque, o flamingo pequeno na água à
   esquerda e o cartão da consola à direita (no telemóvel, por baixo). Sem o fundo carregado, fica a cor dele.
   O fundo só entra com a classe «visto» (inicio.js): não disputa a rede com a foto do topo. */
.banners[data-tom="ps5"] { --nav-cor: var(--tinta); }
.banner--ps5 { --violeta: #2A0F4A; --rosa: #D61F72; position: relative; overflow: clip; background: #E9C9EC center 58% / cover no-repeat; color: var(--violeta); }
@media (min-width: 861px) {
  .banner--ps5.visto { background-image: url(../img/ps5-fundo-largo-1440.webp); background-image: image-set(url(../img/ps5-fundo-largo-1440.avif) type("image/avif"), url(../img/ps5-fundo-largo-1440.webp) type("image/webp")); }
}
@media (min-width: 1441px) {
  .banner--ps5.visto { background-image: url(../img/ps5-fundo-largo-1536.webp); background-image: image-set(url(../img/ps5-fundo-largo-1536.avif) type("image/avif"), url(../img/ps5-fundo-largo-1536.webp) type("image/webp")); }
}
@media (max-width: 860px) {
  .banner--ps5 { background-position: center bottom; }
  .banner--ps5.visto { background-image: url(../img/ps5-fundo-alto-780.webp); background-image: image-set(url(../img/ps5-fundo-alto-780.avif) type("image/avif"), url(../img/ps5-fundo-alto-780.webp) type("image/webp")); }
}
.banner--ps5 .heroi__g { position: relative; z-index: 3; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.ps5__painel { display: grid; justify-items: center; background: var(--violeta); color: #fff; }
.ps5__painel > * { min-width: 0; max-width: 100%; }
.ps5__painel .etq { background: #fff; color: var(--violeta); }
.banner--ps5 .heroi__t { color: #fff; margin: 12px 0 4px; }
.banner--ps5 .heroi__marca::before { background: var(--rosa); }
.banner--ps5 .heroi__t.selecionado .heroi__marca { color: #fff; }
.ps5__mes { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: .18em; font-family: var(--titulo); line-height: .86; letter-spacing: -.05em; }
.ps5__x { font-weight: 700; color: #F7B6D7; }
.ps5__valor { font-weight: 800; color: #fff; white-space: nowrap; }
.ps5__por { flex-basis: 100%; text-align: center; font-family: var(--titulo); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: #fff; }
.ps5__por b::after { content: ', '; }
.ps5__nota { color: #CDB9E6; max-width: 52ch; }
.banner--ps5 .heroi__cta { justify-content: center; }
.banner--ps5 .btn--claro { background: #fff; color: var(--violeta); }
.banner--ps5 .btn--contorno { box-shadow: inset 0 0 0 2px #fff; color: #fff; }
.ps5__cena { pointer-events: none; }
.ps5__flamingo { display: contents; }
.ps5__flamingo img { position: absolute; width: auto; max-width: none; opacity: .97; }
.ps5__cartao { position: absolute; aspect-ratio: 1; background: #fff; border-radius: 22px; box-shadow: 0 30px 60px -22px rgba(42, 15, 74, .6); }
.ps5__cartao img { width: 100%; height: 100%; object-fit: contain; padding: 7%; }
.ps5__etq { position: absolute; left: -16px; top: -16px; background: var(--rosa); color: #fff; font-family: var(--titulo); font-weight: 800; font-size: clamp(.95rem, 1.5vw, 1.35rem); letter-spacing: -.03em; padding: .25em .6em; border-radius: 12px; transform: rotate(-8deg); }
.js .banner--ps5.ativo .ps5__cartao { animation: sobe-foto 1.2s var(--suave) both; }
@media (min-width: 861px) {
  .ps5__painel { width: min(54%, 790px); padding: 34px 46px 38px; clip-path: polygon(3% 0, 100% 5%, 97% 100%, 0 95%); }
  .banner--ps5 .heroi__t { font-size: clamp(1.4rem, 2.3vw, 2.1rem); }
  .ps5__mes { row-gap: 16px; margin: 6px 0 14px; }
  .ps5__x { font-size: clamp(1.7rem, 2.9vw, 2.7rem); }
  .ps5__valor { font-size: clamp(3.4rem, 6.6vw, 6rem); }
  .ps5__por { font-size: clamp(1rem, 1.35vw, 1.2rem); }
  .ps5__nota { font-size: .8rem; margin: -6px 0 18px; max-width: 66ch; }
  .ps5__cena { position: absolute; inset: 0; z-index: 2; }
  .ps5__flamingo img { left: 7%; bottom: 13%; height: 44%; }
  .ps5__cartao { right: 4%; bottom: 10%; width: clamp(190px, 19vw, 280px); transform: rotate(5deg); }
}
@media (max-width: 860px) {
  .banners .banner--ps5 .heroi__g { padding-top: 34px; padding-bottom: 8px; }
  .ps5__painel { width: 100%; box-sizing: border-box; padding: 20px 16px 22px; border-radius: 18px; }
  .banner--ps5 .heroi__t { font-size: 1.45rem; line-height: 1.1; }
  .banner--ps5 .heroi__t .ln { white-space: normal; }
  .ps5__mes { row-gap: 10px; margin: 10px 0 12px; }
  .ps5__x { font-size: 1.4rem; }
  .ps5__valor { font-size: 3rem; }
  .ps5__por { font-size: .95rem; }
  .ps5__nota { font-size: .78rem; margin: -2px 0 16px; }
  .banner--ps5 .heroi__cta { flex-wrap: wrap; gap: 10px; width: 100%; }
  .banner--ps5 .heroi__cta .btn { flex: 1 1 100%; }
  .ps5__cena { position: relative; z-index: 2; height: 74vw; margin-bottom: 52px; }
  .ps5__flamingo img { left: 4%; bottom: 6%; height: 62%; }
  .ps5__cartao { right: 7%; bottom: 10%; width: 50vw; transform: rotate(4deg); }
}

/* PS5 maior (17/11, noite; o Gabriel escolheu a versão B a 18/11): «acho que o PS5 está muito pequeno, nem parece que
   está vendendo ele». Sem cartão: a foto da loja assenta num sol branco e o fundo branco dela desaparece na cena por
   «multiply». O painel passa para a esquerda e, no telemóvel, a consola vem antes do texto. Liga-se pela classe ps5--sol
   (teclas_ps5_versao(), em inc/banners.php); sem ela, o banner volta ao cartão pequeno.
   Nenhum antepassado da foto pode criar contexto de empilhamento (z-index, transform, animação), senão o branco da foto
   não se mistura com a cena: por isso a animação passa para a própria foto. */
@media (min-width: 861px) {
  .banner--ps5.ps5--sol .heroi__g { justify-items: start; }
  .ps5--sol .ps5__painel { width: min(50%, 660px); padding-inline: 38px; }
  .ps5--sol .heroi__t .ln { white-space: normal; }
  .ps5--sol .ps5__valor { font-size: clamp(3.2rem, 5.4vw, 5.2rem); }
  .ps5--sol .ps5__flamingo img { left: auto; right: 39%; bottom: 9%; height: 40%; }
  .ps5--sol .ps5__cartao { --w: clamp(300px, 32vw, 480px); width: var(--w); right: 6%; bottom: auto; top: calc(50% - var(--w) / 2); }
  .ps5--sol .ps5__etq { left: 2%; top: 4%; }
}
.ps5--sol .ps5__etq { font-size: clamp(1.05rem, 1.7vw, 1.6rem); }
.ps5--sol .ps5__cena { z-index: auto; }
.ps5--sol .ps5__cartao { background: none; box-shadow: none; border-radius: 0; transform: none; }
.ps5--sol .ps5__cartao::before { content: ''; position: absolute; left: -30%; top: -30%; width: 160%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, #fff 0 72%, rgba(255, 255, 255, .85) 82%, rgba(255, 255, 255, 0) 100%); }
.ps5--sol .ps5__cartao img { position: relative; mix-blend-mode: multiply; padding: 0; }
.js .banner--ps5.ps5--sol.ativo .ps5__cartao { animation: none; }
.js .banner--ps5.ps5--sol.ativo .ps5__cartao img { animation: sobe-foto 1.2s var(--suave) both; }
@media (max-width: 860px) {
  .banner--ps5.ps5--sol { display: flex; flex-direction: column; }
  .ps5--sol .ps5__cena { order: -1; margin-bottom: 0; height: min(84vw, 600px); }
  .banners .banner--ps5.ps5--sol .heroi__g { padding-top: 6px; padding-bottom: 58px; }
  .ps5--sol .ps5__flamingo { display: none; }
  .ps5--sol .ps5__cartao { --w: min(76vw, 520px); width: var(--w); right: auto; left: calc(50% - var(--w) / 2); bottom: auto; top: 22px; }
  .ps5--sol .ps5__etq { left: 0; top: 2%; }
}

/* Faixa de modelos */
.corre { background: var(--tinta); color: #fff; overflow: hidden; padding-block: 18px; }
.corre__trilho { display: flex; width: max-content; animation: corre 42s linear infinite; }
.corre:hover .corre__trilho { animation-play-state: paused; }
.corre a { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--titulo); font-weight: 700; font-size: clamp(1rem, 1.7vw, 1.45rem); letter-spacing: -.02em; white-space: nowrap; transition: color .25s; }
.corre a:hover { color: var(--azul-claro); }
.corre a::after { content: ''; width: .42em; height: .84em; background: var(--azul); }
@keyframes corre { to { transform: translateX(-50%); } }

/* ---------- Secções ---------- */
.secao { padding-block: clamp(56px, 8vw, 112px); }
.secao__topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3.2vw, 44px); }

/* Mosaico de destaques */
.mosaico { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(250px, 22vw); gap: 14px; }
.tile { position: relative; display: block; border-radius: var(--r-painel); overflow: hidden; isolation: isolate; color: var(--tinta); }
.tile__fundo { position: absolute; inset: 0; background: var(--tom, var(--gelo)); z-index: -1; transition: transform .9s var(--suave); }
.tile:hover .tile__fundo { transform: scale(1.015); }
.tile__txt { position: absolute; inset: clamp(18px, 2vw, 30px); display: flex; flex-direction: column; gap: 6px; z-index: 1; pointer-events: none; }
.tile__nome { font-family: var(--titulo); font-weight: 700; letter-spacing: -.03em; font-size: clamp(1.1rem, 1.8vw, 1.65rem); line-height: 1.1; }
.tile__preco { font-weight: 700; color: var(--texto); }
.tile__ir { position: absolute; right: clamp(16px, 1.6vw, 24px); top: clamp(16px, 1.6vw, 24px); width: 44px; height: 44px; border-radius: var(--r-botao); display: grid; place-items: center; background: var(--tinta); color: #fff; font-size: 1.15rem; z-index: 2; transition: transform .45s var(--suave), background .25s; }
.tile:hover .tile__ir { background: var(--azul); transform: translateX(3px); }
/* O movimento fica na imagem, e não no contentor. Uma transformação no contentor isola a imagem do fundo do
   cartão: o «multiply» deixa de ter com que misturar e aparece o branco da foto. */
.tile__foto { position: absolute; right: 1%; bottom: -3%; height: 90%; aspect-ratio: 1; }
.tile__foto img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .9s var(--suave); }
.tile:hover .tile__foto img { transform: translateY(-10px) scale(1.04); }
.tile--grande { grid-column: span 7; grid-row: span 2; }
.tile--grande .tile__nome { font-size: clamp(1.5rem, 3.2vw, 3rem); }
.tile--grande .tile__foto { height: 88%; right: 2%; bottom: -8%; }
.tile--col5 { grid-column: span 5; }
.tile--col6 { grid-column: span 6; }

/* Calha de modelos */
.calha__seg { display: inline-flex; position: relative; padding: 4px; border-radius: 12px; background: var(--gelo); }
.seg__b { position: relative; z-index: 1; min-height: 42px; padding: 0 20px; font-weight: 700; color: var(--texto); border-radius: 9px; transition: color .25s; }
.seg__b[aria-pressed="true"] { color: #fff; }
.seg__marca { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 9px; background: var(--tinta); transition: transform .5s var(--suave), width .5s var(--suave); }
.calha { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--azul-claro) transparent; }
.calha > * { scroll-snap-align: start; }
@media (min-width: 1200px) { .calha { grid-auto-columns: calc((100% - 42px) / 4); } }

/* Cartão de modelo */
.cartao { position: relative; display: flex; flex-direction: column; border-radius: var(--r-cartao); }
.cartao__a { display: flex; flex-direction: column; flex: 1; }
.cartao__foto { position: relative; aspect-ratio: 1; background: var(--gelo); border-radius: var(--r-cartao); overflow: hidden; }
.cartao__foto img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; transition: transform .8s var(--suave), opacity .35s; }
.cartao:hover .cartao__foto img { transform: scale(1.05) translateY(-4px); }
.cartao__novo { position: absolute; left: 12px; top: 12px; z-index: 1; }
.cartao__txt { padding: 14px 4px 4px; display: grid; gap: 2px; }
.cartao__nome { font-family: var(--titulo); font-weight: 700; font-size: 1rem; letter-spacing: -.025em; color: var(--tinta); line-height: 1.2; min-height: 1.2em; }
.cartao__preco { font-weight: 800; color: var(--tinta); }
.cartao__prest { font-size: .86rem; color: var(--cinza); }
.cartao__cores { display: flex; gap: 6px; padding: 8px 4px 2px; }
.ponto { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(18, 18, 18, .18); transition: transform .35s var(--mola), box-shadow .25s; }
.ponto:hover, .ponto:focus-visible, .ponto.on { transform: scale(1.18); box-shadow: inset 0 0 0 1px rgba(18, 18, 18, .18), 0 0 0 2px #fff, 0 0 0 4px var(--azul); }

/* Categorias da página inicial: colunas iguais, alinhadas entre linhas */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cat { display: grid; grid-template-rows: auto auto auto; gap: 2px; padding: 12px 12px 14px; border-radius: var(--r-cartao); background: var(--gelo); transition: background .3s, transform .5s var(--suave); }
.cat:hover { background: var(--azul-claro); transform: translateY(-4px); }
.cat__f { position: relative; aspect-ratio: 4 / 3; margin-bottom: 8px; overflow: hidden; }
.cat__f img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s var(--suave); }
.cat:hover .cat__f img { transform: scale(1.06); }
.cat strong { font-family: var(--titulo); font-weight: 700; font-size: .95rem; letter-spacing: -.02em; color: var(--tinta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat span { font-size: .84rem; color: var(--cinza); font-weight: 600; }

/* Artigos esgotados */
.etq--esgotado { background: var(--tinta); color: #fff; }
.cartao--esgotado .cartao__foto img { opacity: .5; filter: grayscale(.5); }
.cartao--esgotado .cartao__preco { color: var(--cinza); }
.btn[disabled] { background: #C9CCDA; color: var(--tinta); box-shadow: none; cursor: not-allowed; transform: none; }
.btn[disabled]::before { display: none; }
.ver-mais { display: flex; justify-content: center; margin-top: 32px; }
.ver-mais[hidden] { display: none; }

/* Lista Black Friday */
.lista { background: var(--tinta); color: #fff; overflow: hidden; }
.lista__g { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px); align-items: end; padding-block: clamp(64px, 9vw, 128px); }
.lista__t { font-family: var(--titulo); font-weight: 800; letter-spacing: -.04em; font-size: clamp(2.6rem, 7.6vw, 7.2rem); line-height: .98; color: #fff; }
.lista__t i { display: inline-block; width: .42em; height: .78em; margin-left: .07em; background: var(--azul); vertical-align: -.03em; animation: piscar 1.1s steps(1) infinite; }
.lista__s { color: #D5D7E2; margin-bottom: 18px; max-width: 44ch; }
.form-linha { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.campo { display: grid; gap: 6px; }
.campo label { font-size: .86rem; font-weight: 700; }
.campo input, .campo select { min-height: 52px; padding: 0 14px; border-radius: var(--r-botao); background: #fff; color: var(--tinta); border: 1.5px solid #C9CDE3; width: 100%; transition: border-color .2s, box-shadow .2s; }
.campo input::placeholder { color: #6B6F82; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(37, 57, 235, .2); }
.lista .campo label { color: #fff; }
.lista__ok { display: none; color: var(--azul-claro); font-weight: 700; margin-top: 12px; }
.lista.enviado .lista__ok { display: block; }

/* Prestações */
.prest__g { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.prest__t { margin-bottom: 16px; }
.prest__picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.prest__b { min-height: 54px; padding: 8px 14px; text-align: left; border-radius: var(--r-botao); box-shadow: inset 0 0 0 1.5px var(--linha); font-weight: 700; font-size: .92rem; color: var(--tinta); line-height: 1.25; transition: box-shadow .25s, background .25s, color .25s, transform .35s var(--suave); }
.prest__b:hover { box-shadow: inset 0 0 0 1.5px var(--azul); }
.prest__b:active { transform: scale(.98); }
.prest__b[aria-pressed="true"] { background: var(--azul); color: #fff; box-shadow: none; }
.prest__p { background: var(--gelo); border-radius: var(--r-painel); padding: clamp(14px, 2vw, 24px); display: grid; gap: 10px; }
.prest__l { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-cartao); background: #fff; }
.prest__l strong { display: block; color: var(--tinta); font-size: 1.02rem; }
.prest__l small { display: block; color: var(--cinza); font-size: .86rem; line-height: 1.4; }
.prest__v { font-family: var(--titulo); font-weight: 700; font-size: clamp(1rem, 1.7vw, 1.4rem); letter-spacing: -.03em; color: var(--azul); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prest__v small { display: block; font-family: var(--corpo); font-weight: 600; letter-spacing: 0; font-size: .76rem; color: var(--cinza); text-align: right; }
.prest__nota { font-size: .82rem; color: var(--cinza); padding: 4px 6px 0; }

/* Reparações */
.rep__g { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.rep__p { background: var(--azul); color: #fff; border-radius: var(--r-painel); padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; min-height: 360px; }
.rep__p .t2 { color: #fff; }
.rep__p p { color: #E6E9FF; max-width: 42ch; }
.rep__l { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rep__c { background: var(--gelo); border-radius: var(--r-cartao); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 170px; transition: background .3s, transform .5s var(--suave); }
.rep__c:hover { background: var(--azul-claro); transform: translateY(-4px); }
.rep__c i { font-size: 1.8rem; color: var(--azul); }
.rep__c strong { display: block; color: var(--tinta); font-size: 1.05rem; }
.rep__c small { color: var(--cinza); font-size: .88rem; line-height: 1.4; display: block; }

/* Factos */
.factos { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--linha); }
.facto { padding: clamp(22px, 3vw, 38px) clamp(16px, 2vw, 28px); }
.facto + .facto { border-left: 1px solid var(--linha); }
.facto b { display: block; font-family: var(--titulo); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 3rem); letter-spacing: -.04em; color: var(--azul); line-height: 1.05; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.facto > span { color: var(--texto); font-weight: 600; font-size: .95rem; display: block; line-height: 1.35; }

/* Loja */
.loja { position: relative; }
.loja__foto { border-radius: var(--r-painel); overflow: hidden; aspect-ratio: 16 / 7.2; background: var(--tinta); }
.loja__foto img { width: 100%; height: 100%; object-fit: cover; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .loja__foto { animation: abre-loja linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes abre-loja { from { clip-path: inset(8% 8% 8% 8% round 20px); } to { clip-path: inset(0 round 20px); } }
    .lista__t { animation: abre-t linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes abre-t { from { opacity: .25; transform: translateX(-4%); } }
  }
}
.loja__c { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); padding-top: 26px; align-items: start; }
.loja__c dt { font-size: .84rem; font-weight: 700; color: var(--cinza); margin-bottom: 4px; }
.loja__c dd { margin: 0; color: var(--tinta); font-weight: 600; line-height: 1.45; }
.loja__dl { display: contents; }

/* Rodapé */
.pe { background: var(--tinta); color: #C9CBD6; margin-top: clamp(40px, 6vw, 80px); padding-block: clamp(44px, 6vw, 72px) 26px; font-size: .92rem; }
.pe__g { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid #2B2C33; }
.pe h3 { font-size: .86rem; color: #fff; margin-bottom: 12px; font-weight: 800; }
.pe li { margin-bottom: 7px; }
.pe a:hover { color: var(--azul-claro); }
.pe__marca p { margin-top: 12px; max-width: 34ch; }
.pe__pag { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pe__pag span { padding: 4px 9px; border-radius: var(--r-etq); box-shadow: inset 0 0 0 1px #3A3B44; font-size: .76rem; font-weight: 700; color: #E8E9EF; }
.pe__fim { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; font-size: .8rem; color: #A5A8B6; }

/* Botão de WhatsApp */
.zap { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 54px; height: 54px; border-radius: 16px; background: var(--tinta); color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 14px 30px -12px rgba(18, 18, 18, .6); transition: transform .4s var(--suave), background .25s; }
.zap:hover { background: var(--azul); transform: translateY(-3px); }
body.com-barra .zap { bottom: 92px; }

/* ---------- Página de telemóveis ---------- */
.cab { background: var(--azul); color: #fff; padding-block: clamp(32px, 5vw, 64px) clamp(26px, 3vw, 40px); }
.cab .t1 { color: #fff; }
.cab .t1 i { display: inline-block; width: .42em; height: .8em; margin-left: .07em; background: var(--tinta); vertical-align: -.03em; animation: piscar 1.1s steps(1) infinite; }
/* «Recondicionados» é uma só palavra: no telemóvel, o título encolhe para caber com o cursor na mesma linha. */
@media (max-width: 460px) { .cab .t1 { font-size: min(2.3rem, 8vw); white-space: nowrap; } }
.cab p { color: #E6E9FF; margin-top: 10px; }
.cab__sec { display: flex; gap: 4px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.cab__sec::-webkit-scrollbar { display: none; }
.cab__sec a { flex: none; padding: 8px 14px; border-radius: var(--r-botao); font-weight: 700; font-size: .9rem; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); transition: background .25s, color .25s; }
.cab__sec a:hover { background: rgba(255, 255, 255, .14); }
.cab__sec a[aria-current] { background: #fff; color: var(--azul); box-shadow: none; }
.calha__seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.calha__seg::-webkit-scrollbar { display: none; }
.seg__b { flex: none; white-space: nowrap; }
.secao__topo > * { min-width: 0; max-width: 100%; }
.filtros__ord.filtros__ord--para { margin-left: 0; }
.filtros { position: sticky; top: 72px; z-index: 30; background: var(--branco); box-shadow: 0 1px 0 var(--linha); }
.filtros__l { display: flex; align-items: center; gap: 10px; padding-block: 12px; overflow-x: auto; scrollbar-width: none; }
.filtros__l::-webkit-scrollbar { display: none; }
.filtro { flex: none; min-height: 40px; padding: 0 14px; border-radius: var(--r-botao); box-shadow: inset 0 0 0 1.5px var(--linha); font-weight: 700; font-size: .88rem; color: var(--texto); white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s, transform .3s var(--suave); }
.filtro:hover { box-shadow: inset 0 0 0 1.5px var(--azul); }
.filtro:active { transform: scale(.97); }
.filtro[aria-pressed="true"] { background: var(--azul-claro); box-shadow: inset 0 0 0 1.5px var(--azul); color: var(--tinta); }
@media (min-width: 861px) { .filtros__l { flex-wrap: wrap; row-gap: 6px; } }
.filtros__sep { flex: none; width: 1px; height: 24px; background: var(--linha); margin-inline: 2px; }
@media (min-width: 861px) { .filtros__sep--quebra { flex-basis: 100%; width: auto; height: 0; margin: 0; background: none; } }
.filtros__ord { margin-left: auto; flex: none; min-height: 40px; padding: 0 34px 0 12px; border-radius: var(--r-botao); border: 1.5px solid var(--linha); background: #fff; font-weight: 700; font-size: .88rem; }
.filtros .calha__seg { flex: none; }
.filtros .seg__b { min-height: 34px; padding: 0 14px; font-size: .88rem; }
.grelha { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(14px, 1.6vw, 22px); }
.vazio { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--cinza); }
.vazio .t3 { margin-bottom: 10px; }
.contagem { font-weight: 600; color: var(--cinza); font-size: .92rem; margin-bottom: 18px; }
.js .cartao.entra { animation: cartao-entra .7s var(--suave) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes cartao-entra { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Produto ---------- */
.migalhas { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 16px; font-size: .84rem; color: var(--cinza); }
.migalhas a:hover { color: var(--azul); }
.migalhas li + li::before { content: '/'; margin-right: 6px; color: #A9ACBC; }
.migalhas [aria-current] { color: var(--tinta); font-weight: 700; }

.cfg { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(20px, 3.4vw, 56px); align-items: start; padding-bottom: clamp(40px, 6vw, 72px); }
.cfg__esq { position: sticky; top: 88px; }
.foto { position: relative; aspect-ratio: 1; max-height: calc(100dvh - 120px); width: 100%; background: var(--gelo); border-radius: var(--r-painel); overflow: hidden; view-transition-name: foto-produto; isolation: isolate; }
.foto img { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .55s var(--suave), transform .75s var(--suave); }
.foto img.fora { opacity: 0; transform: translateX(calc(var(--dir, 1) * -46px)) scale(.97); }
.foto img.antes { opacity: 0; transform: translateX(calc(var(--dir, 1) * 46px)) scale(.97); transition: none; }
.foto__novo { position: absolute; left: 18px; top: 18px; z-index: 2; }
.foto__energia { position: absolute; left: 18px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--cinza); }
.foto__energia img { position: static; width: 54px; height: auto; inset: auto; mix-blend-mode: normal; }

.cfg__t { font-family: var(--titulo); font-weight: 700; letter-spacing: -.035em; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.06; color: var(--tinta); }
.cfg__f { color: var(--cinza); margin-top: 10px; }
.opcao { margin-top: 26px; }
.opcao__rot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 800; color: var(--tinta); margin-bottom: 10px; font-size: .95rem; }
.opcao__rot span { font-weight: 600; color: var(--cinza); font-size: .88rem; }
.opcoes { position: relative; display: grid; gap: 8px; }
.opcoes--mem { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.opcoes--cor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.op { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 8px 12px; text-align: left; border-radius: var(--r-botao); box-shadow: inset 0 0 0 1.5px var(--linha); color: var(--tinta); transition: box-shadow .25s, transform .3s var(--suave), opacity .25s; }
.op:hover:not([aria-disabled="true"]) { box-shadow: inset 0 0 0 1.5px #A9B3F5; }
.op:active:not([aria-disabled="true"]) { transform: scale(.98); }
.op strong { font-size: .98rem; font-weight: 800; line-height: 1.25; }
.op small { font-size: .8rem; color: var(--cinza); font-weight: 600; font-variant-numeric: tabular-nums; }
.op[aria-checked="true"] { box-shadow: none; }
.op--cor { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
.op--cor > span:last-child { display: grid; min-width: 0; }
.op--cor strong { overflow-wrap: anywhere; }
.op__ponto { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(18, 18, 18, .2); }
.op[aria-disabled="true"] { color: #8D90A2; cursor: pointer; background: repeating-linear-gradient(135deg, transparent 0 7px, #F4F5FB 7px 9px); }
.op[aria-disabled="true"] strong { text-decoration: line-through; font-weight: 700; }
.op[aria-disabled="true"] .op__ponto { opacity: .4; }
/* O aro que desliza entre opções mostra que é a mesma escolha a mudar. */
.opcoes__aro { position: absolute; left: 0; top: 0; z-index: 2; border-radius: var(--r-botao); box-shadow: inset 0 0 0 2.5px var(--azul); background: rgba(37, 57, 235, .06); pointer-events: none; transition: transform .5s var(--suave), width .5s var(--suave), height .5s var(--suave); }
.opcoes__aro.sem-anim { transition: none; }

.preco { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 26px; }
.preco__v { font-family: var(--titulo); font-weight: 700; letter-spacing: -.04em; font-size: clamp(2rem, 3.4vw, 3rem); color: var(--tinta); font-variant-numeric: tabular-nums; line-height: 1.1; }
.preco__n { color: var(--cinza); font-size: .88rem; font-weight: 600; }

.pag { display: grid; gap: 8px; margin-top: 16px; }
.pag__i { border-radius: var(--r-cartao); box-shadow: inset 0 0 0 1.5px var(--linha); overflow: hidden; transition: box-shadow .25s, background .25s; }
.pag__i[data-aberto="true"] { box-shadow: inset 0 0 0 2.5px var(--azul); background: #FBFBFF; }
.pag__c { width: 100%; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; text-align: left; }
.pag__r { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px #B9BDD2; transition: box-shadow .3s var(--mola); }
.pag__i[data-aberto="true"] .pag__r { box-shadow: inset 0 0 0 6px var(--azul); }
.pag__c strong { display: block; color: var(--tinta); line-height: 1.25; font-size: .98rem; }
.pag__c small { display: block; color: var(--cinza); font-size: .82rem; line-height: 1.35; }
.pag__v { font-weight: 800; color: var(--tinta); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pag__c .pag__v small { display: inline; font-weight: 600; font-size: .78rem; color: var(--cinza); }
.pag__d { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--suave); }
.pag__i[data-aberto="true"] .pag__d { grid-template-rows: 1fr; }
.pag__d > div { overflow: hidden; }
.pag__in { padding: 0 16px 16px 50px; font-size: .86rem; color: var(--cinza); }
.prazos { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.prazo { padding: 8px 4px; text-align: center; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linha); line-height: 1.25; color: var(--tinta); font-variant-numeric: tabular-nums; transition: box-shadow .2s, background .2s; }
button.prazo:hover { box-shadow: inset 0 0 0 1.5px var(--azul); }
.prazo[aria-pressed="true"] { background: var(--azul-claro); box-shadow: inset 0 0 0 1.5px var(--azul); }
.prazo b { display: block; font-size: .92rem; font-weight: 800; }
.prazo span { display: block; font-size: .74rem; color: var(--cinza); font-weight: 600; }

.compra { display: grid; gap: 10px; margin-top: 18px; }
.compra__res { font-size: .92rem; color: var(--texto); font-weight: 600; }
.compra__res b { color: var(--tinta); font-weight: 800; }
.info { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--linha); font-size: .92rem; }
.info li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; line-height: 1.4; }
.info i { color: var(--azul); font-size: 1.2rem; margin-top: 1px; }
.avisa { display: none; margin-top: 8px; padding: 10px 12px; border-radius: var(--r-botao); background: var(--gelo); font-size: .86rem; color: var(--tinta); }
.avisa.ver { display: block; animation: entra-suave .4s var(--suave); }
@keyframes entra-suave { from { opacity: 0; transform: translateY(-6px); } }

.dest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dest__c { padding: clamp(18px, 2vw, 26px); border-radius: var(--r-cartao); background: var(--gelo); min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.dest__c:nth-child(1) { background: var(--azul); }
.dest__c:nth-child(1) span, .dest__c:nth-child(1) b { color: #fff; }
.dest__c:nth-child(4) { background: var(--azul-claro); }
.dest__c span { color: var(--cinza); font-weight: 700; font-size: .88rem; }
.dest__c b { font-family: var(--titulo); font-weight: 700; letter-spacing: -.03em; font-size: clamp(1.02rem, 1.7vw, 1.5rem); line-height: 1.16; color: var(--tinta); }

.extra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.extra__c { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-cartao); box-shadow: inset 0 0 0 1.5px var(--linha); }
.extra__f { width: 92px; height: 92px; border-radius: 10px; background: var(--gelo); overflow: hidden; }
.extra__f img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.extra__c small { display: block; font-weight: 700; color: var(--azul); font-size: .78rem; }
.extra__c strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--tinta); font-size: .9rem; line-height: 1.3; }
.extra__l { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-weight: 800; color: var(--tinta); font-variant-numeric: tabular-nums; }
.extra__add { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px; border-radius: 9px; background: var(--azul-claro); font-weight: 700; font-size: .84rem; color: var(--tinta); transition: background .25s, color .25s, transform .3s var(--suave); }
.extra__add:hover { background: var(--azul); color: #fff; }
.extra__add:active { transform: scale(.96); }
.cupao { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 16px; border-radius: var(--r-botao); background: var(--gelo); font-weight: 600; color: var(--tinta); }
.cupao code { font-family: var(--titulo); font-size: .78rem; background: var(--tinta); color: #fff; padding: 5px 8px; border-radius: var(--r-etq); }

/* Giro 360: o telemóvel em CSS 3D, com a foto oficial */
.giro { position: absolute; inset: 0; z-index: 1; display: none; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline-offset: -4px; }
.foto[data-vista="giro"] .giro { display: block; animation: entra-suave .5s var(--suave); }
.foto[data-vista="giro"] > img { visibility: hidden; }
.giro.agarrado { cursor: grabbing; }
.giro__cena { position: absolute; inset: 0 0 8% 0; display: grid; place-items: center; perspective: calc(1500px * var(--s, 1)); perspective-origin: 50% 46%; }
.foto[data-vista="giro"] .foto__energia { bottom: 66px; }
.giro__corpo { position: relative; width: 1px; height: 1px; transform-style: preserve-3d; --luz: 50%; --borda: #8C8F94; will-change: transform; }
.giro__sombra { position: absolute; left: 50%; bottom: 3.5%; width: 46%; height: 5%; margin-left: -23%; border-radius: 50%; background: radial-gradient(closest-side, rgba(18, 24, 80, .32), rgba(18, 24, 80, 0)); transition: transform .08s linear; }
.g-p { position: absolute; display: block; backface-visibility: hidden; transform-style: flat; }
.g-base { backface-visibility: visible; }
.g-grupo { overflow: hidden; }
.g-liso, .g-real { position: absolute; display: block; }
.g-liso { inset: -12px; filter: blur(calc(5px * var(--s, 1))); }
.g-real { inset: 0; }
.g-lado { backface-visibility: visible; background: linear-gradient(90deg, color-mix(in srgb, var(--borda) 82%, #000), var(--borda) 20%, color-mix(in srgb, var(--borda) 80%, #fff) 50%, var(--borda) 80%, color-mix(in srgb, var(--borda) 82%, #000)); }
.g-lado--h { background: linear-gradient(180deg, color-mix(in srgb, var(--borda) 82%, #000), var(--borda) 20%, color-mix(in srgb, var(--borda) 80%, #fff) 50%, var(--borda) 80%, color-mix(in srgb, var(--borda) 82%, #000)); }
.g-botao { position: absolute; left: 26%; width: 48%; border-radius: 3px; background: color-mix(in srgb, var(--borda) 84%, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--borda) 60%, #000); }
.g-porta { position: absolute; left: 41%; top: 32%; width: 18%; height: 36%; border-radius: 99px; background: #101012; }
.g-reflexo { pointer-events: none; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, 0) 62%); background-size: 260% 100%; background-position: var(--luz) 0; }
.foto__vistas { position: absolute; left: 50%; bottom: 14px; z-index: 3; width: max-content; transform: translateX(-50%); display: grid; grid-auto-flow: column; gap: 2px; padding: 3px; border-radius: 11px; background: #fff; box-shadow: 0 8px 22px -12px rgba(18, 24, 80, .5); white-space: nowrap; }
.foto__vistas button { min-height: 36px; min-width: 40px; padding: 0 11px; border-radius: 8px; font-weight: 700; font-size: .82rem; color: var(--texto); display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: background .2s, color .2s; }
.foto__vistas button:hover { background: var(--gelo); }
.foto__vistas button[aria-pressed="true"] { background: var(--tinta); color: #fff; }
.foto__vistas button i { font-size: 1.05rem; }
.foto__dica { position: absolute; left: 50%; top: 16px; z-index: 3; transform: translateX(-50%); padding: 6px 11px; border-radius: 9px; background: var(--tinta); color: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .4s; }
.foto[data-vista="giro"] .foto__dica.ver { opacity: 1; }

/* Barra de compra */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--branco); box-shadow: 0 -1px 0 var(--linha), 0 -18px 30px -24px rgba(18, 24, 80, .4); transform: translateY(110%); transition: transform .55s var(--suave); }
.barra.ver { transform: none; }
.barra__l { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.barra__n { min-width: 0; }
.barra__n strong { display: block; color: var(--tinta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra__n small { color: var(--cinza); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra__d { display: flex; align-items: center; gap: 16px; flex: none; }
.barra__p { font-family: var(--titulo); font-weight: 700; color: var(--tinta); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Foto a voar até ao carrinho */
.voo { position: fixed; z-index: 95; pointer-events: none; border-radius: 14px; overflow: hidden; background: var(--gelo); }
.voo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* ---------- Gaveta do carrinho ---------- */
.veu { position: fixed; inset: 0; z-index: 70; background: rgba(12, 14, 44, .5); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.veu.ver { opacity: 1; visibility: visible; }
.gaveta { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(100%, 460px); background: var(--branco); display: flex; flex-direction: column; transform: translateX(102%); visibility: hidden; transition: transform .55s var(--suave), visibility .55s; }
.gaveta.ver { transform: none; visibility: visible; }
.gaveta__t { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--linha); }
.gaveta__c { flex: 1; overflow-y: auto; padding: 18px 20px; }
.gaveta__p { padding: 16px 20px 20px; border-top: 1px solid var(--linha); display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--linha); animation: entra-suave .45s var(--suave); }
.item__f { width: 76px; height: 76px; border-radius: 10px; background: var(--gelo); overflow: hidden; }
.item__f img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.item strong { display: block; color: var(--tinta); font-size: .95rem; line-height: 1.3; }
.item small { display: block; color: var(--cinza); font-size: .84rem; }
.item__l { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 10px; }
.qtd { display: inline-flex; align-items: center; border-radius: 9px; box-shadow: inset 0 0 0 1.5px var(--linha); }
.qtd button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--tinta); }
.qtd span { min-width: 22px; text-align: center; font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; }
.item__p { font-weight: 800; color: var(--tinta); font-variant-numeric: tabular-nums; }
.item__x { font-size: .8rem; color: var(--cinza); text-decoration: underline; margin-left: 10px; }
.soma { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; }
.soma--t { font-weight: 800; color: var(--tinta); font-size: 1.1rem; }
.vazio-c { text-align: center; padding: 48px 12px; color: var(--cinza); }
.vazio-c i { font-size: 2.6rem; color: var(--azul); display: block; margin-bottom: 10px; }
.vazio-c .btn { margin-top: 16px; }
.junta { margin-top: 6px; }
.junta h3 { font-size: .92rem; color: var(--tinta); margin-bottom: 10px; font-weight: 800; }
/* Capa e película do telemóvel no carrinho: o cliente junta se quiser */
.protege { display: grid; gap: 12px; margin: 2px 0 18px; padding: 14px; border-radius: var(--r-cartao); background: var(--gelo); animation: entra-suave .45s var(--suave); }
.protege__t { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.protege__t > i { font-size: 1.45rem; color: var(--azul); line-height: 1; margin-top: 1px; }
.protege__t h3 { font-size: .98rem; font-weight: 800; color: var(--tinta); line-height: 1.25; }
.protege__t p { margin-top: 2px; font-size: .84rem; color: var(--cinza); line-height: 1.4; }
.protege__g { display: grid; gap: 8px; }
.protege .extra__c { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: stretch; background: #fff; }
.protege .extra__c > div { display: flex; flex-direction: column; }
.protege .extra__f { width: 76px; height: 76px; align-self: center; }
.protege .extra__l { flex-wrap: wrap; gap: 6px 8px; margin-top: auto; padding-top: 8px; }
.protege .extra__l del { color: var(--cinza); font-weight: 600; font-size: .84rem; }
.protege .extra__add:disabled, .protege__duas:disabled { opacity: .6; cursor: progress; }
.protege-l { margin-top: 18px; }
.pg-woo .protege__t h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.protege-l .protege { margin-bottom: 0; }
@media (min-width: 600px) {
  .protege-l .protege__g { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* Busca */
.busca { position: fixed; inset: 0; z-index: 90; background: var(--branco); opacity: 0; visibility: hidden; transform: translateY(-14px); transition: opacity .3s, transform .5s var(--suave), visibility .3s; overflow-y: auto; }
.busca.ver { opacity: 1; visibility: visible; transform: none; }
.busca__l { display: flex; align-items: center; gap: 12px; padding-block: 18px; border-bottom: 2px solid var(--tinta); }
.busca__l i { font-size: 1.6rem; color: var(--azul); }
.busca__l input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-family: var(--titulo); font-weight: 700; font-size: clamp(1.2rem, 3vw, 2.2rem); letter-spacing: -.03em; color: var(--tinta); }
.busca__l input::placeholder { color: #70748A; }
.busca__g { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding-block: 24px; }

/* ---------- Carrinho e finalizar ---------- */
.fim-g { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(20px, 3.4vw, 48px); align-items: start; padding-bottom: 40px; }
.fim-c { background: var(--gelo); border-radius: var(--r-painel); padding: clamp(18px, 2vw, 26px); position: sticky; top: 92px; display: grid; gap: 10px; }
.fim-c .item:last-of-type { margin-bottom: 4px; }
.passos { display: grid; gap: 28px; }
.passo h2 { font-family: var(--titulo); font-weight: 700; font-size: 1.15rem; letter-spacing: -.025em; color: var(--tinta); margin-bottom: 14px; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.campos .todo { grid-column: 1 / -1; }
.sel-l { display: grid; gap: 8px; }
.sel-o { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-cartao); box-shadow: inset 0 0 0 1.5px var(--linha); cursor: pointer; transition: box-shadow .25s, background .25s; }
.sel-o:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--azul); background: #FBFBFF; }
.sel-o input { width: 20px; height: 20px; accent-color: var(--azul); margin: 0; }
.sel-o strong { display: block; color: var(--tinta); line-height: 1.25; }
.sel-o small { display: block; color: var(--cinza); font-size: .84rem; line-height: 1.35; }
.sel-o b { color: var(--tinta); font-variant-numeric: tabular-nums; }
.aceito { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .9rem; }
.aceito input { width: 20px; height: 20px; accent-color: var(--azul); margin: 0; }
.erro { color: #B3261E; font-size: .84rem; font-weight: 700; display: none; }
.erro.ver { display: block; }
.dialogo { position: fixed; inset: 0; z-index: 95; display: none; place-items: center; padding: 16px; background: rgba(12, 14, 44, .55); }
.dialogo.ver { display: grid; }
.dialogo__c { background: #fff; border-radius: var(--r-painel); padding: 30px; max-width: 460px; animation: entra-suave .45s var(--suave); }
.dialogo__c h2 { margin-bottom: 10px; }
.dialogo__c p { margin-bottom: 18px; color: var(--cinza); }

/* ---------- Transições entre páginas ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 240ms ease both vt-sai; }
::view-transition-new(root) { animation: 420ms var(--suave) both vt-entra; }
::view-transition-group(foto-produto) { animation-duration: 560ms; animation-timing-function: var(--suave); }
@keyframes vt-sai { to { opacity: 0; } }
@keyframes vt-entra { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Ecrãs mais pequenos ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .topo__linha { grid-template-columns: 1fr auto; }
  .acao--menu { display: grid; }
  .grelha { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dest { grid-template-columns: repeat(2, 1fr); }
  .extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .faixa ul li:nth-child(n+2) { display: none; }
  .heroi__g { grid-template-columns: 1fr; min-height: 0; padding-block: 28px 0; }
  .heroi__foto { width: min(84vw, 460px); margin-bottom: -6%; }
  .mosaico { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .tile--grande, .tile--col5, .tile--col6 { grid-column: auto; grid-row: auto; min-height: 340px; }
  .tile--grande { min-height: 430px; }
  .tile__foto, .tile--grande .tile__foto { height: auto; width: 80%; right: -2%; bottom: -4%; }
  .lista__g, .prest__g, .rep__g, .cfg, .fim-g { grid-template-columns: minmax(0, 1fr); }
  .factos { grid-template-columns: repeat(2, 1fr); }
  .facto:nth-child(3) { border-left: 0; }
  .facto:nth-child(n+3) { border-top: 1px solid var(--linha); }
  .loja__foto { aspect-ratio: 4 / 3; }
  .loja__c { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loja__c > div:first-child { grid-column: 1 / -1; }
  .pe__g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pe__marca { grid-column: 1 / -1; }
  .cfg__esq { position: static; }
  .foto { max-height: none; }
  .foto[data-vista="giro"] { aspect-ratio: 4 / 5; }
  .grelha { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cartao__nome { font-size: .9rem; }
  .extra { grid-template-columns: minmax(0, 1fr); }
  .fim-c { position: static; }
  .secao__topo { flex-direction: column; align-items: flex-start; }
  .barra__l { padding-block: 10px; }
  .barra__n small { display: none; }
  .barra .btn { padding: 0 16px; min-height: 46px; }
}
@media (max-width: 520px) {
  .campos { grid-template-columns: minmax(0, 1fr); }
  .opcoes--mem { grid-template-columns: repeat(min(var(--n, 4), 2), minmax(0, 1fr)); }
  .form-linha { grid-template-columns: minmax(0, 1fr); }
  .heroi__t { font-size: clamp(2.3rem, 11.4vw, 3.4rem); }
  .btn { padding: 0 20px; }
  .prest__l { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .prest__v small { text-align: left; }
  .pag__in { padding-left: 16px; }
  .barra__p { font-size: .95rem; }
  .foto__vistas { bottom: 8px; }
  .foto__vistas button { min-width: 0; min-height: 34px; padding: 0 8px; font-size: .76rem; }
  .foto[data-vista="giro"] .foto__energia { bottom: 52px; left: 10px; }
  .foto__energia img { width: 44px; }
  .rep__l { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rep__c { padding: 16px; min-height: 150px; }
  .faixa ul { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js [data-rev] { opacity: 1; transform: none; }
  .corre__trilho { animation: none; }
  @view-transition { navigation: none; }
}

/* ---------- Desempenho (17/11) ----------
   As fotos do tema vêm num <picture> (AVIF e WebP): o <picture> não conta para o desenho, a <img> fica como antes. */
.heroi__foto picture, .doze picture { display: contents; }
/* Aviso de cookies (Complianz) mais compacto no telemóvel: tapava meio ecrã e o texto dele era o maior bloco da página. */
@media (max-width: 640px) {
  .cmplz-cookiebanner .cmplz-message { font-size: 12.5px; line-height: 1.45; }
  .cmplz-cookiebanner .cmplz-title { font-size: 15px; }
}

/* ---------- Promoções (20/11) ----------
   Preço anterior riscado, preço da promoção a azul, datas e contador (ASAE: a promoção diz quando começa e acaba).
   O HTML sai de inc/promocoes.php. */
.etq--promo { background: var(--azul); color: #fff; }
.preco--promo .preco__v { color: var(--azul); }
.preco__antes { display: inline-flex; align-items: center; gap: 10px; }
.preco__antes:empty { display: none; }
.preco__antes del { color: var(--cinza); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-variant-numeric: tabular-nums; text-decoration-thickness: 2px; }
.preco__antes .etq { font-size: .8rem; padding: .45em .6em; }
.promo { display: grid; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: var(--r-cartao); background: var(--gelo); }
.promo[hidden] { display: none; }
.promo__datas { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .92rem; font-weight: 700; color: var(--tinta); line-height: 1.4; }
.promo__datas i { color: var(--azul); font-size: 1.2rem; margin-top: 1px; }
.promo__conta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding-top: 12px; border-top: 1px solid var(--linha); }
.promo__conta[hidden] { display: none; }
.promo__rot { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 700; color: var(--cinza); }
.promo__rot i { color: var(--azul); font-size: 1.2rem; }
.promo__nums { display: flex; gap: 6px; flex: none; }
.promo__n { display: grid; justify-items: center; min-width: 54px; padding: 7px 4px 6px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linha); line-height: 1.1; }
.promo__n[hidden] { display: none; }
.promo__n b { font-family: var(--titulo); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; color: var(--tinta); font-variant-numeric: tabular-nums; }
.promo__n small { font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--cinza); }
.promo__fim { font-size: .9rem; font-weight: 700; color: var(--tinta); }
.foto__nota { margin-top: 8px; font-size: .8rem; color: var(--cinza); text-align: center; }
.cartao__etq-promo { position: absolute; right: 12px; top: 12px; z-index: 1; }
.cartao__preco--promo { color: var(--azul); }
.cartao__preco del { margin-left: 4px; font-size: .86rem; font-weight: 600; color: var(--cinza); white-space: nowrap; }
.cartao__promo { font-size: .78rem; font-weight: 700; color: var(--tinta); line-height: 1.35; }
.extra__l del { margin-left: 4px; font-size: .82rem; font-weight: 600; color: var(--cinza); }
.barra__antes { font-size: .9rem; font-weight: 600; color: var(--cinza); font-variant-numeric: tabular-nums; white-space: nowrap; margin-right: -8px; }
.barra__antes:empty { display: none; }
@media (max-width: 520px) {
  .promo { padding: 12px 14px; }
  .promo__nums { width: 100%; }
  .promo__n { flex: 1; min-width: 0; }
  .barra__antes { display: none; }
}

/* ---------- Black Friday (20/11) ----------
   A peça «Black Friday a carregar» da marca (aprovada a 11/11): fundo preto, teclas azuis, sem datas nem números.
   O HTML sai de inc/black-friday.php. */
.bf__t { font-size: clamp(3rem, 7.6vw, 7.2rem); line-height: .98; letter-spacing: -.045em; margin-block: 14px 26px; }
.bf__barra { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(5px, .7vw, 9px); max-width: 560px; }
.bf__tecla { aspect-ratio: 5 / 6; border-radius: clamp(6px, .7vw, 10px); box-shadow: inset 0 0 0 2px #2C2F3D; }
.bf__tecla.cheia { background: var(--azul); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .28); }
/* A barra enche tecla a tecla quando o banner aparece; a primeira tecla vazia pisca, à espera. */
.js .banner--bf.ativo .bf__tecla.cheia { animation: bf-enche .45s var(--mola) calc(var(--k) * 80ms + 350ms) both; }
.bf__tecla:not(.cheia) { animation: bf-espera 1.1s steps(1) infinite; }
.bf__tecla:not(.cheia) ~ .bf__tecla:not(.cheia) { animation: none; }
@keyframes bf-enche { from { background: transparent; box-shadow: inset 0 0 0 2px #2C2F3D; transform: scale(.82); } }
@keyframes bf-espera { 50% { box-shadow: inset 0 0 0 2px var(--azul); } }
.bf__estado { display: flex; align-items: center; font-family: var(--titulo); font-weight: 700; letter-spacing: -.03em; font-size: clamp(1.25rem, 1.9vw, 1.7rem); color: #fff; margin: 14px 0 12px; }
.bf__cursor { display: inline-block; width: .42em; height: .9em; margin-left: .12em; background: var(--azul); animation: piscar 1.1s steps(1) infinite; }
.bf__dias { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 130px)); gap: 10px; }
.bf__dia { display: grid; align-content: space-between; min-height: clamp(76px, 7.4vw, 100px); padding: 12px 14px; border-radius: 12px; background: var(--azul); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .28); color: #fff; }
.bf__dia b { font-family: var(--titulo); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1; letter-spacing: -.04em; }
.bf__dia small { font-weight: 800; font-size: .82rem; }
.bf__foto { position: relative; }
/* Os pontos e a pausa dos banners ficam por baixo dos botões, sem lhes tocar. */
.banner--bf .heroi__g { padding-bottom: clamp(72px, 7vw, 96px); }
.bf__tag { position: absolute; left: 0; bottom: 12%; z-index: 1; margin: 0; }
.bf__tag small:last-child { font-weight: 600; font-size: .72rem; }
/* Faixa do topo: a ligação da Black Friday, com as teclas pequenas. */
.faixa__bf { display: inline-flex; align-items: center; gap: 10px; color: #fff; white-space: nowrap; }
.faixa__bf b { font-weight: 800; }
.faixa__teclas { display: inline-flex; gap: 2px; }
.faixa__teclas i { width: 7px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px #3D4052; }
.faixa__teclas i.cheia { background: var(--azul); box-shadow: none; }
@media (max-width: 1100px) {
  .faixa--bf ul li:nth-child(n+3) { display: none; }
}
@media (max-width: 860px) {
  .faixa--bf ul { display: none; }
  .bf__t { margin-block: 12px 20px; }
  .bf__barra { max-width: 100%; }
  .bf__tag { bottom: 16%; }
}
@media (max-width: 420px) {
  .faixa__teclas { display: none; }
}
