@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);
}

/* Header */
/* =============================================
   HEADER — 3-row desktop layout
   ============================================= */

/* Visibility helpers */
.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 */
.tablet-nav-group { display: none; align-items: center; gap: 8px; }

/* Tablet search overlay — works at all widths */
#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; }
    /* Force show hamburger and mobile search inside tablet-nav-group */
    .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);
}

/* ── SINGLE ROW: Logo | Car Parts | Search | Account | Vehicle | Cart ── */
.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;
}

/* Search absolutely centered in the row */
.header-row-main .search-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    max-width: 520px;
    min-width: 280px;
}

/* Car Parts button stays left, no grow */
.header-row-main .catalog-btn {
    flex-shrink: 0;
}

/* First icon (account) pushes itself and all following icons to the right */
.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 button ── */
.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;
}

/* ── Icon buttons ── */
.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);
}

/* Vehicle styles */
.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; }

/* ── ROW 3: Nav menu — full width, 5 items, equal spacing ── */
.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); }

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

/* True centre: logo is absolutely positioned mid-row */
.header-mobile-row .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

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

/* Legacy / misc */
.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 */
/* ============================================================
   SPLIT HERO — Left: Vehicle Selector | Right: Banner Slider
   ============================================================ */

/* Keep .hero-section for legacy references, point to hero-split */
.hero-section {
    display: none; /* replaced by .hero-split */
}

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

/* ── Left Panel ──────────────────────────────────────────── */
.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;
}

/* ── Split Vehicle Finder Form ───────────────────────────── */
.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;
}

/* Override custom select box colours inside dark panel */
/* ── Dark theme overrides for all custom selects inside the hero left panel ── */
.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;
}
/* Search bar inside engine dropdown */
.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); }

/* ── Right Panel: Banner Slider ──────────────────────────── */
.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; }

/* Dots */
.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);
}

/* Arrows */
.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; }

/* Placeholder */
.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 selected state ──────────────────────────── */
.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 button (no vehicle) */
.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); }

/* Mobile hero vehicle */
@media (max-width: 640px) {
    .hero-vehicle-display {
        padding: 12px 14px;
        gap: 10px;
    }
    .hero-vehicle-icon { display: none; }   /* hide car icon on mobile to save space */
    .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; }
}

/* ── Responsive ──────────────────────────────────────────── */
/* ── Responsive: tablet & mobile ────────────────────────────────────── */

/* Tablet: 768px – 1024px — stack vertically, banner on top */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    /* Banner first on mobile */
    .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; }

    /* 2-column grid for selects on tablet */
    .vehicle-finder-split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Find Parts button spans full width */
    .vehicle-finder-split .btn-find-parts {
        grid-column: 1 / -1;
        margin-top: 2px;
    }
}

/* Mobile: up to 600px — single column, compact */
@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; }

    /* Arrows hidden on very small screens — swipe instead */
    .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; }

    /* Single column selects on mobile */
    .vehicle-finder-split {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* hero vehicle handled by new CSS above */    .hero-vehicle-details { font-size: 14px; }
    .hero-vehicle-details strong { font-size: 16px; }
    .hero-vehicle-actions { flex-direction: column; gap: 8px; }
    /* browse/change vehicle buttons removed — using new hero-vehicle-display */

    /* Dots closer to edge */
    .slider-dots { bottom: 10px; right: 12px; }
}

/* Categories Section */
/* Categories section styles defined below in the main block */


/* Products Section */
.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 */
.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;
}

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

/* Mobile: 1 col, icon + text in a row, all consistent */
@media (max-width: 640px) {
    .features-section { padding: 40px 0 48px; }
    .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;    /* never shrink */
        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); }
}

/* Footer */
/* Footer styles are in includes/footer.php inline <style> block */

/* Utilities */
.text-center {
    text-align: center;
}

/* Alert Messages */
.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;
}

/* Responsive */
@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;
        /* Hide BMW brand selector on tablet */
    }

    .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;
        /* Hide BMW brand selector on mobile */
    }

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

/* ── Cart count badge ── */
.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: centered dark hero with vehicle selector
   ══════════════════════════════════════════════════════════════════════ */
.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;
}

/* Two-layer hero backgrounds */
.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;
}

/* Light flash overlay — turns on the lights effect */
.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; }

/* Dark selects inside hero-new */
.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; }

/* Focus overlay */
.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;
}

/* ══ Category slider — hero-cat-section ════════════════════════════════════ */
.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;
}

/* Arrow buttons */
.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; }

/* Scrollable track */
.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; }

/* Category card */
.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; }

/* Thumb */
.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; }

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

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

