/* Header Styles - Glassmorphic Floating Pill */
.site-header {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1200px;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled {
    position: fixed;
    top: 1rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.site-header .logo,
.site-header .nav-links a {
    color: var(--text-inverse);
}

.site-header .nav-links a:hover {
    color: var(--accent-primary);
}

.site-header .mobile-menu-toggle span {
    background: var(--text-inverse);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-inverse);
    text-decoration: none;
}

.logo span {
    color: var(--accent-primary);
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-links,
.nav-links ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    /* Remove bullets */
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-inverse);
}

/* Cart Icon */
.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.header-cart:hover {
    color: var(--accent-primary);
    background: rgba(0, 212, 170, 0.1);
}

.header-cart .cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent-primary);
    color: #0F2847;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-cart-link {
    color: var(--accent-primary) !important;
    font-weight: 600 !important;
}

.mobile-cart-link .cart-count {
    color: var(--accent-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Country Selector Dropdown */
.country-selector,
.language-switcher {
    position: relative;
}


.country-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--text-inverse);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.country-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.country-flag {
    font-size: 1.1rem;
}

.pll-flag {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pll-flag img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    display: block;
    margin: 0;
}

.country-code {
    font-weight: 600;
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.country-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-decoration: none;
}

.lang-option:hover {
    background: rgba(124, 58, 237, 0.2);
    color: white;
}

.lang-option.selected {
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent-primary);
}

.nav-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-btn-outline {
    border: 1px solid var(--border-medium);
    color: var(--primary-deep);
}

.nav-btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--primary-light));
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.nav-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(0, 212, 170, 0.4);
    color: #ffffff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0f172a;
    z-index: 200;
    padding: 2rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu a {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0;
}

/* Mobile Menu CTA Button */
.mobile-menu .nav-btn {
    width: calc(100% - 3rem);
    max-width: 280px;
    text-align: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Mobile Menu Language Selector */
.mobile-language-selector {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.mobile-language-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 500;
}

.mobile-language-options {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

/* Flag-only language buttons for mobile menu */
.mobile-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    /* Explicit width applied here */
    height: 38px;
    /* Explicit height applied here */
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.18);
    /* <--- BORDER THICKNESS (2px) */
    border-radius: 0.625rem;
    /* <--- BORDER ROUNDNESS */
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.mobile-lang-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.mobile-lang-btn.active {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.5);
}

.mobile-lang-btn .country-flag {
    font-size: 1.5rem;
    line-height: 1;
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    .site-header {
        padding: 0.5rem 1rem;
        width: calc(100% - 20px);
        border-radius: 1rem;
    }

    .nav-links {
        display: none;
    }

    /* Hide language switcher only, NOT the CTA */
    .nav-right .language-switcher {
        display: none;
    }

    .nav-right {
        display: flex;
        align-items: center;
    }

    /* Smaller CTA on mobile */
    .nav-right .nav-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }

    .country-selector {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .logo-img {
        height: 28px;
    }
}