/* --- CUSTOM FONT INTEGRATION --- */
@font-face {
    font-family: 'FranklinGothicBook';
    /* Assuming style.css is in a 'css' folder, path is correct: '../fonts/...' */
    src: url('../fonts/Franklin_Gothic_Book.woff2') format('woff2');
    font-weight: 400; /* Book weight is standard/normal */
    font-style: normal;
    font-display: swap; /* Improves perceived loading speed */
}

/* --- GLOBAL DEFINITIONS & RESETS --- */

:root {
    --main-font: 'FranklinGothicBook', Arial, sans-serif; /* Use the custom font */
    --primary-blue: #004085;
    --secondary-red: #CC0033;
    --neutral-white: #FFFFFF;
    --light-grey: #f0f0f0;
    --line-color: #ddd;
    --dark-text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Global application of the custom font */
    font-family: var(--main-font); 
}

body {
    color: var(--dark-text);
}


/* --- HEADER STYLING --- */

/* 1. Top Utility Bar */
.top-utility-bar {
    background-color: var(--primary-blue);
    color: var(--neutral-white);
    font-size: 13px;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #003366;
}

.utility-actions {
    display: flex;
    gap: 15px;
}

.utility-link {
    color: var(--neutral-white);
    text-decoration: none;
    transition: color 0.2s;
}

.utility-link:hover {
    color: #cccccc;
}

/* 2. Main Navigation Bar (Logo, Search, Icons) */
.header-main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    background-color: var(--neutral-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 80px; 
}

/* --- LOGO AREA CLEANUP (Permanent Fix) --- */
.logo-area {
    display: flex;
    align-items: center;
    height: 100%;
}

.brand-logo-link {
    display: block;
    height: 60px; /* New fixed container height */
    width: 200px;  /* New fixed container width */
    overflow: hidden;
    text-decoration: none;
}

.brand-name-text {
    /* Hide the text version, as we are using the image */
    display: none; 
}

.brand-logo-image {
    /* Set image sizing based on the parent link dimensions */
    display: block;
    height: 100%; /* Fills the 60px height of the parent link */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    vertical-align: middle;
}
/* --- END LOGO AREA FIXES --- */


/* Search Bar Area */
.search-and-icons {
    display: flex;
    align-items: center;
    gap: 30px;
}

.search-bar {
    display: flex;
    border: 2px solid var(--primary-blue);
    border-radius: 4px;
    overflow: hidden;
    width: 400px;
    max-width: 100%;
}

.search-input {
    padding: 10px;
    border: none;
    flex-grow: 1;
    font-size: 14px;
}

.search-btn {
    background-color: var(--secondary-red);
    color: var(--neutral-white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #a3002a;
}

/* User Icons */
.user-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-link {
    font-size: 22px;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--secondary-red);
    color: var(--neutral-white);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
}

/* 3. Secondary Menu Bar */
.secondary-menu-bar {
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
    padding: 10px 5%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
}

.shop-all a {
    background-color: var(--primary-blue);
    color: var(--neutral-white);
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
}

.menu-links a {
    color: var(--primary-blue);
    text-decoration: none;
    padding: 8px 12px;
    transition: background-color 0.2s;
}

.menu-links a:hover {
    background-color: var(--light-grey);
    border-radius: 4px;
}

/* --- RESPONSIVENESS for smaller screens --- */
@media (max-width: 768px) {
    .header-main-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 5px;
    }
    .search-and-icons {
        width: 100%;
        justify-content: space-between;
    }
    .search-bar {
        width: 60%;
    }
    .top-utility-bar, .secondary-menu-bar {
        padding: 8px 4%;
    }
    .secondary-menu-bar {
        flex-wrap: wrap;
    }
}