/* ========== HEADER STYLES ========== */
:root {
    --header-background: #111111;
    --header-text-color: #FFFFFF;
    --header-accent-color: #16A34A;
}

#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px;
    min-height: 44px;
    line-height: 1.4;
    font-size: 13px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    word-wrap: break-word;
    max-width: 100vw;
}

#topbar-text {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.header {
    position: sticky;
    top: 48px;
    left: 0;
    right: 0;
    background: var(--header-background);
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
    position: relative;
}

/* Mobile Nav Toggle */
.header__mobile-nav {
    display: flex;
    align-items: center;
}

.header__mobile-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__mobile-nav-toggle svg {
    width: 22px;
    height: 22px;
    fill: #FFFFFF !important;
    color: #FFFFFF !important;
}

.header__mobile-nav-toggle .icon-state__secondary {
    display: none;
}

.header__mobile-nav-toggle[aria-expanded="true"] .icon-state__primary {
    display: none;
}

.header__mobile-nav-toggle[aria-expanded="true"] .icon-state__secondary {
    display: block;
}

.header__mobile-nav-toggle .icon--close {
    width: 18px;
    height: 18px;
}

/* Logo */
.header__logo {
    margin: 0;
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header__logo-link {
    display: block;
}

.header__logo-image {
    width: 144px !important;
    max-width: 144px !important;
    height: auto;
    display: block;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Search Bar */
.header__search-bar-wrapper {
    flex: 1;
    max-width: 500px;
    display: none;
}

.search-bar {
    width: 100%;
}

.search-bar__top-wrapper {
    display: flex;
    align-items: center;
}

.search-bar__top {
    display: flex;
    align-items: center;
    flex: 1;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s ease;
}

.search-bar__top:focus-within {
    border-color: var(--header-accent-color);
}

.search-bar__input-wrapper {
    flex: 1;
}

.search-bar__input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--header-text-color);
    outline: none;
}

.search-bar__input::placeholder {
    color: #9ca3af;
}

.search-bar__submit {
    width: 47px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-bar__submit svg {
    width: 22px;
    height: 22px;
}

.search-bar__submit path {
    fill: var(--header-text-color);
}

/* Action List (icons) */
.header__action-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__action-item {
    position: relative;
}

.header__action-item-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    color: var(--header-text-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header__action-item-link:hover {
    color: var(--header-accent-color);
}

.header__action-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.header__cart-icon,
.header-delivery-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__cart-icon svg,
.header-delivery-icon svg {
    width: 22px;
    height: 22px;
}

.header__cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--header-accent-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.icon-state__secondary {
    display: none;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 114px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 998;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu[aria-hidden="false"] {
    display: block;
}

.mobile-menu__inner {
    padding: 20px;
}

.mobile-menu__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu__nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu__nav-link {
    display: block;
    padding: 16px 0;
    color: var(--header-text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-menu__nav-link:hover {
    color: var(--header-accent-color);
}

.mobile-menu__section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu__section--loose {
    margin-top: 32px;
}

.mobile-menu__section-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.mobile-menu__help-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--header-text-color);
}

.mobile-menu__help-wrapper svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mobile-menu__help-wrapper a {
    color: var(--header-accent-color);
    text-decoration: none;
}

.mobile-menu__help-wrapper a:hover {
    text-decoration: underline;
}

/* Desktop styles */
@media (min-width: 1000px) {
    .header__mobile-nav {
        display: none;
    }

    .header__search-bar-wrapper {
        display: block;
    }

    .header__logo-image {
        max-width: 185px;
    }

    .header__action-item-link {
        padding: 8px 12px;
    }

    .header__action-list {
        gap: 4px;
    }

    .header__action-item--track .header__action-item-content {
        flex-direction: row;
        gap: 8px;
    }

    .header__action-item--track .track-label {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.3;
    }

    .header__action-item--track .track-label-top {
        font-size: 11px;
        color: var(--header-accent-color);
    }

    .header__action-item--track .track-label-bottom {
        font-size: 13px;
        font-weight: 500;
    }
}

@media (max-width: 999px) {
    .header__inner {
        height: 60px;
    }

    .header {
        top: 44px;
    }

    .header__logo-image {
        max-width: 120px;
    }

    .header__action-item--track .track-label,
    .header__action-item--account .account-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .header__logo-image {
        max-width: 100px;
    }

    .header__action-list {
        gap: 2px;
    }

    .header__action-item-link {
        padding: 6px;
    }
}
.header {
    display: none !important;
}
