/* ================================
   HEADER TOP BAR — Logo | Banner | Contacts
   ================================ */

.header-top-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 180px;
    background: radial-gradient(circle at center, #d32f2f 0%, #000033 100%);
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
    overflow: visible;
}

/* ---- Logo Column ---- */
.header-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 240px;
    background: transparent;
    padding: 10px 30px;
    text-decoration: none;
    z-index: 10;
    position: relative;
}

/* Mockup 3 Style: High-intensity white glow aura */
.header-logo-col::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 140px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 40%, transparent 70%);
    filter: blur(20px);
    border-radius: 50%;
    z-index: -1;
    animation: auraPulse 3s ease-in-out infinite;
}

@keyframes auraPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.header-logo-col img {
    height: 145px;
    width: auto;
    object-fit: contain;
    display: block;
    /* Heavy white glow — visible against dark banner */
    filter:
        drop-shadow(0 0 8px rgba(255, 255, 255, 1)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 40px rgba(255, 220, 180, 0.6)) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.header-logo-col img:hover {
    filter:
        drop-shadow(0 0 12px rgba(255, 255, 255, 1)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 55px rgba(255, 220, 180, 0.75)) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
    transform: scale(1.04);
}

/* ---- Banner Column ---- */
.header-banner-col {
    flex: 1;
    background: transparent;
    display: flex;
    align-items: center;
    overflow: visible;
    /* Allow image overflow */
    position: relative;
    cursor: pointer;
}

/* Subtle inner glow */
.header-banner-col::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

#headerBannerInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 32px 0 40px;
    transition: opacity 0.4s ease;
}

#headerBannerInner.banner-fade-out {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

#headerBannerInner.banner-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.banner-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    z-index: 10;
    /* Higher priority for legibility */
    position: relative;
}

.banner-prefix {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.banner-part-name {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 3.2rem;
    font-weight: 950;
    color: #FFD700;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 0.9;
    text-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    margin-top: 5px;
}

.banner-img-wrap {
    /* Integrated into banner - no floating effect */
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
    padding: 0 15px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
    min-width: 200px;
}

/* Second image wrapper */
.banner-img-wrap-2 {
    padding: 0 15px 0 0;
}

/* Subtle integrated glow - part of banner design */
.banner-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(211, 47, 47, 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: soft-light;
}

/* Removed floating shadow - no longer needed */
.banner-img-wrap::after {
    display: none;
}

@keyframes shadowPulse {
    /* Removed animation - no longer used */
}

#bannerPartImg,
#bannerPartImg2 {
    /* Seamlessly integrated - no perspective or floating */
    height: 180px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
    border: none !important;
    background: transparent !important;
    /* Subtle depth only - blends with banner */
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25)) brightness(1.05) contrast(1.05);
    transition: opacity 0.3s ease, filter 0.3s ease;
    /* No perspective transforms - flat integration */
    transform: none;
    transform-origin: center;
    z-index: 2;
    position: relative;
    /* Subtle scale animation only */
    animation: partPulse 3s ease-in-out infinite;
}

@keyframes partPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25)) brightness(1.05) contrast(1.05);
    }

    50% {
        transform: scale(1.03);
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3)) brightness(1.08) contrast(1.08);
    }
}


#bannerPartImg.banner-fade-in,
#bannerPartImg2.banner-fade-in {
    transform: scale(1);
}

#bannerPartImg.banner-fade-out,
#bannerPartImg2.banner-fade-out {
    opacity: 0;
    transform: scale(0.97);
}

/* Remove August Specials tag */
.banner-specials-tag {
    display: none;
}

/* ---- Contacts & Actions Columns ---- */
.header-contacts-col,
.header-actions-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 30px;
    gap: 12px;
    flex-shrink: 0;
    min-width: 200px;
}

.header-contacts-col {
    flex: 0 0 200px;
}

