:root {
    --site-top-height: 102px;
}

body {
    padding-top: var(--site-top-height);
}

.site-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
}

.announcement {
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: #111;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.announcement__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding-top: 7px;
    padding-bottom: 7px;
    overflow: hidden;
}

.announcement__item {
    position: absolute;
    top: 50%;
    left: 0;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translate(30px, -50%);
    pointer-events: none;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.announcement__item.is-active {
    opacity: 1;
    transform: translate(0, -50%);
    pointer-events: auto;
}

.announcement__item.is-leaving {
    opacity: 0;
    transform: translate(-30px, -50%);
}

.announcement__item svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header {
    position: relative;
    z-index: 1;
    background: #fff;
}

.header-main {
    border-bottom: 1px solid #e8e6e0;
    background: #fff;
}

.header-main__inner {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 67px;
}

.header-brand {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.header-brand .custom-logo-link,
.header-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-brand .custom-logo,
.header-logo img {
    width: auto;
    max-width: 150px;
    max-height: 34px;
    object-fit: contain;
}

.header-menu-toggle {
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    box-shadow: none;
}

.header-menu-toggle__icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.header-menu-toggle__icon span {
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
}

.header-menu-toggle[aria-expanded="true"] .header-menu-toggle__icon span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.header-menu-toggle[aria-expanded="true"] .header-menu-toggle__icon span:nth-child(2) {
    opacity: 0;
}

.header-menu-toggle[aria-expanded="true"] .header-menu-toggle__icon span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.header-menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.header__navigation--desktop {
    display: none;
}

.header__navigation--mobile {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: #fff;
    border-bottom: 1px solid #e7e5df;
    transition:
        max-height 0.24s ease,
        opacity 0.18s ease,
        visibility 0.18s ease;
}

.header-menu-toggle[aria-expanded="true"] ~ .header__navigation--mobile {
    max-height: 600px;
    visibility: visible;
    opacity: 1;
}

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

.header__menu--mobile {
    padding: 18px;
}

.header__menu--mobile a {
    display: flex;
    padding: 13px 0;
    border-bottom: 1px solid #eceae5;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.header-actions {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}

.header__cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    box-shadow: none;
}

.header__cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.header__cart-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header__cart-icon svg path {
    fill: none !important;
    stroke: currentColor !important;
}

.header__cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 20px;
    background: #111;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.header__cart-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

body.admin-bar .site-top {
    top: 46px;
}

@media (min-width: 768px) {
    :root {
        --site-top-height: 114px;
    }

    .announcement__inner {
        justify-content: space-between;
        min-height: 38px;
        overflow: visible;
    }

    .announcement__item {
        position: static;
        width: auto;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: none;
    }

    .announcement__item.is-active,
    .announcement__item.is-leaving {
        opacity: 1;
        transform: none;
    }

    .header-main__inner {
        min-height: 76px;
    }

    .header-brand .custom-logo,
    .header-logo img {
        max-width: 180px;
        max-height: 40px;
    }
}

@media (min-width: 783px) {
    body.admin-bar .site-top {
        top: 32px;
    }
}

@media (min-width: 1024px) {
    :root {
        --site-top-height: 120px;
    }

    .header-main__inner {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        min-height: 82px;
        gap: 28px;
    }

    .header-menu-toggle,
    .header__navigation--mobile {
        display: none;
    }

    .header__navigation--desktop {
        grid-column: 1;
        display: flex;
        align-items: center;
    }

    .header__menu--desktop {
        display: flex;
        align-items: center;
        gap: 27px;
    }

    .header__menu--desktop a {
        position: relative;
        display: inline-flex;
        padding: 29px 0;
        color: #171717;
        font-size: 12px;
        line-height: 1.2;
        font-weight: 600;
        letter-spacing: 0.065em;
        text-transform: uppercase;
    }

    .header__menu--desktop a::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 22px;
        left: 0;
        height: 1px;
        background: #111;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.2s ease;
    }

    .header__menu--desktop a:hover::after,
    .header__menu--desktop .current-menu-item > a::after {
        transform: scaleX(1);
        transform-origin: left;
    }

    .header-brand {
        grid-column: 2;
    }

    .header-actions {
        grid-column: 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .announcement__item,
    .header-menu-toggle__icon span,
    .header__navigation--mobile,
    .header__menu--desktop a::after {
        transition: none;
    }
}