/* Public site header — no Bootstrap collapse */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: siteHeaderSlideDown 0.5s ease-out;
}

.site-header--fixed-light {
    background: #fff;
}

.site-header__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
}

.site-header__brand img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s;
}

.site-header__brand:hover img {
    transform: scale(1.05);
}

.site-header__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.site-header__toggle:hover {
    background: #f8f9fa;
}

.site-header__toggle-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
}

.site-header__toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: #0d1b2a;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.site-header.is-open .site-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .site-header__toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header.is-open .site-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-header__panel {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.site-nav__item {
    margin: 0;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    color: #0d1b2a;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-decoration: none;
    position: relative;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.site-nav__link:hover {
    color: #1965e4;
    background: rgba(25, 101, 228, 0.06);
}

.site-nav__link::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.35rem;
    height: 2px;
    background: #1965e4;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
    transform: scaleX(1);
}

.site-nav__link.is-active {
    color: #1965e4;
}

.site-nav__icon {
    font-size: 1rem;
    opacity: 0.9;
}

.site-nav__item--country {
    min-width: 200px;
}

.site-nav__country-form {
    margin: 0;
    padding: 0 0.5rem;
}

.site-nav__item--cart .site-nav__cart {
    padding: 0.5rem 0.75rem;
}

.site-nav__cart-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.site-nav__cart .fa-shopping-cart {
    font-size: 1.25rem;
    color: #0d1b2a;
}

.cart-count-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.country-select-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 220px;
}

.country-input {
    width: 100%;
    height: 40px;
    padding: 8px 10px 8px 40px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 24px 18px;
    cursor: pointer;
}

.country-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 10050;
}

.country-dropdown[hidden] {
    display: none !important;
}

.country-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    gap: 8px;
}

.country-item:hover,
.country-item:focus {
    background: #f0f4ff;
    outline: none;
}

.country-item .flag {
    width: 24px;
    height: 18px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    border: 1px solid #e9ecef;
}

@keyframes siteHeaderSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    .site-header__toggle {
        display: inline-flex;
    }

    .site-header__panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .site-header.is-open .site-header__panel {
        max-height: min(85vh, 640px);
        overflow-y: auto;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0 1rem;
        gap: 0;
    }

    .site-nav__link {
        width: 100%;
        padding: 0.75rem 1.25rem;
        border-radius: 0;
    }

    .site-nav__link::after {
        left: 1.25rem;
        right: 1.25rem;
        bottom: 0.25rem;
    }

    .site-nav__item--country {
        min-width: 0;
        padding: 0.5rem 1rem 0;
    }

    .site-nav__country-form {
        padding: 0;
    }

    .country-select-wrapper {
        max-width: none;
    }

    .site-nav__item--cart .site-nav__cart {
        justify-content: flex-start;
    }
}
