/* ==========================================================================
   AutoHouseKit.store - Global Light Automotive Portal Theme (Vibrant & Organized)
   ========================================================================== */

:root {
    --bg-canvas: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-subtle: #f1f5f9;
    
    --border-color: #e2e8f0;
    --border-subtle: #edf2f7;
    --border-focus: #3b82f6;

    /* Energetic Accent Palette */
    --primary: #2563eb;          /* Motorsport Electric Blue */
    --primary-light: #3b82f6;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;

    --accent-power: #e11d48;     /* Racing Crimson (Horsepower & Speed) */
    --accent-power-soft: #fff1f2;

    --accent-eco: #059669;       /* Eco Emerald (Fuel Efficiency & Hybrid) */
    --accent-eco-soft: #ecfdf5;

    --accent-kit: #d97706;       /* House Kit Performance Amber */
    --accent-kit-soft: #fffbeb;

    --accent-tech: #4f46e5;      /* Tech Indigo */
    --accent-tech-soft: #eef2ff;

    /* High Contrast Text */
    --text-heading: #0f172a;     /* Deep Slate Navy */
    --text-body: #334155;        /* Balanced Body Charcoal */
    --text-muted: #64748b;       /* Crisp Subtext */
    --text-dim: #94a3b8;         /* Subtle Metadata */

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Precision Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 15px -1px rgba(15, 23, 42, 0.05), 0 2px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-body);
    font-family: var(--font-sans);
    line-height: 1.6;
    direction: ltr;
    text-align: left;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ==========================================================================
   Site Header & Navigation
   ========================================================================== */
.site-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.site-header .container {
    max-width: 1560px;
    width: 100%;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    height: 68px;
    gap: 12px;
    width: 100%;
}

.site-brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-brand-logo img {
    height: 42px;
    width: auto;
    display: block;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-brand-logo:hover img {
    transform: scale(1.02);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-badge {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.logo-text .title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.6px;
    color: var(--text-heading);
    line-height: 1.1;
}

.logo-text .title span {
    color: var(--primary);
}

.logo-text .subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-body);
    padding: 6px 9px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
    text-decoration: none;
    transition: all 0.15s ease;
}

.nav-link i {
    font-size: 12px;
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 800;
}

.nav-link.special {
    background: var(--accent-kit-soft);
    color: var(--accent-kit);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.nav-link.special:hover {
    background: #fef3c7;
    border-color: #f59e0b;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header-cta {
    background: var(--primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: 0.2s;
}

.btn-header-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-heading);
    font-size: 18px;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section - Clean, Vibrant & Energetic Light Canvas
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 80px 0 65px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.hero-title {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-heading);
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto 38px;
    line-height: 1.6;
}

/* Interactive Search Box */
.hero-search-box {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: all 0.25s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 12px 30px rgba(15, 23, 42, 0.08);
}

.search-input-wrapper input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: var(--text-heading);
    font-size: 16px;
    font-weight: 500;
    padding: 10px 14px;
    direction: ltr;
}

.search-input-wrapper input::placeholder {
    color: var(--text-dim);
}

.search-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    padding: 13px 26px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.search-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* Instant Search Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    text-align: left;
}

.dropdown-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-subtle);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.item-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Search Tags */
.quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.quick-tags span {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 600;
}

.tag-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-body);
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tag-btn:hover,
.tag-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.tag-btn.eco {
    border-color: #a7f3d0;
    color: #047857;
    background: #ecfdf5;
}

.tag-btn.kit {
    border-color: #fde68a;
    color: #b45309;
    background: #fffbeb;
}

/* ==========================================================================
   Section Headers & Organization
   ========================================================================== */
.section-padding {
    padding: 70px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 34px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title-wrap h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.section-title-wrap p {
    color: var(--text-muted);
    font-size: 15px;
}

.view-all-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.view-all-link:hover {
    color: var(--primary-hover);
    transform: translateX(3px);
}

/* ==========================================================================
   Brand Logos Grid (Real Official Logos)
   ========================================================================== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.brand-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-card);
}

.brand-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.brand-logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    padding: 4px;
    transition: transform 0.2s;
}

.brand-card:hover .brand-logo-img {
    transform: scale(1.08);
}

.brand-card strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
}

.brand-card span {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}

/* ==========================================================================
   Car Cards Grid (Vibrant, Energetic & Economic Badges)
   ========================================================================== */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 26px;
}

