:root {
    --primary: #1560BD;
    --primary-dark: #0D3E80;
    --primary-light: #EAF2FC;
    --accent: #F2994A;
    --accent-dark: #D9781F;
    --accent-light: #FDF1E6;
    --text: #16202B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --bg-alt: #F6F8FB;
    --radius: 12px;
    --radius-sm: 8px;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.5;
}

h1, h2, h3, .logo-text strong, .btn-whatsapp-nav, .brand-name, .product-card-body h3 {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark-img {
    height: 44px;
    width: auto;
    display: block;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 16px; font-weight: 700; color: var(--primary-dark); }
.logo-text small { font-size: 11px; color: var(--text-muted); }

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 20px;
    padding: 6px 10px;
    cursor: pointer;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -14px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.btn-whatsapp-nav {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 20px;
    border-bottom: none !important;
}

.header-search { background: var(--bg-alt); border-top: 1px solid var(--border); }
.header-search-inner { display: flex; gap: 8px; padding: 10px 20px; }
.header-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}
.header-search button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Home: barras laterais + banner central */
.home-hero-section { padding-top: 36px; padding-bottom: 36px; }
.home-hero-layout {
    display: grid;
    grid-template-columns: 190px 1fr 190px;
    gap: 20px;
    align-items: stretch;
}

