:root {
    --primary: #059669;
    --primary-hover: #047857;
    --primary-light: #ecfdf5;
    --primary-dark: #065f46;
    --secondary: #0f172a;
    --accent: #10b981;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--primary-hover);
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================
   MODERN SLEEK NAVBAR
   ========================================== */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    transition: all 0.2s ease;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 14px;
}

/* BRAND LOGO */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--secondary);
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.brand-logo:hover {
    color: var(--secondary);
    transform: translateY(-1px);
}

.brand-logo .logo-icon {
    font-size: 1.4rem;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.35));
}

.brand-logo .logo-text {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.brand-logo .badge-ev {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.25);
    line-height: 1.3;
}

/* NAVIGATION LINKS */
.nav-links {
    display: flex;
    list-style: none;
    gap: 3px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: #334155;
    font-weight: 600;
    font-size: 0.81rem;
    padding: 5px 7px;
    border-radius: 7px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.18s ease;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--primary);
    background: #f0fdf4;
}

.nav-links a.active {
    color: #047857;
    background: #ecfdf5;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.25);
}

/* NAVIGATION ACTIONS */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Compare Button in Navbar */
.nav-btn-compare {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: #f0fdf4;
    border: 1.5px solid #10b981;
    color: #047857;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.84rem;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-btn-compare:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.nav-btn-compare .compare-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 9999px;
    background: #059669;
    color: #ffffff;
    transition: all 0.2s ease;
}

.nav-btn-compare:hover .compare-badge-count {
    background: #ffffff;
    color: #059669;
}

/* Cart Button in Navbar */
.cart-badge-btn {
    position: relative;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.84rem;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cart-badge-btn:hover {
    background: #ffffff;
    border-color: #94a3b8;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.cart-badge-btn .cart-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 9999px;
    background: #0f172a;
    color: #ffffff;
}

/* Admin Button in Navbar */
.nav-btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.84rem;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);
}

.nav-btn-admin:hover {
    background: #1e293b;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
}

/* Mobile Toggle Hamburger */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: all 0.2s ease;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, #090d16 0%, #131c2e 50%, #0f172a 100%);
    color: #ffffff;
    padding: 18px 0 16px; /* Compact top & bottom padding as requested */
    text-align: center;
}
.hero h1 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    margin-bottom: 6px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.hero p {
    font-size: 0.98rem;
    color: #cbd5e1;
    max-width: 820px;
    margin: 0 auto 12px;
    line-height: 1.4;
}
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
}
.btn-secondary {
    background: #e2e8f0;
    color: var(--secondary);
}
.btn-secondary:hover {
    background: #cbd5e1;
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}
.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
}
.btn-block {
    width: 100%;
}

/* SECTION HEADERS */
.section {
    padding: 32px 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 22px;
}
.section-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--secondary);
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 4px;
}

/* CARDS & GRIDS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.card-img-wrapper {
    position: relative;
    height: 210px;
    background: #f1f5f9;
    overflow: hidden;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}
.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
}
.card-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}
.specs-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.pill {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--text-main);
    font-weight: 500;
}
.card-footer {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

/* REQUIREMENT 2: STICKY STATIC COMPARE BAR */
.sticky-compare-bar {
    position: sticky;
    top: 70px;
    z-index: 990;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 14px 0;
    transition: all 0.2s;
}
.sticky-compare-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}
.compare-slots {
    display: flex;
    gap: 12px;
    flex-grow: 1;
    align-items: center;
    flex-wrap: wrap;
}
.compare-slot-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    min-width: 180px;
}
.compare-slot-card img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}
.compare-slot-info {
    flex-grow: 1;
}
.compare-slot-info strong {
    font-size: 0.85rem;
    display: block;
    color: var(--secondary);
}
.compare-slot-info span {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 700;
}
.compare-slot-card .btn-remove {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
}

/* COMPARE MATRIX TABLE */
.compare-table-wrapper {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: visible;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}
.compare-table th, .compare-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
}
.compare-table th {
    background: var(--bg-light);
    color: var(--secondary);
    font-weight: 700;
    width: 25%;
}
.compare-table tr.category-header th {
    background: #0f172a;
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 18px;
}
.compare-table td {
    color: var(--text-main);
    width: 25%;
}
.compare-table tr:hover td {
    background-color: #f1f5f9;
}