.car-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.car-card:hover {
    border-color: #93c5fd;
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.car-card-image {
    position: relative;
    height: 220px;
    background: #0f172a;
    overflow: hidden;
}

.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover .car-card-image img {
    transform: scale(1.05);
}

/* Dynamic Floating Badges */
.card-floating-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.card-year-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}

.car-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-brand-name {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.car-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 16px;
    line-height: 1.35;
}

.car-title a:hover {
    color: var(--primary);
}

/* Specs Ribbon (3-Metrics Matrix) */
.specs-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: var(--bg-subtle);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.spec-item {
    text-align: center;
}

.spec-item span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.spec-item strong {
    font-size: 14px;
    color: var(--text-heading);
    font-weight: 800;
}

.spec-item strong.power {
    color: var(--accent-power);
}

.spec-item strong.eco {
    color: var(--accent-eco);
}

.car-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.car-price-est span {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
    display: block;
}

.car-price-est strong {
    font-size: 19px;
    color: var(--text-heading);
    font-weight: 800;
}

.btn-details {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-details:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ==========================================================================
   Product / House Kit Store Cards
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.product-card:hover {
    border-color: #f59e0b;
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.product-image {
    height: 190px;
    position: relative;
    background: #0f172a;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-kit);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-sku {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-weight: 600;
    margin-bottom: 4px;
}

.product-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-compat {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.product-price {
    font-size: 21px;
    font-weight: 900;
    color: var(--accent-kit);
}

.btn-inquire {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.25);
}

.btn-inquire:hover {
    filter: brightness(1.08);
}

/* ==========================================================================
   Comparison Matrix & Tool
   ========================================================================== */
.compare-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    margin-bottom: 40px;
}

.detail-specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.detail-specs-table th, .detail-specs-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.detail-specs-table th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 14px;
    width: 32%;
}

.detail-specs-table td {
    color: var(--text-heading);
    font-weight: 700;
    font-size: 14px;
}

.detail-specs-table tr:hover td {
    background: #f8fafc;
}

/* Progress Visualizer Bars */
.bar-visualizer {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(to right, #2563eb, #38bdf8);
    border-radius: 4px;
}

/* ==========================================================================
   Car Details Page Elements
   ========================================================================== */
.car-hero-banner {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #0f172a;
    margin-bottom: 34px;
    box-shadow: var(--shadow-hover);
}

.car-hero-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.car-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    color: #ffffff;
}

/* ==========================================================================
   Footer (Clean, Organized & High Quality)
   ========================================================================== */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    border-top: 1px solid var(--border-color);
    padding: 70px 0 35px;
    margin-top: 90px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 45px;
}

.footer-col h3 {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #38bdf8;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 26px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 14px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1320px) and (min-width: 993px) {
    .site-header .container {
        padding: 0 14px;
    }
    .header-inner {
        gap: 8px;
    }
    .site-brand-logo img {
        height: 38px;
    }
    .main-nav {
        gap: 1px;
    }
    .nav-link {
        font-size: 11.5px;
        padding: 5px 6px;
        gap: 4px;
    }
    .nav-link i {
        font-size: 11px;
    }
    .btn-garage-header {
        padding: 5px 9px;
        gap: 5px;
    }
    .garage-hdr-icon {
        width: 22px;
        height: 22px;
        font-size: 10.5px;
    }
    .garage-hdr-title {
        font-size: 11.5px;
    }
    .garage-hdr-specs {
        font-size: 9.5px;
        padding: 1px 5px;
    }
}

@media (max-width: 1100px) and (min-width: 993px) {
    .site-header .container {
        padding: 0 10px;
    }
    .header-inner {
        gap: 6px;
    }
    .site-brand-logo img {
        height: 34px;
    }
    .nav-link {
        font-size: 11px;
        padding: 4px 5px;
    }
    .nav-link i {
        display: none;
    }
    .garage-hdr-specs {
        display: none;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 34px;
    }
}

