/* Crazy Horse Camisetas — Vitrine: início/catálogo, produto e carrinho (agente VITRINE).
   Base visual em /css/store.css. Aqui ficam só os estilos específicos destas páginas. */

/* ---------------------------------------------------------------------------
   Comuns
   --------------------------------------------------------------------------- */
.section { padding: clamp(44px, 7vw, 76px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head .h2 { margin: 10px 0 8px; }
.section-head .lead { margin: 0; font-size: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--gold); padding: 8px 0; }
.text-link:hover { border-color: var(--ink); }
.on-dark .text-link:hover { border-color: #fff; }
.row-center { justify-content: center; }
/* Em store.css, `.page { padding: 40px 0 70px }` vem depois de `.wrap` e zera o respiro lateral
   de elementos "wrap page". Devolve a margem lateral nas páginas desta área. */
.wrap.pdp-page, .wrap.cart-page { padding-left: var(--gutter); padding-right: var(--gutter); }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.btn .ico, .btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Selos extras (complementam .badge de store.css) */
.badge-soft { background: rgba(255, 255, 255, .94); color: var(--ink); border: 1px solid var(--line); }
.badge-dark { background: var(--ink); color: #fff; }

/* Preço "de" riscado */
.compare { color: var(--muted); font-weight: 500; font-size: .78em; margin-right: 6px; text-decoration-thickness: 1px; }

/* Cartão de produto: ajustes finos sobre store.css */
.product-card .flags { pointer-events: none; }
.product-card h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .meta { margin: 0; }
.product-card .card-avail { margin-top: 2px; } /* "Sob encomenda" em texto (antes era selo sobre a foto) */
.product-card .price { margin-bottom: 0; }
.product-card:focus-within .thumb { box-shadow: 0 0 0 3px var(--gold-deep); }
.sk-card .thumb { background: none; }
.sk-line { height: 13px; margin-top: 12px; border-radius: 4px; }
.sk-line.short { width: 55%; margin-top: 8px; }
.sk-line.price { width: 35%; height: 18px; }

/* Faixas horizontais de produtos (Promoções / Destaques) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0; list-style: none; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .rail { grid-auto-columns: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 760px) { .rail { grid-auto-columns: 44%; gap: 12px; } }

/* Quantidade (produto e carrinho) */
.qty { display: inline-flex; align-items: stretch; border: 1px solid #b9b4a8; border-radius: var(--radius); background: #fff; overflow: hidden; }
.qty button { width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 20px; line-height: 1; font-weight: 600; }
.qty button:hover:not(:disabled) { background: var(--paper-2); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty input { width: 52px; border: 0; border-inline: 1px solid var(--line); text-align: center; font-weight: 700; font-size: 16px; padding: 0; background: #fff; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus-visible { outline-offset: -3px; }

/* Cálculo de frete (produto e carrinho) */
.ship-row { display: flex; gap: 8px; }
.ship-row input { flex: 1; min-width: 0; min-height: 46px; padding: 11px 14px; border: 1px solid #8f8a7e; border-radius: var(--radius); background: #fff; font-size: 16px; letter-spacing: .5px; }
.ship-row input[aria-invalid="true"] { border-color: var(--error); }
.ship-row .btn { flex-shrink: 0; }
.ship-help { display: inline-block; margin-top: 2px; padding: 4px 0; font-size: 13px; color: var(--muted); } /* área de toque ~28 px */
.ship-result:empty { display: none; }
.ship-result { margin-top: 14px; }
.ship-result .alert { margin: 0; }
.ship-options { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ship-options li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ship-name { display: flex; flex-direction: column; min-width: 0; }
.ship-name small { color: var(--muted); font-size: 12px; }
.ship-price { white-space: nowrap; font-weight: 700; }
.ship-foot { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.ship-loading { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------------------
   Início: hero, faixa, promoções, catálogo, retrô, como comprar, sobre/FAQ
   --------------------------------------------------------------------------- */
.hero { background: var(--ink); color: var(--paper); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 24px; min-height: 560px; }
.hero-copy { padding: 56px 0; min-width: 0; }
.hero .display { font-size: clamp(46px, 7.4vw, 108px); margin: 24px 0 22px; }
.hero .display em { font-style: normal; color: var(--gold); }
.hero-lead { color: #c1bcb1; max-width: 400px; font-size: 15px; line-height: 1.7; margin: 0 0 26px; }
.hero-cta { font-size: 15px; padding: 16px 24px; gap: 28px; }
.trust { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 14px 28px; font-size: 13px; font-weight: 500; color: #e2ddd0; }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.hero-art { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 0 36px; min-width: 0; }
.hero-art picture { display: contents; } /* o <img> continua sendo o item do flex, como antes do <picture> */
.hero-logo { display: block; width: 100%; max-width: 500px; height: auto; mix-blend-mode: lighten; } /* some o quadrado preto: ver .brand-logo em store.css */
.art-caption { font-size: 10px; letter-spacing: 2px; color: var(--gold); margin: 4px 0 0; text-align: center; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding: 38px 0 34px; }
  .hero .display { font-size: clamp(44px, 13vw, 76px); margin: 18px 0 18px; }
  /* Celular/tablet em pé: sem o escudo grande (ele já está no cabeçalho), para as camisas aparecerem antes.
     O <picture> do index.html entrega uma imagem vazia nessa largura, então o escudo nem é baixado. */
  .hero-art { display: none; }
}
@media (max-width: 400px) { .trust { grid-template-columns: 1fr 1fr; gap: 12px 14px; font-size: 12px; } .trust li { align-items: flex-start; } }

/* Faixa (ticker) */
.ticker { background: var(--gold); color: var(--ink); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ch-ticker 40s linear infinite; }
/* Pausa: mouse em cima (só onde existe mouse; no celular o "hover" fica grudado depois do toque), foco do teclado
   e .is-paused (tocar/clicar ou Enter/Espaço alternam, ver home.js). */
@media (hover: hover) { .ticker:hover .ticker-track { animation-play-state: paused; } }
.ticker:focus-visible .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.ticker-group { display: flex; align-items: center; gap: 26px; padding: 15px 13px; margin: 0; list-style: none; font: 700 18px/1 var(--font-display); letter-spacing: 1.5px; white-space: nowrap; }
.ticker-group li:nth-child(even) { font-size: 13px; }
@keyframes ch-ticker { to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { width: auto; justify-content: center; }
  .ticker-group { flex-wrap: wrap; justify-content: center; white-space: normal; gap: 8px 18px; }
  .ticker-group[aria-hidden="true"] { display: none; }
}

/* Promoções e destaques */
.promo-section { background: var(--paper-2); }
.promo-section + .promo-section { padding-top: 0; }

/* Catálogo */
#colecao, #medidas, #como-comprar, #sobre, #retro, #promocoes, .pdp-page { scroll-margin-top: 90px; }
#colecao-title:focus { outline: none; }
.search-box { position: relative; width: min(100%, 340px); margin: 0; }
.search-box input { width: 100%; min-height: 46px; padding: 11px 16px 11px 42px; border: 1px solid #8f8a7e; border-radius: 999px; background: #fff; font-size: 16px; }
.search-box input:focus { border-color: var(--gold-deep); }
.search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; padding: 4px 0; }
.chip { flex-shrink: 0; border: 1px solid #c5c1b7; background: transparent; padding: 9px 18px; min-height: 44px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 22px; }
.results { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; min-height: 44px; }
.results-count { margin: 0; font-size: 14px; color: var(--muted); }
.results-count strong { color: var(--ink); }
.results .btn-link { min-height: 44px; padding: 0 4px; }
.catalog-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.control { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; min-width: 160px; }
.control select { min-height: 44px; padding: 9px 12px; border: 1px solid #8f8a7e; border-radius: var(--radius); background: #fff; font-size: 16px; } /* 16 px: sem zoom automático no iPhone */
.catalog-status:empty { display: none; }
.catalog-status .empty-state { padding: 40px 16px; }
.empty-state .h3 { color: var(--ink); }
/* Celular: deixa ~76 px livres à direita para o botão flutuante do WhatsApp não cobrir o fim do texto. */
@media (max-width: 760px) { .catalog-status .empty-state .btn-whatsapp { max-width: calc(100% - 76px); text-align: center; } }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid #c5c1b7; background: transparent; border-radius: var(--radius); font-weight: 600; font-size: 14px; }
.pagination button:hover:not(:disabled) { border-color: var(--ink); }
.pagination button[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }
.pg-gap { min-width: 18px; text-align: center; color: var(--muted); }
@media (max-width: 760px) {
  .search-box { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  /* Degradê na borda direita: mostra que dá para arrastar e ver mais filtros; some no fim (.at-end, home.js). */
  .chips:not(.at-end) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
  .chip { scroll-snap-align: start; }
  .catalog-controls { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .control { min-width: 0; }
}
@media (max-width: 480px) {
  .pagination { gap: 4px; }
  .pagination button { min-width: 40px; padding: 0 8px; }
  .pg-label { display: none; }
}

/* Bloco retrô */
.retro-wrap { padding-bottom: clamp(44px, 7vw, 76px); }
.retro { display: grid; grid-template-columns: 1fr 1fr; background: #e5dac1; border-radius: 12px; overflow: hidden; min-height: 330px; }
.retro-visual { background: repeating-linear-gradient(90deg, #17130d 0 55px, #292114 55px 110px); display: grid; place-items: center; overflow: hidden; min-height: 180px; }
/* Tamanho que cabe inteiro na coluna de 761 a 1920 px (antes, clamp(84px, 11vw, 160px) cortava o "L."). */
.retro-visual span { font: 900 clamp(56px, 6.5vw, 110px)/.85 var(--font-display); color: #e2c68c; transform: rotate(-10deg); opacity: .85; white-space: nowrap; }
.retro-copy { padding: clamp(28px, 4vw, 48px); align-self: center; }
.retro-copy .h2 { font-size: clamp(34px, 4.4vw, 53px); margin: 12px 0 12px; }
.retro-copy p { color: #5d574b; line-height: 1.7; margin: 0 0 12px; }
@media (max-width: 760px) {
  .retro { grid-template-columns: 1fr; }
  .retro-visual span { font-size: clamp(52px, 16vw, 110px); }
}

/* Como comprar */
.how { background: var(--ink); color: #fff; }
.how .lead { color: #c9c3b6; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { background: #141210; border: 1px solid var(--line-dark); border-radius: 10px; padding: 22px 20px; }
.step-num { display: block; font: 900 46px/1 var(--font-display); color: var(--gold); margin-bottom: 12px; }
.step h3 { font: 700 21px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .3px; margin: 0 0 8px; }
.step p { margin: 0; color: #c9c3b6; font-size: 14px; line-height: 1.6; }
.how-foot { margin: 22px 0 0; color: #a9a293; font-size: 13px; }
.how-foot a { color: var(--gold); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Sobre + FAQ */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 6vw, 70px); align-items: start; }
.about-copy p { color: var(--muted); line-height: 1.8; max-width: 540px; }
.about-copy .row { margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; font-weight: 600; font-size: 15px; padding: 15px 36px 15px 0; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--gold-deep); }
.faq details[open] > summary::after { content: '−'; }
.faq .faq-body { padding: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.faq .faq-body p { margin: 0 0 8px; }
.faq .faq-body a { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Página de produto
   --------------------------------------------------------------------------- */
.pdp-page { padding-top: 22px; }
.breadcrumbs .sep { margin: 0 6px; }
.breadcrumbs [aria-current] { color: var(--ink); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery { position: sticky; top: 96px; min-width: 0; }
.gallery-stage { position: relative; }
.gallery-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; border-radius: 10px; background: #fff; scrollbar-width: none; } /* branco, como o quadro dos cards */
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 1080 / 1280; }
.gallery-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-counter { position: absolute; right: 12px; bottom: 12px; background: rgba(8, 8, 8, .72); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; pointer-events: none; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
.thumbs button { flex: 0 0 68px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #fff; overflow: hidden; }
.thumbs button[aria-pressed="true"] { border-color: var(--gold-deep); }
.thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pdp-info { min-width: 0; }
.pdp-title { font: 800 clamp(28px, 3.4vw, 42px)/1 var(--font-display); text-transform: uppercase; letter-spacing: -.2px; margin: 10px 0 14px; overflow-wrap: anywhere; }
.pdp-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
/* Preço + "Compartilhar" logo ao lado (à esquerda, longe do botão flutuante do WhatsApp no celular). */
.pdp-price-row { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.pdp-price { font-size: 30px; font-weight: 700; margin: 0; line-height: 1.2; }
.pdp-share { min-height: 44px; padding: 8px 12px; font-size: 13px; gap: 8px; }
.pdp-share svg { width: 18px; height: 18px; }
.pdp-price.is-muted { font-size: 20px; color: var(--muted); }
.pdp-price-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.pdp-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; margin: 18px 0 0; }
.pdp-meta dt { color: var(--muted); }
.pdp-meta dd { margin: 0; font-weight: 600; }
.buy-box { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.size-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.size-head .field-label { margin: 0; }
.size-head .btn-link { min-height: 32px; }
.size-chosen { font-weight: 700; }
.size-picker.has-error button:not(:disabled) { border-color: var(--error); }
/* Tamanho sem linha na tabela de medidas desta versão (produto.js, sizeNoteHTML) */
.size-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--warn); }
.size-note:empty { display: none; }
.size-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.size-note a { color: inherit; font-weight: 700; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.qty-row .field-label { margin: 0; }
.pdp-avail { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 16px 0 0; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pdp-avail svg { width: 20px; height: 20px; color: var(--gold-deep); flex-shrink: 0; margin-top: 1px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
@media (max-width: 420px) { .buy-actions { grid-template-columns: 1fr; } }
.pdp-unavailable { margin-top: 20px; }
.pdp-unavailable p { margin: 0 0 12px; }
.pdp-facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: 14px; }
.pdp-facts li { display: flex; gap: 10px; align-items: flex-start; }
.pdp-facts svg { width: 20px; height: 20px; color: var(--gold-deep); flex-shrink: 0; margin-top: 1px; }
.pdp-facts a { font-weight: 600; }
.ship-box { margin-top: 22px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.pdp-more { border-bottom: 1px solid var(--line); margin-top: 22px; }
.pdp-more:first-of-type { border-top: 1px solid var(--line); }
.pdp-more + .pdp-more { margin-top: 0; }
.pdp-more summary { cursor: pointer; list-style: none; position: relative; font-weight: 700; font-size: 15px; padding: 15px 36px 15px 0; min-height: 44px; }
.pdp-more summary::-webkit-details-marker { display: none; }
.pdp-more summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--gold-deep); }
.pdp-more[open] > summary::after { content: '−'; }
.pdp-more-body { padding-bottom: 18px; font-size: 14px; }
.pdp-more-body p { margin: 0 0 10px; }
/* Uma tabela por linha em qualquer largura: na coluna de ~240 px do PC, duas lado a lado escondiam a coluna "Comprimento". */
.size-tables { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 12px; }
.size-table { font-size: 13px; }
.size-table caption { text-align: left; font-weight: 700; padding: 0 0 6px; font-size: 13px; }
.size-table th, .size-table td { padding: 7px 8px; }
.size-table tr.is-selected td, .size-table tr.is-selected th { background: var(--warn-bg); font-weight: 700; }
.pdp-desc { margin-top: 26px; }
.pdp-desc p { color: #3d3a33; line-height: 1.75; margin: 0 0 10px; max-width: 62ch; }
.pdp-help { margin-top: 20px; }
.pdp-empty { padding: 60px 16px; }
.pdp-empty p { max-width: 460px; margin: 0 auto 20px; }
.related { padding-top: 10px; }
.pdp-skeleton .sk-gallery { aspect-ratio: 1080 / 1280; border-radius: 10px; }
@media (max-width: 860px) {
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
  .thumbs button { flex-basis: 56px; height: 66px; }
  /* Celular: caminho numa linha só (o nome completo está logo abaixo, no título) e foto quadrada, um pouco
     mais baixa, para nome, preço e tamanhos aparecerem mais cedo. A foto continua inteira (contain). */
  .pdp-page .breadcrumbs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 5px 0; margin: -5px 0 9px; }
  .gallery-slide, .pdp-skeleton .sk-gallery { aspect-ratio: 1 / 1; max-height: 62vh; }
}
.pdp-skeleton .sk-title { height: 38px; margin: 18px 0 12px; width: 90%; }
.pdp-skeleton .sk-block { height: 110px; margin-top: 24px; }

/* Aviso "adicionado ao carrinho" com link (sobre .toast de store.css) */
.added-toast { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; width: max-content; visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
.added-toast.show { pointer-events: auto; visibility: visible; transition-delay: 0s; }
.added-toast a { color: var(--gold); font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) { .added-toast { bottom: 88px; } }

/* ---------------------------------------------------------------------------
   Carrinho
   --------------------------------------------------------------------------- */
.cart-page .h1 { margin-bottom: 22px; }
.cart-page .h1:focus { outline: none; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 32px; align-items: start; }
.cart-summary { position: sticky; top: 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.cart-summary .card { padding: 20px; }
.cart-summary .h3 { margin-bottom: 14px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1fr); } .cart-summary { position: static; } }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line.has-problem { background: linear-gradient(90deg, var(--error-bg), transparent 70%); padding-left: 10px; border-left: 3px solid var(--error); }
.cart-thumb { display: block; width: 96px; aspect-ratio: 1080 / 1280; background: #fff; border-radius: 6px; overflow: hidden; }
.cart-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.has-problem .cart-thumb img { opacity: .55; }
.cart-info { min-width: 0; }
.cart-name { font: 600 15px/1.35 var(--font-body); margin: 0 0 4px; overflow-wrap: anywhere; }
.cart-name a { text-decoration: none; }
.cart-name a:hover { text-decoration: underline; }
.cart-meta, .cart-unit { margin: 0; font-size: 13px; color: var(--muted); }
.cart-meta strong { color: var(--ink); }
.line-problem { margin: 8px 0 0; font-size: 13px; color: var(--error); }
.cart-controls { display: flex; align-items: center; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.remove-btn { min-height: 44px; color: var(--muted); }
.remove-btn:hover { color: var(--error); }
.line-total { margin: 0; font-weight: 700; font-size: 16px; white-space: nowrap; text-align: right; }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
  .cart-thumb { width: 78px; }
  .line-total { grid-column: 2; text-align: left; }
}
.cart-continue { margin: 22px 0 0; }
.problem-alert p { margin: 0 0 10px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 15px; }
.sum-row strong { font-size: 20px; }
.sum-note { margin: 4px 0 14px; font-size: 13px; color: var(--muted); }
.cart-summary .alert { margin: 0 0 14px; font-size: 13px; line-height: 1.55; }
.checkout-why { margin: 8px 0 0; font-size: 13px; color: var(--error); }
.checkout-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.prep-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.cart-empty { padding: 50px 16px 30px; }
.cart-empty svg { width: 64px; height: 64px; color: var(--gold-deep); }
.cart-empty .h2 { color: var(--ink); margin: 14px 0 8px; }
.cart-empty p { margin: 0 auto 22px; max-width: 420px; }
.sk-cart-line { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sk-cart-line .skeleton:first-child { aspect-ratio: 1080 / 1280; }
