:root {
    --primary:        #133c8a;   /* ISAPA Azul exato (do SVG oficial) */
    --primary-dark:   #0d2d6b;
    --primary-light:  #1a4fad;
    --secondary:      #ec1c24;   /* ISAPA Vermelho exato (do SVG oficial) */
    --secondary-dark: #c41920;

    --bg-main:    #F4F7F9;
    --bg-surface: #FFFFFF;

    --text-dark:  #404041;   /* ISAPA Cinza exato (do SVG oficial) */
    --text-body:  #4A5568;
    --text-muted: #A0AEC0;

    --border-color: #E2E8F0;
    --border-focus: #133c8a;

    --pix: #32BCAD;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, strong { color: var(--text-dark); font-weight: 700; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Barra de acento ISAPA ─────────────────────────────────── */
.accent-bar { height: 4px; background: var(--secondary); }

/* ── Botões ────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 0.6rem 1.2rem;
    font-family: inherit; font-size: 0.95rem; font-weight: 600;
    border: none; border-radius: 6px; cursor: pointer; transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary  { background: var(--primary);   color: white; }
.btn-primary:hover  { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.05rem; }

/* ── Top Bar ───────────────────────────────────────────────── */
.top-bar {
    background: var(--primary-dark);
    color: white;
    font-size: 0.8rem;
    padding: 0.45rem 0;
}
.top-bar-content { display: flex; justify-content: space-between; }
.top-bar-text { display: flex; align-items: center; gap: 0.4rem; opacity: 0.9; }

/* ── Header ────────────────────────────────────────────────── */
.main-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.header-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 78px; gap: 2rem;
}

.logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; flex-shrink: 0; }
.logo-icon { font-size: 2rem; color: var(--secondary); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.5rem; color: var(--primary); letter-spacing: -0.5px; }
.logo-text span   { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }

.search-box {
    flex: 1; max-width: 580px;
    display: flex; border: 1.5px solid var(--border-color);
    border-radius: 8px; overflow: hidden; background: var(--bg-main);
    transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--primary); }
.search-box input {
    flex: 1; border: none; padding: 0.8rem 1.2rem;
    background: transparent; font-family: inherit; font-size: 0.95rem;
    outline: none; color: var(--text-dark);
}
.search-btn {
    background: var(--primary); border: none; padding: 0 1.2rem;
    color: white; cursor: pointer; font-size: 1rem; transition: background 0.2s;
}
.search-btn:hover { background: var(--primary-dark); }

.header-actions { display: flex; gap: 1.5rem; align-items: center; }
.action-btn {
    display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
    background: transparent; border: none; text-decoration: none;
    color: var(--text-body); cursor: pointer; font-family: inherit; transition: color 0.2s;
}
.action-btn:hover { color: var(--primary); }
.action-btn span { font-size: 0.78rem; font-weight: 600; }
.cart-icon-wrap { position: relative; font-size: 1.2rem; }
.cart-badge {
    position: absolute; top: -8px; right: -12px;
    background: var(--secondary); color: white;
    font-size: 0.7rem; font-weight: 700;
    min-width: 20px; height: 20px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ── Hero Banner ───────────────────────────────────────────── */
.hero-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #0d2d6b 60%, #0a1f4d 100%);
    color: white; padding: 4.5rem 0; margin-bottom: 3rem;
    position: relative; overflow: hidden;
}
.hero-banner::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 4px; background: var(--secondary);
}
.hero-content { max-width: 760px; }
.hero-banner h1 {
    color: white; font-size: 3rem; font-weight: 800;
    line-height: 1.1; margin-bottom: 1.2rem;
}
.hero-banner h1 span { color: var(--secondary); }
.hero-banner p {
    font-size: 1.1rem; color: rgba(255,255,255,0.82); margin-bottom: 2rem; max-width: 580px;
}
.hero-stats {
    display: flex; gap: 2.5rem; margin-top: 2.5rem;
}
.hero-stat strong { display: block; font-size: 1.5rem; color: white; }
.hero-stat span   { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }

