/* mil6print/assets/css/header-footer.css */

/* ---------- HEADER (FULL-WIDTH) ---------- */
.mil6print-site-header {
    width: 100%;
    color: #fff;
    margin: 0;
    padding: 0;
}
.header-inner {
    margin: 0 auto;
    box-sizing: border-box;
}

/* Top banner marquee */
.mil6print-top-banner {
    overflow: hidden;
    padding: 8px 0;
    background: #FFD300;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.mil6print-scrolling-text {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 600;
    color: #0b0b0d;
    font-size: 13px;
    will-change: transform;
    animation: scroll-text linear infinite; /* duration is set inline */
}

.mil6print-scrolling-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-right: 30px;
}

.banner-stars-group {
    display: inline-flex;
    align-items: center;
}

@keyframes scroll-text {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hide the hamburger on desktop, show on mobile */
.mobile-hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #FFD300; /* match your header icons color */
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    visibility: hidden;
    opacity: 0;
    transition: right 0.3s ease, visibility 0.3s, opacity 0.3s;
    width: 280px;
    height: 100%;
    background: #222;
    color: #fff;
    padding: 20px;
    box-shadow: -2px 0 8px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}
.mobile-sidebar.open {
    right: 0;
    visibility: visible;
    opacity: 1;
}
.mobile-sidebar:not(.open) {
    display: none;
}

.mobile-sidebar-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    margin-left: auto;
    margin-bottom: 20px;
}
.mobile-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.mobile-sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-sidebar-links li {
    margin-bottom: 15px;
}
.mobile-sidebar-links a {
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    display: flex; 
    align-items: center;
}
.mobile-sidebar-links a i {
    margin-right: 8px;
    font-size: 18px;
}
.cart-count {
    background: red;
    color: #fff;
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 6px;
    margin-left: 5px;
}

/* The custom nav inside header-right */
.mil6print-custom-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    align-items: center;
}
.mil6print-custom-nav li {
    display: inline-block;
}
.mil6print-custom-nav a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: #FFD300;
    position: relative;
    transition: color 0.3s;
}
.mil6print-custom-nav a:hover {
    color: #ffffff;
}

/* Logo + search + icons row */
.mil6print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-left: 10px;
    margin-right: 10px;
}
.mil6print-header-left a {
    display: flex;
    align-items: center;
}
.mil6print-header-center {
    flex: 1;
    text-align: center;
}
.mil6print-logo {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s;
}
.mil6print-logo:hover {
    transform: scale(1.05);
}
/* Search */
.mil6print-search-field {
    width: 60%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    font-size: 14px;    
}
.mil6print-search-field:focus {
    border-color: #FFD300;
}
.mil6print-search-button {
    padding: 10px 14px;
    border: 1px solid #FFD300;
    background-color: #FFD300;
    color: #0b0b0d;
    cursor: pointer;
    border-radius: 25px;
    transition: background-color 0.3s;
}
.mil6print-search-button:hover {
    background-color: #ffb900;
}

/* Icons on the right (cart, heart, user) */
.mil6print-header-right {
    display: flex;
    gap: 15px;
}
.mil6print-header-icon {
    color: #FFD300;
    font-size: 18px;
    transition: color 0.3s;
}
.mil6print-header-icon:hover {
    color: #ffffff;
}

/* ---------- NAV BAR ---------- */
.mil6print-main-nav {
    background: #FFD300;
    padding: 10px 0;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%; /* Ensure full width */
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box; /* Include padding in width calculation */
    overflow: hidden; /* Prevent content overflow */
}
.mil6print-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Full width */
    box-sizing: border-box; /* Include padding in width */
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */
    justify-content: center; /* Center navigation items */
    align-items: center; /* Vertically center items */
}
.mil6print-main-nav li {
    display: inline-block;
}
.mil6print-main-nav a {
    text-decoration: none;
    color: #0b0b0d;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.3s, border-color 0.3s;
    display: block;
    text-align: center; /* Center text within each link */
    border: 1px solid transparent; /* Prevent height jump on hover */
}
.mil6print-main-nav a.active,
.mil6print-main-nav a:hover {
    background: #ffcb2c;
    color: #0b0b0d;
    border: 1px solid #0b0b0d;
}


/* ---------- FOOTER ---------- */
.mil6print-site-footer {
    margin-top: 30px;
}