.header-actions-col {
    flex: 0 0 160px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hdr-contact-btn,
.hdr-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.hdr-contact-btn:hover,
.hdr-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Remove specific colored backgrounds - keep icons simple */
.hdr-contact-btn.phone,
.hdr-contact-btn.whatsapp,
.hdr-contact-btn.email {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.hdr-contact-btn.phone:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.hdr-contact-btn.whatsapp:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.hdr-contact-btn.email:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* ================================
   NAV BAR — Transparent Category Bar (overlays hero)
   ================================ */

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000; /* Increased to be above banner */
    padding: 0;
    background: transparent;
    border-bottom: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Solid white navbar when scrolling past hero */
.navbar.scrolled {
    position: fixed;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .categories-btn-v2 {
    color: #1C1C1E;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-cat-link {
    color: #636366;
}

.navbar.scrolled .nav-cat-link:hover {
    color: #1C1C1E;
    background: rgba(0, 0, 0, 0.04);
}

.navbar.scrolled .nav-cat-link::after {
    background: var(--accent-primary, #B8860B);
}

.navbar.scrolled .nav-icon-btn-v2 {
    color: #1C1C1E;
}

.navbar.scrolled .mobile-hamburger {
    color: #1C1C1E;
}

/* Solid navbar for non-hero pages (catalog, product details, etc.) */
.navbar.navbar-solid {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-solid .categories-btn-v2 {
    color: #1C1C1E;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    text-shadow: none;
}

.navbar-solid .categories-btn-v2:hover,
.navbar-solid .categories-btn-v2.active {
    background: rgba(0, 0, 0, 0.1);
    color: #1C1C1E;
}

.navbar-solid .nav-cat-link {
    color: #636366;
    text-shadow: none;
}

.navbar-solid .nav-cat-link:hover {
    color: #1C1C1E;
    background: rgba(0, 0, 0, 0.04);
}

.navbar-solid .nav-cat-link::after {
    background: var(--accent-primary, #B8860B);
}

.navbar-solid .nav-icon-btn-v2 {
    color: #1C1C1E;
    text-shadow: none;
}

.navbar-solid .mobile-hamburger {
    color: #1C1C1E;
    text-shadow: none;
}

/* Navbar container - constrain to comfortable maximum width */
.navbar .container {
    padding: 0 4px;
    max-width: 1920px;
    margin: 0 auto;
}

.nav-content-v2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    height: 48px;
    width: 100%;
    padding: 0;
}

/* Left group: Vehicle Search + Categories buttons */
.nav-left-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Center group: Category links */
.nav-center-group {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 1400px;
    margin: 0 auto;
    overflow: visible;
}

/* Right group: Search */
.nav-right-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    gap: 0;
    padding-right: 0;
}

/* Branding — hidden, logo in top bar */
.logo {
    display: none;
}

/* Category Button */
.categories-btn-v2 {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 10px;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 36px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1000;
    touch-action: manipulation;
}

.categories-btn-v2:hover,
.categories-btn-v2.active {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* ---- Inline Category Links (JamesEdition style) ---- */
.nav-cat-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    height: 48px;
    overflow: visible;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
}

/* Categories menu wrapper - ensure visibility and clickability */
.categories-menu {
    position: relative;
    z-index: 1000;
    flex-shrink: 0;
}

/* Vehicle search menu wrapper */
.vehicle-search-menu {
    position: relative;
    z-index: 1000;
    flex-shrink: 0;
}

/* Vehicle Search Button */
.vehicle-search-btn-v2 {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 10px;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 36px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1000;
    touch-action: manipulation;
}

.vehicle-search-btn-v2:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.navbar.scrolled .vehicle-search-btn-v2,
.navbar.navbar-solid .vehicle-search-btn-v2 {
    color: #1C1C1E;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    text-shadow: none;
}

.navbar.scrolled .vehicle-search-btn-v2:hover,
.navbar.navbar-solid .vehicle-search-btn-v2:hover {
    background: rgba(0, 0, 0, 0.1);
}

.nav-cat-link {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    padding: 0 6px;
    height: 48px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.nav-cat-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-cat-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-cat-link:hover::after {
    width: 60%;
}

.nav-cat-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-cat-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-cat-link:hover::after {
    width: 60%;
}

/* ---- Nav Links V2 (Mobile slide-out) ---- */
.nav-links-v2 {
    display: none;
}

.nav-link-v2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 12px 0;
    text-decoration: none;
    display: block;
}

.nav-link-v2:hover {
    color: var(--accent-primary);
}

/* Mobile Contact Info (Inside Menu) */
.mobile-contact-info {
    display: none;
    margin-top: var(--space-6, 48px);
    padding-top: var(--space-6, 48px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex-direction: column;
    gap: var(--space-3, 24px);
}

/* Actions */
.nav-actions-v2 {
    display: flex;
    align-items: center;
    gap: 0;
    height: 48px;
}

/* Hide cart icon on desktop */
.nav-actions-v2 .cart-btn {
    display: none;
}

/* ---- Nav Search V2 ---- */
.nav-search-v2 {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    width: 110px;
    margin: 0;
}

/* Desktop: Full search form */
.search-form-v2 {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 2px 4px 2px 6px;
    transition: all 0.3s ease;
    height: 26px;
    width: 100%;
}

/* ================================
   RESPONSIVE NAVBAR BREAKPOINTS
   ================================ */

/* Extra Large Screens (1920px+) - Maximum comfort */
@media (min-width: 1920px) {
    .nav-cat-link {
        font-size: 0.78rem;
        padding: 0 10px;
    }
    
    .nav-search-v2 {
        width: 140px;
    }
    
    .categories-btn-v2,
    .vehicle-search-btn-v2 {
        padding: 6px 12px;
        font-size: 0.7rem;
        gap: 6px;
    }
    
    .nav-left-group {
        gap: 6px;
    }
}

/* Ultra-Wide Screens (2560px+) - Premium displays */
@media (min-width: 2560px) {
    .nav-cat-link {
        font-size: 0.82rem;
        padding: 0 12px;
    }
    
    .nav-search-v2 {
        width: 180px;
    }
    
    .categories-btn-v2,
    .vehicle-search-btn-v2 {
        padding: 8px 14px;
        font-size: 0.75rem;
        gap: 8px;
    }
    
    .nav-left-group {
        gap: 8px;
    }
    
    .navbar .container {
        padding: 0 8px;
    }
}

/* Large Desktop (1600px - 1919px) */
@media (min-width: 1600px) and (max-width: 1919px) {
    .nav-cat-link {
        font-size: 0.74rem;
        padding: 0 8px;
    }
    
    .nav-search-v2 {
        width: 130px;
    }
}

/* Standard Large (1440px - 1599px) */
@media (min-width: 1440px) and (max-width: 1599px) {
    .nav-cat-link {
        font-size: 0.72rem;
        padding: 0 7px;
    }
    
    .nav-search-v2 {
        width: 120px;
    }
}

/* Medium Desktop (1366px - 1439px) */
@media (min-width: 1366px) and (max-width: 1439px) {
    .nav-cat-link {
        font-size: 0.70rem;
        padding: 0 6px;
    }
    
    .nav-search-v2 {
        width: 115px;
    }
}

/* Small Desktop (1280px - 1365px) - Tight fit, all links visible */
@media (min-width: 1280px) and (max-width: 1365px) {
    .nav-cat-link {
        font-size: 0.62rem;
        padding: 0 4px;
        letter-spacing: -0.02em;
    }
    
    .nav-search-v2 {
        width: 110px;
    }
    
    .categories-btn-v2,
    .vehicle-search-btn-v2 {
        padding: 6px 8px;
        font-size: 0.6rem;
        gap: 4px;
    }
    
    .nav-left-group {
        gap: 3px;
    }
    
    .nav-center-group {
        margin: 0 3px;
    }
    
    .navbar .container {
        padding: 0 2px;
    }
}

/* Smaller Desktop (1024px - 1279px) - Very tight, all still visible */
@media (min-width: 1024px) and (max-width: 1279px) {
    .nav-cat-link {
        font-size: 0.6rem;
        padding: 0 3px;
        letter-spacing: -0.03em;
    }
    
    .nav-search-v2 {
        width: 100px;
    }
    
    .categories-btn-v2,
    .vehicle-search-btn-v2 {
        padding: 6px 7px;
        font-size: 0.58rem;
        gap: 3px;
    }
    
    .nav-left-group {
        gap: 2px;
    }
    
    .nav-center-group {
        margin: 0 2px;
    }
    
    .navbar .container {
        padding: 0 1px;
    }
}

.navbar.scrolled .search-form-v2,
.navbar.navbar-solid .search-form-v2 {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.search-form-v2:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.15);
}

.navbar.scrolled .search-form-v2:focus-within,
.navbar.navbar-solid .search-form-v2:focus-within {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.search-input-v2 {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 500;
    padding: 3px 0;
    outline: none;
    width: 100%;
    min-width: 40px;
}

.navbar.scrolled .search-input-v2,
.navbar.navbar-solid .search-input-v2 {
    color: #1c1c1e;
}

.search-input-v2::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.navbar.scrolled .search-input-v2::placeholder,
.navbar.navbar-solid .search-input-v2::placeholder {
    color: #8e8e93;
}

.search-submit-v2 {
    background: var(--accent-primary);
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 0.6rem;
}

.search-submit-v2:hover {
    transform: scale(1.1);
    background: var(--accent-secondary);
}

/* Show search button on desktop */
.search-btn-v2 {
    display: flex;
}

/* Hide search popup by default */
.search-popup-v2 {
    display: none;
}

.navbar.scrolled .search-form-v2,
.navbar.navbar-solid .search-form-v2 {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.search-form-v2:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.15);
}

.navbar.scrolled .search-form-v2:focus-within,
.navbar.navbar-solid .search-form-v2:focus-within {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.search-input-v2 {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 0;
    outline: none;
    width: 100%;
}

.navbar.scrolled .search-input-v2,
.navbar.navbar-solid .search-input-v2 {
    color: #1c1c1e;
}

.search-input-v2::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.navbar.scrolled .search-input-v2::placeholder,
.navbar.navbar-solid .search-input-v2::placeholder {
    color: #8e8e93;
}

.search-submit-v2 {
    background: var(--accent-primary);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-submit-v2:hover {
    transform: scale(1.1);
    background: var(--accent-secondary);
}

@media (max-width: 1200px) {
    /* Further reduce link padding for better fit */
    .nav-cat-link {
        font-size: 0.72rem;
        padding: 0 5px;
    }
}

/* Compact search button on smaller desktop/tablet */
@media (max-width: 1100px) {
    .search-btn-v2 {
        padding: 10px 14px;
        font-size: 0.75rem;
    }
    
    .search-btn-v2 i {
        font-size: 14px;
    }
    
    .vehicle-search-btn-v2,
    .categories-btn-v2 {
        padding: 10px 16px;
        font-size: 0.75rem;
    }
}

@media (max-width: 992px) {
    /* HIDE search button completely on mobile */
    .nav-search-v2 {
        display: none !important;
    }
    
    /* Hide ONLY navbar cart button on mobile, not bottom nav cart */
    .nav-actions-v2 .cart-btn {
        display: none !important;
    }
    
    /* Hide inline category links on mobile */
    .nav-cat-links {
        display: none !important;
    }
    
    /* Mobile navbar layout: Categories (left) | Vehicle Search (right) */
    .nav-content-v2 {
        height: 48px;
        padding: 0 12px;
        justify-content: space-between;
        position: relative;
        z-index: 2001; /* Above everything */
    }
    
    /* Categories button - left side */
    .categories-menu {
        display: flex !important;
        align-items: center;
        pointer-events: auto !important;
        order: 1;
        z-index: 2002;
        position: relative;
    }
    
    .categories-btn-v2 {
        padding: 10px 16px;
        font-size: 0.75rem;
        min-width: fit-content;
        pointer-events: auto !important;
        height: 40px;
        cursor: pointer;
        touch-action: manipulation;
        position: relative;
        z-index: 2003;
    }
    
    /* Vehicle search - right side */
    .vehicle-search-menu {
        display: flex;
        align-items: center;
        pointer-events: auto;
        order: 3;
        margin-left: auto;
        z-index: 2002;
        position: relative;
    }
    
    .vehicle-search-btn-v2 {
        padding: 10px 16px;
        width: auto;
        height: 40px;
        border-radius: 0;
        justify-content: center;
        pointer-events: auto;
        gap: 8px;
        cursor: pointer;
        touch-action: manipulation;
        position: relative;
        z-index: 2003;
    }
    
    .vehicle-search-btn-v2 span {
        display: inline; /* Show text on mobile */
        font-size: 0.75rem;
    }
    
    /* Show ONLY hamburger and cart in nav-actions on mobile */
    .nav-actions-v2 {
        display: none !important;
    }
    
    /* Mobile hamburger - keep visible for fallback */
    .mobile-hamburger {
        display: none !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 400px) {
    .categories-btn-v2,
    .vehicle-search-btn-v2 {
        padding: 8px 12px;
        font-size: 0.7rem;
        height: 36px;
    }
    
    .nav-content-v2 {
        padding: 0 8px;
    }
}

.nav-icon-btn-v2 {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 0 16px;
    height: 48px;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-icon-btn-v2:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle-wrapper {
    display: none;
}

.cart-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #d32f2f;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-hamburger {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 16px;
    height: 48px;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 992px) {
    .header-top-bar {
        height: 64px;
        overflow: hidden;
        /* Prevent wide banner from pushing width */
        width: 100%;
        max-width: 100vw;
    }

    .header-banner-col {
        overflow: hidden;
        max-width: 100%;
    }

    .header-logo-col {
        flex: 0 0 130px;
        padding: 4px 8px;
    }

    .header-logo-col img {
        height: 70px;
    }

    .banner-part-name {
        font-size: 1.2rem;
        /* Slightly smaller for mobile fit */
    }

    .banner-img-wrap {
        min-width: 90px;
        flex: 0 1 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 10px;
        padding: 8px;
        padding-right: 12px;
    }

    /* Simplified backlight for mobile */
    .banner-img-wrap::before {
        inset: -10px;
        background: radial-gradient(ellipse at 60% 50%, rgba(211, 47, 47, 0.08) 0%, transparent 70%);
    }

    .banner-prefix {
        font-size: 0.75rem;
    }

    .banner-specials-tag {
        display: none;
    }

    #bannerPartImg {
        /* Fixed box — image always fully visible regardless of aspect ratio */
        width: 56px;
        height: 56px;
        object-fit: contain;
        max-width: none;
        /* Reset animations for mobile stability */
        transform: none !important;
        animation: none !important;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2)) brightness(1.05);
    }

    #headerBannerInner {
        padding: 0 16px;
        justify-content: flex-start;
        /* Ensure logo and text stay left */
        gap: 12px;
    }

    .header-contacts-col,
    .header-actions-col {
        flex: 0 0 auto;
        padding: 0 8px;
        gap: 6px;
    }

    .header-actions-col {
        border-left: none;
    }

    .hdr-contact-btn,
    .hdr-action-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .mobile-hamburger {
        display: none !important;
        padding: 0;
        height: 30px;
        width: 30px;
        justify-content: center;
    }

    .nav-links-v2 {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        padding: 80px 24px;
        transform: translateX(100%);
        visibility: hidden;
        /* Prevent horizontal overflow trigger */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .nav-links-v2.active {
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-contact-info {
        display: flex;
    }
}

/* ── Mobile: Hide contacts AND actions columns — show only logo + banner ── */
@media (max-width: 992px) {
    .header-contacts-col,
    .header-actions-col {
        display: none !important;
    }

    /* ── Hide nav category links bar on mobile ── */
    .nav-cat-links {
        display: none !important;
    }

    /* ── Let banner fill the remaining header width ── */
    .header-banner-col {
        flex: 1 1 auto;
    }
    
    /* ── MOBILE: Hide ALL banner text, show images only ── */
    .banner-text-group {
        display: none !important;
    }

    /* ── MOBILE: Smaller images to fit better ── */
    #bannerPartImg,
    #bannerPartImg2 {
        height: 120px !important;
        max-width: 180px !important;
    }

    /* ── MOBILE: Tighter spacing for images ── */
    .banner-img-wrap,
    .banner-img-wrap-2 {
        padding: 0 8px !important;
        min-width: 120px !important;
    }
}

@media (max-width: 480px) {
    .banner-specials-tag {
        display: none;
    }
}

/* ── Mobile Bottom Navigation ──────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 9000;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #8e8e93;
    background: none;
    border: none;
    gap: 4px;
    padding: 8px 0;
    flex: 1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bottom-nav-item i {
    font-size: 1.2rem;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.bottom-nav-item.active {
    color: var(--accent-primary, #B8860B);
}

.bottom-cart-icon {
    position: relative;
}

.bottom-cart-icon .cart-badge {
    top: -8px;
    right: -10px;
}

@media (max-width: 992px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Offset footer padding so it doesn't get covered */
    body {
        padding-bottom: 70px;
    }

    /* Reposition FAB WhatsApp if it conflicts */
    .fab-whatsapp {
        bottom: 85px;
    }
}

/* Fix for Catalog Page Mobile Cart Visibility */
@media (max-width: 992px) {
    .header-actions-col {
        position: relative;
        right: 0;
        top: 0;
    }

    .catalog-sidebar {
        z-index: 9500;
    }
}

/* ── Floating WhatsApp Button - HIDDEN ──────────────────── */
.fab-whatsapp {
    display: none !important;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ================================
   SEARCH BUTTON POPUP
   ================================ */

.search-btn-v2 {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    padding: 10px 16px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn-v2 i {
    font-size: 16px;
}

.navbar.scrolled .search-btn-v2,
.navbar.navbar-solid .search-btn-v2 {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1c1c1e;
}

.search-btn-v2:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.navbar.scrolled .search-btn-v2:hover,
.navbar.navbar-solid .search-btn-v2:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.search-btn-v2:active {
    transform: translateY(0);
}

.search-btn-v2:focus {
    outline: 2px solid rgba(255, 215, 0, 0.5);
    outline-offset: 2px;
}

.search-popup-v2 {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 99999;
    animation: slideDown 0.3s ease;
    max-height: 80vh;
    overflow: hidden;
}

@media (max-width: 600px) {
    .search-popup-v2 {
        width: 90vw;
        right: -30px;
    }
}

.search-popup-v2.active {
    display: flex;
}

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

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

.search-form-v2 {
    position: relative;
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    z-index: 10;
}

.search-input-popup-v2 {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    color: #1c1c1e;
    outline: none;
    transition: all 0.3s ease;
    cursor: text !important;
    pointer-events: auto !important;
}

.search-input-popup-v2::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.search-input-popup-v2:focus {
    border-color: var(--accent-primary);
    background: white;
    cursor: text !important;
}

.search-submit-popup-v2 {
    width: 44px;
    height: 44px;
    background: var(--accent-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-submit-popup-v2:hover {
    background: var(--accent-dark);
}

.search-close-btn-v2 {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    color: #1c1c1e;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-close-btn-v2:hover {
    background: rgba(0, 0, 0, 0.1);
}

#searchResults {
    display: none;
}

/* Search Results Dropdown */
.search-results-dropdown {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
    background: white;
}

.search-result-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    pointer-events: none;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 14px;
    font-weight: 600;
    color: #1c1c1e;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-category {
    font-size: 12px;
    color: #8e8e93;
}

.search-no-results {
    padding: 32px 16px;
    text-align: center;
    color: #8e8e93;
    font-size: 14px;
}

.search-loading {
    padding: 32px 16px;
    text-align: center;
    color: var(--accent-primary);
    font-size: 14px;
}


/* Catalog Page Navbar - Simplified, no buttons */
.catalog-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Add padding to body to prevent content from going under fixed navbar */
body:has(.catalog-navbar) .catalog-container {
    margin-top: calc(var(--space-8) + 48px) !important;
    /* 48px is navbar height */
}

.catalog-navbar .nav-content-v2 {
    justify-content: center;
    height: 48px;
}

.catalog-navbar .nav-cat-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 48px;
    max-width: 100%;
}

.catalog-navbar .nav-cat-link {
    color: #636366;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-decoration: none;
    padding: 0 8px;
    height: 48px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    text-shadow: none;
}

.catalog-navbar .nav-cat-link:hover {
    color: #1C1C1E;
    background: rgba(0, 0, 0, 0.04);
}

.catalog-navbar .nav-cat-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-primary, #B8860B);
    transition: width 0.3s ease;
}

.catalog-navbar .nav-cat-link:hover::after {
    width: 60%;
}

@media (max-width: 992px) {
    .catalog-navbar {
        display: none;
    }
}

/* Catalog page - disable mega menu dropdowns */
body:has(.catalog-navbar) .category-megamenu-dropdown {
    display: none !important;
}

body:has(.catalog-navbar) .nav-cat-link-wrapper {
    position: static !important;
}

body:has(.catalog-navbar) .nav-cat-link {
    cursor: pointer !important;
}

/* Hide old search bar - only show search icon button */
.nav-search-v2 > form {
    display: none !important;
}

.nav-search-v2 {
    position: relative;
}
