@keyframes shimmer {
    0%   { background-position: -700px 0; }
    100% { background-position:  700px 0; }
}

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

:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --secondary: #fbbf24;
    --secondary-dark: #f59e0b;
    --dark: #2C3E50;
    --gray: #7F8C8D;
    --gray-light: #ECF0F1;
    --white: #FFFFFF;
    --border: #DFE6E9;
    --success: #27AE60;
    --danger: #E74C3C;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

.hide-mobile  { display: none !important; }
.hide-desktop { display: none !important; }
@media (min-width: 1025px) {
    .hide-mobile  { display: flex !important; }
    .hide-desktop { display: none  !important; }
}
@media (max-width: 1024px) {
    .hide-mobile  { display: none  !important; }
    .hide-desktop { display: flex  !important; }
}

.tablet-nav-group { display: none; align-items: center; gap: 8px; }

#tabletSearchOverlay {
    display: block !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(2px);
}
#tabletSearchOverlay.active {
    opacity: 1;
    visibility: visible;
}
#tabletSearchOverlay .mobile-search-content {
    position: absolute;
    top: 0; left: 0; right: 0;
    width: 100%;
    background: white;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    box-sizing: border-box;
}
#tabletSearchOverlay.active .mobile-search-content {
    transform: translateY(0);
}
#tabletSearchOverlay .mobile-search-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
#tabletSearchOverlay .mobile-search-header h3 {
    margin: 0; font-size: 18px; font-weight: 700; color: #2C3E50;
}
#tabletSearchOverlay .mobile-search-close {
    width: 36px; height: 36px; background: #f3f4f6; border: none; border-radius: 50%;
    font-size: 24px; color: #6b7280; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
#tabletSearchOverlay .mobile-search-close:hover { background: #e5e7eb; }
#tabletSearchOverlay .mobile-search-form { position: relative; }
#tabletSearchOverlay .mobile-search-input {
    width: 100%; padding: 16px 80px 16px 16px; border: 2px solid #e5e7eb;
    border-radius: 12px; font-size: 16px; background: #f9fafb; transition: all 0.3s; box-sizing: border-box;
}
#tabletSearchOverlay .mobile-search-input:focus { outline: none; border-color: #dc2626; background: white; }
#tabletSearchOverlay .mobile-search-submit {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    padding: 12px 20px; background: #dc2626; color: white; border: none;
    border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer;
}
#tabletSearchOverlay .mobile-search-submit:hover { background: #b91c1c; }

@media (min-width: 769px) and (max-width: 1024px) {
    .header-row-main { display: flex !important; }
    #desktopCatalogBtn { display: none !important; }
    #desktopSearchWrapper { display: none !important; }
    .tablet-nav-group { display: flex !important; }
    
    .tablet-nav-group .tablet-hamburger-btn { display: flex !important; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; }
    .tablet-nav-group .tablet-hamburger-btn span { display: block; width: 22px; height: 2px; background: #111827; margin: 3px 0; border-radius: 2px; transition: all .3s; }
    .tablet-nav-group .tablet-search-btn { display: flex !important; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 6px; color: #111827; }
    .main-nav { display: block !important; }
    .hamburger-btn.catalog-btn {
    gap: 0px !important;
}
}

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

.header-row-main {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    position: relative;
}

.logo-desktop {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 4px;
}

.logo-desktop img {
    display: block;
}

.header-row-main .search-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    max-width: 520px;
    min-width: 280px;
}

.header-row-main .catalog-btn {
    flex-shrink: 0;
}

.header-row-main .user-header {
    flex-shrink: 0;
    margin-left: auto;
}

.header-row-main #vehicleBtn,
.header-row-main .cart-icon-btn {
    flex-shrink: 0;
}

.catalog-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--gray-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.catalog-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.catalog-btn:hover svg {
    stroke: white;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    color: var(--dark);
    transition: background 0.2s, transform 0.2s;
    position: relative;
}

.header-icon-btn svg {
    flex-shrink: 0;
    transition: stroke 0.2s;
}

.icon-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.icon-label {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.icon-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.header-icon-vehicle { max-width: 240px; }
.vehicle-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 24px;
}
.vehicle-details {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
}
.vehicle-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    border-radius: 50%;
    transition: background 0.2s;
    flex-shrink: 0;
}
.vehicle-clear-btn:hover { background: var(--primary); }
.vehicle-clear-btn:hover svg { stroke: white; }
.vehicle-clear-btn svg { stroke: var(--primary); transition: stroke 0.2s; }

.main-nav {
    background: var(--white);
    border-bottom: 2px solid var(--border);
}

@media (max-width: 768px) {
    .main-nav { display: none; }
}

.nav-menu-bar {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-around;
    width: 100%;
}

.nav-menu li {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
    text-align: center;
}

.nav-menu a svg {
    transition: transform 0.2s;
}

.nav-menu a:hover svg {
    transform: translateY(-2px);
}

.nav-menu a:hover use,
.nav-menu a.active use {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.25s;
}

.nav-menu a:hover { color: var(--primary); }
.nav-menu a:hover::after,
.nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.active { color: var(--primary); }

.header-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    position: relative;
}

.header-mobile-row .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-top { background: var(--gray-light); border-bottom: 1px solid var(--border); padding: 8px 0; }
.header-top-content { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--gray); }
.header-top-links a { color: var(--gray); text-decoration: none; margin-right: 20px; transition: color 0.3s; }
.header-top-links a:hover { color: var(--primary); }
.header-main { padding: 15px 0; }
.header-content { grid-template-columns: 200px 1fr auto; }
.search-type-select { padding: 12px 16px; border: 1px solid var(--border); border-radius: 4px 0 0 4px; font-size: 14px; background: var(--white); cursor: pointer; min-width: 120px; }
.contact-link { color: var(--danger); text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 6px; }

.hero-section {
    display: none; 
}

.hero-split {
    display: grid;
    grid-template-columns: 600px 1fr;
    min-height: 520px;
    background: #0f0f0f;
}

.hero-panel-left {
    background: #0f0f0f;
    position: relative;
    overflow: hidden;
}

.hero-panel-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(220,38,38,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-panel-inner {
    padding: 40px 40px 48px;
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.07);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    width: fit-content;
    color: white;
    font-size: 13px;
}