@media (max-width: 640px) {
    .cars-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .search-btn span {
        display: none;
    }
    .header-inner {
        height: 62px;
        min-height: 62px;
        gap: 8px;
    }
    .site-brand-logo img {
        height: 36px;
    }
    .btn-garage-header {
        padding: 5px 8px;
        border-radius: 999px;
    }
    .btn-garage-header .garage-hdr-info {
        display: none;
    }
    .btn-garage-header .garage-hdr-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

/* ==========================================================================
   Vehicle Detail Page - World-Class Automotive Gallery & Engineering
   ========================================================================== */
.car-viewer-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 32px;
}

.car-viewer-main {
    position: relative;
    width: 100%;
    height: 520px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.car-viewer-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.car-viewer-badge {
    position: absolute;
    bottom: 20px;
    left: 24px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 10;
}

.car-viewer-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.car-viewer-zoom-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
    z-index: 10;
}

.car-viewer-zoom-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.gallery-tabs-wrap {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
}

.gallery-tab-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--text-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gallery-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.gallery-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.gallery-thumbs-row {
    padding: 18px 24px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    background: #ffffff;
}

.gallery-thumb-item {
    position: relative;
    width: 130px;
    height: 84px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: 0.2s;
    box-shadow: var(--shadow-sm);
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb-item:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
}

.gallery-thumb-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4);
}

.gallery-thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Engine Showcase Section */
.engine-showcase-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 36px;
}

.engine-showcase-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 0;
}

.engine-photo-wrap {
    position: relative;
    background: #0f172a;
    min-height: 380px;
    overflow: hidden;
}

.engine-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.engine-photo-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #e11d48;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.engine-details-wrap {
    padding: 32px;
}

.engine-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.engine-spec-cell {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}

.engine-spec-cell .label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 4px;
}

.engine-spec-cell .value {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-heading);
}

/* Sibling Trims Grid (TRD, XSE, SE, LE) */
.trims-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.trim-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    padding: 22px;
    transition: 0.25s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trim-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.trim-card.current {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

.trim-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.trim-badge.trd {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.trim-badge.xse {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.trim-badge.se {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.trim-badge.le {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Blueprint Dimension Container */
.blueprint-display-card {
    background: #0f172a;
    border-radius: var(--radius-lg);
    border: 1px solid #334155;
    padding: 24px;
    margin-bottom: 36px;
    color: #ffffff;
}

.blueprint-img-wrap {
    width: 100%;
    max-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #090d16;
}

.blueprint-img-wrap img, .blueprint-img-wrap svg {
    max-width: 100%;
    height: auto;
}

/* Generation Timeline Cards */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.timeline-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: 0.2s;
    box-shadow: var(--shadow-sm);
}

.timeline-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.timeline-card-img {
    height: 150px;
    background: #f1f5f9;
    position: relative;
}

.timeline-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-card-body {
    padding: 16px;
}

/* Automaker Lineup Grid */
.brand-lineup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 36px;
}

.brand-lineup-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: 0.2s;
    display: block;
    color: inherit;
    text-decoration: none;
}

.brand-lineup-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.brand-lineup-card-img {
    height: 140px;
    background: #f8fafc;
}

.brand-lineup-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-lineup-card-body {
    padding: 14px 16px;
}

@media (max-width: 900px) {
    .engine-showcase-grid {
        grid-template-columns: 1fr;
    }
    .engine-photo-wrap {
        min-height: 260px;
    }
    .car-viewer-main {
        height: 380px;
    }
    .engine-specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   AutoHouseKit - Advanced Automotive Engineering Blog Styles
   ========================================================================== */
.blog-category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 30px;
    scrollbar-width: thin;
}
.blog-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-heading);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.blog-category-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
}
.blog-category-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.blog-category-pill .pill-count {
    background: rgba(0,0,0,0.06);
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
}
.blog-category-pill.active .pill-count {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}
.blog-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}
.blog-card-thumb {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #0f172a;
}
.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-thumb img {
    transform: scale(1.05);
}
.blog-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.blog-card-badge i {
    color: #38bdf8;
}
.blog-read-time {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #f1f5f9;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
}
.blog-card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 10px;
}
.blog-card-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
    color: var(--text-heading);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.blog-card-title a:hover {
    color: var(--primary);
}
.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: var(--text-dim);
}

