/* Alça Rosa Bolsas — vitrine */
.aviso-teste { background: var(--tinta); color: var(--cartao); text-align: center; font-size: .8rem; padding: 6px 16px; }

/* ------------------------------------------------------------ Topo */
.topo { position: sticky; top: 0; z-index: 30; background: rgba(251, 247, 245, .94); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.topo.rolou { border-bottom-color: var(--borda); }
.topo-dentro { max-width: var(--largura); margin: 0 auto; padding: 12px var(--lado); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 72px; }
.logo-link { justify-self: center; display: block; }
.logo { height: 44px; width: auto; }
.menu-botao span { font-size: .9rem; }
.menu { display: none; }
.menu a { text-decoration: none; color: var(--tinta); font-size: .95rem; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .25s; }
.menu a:hover { border-bottom-color: var(--borda); }
.menu a[aria-current] { border-bottom-color: var(--dourado); }
.menu.aberto { display: grid; position: absolute; left: 0; right: 0; top: 100%; background: var(--fundo); border-bottom: 1px solid var(--borda); padding: 8px var(--lado) 20px; gap: 2px; animation: descer .3s var(--curva); }
.menu.aberto a { font-family: var(--fonte-titulo); font-size: 1.6rem; padding: 6px 0; }
.topo-acoes { justify-self: end; display: flex; align-items: center; gap: 20px; }
.link-pedidos { display: none; font-size: .9rem; color: var(--tinta); text-decoration: none; }
.link-pedidos:hover { text-decoration: underline; }
.sacola-botao { position: relative; }
.sacola-texto { font-size: .95rem; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contador { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--vinho); color: #fff; font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.contador.pulsar { animation: pulsar .6s var(--curva); }
@media (min-width: 960px) {
  .menu, .menu.aberto { display: flex; position: static; gap: 28px; padding: 0; border: 0; background: none; animation: none; }
  .menu.aberto a { font-family: inherit; font-size: .95rem; }
  .menu .menu-secundario { display: none; }
  .menu-botao { display: none; }
  .link-pedidos { display: inline; }
  .sacola-texto { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .logo { height: 52px; }
}

/* ------------------------------------------------------------ Seções */
.secao { max-width: var(--largura); margin: 0 auto; padding: clamp(56px, 9vw, 112px) var(--lado); }
.secao.estreita { max-width: 760px; }
.titulo-secao { max-width: 620px; margin-bottom: clamp(28px, 4vw, 48px); }
.titulo-secao p { color: var(--apagado); margin: 0; }
.titulo-secao.com-acoes { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.texto-longo h3 { font-family: var(--fonte-texto); font-size: 1.05rem; font-weight: 600; margin-top: 1.8em; }
.texto-longo li { margin-bottom: .4em; }
.vazio { color: var(--apagado); padding: 40px 0; grid-column: 1 / -1; }

/* ------------------------------------------------------------ Hero com céu */
.hero { position: relative; overflow: hidden; isolation: isolate; color: var(--tinta); --hero-tinta: var(--tinta); --hero-sub: var(--tinta-suave); }
.hero[data-ceu="noite"] { --hero-tinta: #FBF7F5; --hero-sub: #E9DCE3; }
.ceu { position: absolute; inset: 0; z-index: -1; }
.ceu-camada { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.ceu-dia { background: linear-gradient(180deg, #BFD5E5 0%, #DCE7EE 38%, #F3EDEB 78%, var(--fundo) 100%); }
.ceu-amanhecer { background: linear-gradient(180deg, #B9B5D6 0%, #E4C4CB 40%, #F6DCCF 75%, #FBF1EA 100%); }
.ceu-noite { background: linear-gradient(180deg, #17152B 0%, #26213D 45%, #3B2F4C 80%, #4D3B53 100%); }
.ceu-chuva { background: linear-gradient(180deg, rgba(120, 128, 142, .55) 0%, rgba(170, 172, 180, .45) 50%, rgba(220, 214, 212, .25) 100%); }
.hero[data-ceu="dia"] .ceu-dia,
.hero[data-ceu="amanhecer"] .ceu-amanhecer,
.hero[data-ceu="entardecer"] .ceu-amanhecer,
.hero[data-ceu="noite"] .ceu-noite,
.hero[data-chuva="sim"] .ceu-chuva { opacity: 1; }
.hero[data-ceu="entardecer"] .ceu-amanhecer { filter: hue-rotate(-12deg) saturate(1.15); }
.hero[data-ceu="noite"][data-chuva="sim"] .ceu-chuva { opacity: .5; }

.astro { position: absolute; opacity: 0; transition: opacity 1.6s ease; pointer-events: none; }
/* O sol é um brilho desenhado no fundo de uma camada fixa: mudar a posição dele não desloca nada na página */
.sol { inset: 0;
  background: radial-gradient(circle 75px at var(--sol-x, 70%) var(--sol-y, 22%), #FFF8EC 0 20px, rgba(255, 233, 205, .75) 29px, rgba(255, 220, 190, .25) 50px, transparent 75px); }
.hero[data-ceu="dia"] .sol, .hero[data-ceu="amanhecer"] .sol, .hero[data-ceu="entardecer"] .sol { opacity: 1; }
.hero[data-chuva="sim"] .sol { opacity: .15; }
.lua { width: 64px; height: 64px; left: var(--lua-x, 58%); top: var(--lua-y, 16%); filter: drop-shadow(0 0 18px rgba(245, 236, 220, .45)); }
.lua-sombra { fill: rgba(255, 255, 255, .07); }
.lua-luz { fill: #F3EBDD; }
.hero[data-ceu="noite"] .lua { opacity: 1; }
@media (max-width: 859px) { .lua { left: auto; right: 7%; top: 3%; width: 48px; height: 48px; } }
.hero[data-ceu="noite"][data-chuva="sim"] .lua { opacity: .25; }
.nuvens { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero[data-chuva="sim"] .nuvens { opacity: 1; }
.hero[data-nublado="sim"] .nuvens { opacity: .75; }
.hero[data-nublado="sim"] .sol { opacity: .45; }
.hero[data-nublado="sim"][data-ceu="noite"] .lua { opacity: .55; }
.nuvens span { position: absolute; border-radius: 50%; background: rgba(236, 234, 238, .55); filter: blur(28px); }
.hero[data-ceu="noite"] .nuvens span { background: rgba(90, 84, 108, .55); }
.nuvens span:nth-child(1) { width: 46%; height: 26%; left: -6%; top: 4%; }
.nuvens span:nth-child(2) { width: 38%; height: 22%; left: 38%; top: -4%; }
.nuvens span:nth-child(3) { width: 40%; height: 24%; left: 70%; top: 8%; }
@media (prefers-reduced-motion: no-preference) {
  .nuvens span { animation: derivar 70s ease-in-out infinite alternate; }
  .nuvens span:nth-child(2) { animation-duration: 90s; animation-direction: alternate-reverse; }
}
.ceu-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-dentro { max-width: var(--largura); margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--lado) 0; display: grid; gap: 40px; align-items: end; min-height: min(calc(100svh - 72px), 780px); }
.hero-texto { padding-bottom: clamp(16px, 6vw, 96px); max-width: 560px; }
.hero h1 { color: var(--hero-tinta); transition: color 1.6s ease; margin-bottom: .35em; }
.hero-sub { color: var(--hero-sub); font-size: 1.1rem; max-width: 30em; transition: color 1.6s ease; margin-bottom: 1.8em; }
.hero[data-ceu="noite"] .botao { background: #FBF7F5; color: var(--tinta); border-color: #FBF7F5; }
.hero[data-ceu="noite"] .botao:hover { background: var(--blush); border-color: var(--blush); }
.ceu-legenda { margin: 22px 0 0; font-size: .82rem; color: var(--hero-sub); min-height: 1.3em; transition: color 1.6s ease; }

/* A vitrine em arco: a peça marcante do site */
.vitrine-arco { position: relative; margin: 0 auto; width: min(100%, 440px); aspect-ratio: 3 / 4.1; justify-self: center; }
.vitrine-arco img { width: 100%; height: 100%; object-fit: cover; object-position: 69% 50%; border-radius: 999px 999px 0 0; background: var(--cartao); }
.vitrine-arco::after { content: ""; position: absolute; inset: -12px -12px 0; border: 1px solid var(--dourado); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; opacity: .8; }
@media (min-width: 860px) {
  .hero-dentro { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .vitrine-arco { justify-self: end; margin: 0; }
}
@media (max-width: 859px) {
  .hero-texto { padding-bottom: 0; }
  .vitrine-arco { width: min(78%, 360px); }
}

/* Entrada da página: o único movimento automático do site */
@media (prefers-reduced-motion: no-preference) {
  .entrada .vitrine-arco img { animation: revelar 1.1s var(--curva) both .1s; }
  .entrada .vitrine-arco::after { animation: aparecer 1.2s ease both .7s; }
  .entrada .hero-texto > * { animation: subir .9s var(--curva) both; }
  .entrada .hero-texto > :nth-child(2) { animation-delay: .12s; }
  .entrada .hero-texto > :nth-child(3) { animation-delay: .22s; }
  .entrada .hero-texto > :nth-child(4) { animation-delay: .5s; }
}

/* ------------------------------------------------------------ Coleções */
.colecoes { display: grid; gap: 28px; }
.colecao { display: grid; gap: 14px; text-decoration: none; color: inherit; }
.colecao-foto { overflow: hidden; background: var(--cartao); aspect-ratio: 4 / 5; }
.colecao-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--curva); }
.colecao:hover .colecao-foto img { transform: scale(1.035); }
.colecao-legenda { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--borda); padding-top: 12px; }
.colecao-legenda h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.colecao-legenda span { color: var(--apagado); font-size: .9rem; white-space: nowrap; }
.colecao:hover h3 { color: var(--vinho); }
@media (max-width: 759px) {
  .colecoes { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .colecao:first-child { grid-column: 1 / -1; }
  .colecao:first-child .colecao-foto { aspect-ratio: 1; }
  .colecao:not(:first-child) .colecao-legenda { display: grid; gap: 2px; }
  .colecao:not(:first-child) .colecao-legenda h3 { font-size: 1.2rem; }
}
@media (min-width: 760px) {
  .colecoes { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; column-gap: 40px; row-gap: 40px; }
  .colecao:first-child { grid-row: span 2; }
  .colecao:not(:first-child) .colecao-foto { aspect-ratio: 16 / 11; }
}

/* ------------------------------------------------------------ Trilho "Na vitrine" */
.vitrine-secao { padding-right: 0; padding-left: 0; }
.vitrine-secao .titulo-secao { padding: 0 var(--lado); }
.trilho-setas { display: none; gap: 8px; }
@media (min-width: 760px) { .trilho-setas { display: flex; } }
.trilho { display: grid; grid-auto-flow: column; grid-auto-columns: min(68vw, 290px); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--lado) 8px; scroll-padding: 0 var(--lado); scrollbar-width: none; }
.trilho::-webkit-scrollbar { display: none; }
.trilho > * { scroll-snap-align: start; }

/* ------------------------------------------------------------ Card de bolsa (trilho e catálogo) */
.peca { display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; cursor: pointer; }
.peca-foto { position: relative; aspect-ratio: 4 / 5; background: var(--cartao); overflow: hidden; }
.peca-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform 1.4s var(--curva); }
.peca-foto .foto-b { opacity: 0; }
@media (hover: hover) {
  .peca:hover .peca-foto .foto-b { opacity: 1; }
  .peca:hover .peca-foto img { transform: scale(1.02); }
}
.peca.esgotada .peca-foto img { filter: grayscale(.85); opacity: .75; }
.peca-selo { position: absolute; left: 12px; bottom: 12px; background: rgba(251, 247, 245, .92); padding: 3px 10px; font-size: .75rem; border-radius: 99px; color: var(--vinho); }
.peca-info { display: grid; gap: 2px; }
.peca-nome { font-family: var(--fonte-titulo); font-size: 1.25rem; line-height: 1.2; font-weight: 400; margin: 0; }
.peca-nome a { color: inherit; text-decoration: none; }
.peca-nome a::after { content: ""; position: absolute; inset: 0; } /* área de clique = card inteiro */
.peca-preco { font-size: .92rem; color: var(--tinta-suave); font-variant-numeric: tabular-nums; margin: 0; }
.peca-preco.consulta { color: var(--apagado); }
.peca-cores { display: flex; gap: 6px; margin-top: 8px; position: relative; z-index: 1; }
.peca-cores button { width: 22px; height: 22px; padding: 3px; border-radius: 50%; border: 1px solid transparent; background: none; cursor: pointer; }
.peca-cores button[aria-pressed="true"] { border-color: var(--tinta-suave); }
.peca-cores .bolinha { border-width: 1px; }
.peca { position: relative; }

/* ------------------------------------------------------------ Catálogo */
.catalogo { padding-top: clamp(32px, 5vw, 64px); }
.catalogo-topo { display: grid; gap: 20px; margin-bottom: 28px; }
.catalogo-titulo { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: .2em; }
.catalogo-topo p { color: var(--apagado); margin: 0; max-width: 34em; }
.abas-colecao { display: flex; gap: 28px; }
.abas-colecao a { text-decoration: none; color: var(--apagado); padding: 6px 0; border-bottom: 1px solid transparent; font-size: .95rem; }
.abas-colecao a:hover { color: var(--tinta); }
.abas-colecao a[aria-current] { color: var(--tinta); border-bottom-color: var(--dourado); }
@media (min-width: 760px) { .catalogo-topo { grid-template-columns: 1fr auto; align-items: end; } }

.filtros { position: relative; z-index: 10; background: var(--fundo); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding: 14px 0; border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); }
@media (min-width: 760px) { .filtros { position: sticky; top: 72px; } }
@media (min-width: 960px) { .filtros { top: 76px; } }
.filtro-cores { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filtro-todas { border: 1px solid var(--borda); background: none; border-radius: 99px; padding: 5px 14px; font-size: .85rem; cursor: pointer; }
.filtro-todas[aria-pressed="true"] { border-color: var(--tinta); }
.filtro-cor { width: 34px; height: 34px; padding: 4px; border-radius: 50%; border: 1px solid transparent; background: none; cursor: pointer; transition: border-color .2s; }
.filtro-cor:hover { border-color: var(--borda); }
.filtro-cor[aria-pressed="true"] { border-color: var(--tinta); }
.filtro-direita { display: flex; align-items: center; gap: 22px; }
.ordenar { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: .88rem; color: var(--apagado); }
.ordenar select { min-height: 38px; width: auto; padding: 4px 30px 4px 10px; border-color: transparent; background-color: transparent; cursor: pointer; color: var(--tinta); }
.interruptor { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; font-size: .88rem; color: var(--tinta); cursor: pointer; }
.interruptor input { appearance: none; width: 36px; height: 20px; border-radius: 99px; background: var(--borda); position: relative; cursor: pointer; transition: background .25s; margin: 0; }
.interruptor input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--curva); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.interruptor input:checked { background: var(--vinho); }
.interruptor input:checked::after { transform: translateX(16px); }
.contagem { font-size: .85rem; color: var(--apagado); margin: 18px 0 28px; }
.grade-produtos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; transition: opacity .15s; }
.grade-produtos.trocando { opacity: 0; }
@media (min-width: 900px) { .grade-produtos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 36px; } }
@media (max-width: 480px) { .peca-nome { font-size: 1.15rem; } }

.bolinha { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(74, 54, 48, .18); }

/* ------------------------------------------------------------ Camadas (painéis) */
.camada { position: fixed; inset: 0; z-index: 50; }
.fundo-escuro { position: absolute; inset: 0; border: 0; background: rgba(42, 30, 27, .42); cursor: pointer; animation: aparecer .35s ease both; }
.camada.saindo .fundo-escuro { animation: sumir .28s ease both; }
.fechar { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(251, 247, 245, .9); }

/* Detalhe da bolsa */
.painel-produto { position: absolute; inset: 0; background: var(--fundo); overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; animation: subirPainel .45s var(--curva) both; }
.camada.saindo .painel-produto { animation: descerPainel .3s ease-in both; }
.produto-info { padding: 28px var(--lado) 48px; max-width: 560px; }
.produto-colecao { color: var(--apagado); font-size: .88rem; margin-bottom: .6em; }
.produto-colecao a { color: inherit; }
.produto-info h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); margin-bottom: .3em; }
.preco { font-size: 1.15rem; font-weight: 500; color: var(--tinta); font-variant-numeric: tabular-nums; margin-bottom: .3em; }
.disponibilidade { font-size: .88rem; color: var(--apagado); }
.disponibilidade.baixo { color: var(--vinho); }
.disponibilidade.esgotado { color: var(--erro); }
.disponibilidade.ok { color: var(--ok); }
.escolha-cor { margin: 24px 0; }
.rotulo-cor { margin-bottom: 10px; font-size: .92rem; }
.amostras { display: flex; flex-wrap: wrap; gap: 8px; }
.amostra { width: 42px; height: 42px; border-radius: 50%; border: 1px solid transparent; padding: 4px; background: none; cursor: pointer; transition: border-color .2s; }
.amostra:hover { border-color: var(--borda); }
.amostra.ativa { border-color: var(--tinta); }
.acoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acoes-produto { margin-bottom: 32px; }
.acoes-produto .botao { flex: 1 1 220px; }
.descricao { color: var(--tinta-suave); max-width: 34em; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: .9rem; border-top: 1px solid var(--borda); padding-top: 16px; margin: 0; }
.specs dt { color: var(--apagado); }
.specs dd { margin: 0; }
@media (min-width: 900px) {
  .painel-produto { inset: 0 0 0 auto; width: min(1120px, 94vw); grid-template-columns: 1.1fr 1fr; align-content: stretch; box-shadow: var(--sombra); animation-name: entrarLado; }
  .camada.saindo .painel-produto { animation-name: sairLado; }
  .produto-galeria { position: sticky; top: 0; height: 100vh; padding: 24px 0 24px 24px; }
  .produto-info { padding: 72px 48px 48px; align-self: start; }
}

/* Visualizador de ângulos */
.vis { display: grid; gap: 12px; height: 100%; grid-template-rows: 1fr auto; }
.vis-palco { position: relative; overflow: hidden; background: var(--cartao); touch-action: pan-y; user-select: none; -webkit-user-select: none; aspect-ratio: 4 / 5; cursor: grab; }
@media (min-width: 900px) { .vis-palco { aspect-ratio: auto; min-height: 0; } }
.vis-palco.arrastando { cursor: grabbing; }
.vis-palco img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease, transform .35s var(--curva); pointer-events: none; -webkit-user-drag: none; }
.vis-palco img.ativa { opacity: 1; }
.vis-palco.giro img { transition: none; }
.vis-palco.zoom { cursor: zoom-out; }
.vis-palco.zoom img.ativa { transform: scale(2); transform-origin: var(--zx, 50%) var(--zy, 50%); transition: opacity .45s ease; }
.vis-seta { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(251, 247, 245, .85); }
.vis-seta.esq { left: 12px; } .vis-seta.dir { right: 12px; }
.vis-dica { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(251, 247, 245, .9); border-radius: 99px; padding: 5px 14px; font-size: .78rem; color: var(--tinta-suave); white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.vis-dica.some { opacity: 0; }
.vis-contador { position: absolute; left: 14px; top: 14px; font-size: .78rem; color: var(--tinta-suave); background: rgba(251, 247, 245, .85); padding: 2px 10px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.vis-miniaturas { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--lado) 2px; scrollbar-width: thin; }
@media (min-width: 900px) { .vis-miniaturas { padding: 0; } }
.vis-miniaturas button { flex: 0 0 60px; height: 75px; padding: 0; border: 1px solid transparent; background: var(--cartao); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.vis-miniaturas button:hover { opacity: 1; }
.vis-miniaturas button[aria-current="true"] { opacity: 1; border-color: var(--tinta); }
.vis-miniaturas img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .vis-seta { display: none; } }

/* Sacola */
.gaveta { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--fundo); display: flex; flex-direction: column; box-shadow: var(--sombra); animation: entrarLado .4s var(--curva) both; }
.camada.saindo .gaveta { animation: sairLado .28s ease-in both; }
.gaveta-topo { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--borda); }
.gaveta-topo h2 { margin: 0; font-size: 1.9rem; }
.gaveta-topo .fechar { position: static; }
.itens-carrinho { flex: 1; overflow: auto; padding: 8px 24px; }
.linha-carrinho { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--borda); animation: aparecer .4s ease; }
.linha-carrinho img { width: 76px; height: 95px; object-fit: cover; background: var(--cartao); }
.linha-carrinho h3 { font-size: 1.2rem; margin: 0; }
.linha-carrinho p { margin: 0 0 8px; }
.linha-controles { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.qtd { display: inline-flex; align-items: center; border: 1px solid var(--borda); border-radius: 999px; }
.qtd button { border: 0; background: none; width: 34px; height: 34px; cursor: pointer; font-size: 1.05rem; }
.qtd span { min-width: 22px; text-align: center; }
.remover { border: 0; background: none; font-size: 1.3rem; color: var(--apagado); cursor: pointer; align-self: start; padding: 0 4px; }
.carrinho-vazio { padding: 40px 24px; }
.gaveta-rodape { padding: 18px 24px 24px; border-top: 1px solid var(--borda); }
.total { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: 6px; font-variant-numeric: tabular-nums; }

/* Checkout */
.camada.centro { display: grid; place-items: center; padding: 16px; overflow: auto; }
.dialogo { position: relative; background: var(--fundo); width: min(720px, 100%); max-height: calc(100svh - 32px); overflow: auto; box-shadow: var(--sombra); padding-bottom: 24px; animation: surgir .4s var(--curva) both; }
.camada.saindo .dialogo { animation: sumir .25s ease both; }
.checkout-corpo { padding: 0 24px; }
.resumo { background: var(--cartao); padding: 16px 18px; margin-top: 20px; }
.resumo h3 { font-family: var(--fonte-texto); font-size: 1rem; font-weight: 600; }
.resumo-linha { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; padding: 3px 0; font-variant-numeric: tabular-nums; }
.resumo-linha.total { border-top: 1px solid var(--borda); margin-top: 6px; padding-top: 8px; font-size: 1rem; }
.aviso-pagamento { border-left: 2px solid var(--dourado); padding: 8px 14px; margin: 18px 0; font-size: .9rem; color: var(--tinta-suave); }

/* Confirmação do pedido: o laço */
.confirmacao { padding: 32px 24px 8px; text-align: center; display: grid; justify-items: center; }
.confirmacao:focus, #conteudo:focus { outline: none; }
.confirmacao h3 { font-size: 2.2rem; margin: 8px 0 .3em; }
.confirmacao p { max-width: 30em; color: var(--tinta-suave); }
.codigo-pedido { font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; color: var(--tinta) !important; border: 1px solid var(--borda); padding: 8px 18px; border-radius: 99px; }
.laco { width: 150px; height: auto; overflow: visible; }
.laco-fita { fill: none; stroke: var(--rosa); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 0; }
.laco-no { fill: var(--dourado); }
@media (prefers-reduced-motion: no-preference) {
  .confirmacao:not([hidden]) .laco-fita { animation: desenhar 1.4s var(--curva) both; }
  .confirmacao:not([hidden]) .laco-fita.pontas { animation-delay: .5s; }
  .confirmacao:not([hidden]) .laco-no { animation: no .5s var(--curva) both 1.1s; transform-origin: 80px 55px; transform-box: view-box; }
  .confirmacao:not([hidden]) h3, .confirmacao:not([hidden]) p, .confirmacao:not([hidden]) .botao { animation: subir .7s var(--curva) both 1s; }
}

/* ------------------------------------------------------------ Atendimento e rodapé */
.atendimento { background: var(--blush); }
.atendimento-dentro { max-width: var(--largura); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--lado); }
.atendimento h2 { max-width: 14em; }
.atendimento p { max-width: 34em; color: var(--tinta-suave); margin-bottom: 1.8em; }

.rodape { background: var(--tinta); color: #E9DAD5; font-size: .92rem; padding-bottom: 96px; }
.rodape-dentro { max-width: var(--largura); margin: 0 auto; padding: 64px var(--lado) 32px; display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.rodape-marca { max-width: 300px; }
.rodape-marca img { width: 88px; height: auto; margin-bottom: 16px; }
.rodape h2 { font-family: var(--fonte-texto); font-size: .9rem; font-weight: 600; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.rodape nav, .rodape-dentro > div:last-child { display: grid; align-content: start; gap: 8px; }
.rodape a { color: #E9DAD5; text-decoration: none; }
.rodape a:hover { color: #fff; text-decoration: underline; }
.rodape-final { max-width: var(--largura); margin: 0 auto; padding: 20px var(--lado) 0; border-top: 1px solid rgba(233, 218, 213, .18); font-size: .82rem; color: #C9B6B0; }

.whatsapp-flutuante { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #2F7D55; color: #fff; box-shadow: 0 10px 30px -10px rgba(47, 125, 85, .6); transition: transform .25s var(--curva); }
.whatsapp-flutuante:hover { color: #fff; transform: translateY(-2px); }
.whatsapp-flutuante .icone { width: 26px; height: 26px; stroke-width: 1.6; }

/* ------------------------------------------------------------ Transições entre páginas (View Transitions) */
::view-transition-old(root) { animation: sumir .22s ease both; }
::view-transition-new(root) { animation: aparecer .38s ease both .05s; }
::view-transition-group(foto-produto) { animation-duration: .45s; animation-timing-function: var(--curva); }

/* ------------------------------------------------------------ Animações */
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes sumir { from { opacity: 1; } to { opacity: 0; } }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes descer { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes surgir { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes revelar { from { clip-path: inset(100% 0 0 0); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes entrarLado { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sairLado { from { transform: none; opacity: 1; } to { transform: translateX(40px); opacity: 0; } }
@keyframes subirPainel { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes descerPainel { from { transform: none; opacity: 1; } to { transform: translateY(32px); opacity: 0; } }
@keyframes pulsar { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes desenhar { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes no { from { transform: scale(0); } 70% { transform: scale(1.25); } to { transform: scale(1); } }
@keyframes derivar { from { transform: translateX(-3%); } to { transform: translateX(4%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ------------------------------------------------------------ Checkout: frete, pagamento, avisos */
.opcoes-frete, .forma-pagamento { border: 1px solid var(--borda); border-radius: var(--raio); padding: 10px 14px 12px; margin: 0; display: grid; gap: 6px; }
.opcoes-frete legend, .forma-pagamento legend { font-size: .875rem; font-weight: 500; color: var(--tinta-suave); padding: 0 6px; }
.opcao-frete, .opcao-pagamento { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; font-weight: 400; color: var(--tinta); padding: 8px 4px; border-radius: var(--raio); cursor: pointer; }
.opcao-frete:hover, .opcao-pagamento:hover { background: var(--cartao); }
.opcao-frete input, .opcao-pagamento input { accent-color: var(--vinho); width: 18px; height: 18px; }
.opcao-prazo { grid-column: 2; font-size: .82rem; color: var(--apagado); }
.opcao-frete strong { grid-row: 1 / span 2; grid-column: 3; font-variant-numeric: tabular-nums; }
.opcao-pagamento { grid-template-columns: auto 1fr; }
.opcao-pagamento span { display: grid; font-size: .85rem; color: var(--apagado); }
.opcao-pagamento strong { color: var(--tinta); font-size: .95rem; font-weight: 500; }
.aviso-consulta { background: #FFF8EE; border-left: 2px solid var(--alerta); padding: 10px 14px; font-size: .9rem; margin: 0; }
.modo-teste { display: block; margin-top: 4px; color: var(--alerta); font-weight: 500; }
.resultado.erro { color: var(--erro); }
.a-preencher { background: #FFF1CC; color: #7A4B00; padding: 0 4px; border-radius: 3px; }
.retorno h1 { margin-bottom: .5em; }
.retorno .acoes { margin-top: 28px; }
.codigo-retorno:empty { display: none; }

/* Tablet em pé: a foto não pode esconder o preço e o botão de compra */
@media (min-width: 600px) and (max-width: 899px) {
  .vis-palco { aspect-ratio: auto; height: 58svh; }
  .produto-info { max-width: none; }
}
