/* Vitrine, carrinho e páginas da loja. As cores repetem as da página principal para as páginas avulsas. */
:root { --bg: #0b0b0c; --bg-2: #141416; --line: #2a2a2e; --text: #f2f2f0; --muted: #a3a3a6; --dim: #8b8b90; --red: #c8102e; --sand: #d8d4cc }

.nav-actions { display: flex; align-items: center; gap: 2px; margin-right: -10px }
button.btn { cursor: pointer; justify-content: center }
button.btn:not(.red):not(:hover) { background: none; color: var(--text) }
.nav-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; transition: color .15s }
.nav-icon:hover, .nav-icon[aria-expanded="true"] { color: var(--muted) }
.nav-icon:focus-visible { outline: 2px solid var(--red); outline-offset: -2px }
.site-search { border-top: 1px solid var(--line); background: var(--bg) }
.site-search .wrap { padding-top: 12px; padding-bottom: 12px }
.site-search input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--muted); background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px }
.search-results { max-height: calc(100vh - 220px); max-height: calc(100svh - 220px); overflow-y: auto }
.search-result { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px }
.search-result img { flex: none; width: 48px; height: 48px; padding: 3px; object-fit: contain; background: #fff }
.search-result span { flex: 1; min-width: 0 }
.search-result b { flex: none; font-weight: 600; white-space: nowrap }
.search-all { display: block; padding: 14px 0 4px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px }
.search-empty { padding: 14px 0 4px; color: var(--muted); font-size: 14px }
.search-empty a { text-decoration: underline; text-underline-offset: 3px }
.cart-open span { position: absolute; top: 5px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center }
.cart-open span[hidden] { display: none }
.also-ml { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px }
.also-ml:hover, .inline-link:hover { color: var(--text) }
.inline-link, .vitrine-note a { text-decoration: underline; text-underline-offset: 3px }
.vitrine-note { margin-top: 18px; color: var(--muted); font-size: 14px }

/* atalhos de categoria */
.cats-section { padding: 40px 0 }
.cats-title { margin-bottom: 18px; font-size: 16px }
.cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px }
.cat { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--bg-2); transition: border-color .15s }
.cat:hover { border-color: var(--muted) }
.cat img { width: 100%; height: auto; aspect-ratio: 1; padding: 6px; object-fit: contain; background: #fff }
.cat span { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 42px; padding: 6px 4px; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; overflow-wrap: anywhere }
.btn.see-all { display: flex; justify-content: center; width: 100%; max-width: 440px; height: 56px; margin: 28px auto 0; font-size: 12px; text-align: center }
.cats-all.see-all { grid-column: 1 / -1; margin-top: 8px }
@media (max-width: 860px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px } .cat span { padding: 6px 2px; font-size: 10px } .btn.see-all { max-width: none } .cats-section { padding: 28px 0 } .cats-title { margin-bottom: 14px } }

.brands.vitrine { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)) }
.vitrine-empty { color: var(--muted); font-size: 14px; grid-column: 1 / -1 }

.shop-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--bg-2); transition: border-color .15s }
.shop-card:hover { border-color: var(--muted) }
.shop-media { position: relative; display: block; aspect-ratio: 1; background: var(--photo-bg); overflow: hidden }
.shop-media img { width: 100%; height: 100%; object-fit: contain }
.shop-badge { position: absolute; top: 10px; left: 10px; padding: 4px 8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600 }
.shop-mosaic { display: grid; width: 100%; height: 100%; gap: 1px; background: var(--line); grid-template-columns: 1fr 1fr }
.shop-mosaic img { width: 100%; height: 100%; object-fit: contain; background: #fff; min-height: 0 }
.shop-mosaic.n2 { grid-template-rows: 1fr }
.shop-mosaic.n3 { grid-template-rows: 1fr 1fr }
.shop-mosaic.n3 img:first-child { grid-row: span 2 }
.shop-mosaic.n4 { grid-template-rows: 1fr 1fr }
.shop-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px }
.shop-body .kick { font-size: 11px; letter-spacing: .2em }
.shop-body h3 a:hover { color: var(--red) }
.shop-body p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: var(--muted); font-size: 14px; line-height: 1.5 }
.shop-body .kit-price small { color: var(--muted); font-family: 'Montserrat', sans-serif; font-size: 12px; letter-spacing: 0 }
.shop-out { opacity: .5; cursor: default; justify-content: center }
a.btn.buy { justify-content: center }
.shop-card .btn { height: 46px; padding: 0 8px; font-size: 10.5px; letter-spacing: .1em; line-height: 1.25; text-align: center }