/* Single Post Layout */
.blog-post-header {
    margin-bottom: 30px;
}
.blog-post-title {
    font-size: 38px;
    font-weight: 900;
    color: var(--text-heading);
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}
.blog-post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.blog-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 992px) {
    .blog-post-layout {
        grid-template-columns: 1fr;
    }
}
.blog-post-featured-img {
    width: 100%;
    max-height: 480px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 30px;
    background: #0f172a;
}
.blog-post-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-content-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 40px 45px;
    line-height: 1.85;
    font-size: 16px;
    color: #1e293b;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}
.blog-content-card h2 {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-heading);
    margin-top: 36px;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
}
.blog-content-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-heading);
    margin-top: 26px;
    margin-bottom: 12px;
}
.blog-content-card p {
    margin-bottom: 18px;
}
.blog-content-card ul, .blog-content-card ol {
    margin-bottom: 22px;
    padding-left: 24px;
}
.blog-content-card li {
    margin-bottom: 8px;
}
.blog-callout {
    padding: 20px 24px;
    border-radius: 12px;
    margin: 26px 0;
    font-size: 15px;
    line-height: 1.7;
}
.blog-callout.warning {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 5px solid #d97706;
    color: #92400e;
}
.blog-callout.info {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-left: 5px solid #2563eb;
    color: #1e40af;
}
.blog-callout.tip {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-left: 5px solid #059669;
    color: #065f46;
}
.blog-table-wrap {
    overflow-x: auto;
    margin: 28px 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.blog-table th {
    background: #f1f5f9;
    padding: 12px 16px;
    text-align: left;
    font-weight: 800;
    color: var(--text-heading);
    border-bottom: 1px solid #e2e8f0;
}
.blog-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}
.blog-table tr:last-child td {
    border-bottom: none;
}
.blog-table tr:nth-child(even) {
    background: #f8fafc;
}
.blog-sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}
.blog-sidebar-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Advanced Automotive Model Search & Body Style Visual Filter Styles
   ========================================================================== */
.search-control-center {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 26px 30px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* 1. Body Style Visual Cards Grid */
.body-styles-carousel-wrap {
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.body-styles-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.body-styles-carousel-header span {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.body-style-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    align-items: stretch;
}
@media (max-width: 1200px) {
    .body-style-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 640px) {
    .body-style-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.body-style-card {
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
    text-decoration: none;
    color: var(--text-heading);
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}
.body-style-card:hover {
    background: #eff6ff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}
.body-style-card.active {
    background: #eff6ff;
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}
.body-style-icon-wrap {
    width: 64px;
    height: 32px;
    margin: 0 auto 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: color 0.2s, transform 0.2s;
}
.body-style-icon-wrap img, .body-style-icon-wrap svg {
    width: 58px;
    height: 26px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.body-style-card:hover .body-style-icon-wrap,
.body-style-card.active .body-style-icon-wrap {
    color: var(--primary);
    transform: scale(1.08);
}
.body-style-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2px;
}
.body-style-card.active .body-style-name {
    color: var(--primary);
}
.body-style-ar {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
}
.body-style-card.active .body-style-ar {
    color: var(--primary);
    opacity: 0.85;
}

/* 2. Automakers Visual Carousel Strip */
.automakers-carousel-wrap {
    margin-bottom: 24px;
}
.automakers-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.automakers-carousel-header span {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.automakers-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.automaker-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 7px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 9999px;
    text-decoration: none;
    color: var(--text-heading);
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.automaker-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}
.automaker-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}
.automaker-chip-logo {
    width: 32px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 6px;
    padding: 2px 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.automaker-chip-logo img {
    max-width: 26px;
    max-height: 20px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 3. Live Model Search Input with Dropdown */
.model-search-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}
.model-search-input-wrap {
    flex: 2;
    min-width: 280px;
    position: relative;
}
.model-search-input-wrap i.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 16px;
    pointer-events: none;
}
.model-search-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-heading);
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
}
.model-search-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.model-search-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    z-index: 100;
    max-height: 380px;
    overflow-y: auto;
    display: none;
}
.model-search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: var(--text-heading);
    transition: background 0.15s;
}
.model-search-result-item:last-child {
    border-bottom: none;
}
.model-search-result-item:hover {
    background: #eff6ff;
}
.model-search-result-thumb {
    width: 54px;
    height: 38px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}