/* ── Layout Catálogo ───────────────────────────────────────── */
.layout-grid {
    display: grid; grid-template-columns: 260px 1fr;
    gap: 2.5rem; margin-bottom: 4rem;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
    background: var(--bg-surface); border-radius: 12px;
    padding: 1.5rem; border: 1px solid var(--border-color); height: fit-content;
}
.sidebar-title {
    font-size: 1rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--primary); margin-bottom: 1.5rem;
    padding-bottom: 0.75rem; border-bottom: 2px solid var(--secondary);
}
.filter-group { margin-bottom: 2rem; }
.filter-group h4 {
    font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted);
    letter-spacing: 1.5px; margin-bottom: 0.8rem; font-weight: 700;
}
.category-menu { list-style: none; }
.category-menu li { margin-bottom: 0.3rem; }
.category-menu button {
    background: transparent; border: none; text-align: left; width: 100%;
    padding: 0.5rem 0.8rem; font-family: inherit; font-size: 0.9rem;
    color: var(--text-body); cursor: pointer; border-radius: 6px; transition: all 0.15s;
}
.category-menu button:hover { background: var(--bg-main); color: var(--primary); }
.category-menu li.active button {
    background: rgba(19,60,138,0.08); color: var(--primary); font-weight: 700;
    border-left: 3px solid var(--primary); padding-left: calc(0.8rem - 3px);
}
.category-menu label {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.9rem; color: var(--text-body); cursor: pointer; padding: 0.35rem 0;
}
.category-menu input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
#brand-filters, #car-brand-filters {
    list-style: none; max-height: 200px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: var(--primary) transparent;
}
#brand-filters li, #car-brand-filters li { margin-bottom: 0.3rem; }
#brand-filters label, #car-brand-filters label {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.9rem; color: var(--text-body); cursor: pointer; padding: 0.35rem 0;
}
#brand-filters input[type="checkbox"], #car-brand-filters input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0;
}

/* ── Área de Produtos ──────────────────────────────────────── */
.products-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem;
}
.products-header h2 { font-size: 1.1rem; color: var(--text-dark); }
.sort-box { display: flex; align-items: center; gap: 0.8rem; font-size: 0.88rem; }
.sort-box select {
    padding: 0.45rem 1rem; border: 1px solid var(--border-color);
    border-radius: 6px; outline: none; font-family: inherit; background: var(--bg-surface);
    color: var(--text-dark);
}
.loader-box {
    text-align: center; padding: 4rem 0;
    color: var(--primary); font-weight: 500; font-size: 1rem;
}

.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem;
}

.product-card {
    background: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: 12px; overflow: hidden; transition: all 0.2s;
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px); box-shadow: 0 12px 24px rgba(19,60,138,0.1);
    border-color: var(--primary);
}
.product-img {
    height: 160px; background: var(--bg-main);
    display: flex; align-items: center; justify-content: center; position: relative;
}
.product-img i { font-size: 3.5rem; color: var(--border-color); transition: color 0.2s; }
.product-card:hover .product-img i { color: var(--primary); }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-sku {
    position: absolute; top: 0.8rem; left: 0.8rem;
    background: white; padding: 0.2rem 0.6rem;
    font-size: 0.72rem; border-radius: 4px; font-weight: 700;
    color: var(--text-muted); border: 1px solid var(--border-color);
}
.product-body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-brand {
    font-size: 0.72rem; color: var(--secondary); font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem;
}
.product-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; line-height: 1.4; flex: 1; }
.product-vehicle { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-price {
    font-size: 1.25rem; font-weight: 800; color: var(--primary); margin-bottom: 0.8rem;
}

/* ── Vehicle Finder Bar ────────────────────────────────────── */
.vehicle-finder-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 1.1rem 0; border-bottom: 3px solid var(--secondary);
}
.vehicle-finder-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.vehicle-finder-label {
    display: flex; align-items: center; gap: 1rem; color: white; flex: 1;
}
.vehicle-finder-label > i { font-size: 2rem; color: rgba(255,255,255,0.6); flex-shrink: 0; }
.vehicle-finder-label strong { display: block; font-size: 1rem; margin-bottom: 0.15rem; color: #fff; }
.vehicle-finder-label span { font-size: 0.78rem; color: rgba(255,255,255,0.9); }
.vehicle-open-btn {
    background: white; color: var(--primary); border: none; border-radius: 10px;
    padding: 0.8rem 1.6rem; font-family: inherit; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25); transition: all 0.2s;
}
.vehicle-open-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.35); }
.vehicle-open-btn i { color: var(--secondary); }

