/* =========================================
   BLAYHUB GLOBAL STYLES - V9.0 (STEALTH ARCHITECTURE)
   ========================================= */

:root {
    --primary: #e5383b;         /* Imperial Red */
    --primary-dark: #ba181b;    /* Darker Red */
    --dark-bg: #0b090a;         /* Rich Black */
    --card-bg: #161a1d;         /* Eerie Black */
    --text-main: #f5f3f4;       /* Off White */
    --text-muted: #b1a7a6;      /* Silver Pink */
    --border: #222;             /* Softer Dark Grey */
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 105px; /* Top Bar (70px) + Tinted Links (35px) */
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }
button { font-family: inherit; }

/* --- BUTTONS --- */
.btn {
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 56, 59, 0.4);
}
.btn-outline { background: transparent; border: 1px solid white; color: white; clip-path: none; }
.btn-outline:hover { background: white; color: black; }
.full-width { width: 100%; text-align: center; }

/* =========================================
   NAVBAR CORE (DYNAMIC GLASSMORPHISM)
   ========================================= */

/* 🌟 STATE 1: TOP OF PAGE (High transparency, breathing room) */
.dual-navbar {
    position: fixed; 
    top: 0; left: 0; width: 100%;
    background: rgba(11, 9, 10, 0.15); /* Very faint tint to keep text readable */
    backdrop-filter: blur(8px); /* Light blur */
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Barely visible line */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Buttery smooth transition */
}

/* 🌟 STATE 2: SCROLLED (Your dark stealth tint) */
.dual-navbar.scrolled {
    background: rgba(11, 9, 10, 0.92); /* Deep smoked glass */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); /* Adds 3D depth over content */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* --- MAIN ROW (Logo, Search, Actions) --- */
.main-bar {
    height: 70px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; 
    align-items: center;
}

.nav-left { display: flex; justify-content: flex-start; }
.nav-center { display: flex; justify-content: center; width: 100%; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }

/* BRANDING */
.brand-wrapper { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 35px; width: auto; object-fit: contain; }
.brand-text {
    font-family: var(--font-heading);
    font-size: 1.25rem; font-weight: 700; letter-spacing: 1.5px;
    line-height: 1; text-transform: uppercase;
}
.brand-text .white { color: white; }
.brand-text .red { color: var(--primary); }