.stars { color: #00B67A; font-size: 14px; letter-spacing: 2px; }
.trustpilot { color: #00B67A; font-weight: 600; }

.hero-title {
    font-size: 30px;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

.vehicle-finder-split {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.split-select-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.split-select-group label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-panel-left .custom-select-input,
.hero-panel-left .custom-select-box.open .custom-select-input,
.hero-panel-left .custom-select-input:hover {
    background: rgba(255,255,255,0.07) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 8px !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}
.hero-panel-left .custom-select-box:hover:not(.disabled) .custom-select-input {
    border-color: rgba(220,38,38,0.55) !important;
    background: rgba(255,255,255,0.10) !important;
}
.hero-panel-left .custom-select-box.open .custom-select-input {
    border-color: #dc2626 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: none !important;
}
.hero-panel-left .custom-select-input.placeholder {
    color: rgba(255,255,255,0.38) !important;
}
.hero-panel-left .custom-select-box.disabled .custom-select-input {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.25) !important;
    cursor: not-allowed !important;
}
.hero-panel-left .custom-select-dropdown {
    background: #161d2e !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5) !important;
}
.hero-panel-left .custom-select-option {
    color: rgba(255,255,255,0.8) !important;
    font-size: 13.5px !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    background: transparent !important;
}
.hero-panel-left .custom-select-option:hover {
    background: rgba(220,38,38,0.18) !important;
    color: #fff !important;
}
.hero-panel-left .custom-select-option.selected {
    background: rgba(220,38,38,0.25) !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.hero-panel-left .custom-select-search {
    background: #1a2236 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.hero-panel-left .custom-select-search input,
.hero-panel-left .custom-select-search-input {
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    color: #fff !important;
    border-radius: 6px !important;
}
.hero-panel-left .custom-select-search input::placeholder,
.hero-panel-left .custom-select-search-input::placeholder {
    color: rgba(255,255,255,0.3) !important;
}
.hero-panel-left .custom-select-search input:focus,
.hero-panel-left .custom-select-search-input:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220,38,38,0.2) !important;
    outline: none !important;
}
.hero-panel-left .custom-select-search-icon svg {
    stroke: rgba(255,255,255,0.4) !important;
}

.btn-find-parts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 4px;
    letter-spacing: 0.3px;
}
.btn-find-parts:hover { background: #b91c1c; transform: translateY(-1px); }
.btn-find-parts:active { transform: translateY(0); }

.hero-panel-right {
    position: relative;
    overflow: hidden;
    background: #111827;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 36px 28px;
    background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.banner-title {
    font-size: 30px;
    font-weight: 900;
    margin: 0 0 8px;
    line-height: 1.15;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    max-width: 600px;
}

.banner-sub {
    font-size: 15px;
    font-weight: 400;
    margin: 0 0 18px;
    opacity: 0.88;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    max-width: 500px;
    line-height: 1.5;
}

.banner-cta {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.2s ease;
}
.banner-cta:hover { background: #b91c1c; }

.slider-dots {
    position: absolute;
    bottom: 14px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 10;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}
.slider-dot.active {
    background: white;
    transform: scale(1.3);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 10;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: rgba(220,38,38,0.7); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }

.banner-placeholder {
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.02) 0px,
        rgba(255,255,255,0.02) 10px,
        transparent 10px,
        transparent 20px
    );
}
.banner-placeholder-inner {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
}
.banner-placeholder-inner p { margin-top: 12px; }

.hero-vehicle-display {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 8px;
    backdrop-filter: blur(8px);
}
.hero-vehicle-icon {
    flex-shrink: 0;
    opacity: .85;
}
.hero-vehicle-info {
    flex: 1;
    min-width: 0;
}
.hero-vehicle-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 3px;
}
.hero-vehicle-name {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.hero-vehicle-specs {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-vehicle-edit {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .2s;
}
.hero-vehicle-edit:hover { background: rgba(255,255,255,0.25); }

.hero-select-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #dc2626;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 20px rgba(220,38,38,.4);
}
.hero-select-btn:hover { background: #b91c1c; transform: translateY(-1px); }

@media (max-width: 640px) {
    .hero-vehicle-display {
        padding: 12px 14px;
        gap: 10px;
    }
    .hero-vehicle-icon { display: none; }   
    .hero-vehicle-name { font-size: 14px; }
    .hero-vehicle-specs { font-size: 10.5px; }
    .hero-select-btn { padding: 12px 20px; font-size: 14px; width: 100%; justify-content: center; }
}

@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    
    .hero-panel-right { order: -1; }
    .hero-panel-left  { order:  1; }

    .hero-panel-right {
        min-height: 340px;
    }
    .banner-slider,
    .banner-placeholder { min-height: 340px; }

    .banner-title { font-size: 22px; }
    .banner-sub   { font-size: 13px; }

    .hero-panel-inner {
        padding: 28px 24px 36px;
    }

    .hero-title    { font-size: 26px; }
    .hero-subtitle { margin-bottom: 18px; }

    
    .vehicle-finder-split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    
    .vehicle-finder-split .btn-find-parts {
        grid-column: 1 / -1;
        margin-top: 2px;
    }
}

@media (max-width: 600px) {
    .hero-panel-right {
        min-height: 220px;
    }
    .banner-slider,
    .banner-placeholder { min-height: 220px; }

    .banner-overlay-text {
        padding: 16px 18px;
    }
    .banner-title { font-size: 18px; margin-bottom: 4px; }
    .banner-sub   { font-size: 12px; margin-bottom: 10px; display: none; }
    .banner-cta   { padding: 6px 14px; font-size: 12px; }

    
    .slider-arrow { display: none; }

    .hero-panel-inner {
        padding: 20px 16px 28px;
    }
    .hero-title    { font-size: 22px; }
    .trust-badge   { font-size: 11px; padding: 4px 12px; margin-bottom: 14px; }

    
    .vehicle-finder-split {
        grid-template-columns: 1fr;
        gap: 10px;
    }

        .hero-vehicle-details { font-size: 14px; }
    .hero-vehicle-details strong { font-size: 16px; }
    .hero-vehicle-actions { flex-direction: column; gap: 8px; }
    

    
    .slider-dots { bottom: 10px; right: 12px; }
}

.products-section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow);
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.no-image {
    color: var(--gray);
    font-size: 14px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price-old {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.btn-add-cart {
    padding: 8px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
}

.out-of-stock {
    color: var(--danger);
    font-size: 14px;
    font-weight: 600;
}

.btn-view-all {
    display: inline-block;
    padding: 12px 40px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-view-all:hover {
    background: var(--primary-dark);
}

.features-section {
    padding: 72px 0 80px;
    background: #111827;
}

.features-heading {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -.3px;
}

.features-heading span {
    color: #dc2626;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(255,255,255,.06);
    border-radius: 16px;
    overflow: hidden;
}

.feature-box {
    padding: 28px 24px;
    background: transparent;
    text-align: left;
    transition: background .2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-box:hover {
    background: rgba(220,38,38,.08);
}

.feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(220,38,38,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrap svg {
    width: 22px;
    height: 22px;
    stroke: #dc2626;
}

.feature-box h3 {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.feature-box p {
    color: rgba(255,255,255,.55);
    font-size: 13px;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-section { padding: 20px 0 10px; }
    .features-heading { font-size: 20px; margin-bottom: 20px; }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1px;
        border-radius: 12px;
    }
    .feature-box {
        padding: 14px 16px;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        min-height: 68px;
    }
    .feature-box:hover { background: rgba(220,38,38,.06); }
    .feature-icon-wrap {
        width: 40px;
        height: 40px;
        min-width: 40px;    
        flex-shrink: 0;
        border-radius: 10px;
    }
    .feature-icon-wrap svg { width: 20px; height: 20px; }
    .feature-box .feature-text { flex: 1; min-width: 0; }
    .feature-box h3 { font-size: 13px; font-weight: 800; color: #fff; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .feature-box p  { font-size: 12px; line-height: 1.45; margin: 0; color: rgba(255,255,255,.5); }
}

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

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 1024px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .finder-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .vehicle-select-wrapper:first-child {
        display: none;
        
    }

    .vehicle-select-wrapper:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .nav-menu {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .finder-row {
        grid-template-columns: 1fr;
    }

    .vehicle-select-wrapper:first-child {
        display: none;
        
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

.cart-count {
    position: absolute ;
    top: -6px ;
    right: -6px ;
    background: #dc2626 ;
    color: #ffffff ;
    font-size: 11px ;
    font-weight: 700 ;
    width: 20px ;
    height: 20px ;
    min-width: 20px ;
    border-radius: 50% ;
    display: flex ;
    align-items: center ;
    justify-content: center ;
    line-height: 1 ;
    padding: 0 ;
    box-shadow: 0 0 0 2px #ffffff ;
    z-index: 10;
}

.hero-new {
    background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
    padding: 64px 24px 72px;
    text-align: center;
    z-index: 10;
}
.hero-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(220,38,38,0.10) 0%, transparent 65%);
    pointer-events: none;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: transparent;
}
.hero-bg-default {
    z-index: 0;
    opacity: 1;
    transition: opacity 1.2s ease;
}
.hero-bg-car {
    z-index: 1;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.hero-new.car-active .hero-bg-car {
    opacity: 1;
}
.hero-new.car-active .hero-bg-default {
    opacity: 0.15;
}

.hero-light-flash {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.92) 0%, rgba(255,255,230,0.6) 30%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.08s ease-in;
}
.hero-new.flash-on .hero-light-flash {
    opacity: 1;
}
.hero-new.flash-fade .hero-light-flash {
    opacity: 0;
    transition: opacity 0.9s ease-out;
}
.hero-center-wrap {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-main-title {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.hero-sub-title {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    margin: 0 0 32px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.hero-finder-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}
.hfr-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 130px;
    max-width: 170px;
}
.hfr-group.hfr-chassis { min-width: 175px; max-width: 225px; flex: 1.4; }
.hfr-group.hfr-fuel    { min-width: 110px; max-width: 130px; flex: 0.75; }
.hfr-group.hfr-engine  { min-width: 200px; max-width: 280px; flex: 1.8; }
.hfr-group label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: left;
}
.hfr-btn { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.hfr-btn label { font-size: 10px; color: transparent; }
.hfr-btn .btn-find-parts { height: 46px; white-space: nowrap; }

.hero-new .custom-select-input {
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    line-height: 46px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.hero-new .custom-select-input:hover,
.hero-new .custom-select-box:hover:not(.disabled) .custom-select-input {
    border-color: rgba(220,38,38,0.6) !important;
    background: rgba(255,255,255,0.10) !important;
    transform: none !important;
    box-shadow: none !important;
}
.hero-new .custom-select-box.open .custom-select-input { border-color: #dc2626 !important; box-shadow: none !important; }
.hero-new .custom-select-input.placeholder { color: rgba(255,255,255,0.35) !important; }
.hero-new .custom-select-box.disabled .custom-select-input {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.22) !important;
    cursor: not-allowed !important;
}
.hero-new .custom-select-dropdown {
    background: #161d2e !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5) !important;
}
.hero-new .custom-select-option {
    color: rgba(255,255,255,0.8) !important;
    font-size: 13px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    background: transparent !important;
}
.hero-new .custom-select-option:hover  { background: rgba(220,38,38,0.18) !important; color: #fff !important; }
.hero-new .custom-select-option.selected { background: rgba(220,38,38,0.25) !important; color: #fff !important; font-weight:600 !important; }
.hero-new .custom-select-search { background: #1a2236 !important; border-bottom: 1px solid rgba(255,255,255,0.08) !important; }
.hero-new .custom-select-search input { background: rgba(255,255,255,0.07) !important; border: 1px solid rgba(255,255,255,0.14) !important; color:#fff !important; }
.hero-new .custom-select-search input::placeholder { color: rgba(255,255,255,0.3) !important; }

.hero-focus-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 9;
    transition: background 0.35s ease;
    pointer-events: none;
}
.hero-focus-overlay.active {
    display: block;
    background: rgba(0,0,0,0.55);
    pointer-events: auto;
}

.hero-cat-section {
    background: #fff;
    margin-top: 0;
    padding: 20px 0 8px;
    border-bottom: 1px solid #f0f0f0;
}

.hcs-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hcs-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    transition: all .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    z-index: 2;
    flex-shrink: 0;
}
.hcs-arrow:hover { background: #dc2626; border-color: #dc2626; color: #fff; box-shadow: 0 4px 12px rgba(220,38,38,.25); }
.hcs-arrow:disabled { opacity: .3; cursor: default; pointer-events: none; }

.hcs-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 2px 14px;
    flex: 1;
}
.hcs-track::-webkit-scrollbar { display: none; }

.hcs-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #374151;
    width: 150px;
    transition: transform .2s;
}
.hcs-item:hover { transform: translateY(-3px); color: #dc2626; }

.hcs-thumb {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,.10);
    transition: box-shadow .2s, transform .2s;
    border: 1.5px solid #f0f0f0;
}
.hcs-item:hover .hcs-thumb {
    box-shadow: 0 6px 20px rgba(220,38,38,.18);
    border-color: #fecaca;
    transform: scale(1.04);
}
.hcs-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity .4s ease;
}
.hcs-thumb img.img-visible { opacity: 1; }
.hcs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.18) 100%);
    border-radius: 15px;
    opacity: 0;
    transition: opacity .2s;
}
.hcs-item:hover .hcs-overlay { opacity: 1; }

.hcs-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}

.hcs-label {
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
    color: inherit;
    line-height: 1.3;
    max-width: 90px;
    letter-spacing: -.1px;
}

@media (max-width: 640px) {
    .hero-cat-section {
        padding: 14px 0 6px;
    }
    
    .hero-cat-section .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }
    .hcs-wrap {
        position: relative;
        gap: 0;
    }
    .hcs-arrow { display: none !important; }
    .hcs-track {
        gap: 20px;
        padding: 4px 12px 10px;
    }
    .hcs-item { width: 72px; }
    .hcs-thumb { width: 60px; height: 60px; border-radius: 12px; }
    .hcs-label { font-size: 10.5px; max-width: 70px; }
}

.promo-slider-section { padding: 40px 0 32px; background: #f8fafc; }
.promo-slider-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.promo-slider { position: relative; width: 100%; border-radius: 14px; overflow: hidden; }

@media (max-width: 640px) {
    .promo-slider-section {
        padding: 0;
        background: #000;
        overflow: hidden;
    }
    .promo-slider-section .container {
        padding: 0;
        max-width: 100%;
    }
    .promo-slider-wrap { gap: 10px; }
    
    .promo-slider {
        border-radius: 0;
        overflow: visible;
        display: block;
        position: relative;
    }
    
    .promo-mobile-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 0;
    }
    .promo-mobile-track::-webkit-scrollbar { display: none; }
    .promo-arrow { display: none !important; }
    .promo-slide { display: none !important; }
    .promo-mobile-track { display: flex !important; }
}
.promo-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
    position: absolute;
    top: 0; left: 0; right: 0;
}
.promo-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; position: relative; }
.promo-slide.leaving { opacity: 0; transform: translateX(-40px); position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.promo-img-wrap {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 650 / 290;
    background: linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%);
    background-size: 700px 100%;
    animation: shimmer 1.4s infinite linear;
    text-decoration: none;
}
.promo-img-wrap.img-loaded { background:#e5e7eb; animation:none; }
.promo-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.4s ease, transform 0.4s ease; }
.promo-img-wrap img.img-visible { opacity:1; }
.promo-img-wrap:hover img { transform: scale(1.03); }
.promo-img-empty { background: transparent; }
.promo-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.92); border: none; border-radius: 50%;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.12); z-index: 10;
    transition: background 0.2s, box-shadow 0.2s;
}
.promo-arrow:hover { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.promo-prev { left: 14px; }
.promo-next { right: 14px; }
.promo-indicators { display: flex; align-items: center; justify-content: center; gap: 8px; }
.promo-rect { display: block; width: 32px; height: 4px; border-radius: 2px; background: #d1d5db; cursor: pointer; transition: background 0.25s ease, width 0.25s ease; }
.promo-rect.active { background: #dc2626; width: 48px; }

.cat-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 16px;
    margin-top: 12px;
    gap: 0;
    position: relative;
}
.cat-divider-line {
    width: 100%;
    height: 2px;
    background: #f3f4f6;
    border-radius: 1px;
    position: relative;
    max-width: none;
}
.cat-divider-dot {
    width: 10px;
    height: 10px;
    background: #dc2626;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dc2626;
    margin-top: -6px;
    flex-shrink: 0;
}
.category-card:hover .cat-divider-dot {
    background: #b91c1c;
    transform: scale(1.15);
    transition: transform .2s;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.category-card {
    text-decoration: none;
    color: #374151;
    text-align: center;
    transition: transform 0.2s ease;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    padding: 20px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(220,38,38,.10);
    border-color: #fca5a5;
}
.category-image {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%);
    background-size: 700px 100%;
    animation: shimmer 1.4s infinite linear;
}
.category-image.img-loaded { background:#f9fafb; animation:none; }
.category-image img { width:100%; height:100%; object-fit:contain; opacity:0; transition: opacity 0.4s ease; mix-blend-mode:multiply; }
.category-image img.img-visible { opacity:1; }
.category-card h3 { font-size: 12px; font-weight: 700; color: #374151; margin: 0; line-height: 1.3; }

.categories-section {
    padding: 50px 0 40px;
    background: #f9fafb;
}
.cats-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}
.cats-section-title {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 900;
    color: #111827;
    letter-spacing: -.3px;
    margin: 0;
}

@media (max-width: 640px) {
    .categories-section {
        padding: 10px 0 20px;
        background: #fff;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .category-card {
        background: #fff;
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid #f3f4f6;
        box-shadow: 0 2px 8px rgba(0,0,0,.05);
        text-align: center;
        padding: 0 0 12px;
        position: relative;
    }
    .category-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(220,38,38,.12); }
    .category-image {
        width: 100%;
        height: 110px;
        margin: 0 0 0;
        border-radius: 0;
    }
    
    .category-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 0 14px;
    }
    .category-image {
        width: 100%;
        height: 110px;
        margin: 0;
        border-radius: 14px 14px 0 0;
        flex-shrink: 0;
    }
    
    
    .category-card h3 {
        font-size: 12px;
        font-weight: 700;
        color: #111827;
        margin-top: 10px;
        padding: 0 8px;
        line-height: 1.3;
        text-align: center;
    }
    
    .category-card::after,
    .category-card::before { display: none !important; content: none !important; }
}

.promo-img-wrap { position: relative; }
.promo-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none;
}
.promo-overlay-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.promo-overlay-sub {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.88);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-finder-row .hfr-group {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}