/* ── Vehicle Modal ─────────────────────────────────────────── */
.vm-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: flex-start; justify-content: center; padding: 7vh 1rem 1rem;
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.vm-overlay.active { opacity: 1; pointer-events: all; }
.vm-card {
    background: white; border-radius: 20px; width: 100%; max-width: 560px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    transform: translateY(24px) scale(0.97); transition: transform 0.3s ease; overflow: hidden;
}
.vm-overlay.active .vm-card { transform: translateY(0) scale(1); }
.vm-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 1.4rem 1.5rem; display: flex; justify-content: space-between; align-items: flex-start;
}
.vm-header-text { display: flex; align-items: flex-start; gap: 1rem; color: white; flex: 1; }
.vm-header-text > i { font-size: 1.8rem; margin-top: 0.1rem; opacity: 0.75; flex-shrink: 0; }
.vm-header-text h3 { color: white; font-size: 1.15rem; margin-bottom: 0.2rem; }
.vm-header-text p { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.vm-close {
    background: rgba(255,255,255,0.15); border: none; color: white;
    width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s;
}
.vm-close:hover { background: rgba(255,255,255,0.3); }
.vm-body { padding: 1.5rem; }
.vm-fields { display: flex; flex-direction: column; gap: 1.1rem; }
.vm-label {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); margin-bottom: 0.5rem;
}
.vm-label i { color: var(--primary); }
.vm-field select, .vm-field input {
    width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--border-color);
    border-radius: 10px; font-family: inherit; font-size: 0.95rem; color: var(--text-dark);
    outline: none; transition: border-color 0.2s, box-shadow 0.2s; background: var(--bg-main);
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A0AEC0' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
}
.vm-field input { background-image: none; }
.vm-field select:focus, .vm-field input:focus {
    border-color: var(--primary); background-color: white; box-shadow: 0 0 0 3px rgba(19,60,138,0.1);
}
.vm-count-wrap { margin-top: 1.2rem; min-height: 52px; display: flex; align-items: center; }
.vm-count {
    width: 100%; padding: 0.85rem 1.2rem; border-radius: 10px; text-align: center;
    font-size: 0.92rem; background: rgba(19,60,138,0.05); border: 1px solid rgba(19,60,138,0.1); color: var(--text-body);
}
.vm-count strong { color: var(--primary); font-size: 1.15rem; font-weight: 800; }
.vm-count.none { background: rgba(236,28,36,0.05); border-color: rgba(236,28,36,0.15); }
.vm-count.none strong { color: var(--secondary); }
.vm-footer { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); }
.vm-btn-clear {
    background: transparent; border: 1.5px solid var(--border-color); border-radius: 10px;
    padding: 0.8rem 1.2rem; font-family: inherit; font-size: 0.88rem; color: var(--text-muted);
    cursor: pointer; display: flex; align-items: center; gap: 0.45rem; transition: all 0.2s; flex-shrink: 0;
}
.vm-btn-clear:hover { border-color: var(--secondary); color: var(--secondary); }
.vm-btn-search {
    flex: 1; background: var(--primary); color: white; border: none; border-radius: 10px;
    padding: 0.9rem 1.5rem; font-family: inherit; font-size: 0.98rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.55rem;
    transition: all 0.2s; box-shadow: 0 4px 16px rgba(19,60,138,0.3);
}
.vm-btn-search:hover { background: var(--primary-dark); transform: translateY(-1px); }
.year-filter-wrap { display: flex; align-items: center; gap: 0.5rem; }
.year-filter-input {
    flex: 1; padding: 0.5rem 0.75rem; border: 1.5px solid var(--border-color);
    border-radius: 6px; font-family: inherit; font-size: 0.9rem; color: var(--text-dark); outline: none; width: 100%;
}
.year-filter-input:focus { border-color: var(--primary); }
.clear-year-btn {
    background: none; border: 1.5px solid var(--border-color); border-radius: 6px;
    color: var(--text-muted); cursor: pointer; padding: 0.4rem 0.6rem; font-size: 0.85rem; flex-shrink: 0;
}
.clear-year-btn:hover { border-color: var(--secondary); color: var(--secondary); }
.filter-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.4rem; line-height: 1.4; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: #0d1f3c; color: #CBD5E0; padding-top: 4rem; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer-col h4 { color: white; font-size: 1rem; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { color: #A0AEC0; text-decoration: none; transition: color 0.2s; font-size: 0.9rem; }
.footer-col a:hover { color: white; }
.footer-desc { margin-top: 0.8rem; font-size: 0.9rem; line-height: 1.7; color: #A0AEC0; max-width: 380px; }
.footer-logo-wrap .logo-text strong { color: white; }
.footer-bottom {
    background: #081428; padding: 1.2rem 0;
    font-size: 0.82rem; text-align: center; color: #6B7A8D;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-red-bar { height: 4px; background: var(--secondary); }

/* ── Carrinho ──────────────────────────────────────────────── */
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.45); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-overlay.active { opacity: 1; pointer-events: all; }
.cart-panel {
    position: fixed; top: 0; right: -440px; width: 100%; max-width: 440px; height: 100vh;
    background: var(--bg-surface); z-index: 201; display: flex; flex-direction: column;
    box-shadow: -8px 0 30px rgba(0,0,0,0.08); transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cart-panel.open { right: 0; }
.cart-header {
    padding: 1.5rem; border-bottom: 3px solid var(--secondary);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--primary);
}
.cart-header h3 { color: white; font-size: 1rem; }
.close-cart-btn { background: none; border: none; font-size: 1.2rem; color: rgba(255,255,255,0.7); cursor: pointer; }
.close-cart-btn:hover { color: white; }
.cart-items-wrapper { flex: 1; overflow-y: auto; padding: 1.2rem; }
.cart-item {
    display: flex; gap: 1rem; margin-bottom: 1.2rem;
    padding-bottom: 1.2rem; border-bottom: 1px solid var(--border-color);
}
.cart-item-img {
    width: 64px; height: 64px; background: var(--bg-main); border-radius: 8px;
    border: 1px solid var(--border-color); display: flex; align-items: center;
    justify-content: center; color: var(--text-muted); font-size: 1.4rem; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; line-height: 1.3; }
.cart-item-price { color: var(--primary); font-weight: 700; margin-bottom: 0.5rem; font-size: 0.95rem; }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-controls button {
    width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--border-color);
    background: white; cursor: pointer; font-size: 0.8rem; transition: background 0.15s;
}
.qty-controls button:hover { background: var(--bg-main); }
.qty-controls span { font-weight: 700; font-size: 0.95rem; width: 22px; text-align: center; }
.cart-footer { padding: 1.2rem; border-top: 1px solid var(--border-color); background: #F8FAFC; }
.cart-total-box { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.cart-total-box span { font-size: 0.9rem; color: var(--text-body); }
.cart-total-box strong { font-size: 1.4rem; color: var(--primary); }

/* ── Checkout Modal ────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: none; align-items: flex-start; justify-content: center; padding: 4vh 1rem 1rem;
}
.modal-overlay.active { display: flex; }
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* Checkout card */
.chk-card {
    background: white; width: 100%; max-width: 540px; border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4); overflow: hidden;
    animation: slideUp 0.28s ease; max-height: 94vh; display: flex; flex-direction: column;
}
.chk-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 1.1rem 1.5rem; flex-shrink: 0;
    display: flex; justify-content: space-between; align-items: center;
}
.chk-header-title {
    display: flex; align-items: center; gap: 0.6rem; color: white; font-size: 1rem; font-weight: 700;
}
.chk-section-label {
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--text-muted); margin-bottom: 0.7rem;
}
.chk-close {
    background: rgba(255,255,255,0.15); border: none; color: white; width: 32px; height: 32px;
    border-radius: 50%; cursor: pointer; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.chk-close:hover { background: rgba(255,255,255,0.3); }

/* Progress bar */
.chk-progress {
    display: flex; align-items: center; padding: 0 0.2rem 1.2rem;
}
.chk-prog-step {
    display: flex; flex-direction: column; align-items: center; gap: 0.3rem; flex-shrink: 0;
}
.chk-prog-dot {
    width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.5); font-size: 0.72rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.chk-prog-step span { font-size: 0.65rem; color: rgba(255,255,255,0.5); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.chk-prog-step.active .chk-prog-dot { background: white; border-color: white; color: var(--primary); }
.chk-prog-step.active span          { color: white; }
.chk-prog-step.done .chk-prog-dot   { background: rgba(255,255,255,0.2); border-color: white; color: white; }
.chk-prog-step.done span            { color: rgba(255,255,255,0.7); }
.chk-prog-line { flex: 1; height: 2px; background: rgba(255,255,255,0.2); margin: 0 4px 18px; }
.chk-prog-line.done { background: rgba(255,255,255,0.7); }

/* Steps */
.chk-step { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.chk-body  { flex: 1; overflow-y: auto; padding: 1.5rem; }
.chk-step-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.3rem; }
.chk-form { display: flex; flex-direction: column; gap: 1rem; }
.chk-row  { display: flex; gap: 0.75rem; }
.chk-row .chk-field { flex: 1; }
.chk-field { display: flex; flex-direction: column; gap: 0.35rem; }
.chk-field label { font-size: 0.75rem; font-weight: 700; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.5px; }
.chk-field input, .chk-select {
    padding: 0.85rem 1rem; border: 1.5px solid var(--border-color); border-radius: 10px;
    font-family: inherit; font-size: 0.95rem; color: var(--text-dark); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s; background: white;
}
.chk-field input:focus, .chk-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(19,60,138,0.1); }
.chk-select { appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A0AEC0' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
}

/* Payment options */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.pay-opt {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.35rem; padding: 1rem 0.75rem;
    border: 1.5px solid var(--border-color); border-radius: 12px; background: white;
    cursor: pointer; transition: all 0.2s; position: relative; text-align: center;
}
.pay-opt:hover { border-color: var(--primary); background: rgba(19,60,138,0.03); }
.pay-opt.selected { border-color: var(--primary); background: rgba(19,60,138,0.06); box-shadow: 0 0 0 3px rgba(19,60,138,0.12); }
.pay-opt .pay-icon { font-size: 1.6rem; color: var(--text-muted); margin-bottom: 0.1rem; }
.pay-opt.selected .pay-icon { color: var(--primary); }
.pay-opt strong { font-size: 0.82rem; color: var(--text-dark); }
.pay-opt span { font-size: 0.7rem; color: var(--text-muted); }
.pay-badge {
    position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    background: #10b981; color: white; font-size: 0.6rem; font-weight: 700;
    padding: 0.15rem 0.5rem; border-radius: 20px; white-space: nowrap;
}
.pay-opt-card {
    grid-column: 1 / -1;
    flex-direction: row; gap: 1rem; justify-content: flex-start; padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(19,60,138,0.04), rgba(19,60,138,0.02));
    border: 1.5px solid rgba(19,60,138,0.2);
}
.pay-opt-card .pay-icon { font-size: 2rem; color: var(--primary); }
.pay-opt-card strong { font-size: 0.92rem; }
.pay-opt-card:hover, .pay-opt-card.selected { border-color: var(--primary); background: rgba(19,60,138,0.08); }

