/* ==========================================================================
   RT PEÇAS — Loja virtual (vitrine pública, produto e carrinho).
   Mesmos tokens do site institucional (site.css): vermelho do logo #891319,
   Inter para texto, Barlow Condensed para títulos, ícones Phosphor.
   ========================================================================== */

:root {
    --rt-red:       #891319;
    --rt-red-600:   #a8171f;
    --rt-red-700:   #6e0f14;
    --rt-red-soft:  rgba(137, 19, 25, .08);
    --rt-red-ring:  rgba(137, 19, 25, .28);
    --ink:          #0f1115;
    --text:         #1f2430;
    --muted:        #6b7280;
    --bg:           #f5f6f8;
    --surface:      #ffffff;
    --surface-2:    #f9fafb;
    --border:       #e6e8ee;
    --ok:           #15803d;
    --ok-soft:      #ecfdf5;
    --wa:           #25d366;
    --radius:       14px;
    --radius-lg:    20px;
    --shadow-sm:    0 1px 2px rgba(16, 24, 40, .06);
    --shadow:       0 1px 2px rgba(16, 24, 40, .06), 0 12px 28px -10px rgba(16, 24, 40, .14);
    --shadow-lg:    0 2px 4px rgba(16, 24, 40, .06), 0 28px 56px -16px rgba(16, 24, 40, .24);
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-display: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
    --container:    1240px;
    /* aliases usados pelo carrinho */
    --line: var(--border);
    --red:  var(--rt-red);
    --primary: var(--rt-red);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.55; letter-spacing: -.01em; overflow-x: hidden; }