.model-search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.model-search-result-info {
    flex: 1;
}
.model-search-result-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 6px;
}
.model-search-result-sub {
    font-size: 12px;
    color: var(--text-muted);
}




/* ==========================================================================
   Mobile-First & iPhone 13 Pro Max / iOS Native Optimization Suite
   ========================================================================== */
:root {
    --sat: env(safe-area-inset-top, 0px);
    --sar: env(safe-area-inset-right, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Eliminate 300ms tap delay & set micro-tap feedback */
a, button, input, select, textarea, .nav-link, .tag-btn, .viscosity-chip {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.08);
}

/* Fix iOS Safari auto-zoom on inputs */
@media (max-width: 992px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   iOS Slide-Over Off-Canvas Navigation Drawer
   ========================================================================== */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.mobile-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(350px, 86vw);
    background: #ffffff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: calc(18px + var(--sat)) 20px calc(24px + var(--sab));
}
.mobile-drawer-panel.active {
    transform: translateX(0);
}
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}
.drawer-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-heading);
    cursor: pointer;
    transition: all 0.2s;
}
.drawer-close-btn:active {
    transform: scale(0.92);
    background: #e2e8f0;
}
.drawer-search-wrap {
    margin: 18px 0 14px;
}
.drawer-search-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    gap: 10px;
}
.drawer-search-form input {
    border: none;
    background: none;
    outline: none;
    font-size: 15px;
    width: 100%;
    color: var(--text-heading);
}
.drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.drawer-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.drawer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-heading);
    transition: all 0.15s ease;
}
.drawer-link:active, .drawer-link.active {
    background: #eff6ff;
    color: var(--primary);
}
.drawer-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.drawer-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.drawer-title {
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.25;
}
.drawer-desc {
    font-size: 11px;
    color: var(--text-muted);
}
.drawer-arrow {
    font-size: 11px;
    color: #94a3b8;
}
.drawer-footer {
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    margin-top: 20px;
}

/* ==========================================================================
   iOS Native Mobile Bottom Tab Navigation
   ========================================================================== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(62px + var(--sab));
    padding-bottom: var(--sab);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}
@media (max-width: 992px) {
    .mobile-bottom-bar {
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding-left: 8px;
        padding-right: 8px;
    }
    body {
        padding-bottom: calc(72px + var(--sab)) !important;
    }
}
.bottom-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    background: none;
    border: none;
    padding: 6px 12px;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 12px;
    min-width: 58px;
}
.bottom-tab-item i {
    font-size: 18px;
    transition: transform 0.15s;
}
.bottom-tab-item:active {
    transform: scale(0.92);
}
.bottom-tab-item.active {
    color: var(--primary);
}
.bottom-tab-item.active i {
    transform: translateY(-1px);
}

/* ==========================================================================
   iPhone 13 Pro Max & Mobile Fluid Responsiveness (<= 992px & <= 640px)
   ========================================================================== */
