/* ==========================================================================
   DESIGN SYSTEM VARIABLE BASES (PRESERVES START CONFIGURATION)
   ========================================================================== */
:root {
    --primary-color: #2563eb;
    --primary-strong: #1d4ed8;
    --primary-soft: #dbeafe;
    --secondary-color: #0f172a;
    --text-main: #1f2937;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --surface-soft: #f8fafc;
    --border-color: #dbe3ef;
    --border-strong: #cbd5e1;
    --radius-sm: 8px;
    --radius-md: 12px;
    --container-xl: 1200px;
    
    /* Premium UX Enhancements */
    --nav-blur: blur(20px);
    --transition-premium: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --header-shadow: 0 4px 30px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(15, 23, 42, 0.02);
    --footer-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   COMPLETE MODERN PLUG-AND-PLAY HEADER STYLES
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 76px;
    padding: 14px max(16px, calc((100vw - var(--container-xl)) / 2)) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7) !important;
    box-shadow: var(--header-shadow) !important;
    backdrop-filter: var(--nav-blur);
    -webkit-backdrop-filter: var(--nav-blur);
    transition: var(--transition-premium);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--secondary-color) !important;
    font-size: 1.25rem;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    transition: var(--transition-premium);
}

.nav-brand img {
    display: block;
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-icon {
    color: var(--primary-color) !important;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px !important;
    flex-grow: 1;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 16px !important;
    border-radius: var(--radius-sm) !important;
    color: #475569 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    white-space: nowrap;
    transition: var(--transition-premium) !important;
    cursor: pointer;
}

.nav-link:hover {
    background: var(--surface-soft) !important;
    color: var(--primary-color) !important;
}

.nav-link i {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.nav-link.active {
    background: var(--primary-soft) !important;
    color: var(--primary-color) !important;
}

/* Header Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #475569;
}

.nav-dropdown-toggle > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown.active > .nav-dropdown-toggle, 
.nav-dropdown.is-open > .nav-dropdown-toggle,
.nav-dropdown:hover > .nav-dropdown-toggle {
    color: var(--primary-color) !important;
}

.nav-chevron {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-chevron, 
.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 1010;
    display: grid;
    gap: 4px;
    width: 320px;
    padding: 10px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: var(--radius-md) !important;
    background: #ffffff !important;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown.is-open > .nav-dropdown-menu, 
.nav-dropdown:hover > .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-main) !important;
    text-align: left;
    transition: var(--transition-premium) !important;
}

.nav-dropdown-item:hover {
    background: var(--surface-soft) !important;
    color: var(--primary-color) !important;
}

.nav-dropdown-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary-color);
    flex-shrink: 0;
}

.nav-dropdown-item span {
    display: flex;
    flex-direction: column;
}

.nav-dropdown-item strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.nav-dropdown-item small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Call To Actions Inside Header */
.nav-cta, .btn-primary.nav-cta {
    background: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
    transition: var(--transition-premium) !important;
}

.nav-cta:hover, .btn-primary.nav-cta:hover {
    background: var(--primary-strong) !important;
    border-color: var(--primary-strong) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25) !important;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 4px;
}

.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition-premium);
}

.hamburger:hover {
    background: var(--surface-soft);
    border-color: var(--border-strong);
}

/* ==========================================================================
   COMPLETE MODERN PLUG-AND-PLAY FOOTER STYLES
   ========================================================================== */
footer, .footer-section, .main-footer {
    background: var(--secondary-color) !important;
    color: #94a3b8 !important;
    padding: clamp(48px, 8vw, 80px) max(16px, calc((100vw - var(--container-xl)) / 2)) clamp(32px, 5vw, 40px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
    box-shadow: var(--footer-shadow);
}

.footer-grid, .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px 32px;
    margin-bottom: 48px;
}

.footer-column h4, .footer-title, .footer-block h5 {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em !important;
    margin-bottom: 24px !important;
}

.footer-column ul, .footer-links-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px !important;
}

.footer-column a, .footer-link {
    color: #94a3b8 !important;
    font-size: 0.925rem !important;
    font-weight: 500 !important;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-premium) !important;
}

.footer-column a:hover, .footer-link:hover {
    color: #ffffff !important;
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-top: 32px !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.875rem !important;
    color: #64748b !important;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #64748b !important;
    transition: var(--transition-premium);
}

.footer-bottom-links a:hover {
    color: #ffffff !important;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon, .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #94a3b8 !important;
    transition: var(--transition-premium) !important;
}

.social-icon:hover, .social-links a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   HIGH-QUALITY RESPONSIVE RESPONSIVENESS OVERRIDES
   ========================================================================== */
@media (max-width: 991px) {
    .hamburger {
        display: inline-flex;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff !important;
        padding: 16px;
        gap: 8px;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }

    .nav-links.is-active,
    .nav-links.show,
    .nav-links.open,
    .navbar-collapse.show .nav-links {
        display: flex !important;
    }

    .nav-link, .nav-cta, .btn-primary.nav-cta {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px !important;
        min-height: 46px;
    }

    .nav-dropdown {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 12px 16px;
        min-height: 46px;
        display: flex;
        align-items: center;
        border-radius: var(--radius-sm);
    }
    
    .nav-dropdown-toggle:hover {
        background: var(--surface-soft);
    }

    .nav-dropdown-toggle > span {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        box-shadow: none !important;
        border: 1px solid #f1f5f9 !important;
        background: var(--surface-soft) !important;
        margin: 4px 0 8px 0 !important;
        padding: 6px !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .nav-dropdown.is-open > .nav-dropdown-menu,
    .nav-dropdown:hover > .nav-dropdown-menu {
        display: grid !important;
    }
    
    .nav-dropdown-item {
        padding: 10px 12px !important;
        background: #ffffff !important;
        margin-bottom: 4px;
    }

    footer, .footer-section, .main-footer {
        padding-bottom: 40px !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
        gap: 16px;
    }
    
    .footer-bottom-links {
        justify-content: center !important;
        gap: 16px 20px;
    }
}