.shop-page { padding-top: 28px; padding-bottom: 80px }
.shop-page > h1 { margin: 10px 0 24px }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--dim); font-size: 13px }
.crumbs a { color: var(--muted) }
.crumbs a:hover { color: var(--text) }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; background: none; border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer }
.chip:hover { color: var(--text); border-color: var(--muted) }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg) }
.shop-tools { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px }
.shop-count { color: var(--dim); font-size: 13px; margin-bottom: 14px }

.pdp { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 48px; align-items: start }
.gallery { position: sticky; top: 92px; display: grid; gap: 10px; min-width: 0; width: min(100%, max(320px, calc(100vh - 210px))); justify-self: center }
.gallery-main { display: flex; aspect-ratio: 1; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--photo-bg); scrollbar-width: none }
.gallery-main::-webkit-scrollbar { display: none }
.gallery-main:focus-visible { outline: 2px solid var(--red); outline-offset: 1px }
.gallery-main img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px }
.gallery-thumbs button { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid transparent; background: var(--photo-bg); cursor: pointer; opacity: .65 }
.gallery-thumbs button.on, .gallery-thumbs button:hover { border-color: var(--red); opacity: 1 }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain }
.pdp-buy { display: grid; gap: 14px; min-width: 0 }
.pdp-buy h1 { font-size: clamp(24px, 3vw, 34px) }
.pdp-desc { color: var(--muted) }
.pdp-price { font-family: 'Michroma', sans-serif; font-size: 26px; margin-top: 6px }
.pdp-pay { color: var(--muted); font-size: 14px; margin-top: -8px }
.price-was { display: block; color: var(--muted); font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0 }
.kit-save { color: var(--sand); font-size: 13px; font-weight: 700; line-height: 1.35 }
.pdp-save { font-size: 14px; margin-top: -8px }
.shop-body p.kit-save, .cart-line p.kit-save { color: var(--sand) }
.pdp-stock { color: var(--sand); font-size: 14px; font-weight: 600 }
.pdp-stock.low { color: #ff6b7f }
.pdp-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center }
.pdp-actions .qty { height: 50px; padding: 0 8px; border: 1px solid var(--line) }
.pdp-actions .qty button { border: 0 }
.pdp-notice { padding: 12px; border-top: 2px solid var(--red); background: var(--bg-3, #1b1b1e); color: var(--sand); font-size: 14px }
.pdp-ship { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line) }
.pdp-ship h2 { font-size: 13px }
.pdp-ship-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px }
.pdp-ship-row input { width: 100%; height: 50px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 16px }
.pdp-ship-results { display: grid; gap: 6px; color: var(--muted); font-size: 14px }
.pdp-trust { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line) }
.pdp-trust li { display: grid; gap: 2px; font-size: 13px; color: var(--muted); line-height: 1.4 }
.pdp-trust b { color: var(--text); font-weight: 600 }
.pdp-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 16px }
.pdp-block { padding: 40px 0 0; border: 0; display: block }
.pdp-block h2 { font-size: 18px; margin-bottom: 18px }
.pdp-highlights { list-style: none; display: grid; gap: 10px; color: var(--muted); font-size: 15px }
.pdp-highlights li { padding-left: 16px; position: relative }
.pdp-highlights li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--red) }
.pdp-specs { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); font-size: 14px }
.pdp-specs dt, .pdp-specs dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0 }
.pdp-specs dt { color: var(--muted); padding-right: 16px }
.pdp-pieces { list-style: none; display: grid; gap: 10px }
.pdp-pieces li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; font-size: 14px }
.pdp-pieces img { width: 72px; height: 72px; object-fit: contain; background: #fff }
.pdp-pieces a, .pdp-note a, .cart-suggest a, .cart-line h3 a { text-decoration: underline; text-underline-offset: 3px }
.pdp-pieces a { color: var(--muted); font-size: 13px }
.pdp-piece-links { display: flex; flex-wrap: wrap; gap: 10px }
.pdp-pieces b { display: block; font-weight: 600 }
.pdp-note { margin-top: 14px; color: var(--muted); font-size: 13px }
.pdp-faq { display: grid; max-width: 760px }
.pdp-faq details { border-bottom: 1px solid var(--line); padding: 14px 0 }
.pdp-faq summary { cursor: pointer; font-weight: 600; font-size: 15px }
.pdp-faq p { margin-top: 8px; color: var(--muted); font-size: 14px }
.pdp-bar { display: none }
.cart-suggest { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); font-size: 13px }
.cart-suggest img { width: 56px; height: 56px; object-fit: contain; background: #fff }
.cart-suggest small { display: block; color: var(--muted); font-size: 11px }
.cart-suggest a { display: block; font-weight: 600 }
.cart-suggest span { color: var(--muted) }
.cart-suggest .btn { height: 38px; padding: 0 10px; font-size: 11px; letter-spacing: .08em }

.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0 }
.field input, .field select { width: 100%; height: 44px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 0; color: var(--text); font: inherit; font-size: 16px }
.field input:focus, .field select:focus, .buy:focus-visible, .btn:focus-visible { outline: 2px solid var(--red); outline-offset: 1px }
.field small { color: var(--dim); font-size: 12px }
.buy { width: 100%; justify-content: center; cursor: pointer; font-family: inherit }
.buy[disabled] { opacity: .45; cursor: not-allowed; background: none; border-color: var(--line); color: var(--muted) }
.btn-text { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0 }
.btn-text:hover { color: var(--text) }

