:root {
  --bg: #070807;
  --panel: #101210;
  --panel-2: #151815;
  --line: #2a2e2a;
  --text: #f7f7f4;
  --muted: #a9ada8;
  --gold: #dcae36;
  --gold-2: #f3c852;
  --ok: #42c77a;
  --danger: #ff7c72;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; min-width: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Inter, Arial, sans-serif; line-height: 1.55; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
/* height:auto é o par obrigatório de max-width:100% quando a <img> declara
   width/height no HTML. Sem ele, a imagem encolhe na largura mas mantém a
   altura do atributo e sai esticada. Regras mais específicas (.product-thumb
   img, .brand img, etc.) continuam vencendo esta. */
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.container { width: min(1220px, calc(100% - 32px)); margin-inline: auto; min-width: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.topbar { background: var(--gold); color: #090909; text-align: center; font-size: .75rem; font-weight: 800; letter-spacing: .08em; padding: 8px 12px; }
.site { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(7,8,7,.92); backdrop-filter: blur(16px); }
.nav { height: 78px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; min-width: 0; align-items: center; gap: 11px; margin-right: auto; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; flex: 0 0 auto; }
.brand b { display: block; font-family: Oswald, sans-serif; font-size: 1.12rem; letter-spacing: .08em; white-space: nowrap; }
.brand small { display: block; color: var(--gold); font-size: .6rem; letter-spacing: .16em; white-space: nowrap; }
.nav nav { display: flex; align-items: center; gap: 21px; }
.nav nav a { color: #d9ddd8; font-size: .88rem; transition: color .2s; }
.nav nav a:hover { color: var(--gold-2); }
.cart-link { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; font-size: .84rem; }
.cart-link span { margin-left: 3px; border-radius: 999px; background: var(--gold); color: #080808; font-weight: 800; padding: 2px 7px; }
.nav-toggle { display: none; border: 0; background: transparent; color: white; font-size: 1.45rem; }
.nav-overlay { display: none; position: fixed; inset: 0; z-index: 44; background: rgba(0,0,0,.72); }
.nav-overlay.open { display: block; }

.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 999px; padding: 12px 19px; font-weight: 800; transition: transform .2s, border-color .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--gold-2), #b98108); color: #070707; box-shadow: 0 12px 30px rgba(220,174,54,.18); }
.btn.ghost { border-color: #454a45; background: rgba(255,255,255,.025); color: white; }
.btn.full { width: 100%; }
.whatsapp-button { background: #1fbd63; color: #07130b; }
.eyebrow { color: var(--gold-2); font-size: .74rem; font-weight: 800; letter-spacing: .17em; }

.hero { position: relative; overflow: hidden; padding: 94px 0 78px; background: radial-gradient(circle at 80% 20%, rgba(220,174,54,.15), transparent 33%), linear-gradient(180deg,#090a09,#070807); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom,black,transparent); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: center; gap: 54px; }
.hero h1, .page-title h1 { margin: 16px 0 22px; font-family: Oswald, sans-serif; font-size: clamp(3.1rem,7vw,6.4rem); line-height: .98; letter-spacing: -.025em; text-transform: uppercase; }
.hero h1 em { color: var(--gold-2); font-style: normal; }
.hero p { max-width: 670px; color: #c3c7c2; font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-badges span { border: 1px solid var(--line); border-radius: 999px; background: #0f110f; color: #d4d8d3; padding: 7px 11px; font-size: .78rem; }
.hero-badges a { border: 1px solid var(--line); border-radius: 999px; background: #0f110f; color: #d4d8d3; padding: 7px 11px; font-size: .78rem; display: inline-flex; align-items: center; gap: 6px; transition: border-color .2s, color .2s; }
.hero-badges a:hover { border-color: var(--gold-2); color: var(--gold-2); }
.hero-visual { border: 1px solid rgba(220,174,54,.35); border-radius: 28px; background: linear-gradient(145deg,#171a17,#090a09); padding: 28px; box-shadow: var(--shadow); transform: rotate(1deg); }
.hero-visual img { border-radius: 18px; }
.hero-note { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; }
.hero-note b { font-family: Oswald, sans-serif; font-size: 1.3rem; }
.hero-note span { color: var(--muted); font-size: .8rem; }

.trust { border-block: 1px solid var(--line); background: #0c0e0c; }
.trust-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.trust article { min-width: 0; border-right: 1px solid var(--line); padding: 23px; }
.trust article:last-child { border-right: 0; }
.trust b { display: block; font-size: .88rem; }
.trust span { color: var(--muted); font-size: .75rem; }

.section { padding: 84px 0; }
.section.alt { border-block: 1px solid var(--line); background: #0d0f0d; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-head h2 { margin: 9px 0 0; font-family: Oswald,sans-serif; font-size: clamp(2.2rem,4.7vw,4.1rem); line-height: 1; text-transform: uppercase; }
.section-head p { max-width: 520px; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg,#151815,#0f110f); padding: 25px; box-shadow: 0 15px 40px rgba(0,0,0,.18); }
.card .num { color: var(--gold-2); font-family: Oswald,sans-serif; font-size: 2.35rem; }
.card h3 { margin: 8px 0; font-family: Oswald,sans-serif; font-size: 1.42rem; text-transform: uppercase; }
.card p, .card li { color: var(--muted); font-size: .88rem; }
.steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 13px; }
.step { position: relative; min-width: 0; padding: 23px 19px; }
.step i { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--gold); color: #080808; font-weight: 900; font-style: normal; }
.step b { display: block; margin: 15px 0 6px; }
.step span { color: var(--muted); font-size: .81rem; }
.compare { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.version-card { overflow: hidden; padding: 0; }
.version-card header { padding: 23px; background: linear-gradient(135deg,rgba(220,174,54,.22),transparent); }
.version-card h3 { margin: 0; font-family: Oswald,sans-serif; font-size: 1.95rem; text-transform: uppercase; }
.version-card ul { margin: 0; padding: 10px 27px 24px; }
.version-card li { margin: 9px 0; }
.version-card strong { color: var(--gold-2); }

.price-table { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; }
.price-row { display: grid; grid-template-columns: 1.1fr repeat(4,minmax(0,1fr)); border-bottom: 1px solid var(--line); }
.price-row:last-child { border: 0; }
.price-row > * { min-width: 0; border-right: 1px solid var(--line); padding: 19px; text-align: center; }
.price-row > *:last-child { border-right: 0; }
.price-row.head { background: #181b18; color: var(--gold-2); font-weight: 800; }
.price-table.simple .price-row { grid-template-columns: 1.2fr minmax(0,1fr); min-width: 0; }
.price-note { margin: 16px 0 0; font-size: .86rem; }
.size-note { margin-top: 22px; }
.size-note p { margin: 6px 0 0; color: var(--muted); }
.promo-hint { margin: 10px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.45; }
.summary-row.discount b { color: #8fd18a; }
.summary-row.discount[hidden] { display: none; }
.price-row strong { font-family: Oswald,sans-serif; font-size: 1.35rem; }
.saving { display: block; color: var(--ok); font-size: .7rem; }
.service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.service-grid article { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #111311; padding: 21px; }
.service-grid b, .service-grid strong { display: block; }
.service-grid strong { margin: 7px 0; color: var(--gold-2); font-family: Oswald,sans-serif; font-size: 1.55rem; }
.service-grid span { color: var(--muted); font-size: .8rem; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 15px; background: #101210; padding: 17px 20px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 12px 0 0; color: var(--muted); }
.cta { padding: 62px 0; background: linear-gradient(135deg,#d9aa2e,#9c6c02); color: #090909; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cta h2 { margin: 4px 0; font-family: Oswald,sans-serif; font-size: clamp(2.2rem,5vw,4.1rem); text-transform: uppercase; }
.cta .btn { background: #090909; color: white; }

.page-title { padding: 63px 0 41px; background: radial-gradient(circle at 80% 20%,rgba(220,174,54,.12),transparent 40%); }
.page-title h1 { margin-bottom: 12px; font-size: clamp(2.8rem,6vw,5.3rem); }
/* A contagem nunca pode quebrar no meio: "(1" numa linha e "item)" na outra
   era exatamente o que deixava o título feio no celular. */
.page-title h1 small { font-size: .32em; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.page-title p { margin: 0; color: var(--muted); }
.compact-title { padding: 50px 0 30px; }
.availability-strip { border-bottom: 1px solid var(--line); background: #101310; padding: 11px 0; color: var(--muted); font-size: .82rem; }
.availability-strip b { color: var(--text); }

.catalog-shell { padding: 30px 0 78px; }
.catalog-search { margin-bottom: 22px; }
.search-box { display: flex; min-width: 0; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: #101210; padding: 0 14px; transition: border-color .2s; }
.search-box:focus-within { border-color: var(--gold); }
.search-icon { flex: 0 0 auto; color: var(--gold-2); font-size: 1.3rem; }
.search-box input { min-width: 0; width: 100%; border: 0; background: transparent; color: white; padding: 15px 0; font-size: 1rem; outline: 0; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-clear { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; background: #090a09; color: var(--muted); padding: 7px 13px; font-size: .72rem; font-weight: 700; }
.search-clear:hover { border-color: #555d55; color: white; }
.customer-form label, .field label { display: block; color: #dfe2de; font-size: .76rem; font-weight: 700; }
.customer-form input, .customer-form select, .customer-form textarea, .field input, .field select { width: 100%; min-width: 0; margin: 5px 0 10px; border: 1px solid #323632; border-radius: 11px; background: #090a09; color: white; padding: 11px 12px; }
.customer-form select, .field select { appearance: auto; }
.catalog-results { min-width: 0; }
.catalog-top { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.catalog-pagination { padding: 28px 0 8px; }
.catalog-pagination[hidden] { display: none; }
.catalog-top label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .76rem; }
.catalog-top select { min-width: 160px; border: 1px solid var(--line); border-radius: 10px; background: #101210; color: white; padding: 9px 11px; }
.product-grid { display: grid; min-width: 0; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #101210; transition: transform .2s,border-color .2s; }
.product-card:hover { transform: translateY(-3px); border-color: #555d55; }
.product-photo { position: relative; display: block; width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #171a17; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.product-photo.image-error::after { content: "FAEL\A Foto em atualização"; white-space: pre; display: grid; width: 100%; height: 100%; place-content: center; color: var(--gold-2); background: linear-gradient(135deg,#202420,#0d0f0d); font-family: Oswald,sans-serif; text-align: center; }
.product-card:hover .product-photo img { transform: scale(1.025); }
.new { position: absolute; top: 10px; left: 10px; border-radius: 999px; background: rgba(8,8,8,.86); color: var(--gold-2); padding: 5px 8px; font-size: .64rem; font-weight: 800; }
.product-info { min-width: 0; padding: 14px; }
.product-meta-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 7px; }
.product-meta-row small { min-width: 0; overflow: hidden; color: var(--muted); font-size: .67rem; white-space: nowrap; text-overflow: ellipsis; }
.version-badge { flex: 0 0 auto; border: 1px solid rgba(220,174,54,.35); border-radius: 999px; background: rgba(220,174,54,.08); color: var(--gold-2); padding: 3px 7px; font-size: .62rem; font-weight: 800; }
.product-info h2 { display: -webkit-box; min-height: 3.65em; overflow: hidden; margin: 8px 0 11px; font-size: .92rem; line-height: 1.22; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-bottom { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.product-bottom strong { font-family: Oswald,sans-serif; font-size: 1.25rem; white-space: nowrap; }
.details-link { color: var(--gold-2); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.photo-placeholder { display: grid; width: 100%; height: 100%; place-content: center; background: linear-gradient(135deg,#202420,#0d0f0d); text-align: center; }
.photo-placeholder b { color: var(--gold-2); font-family: Oswald,sans-serif; font-size: clamp(1.3rem,4vw,2rem); }
.photo-placeholder span { color: var(--muted); font-size: .62rem; }
.empty { border: 1px dashed #3d433d; border-radius: 18px; background: #0d0f0d; padding: 36px; text-align: center; }
.empty p { color: var(--muted); }
.catalog-empty { grid-column: 1/-1; }
.empty-destaque { margin-top: 14px; color: var(--gold-2) !important; font-weight: 700; }
.catalog-empty .btn { margin-top: 16px; }

/* Aviso de catálogo parcial: aparece mesmo com resultados na tela, porque o
   cliente pode ter achado camisas sem achar A camisa dele. */
.catalog-parcial { display: block; margin-top: 26px; border: 1px solid var(--gold); border-radius: 18px; background: radial-gradient(circle at 15% 0,rgba(220,174,54,.1),transparent 60%),#101210; padding: 20px; text-align: center; }
.catalog-parcial b { display: block; color: white; font-size: 1.02rem; }
.catalog-parcial .linha { display: block; margin-top: 6px; color: var(--muted); font-size: .87rem; line-height: 1.5; }
.catalog-parcial .btn { margin-top: 14px; }

.product-breadcrumb { display: flex; min-width: 0; gap: 9px; overflow: hidden; padding-top: 25px; color: var(--muted); font-size: .77rem; white-space: nowrap; }
.product-breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; }
.product-breadcrumb a { color: var(--gold-2); }
.product-page-grid { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr); gap: 45px; padding-top: 26px; padding-bottom: 68px; }
.product-gallery-page, .product-detail-panel { min-width: 0; }
.product-gallery-page { position: sticky; top: 104px; align-self: start; }
.main-product-photo { display: block; width: 100%; aspect-ratio: 1/1; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #151815; padding: 0; }
.main-product-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.main-product-photo.zoomed { cursor: zoom-out; }
.main-product-photo.zoomed img { transform: scale(1.65); }
.product-thumbs { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.product-thumb { min-width: 0; aspect-ratio: 1/1; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #111; padding: 0; }
.product-thumb.active { border-color: var(--gold-2); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.zoom-hint { display: block; margin-top: 8px; color: var(--muted); text-align: center; }
.product-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); }
.product-detail-panel h1 { margin: 12px 0 13px; font-family: Oswald,sans-serif; font-size: clamp(1.8rem,2.9vw,3.05rem); line-height: 1.09; text-transform: none; overflow-wrap: anywhere; text-wrap: balance; }
.product-price { display: block; color: var(--gold-2); font-family: Oswald,sans-serif; font-size: 2.15rem; }
.bundle-hint { margin: 4px 0 18px; color: var(--muted); font-size: .78rem; }
.product-description { color: #c6cac5; }
.field { min-width: 0; margin-top: 16px; }
.field-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-title a { color: var(--gold-2); font-size: .72rem; font-weight: 700; }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.size-btn { min-width: 44px; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #111311; color: white; font-weight: 800; }
.size-btn.selected { border-color: var(--gold-2); background: var(--gold); color: #080808; }
.personalization-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.stock-card { margin: 19px 0 13px; border: 1px solid rgba(66,199,122,.3); border-radius: 14px; background: rgba(66,199,122,.07); padding: 15px; }
.stock-card b { display: block; color: #b7efcb; }
.stock-card p { margin: 4px 0; color: #d6e8dc; font-size: .82rem; }
.stock-card span { color: var(--muted); font-size: .75rem; }
.config-warning { margin: 12px 0; border: 1px solid rgba(243,200,82,.35); border-radius: 12px; background: rgba(243,200,82,.08); color: #ffe7a0; padding: 11px 12px; font-size: .74rem; }
.product-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 13px; }
.product-specs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; overflow: hidden; margin: 22px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.product-specs div { min-width: 0; background: #101210; padding: 13px; }
.product-specs dt { color: var(--muted); font-size: .68rem; }
.product-specs dd { margin: 3px 0 0; font-size: .82rem; font-weight: 700; overflow-wrap: anywhere; }
.related-section { border-top: 1px solid var(--line); background: #0c0e0c; }
.related-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.related-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #101210; }
.related-photo { display: block; aspect-ratio: 1/1; background: #151815; }
.related-photo img { width: 100%; height: 100%; object-fit: cover; }
.related-card > div { padding: 13px; }
.related-card small { color: var(--muted); font-size: .68rem; }
.related-card h3 { display: -webkit-box; min-height: 2.65em; overflow: hidden; margin: 6px 0 9px; font-size: .84rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.related-card strong { font-family: Oswald,sans-serif; color: var(--gold-2); }
.product-not-found { margin-block: 70px; }

.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 370px; align-items: start; gap: 26px; padding: 31px 0 75px; }
.cart-items { display: grid; min-width: 0; gap: 13px; }
.cart-item { display: grid; min-width: 0; grid-template-columns: 106px minmax(0,1fr) auto auto; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 17px; background: #101210; padding: 13px; }
.cart-thumb { width: 106px; aspect-ratio: 1/1; overflow: hidden; border-radius: 12px; background: #171a17; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--gold-2); font-family: Oswald,sans-serif; }
.cart-info { min-width: 0; }
.cart-info h2 { margin: 0 0 5px; font-size: .96rem; line-height: 1.3; }
.cart-info p { margin: 0 0 4px; color: var(--muted); font-size: .76rem; text-transform: capitalize; }
.cart-info small { color: #d0d4cf; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #090a09; color: white; }
.item-price { min-width: 96px; text-align: right; }
.item-price strong { display: block; font-family: Oswald,sans-serif; font-size: 1.18rem; }
.item-price button { border: 0; background: none; color: #e98e85; font-size: .7rem; }
.cart-summary { position: sticky; top: 98px; min-width: 0; border: 1px solid var(--line); border-radius: 19px; background: #101210; padding: 20px; }
.cart-summary h2 { margin: 0 0 14px; font-family: Oswald,sans-serif; font-size: 1.65rem; text-transform: uppercase; }
.summary-row, .summary-total { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 13px; border-bottom: 1px solid var(--line); padding: 9px 0; font-size: .82rem; }
.summary-row b { max-width: 54%; text-align: right; }
.summary-total { border-bottom: 0; padding: 13px 0 16px; }
.summary-total strong { color: var(--gold-2); font-family: Oswald,sans-serif; font-size: 1.55rem; }
.customer-form { border-top: 1px solid var(--line); padding-top: 14px; }
.customer-form h3 { margin: 0 0 11px; font-size: .92rem; }
.customer-form textarea { min-height: 82px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.form-error { min-height: 1.2em; margin: 8px 0; color: var(--danger); font-size: .73rem; }
.checkout-button { min-height: 51px; }
.cart-summary > small { display: block; margin-top: 10px; color: var(--muted); text-align: center; }
.cart-empty { grid-column: 1/-1; }

.measure-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.measure-tab { border: 1px solid var(--line); border-radius: 999px; background: #101210; color: white; padding: 10px 16px; font-weight: 700; }
.measure-tab.active { border-color: var(--gold); background: var(--gold); color: #080808; }
.measure-panel { display: none; }
.measure-panel.active { display: block; }
.measure-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.measure-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #101210; }
.measure-table th, .measure-table td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px; text-align: center; }
.measure-table tr:last-child > * { border-bottom: 0; }
.measure-table tr > *:last-child { border-right: 0; }
.measure-table thead th { background: #181b18; color: var(--gold-2); }
.measure-table thead th.indisponivel { color: var(--muted); font-weight: 500; }
.measure-table thead th.indisponivel small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; }
.calculator { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); gap: 25px; }
.calc-form { border: 1px solid var(--line); border-radius: 18px; background: #101210; padding: 20px; }
.calc-form label { display: block; margin-top: 9px; font-size: .76rem; font-weight: 700; }
.calc-form input, .calc-form select { width: 100%; margin-top: 5px; border: 1px solid #323632; border-radius: 10px; background: #090a09; color: white; padding: 11px; }
.calc-form .btn { margin-top: 16px; }
.calc-result { display: grid; place-content: center; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(circle,rgba(220,174,54,.13),transparent 68%),#101210; padding: 28px; text-align: center; }
.calc-result span { color: var(--muted); }
.calc-result strong { color: var(--gold-2); font-family: Oswald,sans-serif; font-size: 5rem; line-height: 1.1; }
.calc-result p { color: var(--muted); }
.calc-result p.indisponivel strong { color: var(--danger); font-size: 1rem; font-family: inherit; }

/* Unidade de medida ao lado do rótulo do campo: o cliente nunca precisa
   adivinhar se o número é em metro, centímetro ou quilo. */
.calc-form label small { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.calc-form .ajuda { margin: 8px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.calc-form #calcMaisPreciso { margin-top: 16px; }
.calc-form #calcCamposPrecisos { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 4px; }

/* O resultado deixou de ser uma frase só: cada linha é um dado (confiança,
   base da recomendação, disponibilidade). */
.calc-result p strong { display: block; margin-bottom: 8px; color: white; font-family: inherit; font-size: 1.05rem; line-height: 1.4; }
.calc-result p .linha { display: block; margin-top: 6px; font-size: .82rem; line-height: 1.5; }

/* Segundo passo do pedido: a conversa já abriu, a foto é opcional. */
.whatsapp-status:empty { display: none; }
.whatsapp-status { margin: 12px 0 0; border: 1px solid var(--line); border-radius: 14px; background: #101210; padding: 14px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.whatsapp-status b { display: block; color: white; font-size: .95rem; }
.whatsapp-status .linha { display: block; margin-top: 5px; }
.whatsapp-status .btn { margin-top: 11px; }
#checkoutStatus .linha { display: block; margin-top: 5px; }
#checkoutStatus .btn { margin-top: 11px; }
.calc-result p .linha.alerta { color: var(--danger); font-weight: 700; }
.calc-result strong.sem-tamanho { color: var(--danger); }
.measure-table thead th small.rotulo-oficial { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; text-transform: none; letter-spacing: 0; }

footer { border-top: 1px solid var(--line); background: #080908; padding: 37px 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr) auto; align-items: center; gap: 25px; }
.footer-grid p { color: var(--muted); font-size: .82rem; }
.footer-grid > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; font-size: .8rem; }
.copyright { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: .72rem; }
.measure-float, .mobile-cta { position: fixed; z-index: 40; right: 18px; border-radius: 999px; box-shadow: 0 12px 35px rgba(0,0,0,.35); font-size: .75rem; font-weight: 800; }
.measure-float { bottom: 18px; border: 1px solid var(--line); background: #151815; color: var(--gold-2); padding: 11px 14px; }
.mobile-cta { display: none; bottom: 17px; background: #1fbd63; color: #07130b; padding: 12px 16px; }

@media (max-width: 1120px) {
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .container { width: min(100% - 26px, 760px); }
  .nav { height: 70px; gap: 12px; }
  .brand img { width: 40px; height: 40px; }
  .brand small { display: none; }
  .nav-toggle { display: block; order: 4; }
  .nav nav { position: fixed; top: 0; right: 0; z-index: 45; display: flex; width: min(330px,86vw); height: 100dvh; flex-direction: column; align-items: stretch; gap: 0; transform: translateX(105%); border-left: 1px solid var(--line); background: #0d0f0d; padding: 88px 22px 25px; transition: transform .24s; }
  .nav nav.open { transform: translateX(0); }
  .nav nav a { border-bottom: 1px solid var(--line); padding: 14px 4px; font-size: 1rem; }
  .hero-grid, .product-page-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 67px; }
  .hero-visual { max-width: 620px; transform: none; }
  .trust-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trust article:nth-child(2) { border-right: 0; }
  .trust article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-3, .compare { grid-template-columns: 1fr; }
  .catalog-shell { padding-top: 19px; }
  .search-box input { padding: 13px 0; }
  .catalog-top { margin-top: 0; }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product-gallery-page { position: static; }
  .main-product-photo { max-height: 680px; }
  .related-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-grid > div:last-child { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 22px); }
  .topbar { font-size: .63rem; letter-spacing: .045em; padding: 7px 8px; }
  .nav { height: 64px; }
  .brand b { font-size: 1rem; }
  .brand img { width: 37px; height: 37px; }
  .cart-link { padding: 8px 10px; font-size: .73rem; }
  .cart-link span { padding: 1px 6px; }
  .hero { padding: 55px 0 52px; }
  .hero h1 { font-size: clamp(2.75rem,14vw,4.2rem); }
  .hero-actions .btn { width: 100%; }
  .hero-visual { padding: 16px; }
  .hero-note { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section { padding: 62px 0; }
  .section-head { display: block; }
  .section-head p { margin-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .price-table { overflow-x: auto; }
  .price-row { min-width: 860px; }
  .service-grid { grid-template-columns: 1fr; }
  .cta .container { align-items: flex-start; flex-direction: column; }
  .page-title, .compact-title { padding: 40px 0 25px; }
  .page-title h1 { font-size: clamp(2.55rem,14vw,4rem); }
  /* No celular o título já ocupa duas linhas; a contagem ganha a sua própria,
     em vez de ficar espremida ao lado da última palavra. */
  .page-title h1 small { display: block; margin-top: 8px; font-size: .42em; }
  .availability-strip { font-size: .72rem; }
  .catalog-shell { gap: 0; padding-bottom: 58px; }
  .catalog-top { gap: 10px; }
  .catalog-top label { font-size: 0; }
  .catalog-top select { min-width: 132px; padding: 8px; font-size: .72rem; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .product-card { border-radius: 13px; }
  .product-info { padding: 10px; }
  .product-meta-row small { font-size: .58rem; }
  .version-badge { padding: 2px 5px; font-size: .54rem; }
  .product-info h2 { min-height: 3.55em; margin: 7px 0 9px; font-size: .78rem; line-height: 1.18; }
  .product-bottom { align-items: flex-end; flex-direction: column; gap: 2px; }
  .product-bottom strong { align-self: flex-start; font-size: 1.14rem; }
  .details-link { align-self: stretch; border-radius: 8px; background: rgba(220,174,54,.09); padding: 7px 6px; text-align: center; font-size: .64rem; }
  .new { top: 7px; left: 7px; padding: 4px 6px; font-size: .56rem; }
  .product-breadcrumb { padding-top: 18px; }
  .product-page-grid { gap: 24px; padding-top: 17px; padding-bottom: 48px; }
  .main-product-photo { border-radius: 15px; }
  .product-thumbs { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .product-detail-panel h1 { font-size: clamp(1.75rem,8vw,2.6rem); }
  .product-actions { grid-template-columns: 1fr; }
  .personalization-grid, .product-specs { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .related-card > div { padding: 10px; }
  .cart-layout { gap: 18px; padding-top: 20px; }
  .cart-item { grid-template-columns: 78px minmax(0,1fr); gap: 11px; padding: 10px; }
  .cart-thumb { width: 78px; }
  .qty { grid-column: 2; justify-self: start; }
  .item-price { grid-column: 2; display: flex; min-width: 0; align-items: center; justify-content: space-between; width: 100%; text-align: left; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .cart-summary { padding: 16px; }
  .calculator { grid-template-columns: 1fr; }
  .measure-float { bottom: 72px; right: 12px; }
  .mobile-cta { display: block; right: 12px; }
}

@media (max-width: 430px) {
  .container { width: calc(100% - 18px); }
  .brand div { max-width: 140px; overflow: hidden; }
  .cart-link { padding: 7px 8px; }
  .search-clear { padding: 6px 10px; font-size: .66rem; }
  .product-grid { gap: 8px; }
  .product-info { padding: 9px 8px; }
  .product-meta-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .product-info h2 { min-height: 3.5em; font-size: .74rem; }
  .product-bottom strong { font-size: 1.07rem; }
  .details-link { padding-block: 6px; }
  .related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 340px) {
  .brand div { display: none; }
  .product-info h2 { min-height: auto; }
  .product-bottom { align-items: center; flex-direction: row; }
  .details-link { align-self: auto; min-width: 98px; }
  .related-grid { grid-template-columns: 1fr; }
}

.checkout-button:disabled { cursor: wait; opacity: .72; }
.checkout-status { min-height: 1.4em; margin: 10px 0 4px; color: #b7efcb; font-size: .76rem; line-height: 1.35; }

/* ==========================================================================
   ETAPA 5 — paginação, retorno ao catálogo, frete e selos de estoque
   ========================================================================== */

/* Paginação do catálogo. Rola dentro do próprio bloco quando a tela é estreita,
   para nunca empurrar a largura da página. */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.page-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text);
  padding: 8px 12px; font-size: .87rem; font-weight: 700; transition: border-color .2s, background .2s, color .2s; }
.page-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-2); }
.page-btn.current { background: linear-gradient(135deg, var(--gold-2), #b98108); border-color: transparent; color: #070707; }
.page-btn:disabled { opacity: .38; cursor: not-allowed; }
.page-btn.control { padding-inline: 14px; }
.page-gap { min-width: 24px; text-align: center; color: var(--muted); }
.pagination-status { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: .8rem; }

/* Card de onde o cliente saiu, destacado por instantes ao voltar do produto. */
.product-card.origem-destacada { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--radius); }

/* Barra superior da página de produto: voltar + trilha. */
.product-topnav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 20px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; color: var(--gold-2); font-size: .84rem; font-weight: 700; }
.back-link:hover { border-color: var(--gold); }
.product-topnav .product-breadcrumb { padding-top: 0; }
.product-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 4px; }
.product-links a { color: var(--gold-2); font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }

/* Selo e explicação de confirmação de estoque. */
.stock-seal { font-size: .92rem; letter-spacing: .01em; }
.stock-card small { display: block; margin-top: 8px; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.stock-card span { display: block; margin-top: 4px; }
.stock-card.compact { margin: 16px 0; padding: 13px; }
.section-note { margin-top: 20px; font-size: .82rem; }

/* Simulação de frete no carrinho. */
.shipping-box { margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); padding: 15px; }
.shipping-box h3 { margin: 0 0 10px; font-size: .96rem; }
.shipping-form label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .78rem; }
.shipping-input-row { display: flex; flex-wrap: wrap; gap: 8px; }
.shipping-input-row input { flex: 1 1 130px; min-width: 0; min-height: 46px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg); color: var(--text); padding: 10px 13px; }
.shipping-input-row .btn { flex: 0 0 auto; }
.shipping-result { margin-top: 12px; font-size: .84rem; }
.shipping-result p { margin: 4px 0; color: #d6e8dc; }
.shipping-title { display: block; margin-bottom: 2px; }
.shipping-title.shipping-itauna { color: #b7efcb; }
.shipping-title.shipping-invalido, .shipping-title.shipping-erro { color: var(--danger); }
.shipping-title.shipping-nao_configurado { color: var(--gold-2); }
.shipping-loading { color: var(--muted); }
.shipping-options { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.shipping-options li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  border-top: 1px solid var(--line); padding-top: 8px; }
.shipping-options strong { margin-left: auto; color: var(--gold-2); }
.shipping-options small { flex-basis: 100%; color: var(--muted); font-size: .74rem; }

/* Ações finais do carrinho. */
.cart-actions { display: grid; gap: 8px; margin-top: 14px; }
.btn.link-danger { min-height: 44px; border: 1px solid transparent; background: transparent;
  color: var(--danger); font-size: .84rem; font-weight: 700; }
.btn.link-danger:hover { border-color: var(--danger); }

@media (max-width: 640px) {
  .pagination { gap: 5px; }
  .page-btn { min-width: 42px; padding: 8px 10px; font-size: .82rem; }
  /* Em telas estreitas os controles ganham a linha inteira e os números ficam
     centralizados abaixo, sem nunca estourar a largura da tela. */
  .page-btn.control { flex: 1 1 100%; }
  .product-topnav { padding-top: 16px; }
  .shipping-input-row .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   ETAPA 6 — entrega, frete grátis e segunda opção
   ========================================================================== */

/* Aviso de progresso rumo ao frete grátis. Informativo, sem alarde. */
.shipping-progress:empty { display: none; }
.shipping-progress { margin: 10px 0 0; border-left: 3px solid var(--gold); padding: 6px 0 6px 11px;
  color: var(--gold-2); font-size: .82rem; font-weight: 700; }

.shipping-title.shipping-gratis, .shipping-title.shipping-itauna { color: #b7efcb; }
.shipping-title.shipping-indisponivel { color: var(--gold-2); }
.shipping-value { color: var(--text) !important; font-size: 1.02rem; font-weight: 800; }
.shipping-result small { display: block; margin-top: 4px; color: var(--muted); font-size: .74rem; }
.shipping-box.hidden { display: none !important; }

/* Segunda opção: recolhida por padrão, para não alongar o checkout. */
.alternativa-box { margin: 14px 0; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel-2); padding: 12px 15px; }
.alternativa-box summary { cursor: pointer; font-size: .86rem; font-weight: 700; }
.alternativa-box summary::marker { color: var(--gold); }
.alternativa-box p { margin: 9px 0; font-size: .78rem; }
.alternativa-box label { display: block; margin-top: 8px; color: var(--muted); font-size: .78rem; }
.alternativa-box input { width: 100%; min-height: 46px; margin-top: 5px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg); color: var(--text); padding: 10px 13px; }

@media (max-width: 640px) {
  .alternativa-box input { font-size: 16px; } /* evita zoom automático no iOS */
  .shipping-input-row input { font-size: 16px; }
}

/* ==========================================================================
   ETAPA 7 — alternativa de produto e estados da entrega
   ========================================================================== */

/* Aviso quando uma alternativa salva saiu do catálogo. */
.alt-aviso { margin: 0 auto 14px; border: 1px solid rgba(220,174,54,.4); border-radius: 12px;
  background: rgba(220,174,54,.08); padding: 11px 15px; color: var(--gold-2); font-size: .84rem; }
.alt-aviso[hidden] { display: none; }

/* Bloco da alternativa dentro do item do carrinho. */
.alt-item { grid-column: 1 / -1; margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 11px; }
.alt-item small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.alt-item.tem-alternativa b { display: block; color: var(--gold-2); font-size: .8rem; }
.alt-item.tem-alternativa p { margin: 3px 0 5px; font-size: .84rem; }
.alt-add { min-height: 40px; border: 1px dashed #4a504a; border-radius: 10px; background: transparent;
  color: var(--gold-2); padding: 7px 13px; font-size: .82rem; font-weight: 700; }
.alt-add:hover { border-color: var(--gold); border-style: solid; }
.alt-acoes { display: flex; gap: 14px; margin-top: 7px; }
.alt-link { min-height: 40px; border: 0; background: transparent; color: var(--gold-2);
  padding: 0; font-size: .8rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.alt-link.alt-remover { color: var(--danger); }

/* Seletor de alternativa. */
.alt-dialogo { width: min(760px, calc(100% - 24px)); max-height: 88vh; border: 1px solid var(--line);
  border-radius: 18px; background: var(--panel); color: var(--text); padding: 0; }
.alt-dialogo::backdrop { background: rgba(0,0,0,.72); }
.alt-conteudo { display: flex; flex-direction: column; gap: 11px; max-height: 88vh; overflow: auto; padding: 22px; }
.alt-conteudo h2 { margin: 0; font-family: Oswald, sans-serif; font-size: 1.5rem; text-transform: uppercase; }
.alt-conteudo > p { margin: 0; font-size: .84rem; }
.alt-busca { display: block; color: var(--muted); font-size: .78rem; }
.alt-busca input { width: 100%; min-height: 46px; margin-top: 5px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg); color: var(--text); padding: 10px 13px; }
.alt-resultados { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px;
  max-height: 320px; overflow-y: auto; padding: 3px; }
.alt-card { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel-2); padding: 8px; color: var(--text); text-align: left; }
.alt-card img { width: 100%; height: auto; border-radius: 8px; object-fit: cover; }
.alt-card span { font-size: .76rem; line-height: 1.35; }
.alt-card small { color: var(--muted); font-size: .68rem; }
.alt-card:hover { border-color: var(--gold); }
.alt-card.selecionada { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(220,174,54,.28); }
.alt-detalhes { border-top: 1px solid var(--line); padding-top: 11px; }
.alt-detalhes p { margin: 0 0 8px; font-size: .86rem; }
.alt-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.alt-campos label { display: block; color: var(--muted); font-size: .78rem; }
.alt-campos select, .alt-campos input { width: 100%; min-height: 46px; margin-top: 5px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); padding: 10px 13px; }
.alt-nota { margin: 0; font-size: .74rem; }
.alt-botoes { display: flex; justify-content: flex-end; gap: 10px; }

/* Botão "Tentar novamente" no resultado da entrega. */
#tentarFreteNovamente { margin-top: 9px; min-height: 44px; font-size: .82rem; }

@media (max-width: 640px) {
  .alt-conteudo { padding: 17px; }
  .alt-resultados { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); max-height: 260px; }
  .alt-campos { grid-template-columns: 1fr; }
  .alt-botoes { flex-direction: column-reverse; }
  .alt-botoes .btn { width: 100%; }
  .alt-busca input, .alt-campos select, .alt-campos input { font-size: 16px; }
}