/* Checkout footer */
.chk-footer {
    display: flex; gap: 0.75rem; padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color); flex-shrink: 0;
    background: white;
}
.chk-btn-outline {
    background: transparent; border: 1.5px solid var(--border-color); color: var(--text-muted);
    border-radius: 10px; padding: 0.85rem 1.2rem; font-family: inherit; font-size: 0.88rem;
    font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0;
}
.chk-btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.chk-btn-primary {
    flex: 1; background: var(--primary); color: white; border: none; border-radius: 10px;
    padding: 0.9rem 1.2rem; font-family: inherit; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: all 0.2s; box-shadow: 0 4px 14px rgba(19,60,138,0.25);
}
.chk-btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.chk-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.chk-btn-wa {
    flex: 1; background: #25d366; color: white; border: none; border-radius: 10px;
    padding: 0.9rem 1.2rem; font-family: inherit; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: all 0.2s; box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}
.chk-btn-wa:hover { background: #1ebe5c; transform: translateY(-1px); }
.chk-btn-wa:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.chk-btn-lock { background: #0f172a; }
.chk-btn-lock:hover { background: #1e293b; }

/* Order summary (step 3a) */
.chk-sum-block {
    background: rgba(19,60,138,0.04); border: 1px solid rgba(19,60,138,0.1);
    border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.chk-sum-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.4rem 0; font-size: 0.875rem; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.chk-sum-row:last-child { border-bottom: none; }
.chk-sum-row span { color: var(--text-muted); }
.chk-sum-row strong { color: var(--text-dark); }
.chk-sum-items { margin-bottom: 0.5rem; }
.chk-sum-item {
    display: flex; justify-content: space-between; padding: 0.45rem 0;
    font-size: 0.85rem; color: var(--text-body); border-bottom: 1px solid var(--border-color);
}
.chk-sum-item:last-child { border-bottom: none; }
.chk-sum-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 1rem; background: var(--primary); border-radius: 10px;
    margin: 0.75rem 0;
}
.chk-sum-total span  { color: rgba(255,255,255,0.8); font-size: 0.88rem; }
.chk-sum-total strong { color: white; font-size: 1.2rem; }
.chk-sum-info {
    display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--text-muted);
    background: rgba(37,211,102,0.07); border: 1px solid rgba(37,211,102,0.2);
    padding: 0.7rem 0.9rem; border-radius: 8px;
}
.chk-sum-info i { color: #25d366; font-size: 1rem; }

/* Card art preview */
.card-art {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border-radius: 16px; padding: 1.4rem 1.5rem;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25); color: white;
}
.card-art-inner { display: flex; flex-direction: column; gap: 1rem; }
.card-art-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-art-chip {
    width: 36px; height: 28px; border-radius: 5px;
    background: linear-gradient(135deg, #e8c56d, #c9a227);
}
.card-art-brand { font-size: 2rem; color: rgba(255,255,255,0.85); }
.card-art-number { font-size: 1.2rem; letter-spacing: 3px; font-family: 'Courier New', monospace; }
.card-art-bottom { display: flex; justify-content: space-between; }
.card-art-bottom > div { display: flex; flex-direction: column; gap: 0.15rem; }
.card-art-bottom span  { font-size: 0.6rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 1px; }
.card-art-bottom strong { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px; }

/* ── WhatsApp Float Button ──────────────────────────────────── */
.wa-float-btn {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    z-index: 500; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.wa-float-btn:hover {
    background: #20bd5a; transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37,211,102,0.65);
}

/* ── Toast ─────────────────────────────────────────────────── */
.toast-notification {
    position: fixed; bottom: 2rem; right: 2rem;
    background: var(--primary); color: white; padding: 0.9rem 1.4rem;
    border-radius: 8px; display: flex; align-items: center; gap: 0.8rem;
    box-shadow: 0 10px 20px rgba(19,60,138,0.25);
    transform: translateY(100px); opacity: 0; transition: all 0.3s; z-index: 1000; font-weight: 600;
    border-left: 4px solid var(--secondary);
}
.toast-notification.show { transform: translateY(0); opacity: 1; }

/* ── Portal do Cliente ─────────────────────────────────────── */
.cp-overlay {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: flex-start; justify-content: center; padding: 6vh 1rem 1rem;
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.cp-overlay.active { opacity: 1; pointer-events: all; }
.cp-card {
    background: white; border-radius: 20px; width: 100%; max-width: 520px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    transform: translateY(24px) scale(0.97); transition: transform 0.3s ease; overflow: hidden;
}
.cp-overlay.active .cp-card { transform: translateY(0) scale(1); }

.cp-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 1.3rem 1.5rem; display: flex; justify-content: space-between; align-items: flex-start;
}
.cp-header-text { display: flex; align-items: flex-start; gap: 0.9rem; color: white; flex: 1; }
.cp-header-text > i { font-size: 1.8rem; margin-top: 0.1rem; opacity: 0.7; flex-shrink: 0; }
.cp-header-text h3 { color: white; font-size: 1.1rem; margin-bottom: 0.2rem; }
.cp-header-text p  { font-size: 0.75rem; color: rgba(255,255,255,0.65); }
.cp-close {
    background: rgba(255,255,255,0.15); border: none; color: white;
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s;
}
.cp-close:hover { background: rgba(255,255,255,0.3); }

.cp-body { padding: 1.4rem 1.5rem; max-height: 70vh; overflow-y: auto; }

.cp-label {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); margin-bottom: 0.6rem;
}
.cp-search-row {
    display: flex; gap: 0.6rem;
}
.cp-search-row input {
    flex: 1; padding: 0.85rem 1rem; border: 1.5px solid var(--border-color);
    border-radius: 10px; font-family: inherit; font-size: 0.95rem; color: var(--text-dark);
    outline: none; transition: border-color 0.2s, box-shadow 0.2s;
    text-transform: uppercase; letter-spacing: 1px;
}
.cp-search-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(19,60,138,0.1); }
.cp-search-row button {
    background: var(--primary); color: white; border: none; border-radius: 10px;
    padding: 0 1.2rem; font-family: inherit; font-size: 0.88rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0;
    transition: background 0.2s; white-space: nowrap;
}
.cp-search-row button:hover { background: var(--primary-dark); }
.cp-search-row button:disabled { opacity: 0.6; cursor: not-allowed; }
.cp-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.6rem; }

.cp-error {
    margin-top: 1rem; padding: 0.85rem 1rem; background: rgba(236,28,36,0.07);
    border: 1px solid rgba(236,28,36,0.2); border-radius: 10px;
    color: var(--secondary); font-size: 0.88rem; font-weight: 600;
}

.cp-result { margin-top: 1.4rem; }
.cp-result-header {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
    padding: 1rem 1.1rem; background: rgba(19,60,138,0.04); border: 1px solid rgba(19,60,138,0.1);
    border-radius: 12px; margin-bottom: 1.2rem;
}
.cp-result-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.2rem; }
.cp-order-num { font-size: 1rem; font-weight: 800; color: var(--primary); font-family: monospace; letter-spacing: 1px; }
.cp-status-badge {
    padding: 0.35rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
    white-space: nowrap; flex-shrink: 0;
}