.cart-shade { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); z-index: 90 }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--bg-2); border-left: 1px solid var(--line); z-index: 100; display: flex; flex-direction: column }
.cart[hidden], .cart-shade[hidden] { display: none }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line) }
.cart-body { flex: 1; overflow-y: auto; padding: 20px; display: grid; gap: 16px; align-content: start }
.cart-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px }
.cart-line { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line) }
.cart-line p { color: var(--muted); font-size: 13px }
.cart-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px }
.cart-total { font-family: 'Michroma', sans-serif; font-size: 13px }
.qty { display: inline-flex; align-items: center; gap: 10px }
.qty button { width: 32px; height: 32px; background: none; border: 1px solid var(--line); color: var(--text); font-size: 16px; cursor: pointer }
.qty button[disabled] { opacity: .35; cursor: not-allowed }
.ship-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); font-size: 14px; cursor: pointer }
.ship-option input { accent-color: var(--red) }
.ship-note { display: block; margin-top: 2px; opacity: .7; font-size: 12px }
.ship-option span:last-child { margin-left: auto; white-space: nowrap }
.form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px }
.form-grid .field { grid-column: span 6 }
.form-grid .half { grid-column: span 3 }
.form-grid .third { grid-column: span 2 }
.form-grid .two-thirds { grid-column: span 4 }
.cart-error { color: #ff6b7f; font-size: 14px }
.test-banner { padding: 10px 12px; border: 1px solid var(--line); border-top: 2px solid var(--red); color: var(--sand); font-size: 13px }

.page { max-width: 640px; margin: 0 auto; padding: 48px 20px 80px; display: grid; gap: 20px; font-family: 'Montserrat', system-ui, sans-serif; color: var(--text); line-height: 1.6 }
.page-body { margin: 0; background: var(--bg); -webkit-font-smoothing: antialiased }
.page * { box-sizing: border-box }
.page h1, .page h2 { font-family: 'Archivo', sans-serif; font-weight: 800; font-stretch: 125%; text-transform: uppercase; line-height: 1.05; margin: 0 }
.page h1 { font-size: clamp(24px, 5vw, 34px) }
.page h2 { font-size: 16px; margin-top: 12px }
.page p, .page ul { margin: 0; color: var(--muted) }
.page ul { padding-left: 20px; display: grid; gap: 6px }
.page a { color: var(--text); text-decoration: underline; text-underline-offset: 3px }
.page .logo { height: 22px; width: auto; display: block }
.page .btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px; font-family: 'Michroma', sans-serif; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--text); background: none; color: var(--text); cursor: pointer; text-decoration: none }
.page .btn.red { background: var(--red); border-color: var(--red); color: #fff }
.order-card { padding: 20px; border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 10px }
.order-status { font-family: 'Michroma', sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sand) }

/* prateleiras da página inicial: tudo em uma linha no computador, de deslizar no celular */
.brands.vitrine:not(.shop-grid) { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) }
.brands.vitrine:not(.shop-grid) .shop-body { padding: 16px }
@media (max-width: 1060px) {
  .brands.vitrine:not(.shop-grid) { display: flex; gap: 12px; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gut); scrollbar-width: thin; scrollbar-color: var(--line) transparent }
  .brands.vitrine:not(.shop-grid) > * { flex: 0 0 min(68vw, 270px); scroll-snap-align: start }
}
@media (max-width: 1080px) { .gallery { top: 122px } }

