/* ============================================
   CUSTOM HEADER & HOVER FIXES
   ============================================ */

/* Custom Header Layout */
.site-header-custom {
    background: #ffffff;
    border-bottom: 1px solid #eef2f6;
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-inner-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1e293b;
}

.logo-symbol {
    font-size: 2rem;
    color: #2e5ec4;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 700;
    font-size: 1.5rem;
    color: #0f172a;
    line-height: 1;
}

/* Nav Links */
.nav-custom {
    display: flex;
    gap: 40px;
}

.nav-custom a {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 0;
    transition: color 0.2s;
    position: relative;
    background: transparent !important;
    /* Prevent white bg override */
}

.nav-custom a:hover,
.nav-custom a.active {
    color: #2e5ec4 !important;
    /* Force blue on hover */
    background: transparent !important;
}

.nav-custom a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2e5ec4;
}

/* Header Right */
.header-right-custom {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon-custom {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cart-icon-custom:hover {
    color: var(--primary) !important; /* Blue on hover */
    background: #fff !important;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cart-badge-blue {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #4f46e5;
    color: white !important;
    font-size: 0.75rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.4);
}

/* Mobile Toggle */
.mobile-toggle-custom {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1e293b;
    cursor: pointer;
}

.mobile-nav-drawer {
    display: none;
}

/* Hover fixes for white buttons */
.btn-secondary:hover {
    color: var(--primary) !important;
    background: #f1f5f9 !important;
}

.btn-primary:hover {
    color: white !important;
    /* Ensure text stays white on dark button */
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .nav-custom {
        display: none;
    }

    .mobile-toggle-custom {
        display: block;
    }

    .mobile-nav-drawer {
        display: block;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: 0.3s;
        z-index: 999;
    }

    body.mobile-nav-open .mobile-nav-drawer {
        transform: translateY(0);
    }

    .mobile-nav-drawer a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #f1f5f9;
        text-decoration: none;
        color: #1e293b;
        font-weight: 600;
    }

    .mobile-nav-drawer a:hover {
        background: #f8fafc;
        color: #2e5ec4;
    }
}
/* Logo Image Style */
.logo-img-custom {
    height: 50px; /* Adjust height based on header height (80px) */
    width: auto;
    object-fit: contain;
    display: block;
}


/* Footer Logo */
.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    /* Optional: make it white if needed for dark background */
    filter: brightness(0) invert(1); 
    opacity: 0.9;
}