/* Steps */
.cp-steps {
    display: flex; align-items: center; gap: 0; margin-bottom: 1.3rem; overflow-x: auto;
    padding-bottom: 0.2rem;
}
.cp-step {
    display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
    flex: 1; min-width: 56px;
}
.cp-step-dot {
    width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-color);
    background: white; color: var(--text-muted); font-size: 0.75rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: all 0.3s; position: relative; z-index: 1;
}
.cp-step span { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); text-align: center; }
.cp-step.done .cp-step-dot  { background: var(--primary); border-color: var(--primary); color: white; }
.cp-step.done span           { color: var(--primary); }
.cp-step.current .cp-step-dot { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 0 0 4px rgba(19,60,138,0.15); }
.cp-step.current span        { color: var(--primary); font-weight: 800; }
.cp-step-line { flex: 1; height: 2px; background: var(--border-color); min-width: 8px; }
.cp-step-line.done { background: var(--primary); }

/* Items */
.cp-section-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.6rem; }
.cp-items-wrap { margin-bottom: 1.2rem; }
.cp-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 0; border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem; color: var(--text-body);
}
.cp-item:last-child { border-bottom: none; }
.cp-item.cp-total { font-weight: 800; color: var(--text-dark); font-size: 0.92rem; padding-top: 0.7rem; }