.side-menu {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 12px;
}
.side-menu-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.side-menu-list { display: flex; flex-direction: column; gap: 6px; }
.side-menu-item {
    display: block;
    width: 100%;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.side-menu-item:hover { transform: translateX(2px); box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.side-menu-item.brand-item { background: var(--primary); }
.side-menu-item.category-item { background: var(--accent); }
.side-menu-more { display: block; padding: 8px 12px; font-size: 12.5px; font-weight: 700; }
.side-menu-more.brand-more { color: var(--primary); }
.side-menu-more.category-more { color: var(--accent-dark); }

.hero-banner-center {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #2D7DD2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 44px 32px;
    min-height: 320px;
    color: #fff;
}
.hero-banner-center::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .28;
}
.hero-banner-center::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #fff;
    opacity: .08;
}
.hero-logo-big {
    position: relative;
    display: block;
    width: 220px;
    height: auto;
    background: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.hero-badge {
    position: relative;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 11px 28px;
    border-radius: 24px;
    max-width: 95%;
    margin-bottom: 22px;
    letter-spacing: 0.03em;
}
.hero-banner-center h1 {
    position: relative;
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 12px;
    max-width: 440px;
    line-height: 1.2;
}
.hero-banner-center p {
    position: relative;
    font-size: 14.5px;
    opacity: .92;
    max-width: 440px;
    margin: 0 0 26px;
}
.hero-banner-center .hero-search {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 460px;
    gap: 10px;
}
.hero-search-main { display: flex; gap: 8px; }
.hero-search-main input {
    flex: 1;
    padding: 13px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.hero-search-main button {
    background: #fff;
    color: var(--primary-dark);
    border: none;
    padding: 13px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.hero-search-main button:hover { background: var(--accent-light); }

.hero-search-num {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-search-num span {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.hero-search-num input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.hero-search-num input::placeholder { color: rgba(255,255,255,.7); }

@media (max-width: 900px) {
    .home-hero-layout { grid-template-columns: 1fr; }
    .side-menu-list { flex-direction: row; flex-wrap: wrap; }
    .side-menu-item { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 480px) {
    .hero-banner-center h1 { font-size: 24px; }
    .hero-banner-center .hero-search { flex-direction: column; }
    .hero-badge { font-size: 12px; padding: 9px 18px; }
    .hero-logo-big { width: 160px; padding: 8px 12px; }
}
/* Sections */
.section { padding: 52px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--primary-dark);
    padding-left: 14px;
    border-left: 4px solid var(--accent);
}
.section-more { margin-top: 20px; }
.section-more a { color: var(--primary); font-weight: 600; }

.brand-grid, .group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.brand-tile {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.brand-tile:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(21,96,189,.14); transform: translateY(-2px); }
.brand-name { font-weight: 700; font-size: 15px; }
.brand-count { color: var(--text-muted); font-size: 13px; }

.group-tile {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .15s, color .15s, transform .15s;
}
.group-tile:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }

.about-section .about-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.about-cta { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 240px; }
.about-cta-label { color: var(--text-muted); font-size: 13px; font-weight: 600; text-align: center; margin-bottom: 2px; }
.about-cta .btn-whatsapp { font-size: 13px; padding: 11px 20px; }

.btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: #fff !important;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 24px;
    text-align: center;
    transition: background .15s, transform .15s;
}
.btn-whatsapp:hover { background: #1FB855; transform: translateY(-1px); }

.whatsapp-widget {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.whatsapp-float {
    background: #25D366;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    cursor: pointer;
}

.whatsapp-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 26px rgba(0,0,0,.18);
    overflow: hidden;
    min-width: 230px;
    border: 1px solid var(--border);
}

.whatsapp-menu.open { display: flex; }

.whatsapp-menu-title {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-alt);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.whatsapp-menu a {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    gap: 2px;
}

.whatsapp-menu a:hover { background: var(--bg-alt); }
.whatsapp-menu a strong { font-size: 14px; color: var(--text); }
.whatsapp-menu a span { font-size: 13px; color: #25D366; font-weight: 600; }

/* Catalog layout */
.catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

.catalog-filters {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    position: sticky;
    top: 100px;
}
.catalog-filters h2 { font-size: 16px; margin: 0 0 14px; }
.catalog-filters form { margin-bottom: 16px; }
.catalog-filters label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.catalog-filters select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
}
.clear-filters { color: var(--primary); font-size: 13px; font-weight: 600; }
.filter-hint { font-weight: 400; text-transform: none; color: var(--text-muted); font-size: 11px; }
.catalog-filters input[type="text"] {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 6px;
}
.filter-apply-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.catalog-heading { margin-bottom: 20px; }
.catalog-heading h1 { font-size: 22px; margin: 0 0 4px; }
.catalog-heading p { color: var(--text-muted); margin: 0; font-size: 14px; }

.empty-state { color: var(--text-muted); padding: 24px 0; }
.results-count { color: var(--text-muted); margin: -6px 0 20px; font-size: 14px; }
.correction-note { color: var(--primary-dark); font-size: 14px; margin: -6px 0 6px; }
.correction-note strong { color: var(--primary); }

/* Product grid & cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: box-shadow .18s, border-color .18s, transform .18s;
}
.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(21,96,189,.14);
    transform: translateY(-3px);
}
.product-card-link { display: flex; flex-direction: column; flex: 1; }

.add-cart-row { display: flex; }
.add-cart-row .qtd-add-input {
    width: 46px;
    flex-shrink: 0;
    text-align: center;
    border: none;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--primary-dark);
    font-size: 12.5px;
    font-weight: 700;
}
.add-cart-row .btn-add-cart { flex: 1; }

.add-cart-row-detail {
    align-items: stretch;
    gap: 10px;
    margin-bottom: 20px;
}
.add-cart-row-detail .qtd-add-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.add-cart-row-detail .qtd-add-input {
    width: 70px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    background: #fff;
}
.add-cart-row-detail .btn-add-cart-detail { flex: 1; margin: 0; }

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    border: none;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--primary-dark);
    font-size: 12.5px;
    font-weight: 700;
    padding: 10px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.btn-add-cart:hover { background: var(--primary-light); }
.btn-add-cart.added { background: #DDF5E6; color: #1a8a4a; }
.btn-add-cart-detail {
    border: none;
    border-radius: var(--radius-sm);
    margin: 0 0 20px;
    padding: 12px;
    font-size: 13.5px;
}

.product-card-img {
    aspect-ratio: 1 / 1;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: contain; }
.no-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg-alt) 0%, #EEF2F7 100%);
}
.no-photo svg {
    width: 34px;
    height: 34px;
    color: var(--accent);
    opacity: 0.85;
}
.no-photo span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.no-photo-large {
    padding: 0;
    border-radius: var(--radius);
    min-height: 300px;
}
.no-photo-large svg { width: 52px; height: 52px; }
.no-photo-large span { font-size: 13px; text-align: center; padding: 0 24px; max-width: 260px; }

.product-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.product-code {
    font-size: 11px;
    color: var(--accent-dark);
    background: var(--accent-light);
    font-weight: 700;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}
.product-card-body h3 { font-size: 14px; margin: 0; line-height: 1.3; }
.product-brand, .product-group { font-size: 12px; color: var(--text-muted); }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pagination a {
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination-dots { padding: 8px 4px; color: var(--text-muted); }

/* Search page */
.search-page-form { display: flex; gap: 8px; margin: 20px 0 24px; max-width: 620px; }
.search-page-form input {
    flex: 1;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
}
.search-page-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 13px 22px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* Product detail */
.breadcrumb { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.breadcrumb a { color: var(--primary); font-weight: 600; }

.product-detail {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 36px;
}
.product-detail-img {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.product-detail-img img { max-height: 420px; object-fit: contain; }

.product-detail-info h1 { font-size: 24px; margin: 6px 0 16px; }
.product-whatsapp-ctas { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.product-whatsapp-ctas .btn-whatsapp { text-align: left; font-size: 13px; }
.spec-table { border-collapse: collapse; width: 100%; margin-bottom: 18px; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-table th { width: 140px; color: var(--text-muted); font-weight: 600; }
.valor-nao-informado { color: var(--text-muted); font-style: italic; }

.product-obs { margin-bottom: 18px; }
.product-obs h3 { font-size: 14px; margin: 0 0 6px; color: var(--primary-dark); }
.product-obs p { font-size: 14px; margin: 0; color: var(--text); }

.applications-section { margin-top: 44px; }
.applications-section h2 { font-size: 19px; margin-bottom: 14px; color: var(--primary-dark); }
.table-scroll { overflow-x: auto; }
.applications-table { border-collapse: collapse; width: 100%; min-width: 560px; }
.applications-table th, .applications-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.applications-table th { background: var(--bg-alt); color: var(--text-muted); font-weight: 700; }

/* Footer */
.site-footer { background: var(--primary-dark); color: #fff; margin-top: 40px; }
.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    padding: 40px 20px;
}
.footer-col h4 { margin: 0 0 10px; font-size: 15px; }
.footer-col p { margin: 0 0 8px; font-size: 13px; opacity: .9; }
.footer-col a { opacity: .9; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 14px 0;
    font-size: 12px;
    text-align: center;
    opacity: .8;
}

/* Responsive */
@media (max-width: 900px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-filters { position: static; }
    .product-detail { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 20px 14px;
    }
    .main-nav.open { display: flex; }
    .main-nav a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border); }
    .btn-whatsapp-nav { text-align: center; margin-top: 6px; border-radius: 8px; }
}

/* Carrinho de cotação */
.cart-intro { color: var(--text-muted); font-size: 14px; margin: -8px 0 24px; max-width: 560px; }

.cart-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto auto;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
}
.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-no-photo { color: var(--accent); opacity: .8; }
.cart-item-no-photo svg { width: 26px; height: 26px; }

.cart-item-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-item-info strong { font-size: 14px; }
.cart-item-meta { font-size: 12px; color: var(--text-muted); }

.cart-item-qtd { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cart-item-qtd-label { font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.cart-item-qtd-controls { display: flex; align-items: center; gap: 6px; }
.qtd-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}
.qtd-btn:hover { background: var(--primary-light); }
.qtd-input {
    width: 42px;
    text-align: center;
    padding: 5px 2px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
}
.cart-item-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
}
.cart-item-remove:hover { background: #FCEBEB; color: #A32D2D; }

.cart-checkout {
    border-top: 2px solid var(--border);
    padding-top: 24px;
}
.cart-checkout h2 { font-size: 17px; margin: 0 0 14px; color: var(--primary-dark); }
.cart-store-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; max-width: 420px; }
.cart-store-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13.5px;
    cursor: pointer;
}
.cart-store-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.btn-send-quote { display: block; margin-bottom: 12px; }
.btn-clear-cart {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 560px) {
    .cart-item { grid-template-columns: 52px 1fr; grid-template-rows: auto auto; }
    .cart-item-qtd, .cart-item-remove { grid-column: 2; }
}

/* Botão "Ver conversões" no card */
.btn-ver-conversoes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    border: none;
    border-top: 1px solid var(--border);
    background: var(--accent-light);
    color: var(--accent-dark);
    font-size: 14.5px;
    font-weight: 700;
    padding: 11px;
    cursor: pointer;
    transition: background .15s;
}
.btn-ver-conversoes svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-ver-conversoes:hover { background: #FBE3C8; }

/* Modal de conversões */
.conv-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.conv-modal-overlay.open { display: flex; }
.conv-modal {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.conv-modal h3 {
    font-size: 16px;
    margin: 0 0 16px;
    padding-right: 30px;
    color: var(--primary-dark);
}
.conv-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}
.conv-modal-close:hover { color: var(--text); }
.conv-modal-loading, .conv-modal-empty { color: var(--text-muted); font-size: 14px; }
.conv-modal-table { width: 100%; border-collapse: collapse; }
.conv-modal-table th, .conv-modal-table td {
    text-align: left;
    padding: 9px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}
.conv-modal-table th { color: var(--text-muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase; }

/* Modal de marca -> modelo */
.marca-modal { max-width: 640px; }
.marca-modal-search {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}
.marca-modelo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}
.marca-modelo-item {
    display: block;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: center;
    transition: background .15s, border-color .15s;
}
.marca-modelo-item:hover { background: var(--primary-light); border-color: var(--primary); }

/* Menu em cascata: Fabricante -> Categoria -> Montadora -> Modelo */
.cascade-intro { font-size: 12.5px; color: var(--text-muted); margin: -4px 0 12px; line-height: 1.4; }

.cascade-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .6);
    z-index: 110;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.cascade-overlay.open { display: flex; }

.cascade-menu {
    background: #fff;
    border-radius: var(--radius);
    width: 100%;
    max-width: 1080px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    overflow: hidden;
}
.cascade-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cascade-menu-header h3 { margin: 0; font-size: 16px; color: var(--primary-dark); }
.cascade-menu-header .conv-modal-close { position: static; }

.cascade-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    flex: 1;
    overflow: hidden;
}
.cascade-col {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.cascade-col:last-child { border-right: none; }
.cascade-col-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
    flex-shrink: 0;
}
.cascade-col-search {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cascade-search-input {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12.5px;
}
.cascade-search-input:focus { outline: none; border-color: var(--primary); }
.cascade-col-list { overflow-y: auto; padding: 6px; flex: 1; }
.cascade-hint, .cascade-loading { color: var(--text-muted); font-size: 12.5px; padding: 10px; }

.cascade-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
}
.cascade-item:hover { background: var(--primary-light); color: var(--primary-dark); }
.cascade-item.active { background: var(--primary); color: #fff; }
.cascade-item-final { color: var(--primary-dark); }
.cascade-item-final:hover { background: var(--accent-light); color: var(--accent-dark); }

@media (max-width: 900px) {
    .cascade-columns { grid-template-columns: 1fr; overflow-y: auto; }
    .cascade-col { border-right: none; border-bottom: 1px solid var(--border); max-height: 220px; }
    .cascade-menu { max-height: 92vh; }
}
