/* * File: modules/header/header.css 
 * Version: 2.2.0 (Fixing Overlap & Layout)
 */

.main-header {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%;
    height: 80px;
    background: #ffffff; /* Solid white for cleanliness */
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* Subtle shadow */
    transition: var(--transition);
}

.header-container {
    height: 100%;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo a { 
    font-weight: 900; 
    font-size: 24px; 
    color: var(--text-color); 
    text-transform: uppercase;
    letter-spacing: -1px;
    text-decoration: none;
}
.logo span { color: var(--accent-red); }

/* Desktop Navigation */
.nav-desktop ul { display: flex; gap: 40px; }
.nav-desktop ul li a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}

/* Hover Line Effect */
.nav-desktop ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}
.nav-desktop ul li a:hover::after { width: 100%; }

/* Hide Desktop Nav on Mobile */
@media (max-width: 992px) { 
    .nav-desktop { display: none; } 
}

/* Actions (Cart, Theme, Etc) */
.header-actions { display: flex; align-items: center; gap: 20px; }

.pwa-btn {
    background: var(--accent-red);
    color: white; border: none;
    padding: 8px 16px; border-radius: 20px;
    font-size: 12px; font-weight: 700; cursor: pointer;
}

.theme-switch { cursor: pointer; font-size: 18px; }

.cart-icon { position: relative; cursor: pointer; font-size: 18px; }
.cart-icon .count {
    position: absolute;
    top: -8px; right: -10px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
}

/* Mobile Toggle (Hamburger) */
.mobile-toggle {
    display: none; cursor: pointer;
    flex-direction: column; gap: 6px;
}
.mobile-toggle span { width: 25px; height: 3px; background: var(--text-color); border-radius: 2px; }

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

/* Mobile Drawer */
.mobile-drawer {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: var(--bg-color); z-index: 2000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px;
    display: flex; flex-direction: column;
}
.mobile-drawer.active { right: 0; }

.close-btn { 
    align-self: flex-end; 
    font-size: 40px; 
    cursor: pointer; 
    color: var(--text-color); 
}

/* Mobile Nav Links Styling */
.mobile-nav-links { 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
    margin-top: 60px; 
    text-align: center; 
}

.mobile-nav-links li a { 
    font-size: 28px; 
    font-weight: 800; 
    color: var(--text-color); 
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

/* The Red Hover Effect */
.mobile-nav-links li a:hover {
    color: var(--accent-red);
    transform: translateX(10px); /* Slight movement for professional feel */
}

/* Important: This pushes content down so it doesn't hide behind the header */
.header-spacer { height: 80px; width: 100%; display: block; }

/* --- NEW: Force Image Logo Size --- */
.logo img {
    height: 60px;       /* Forces the logo to fit nicely inside your 80px header */
    width: auto;        /* Keeps the aspect ratio perfect */
    max-width: 250px;   /* Prevents it from getting too wide on mobile */
    display: block;     /* Removes weird gaps below images */
}

/* Optional: Adjust mobile size if 60px is too big for phones */
@media (max-width: 768px) {
    .logo img {
        height: 50px;   /* Slightly smaller on mobile to save space */
    }
}