@media (max-width: 992px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .header-inner {
        height: 68px;
        min-height: 68px;
    }
    .site-brand-logo img {
        height: 48px;
        max-width: 240px;
    }
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: #f8fafc;
        border: 1px solid var(--border-color);
        color: var(--text-heading);
        font-size: 18px;
        transition: all 0.2s;
    }
    .mobile-toggle:active {
        transform: scale(0.92);
        background: #e2e8f0;
    }
    .oil-hero-grid, .part-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .oil-hero-card, .part-hero-card {
        padding: 24px !important;
    }
    .oil-tech-table, .part-tech-table {
        margin: 12px 0;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .site-brand-logo img {
        height: 42px;
        max-width: 190px;
    }
    .hero-section {
        padding: 36px 0 30px;
    }
    .hero-title {
        font-size: 27px;
        letter-spacing: -0.5px;
        line-height: 1.25;
    }
    .hero-subtitle {
        font-size: 13.5px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    .search-input-wrapper {
        padding: 4px 6px 4px 14px;
        border-radius: 14px;
    }
    .search-btn {
        padding: 10px 14px;
        border-radius: 10px;
    }
    .quick-tags {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        scrollbar-width: none;
        padding: 4px 0 8px;
        gap: 8px;
    }
    .quick-tags::-webkit-scrollbar {
        display: none;
    }
    .stats-counter-bar .container > div {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
    .oils-grid, .parts-grid, .cars-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .oil-card-img-wrap, .part-card-img-wrap {
        height: 220px !important;
    }
    .oil-hero-img-box, .part-hero-img-box {
        height: 310px !important;
        padding: 18px !important;
    }
    .oil-hero-card, .part-hero-card {
        padding: 18px !important;
        border-radius: 16px !important;
    }
    .oil-hero-card h1, .part-hero-card h1 {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    .oil-tech-table th, .oil-tech-table td,
    .part-tech-table th, .part-tech-table td {
        padding: 10px 12px !important;
        font-size: 12.5px !important;
    }
    .oil-filter-card {
        padding: 16px !important;
    }
    /* Horizontal scroll strips for chips */
    div:has(> .viscosity-chip) {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        scrollbar-width: none;
        padding-bottom: 6px;
    }
    div:has(> .viscosity-chip)::-webkit-scrollbar {
        display: none;
    }
    /* Full-width responsive buttons */
    .btn-view-oil, .btn-primary, .btn-details {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13.5px;
    }
    /* Vehicle Detail Page Responsive Adjustments */
    .car-viewer-stage {
        height: 270px !important;
    }
    .car-specs-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .spec-item {
        padding: 10px 12px !important;
    }
    .blueprint-img-wrap {
        height: 220px !important;
    }
}


/* ==========================================================================
   My Garage (Vehicle Fitment & Compatibility Engine)
   ========================================================================== */
.btn-garage-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-heading);
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-garage-header:hover {
    border-color: var(--primary);
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}
.btn-garage-header.has-active {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.btn-garage-header.has-active:hover {
    border-color: var(--primary);
    background: #dbeafe;
}
.garage-hdr-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}
.btn-garage-header.has-active .garage-hdr-icon {
    background: #dbeafe;
    color: #1d4ed8;
}
.garage-hdr-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-align: left;
    line-height: 1;
    white-space: nowrap;
}
.garage-hdr-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-heading);
    white-space: nowrap;
}
.garage-hdr-specs {
    font-size: 10.5px;
    color: #2563eb;
    font-weight: 800;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Garage Modal Backdrop & Box */
.garage-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: garageFadeIn 0.2s ease;
}
@keyframes garageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.garage-modal-box {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 660px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    animation: garageSlideUp 0.25s ease;
}
@keyframes garageSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.garage-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 2;
}
.garage-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}
.garage-modal-close:hover {
    color: #ef4444;
}
.garage-modal-body {
    padding: 24px;
}

/* Cascading Selectors */
.garage-cascade-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 540px) {
    .garage-cascade-grid {
        grid-template-columns: 1fr;
    }
}
.garage-label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.garage-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-heading);
    background: #ffffff;
    outline: none;
    transition: border 0.2s;
}
.garage-select:focus {
    border-color: var(--primary);
}
.garage-select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* Saved Vehicle Items */
.garage-vehicle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    margin-bottom: 10px;
    background: #ffffff;
    transition: all 0.2s;
}
.garage-vehicle-item:hover {
    border-color: #94a3b8;
}
.garage-vehicle-item.active {
    border-color: #2563eb;
    background: #eff6ff;
}
.garage-veh-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* Verified Fitment Badge for Cards */
.garage-fitment-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #bbf7d0;
}