@media (max-width: 640px) {

    .hero-new            { padding: 36px 16px 48px; }
    .hero-main-title     { font-size: 26px; letter-spacing: -0.3px; }
    .hero-sub-title      { margin-bottom: 24px; }

    .hero-finder-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .hero-finder-row .hfr-group,
    .hero-finder-row .hfr-btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: none;
    }

    
    .hfr-group.hfr-chassis,
    .hfr-group.hfr-fuel,
    .hfr-group.hfr-engine,
    .hfr-btn {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0;
        pointer-events: none;
        transition: max-height 0.38s ease,
                    opacity    0.30s ease,
                    margin-top 0.30s ease;
    }

    
    .hfr-group.hfr-chassis.hfr-visible,
    .hfr-group.hfr-fuel.hfr-visible,
    .hfr-group.hfr-engine.hfr-visible,
    .hfr-btn.hfr-visible {
        max-height: 80px;
        overflow: visible;
        opacity: 1;
        margin-top: 10px;
        pointer-events: auto;
    }

    .hfr-btn label { display: none; }

    .hfr-btn .btn-find-parts {
        width: 100%;
        height: 50px;
        font-size: 15px;
        justify-content: center;
    }

    
    .hfr-group label::before {
        content: attr(data-step);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        background: rgba(220, 38, 38, 0.7);
        border-radius: 50%;
        font-size: 9px;
        font-weight: 800;
        color: #fff;
        margin-right: 6px;
        vertical-align: middle;
    }
}

@media (max-width: 639px) {
    .products-grid .quantity-selector-wrapper,
    .products-grid .quantity-custom-input {
        display: none !important;
    }
    .products-grid .quantity-cart-row {
        display: block;
    }
    .products-grid .btn-add-to-cart-new {
        width: 100%;
    }
}

.mobile-menu-content { padding: 0; }