/* PILL-SHAPED STEALTH SEARCH BAR */
.sleek-search {
    display: flex;
    width: 100%;
    max-width: 420px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    transition: all 0.3s ease;
}
.sleek-search:focus-within { border-color: rgba(229, 56, 59, 0.5); background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 15px rgba(229, 56, 59, 0.1); }
.sleek-search input {
    flex: 1; background: transparent; border: none; padding: 0 20px;
    color: white; font-family: var(--font-body); font-size: 0.8rem;
    letter-spacing: 1px; outline: none;
}
.sleek-search input::placeholder { color: #666; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; }
.sleek-search button {
    background: transparent; border: none; width: 45px; color: #888; cursor: pointer; transition: 0.3s; border-radius: 0 50px 50px 0;
}
.sleek-search button:hover { color: var(--primary); }

/* ACTIONS */
.auth-link { display: flex; align-items: center; gap: 8px; text-decoration: none; transition: 0.3s ease; }
.auth-link:hover .auth-icon i, .auth-link:hover .auth-value { color: var(--primary); }
.auth-icon i { font-size: 1.1rem; color: #ffffff; transition: 0.3s; }
.auth-value { font-size: 11px; color: #ffffff; font-weight: 600; letter-spacing: 1.5px; font-family: var(--font-heading); text-transform: uppercase; transition: 0.3s; }

.nav-divider { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.15); }

.action-link { text-decoration: none; display: flex; align-items: center; transition: 0.3s ease; }
.action-link:hover .icon-wrapper i { color: var(--primary); transform: scale(1.1); }
.icon-wrapper { position: relative; color: #ffffff; transition: 0.3s ease; display: flex; align-items: center; }
.icon-wrapper i { font-size: 1.1rem; transition: 0.3s ease; }

.cart-badge {
    background-color: var(--primary); color: #ffffff; font-size: 0.6rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%;
    position: absolute; top: -6px; right: -8px; box-shadow: 0 0 10px rgba(229, 56, 59, 0.5);
    transition: transform 0.3s ease; font-family: var(--font-body);
}
.action-link:hover .cart-badge { transform: translateY(-2px); }
.hamburger { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; display: none; }


/* --- LINK ROW: SUBTLE RED TINT (BOTTOM) WITH SHIMMER --- */
.bottom-bar-tint {
    width: 100%;
    background: rgba(229, 56, 59, 0.05); /* Extremely faint dark red */
    border-top: 1px solid rgba(229, 56, 59, 0.1); /* Subtle red border */
    position: relative; /* Required to contain the shimmer */
    overflow: hidden; /* Prevents the shimmer from spilling outside the bar */
}

/* 🌟 THE DIAMOND GLOW EFFECT */
.bottom-bar-tint::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* Start deep off-screen */
    width: 100%; /* Massive width for a slow, rolling glow */
    height: 100%;
    
    /* The Diamond Gradient: Very dark edges, tight bright core */
    background: linear-gradient(
        to right, 
        transparent 0%, 
        rgba(255, 255, 255, 0.01) 35%, 
        rgba(255, 255, 255, 0.12) 50%, /* The sharp 'diamond' peak */
        rgba(255, 255, 255, 0.01) 65%, 
        transparent 100%
    );
    
    transform: skewX(-45deg); /* Sharper angle for a sleeker, aggressive cut */
    
    /* 12s total loop, smooth easing */
    animation: diamondGlow 12s ease-in-out infinite; 
    
    /* 🌟 THE FIX: Waits 1.5 seconds for your preloader to vanish before firing */
    animation-delay: 0.8s; 
    
    pointer-events: none; 
    z-index: 1; 
}

@keyframes diamondGlow {
    0% { left: -150%; }
    
    /* Takes exactly 4.2 seconds to heavily drag across the screen */
    35% { left: 150%; } 
    
    /* Rests silently in the shadows for the remaining 7.8 seconds */
    100% { left: 150%; } 
}

.bottom-links {
    height: 35px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.bottom-links-left, .bottom-links-right {
    display: flex;
    gap: 35px;
}

.bottom-links a {
    font-family: var(--font-body); /* Using Inter for subtlety */
    font-weight: 400; /* Light weight */
    font-size: 0.7rem; /* Tiny size to let logo dominate */
    text-transform: uppercase;
    letter-spacing: 2px; /* Wide tracking for premium feel */
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 3px 0;
}

.bottom-links a:hover, .bottom-links a.active { color: white; }
.bottom-links a::after {
    content: ''; position: absolute; width: 0; height: 1px;
    bottom: 0; left: 0; background-color: var(--primary);
    transition: width 0.3s;
}
.bottom-links a:hover::after, .bottom-links a.active::after { width: 100%; }


/* =========================================
   MOBILE MENU OVERLAY (ELITE UX)
   ========================================= */
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(15px); z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.mobile-overlay.active { opacity: 1; pointer-events: all; }

.modern-mobile-menu { position: fixed; top: 0; right: -100%; width: min(80vw, 320px); height: 100vh; background: #0b090a; border-left: 1px solid #1a1c20; z-index: 4000; display: flex; flex-direction: column; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.8); }
.modern-mobile-menu.active { right: 0; }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 3999; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.modern-mobile-menu.active ~ .mobile-menu-overlay { opacity: 1; pointer-events: all; }

.mobile-menu-header { padding: 30px 24px; border-bottom: 1px solid #1a1c20; display: flex; justify-content: space-between; align-items: flex-start; background: #0b090a; }
.mobile-user-profile { display: flex; gap: 14px; align-items: center; }
.mobile-avatar { width: 44px; height: 44px; border-radius: 50%; background: rgba(229,56,59,0.1); color: #e5383b; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; border: 1px solid rgba(229,56,59,0.3); }
.mobile-user-info { display: flex; flex-direction: column; gap: 4px; }
.mobile-greeting { font-family: var(--font-body); font-size: 0.65rem; color: #6b6e72; text-transform: uppercase; letter-spacing: 1.5px; }
.mobile-login-link { font-family: var(--font-heading); font-size: 0.9rem; color: #fff; text-decoration: none; font-weight: 500; letter-spacing: 1px; }
.close-menu-btn { background: transparent; border: none; color: #666; font-size: 1.4rem; cursor: pointer; padding: 0; transition: color 0.2s; margin-top: 5px; }
.close-menu-btn:hover { color: #fff; }

.mobile-search-container { padding: 20px; border-bottom: 1px solid #1a1c20; }
.mobile-search { background: rgba(255, 255, 255, 0.05); }

.mobile-nav-links { padding: 24px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.mobile-nav-links a { display: block; padding: 12px 0; text-decoration: none; color: #888; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.03); transition: all 0.2s ease; }
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: #fff; border-bottom-color: #e5383b; padding-left: 8px; }
.mobile-highlight { color: var(--primary) !important; margin-top: 20px; }

.mobile-menu-footer { padding: 24px; border-top: 1px solid #1a1c20; text-align: center; }
.mobile-legal-links { font-family: var(--font-heading); font-size: 0.75rem; color: #555; letter-spacing: 1.5px; }
.mobile-legal-links a { color: #777; text-decoration: none; }
.mobile-socials { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; margin-top: 15px; }
.mobile-socials a { color: #555; font-size: 1.1rem; transition: color 0.2s; }
.mobile-socials a:hover { color: #fff; }
.mobile-menu-footer p { margin: 0; font-family: var(--font-body); font-size: 0.65rem; color: #444; letter-spacing: 1px; }


/* =========================================
   GLOBAL NAVBAR RESPONSIVE FIXES
   ========================================= */
@media (max-width: 992px) {
    .main-bar { grid-template-columns: 1fr 1fr; }
    .nav-center { display: none; }
}

@media (max-width: 768px) {
    body { padding-top: 70px; } /* Bottom row vanishes on mobile */
    .bottom-bar-tint { display: none; } /* Hide text links entirely */
    
    /* Strict Mobile Minimalism */
    .brand-text { display: none !important; } /* Hide "BLAYHUB CUSTOMS" Text */
    .desktop-only { display: none !important; } /* Hide Profile & Wishlist Icons */
    
    .nav-right { gap: 15px; } /* Tighten icon spacing */
    .hamburger { display: block; margin-left: 5px; }
}


/* =========================================
   FOOTER (GLOBAL STANDARD)
   ========================================= */
footer { background: black; padding: 80px 20px 0; border-top: 1px solid #1a1a1a; margin-top: auto; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand p { color: #666; margin-bottom: 25px; max-width: 320px; font-size: 0.85rem; }
.socials { display: flex; gap: 20px; }
.socials a { color: #888; font-size: 1.1rem; transition: 0.3s; }
.socials a:hover { color: var(--primary); transform: translateY(-3px); }
.footer-links h4 { color: white; font-family: var(--font-heading); margin-bottom: 25px; letter-spacing: 1.5px; font-size: 1rem; }
.footer-links a { display: block; color: #666; margin-bottom: 12px; font-size: 0.85rem; width: fit-content; transition: 0.3s; }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-bottom-bar { max-width: 1200px; margin: 0 auto; border-top: 1px solid #1a1a1a; padding: 25px 0; display: flex; justify-content: space-between; align-items: center; }
.copyright { color: #444; font-size: 0.75rem; letter-spacing: 1px; }
.payment-icons { display: flex; align-items: center; gap: 15px; }
.payment-icons i { color: #666; font-size: 1.3rem; }
.pay-tag { border: 1px solid #222; padding: 3px 8px; color: #666; font-size: 0.65rem; border-radius: 3px; font-weight: 600; letter-spacing: 1px; }

@media (max-width: 768px) {
    footer { padding: 40px 15px 0; }
    .footer-container { grid-template-columns: 1fr; gap: 30px; text-align: center; padding-bottom: 30px; }
    .footer-brand { width: 100%; display: flex; flex-direction: column; align-items: center; }
    .footer-brand p { font-size: 0.85rem; max-width: 250px; margin: 0 auto 20px; }
    .socials { justify-content: center; width: 100%; }
    .footer-links { width: 100%; }
    .footer-links h4 { font-size: 0.95rem; margin-bottom: 10px; }
    .footer-links a { font-size: 0.85rem; margin-bottom: 8px; width: 100%; display: block; text-align: center; }
    .footer-bottom-bar { flex-direction: column-reverse; gap: 15px; padding: 20px 0; text-align: center; }
    .payment-icons { justify-content: center; }
}

/* =========================================
   PREMIUM SCROLL ANIMATIONS
   ========================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.2, 1, 0.2, 1); will-change: opacity, transform; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 1s cubic-bezier(0.2, 1, 0.2, 1); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 1s cubic-bezier(0.2, 1, 0.2, 1); }
.reveal-left.active, .reveal-right.active { opacity: 1; transform: translateX(0); }

/* =========================================
   PROFILE HOVER MENU (ELITE UX)
   ========================================= */
.profile-dropdown-wrapper { position: relative; display: inline-flex; align-items: center; height: 100%; }
.profile-dropdown-menu { position: absolute; top: 40px; right: 0; background: rgba(11, 9, 10, 0.95); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; min-width: 180px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9); opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s cubic-bezier(0.2, 1, 0.2, 1); z-index: 2000; }
.profile-dropdown-wrapper::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 20px; }
.profile-dropdown-wrapper.is-logged-in:hover .profile-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.profile-dropdown-menu a { display: flex; align-items: center; gap: 12px; padding: 14px 20px; color: #f5f3f4; font-family: var(--font-heading); font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; transition: all 0.3s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.profile-dropdown-menu a:last-child { border-bottom: none; }
.profile-dropdown-menu a:hover { background: rgba(229, 56, 59, 0.1); color: var(--primary); padding-left: 26px; }
.profile-dropdown-menu i { font-size: 1.1rem; width: 20px; text-align: center; }

/* =========================================
   GLOBAL CUSTOM MODALS
   ========================================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 10000; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.2, 1, 0.2, 1); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: #111; border: 1px solid #222; padding: 40px 30px; border-radius: 6px; max-width: 400px; width: 90%; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.2, 1, 0.2, 1); box-shadow: 0 20px 50px rgba(0,0,0,0.9); }
.text-center { text-align: center; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-icon i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.modal-title { font-family: var(--font-heading); font-size: 1.5rem; color: white; margin-bottom: 10px; letter-spacing: 1px; }
.modal-text { color: #888; margin-bottom: 30px; font-size: 0.85rem; }
.modal-actions { display: flex; gap: 15px; justify-content: center; }
.btn-cancel { background: transparent; border: 1px solid #333; color: white; padding: 10px 24px; font-family: var(--font-heading); font-weight: 600; letter-spacing: 1px; cursor: pointer; transition: 0.3s; }
.btn-cancel:hover { background: #222; }
.btn-confirm-remove { background: var(--primary); border: none; color: white; padding: 10px 24px; font-family: var(--font-heading); font-weight: 600; letter-spacing: 1px; cursor: pointer; transition: 0.3s; }
.btn-confirm-remove:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(229, 56, 59, 0.4); }

/* =========================================
   LEGAL / DOCUMENT PAGE STYLES
   ========================================= */
.legal-container { max-width: 800px; margin: 120px auto 80px; padding: 0 24px; }
.legal-header { text-align: center; margin-bottom: 50px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.legal-header h1 { font-family: var(--font-heading); font-size: 3rem; color: #ffffff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.legal-header p { color: var(--primary); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; letter-spacing: 2px; }
.legal-content h2 { font-family: var(--font-heading); font-size: 1.5rem; color: #ffffff; margin: 40px 0 15px; letter-spacing: 0.5px; }
.legal-content p, .legal-content li { font-family: var(--font-body); color: #a1a1aa; line-height: 1.8; font-size: 0.95rem; margin-bottom: 15px; }
.legal-content ul { margin-bottom: 20px; padding-left: 20px; }

/* =========================================
   GLOBAL CUSTOM SCROLLBAR
   ========================================= */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.1) transparent; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; transition: background 0.3s ease; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
::-webkit-scrollbar-thumb:active { background: var(--primary); }

/* =========================================
   GLOBAL BACK TO TOP BUTTON
   ========================================= */
#back-to-top { position: fixed; bottom: 30px; right: 30px; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: white; border: none; font-size: 1rem; cursor: pointer; z-index: 9999; opacity: 0; pointer-events: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 4px 12px rgba(229,56,59,0.4); display: flex; align-items: center; justify-content: center; transform: translateY(20px); }
#back-to-top:hover { background: var(--primary-dark); transform: translateY(-4px) scale(1.1); }
#back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
@media (max-width: 768px) { #back-to-top { bottom: 20px; right: 20px; transform: translateY(10px); } }


/* =========================================
   RESTORED PRELOADER ANIMATION
   ========================================= */
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 15px rgba(229,56,59,0.8)); } }
.preloader-logo { width: 80px; animation: pulse 1s infinite alternate; }

/* =========================================
   LIVE SEARCH DROPDOWN (GLOBAL)
   ========================================= */
.search-dropdown {
    position: absolute; 
    top: 120%; 
    left: 0; 
    width: 100%;
    background: rgba(11, 9, 10, 0.98); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); 
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8); 
    z-index: 2000;
    max-height: 400px; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column;
}
.search-dropdown.hidden { display: none; }
.search-item {
    display: flex; align-items: center; gap: 15px; padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.03); text-decoration: none; transition: 0.3s;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: rgba(229,56,59,0.1); padding-left: 20px; }
.search-item img { width: 45px; height: 45px; object-fit: contain; border-radius: 4px; background: #050505; border: 1px solid #222; }
.search-item-info { display: flex; flex-direction: column; }
.search-item-title { color: #ddd; font-family: var(--font-heading); font-size: 0.85rem; letter-spacing: 0.5px; transition: 0.3s; }
.search-item:hover .search-item-title { color: #fff; }
.search-item-price { color: var(--primary); font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; }
.search-view-all { justify-content: center; color: #888; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; font-family: var(--font-heading); }
.search-view-all:hover { color: white; background: transparent; padding-left: 15px; }

/* =========================================
   SAVED PARTS (WISHLIST) DRAWER - V2
   ========================================= */
.wishlist-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(3px); 
    z-index: 99990; /* 🌟 Pushed way up to clear the Back to Top button */
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.wishlist-overlay.active { opacity: 1; pointer-events: all; }

.wishlist-drawer {
    position: fixed; top: 0; right: -100%; width: min(90vw, 400px); height: 100svh;
    background: rgba(11, 9, 10, 0.98); backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,255,255,0.05); 
    z-index: 99991; /* 🌟 Pushed way up */
    display: flex; flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -15px 0 40px rgba(0,0,0,0.8);
}
.wishlist-drawer.active { right: 0; }

.wishlist-header {
    padding: 25px 20px; border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
}
.wishlist-header h3 {
    font-family: var(--font-heading); color: white; font-size: 1.2rem;
    letter-spacing: 1.5px; margin: 0; display: flex; align-items: center; gap: 10px;
}
.close-drawer-btn {
    background: transparent; border: none; color: #888; font-size: 1.2rem;
    cursor: pointer; transition: 0.2s;
}
.close-drawer-btn:hover { color: white; transform: rotate(90deg); }

/* The scrollable area for parts */
.wishlist-content {
    flex: 1; overflow-y: auto; padding: 20px;
    display: flex; flex-direction: column; gap: 15px;
}

/* Empty State */
.empty-wishlist {
    text-align: center; color: #555; padding: 40px 20px;
    display: flex; flex-direction: column; gap: 10px;
}
.empty-wishlist i { font-size: 2.5rem; color: #333; }
.empty-wishlist p { font-family: var(--font-body); font-size: 0.9rem; margin: 0; }

/* Saved Item Card */
.saved-item-card {
    display: flex; gap: 15px; padding: 12px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px; position: relative; transition: 0.2s;
}
.saved-item-card:hover { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); }
.saved-img { width: 70px; height: 70px; border-radius: 4px; object-fit: contain; background: #050505; }
.saved-info { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.saved-title { color: #ddd; font-family: var(--font-heading); font-size: 0.9rem; text-decoration: none; margin-bottom: 5px; line-height: 1.2; }
.saved-title:hover { color: white; }
.saved-price { color: var(--primary); font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; }
.btn-remove-saved {
    position: absolute; top: 10px; right: 10px;
    background: transparent; border: none; color: #666; cursor: pointer; transition: 0.2s;
}
.btn-remove-saved:hover { color: var(--primary); }

/* 🌟 NEW BUTTON HOVERS & STICKY FOOTER */
.btn-saved-to-cart {
    margin-top: 8px; background: transparent; border: 1px solid var(--primary);
    color: var(--primary); font-family: var(--font-heading); font-size: 0.7rem;
    padding: 6px 12px; border-radius: 4px; cursor: pointer; width: fit-content;
    transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 6px;
}
.btn-saved-to-cart:hover {
    background: var(--primary); color: white; box-shadow: 0 0 10px rgba(229, 56, 59, 0.3);
}

.wishlist-footer {
    padding: 20px; background: rgba(11, 9, 10, 0.98);
    border-top: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; gap: 15px;
}
.btn-master-cart {
    width: 100%; background: var(--primary); color: white; border: none; padding: 16px;
    font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 1.5px;
    border-radius: 4px; cursor: pointer; transition: all 0.2s ease;
    display: flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-master-cart:hover {
    background: #b91c1f; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(229, 56, 59, 0.3);
}
.btn-clear-all {
    background: transparent; border: none; color: #666; font-family: var(--font-heading);
    font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase;
    cursor: pointer; transition: 0.2s; display: flex; justify-content: center; align-items: center; gap: 6px;
}
.btn-clear-all:hover { color: #fff; }

/* =========================================
   ELITE MINIMALIST TOAST NOTIFICATIONS
   ========================================= */
#toast-container {
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    z-index: 999999; /* Ensure it's above absolutely everything */
    pointer-events: none;
}

.toast {
    background: rgba(8, 9, 11, 0.95); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary); /* Subtle brand accent */
    color: #e8e8e8;
    padding: 14px 24px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    transform: translateX(120%);
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.error { border-left-color: #ff4d4f; }
.toast.hide { animation: slideOutRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.toast i { font-size: 1.1rem; color: white; }

@keyframes slideInRight { 
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; } 
}
@keyframes slideOutRight { 
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; } 
}

/* Mobile Tweak: Snap to top on mobile so it isn't hidden by thumbs/keyboards */
@media (max-width: 768px) {
    #toast-container {
        top: 20px;
        bottom: auto;
        right: 5%;
        left: 5%;
    }
    .toast {
        justify-content: center;
        animation: slideInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .toast.hide { animation: slideOutUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
}

@keyframes slideInDown { 
    from { transform: translateY(-120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; } 
}
@keyframes slideOutUp { 
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-120%); opacity: 0; } 
}

/* =========================================
   MOBILE TOAST NOTIFICATION POSITIONING
   ========================================= */
@media (max-width: 768px) {
    /* Target whatever ID or Class your toast container uses */
    #toast-container, .toast-container {
        /* Pushes it just below the ~70px mobile navbar */
        top: 85px !important; 
        bottom: auto !important;
        /* Ensures it stays centered */
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important; /* Prevents it from touching the screen edges */
    }
}

/* =========================================
   PURE CSS THREE-DOT LOADER
   ========================================= */
.dot-loader {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
}
.dot-loader span {
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    animation: blayhub-bounce 1.4s infinite ease-in-out both;
}
.dot-loader span:nth-child(1) { animation-delay: -0.32s; }
.dot-loader span:nth-child(2) { animation-delay: -0.16s; }

@keyframes blayhub-bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}