/* WhatsApp button */
.cp-wa-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    width: 100%; padding: 0.95rem; border-radius: 12px;
    background: #25d366; color: white; text-decoration: none;
    font-family: inherit; font-size: 0.95rem; font-weight: 700;
    transition: background 0.2s, transform 0.15s; box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.cp-wa-btn:hover { background: #128c7e; transform: translateY(-1px); }
.cp-wa-btn i { font-size: 1.3rem; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .layout-grid { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}
@media (max-width: 768px) {
    .hero-banner h1 { font-size: 2rem; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
    .search-box { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .form-row.half { flex-direction: column; }
    .header-container { height: 64px; }

    /* Portal do Cliente on mobile */
    .cp-overlay { align-items: flex-end; padding: 0; }
    .cp-card { border-radius: 20px 20px 0 0; max-width: 100%; max-height: 88vh; transform: translateY(40px) !important; }
    .cp-overlay.active .cp-card { transform: translateY(0) !important; }
    .cp-body { max-height: 75vh; }
    .cp-search-row { flex-direction: column; }
    .cp-search-row button { width: 100%; justify-content: center; padding: 0.85rem; }

    /* Hero stats — one line on mobile */
    .hero-stats { gap: 1.2rem; flex-wrap: nowrap; margin-top: 1.5rem; }
    .hero-stat strong { font-size: 1.05rem; }
    .hero-stat span   { font-size: 0.6rem; letter-spacing: 0.5px; }

    /* Vehicle finder bar on mobile */
    .vehicle-finder-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .vehicle-open-btn { width: 100%; justify-content: center; }

    /* Vehicle modal on mobile — slides up from bottom */
    .vm-overlay { align-items: flex-end; padding: 0; }
    .vm-card {
        border-radius: 20px 20px 0 0;
        max-width: 100%; width: 100%;
        max-height: 88vh; overflow-y: auto;
        transform: translateY(40px) scale(1) !important;
    }
    .vm-overlay.active .vm-card { transform: translateY(0) scale(1) !important; }
    .vm-header { padding: 1.1rem 1.2rem; }
    .vm-body { padding: 1.1rem 1.2rem; }
    .vm-footer { padding: 0.9rem 1.2rem; }
    .vm-fields { gap: 0.9rem; }
    .vm-field select, .vm-field input { padding: 0.75rem 0.9rem; font-size: 1rem; }
    .vm-btn-search { padding: 0.9rem 1rem; font-size: 0.9rem; }

    /* Checkout modal on mobile — bottom-sheet */
    .modal-overlay { align-items: flex-end; padding: 0; }
    .chk-card {
        border-radius: 24px 24px 0 0; max-width: 100%; width: 100%;
        max-height: 96vh; animation: slideUp 0.3s ease;
    }
    .chk-row { flex-direction: row; }
    .pay-grid { grid-template-columns: 1fr 1fr; }
    .chk-body { padding: 1.2rem; }
    .chk-footer { padding: 0.9rem 1.2rem; }
}