.mm-account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    transition: background 0.15s;
}
.mm-account-link:hover { background: #f3f4f6; color: #dc2626; }
.mm-account-link svg:first-child { color: #6b7280; flex-shrink: 0; }

.mm-cat-list,
.mm-sub-list,
.mm-grand-list { list-style:none; margin:0; padding:0; }

.mm-cat-item { border-bottom: 1px solid #f3f4f6; }

.mm-cat-row { display:flex; align-items:center; }

.mm-cat-link {
    flex: 1;
    display: block;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    transition: color 0.15s;
}
.mm-cat-link:hover,
.mm-cat-link:active { color: #dc2626; }

.mm-sub-link  { font-size:14px; font-weight:500; color:#374151; padding-left:36px; }
.mm-grand-link{ font-size:13px; font-weight:400; color:#6b7280;  padding-left:52px; }

.mm-toggle {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: none; border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af;
    transition: transform 0.2s, color 0.15s;
    padding: 0;
}
.mm-toggle:hover       { color: #dc2626; }
.mm-toggle.mm-open     { transform: rotate(90deg); color: #dc2626; }

.mm-sub-list {
    background: #fafafa;
    border-left: 3px solid #f3f4f6;
    margin-left: 20px;
}
.mm-sub-list .mm-cat-item { border-bottom: 1px solid #f0f0f0; }

.mm-grand-list {
    background: #f5f5f5;
    border-left: 3px solid #e5e7eb;
    margin-left: 16px;
}

.mm-quick-links {
    display: flex;
    border-top: 2px solid #f3f4f6;
    margin-top: 8px;
}
.mm-quick-links a {
    flex: 1; text-align: center;
    padding: 14px 8px;
    font-size: 13px; font-weight: 600;
    color: #6b7280; text-decoration: none;
    border-right: 1px solid #f3f4f6;
    transition: color 0.15s, background 0.15s;
}
.mm-quick-links a:last-child { border-right: none; }
.mm-quick-links a:hover { color: #dc2626; background: #fef2f2; }

@media (min-width: 769px) and (max-width: 1024px) {

    
    .header-row-main { gap: 6px; padding: 8px 0; }
    .header-icon-vehicle { max-width: 160px; }
    .logo-desktop img { width: 38px; }

    
    .nav-menu a { font-size: 10px; padding: 8px 4px; }
    .nav-menu-bar { overflow-x: auto; }

    
    .products-grid { grid-template-columns: repeat(3, 1fr) !important; }

    
    .hero-split { grid-template-columns: 1fr !important; }
    .hero-panel-right { min-height: 260px; }

    
    .cart-container { grid-template-columns: 1fr !important; }

    
    .checkout-grid { grid-template-columns: 1fr !important; }

    
    .product-layout { grid-template-columns: 1fr !important; gap: 20px; }
    .product-image-section { position: relative; top: 0; }

    
    .trust-badges { grid-template-columns: repeat(2, 1fr) !important; }
    .trust-badge-item:nth-child(2) { border-right: none; }
    .trust-badge-item:nth-child(1),
    .trust-badge-item:nth-child(2) { border-bottom: 1px solid #e5e7eb; }

    
    .admin-container { grid-template-columns: 200px 1fr; }
}

.ps-section {
    padding: 20px 0 15px;
    background: #fff;
}
.ps-section:nth-of-type(even) { background: #f9fafb; }

.ps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.ps-title-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ps-title {
    font-size: 22px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -.3px;
}
.ps-sub { font-size: 13px; color: #9ca3af; font-weight: 500; }

.ps-header-actions { display: flex; align-items: center; gap: 12px; }
.ps-view-all-link {
    display: flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 700; color: #dc2626;
    text-decoration: none; white-space: nowrap;
    padding: 8px 4px; transition: gap .2s;
}
.ps-view-all-link:hover { gap: 7px; color: #b91c1c; }
.ps-controls { display: flex; gap: 8px; }
.ps-arrow {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #374151;
    transition: all .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.ps-arrow:hover { background: #dc2626; border-color: #dc2626; color: #fff; box-shadow: 0 4px 12px rgba(220,38,38,.25); }
.ps-arrow:disabled { opacity: .3; cursor: default; pointer-events: none; }

.ps-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
}
.ps-track::-webkit-scrollbar { display: none; }

.ps-card {
    flex-shrink: 0;
    width: 220px;
    background: white;
    border-radius: 14px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
    display: flex;
    flex-direction: column;
}
.ps-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.11);
}

.ps-img-wrap {
    display: block;
    height: 220px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.ps-img-wrap img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform .3s;
}
.ps-card:hover .ps-img-wrap img { transform: scale(1.05); }
.ps-no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; background: #f3f4f6;
}

.ps-badge {
    position: absolute; top: 0px;right:0;
    font-size: 10px; font-weight: 400;
    padding: 3px 8px; border-radius: 5px;
}
.ps-badge-sale { background: #dc2626; color: #fff; }

.ps-info {
    padding: 12px 14px 14px;
    display: flex; flex-direction: column; flex: 1;
}
.ps-brand {
    font-size: 10px; font-weight: 700;
    color: #9ca3af; text-transform: uppercase;
    letter-spacing: .5px; margin-bottom: 4px;
}
.ps-name {
    font-size: 13px; font-weight: 700; color: #111827;
    text-decoration: none; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 8px; flex: 1;
}
.ps-name:hover { color: #dc2626; }

.ps-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.ps-price-new { font-size: 15px; font-weight: 900; color: #dc2626; }
.ps-price-old { font-size: 11px; color: #9ca3af; text-decoration: line-through; }

.ps-atc {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 10px 12px;
    background: #dc2626; color: #fff;
    border: none; border-radius: 8px;
    font-size: 13px; font-weight: 700;
    cursor: pointer; transition: background .2s, transform .2s;
    margin-top: auto;
}
.ps-atc:hover { background: #b91c1c; transform: scale(1.01); }
.ps-oos {
    text-align: center; font-size: 11px;
    color: #9ca3af; font-weight: 600; padding: 7px 0;
}

.ps-progress-wrap {
    height: 3px;
    background: #f3f4f6;
    border-radius: 2px;
    margin-top: 16px;
    overflow: hidden;
    display: none;
}
.ps-progress-bar {
    height: 100%;
    background: #dc2626;
    border-radius: 2px;
    width: 0%;
    transition: width .25s ease;
}

@media (max-width: 640px) {
    .ps-card { width: 220px; }
    .ps-img-wrap { height: 180px; }
    .ps-title { font-size: 18px; }
    .ps-header { align-items: flex-start; }  /* keep View All aligned with the title line, even if the subtitle wraps to a 2nd line */
    .ps-header-actions { padding-top: 1px; }
    .ps-controls { display: none; }          
    .ps-progress-wrap { display: block; }   
    .ps-track { padding-bottom: 4px; }
}

.promo-mobile-track {
    display: none; 
}

@media (max-width: 640px) {
    .promo-slider-section {
        padding: 0;
        background: transparent;
        overflow: hidden;
    }
    .promo-slider-section .container {
        padding: 0;
        max-width: 100%;
    }
    .promo-slider-wrap { gap: 8px; }
    
    .promo-slider { display: none !important; }
    .promo-indicators { display: flex; margin-top: 10px; }
    
    .promo-mobile-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 10px;
        padding: 0 5vw 0 0; 
    }
    .promo-mobile-track::-webkit-scrollbar { display: none; }
    .promo-mobile-item {
        flex-shrink: 0;
        width: 90vw;
        scroll-snap-align: start;
        overflow: hidden;
        position: relative;
        display: block;
        text-decoration: none;
        aspect-ratio: 16 / 7;
        background: linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%);
        background-size: 700px 100%;
        animation: shimmer 1.4s infinite linear;
    }
    .promo-mobile-item img {
        width: 100%; height: 100%; object-fit: cover;
        display: block; opacity: 0; transition: opacity .4s;
    }
    .promo-mobile-item img.img-visible { opacity: 1; }
    #promoProgressWrap { display: block !important; margin: 8px 16px 0; }
}

.brands-section {
    padding: 48px 0 52px;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}

.brands-heading {
    font-size: 20px;
    font-weight: 900;
    color: #111827;
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: -.2px;
}

.brands-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brands-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    transition: all .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.brands-arrow:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
.brands-arrow:disabled { opacity: .3; cursor: default; pointer-events: none; }

.brands-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 2px 12px;
    flex: 1;
}
.brands-track::-webkit-scrollbar { display: none; }

.brand-card {
    flex-shrink: 0;
    width: 140px;
    height: 80px;
    border-radius: 12px;
    border: 1.5px solid #f3f4f6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.brand-card:hover {
    border-color: #dc2626;
    box-shadow: 0 4px 16px rgba(220,38,38,.12);
    transform: translateY(-2px);
}
.brand-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .65;
    transition: all .2s;
}
.brand-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
.brand-name-text, .brand-name-fallback {
    font-size: 13px;
    font-weight: 800;
    color: #6b7280;
    text-align: center;
    letter-spacing: -.2px;
    transition: color .2s;
}
.brand-card:hover .brand-name-text,
.brand-card:hover .brand-name-fallback { color: #dc2626; }

@media (max-width: 640px) {
    .brand-card { width: 110px; height: 64px; padding: 10px 12px; border-radius: 10px; }
    .brands-arrow { display: none; }
    .brands-section { padding: 0px 0 20px; }
}

@media (max-width: 640px) {
    #promoProgressWrap { display: block !important; }
}

.btn-add-cart, .btn-add-to-cart-new, .add-to-cart-btn, .related-btn-add-to-cart, .ps-atc, .cross-sell-add-btn {
    position: relative !important;
    overflow: hidden !important;
    transform: none !important;
    transition: background .2s !important;
}
.btn-add-cart, .btn-add-to-cart-new, .add-to-cart-btn, .related-btn-add-to-cart, .ps-atc, .cross-sell-add-btn:hover,
.btn-add-cart, .btn-add-to-cart-new, .add-to-cart-btn, .related-btn-add-to-cart, .ps-atc, .cross-sell-add-btn:active { transform: none !important; }

.atc-sizer {
    display: inline-flex;
    align-items: center;
    visibility: hidden;
    pointer-events: none;
    white-space: nowrap;
    padding: 0 4px;
}

.atc-label-default,
.atc-label-done {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 0 10px;
    pointer-events: none; white-space: nowrap;
    transition: opacity .22s, transform .22s;
}
.atc-label-default { opacity: 1; transform: translateY(0); }
.atc-label-done    { opacity: 0; transform: translateY(10px); }

.btn-add-cart.is-adding .atc-label-default, .btn-add-to-cart-new.is-adding .atc-label-default, .add-to-cart-btn.is-adding .atc-label-default, .related-btn-add-to-cart.is-adding .atc-label-default, .ps-atc.is-adding .atc-label-default, .cross-sell-add-btn.is-adding .atc-label-default { opacity: 0; transform: translateY(-10px); }
.btn-add-cart.is-done .atc-label-default, .btn-add-to-cart-new.is-done .atc-label-default, .add-to-cart-btn.is-done .atc-label-default, .related-btn-add-to-cart.is-done .atc-label-default, .ps-atc.is-done .atc-label-default, .cross-sell-add-btn.is-done .atc-label-default { opacity: 0; transform: translateY(-10px); }
.btn-add-cart.is-done .atc-label-done, .btn-add-to-cart-new.is-done .atc-label-done, .add-to-cart-btn.is-done .atc-label-done, .related-btn-add-to-cart.is-done .atc-label-done, .ps-atc.is-done .atc-label-done, .cross-sell-add-btn.is-done .atc-label-done { opacity: 1; transform: translateY(0); }
.btn-add-cart.is-done, .btn-add-to-cart-new.is-done, .add-to-cart-btn.is-done, .related-btn-add-to-cart.is-done, .ps-atc.is-done, .cross-sell-add-btn.is-done { background: #16a34a !important; }

.wheel-scene {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s;
}
.btn-add-cart.is-adding .wheel-scene, .btn-add-to-cart-new.is-adding .wheel-scene, .add-to-cart-btn.is-adding .wheel-scene, .related-btn-add-to-cart.is-adding .wheel-scene, .ps-atc.is-adding .wheel-scene, .cross-sell-add-btn.is-adding .wheel-scene { opacity: 1; }

.wheel-svg {
    width: 30px; height: 30px;
    flex-shrink: 0; opacity: 0; display: block;
}
.btn-add-cart.is-adding .wheel-svg, .btn-add-to-cart-new.is-adding .wheel-svg, .add-to-cart-btn.is-adding .wheel-svg, .related-btn-add-to-cart.is-adding .wheel-svg, .ps-atc.is-adding .wheel-svg, .cross-sell-add-btn.is-adding .wheel-svg {
    opacity: 1;
    animation: atcWheelSpin .5s linear infinite;
}
@keyframes atcWheelSpin { to { transform: rotate(360deg); } }

.smoke-wrap {
    position: absolute;
    
    left: 50%;
    bottom: 4px;
    margin-left: -15px;
    width: 0; height: 0;
}
.smoke-p {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    opacity: 0;
    bottom: 0; left: 0;
}
.btn-add-cart.is-adding .smoke-p:nth-child(1), .btn-add-to-cart-new.is-adding .smoke-p:nth-child(1), .add-to-cart-btn.is-adding .smoke-p:nth-child(1), .related-btn-add-to-cart.is-adding .smoke-p:nth-child(1), .ps-atc.is-adding .smoke-p:nth-child(1), .cross-sell-add-btn.is-adding .smoke-p:nth-child(1) { width:9px; height:8px; margin-left:-6px; animation: atcSmoke 1.0s 0.00s ease-out infinite; }
.btn-add-cart.is-adding .smoke-p:nth-child(2), .btn-add-to-cart-new.is-adding .smoke-p:nth-child(2), .add-to-cart-btn.is-adding .smoke-p:nth-child(2), .related-btn-add-to-cart.is-adding .smoke-p:nth-child(2), .ps-atc.is-adding .smoke-p:nth-child(2), .cross-sell-add-btn.is-adding .smoke-p:nth-child(2) { width:12px; height:11px; margin-left:4px; animation: atcSmoke 1.0s 0.13s ease-out infinite; }
.btn-add-cart.is-adding .smoke-p:nth-child(3), .btn-add-to-cart-new.is-adding .smoke-p:nth-child(3), .add-to-cart-btn.is-adding .smoke-p:nth-child(3), .related-btn-add-to-cart.is-adding .smoke-p:nth-child(3), .ps-atc.is-adding .smoke-p:nth-child(3), .cross-sell-add-btn.is-adding .smoke-p:nth-child(3) { width:8px; height:7px; margin-left:2px; animation: atcSmoke 1.0s 0.26s ease-out infinite; }
.btn-add-cart.is-adding .smoke-p:nth-child(4), .btn-add-to-cart-new.is-adding .smoke-p:nth-child(4), .add-to-cart-btn.is-adding .smoke-p:nth-child(4), .related-btn-add-to-cart.is-adding .smoke-p:nth-child(4), .ps-atc.is-adding .smoke-p:nth-child(4), .cross-sell-add-btn.is-adding .smoke-p:nth-child(4) { width:14px; height:12px; margin-left:6px; animation: atcSmoke 1.0s 0.39s ease-out infinite; }
.btn-add-cart.is-adding .smoke-p:nth-child(5), .btn-add-to-cart-new.is-adding .smoke-p:nth-child(5), .add-to-cart-btn.is-adding .smoke-p:nth-child(5), .related-btn-add-to-cart.is-adding .smoke-p:nth-child(5), .ps-atc.is-adding .smoke-p:nth-child(5), .cross-sell-add-btn.is-adding .smoke-p:nth-child(5) { width:10px; height:9px; margin-left:-4px; animation: atcSmoke 1.0s 0.52s ease-out infinite; }
.btn-add-cart.is-adding .smoke-p:nth-child(6), .btn-add-to-cart-new.is-adding .smoke-p:nth-child(6), .add-to-cart-btn.is-adding .smoke-p:nth-child(6), .related-btn-add-to-cart.is-adding .smoke-p:nth-child(6), .ps-atc.is-adding .smoke-p:nth-child(6), .cross-sell-add-btn.is-adding .smoke-p:nth-child(6) { width:13px; height:11px; margin-left:-2px; animation: atcSmoke 1.0s 0.65s ease-out infinite; }
.btn-add-cart.is-adding .smoke-p:nth-child(7), .btn-add-to-cart-new.is-adding .smoke-p:nth-child(7), .add-to-cart-btn.is-adding .smoke-p:nth-child(7), .related-btn-add-to-cart.is-adding .smoke-p:nth-child(7), .ps-atc.is-adding .smoke-p:nth-child(7), .cross-sell-add-btn.is-adding .smoke-p:nth-child(7) { width:9px; height:8px; margin-left:-8px; animation: atcSmoke 1.0s 0.78s ease-out infinite; }
.btn-add-cart.is-adding .smoke-p:nth-child(8), .btn-add-to-cart-new.is-adding .smoke-p:nth-child(8), .add-to-cart-btn.is-adding .smoke-p:nth-child(8), .related-btn-add-to-cart.is-adding .smoke-p:nth-child(8), .ps-atc.is-adding .smoke-p:nth-child(8), .cross-sell-add-btn.is-adding .smoke-p:nth-child(8) { width:11px; height:10px; margin-left:8px; animation: atcSmoke 1.0s 0.91s ease-out infinite; }

@keyframes atcSmoke {
    0%   { opacity: .75; transform: translate(0,    0)      scale(.4); }
    40%  { opacity: .45; transform: translate(-18px, -3px)  scale(1.1); }
    100% { opacity: 0;   transform: translate(-42px, -5px)  scale(2.0); }
}

@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

.hamburger-btn,
.mobile-menu,
.mobile-menu-overlay,
.mobile-search-trigger,
.mobile-search-overlay,
.vehicle-bottom-sheet {
    display: none;
}

@media (max-width: 768px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
.btn-search-vehicle{
	width:100%;
}
    
    .hamburger-btn,
    .mobile-search-trigger {
        display: flex !important;
    }
    
    .header .container {
        padding: 0 12px;
    }
    
    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
        gap: 12px;
    }
    
    
    .hamburger-btn {
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        padding: 10px;
        position: relative;
        z-index: 1001;
    }
    
    .hamburger-btn span {
        display: block;
        width: 24px;
        height: 2.5px;
        background: #2C3E50;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }
    
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
    
    
    .logo {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        font-size: 18px;
        font-weight: 800;
        text-decoration: none;
        color: var(--primary);
    }
    
    .logo svg {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 16px;
        letter-spacing: -0.5px;
    }
    
    .header-icon-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: none;
        cursor: pointer;
        position: relative;
        transition: all 0.2s;
        border-radius: 8px;
    }
    
    .header-icon-btn:active {
        transform: scale(0.95);
        background: rgba(220, 38, 38, 0.1);
    }
    
    .header-icon-btn svg {
        stroke: #2C3E50;
    }
    
    
    .cart-count {
        top: -2px;
        right: 0px;
    }
	.no-vehicle-selected{
		min-width: 18px !important;
        height: 18px !important;
	}
}

@media (max-width: 768px) {
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        backdrop-filter: blur(2px);
        display: block !important; 
    }

    .ps-section {
    padding: 15px 0 15px;
}

.ps-info{

}
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -320px;
        width: 320px;
        max-width: 85vw;
        height: 100%;
        background: white;
        z-index: 1000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
        display: block !important; 
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        color: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu-header h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
    }
    
    .mobile-menu-close {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        font-size: 28px;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        transition: all 0.2s;
    }
    
    .mobile-menu-close:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.3);
    }
    
    .mobile-menu-content {
        padding-bottom: 80px; 
    }
    
    
    .mobile-menu-user {
        padding: 20px;
        border-bottom: 1px solid #e5e7eb;
        background: #f9fafb;
    }
    
    .mobile-menu-user-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: white;
        border-radius: 8px;
        text-decoration: none;
        color: #2C3E50;
        font-weight: 600;
        transition: all 0.2s;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu-user-link:active {
        transform: scale(0.98);
        background: #fef2f2;
    }
    
    .mobile-menu-user-link svg {
        stroke: #dc2626;
    }
    
    
    .mobile-menu-section {
        padding: 20px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .mobile-menu-title {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #6b7280;
        margin-bottom: 15px;
    }
    
    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu-list li {
        margin-bottom: 2px;
    }
    
    .mobile-menu-list a {
        display: block;
        padding: 14px 16px;
        text-decoration: none;
        color: #2C3E50;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.2s;
        font-size: 15px;
    }
    
    .mobile-menu-list a:active {
        background: #f9fafb;
        color: #dc2626;
    }
}

@media (max-width: 768px) {
    .mobile-search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        backdrop-filter: blur(2px);
        display: block !important; 
    }
    
    .mobile-search-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-search-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        transform: translateY(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-search-overlay.active .mobile-search-content {
        transform: translateY(0);
    }
    
    .mobile-search-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .mobile-search-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: #2C3E50;
    }
    
    .mobile-search-close {
        width: 36px;
        height: 36px;
        background: #f3f4f6;
        border: none;
        border-radius: 50%;
        font-size: 24px;
        color: #6b7280;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }
    
    .mobile-search-close:active {
        transform: scale(0.95);
        background: #e5e7eb;
    }
    
    .mobile-search-form {
        position: relative;
    }
    
    .mobile-search-input {
        width: 100%;
        padding: 16px 80px 16px 16px;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 16px;
        background: #f9fafb;
        transition: all 0.3s;
    }
    
    .mobile-search-input:focus {
        outline: none;
        border-color: #dc2626;
        background: white;
    }
    
    .mobile-search-submit {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        padding: 12px 20px;
        background: #dc2626;
        color: white;
        border: none;
        border-radius: 8px;
        font-weight: 700;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .mobile-search-submit:active {
        transform: translateY(-50%) scale(0.95);
        background: #b91c1c;
    }
}

@media (max-width: 768px) {
    .vehicle-bottom-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2000;
        pointer-events: none;
        display: block !important; 
    }
    
    .vehicle-bottom-sheet.active {
        pointer-events: all;
    }
    
    .vehicle-sheet-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        backdrop-filter: blur(2px);
    }
    
    .vehicle-bottom-sheet.active .vehicle-sheet-overlay {
        opacity: 1;
        visibility: visible;
    }
    
    .vehicle-sheet-content {
        position: relative;
        background: white;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .vehicle-bottom-sheet.active .vehicle-sheet-content {
        transform: translateY(0);
    }
    
    .vehicle-sheet-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #e5e7eb;
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
    }
    
    .vehicle-sheet-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: #2C3E50;
    }
    
    .vehicle-sheet-close {
        width: 36px;
        height: 36px;
        background: #f3f4f6;
        border: none;
        border-radius: 50%;
        font-size: 24px;
        color: #6b7280;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .vehicle-sheet-form {
        padding: 20px;
    }
    
    .vehicle-select-group {
        margin-bottom: 20px;
    }
    
    .vehicle-select-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 13px;
        font-weight: 700;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .vehicle-select-group select {
        width: 100%;
        padding: 16px;
        background: #f9fafb;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 500;
        color: #2C3E50;
        cursor: pointer;
        transition: all 0.3s;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%232C3E50' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 16px;
    }
    
    .vehicle-select-group select:focus {
        outline: none;
        border-color: #dc2626;
        background-color: white;
    }
    
    .vehicle-select-group select:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
    
    .vehicle-find-btn {
        width: 100%;
        padding: 18px;
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 17px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
        margin-top: 10px;
    }
    
    .vehicle-find-btn:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    }
}

@media (max-width: 768px) {
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        z-index: 998;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 4px;
        text-decoration: none;
        color: #6b7280;
        font-size: 11px;
        font-weight: 600;
        position: relative;
        transition: all 0.2s;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }
    
    .bottom-nav-item:active {
        transform: scale(0.95);
    }
    
    .bottom-nav-item.active {
        color: #dc2626;
    }
    
    .bottom-nav-item svg {
        stroke: currentColor;
    }
    
    .bottom-nav-badge {
        position: absolute;
        top: 4px;
        right: 50%;
        transform: translateX(12px);
        background: #dc2626;
        color: white;
        font-size: 10px;
        font-weight: 700;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

@media (max-width: 768px) {
    
    
    button,
    .btn {
        -webkit-tap-highlight-color: rgba(220, 38, 38, 0.1);
        user-select: none;
    }
    
    
    html {
        scroll-behavior: smooth;
    }
    
    
    input,
    select,
    textarea {
        font-size: 16px; 
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .product-card {
        border-radius: 12px;
        overflow: hidden;
    }
    
    .btn-add-cart {
        min-height: 44px;
        font-size: 15px;
        font-weight: 700;
    }
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    
    .cart-item-image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto 16px;
    }
    
    .cart-item-details {
        width: 100%;
    }
    
    .cart-summary {
        position: static !important;
        margin-top: 20px;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hamburger-btn.catalog-btn {
    background: none !important;
    padding: 10px !important;
    gap: 5px;
    flex-direction: column !important;
    border-radius: 0 !important;
}
.hamburger-btn.catalog-btn:hover,
.hamburger-btn.catalog-btn:active,
.hamburger-btn.catalog-btn:focus {
    background: none !important;
    color: inherit !important;
}

.hamburger-btn.cm-burger-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
    background: #111827 !important;
}
.hamburger-btn.cm-burger-open span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
}
.hamburger-btn.cm-burger-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px) !important;
    background: #111827 !important;
}

#vehicleBtn {
    transition: all 0.3s ease;
}

#vehicleBtn:hover svg,
.user-header:hover svg {
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

#vehicleBtn:hover>svg path,
.user-header:hover svg {
    stroke: red;
}

.vehicle-selected-ok {
    position: absolute;
    top: -3px;
    right: -4px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.vehicle-selected-ok svg {
    background: #00b67a;
    border-radius: 30px;
}

.no-vehicle-selected {
    position: absolute;
    top: 0px;
    left: 34px;
    background: #ff8a00;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 12px;
    height: 12px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    
    .site-header {
        padding: 10px 15px;
    }

    
    .vehicle-select-wrapper:first-child {
        display: block !important;
    }

    .vehicle-select-wrapper {
        display: block !important;
    }

    
    .vehicle-selector,
    .header-vehicle-selector {
        display: none !important;
    }

    .header-logo img {
        max-height: 40px;
    }

    .header-search {
        display: none;
        
    }

    .header-icon-btn {
        padding: 8px;
    }

    
    .vehicle-selector {
        flex-direction: column;
        gap: 10px;
    }

    .vehicle-select-group {
        flex: 1 1 100% !important;
    }

    .vehicle-select-group select {
        font-size: 14px;
        padding: 12px;
    }

    
    .hero-section {
        padding: 40px 20px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .hero-section p {
        font-size: 16px;
    }

    
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 15px;
    }

    .product-card {
        max-width: 100%;
    }

    
    .product-detail-container {
        flex-direction: column;
    }

    .product-images {
        max-width: 100%;
    }

    .product-info {
        padding: 20px;
    }

    
    .cart-page {
        padding: 20px 15px;
    }

    .cart-items {
        grid-template-columns: 1fr !important;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item-image {
        margin: 0 auto;
    }

    .cart-summary {
        position: static !important;
        margin-top: 30px;
    }

    
    .checkout-container {
        flex-direction: column;
    }

    .checkout-form,
    .order-summary {
        max-width: 100%;
    }

    
    .btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }

    .btn-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-group .btn {
        width: 100%;
    }

    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        
        padding: 12px;
    }

    
    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }

    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 30px;
    }

 .ps-atc {
        min-height: 30px;
        min-width: 44px;
    }
.ps-atc{
    padding:0
}
.ps-badge{
    right:0;
    top:0;
    font-weight: 400;
    padding: 2px 6px;
}
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {

    
    .site-header {
        padding: 15px 30px;
    }

    .header-search {
        max-width: 300px;
    }

    
    .vehicle-selector {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .find-parts-btn {
        grid-column: 1 / -1;
    }

    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }

    
    .cart-container {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }

    
    .checkout-container {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        gap: 30px;
    }
}

@media (min-width: 1024px) {

    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }

    
    .product-card:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .btn:hover {
        transform: translateY(-2px);
    }

    
    .mobile-only {
        display: none !important;
    }
}

@media (hover: none) and (pointer: coarse) {

    
    .product-card:hover,
    .btn:hover {
        transform: none;
    }

    
    input,
    select,
    textarea {
        font-size: 16px;
        padding: 14px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 30px 20px;
    }

    .hero-section h1 {
        font-size: 24px;
    }

    .vehicle-selector {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    
    .product-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

@media print {

    .site-header,
    .site-footer,
    .sidebar,
    .breadcrumbs,
    button,
    .btn {
        display: none;
    }

    .product-detail-container,
    .cart-container,
    .checkout-container {
        max-width: 100%;
    }

    * {
        color: black !important;
        background: white !important;
    }
}

.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #dc2626;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-to-main:focus {
    top: 0;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.container-compatibility-check{
	padding: 40px 0px 0px 0px;
}
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-descr{
	padding:32px 0 8px;
	text-align:center;
	max-width:800px;
	margin:0 auto;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
	.container-compatibility-check{
	padding: 20px 20px 0px 20px;
	}
	.home-descr{
	padding: 20px 10px 0px 10px;
}
}

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

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.p-20 {
    padding: 20px;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

@media (min-width: 769px) {

    .logo svg {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 16px !important;
        font-weight: 800 !important;
        letter-spacing: -0.5px;
        line-height: 1 !important;
    }

    .search-type-select {
        padding: 10px 12px !important;
        border: 1px solid #dfe6e9 !important;
        border-radius: 6px 0 0 6px !important;
        font-size: 14px !important;
        background: #ffffff !important;
        cursor: pointer;
        min-width: 120px !important;
        flex-shrink: 0;
        height: 44px !important;
        box-sizing: border-box;
    }

    .search-button svg {
        width: 18px !important;
        height: 18px !important;
    }

    .header-icon-btn svg {
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0;
        stroke: currentColor;
    }

    .icon-label {
        font-size: 10px !important;
        color: #9ca3af;
        line-height: 1 !important;
        font-weight: 500;
    }

    
    .vehicle-name {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: var(--dark, #2C3E50);
    }

    .vehicle-details {
        font-size: 10px !important;
        color: #9ca3af;
    }

    
    .header-left-group,
    .mobile-search-trigger,
    .hamburger-btn,
    .mobile-categories-slider {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .vehicle-selector-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        display: none;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(2px);
    }

    .vehicle-selector-modal.active {
        display: flex !important;
    }

    .vehicle-selector-content {
        background: white;
        border-radius: 12px;
        padding: 30px;
        max-width: 600px;
        width: 90%;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        position: relative;
    }

    .vehicle-selector-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }

    .vehicle-selector-header h3 {
        font-size: 24px;
        font-weight: 700;
        color: #2C3E50;
        margin: 0;
    }

    .vehicle-selector-close {
        width: 36px;
        height: 36px;
        background: #f3f4f6;
        border: none;
        border-radius: 50%;
        font-size: 24px;
        color: #6b7280;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .vehicle-selector-close:hover {
        background: #e5e7eb;
    }
}

@media (min-width: 769px) {
    

    
    .logo {
        justify-content: flex-start !important;
    }

    
    .header-left-group {
        display: none !important;
    }
}

@media (max-width: 768px) {

    
    .sidebar,
    .filter-box {
        display: none !important;
    }

    
    .page-wrapper>.container>div[style*="grid-template-columns"] {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 !important;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-name {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    .product-oem {
        font-size: 11px !important;
    }

    .product-price {
        font-size: 14px !important;
    }

    .btn-add-cart {
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-height: 40px;
    }

    
    .mobile-categories-slider {
        display: block !important;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
        padding: 10px 0;
        background: white;
        position: sticky;
        top: 60px;
        z-index: 100;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .mobile-categories-slider::-webkit-scrollbar {
        display: none;
    }

    .mobile-category-chip {
        display: inline-block;
        padding: 8px 16px;
        margin-right: 8px;
        background: #f3f4f6;
        border-radius: 20px;
        text-decoration: none;
        color: #374151;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        transition: all 0.2s;
    }

    .mobile-category-chip.active {
        background: #dc2626;
        color: white;
    }

    .mobile-category-chip:active {
        transform: scale(0.95);
    }

    
    .mobile-search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        backdrop-filter: blur(2px);
        display: block !important;
        overflow: hidden;
    }

    .mobile-search-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-search-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        background: white;
        padding: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        transform: translateY(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-sizing: border-box;
    }

    .mobile-search-overlay.active .mobile-search-content {
        transform: translateY(0);
    }

    .mobile-search-input {
        width: 100%;
        max-width: 100%;
        padding: 14px 70px 14px 14px;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 16px;
        background: #f9fafb;
        box-sizing: border-box;
    }

    
    .header-content {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        gap: 8px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .header-left-group {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }

    .hamburger-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 8px;
        flex-shrink: 0;
    }

    .mobile-search-trigger {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        padding: 8px !important;
        flex-shrink: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .logo {
        flex: 1;
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 6px;
        font-size: 14px !important;
        min-width: 0;
    }

    .logo svg {
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 14px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-icons {
        display: flex !important;
        align-items: center;
        flex-shrink: 0;
    }

    .header-icon-btn {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        padding: 8px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        flex-shrink: 0;
    }

    .header-icon-btn .icon-text,
    .header-icon-btn .icon-label,
    .header-icon-btn .icon-value {
        display: none !important;
    }

    .header-icon-btn svg {
        display: block;
        width: 20px;
        height: 20px;
    }

    
    .vehicle-bottom-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2000;
        pointer-events: none;
        display: block !important;
        max-width: 100vw;
    }

    .vehicle-sheet-content {
        max-width: 100vw;
        box-sizing: border-box;
    }

    .vehicle-sheet-form {
        padding: 20px 15px;
    }

    .vehicle-select-group {
        margin-bottom: 16px;
    }

    .vehicle-select-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 12px;
        font-weight: 700;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .vehicle-select-group select {
        width: 100%;
        padding: 16px 40px 16px 16px;
        background: #f9fafb;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 500;
        color: #2C3E50;
        cursor: pointer;
        transition: all 0.3s;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%232C3E50' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 16px;
        min-height: 52px;
        box-sizing: border-box;
    }

    .vehicle-select-group select:focus {
        outline: none;
        border-color: #dc2626;
        background-color: white;
    }

    .vehicle-find-btn {
        width: 100%;
        padding: 16px;
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
        margin-top: 8px;
        min-height: 52px;
        box-sizing: border-box;
    }

    
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        background: white;
        border-top: 1px solid #e5e7eb;
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        padding: 6px 0 8px 0;
        z-index: 998;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 6px 4px;
        text-decoration: none;
        color: #6b7280;
        font-size: 10px;
        font-weight: 600;
        position: relative;
        transition: all 0.2s;
        min-width: 60px;
        max-width: 80px;
    }

    .bottom-nav-item svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
    }

    .bottom-nav-item.active {
        color: #dc2626;
    }

    .bottom-nav-badge {
        position: absolute;
        top: 2px;
        right: 50%;
        transform: translateX(10px);
        background: #dc2626;
        color: white;
        font-size: 9px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
    }

    main,
    .page-wrapper {
        padding-bottom: 0;
    }

    
    .cart-dropdown {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: 100vh !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        z-index: 2001 !important;
        background: white;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
    }

    .cart-dropdown.active {
        transform: translateX(0);
    }

    
    .cart-dropdown-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        color: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
    }

    .cart-dropdown-title {
        font-size: 18px;
        font-weight: 700;
        margin: 0;
    }

    .cart-dropdown-count {
        font-size: 14px;
        opacity: 0.9;
        margin-left: 8px;
    }

    .cart-dropdown-close {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .cart-dropdown-close:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.3);
    }

    
    .cart-dropdown-body {
        flex: 1;
        overflow-y: auto;
        padding: 15px;
        background: #f9fafb;
    }

    
    .cart-dropdown-item {
        display: flex;
        gap: 12px;
        padding: 12px;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 10px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .cart-dropdown-item-image {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    .cart-dropdown-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

    .cart-dropdown-item-details {
        flex: 1;
        min-width: 0;
    }

    .cart-dropdown-item-name {
        font-size: 14px;
        font-weight: 600;
        color: #2C3E50;
        margin-bottom: 4px;
        display: block;
        text-decoration: none;
        line-height: 1.3;
    }

    
    .cart-dropdown-item-brand {
        font-size: 12px;
        color: #6b7280;
        margin-bottom: 4px;
        font-weight: 500;
    }

    .cart-dropdown-item-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        color: #6b7280;
        margin-top: 6px;
    }

    .cart-dropdown-item-quantity {
        font-weight: 600;
        color: #374151;
    }

    .cart-dropdown-item-price {
        font-weight: 700;
        color: #dc2626;
        font-size: 14px;
    }

    
    .cart-dropdown-footer {
        padding: 15px 20px;
        background: white;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
        flex-shrink: 0;
    }

    .cart-dropdown-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e5e7eb;
    }

    .cart-dropdown-total-label {
        font-size: 16px;
        font-weight: 600;
        color: #374151;
    }

    .cart-dropdown-total-amount {
        font-size: 20px;
        font-weight: 700;
        color: #dc2626;
    }

    .cart-dropdown-actions {
        display: flex;
        gap: 10px;
    }

    .cart-dropdown-actions .btn {
        flex: 1;
        padding: 14px;
        border-radius: 10px;
        text-align: center;
        text-decoration: none;
        font-weight: 700;
        font-size: 15px;
        transition: all 0.2s;
        border: none;
        cursor: pointer;
    }

    .cart-dropdown-actions .btn-secondary {
        background: white;
        color: #dc2626;
        border: 2px solid #dc2626;
    }

    .cart-dropdown-actions .btn-primary {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        color: white;
        border: 2px solid #dc2626;
    }

    .cart-dropdown-actions .btn:active {
        transform: scale(0.98);
    }

    
    .cart-dropdown-empty {
        text-align: center;
        padding: 40px 20px;
        color: #6b7280;
    }

    .cart-dropdown-empty svg {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
        opacity: 0.3;
    }

    .cart-dropdown-empty p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    
    html,
    body {
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    * {
        max-width: 100vw;
        box-sizing: border-box;
    }

    .container {
        padding: 0 15px;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .page-wrapper {
        padding: 5px 0;
        max-width: 100vw;
        overflow-x: hidden;
    }

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

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .btn-primary,
    .btn-view-all,
    .checkout-btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
        min-height: 48px;
    }
}

@media (max-width: 768px) {
    .cart-container {
        display: block !important;
    }

    .cart-items {
        margin-bottom: 20px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cart-item-image {
        width: 100%;
        max-width: 150px;
        margin: 0 auto;
    }

    .cart-summary {
        position: static !important;
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
    }

    .product-images {
        width: 100%;
        max-width: 100%;
    }

    .product-info {
        width: 100%;
        padding: 15px;
    }

    .product-actions {
        position: sticky;
        bottom: 65px;
        background: white;
        padding: 15px;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
}

.cm-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 7990;
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
    backdrop-filter: blur(2px);
}
.cm-ov-open { opacity: 1 !important; visibility: visible !important; }

.cm-panel {
    position: fixed;
    top: 0; left: 0;
    width: min(400px, 100vw);
    height: 100vh;
    height: 100dvh; 
    background: #fff;
    z-index: 7999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 32px rgba(0,0,0,.18);
    overflow: hidden;
}
.cm-open { transform: translateX(0) !important; }

.cm-hero {
    position: relative;
    height: 140px;
    flex-shrink: 0;
    background: #111;
    overflow: hidden;
}
.cm-hero img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .55;
    display: block;
}
.cm-hero-overlay {
    position: absolute;
    inset: 0;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #000000a8;
}
.cm-hero-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 3px;
}
.cm-hero-sub {
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}
.cm-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 30px; height: 30px;
    border: none;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    transition: background .15s;
    line-height: 1;
}
.cm-close:hover { background: #dc2626; }

.cm-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.cm-pane {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s;
    opacity: 1;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
    background: #fff;
}
.cm-pane::-webkit-scrollbar { width: 4px; }
.cm-pane::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; }

.cm-section-header {
    padding: 10px 16px 6px;
    font-size: 11px;
    font-weight: 800;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: #fafafa;
    border-bottom: 1px solid #f3f4f6;
    position: sticky; top: 0; z-index: 1;
}

.cm-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    width: 100%;
    border: none;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    text-align: left;
    transition: background .12s;
    flex-shrink: 0;
}
.cm-back:hover { background: #f3f4f6; }

.cm-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border-bottom: 1px solid #f9fafb;
    text-decoration: none;
    color: #111827;
    cursor: pointer;
    transition: background .1s;
    min-height: 50px;
}
.cm-row:hover { background: #fef2f2; }
a.cm-row { color: #111827; }
div.cm-row { user-select: none; }

.cm-row-all {
    background: #fafafa;
    border-bottom: 2px solid #f3f4f6;
    min-height: 48px;
}
.cm-row-all:hover { background: #fef2f2; }

.cm-row-parent {
    background: #f9fafb;
    border-bottom: 2px solid #f3f4f6;
    font-weight: 700;
}

.cm-thumb {
    width: 38px; height: 38px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
}
.cm-thumb img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
}
.cm-thumb-placeholder {
    width: 38px; height: 38px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f3f4f6;
}

.cm-row-label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.cm-footer {
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
    background: #fff;
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 8px);
}
.cm-footer-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    width: 100%;
    border: none;
    background: none;
    border-top: 1px solid #f9fafb;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    transition: background .12s;
}
.cm-footer-btn:first-child { border-top: none; }
.cm-footer-btn:hover { background: #fef2f2; color: #dc2626; }

@media (max-width: 640px) {
    .cm-panel { width: 100vw; }
    .cm-hero { height: 120px; }
}

   .cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-modal-overlay.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.cart-modal {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.cart-modal-overlay.active .cart-modal {
    transform: scale(1);
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.cart-modal-title {
    font-weight: 700;
    font-size: 18px;
    color: #111827;
}

.cart-modal-count {
    font-size: 14px;
    color: #6b7280;
}

.cart-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
    color: #6b7280;
}

.cart-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.cart-modal-close svg {
    width: 20px;
    height: 20px;
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.cart-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7280;
}

.cart-modal-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #dc2626;
    border-radius: 50%;
    animation: cart-modal-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes cart-modal-spin {
    to { transform: rotate(360deg); }
}

.cart-modal-empty {
    text-align: center;
    padding: 60px 24px;
    color: #6b7280;
}

.cart-modal-empty svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    opacity: 0.3;
    stroke: #9ca3af;
}

.cart-modal-empty p {
    font-size: 16px;
    margin: 16px 0 24px;
    color: #4b5563;
}

.cart-modal-empty .btn-browse-products {
    display: inline-block;
    padding: 12px 24px;
    background: #dc2626;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.cart-modal-empty .btn-browse-products:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.cart-modal-items {
    padding: 16px 24px;
}

.cart-modal-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cart-modal-item:first-child {
    padding-top: 0;
}

.cart-modal-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-modal-item-image {
    width: 70px;
    height: 70px;
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-modal-item-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-modal-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-modal-item-name:hover {
    color: #dc2626;
}

.cart-modal-item-brand {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.cart-modal-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cart-modal-item-quantity {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.cart-modal-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #dc2626;
}

.cart-modal-more {
    padding: 12px 24px;
    text-align: center;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

.cart-modal-free-delivery {
    padding: 7px 24px;
    background: #fef3c7;
    margin: 10px 24px 10px;
    border-radius: 10px;
}

.cart-modal-free-delivery.success {
    background: #d1fae5;
    color: #065f46;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.cart-modal-free-delivery-text {
    font-size: 14px;
    color: #92400e;
    margin-bottom: 10px;
}

.cart-modal-free-delivery-text strong {
    color: #dc2626;
    font-weight: 700;
}

.cart-modal-free-delivery-progress {
    height: 8px;
    background: #fde68a;
    border-radius: 4px;
    overflow: hidden;
}

.cart-modal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width 0.4s ease;
}

.cart-modal-footer {
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 20px 24px;
}

.cart-modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart-modal-total-label {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.cart-modal-total-amount {
    font-size: 22px;
    font-weight: 700;
    color: #dc2626;
}

.cart-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cart-modal-actions .btn {
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.cart-modal-actions .btn-view-cart {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.cart-modal-actions .btn-view-cart:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.cart-modal-actions .btn-checkout {
    background: #dc2626;
    color: white;
    border: 2px solid #dc2626;
}

.cart-modal-actions .btn-checkout:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.cart-modal-body::-webkit-scrollbar {
    width: 8px;
}

.cart-modal-body::-webkit-scrollbar-track {
    background: #f9fafb;
}

.cart-modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.cart-modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

@media (max-width: 640px) {
    .cart-modal {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .cart-modal-header {
        padding: 16px 20px;
    }
    
    .cart-modal-title {
        font-size: 17px;
    }
    
    .cart-modal-items {
        padding: 12px 20px;
    }
    
    .cart-modal-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }
    
    .cart-modal-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-modal-footer {
        padding: 16px 20px;
    }
    
    .cart-modal-actions .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

body.cart-modal-open {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .vehicle-selector-desktop-modal {
        display: none !important;
    }
}

[data-cart-item] {
    transition: all 0.3s ease;
}

[data-cart-item].removing {
    opacity: 0;
    transform: translateX(-20px);
}

.cart-modal-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.cm-qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 7px;
    overflow: hidden;
    height: 28px;
    flex-shrink: 0;
}
.cm-qty-btn {
    width: 26px;
    height: 28px;
    border: none;
    background: #f9fafb;
    color: #374151;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: background .12s, color .12s;
}
.cm-qty-btn:hover { background: #dc2626; color: #fff; }
.cm-qty-val {
    min-width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    padding: 0 4px;
    border-left: 1.5px solid #e5e7eb;
    border-right: 1.5px solid #e5e7eb;
    line-height: 28px;
    display: inline-block;
}
.cart-modal-item-price {
    font-size: 13px;
    font-weight: 800;
    color: #dc2626;
    margin-left: auto;
}
.cm-tier-badge {
    font-size: 9px;
    font-weight: 700;
    color: #dc2626;
    opacity: .8;
    white-space: nowrap;
}
.cm-remove-btn {
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color .12s, background .12s;
    flex-shrink: 0;
}
.cm-remove-btn:hover { color: #dc2626; background: #fee2e2; }
/* Cart modal price — 2-row layout */
.cm-price-wrap { text-align: right; }
.cm-price-top {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
}
.cm-price-sub {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 2px;
}
.cm-orig-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 500;
}
.cm-unit-price {
    font-size: 10px;
    color: #6b7280;
}

.cart-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    max-height: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 9999;
    pointer-events: none;
}

.cart-dropdown.active {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.cart-dropdown-title {
    font-weight: 700;
    font-size: 16px;
    color: #111827;
}

.cart-dropdown-count {
    font-size: 13px;
    color: #6b7280;
}

.cart-dropdown-body {
    max-height: 400px;
    overflow-y: auto;
}

.cart-dropdown-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6b7280;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #dc2626;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cart-dropdown-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.cart-dropdown-empty svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    opacity: 0.3;
}

.cart-dropdown-empty p {
    margin: 15px 0 20px;
    font-size: 15px;
}

.btn-browse {
    display: inline-block;
    padding: 10px 20px;
    background: #dc2626;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-browse:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.cart-dropdown-items {
    padding: 15px;
}

.cart-dropdown-item {
    display: grid;
    grid-template-columns: 60px 1fr 70px;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.cart-dropdown-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-name:hover {
    color: #dc2626;
}

.item-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.item-qty {
    font-weight: 600;
}

.item-price {
    color: #111827;
}

.item-total {
    text-align: right;
    font-weight: 700;
    font-size: 15px;
    color: #dc2626;
    align-self: center;
}

.cart-dropdown-more {
    padding: 10px 15px;
    text-align: center;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.free-delivery-banner {
    padding: 15px;
    background: #fef3c7;
    margin: 15px 15px 0;
    border-radius: 8px;
}

.free-delivery-banner.success {
    background: #d1fae5;
    color: #065f46;
    text-align: center;
    font-weight: 600;
}

.free-delivery-text {
    font-size: 13px;
    color: #92400e;
    margin-bottom: 8px;
}

.free-delivery-text strong {
    color: #dc2626;
}

.free-delivery-progress {
    height: 6px;
    background: #fde68a;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width 0.3s;
}

.cart-dropdown-totals {
    padding: 15px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.total-row.delivery {
    color: #6b7280;
    font-size: 13px;
}

.total-row.grand-total {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    padding-top: 10px;
    border-top: 2px solid #e5e7eb;
    margin-top: 5px;
}

.total-row.grand-total span:last-child {
    color: #dc2626;
}

.cart-dropdown-actions {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.cart-dropdown-actions .btn {
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    pointer-events: auto;
    position: relative;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.btn-secondary:active {
    background: #d1d5db;
}

.btn-primary {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.btn-primary:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.btn-primary:active {
    background: #991b1b;
}

.cart-dropdown-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc2626;
}

.cart-dropdown-error button {
    margin-top: 15px;
    padding: 10px 20px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.cart-dropdown-body::-webkit-scrollbar {
    width: 6px;
}

.cart-dropdown-body::-webkit-scrollbar-track {
    background: #f9fafb;
}

.cart-dropdown-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.cart-dropdown-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

@media (max-width: 768px) {
    .cart-dropdown {
        position: fixed;
        top: 70px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .cart-dropdown.active {
        max-height: calc(100vh - 90px);
    }
}

.cart-dropdown-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.cd-qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 7px;
    overflow: hidden;
    height: 28px;
}
.cd-qty-btn {
    width: 26px;
    height: 28px;
    border: none;
    background: #f9fafb;
    color: #374151;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, color .12s;
    line-height: 1;
    padding: 0;
}
.cd-qty-btn:hover { background: #dc2626; color: #fff; }
.cd-qty-val {
    min-width: 26px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    padding: 0 4px;
    border-left: 1.5px solid #e5e7eb;
    border-right: 1.5px solid #e5e7eb;
    line-height: 28px;
}
.cart-dropdown-item-price {
    font-size: 13px;
    font-weight: 800;
    color: #dc2626;
    margin-left: auto;
}
.cd-remove-btn {
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color .12s, background .12s;
}
.cd-remove-btn:hover { color: #dc2626; background: #fee2e2; }

#globalNotificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 340px;
    width: calc(100vw - 40px);
}

.gn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 4px 20px rgba(0,0,0,.25), 0 1px 4px rgba(0,0,0,.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    
    transform: translateX(calc(100% + 24px));
    opacity: 0;
    transition: transform .32s cubic-bezier(.175,.885,.32,1.275), opacity .25s ease;
    user-select: none;
}

.gn.gn-show {
    transform: translateX(0);
    opacity: 1;
}

.gn.gn-out {
    transform: translateX(calc(100% + 24px));
    opacity: 0;
    transition: transform .3s ease-in, opacity .25s ease;
}

.gn:hover { filter: brightness(1.08); }

.gn::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    border-radius: 10px 0 0 10px;
}
.gn-success::before { background: #16a34a; }
.gn-error::before   { background: #dc2626; }
.gn-warning::before { background: #f59e0b; }
.gn-info::before    { background: #3b82f6; }

.gn-icon { flex-shrink: 0; display: flex; }
.gn-success .gn-icon { color: #4ade80; }
.gn-error   .gn-icon { color: #f87171; }
.gn-warning .gn-icon { color: #fbbf24; }
.gn-info    .gn-icon { color: #60a5fa; }

.gn-msg { flex: 1; line-height: 1.4; }

.gn-close {
    flex-shrink: 0;
    font-size: 11px;
    color: rgba(255,255,255,.4);
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color .15s;
}
.gn:hover .gn-close { color: rgba(255,255,255,.8); }

.gn-bar {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    width: 100%;
    border-radius: 0 0 10px 10px;
}
.gn-success .gn-bar { background: #16a34a; animation: gnBar 4s linear forwards; }
.gn-error   .gn-bar { background: #dc2626; animation: gnBar 4s linear forwards; }
.gn-warning .gn-bar { background: #f59e0b; animation: gnBar 4s linear forwards; }
.gn-info    .gn-bar { background: #3b82f6; animation: gnBar 4s linear forwards; }

@keyframes gnBar {
    from { width: 100%; }
    to   { width: 0%; }
}

@media (max-width: 640px) {
    #globalNotificationContainer {
        top: auto;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: 12px;
        left: 12px;
        max-width: none;
        width: auto;
    }
}

.gn-atc { padding: 0 !important; min-width: 300px; max-width: 340px; background: #1f2937 !important; cursor: default; }
.gn-atc-inner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; width: 100%; box-sizing: border-box; }
.gn-atc-img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: #fff; flex-shrink: 0; }
.gn-atc-img-placeholder { width: 48px; height: 48px; border-radius: 6px; flex-shrink: 0; }
.gn-atc-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.gn-atc-label { font-size: 10px; font-weight: 600; color: #10b981; text-transform: uppercase; letter-spacing: .06em; }
.gn-atc-name { font-size: 13px; font-weight: 500; color: #f9fafb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gn-atc-meta { font-size: 12px; color: #9ca3af; }
.gn-atc-btn { flex-shrink: 0; padding: 6px 12px; background: #dc2626; color: #fff; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; pointer-events: auto; }
.gn-atc-btn:hover { background: #b91c1c; }
.gn-atc .gn-close { background: none; border: none; color: #6b7280; font-size: 18px; cursor: pointer; padding: 0 4px; line-height: 1; flex-shrink: 0; }
.gn-atc .gn-close:hover { color: #f9fafb; }

@media (max-width: 640px) {
    .gn-atc { min-width: unset; max-width: unset; width: 100%; transform: translateY(calc(100% + 24px)) !important; }
    .gn-atc.gn-show { transform: translateY(0) !important; }
    .gn-atc.gn-out  { transform: translateY(calc(100% + 24px)) !important; }
    #globalNotificationContainer:has(.gn-atc) {
        top: auto;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        left: 50%; right: auto;
        transform: translateX(-50%);
        width: calc(100vw - 24px);
        max-width: 420px;
    }
}

.search-wrapper,
.mobile-search-content { position: relative; }

.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    border: 1px solid #e5e7eb;
    z-index: 9999;
    max-height: 480px;
    overflow-y: auto;
    min-width: 360px;
}
#mobileSearchDropdown {
    position: relative;
    top: 0;
    min-width: 0;
    margin-top: 6px;
    border-radius: 10px;
}
.search-dropdown.open { display: block; }

.sd-section-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9ca3af;
}
.sd-clear-all {
    background: none; border: none; cursor: pointer;
    font-size: 11px; font-weight: 600; color: #6b7280;
    padding: 2px 6px; border-radius: 4px;
}
.sd-clear-all:hover { background: #f3f4f6; color: #374151; }

.sd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    text-decoration: none;
    color: #111827;
    transition: background .12s;
}
.sd-item:hover, .sd-item.sd-focused { background: #f3f4f6; }

.sd-thumb {
    width: 40px; height: 40px;
    object-fit: cover; border-radius: 6px;
    border: 1px solid #e5e7eb; flex-shrink: 0;
}
.sd-thumb-placeholder {
    width: 40px; height: 40px;
    border-radius: 6px; background: #f3f4f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.sd-history-icon, .sd-cat-icon {
    width: 32px; height: 32px;
    border-radius: 6px; background: #f3f4f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}

.sd-item-body { flex: 1; min-width: 0; }
.sd-label {
    font-size: 14px; font-weight: 600; color: #111827;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sd-label mark {
    background: #fef08a; color: #111827;
    border-radius: 2px; padding: 0 1px;
    font-style: normal;
}
.sd-sublabel { font-size: 12px; color: #6b7280; margin-top: 1px; }
.sd-price { font-size: 13px; font-weight: 700; color: #dc2626; white-space: nowrap; }
.sd-price-old { font-size: 11px; font-weight: 400; color: #9ca3af; text-decoration: line-through; display: block; }
.sd-price-sale { font-size: 13px; font-weight: 700; color: #dc2626; }

.sd-history .sd-label { font-weight: 500; color: #374151; }
.sd-remove {
    background: none; border: none; cursor: pointer;
    color: #9ca3af; font-size: 12px; padding: 4px 6px;
    border-radius: 4px; flex-shrink: 0; line-height: 1;
    display: none;
}
.sd-item:hover .sd-remove { display: block; }
.sd-remove:hover { background: #fee2e2; color: #dc2626; }

.sd-empty {
    padding: 20px 16px; font-size: 14px;
    color: #6b7280; text-align: center;
}

.sd-see-all {
    display: block; padding: 11px 16px;
    font-size: 13px; font-weight: 600; color: #3b82f6;
    text-decoration: none; border-top: 1px solid #f3f4f6;
    text-align: center; transition: background .12s;
}
.sd-see-all:hover { background: #eff6ff; }
.sd-see-all strong { color: #111827; }

@media (min-width: 769px) {
    
    .search-type-select {
        display: none !important;
    }
    
    
    .search-wrapper {
        display: flex !important;
        gap: 0 !important;
        align-items: stretch !important;
        max-width: 600px;
    }
    
    
    .search-form {
        flex: 1 !important;
        display: flex !important;
        border: 1px solid #dfe6e9 !important;
        border-radius: 8px !important;
        overflow: hidden;
        height: 44px !important;
    }
    
    .search-input {
        flex: 1 !important;
        padding: 10px 16px !important;
        border: none !important;
        font-size: 14px !important;
        outline: none;
        height: 100% !important;
        box-sizing: border-box;
    }
    
    .search-input::placeholder {
        color: #9ca3af;
    }
    
    
    .search-button {
        padding: 10px 20px !important;
        background: var(--primary, #dc2626) !important;
        color: white !important;
        border: none !important;
        cursor: pointer;
        transition: background 0.2s;
        flex-shrink: 0;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .search-button:hover {
        background: var(--primary-dark, #b91c1c) !important;
    }
    
    
    .search-button svg {
        width: 22px !important;
        height: 22px !important;
        stroke-width: 2.5;
    }
}

@media (min-width: 769px) {
    
    .vehicle-selector-desktop-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 2000;
        display: none;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(4px);
        animation: fadeIn 0.3s ease;
    }
    
    .vehicle-selector-desktop-modal.active {
        display: flex !important;
    }
    
    
    .vehicle-selector-popup {
        background: white;
        border-radius: 16px;
        padding: 0;
        max-width: 500px;
        width: 90%;
        max-height: 85vh;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        position: relative;
        animation: slideUp 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(30px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    
    .vehicle-popup-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 30px;
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        color: white;
    }
    
    .vehicle-popup-header h3 {
        font-size: 17px;
        font-weight: 700;
        margin: 0;
    }
    
    .vehicle-popup-close {
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        font-size: 21px;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        transition: all 0.2s;
    }
    
    .vehicle-popup-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }
    
    
    .vehicle-popup-body {
        padding: 20px 30px 30px 30px;
        max-height: calc(85vh - 100px);
        overflow-y: auto;
    }
    
    
    .vehicle-popup-form .vehicle-select-group {
        margin-bottom: 20px;
    }
    
    .vehicle-popup-form label {
        display: block;
        margin-bottom: 8px;
        font-size: 13px;
        font-weight: 700;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .vehicle-popup-form select {
        width: 100%;
        padding: 14px 40px 14px 16px;
        background: #f9fafb;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 500;
        color: #2C3E50;
        cursor: pointer;
        transition: all 0.3s;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%232C3E50' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 16px;
        min-height: 50px;
    }
    
    .vehicle-popup-form select:focus {
        outline: none;
        border-color: #dc2626;
        background-color: white;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    }
    
    .vehicle-popup-form select:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
    
    
    .vehicle-clear-btn-popup {
        width: 100%;
        padding: 14px;
        background: white;
        color: #dc2626;
        border: 2px solid #dc2626;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        margin-bottom: 12px;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .vehicle-clear-btn-popup:hover {
        background: #fef2f2;
        transform: translateY(-1px);
    }
    
    
    .vehicle-popup-form .vehicle-find-btn {
        width: 100%;
        padding: 16px;
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    }
    
    .vehicle-popup-form .vehicle-find-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
    }
}

@media (max-width: 768px) {
    
    .mobile-search-input {
        width: 100%;
        padding: 14px 70px 14px 14px;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 16px;
        background: #f9fafb;
        box-sizing: border-box;
    }
    
    .mobile-search-input::placeholder {
        color: #9ca3af;
    }
}

#ag-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #111827;
    color: white;
    padding: 16px 24px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.3);
    transform: translateY(110%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}

#ag-consent-banner.ag-show  { transform: translateY(0); }
#ag-consent-banner.ag-hide  { transform: translateY(110%); }

.ag-cb-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ag-cb-text { flex: 1; min-width: 260px; }
.ag-cb-text strong { font-size: 15px; font-weight: 700; display: block; margin-bottom: 4px; }
.ag-cb-text p { font-size: 13px; color: #9ca3af; margin: 0; line-height: 1.5; }

.ag-cb-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.ag-btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    white-space: nowrap;
    font-family: inherit;
}

.ag-btn-primary {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}
.ag-btn-primary:hover { background: #b91c1c; border-color: #b91c1c; }

.ag-btn-outline {
    background: transparent;
    color: white;
    border-color: #4b5563;
}
.ag-btn-outline:hover { border-color: #9ca3af; background: rgba(255,255,255,.05); }

.ag-btn-ghost {
    background: transparent;
    color: #9ca3af;
    border-color: transparent;
}
.ag-btn-ghost:hover { color: white; }

#ag-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

#ag-consent-modal.ag-open {
    opacity: 1;
    pointer-events: all;
}

.ag-modal-box {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,.3);
    transform: scale(.95);
    transition: transform .3s;
}

#ag-consent-modal.ag-open .ag-modal-box { transform: scale(1); }

.ag-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.ag-modal-header h2 {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.ag-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.ag-modal-close:hover { color: #374151; }

.ag-modal-body { padding: 8px 24px; }

.ag-toggle-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f9fafb;
}
.ag-toggle-row:last-child { border-bottom: none; }

.ag-toggle-info { flex: 1; }
.ag-toggle-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.ag-toggle-desc  { font-size: 12px; color: #6b7280; line-height: 1.5; }

.ag-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.ag-toggle input { opacity: 0; width: 0; height: 0; }

.ag-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: background .2s;
}

.ag-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.ag-toggle input:checked + .ag-slider          { background: #dc2626; }
.ag-toggle input:checked + .ag-slider::before  { transform: translateX(20px); }
.ag-toggle-disabled { cursor: not-allowed; opacity: .5; }
.ag-toggle-disabled .ag-slider { background: #10b981; }
.ag-toggle-disabled .ag-slider::before { transform: translateX(20px); }

.ag-modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 16px 24px 20px;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}

.ag-modal-footer .ag-btn-outline {
    color: #374151;
    border-color: #d1d5db;
}
.ag-modal-footer .ag-btn-outline:hover { border-color: #9ca3af; }
.ag-modal-footer .ag-btn-ghost { color: #9ca3af; }

@media (max-width: 600px) {
    .ag-cb-btns { width: 100%; }
    .ag-btn { flex: 1; text-align: center; }
    .ag-modal-footer { justify-content: stretch; }
    .ag-modal-footer .ag-btn { flex: 1; }
}