.mil6print-footer-black {
    background: #000;
    color: #fff;
    padding: 30px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.mil6print-footer-left {
    flex: 1;
    min-width: 200px;
}
.mil6print-footer-right {
    flex: 1;
    min-width: 240px;
}
.newsletter-text {
    font-size: 14px;
    margin-bottom: 10px;
}
.mil6print-newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.mil6print-newsletter-form input[type="email"] {
    flex: 1;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.mil6print-newsletter-form button {
    padding: 8px 12px;
    border: none;
    background: #444;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.mil6print-newsletter-form button:hover {
    background: #666;
}
.newsletter-disclaimer {
    font-size: 12px;
    color: #aaa;
}

/* Social icon row */
.mil6print-footer-social {
    margin-top: 10px;
}
.footer-icon {
    font-size: 20px;
    display: inline-block;
    margin-right: 10px;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-icon:hover {
    color: #f1f1f1;
}

/* Bottom banner */
.mil6print-footer-banner {
    background: #fff;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.banner-text {
    font-size: 14px;
    font-weight: 500;
}
.banner-icons a {
    margin-left: 8px;
    color: #000;
    text-decoration: none;
    background: #ccc;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}
.banner-icons a:hover {
    background: #999;
}
.footer-collapsible-section {
    margin-bottom: 20px;
}
.footer-section-title {
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background: #222;
    color: #fff;
    padding: 8px 12px;
    margin: 0;
    border-radius: 4px;
    border-bottom: 4px solid #FFD300;
}
.footer-section-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background: #333;
    border-radius: 0 0 4px 4px;
}
.footer-section-links li {
    padding: 6px 12px;
    border-bottom: 1px solid #444;
}
.footer-section-links li a {
    color: #fff;
    text-decoration: none;
}
.footer-section-links li:last-child {
    border-bottom: none;
}
.footer-collapsible-section.active .footer-section-links {
    display: block;
}

/* Responsive for header/footer */
@media (max-width: 992px) {
    .mil6print-header {
        flex-wrap: wrap;
        align-items: center;
        text-align: center;
    }
    .mil6print-header-left {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .mil6print-header-center {
        width: 100%;
        margin-top: 10px;
        display: flex;
        justify-content: center;
    }
    .mil6print-header-center form {
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 600px;
    }
    .mil6print-search-field {
        width: 100%;
        border-radius: 25px 0 0 25px;
    }
    .mil6print-search-button {
        width: 50px;
        border-radius: 0 25px 25px 0;
    }
    .mil6print-custom-nav {
        display: none; /* hide on mobile => use hamburger */
    }
    .mobile-hamburger {
        display: block; /* show the hamburger on smaller screens */
        margin-left: 20px;
        margin-top: 10px;
    }
    .mil6print-footer-banner {
        flex-direction: column;
        align-items: center;
    }
    .banner-icons {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 10px;
    }
    .mil6print-footer-black {
        flex-direction: column;
    }
    
    /* Mobile Navigation Styles */
    .mil6print-main-nav {
        padding: 8px 5px; /* Reduce padding */
        gap: 8px; /* Reduce gap between items */
        overflow-x: auto; /* Allow horizontal scrolling if needed */
        white-space: nowrap; /* Prevent wrapping */
        justify-content: center; /* Center navigation items */
    }
    
    .mil6print-main-nav ul {
        padding: 0 10px; /* Reduce horizontal padding */
        gap: 8px; /* Reduce gap between nav items */
        flex-wrap: wrap; /* Allow wrapping to next line */
        justify-content: center; /* Center items */
        white-space: normal; /* Allow text wrapping in links */
        align-items: center; /* Vertically center items */
    }
    
    .mil6print-main-nav li {
        flex-shrink: 0; /* Prevent shrinking */
    }
    
    .mil6print-main-nav a {
        padding: 6px 10px; /* Increase padding for better readability */
        font-size: 14px; /* Larger font size for better readability */
        font-weight: 500; /* Reduce font weight */
        white-space: nowrap; /* Prevent text wrapping within links */
        display: block; /* Make links block level */
        min-width: max-content; /* Ensure content fits */
        text-align: center; /* Center text within links */
    }
}
@media (max-width: 576px) {
    .mil6print-header {
        flex-wrap: wrap;
    }
    .mil6print-header-center form {
        width: 100%;
        display: flex;
    }
    .mil6print-search-field {
        width: calc(100% - 50px);
    }
    
    /* Extra small mobile navigation styles */
    .mil6print-main-nav {
        padding: 6px 2px; /* Minimal padding */
        gap: 6px; /* Slightly larger gap for readability */
        overflow-x: auto; /* Horizontal scroll if needed */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        justify-content: center; /* Center navigation items */
    }
    
    .mil6print-main-nav ul {
        padding: 0 5px; /* Minimal padding */
        gap: 6px; /* Slightly larger gap for readability */
        flex-wrap: wrap; /* Allow items to wrap */
        justify-content: center; /* Center items */
        align-items: center; /* Vertically center items */
    }
    
    .mil6print-main-nav a {
        padding: 4px 8px; /* Adequate padding */
        font-size: 12px; /* Readable font size */
        font-weight: 400; /* Normal weight */
        line-height: 1.2; /* Tight line height */
        border-radius: 3px; /* Smaller border radius */
        text-align: center; /* Center text within links */
    }
}
