/* MedLocker Header Styles */

/* Font Face Declarations */
@font-face {
    font-family: 'Helvetica';
    src: url('../assets/font/Helvetica.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica';
    src: url('../assets/font/Helvetica-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica';
    src: url('../assets/font/Helvetica-Black Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica';
    src: url('../assets/font/helvetica-compressed-5871d14b6903a.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-stretch: condensed;
    font-display: swap;
}

/* Header CSS Variables */
:root {
    --cta-orange: #FE5A13;
    --header-bg: #FFFAF5;
    --product-button: #FAD9C8;
    --font-color-1: #4B4B4B;
    --font-color-2: #000000;
    --grey: #FBFBFB;
    --white: #FFFFFF;
    --blue: #435EA2;
    --border-color: #e1e5e9;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --font-primary: 'Helvetica', sans-serif;
}

/* Notice Banner */
.notice-banner {
    background-color: var(--blue);
    color: var(--white);
    padding: 12px 0;
    font-size: 0.9rem;
    text-align: center;
    font-family: var(--font-primary);
}

.notice-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}

.notice-text {
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
}

.notice-text a {
    color: var(--white);
    text-decoration: underline;
    transition: var(--transition);
}

.notice-text a:hover {
    color: var(--cta-orange);
}

.reorder-link {
    font-weight: 700;
    text-decoration: underline !important;
}

/* Header Wrapper */
.header-wrapper {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
}

/* Logo Styles */
.header-logo {
    flex-shrink: 0;
}

.header-logo a {
    display: block;
    transition: var(--transition);
}

.header-logo a:hover {
    opacity: 0.8;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Search Bar Styles */
.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    background-color: var(--grey);
    color: var(--font-color-1);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--blue);
    background-color: var(--white);
    box-shadow: 0 0 0 2px rgba(67, 94, 162, 0.1);
}

.search-input::placeholder {
    color: var(--font-color-1);
    opacity: 0.6;
}

/* Navigation Styles */
.main-navigation {
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
    color: var(--font-color-1);
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--cta-orange);
}

.nav-item.current .nav-link {
    color: var(--cta-orange);
    font-weight: 700;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu Styles */
.help-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1001;
}

.nav-item.dropdown:hover .help-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.help-dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: var(--font-color-1);
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: var(--cta-orange);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--font-color-1);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover span {
    background-color: var(--cta-orange);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile Navigation */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--white);
    z-index: 1002;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.mobile-navigation.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-logo {
    flex: 1;
}

.mobile-logo a {
    display: block;
    transition: var(--transition);
}

.mobile-logo a:hover {
    opacity: 0.8;
}

.mobile-logo-img {
    height: 35px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--font-color-1);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    color: var(--cta-orange);
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: block;
    padding: 20px;
    color: var(--font-color-1);
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--cta-orange);
    background-color: #f8f9fa;
}

.mobile-nav-item.current .mobile-nav-link {
    color: var(--cta-orange);
    font-weight: 700;
    background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Notice Banner Mobile */
    .notice-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Header Mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        display: none;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin: 10px 0 0 0;
    }
    
    .logo {
        height: 40px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    /* Notice Banner Small Mobile */
    .notice-text {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    /* Header Small Mobile */
    .header-content {
        gap: 10px;
    }
    
    .logo {
        height: 35px;
    }
    
    .search-input {
        padding: 8px 10px 8px 35px;
        font-size: 0.85rem;
    }
    
    .search-icon {
        left: 10px;
        width: 14px;
        height: 14px;
    }
    
    .mobile-navigation {
        width: 100%;
        right: -100%;
    }
    
    .mobile-menu-header {
        padding: 15px;
    }
    
    .mobile-logo-img {
        height: 30px;
    }
    
    .mobile-nav-link {
        padding: 15px;
        font-size: 0.9rem;
    }
}
/* =============== NOTICE BAR =============== */
.notice-bar {
    background-color: #FFECC1;
    padding: 12px 0;
    text-align: center;
    font-size: 18px;
    color: var(--color-dark-red);
    border-bottom: 1px solid rgba(129, 28, 28, 0.1);
    display: block;
    transition: all 0.3s ease;
}

.notice-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.notice-text {
    line-height: 1.4;
}

.notice-text strong {
    color: var(--color-dark-red);
    font-weight: 700;
}
.notice-text p {
    font-size: 0.8em;
    margin-top: 2px;
    margin-bottom: 0px;
    padding: 0 40px;
}

/* Notice Bar Responsive Styles */
@media (max-width: 768px) {
    .notice-bar {
        padding: 10px 0;
        font-size: 14px;
    }
    
    .notice-content {
        padding: 0 15px;
    }
    
    .notice-text {
        line-height: 1.5;
    }
    
    .notice-text p {
        font-size: 0.7em !important;
        padding: 0 15px;
        margin-top: 5px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .notice-bar {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .notice-content {
        padding: 0 10px;
    }
    
    .notice-text {
        line-height: 1.6;
    }
    
    .notice-text p {
        font-size: 0.7em !important;
        padding: 0 5px;
        margin-top: 6px;
        line-height: 1.5;
    }
}