/* Mobile: full viewport width, overlay arrows */
@media (max-width: 640px) {
    .hero-cat-section {
        padding: 14px 0 6px;
    }
    /* Break out of container on mobile */
    .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 Split Slider ═══════════════════════════════════════════════════════ */
.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; }
    /* On mobile: switch from fade/slide to horizontal scroll with 90% + 10% peek */
    .promo-slider {
        border-radius: 0;
        overflow: visible;
        display: block;
        position: relative;
    }
    /* Each individual promo image becomes a scroll item */
    .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 — full-width line + overlapping red dot (same on all screen sizes) */
.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 ═════════════════════════════════════════════════════════ */
.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 heading */
.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;
}
/* cats-section-header dividers removed */

/* Mobile: 2-col grid, new card design with line + dot + name */
@media (max-width: 640px) {
    .categories-section {
        padding: 28px 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;
    }
    /* Image fills top of card */
    .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;
    }
    /* Spacer between image and line */
    /* cat-divider mobile styles inherited from base */
    .category-card h3 {
        font-size: 12px;
        font-weight: 700;
        color: #111827;
        margin-top: 10px;
        padding: 0 8px;
        line-height: 1.3;
        text-align: center;
    }
    /* Remove pseudo-elements — we use real elements now */
    .category-card::after,
    .category-card::before { display: none !important; content: none !important; }
}

/* ══ Promo image overlay text (title + subtitle) ════════════════════════════ */
.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 — all fields equal width/flex as Series field
   Overrides the per-field min/max-width rules defined earlier in this file
══════════════════════════════════════════════════════════════════════════ */
.hero-finder-row .hfr-group {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   Hero finder — mobile: vertical stack + progressive reveal
══════════════════════════════════════════════════════════════════════════ */
@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;
    }

    /* Collapsed by default — overflow:hidden clips content to zero height */
    .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;
    }

    /* Revealed — overflow:visible so the absolutely-positioned dropdown
       panel can render outside the group's clipped bounds */
    .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;
    }

    /* Numbered step badge — data-step attribute set by fixes-addon-only.js */
    .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;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   Products listing page — hide quantity selector on mobile
   (applies to .products-grid on products.php)
   Add to Cart defaults to qty 1 when selector is hidden
══════════════════════════════════════════════════════════════════════════ */
@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 slide menu — category tree
══════════════════════════════════════════════════════════════════════════ */
.mobile-menu-content { padding: 0; }

/* My Account link at top of slide menu */
.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; }


/* ══════════════════════════════════════════════════════════════════════════
   Tablet responsive — 769px to 1024px
══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {

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

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

    /* Products grid: 3 columns on tablet */
    .products-grid { grid-template-columns: repeat(3, 1fr) !important; }

    /* Hero split: stack on tablet */
    .hero-split { grid-template-columns: 1fr !important; }
    .hero-panel-right { min-height: 260px; }

    /* Cart: single column */
    .cart-container { grid-template-columns: 1fr !important; }

    /* Checkout: single column */
    .checkout-grid { grid-template-columns: 1fr !important; }

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

    /* Trust badges: 2 columns on tablet */
    .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 panel sidebar */
    .admin-container { grid-template-columns: 200px 1fr; }
}
/* ══ Product Slider (ps-*) — shared across Best Sellers & New Arrivals ══════ */
.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-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; }

/* Card */
.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;
}

/* Progress bar for sliders */
.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-controls { display: none; }          /* hide arrows on mobile */
    .ps-progress-wrap { display: block; }   /* show progress bar on mobile */
    .ps-track { padding-bottom: 4px; }
}


/* ══ Promo Mobile Track (individual image scroll, 90%+10% peek) ═════════════ */
.promo-mobile-track {
    display: none; /* hidden on desktop */
}

@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; }
    /* Hide desktop slider on mobile */
    .promo-slider { display: none !important; }
    .promo-indicators { display: flex; margin-top: 10px; }
    /* Show mobile track */
    .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; /* right padding shows 10% of next */
    }
    .promo-mobile-track::-webkit-scrollbar { display: none; }
    .promo-mobile-item {
        flex-shrink: 0;
        width: 90vw;
        scroll-snap-align: start;
        border-radius: 12px;
        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 Slider ══════════════════════════════════════════════════════════ */
.brands-section {
    padding: 0x 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: 36px 0 40px; }
}

/* Promo slider progress bar — mobile only */
@media (max-width: 640px) {
    #promoProgressWrap { display: block !important; }
}




/* ══ Add to Cart — wheel animation ══════════════════════════════════════════ */

.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; }

/* Invisible sizer holds button dimensions after innerHTML replace */
.atc-sizer {
    display: inline-flex;
    align-items: center;
    visibility: hidden;
    pointer-events: none;
    white-space: nowrap;
    padding: 0 4px;
}

/* Labels */
.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 */
.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 */
.smoke-wrap {
    position: absolute;
    /* bottom-centre of wheel */
    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); }
}

/* ── Prevent iOS zoom on input focus ──────────────────────────────────────── */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}