﻿.ao-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 10px 0;
    background: transparent;
    transition: background-color 0.25s var(--ao-ease), backdrop-filter 0.25s var(--ao-ease);
}

.ao-header.is-scrolled {
    background: rgba(241, 238, 232, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ao-border);
}

.ao-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
}

.ao-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ao-header__logo,
.ao-header__mark {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.ao-header__name {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
}

.ao-header__links {
    display: none;
    align-items: center;
    gap: 6px;
}

.ao-header__link {
    padding: 8px 14px;
    border-radius: var(--ao-radius-pill);
    color: var(--ao-ink-muted);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ao-header__link:hover,
.ao-header__link.is-active {
    color: var(--ao-primary);
    border-color: var(--ao-border);
    background: rgba(128, 0, 47, 0.08);
}

.ao-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ao-header__icon-btn,
.ao-header__cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: var(--ao-radius-pill);
    border: 1.5px solid var(--ao-border);
    color: var(--ao-ink);
    background: var(--ao-surface);
    position: relative;
}

.ao-header__icon-btn:hover,
.ao-header__cart-btn:hover {
    color: var(--ao-primary);
    background: rgba(128, 0, 47, 0.06);
}

.ao-header__cart-label {
    display: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.ao-header__cart-count {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ao-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
}

@media (min-width: 900px) {
    .ao-header__links { display: inline-flex; }
    .ao-header__cart-label { display: inline; }
    .ao-header__name { max-width: none; font-size: 1.05rem; }
}