@media (max-width: 860px) {
  .pdp, .pdp-info { grid-template-columns: minmax(0, 1fr); gap: 24px }
  .gallery { position: static; width: 100% }
  #loja-produto { padding-bottom: 72px }
  .pdp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--bg-2); border-top: 1px solid var(--line); font-family: 'Michroma', sans-serif; font-size: 13px }
  .pdp-bar .btn { height: 46px; padding: 0 12px; font-size: 11px; letter-spacing: .08em }
}
@media (max-width: 860px) {
  .chips { flex-wrap: nowrap; margin: 0 calc(var(--gut) * -1) 14px; padding: 0 var(--gut); overflow-x: auto; scrollbar-width: none }
  .chips::-webkit-scrollbar { display: none }
  .chip { flex: none; white-space: nowrap }
}
@media (max-width: 520px) {
  .shop-page { padding-top: 16px; padding-bottom: 48px }
  .crumbs { margin-bottom: 12px }
  .shop-tools { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px }
  .pdp-trust { grid-template-columns: 1fr }
  /* catálogo em duas colunas: nome, preço e botão bastam para escolher */
  .brands.vitrine.shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
  .shop-grid .shop-body { gap: 8px; padding: 10px }
  .shop-grid .shop-body .kick, .shop-grid .shop-body p { display: none }
  .shop-grid .shop-body h3 { font-size: 12px }
  .shop-grid .kit-price { font-size: 12px }
  .shop-grid .kit-price small { display: block; font-size: 11px }
  .brands.vitrine:not(.shop-grid) .shop-body { gap: 8px; padding: 12px }
  .brands.vitrine:not(.shop-grid) .shop-body p { -webkit-line-clamp: 2; font-size: 13px }
}

/* Fotos de produto: o branco das imagens vira cinza claro, para não brilhar ao lado do preto do site. */
:root { --photo-bg: #ececec }
.shop-media img, .shop-mosaic img, .cat img, .gallery-main img, .gallery-thumbs img, .pdp-pieces img, .kit-row img, .pdp-upsell img, .cart-suggest img, .search-result img { filter: brightness(.925) }

/* Monte seu kit */
.kit-builder { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); background: var(--bg-2) }
.kit-builder h2 { font-size: 16px }
.kit-builder > p { color: var(--muted); font-size: 13px; line-height: 1.45 }
.kit-builder ul { list-style: none; display: grid; gap: 12px; margin-top: 4px }
.kit-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px }
.kit-row img { width: 64px; height: 64px; object-fit: contain; background: #fff }
.kit-row.off img { opacity: .35 }
.kit-row b { display: block; font-weight: 600 }
.kit-row span { display: block; color: var(--muted); font-size: 13px }
.kit-row a { display: inline-block; margin-top: 4px; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px }

/* Upsell na página do produto */
.pdp-upsell { display: grid; grid-template-columns: 20px 48px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); cursor: pointer }
.pdp-upsell input { width: 18px; height: 18px; accent-color: var(--red) }
.pdp-upsell img { width: 48px; height: 48px; object-fit: contain; background: #fff }
.pdp-upsell b { display: block; color: var(--text); font-weight: 600 }
.kit-row-head { display: flex !important; justify-content: space-between; gap: 8px }
.kit-row-head .kit-row-price { display: inline; color: var(--text); font-size: 13px; white-space: nowrap }
.kit-row select { padding: 0 6px }
.kit-steps { list-style: none; display: flex; gap: 6px }
.kit-steps li { flex: 1; min-width: 0; padding: 6px 2px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.3; text-align: center }
.kit-steps b { display: block; color: var(--text); font-size: 14px }
.kit-steps li.on { border-color: var(--sand); background: var(--sand); color: var(--bg) }
.kit-steps li.on b { color: var(--bg) }

/* Oferta única no fim do carrinho */
.cart-bump { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--red) }
.cart-bump h4 { font-size: 14px }
.cart-bump > p { color: var(--muted); font-size: 12px; line-height: 1.4 }
.cart-bump .cart-suggest { padding: 8px 0; border: 0; border-top: 1px solid var(--line) }
.cart-bump .cart-suggest b { color: var(--text) }