/* REQUIREMENT 6: EV MILEAGE CALCULATOR (Master Prompt Layout) */
.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-md);
}
@media (max-width: 860px) {
    .calc-layout {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}
.calc-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.calc-result-card {
    background: var(--primary-light);
    border: 2px solid var(--primary);
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.calc-result-number {
    font-size: 3.6rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin: 10px 0;
    line-height: 1;
}
.calc-summary-list {
    text-align: left;
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.calc-summary-item {
    font-size: 0.9rem;
    color: var(--text-main);
}
.calc-summary-item strong {
    color: var(--secondary);
}
.calc-disclaimer {
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

/* FORMS & INPUTS */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
}
.form-control {
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: #ffffff;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* ADSENSE PLACEHOLDERS (AdSense compliant) */
.ad-slot {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    margin: 25px 0;
    color: #94a3b8;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}
.ad-slot span {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* FOOTER */
.footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 50px 0 25px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 35px;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 18px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: #cbd5e1;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--accent);
}
.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 10000;
}
@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }
}

/* FLASH NOTIFICATIONS */
.flash-container {
    margin-top: 15px;
}
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 500;
}
.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.alert-info {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* RESPONSIVE NAVBAR */
@media (max-width: 1120px) {
    .nav-links a {
        padding: 6px 8px;
        font-size: 0.82rem;
    }
    .brand-logo {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: stretch;
        padding: 15px 20px;
        gap: 6px;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}


/* ==========================================
   EV SAVINGS CALCULATOR & HOMEPAGE WIDGET
   ========================================== */
.savings-home-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 28px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.commute-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.commute-pill {
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.25;
}

.commute-pill small {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}

.commute-pill:hover {
    border-color: var(--primary);
    background: #f0fdf4;
}

.commute-pill.active {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.commute-pill.active small {
    color: #d1fae5;
}

.savings-compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.savings-box {
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.savings-box.petrol-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.savings-box.ev-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.savings-box-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.petrol-box .savings-box-title { color: #b91c1c; }
.ev-box .savings-box-title { color: #15803d; }

.savings-box-amount {
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.1;
}

.petrol-box .savings-box-amount { color: #ef4444; }
.ev-box .savings-box-amount { color: #059669; }

.savings-box-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.savings-highlight-card {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
    .savings-home-card {
        grid-template-columns: 1fr;
    }
    .commute-pills {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* SMART CALCULATORS TWO-IN-ONE HUB */
.smart-calculators-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}
.calc-widget-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
@media (max-width: 960px) {
    .smart-calculators-grid {
        grid-template-columns: 1fr;
    }
}




/* ==========================================
   DROPDOWN MENUS (Pure Hover & Seamless Click - Requirement 4)
   ========================================== */
.nav-item-dropdown {
    position: relative;
    list-style: none;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
}

.nav-dropdown-toggle::after {
    content: "▾";
    font-size: 0.72rem;
    color: #64748b;
    transition: transform 0.2s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1500;
    animation: fadeInDropdown 0.16s ease-out;
}

/* Invisible bridge so mouse hover is never lost when moving down */
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-item-dropdown:hover > .nav-dropdown-menu,
.nav-item-dropdown:focus-within > .nav-dropdown-menu {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.nav-item-dropdown:hover > .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    color: #1e293b !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.15s ease !important;
}

.nav-dropdown-menu a:hover {
    background: #f0fdf4 !important;
    color: #059669 !important;
    transform: translateX(3px) !important;
}

/* ==========================================
   HOMEPAGE 4-CARD SINGLE ROW & ARROW OVERLAY (Requirements 1 & 3)
   ========================================== */
.card-arrow-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(5, 150, 105, 0.94);
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 10;
    text-decoration: none;
}

.card-arrow-overlay:hover {
    transform: scale(1.05);
    background: #047857;
    color: #ffffff !important;
}

/* ==========================================
   STATIC STICKY VEHICLE HEADERS (Requirements 1 & 8)
   ========================================== */
.compare-table-wrapper {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.compare-table thead th {
    position: sticky;
    top: 72px;
    z-index: 960;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.sticky-compare-bar {
    position: sticky;
    top: 72px;
    z-index: 990;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
}

/* ==========================================
   SMART SEARCH SIDEBAR LAYOUT (Requirement 6)
   ========================================== */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .filter-sidebar {
        position: static !important;
    }
}

.filter-sidebar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 86px;
    z-index: 20;
}

.filter-widget {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.filter-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: #334155;
    margin-bottom: 5px;
    cursor: pointer;
}


/* ==========================================
   SINGLE ROW SUBTITLES ACROSS ALL HEADERS (Requirements 3, 6, 7, 8, 9, 10, 11, 13, 15)
   ========================================== */
.single-row-sub {
    font-size: clamp(0.85rem, 1.15vw, 1.05rem) !important;
    color: #cbd5e1 !important;
    max-width: 98% !important;
    margin: 0 auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.4 !important;
}

@media (max-width: 992px) {
    .single-row-sub {
        white-space: normal !important;
    }
}

.hero p {
    font-size: clamp(0.88rem, 1.1vw, 1.02rem) !important;
    color: #cbd5e1 !important;
    max-width: 96% !important;
    margin: 0 auto 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 992px) {
    .hero p {
        white-space: normal !important;
    }
}

/* ==========================================
   SPARE PARTS 3 CARDS IN A SINGLE ROW (Requirement 14)
   ========================================== */
.catalog-layout .grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 18px !important;
}

@media (max-width: 1200px) and (min-width: 800px) {
    .catalog-layout .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 799px) {
    .catalog-layout .grid-3 {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================
   NEWS & BLOG 4 CARDS IN A SINGLE ROW (Requirements 16 & 17)
   ========================================== */
.grid-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 18px !important;
}

@media (max-width: 1200px) and (min-width: 850px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 849px) and (min-width: 580px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 579px) {
    .grid-4 {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================
   PAGINATION NAVIGATION CONTROLS (Next & Previous Arrows)
   ========================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.btn-pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.18s ease;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.btn-pagination:hover:not(.disabled) {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-pagination.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    box-shadow: none;
}

.page-num-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    color: var(--secondary);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s ease;
}

.page-num-pill:hover:not(.active) {
    background: #f0fdf4;
    color: var(--primary);
    border-color: var(--primary);
}

.page-num-pill.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

/* ==========================================
   COMPARE 3 ROWS x 4 CARDS GRID (Requirements 1 & 2)
   ========================================== */
.compare-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

@media (max-width: 1024px) {
    .compare-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .compare-grid-4 {
        grid-template-columns: 1fr !important;
    }
}