body.side-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); text-transform: uppercase; line-height: 1.05; color: var(--ink); }
p { margin: 0 0 1rem; }
button, input, select { font: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.hide-sm, .hide-md { display: inline-flex; }

/* ---- Botões ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .66rem 1.05rem; border-radius: 12px; font-weight: 700; font-size: .9rem; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; line-height: 1.2; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.btn i { font-size: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-lg { padding: .9rem 1.3rem; font-size: .98rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--rt-red); color: #fff; box-shadow: 0 10px 24px -10px var(--rt-red-ring); }
.btn-primary:hover { background: var(--rt-red-600); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--rt-red); color: var(--rt-red); }
.btn-outline { background: transparent; color: var(--rt-red); border-color: var(--rt-red); }
.btn-outline:hover { background: var(--rt-red); color: #fff; }
.btn-whats { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(37,211,102,.5); }
.btn-whats:hover { background: #1eb857; color: #fff; }

/* ---- Faixa superior -------------------------------------------------------- */
.topbar { background: var(--ink); color: #c7cbd6; font-size: .8rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.1rem; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: .35rem; color: #c7cbd6; white-space: nowrap; }
.topbar a:hover { color: #fff; }
.topbar i { font-size: 1rem; color: #e5a1a5; }

/* ---- Cabeçalho ------------------------------------------------------------- */
.store-header { position: sticky; top: 0; z-index: 1030; background: var(--surface); border-bottom: 1px solid var(--border); transition: box-shadow .2s ease; }
.store-header.scrolled { box-shadow: 0 6px 24px -12px rgba(16,24,40,.25); }
.store-header .container { display: flex; align-items: center; gap: 1.2rem; min-height: 78px; padding-top: .6rem; padding-bottom: .6rem; }
.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand img { height: 50px; width: auto; }
.searchbar { flex: 1; display: flex; align-items: center; gap: .4rem; max-width: 680px; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 14px; padding: .3rem .3rem .3rem .9rem; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.searchbar:focus-within { background: #fff; border-color: var(--rt-red); box-shadow: 0 0 0 4px var(--rt-red-soft); }
.searchbar > i { color: var(--muted); font-size: 1.2rem; }
.searchbar input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 40px; font-size: .95rem; color: var(--ink); }
.searchbar input::placeholder { color: #9aa0ad; }
.searchbar .btn { border-radius: 10px; padding: .55rem 1rem; }
.header-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.cart-btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); font-size: 1.45rem; transition: all .18s ease; }
.cart-btn:hover { border-color: var(--rt-red); color: var(--rt-red); }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; background: var(--rt-red); color: #fff; font-size: .68rem; font-weight: 800; border-radius: 999px; display: grid; place-items: center; border: 2px solid #fff; }

/* ---- Faixa de veículos ----------------------------------------------------- */
.vehiclebar { background: var(--surface); border-bottom: 1px solid var(--border); }
.vehiclebar .container { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .25rem; min-height: 48px; padding-top: .45rem; padding-bottom: .45rem; }
.vehiclebar .lbl { display: inline-flex; align-items: center; gap: .35rem; color: var(--rt-red); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-right: .4rem; white-space: nowrap; }
.vehiclebar .lbl i { font-size: 1.05rem; }
.vehiclebar a { color: var(--text); font-size: .76rem; font-weight: 700; padding: .34rem .66rem; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; transition: all .16s ease; }
.vehiclebar a:hover { background: var(--bg); border-color: var(--border); }
.vehiclebar a.active { background: var(--ink); color: #fff; }

/* ---- Estrutura geral ------------------------------------------------------- */
.store-main { padding: 1.2rem 0 3.5rem; min-height: 60vh; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; font-size: .82rem; color: var(--muted); margin-bottom: .9rem; }
.crumbs a:hover { color: var(--rt-red); }
.crumbs i { font-size: .8rem; color: #b5bac6; }
.crumbs span { color: var(--text); font-weight: 600; max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.catalog-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.catalog-head .count { color: var(--muted); font-size: .9rem; margin: .25rem 0 0; }
.catalog-tools { display: flex; align-items: center; gap: .6rem; }
.filtros-btn { display: none; }
.sort-form { display: flex; align-items: center; gap: .4rem; background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 0 .5rem 0 .8rem; height: 44px; }
.sort-form label { color: var(--muted); display: inline-flex; font-size: 1.1rem; }
.sort-form select { border: 0; background: transparent; height: 100%; font-weight: 600; font-size: .88rem; color: var(--ink); padding-right: .3rem; outline: 0; cursor: pointer; }

.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; background: var(--rt-red-soft); color: var(--rt-red-700); font-size: .8rem; font-weight: 600; border: 1px solid transparent; transition: all .16s ease; }
.chip strong { font-weight: 800; }
.chip i { font-size: .9rem; }
.chip:hover { background: var(--rt-red); color: #fff; }
.chip-clear { background: var(--surface); color: var(--muted); border-color: var(--border); }
.chip-clear:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- Catálogo: lateral + grade -------------------------------------------- */
.catalog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.catalog-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 1rem; }
.side-head { display: none; }
.side-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1rem .6rem; }
.side-group h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: .04em; padding-bottom: .6rem; margin-bottom: .3rem; border-bottom: 1px solid var(--border); }
.facets { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; }
.facets a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .48rem .5rem; border-radius: 9px; font-size: .88rem; font-weight: 500; color: var(--text); transition: background .15s ease, color .15s ease; }
.facets a:hover { background: var(--bg); color: var(--rt-red); }
.facets a.active { background: var(--rt-red-soft); color: var(--rt-red); font-weight: 700; }
.facets small { font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--bg); padding: .12rem .45rem; border-radius: 999px; }
.facets a.active small { background: #fff; color: var(--rt-red); }
.side-help { display: flex; gap: .8rem; padding: 1rem; border-radius: var(--radius-lg); background: var(--ink); color: #c7cbd6; font-size: .84rem; }
.side-help > i { font-size: 1.8rem; color: var(--wa); flex: 0 0 auto; }
.side-help strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; margin-bottom: .15rem; }
.side-help span { display: block; line-height: 1.45; }
.side-help a { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; color: #fff; font-weight: 700; }
.side-help a:hover { color: var(--wa); }
.side-backdrop { display: none; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.pcard .thumb { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: contain; padding: .9rem; transition: transform .3s ease; }
.pcard:hover .thumb img { transform: scale(1.05); }
.pcard .noimg, .gallery .noimg { color: #cbd0da; font-size: 2.8rem; }
.tag { position: absolute; left: .7rem; top: .7rem; display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .6rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tag.ok { background: var(--ok); }
.tag i { font-size: .9rem; }
.pcard .body { display: flex; flex-direction: column; gap: .28rem; padding: .95rem 1rem 1.05rem; border-top: 1px solid var(--border); flex: 1; }
.pcard .cat { font-size: .68rem; font-weight: 800; color: var(--rt-red); text-transform: uppercase; letter-spacing: .08em; }
.pcard .name { font-weight: 700; color: var(--ink); font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard .name:hover { color: var(--rt-red); }
.pcard .meta { display: flex; flex-wrap: wrap; gap: .25rem .6rem; font-size: .76rem; color: var(--muted); }
.pcard .price { margin-top: auto; padding-top: .55rem; font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--ink); text-transform: uppercase; line-height: 1; }
.pcard .price small { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.pcard .buy { margin-top: .7rem; }

.empty-store { text-align: center; padding: 3.5rem 1rem; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--muted); }
.empty-store > i { font-size: 3.2rem; display: block; margin: 0 auto .6rem; color: #cbd0da; }
.empty-store h1, .empty-store h2 { font-size: 1.7rem; margin-bottom: .4rem; }
.empty-actions { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.empty-page { padding: 5rem 1rem; }

/* ---- Paginação ------------------------------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
.pages { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.page, .page-btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-width: 40px; height: 40px; padding: 0 .7rem; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 700; font-size: .88rem; color: var(--text); transition: all .16s ease; }
.page:hover, .page-btn:hover { border-color: var(--rt-red); color: var(--rt-red); }
.page.current { background: var(--rt-red); border-color: var(--rt-red); color: #fff; }
.page-btn.disabled { opacity: .4; pointer-events: none; }
.dots { color: var(--muted); padding: 0 .2rem; }

/* ---- Página do produto ----------------------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; margin-bottom: 1.6rem; }
.gallery { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; position: sticky; top: 92px; }
.gallery img { width: 100%; height: 100%; object-fit: contain; padding: 1.6rem; }
.gallery .tag { left: 1rem; top: 1rem; font-size: .74rem; padding: .35rem .75rem; }
.info .cat { display: inline-block; font-size: .72rem; font-weight: 800; color: var(--rt-red); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem; }
.info h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .6rem; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .86rem; margin-bottom: .7rem; }
.pdp-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.pdp-meta i { color: var(--rt-red); font-size: 1rem; }
.pdp-makers { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.pdp-makers .chip { background: var(--surface); color: var(--ink); border-color: var(--border); }
.pdp-makers .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.price-box .val { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1; text-transform: uppercase; }
.price-box .val small { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; margin-bottom: .25rem; }
.price-box .val-consulta { font-size: 2rem; color: var(--rt-red); }
.stock { display: inline-flex; align-items: center; gap: .35rem; margin-top: .7rem; padding: .35rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.stock i { font-size: 1rem; }
.stock.ok { background: var(--ok-soft); color: var(--ok); }
.stock.out { background: var(--rt-red-soft); color: var(--rt-red-700); }
.buy-row { display: flex; gap: .7rem; align-items: flex-end; margin-top: 1rem; flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 auto; }
.qtd-box { display: flex; flex-direction: column; gap: .3rem; }
.qtd-box label { font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.qtd-box input { width: 84px; height: 48px; padding: 0 .5rem; border: 1.5px solid var(--border); border-radius: 12px; font-size: 1rem; font-weight: 700; text-align: center; background: var(--surface-2); }
.qtd-box input:focus { outline: 0; border-color: var(--rt-red); box-shadow: 0 0 0 4px var(--rt-red-soft); background: #fff; }
.trust { list-style: none; margin: 1rem 0 0; padding: .9rem 0 0; border-top: 1px solid var(--border); display: grid; gap: .4rem; font-size: .84rem; color: var(--text); }
.trust li { display: flex; align-items: center; gap: .5rem; }
.trust i { color: var(--rt-red); font-size: 1.1rem; }
.pdp-aplicacao { margin-top: 1.2rem; background: var(--rt-red-soft); border-radius: var(--radius); padding: 1rem 1.1rem; }
.pdp-aplicacao h2 { font-size: 1.05rem; display: flex; align-items: center; gap: .4rem; color: var(--rt-red-700); margin-bottom: .35rem; }
.pdp-aplicacao p { margin: 0; color: var(--text); font-size: .92rem; line-height: 1.6; }
.pdp-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; margin-bottom: 2rem; }
.pdp-details h2 { font-size: 1.4rem; margin-bottom: .7rem; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--border); font-size: .88rem; vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.pdp-desc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem; }
.pdp-desc p { margin: 0; line-height: 1.7; }
.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head-row h2 { font-size: 1.8rem; }
.related { margin-top: 1rem; }

/* ---- Rodapé ---------------------------------------------------------------- */
.store-footer { background: var(--ink); color: #c7cbd6; padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { width: 170px; height: auto; margin-bottom: .9rem; }
.footer-brand p { font-size: .9rem; color: #9aa0ad; max-width: 40ch; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: .9rem; letter-spacing: .06em; }
.footer-col a, .footer-col span { display: flex; align-items: center; gap: .45rem; color: #9aa0ad; font-size: .9rem; padding: .25rem 0; }
.footer-col i { color: #e5a1a5; font-size: 1rem; flex: 0 0 auto; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 20px; font-size: .8rem; color: #8b919e; }
.footer-bottom a { display: inline-flex; align-items: center; gap: .3rem; color: #8b919e; }
.footer-bottom a:hover { color: #fff; }

/* ---- WhatsApp flutuante ---------------------------------------------------- */
.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 1040; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; font-size: 2rem; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6); transition: transform .2s ease; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ==========================================================================
   CARRINHO
   ========================================================================== */
.cart-alert { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-radius: 12px; font-size: .92rem; margin-bottom: 1rem; border: 1px solid transparent; }
.cart-alert i { font-size: 1.15rem; flex-shrink: 0; }
.cart-alert.is-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.cart-alert.is-erro { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.cart-alert.is-aviso { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.cart-title { font-size: 2rem; font-weight: 800; margin: .3rem 0 1.2rem; display: flex; align-items: baseline; gap: .6rem; }
.cart-title span { font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: var(--muted); text-transform: none; }
.cart-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; margin-bottom: 3rem; }
.cart-items { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 88px 1fr 110px 120px 44px; gap: 1rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--border); }
.cart-row:last-of-type { border-bottom: 0; }
.cart-thumb { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: .4rem; }
.cart-thumb .noimg { color: #cbd5e1; font-size: 1.8rem; }
.cart-info { display: flex; flex-direction: column; gap: .22rem; min-width: 0; }
.cart-info .nome { font-weight: 700; color: var(--ink); line-height: 1.35; }
.cart-info .nome:hover { color: var(--rt-red); }
.cart-info .ref, .cart-info .unit { font-size: .82rem; color: var(--muted); }
.cart-qtd { display: flex; flex-direction: column; gap: .3rem; }
.cart-qtd label { font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.cart-qtd input { width: 100%; padding: .55rem .6rem; border: 1.5px solid var(--border); border-radius: 10px; font-size: .95rem; text-align: center; font-weight: 700; }
.cart-qtd input:focus { outline: 0; border-color: var(--rt-red); box-shadow: 0 0 0 3px var(--rt-red-soft); }
.cart-sub { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-align: right; color: var(--ink); }
.cart-del { background: transparent; border: 1.5px solid var(--border); color: var(--muted); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: .18s; }
.cart-del:hover { background: #fef2f2; border-color: #fecaca; color: var(--rt-red); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem; background: var(--surface-2); border-top: 1px solid var(--border); }
.cart-actions > div { display: flex; gap: .5rem; flex-wrap: wrap; }
.cart-actions .btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border); border-radius: 12px; padding: .62rem 1rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.cart-actions .btn-outline:hover { border-color: var(--rt-red); color: var(--rt-red); }
.btn-limpar { background: var(--surface); border: 1.5px solid var(--border); color: var(--muted); padding: .62rem 1rem; border-radius: 12px; cursor: pointer; font-size: .88rem; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; transition: .18s; }
.btn-limpar:hover { background: #fef2f2; border-color: #fecaca; color: var(--rt-red); }
.cart-resumo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.3rem; position: sticky; top: 92px; box-shadow: var(--shadow-sm); }
.cart-resumo h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.cart-resumo .linha { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; font-size: .92rem; color: var(--muted); }
.cart-resumo .linha em { font-style: normal; font-size: .82rem; }
.cart-resumo .linha strong { color: var(--text); font-size: 1rem; }
.cart-resumo .linha.total { border-top: 1px solid var(--border); margin-top: .4rem; padding-top: .9rem; font-size: 1rem; color: var(--text); font-weight: 600; }
.cart-resumo .linha.total strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--rt-red); font-weight: 800; }
.cart-resumo .btn-buy { width: 100%; margin-top: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .9rem; border: 0; border-radius: 14px; background: var(--rt-red); color: #fff; font-weight: 700; cursor: pointer; }
.cart-resumo .btn-buy:disabled { opacity: .5; cursor: not-allowed; }
.cart-resumo .btn-whats { background: var(--wa) !important; }
.cart-resumo .btn-whats:hover { background: #1eb857 !important; }
.cart-resumo .obs { font-size: .78rem; color: var(--muted); line-height: 1.55; margin-top: .8rem; }
.empty-store .btn-outline { display: inline-flex; }

/* ---- Responsivo ------------------------------------------------------------ */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
    .hide-md { display: none !important; }
    .catalog-layout { grid-template-columns: 1fr; }
    .filtros-btn { display: inline-flex; }
    .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,17,21,.5); z-index: 1045; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
    .side-backdrop.show { opacity: 1; pointer-events: auto; }
    .catalog-side { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); z-index: 1050; background: var(--bg); padding: 0 16px 24px; overflow-y: auto; transform: translateX(-105%); transition: transform .28s ease; box-shadow: 20px 0 50px rgba(0,0,0,.25); }
    .catalog-side.open { transform: none; }
    .side-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg); padding: 1rem 0 .8rem; z-index: 1; }
    .side-head strong { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; }
    .side-close { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; }
    .pdp { grid-template-columns: 1fr; }
    .gallery { position: static; }
    .pdp-details { grid-template-columns: 1fr; }
    .cart-wrap { grid-template-columns: 1fr; }
    .cart-resumo { position: static; }
}
@media (max-width: 768px) {
    .hide-sm { display: none !important; }
    /* No celular a faixa de montadoras rola de lado; o degradê na borda direita
       avisa que há mais itens. */
    .vehiclebar .container { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 48px;
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
    .vehiclebar .container::-webkit-scrollbar { display: none; }
    .store-header .container { flex-wrap: wrap; gap: .7rem; min-height: 0; padding-top: .7rem; padding-bottom: .7rem; }
    .brand img { height: 42px; }
    .searchbar { order: 3; flex-basis: 100%; max-width: none; }
    .header-actions { margin-left: auto; }
    .catalog-head { align-items: flex-start; flex-direction: column; }
    .catalog-tools { width: 100%; }
    .sort-form { flex: 1; }
    .sort-form select { width: 100%; }
    .pagination { justify-content: center; }
    .page-btn span { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { justify-content: center; text-align: center; }
    .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; font-size: 1.8rem; }
    .buy-row .btn { flex-basis: 100%; }
    .cart-row { grid-template-columns: 64px 1fr 44px; grid-template-areas: "thumb info del" "thumb qtd sub"; row-gap: .7rem; }
    .cart-thumb { grid-area: thumb; width: 64px; height: 64px; align-self: start; }
    .cart-info { grid-area: info; }
    .cart-qtd { grid-area: qtd; flex-direction: row; align-items: center; gap: .5rem; }
    .cart-qtd label { text-transform: none; }
    .cart-qtd input { width: 72px; }
    .cart-sub { grid-area: sub; text-align: right; align-self: center; }
    .cart-del { grid-area: del; align-self: start; }
    .cart-actions { flex-direction: column; align-items: stretch; }
    .cart-actions > div { justify-content: stretch; }
    .cart-actions .btn-outline, .btn-limpar { flex: 1; justify-content: center; }
}
@media (max-width: 520px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pcard .body { padding: .75rem .75rem .85rem; }
    .pcard .name { font-size: .84rem; }
    .pcard .price { font-size: 1.2rem; }
    .pcard .buy .btn { padding: .55rem .6rem; font-size: .82rem; }
    .tag { font-size: .62rem; padding: .2rem .5rem; }
}
