:root {
    --rbt-header-ink: #061225;
    --rbt-header-blue: #1262b7;
    --rbt-header-paper: #ffffff;
    --rbt-header-white: #ffffff;
    --rbt-header-line: rgba(6, 18, 37, 0.14);
    --rbt-header-muted: #748093;
    --rbt-header-radius: 3px;
    --rbt-header-shadow: 0 20px 60px rgba(6, 18, 37, 0.22);
}

.rbt-header-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 170px;
}

.rbt-header-logo img {
    display: block;
    width: 100%;
    max-height: 62px;
    object-fit: contain;
}

.rbt-header-logo__fallback {
    color: var(--rbt-header-ink);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rbt-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rbt-header-action {
    position: relative;
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 16px;
    transition: 0.2s ease;
}

.rbt-header-action:hover {
    border-color: var(--rbt-header-line);
    background: var(--rbt-header-white);
    color: var(--rbt-header-blue);
}

.rbt-header-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    place-items: center;
    border-radius: 50%;
    background: var(--rbt-header-blue);
    color: var(--rbt-header-white);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

/* Mobile drawer */
.rbt-header-drawer,
.rbt-header-search {
    position: fixed;
    inset: 0;
    z-index: 1100;
    visibility: hidden;
    pointer-events: none;
}

.rbt-header-drawer.is-open,
.rbt-header-search.is-open {
    visibility: visible;
    pointer-events: auto;
}

.rbt-header-drawer__overlay,
.rbt-header-search__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(6, 18, 37, 0.6);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.rbt-header-drawer.is-open .rbt-header-drawer__overlay,
.rbt-header-search.is-open .rbt-header-search__backdrop {
    opacity: 1;
}

.rbt-header-drawer__panel {
    position: relative;
    z-index: 1;
    width: min(88vw, 380px);
    height: 100%;
    padding: 22px;
    overflow-y: auto;
    background: var(--rbt-header-paper);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
}

.rbt-header-drawer.is-open .rbt-header-drawer__panel {
    transform: translateX(0);
}

.rbt-header-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rbt-header-line);
}

.rbt-header-drawer__logo {
    max-width: 145px;
}

.rbt-header-drawer__close,
.rbt-header-search__close {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--rbt-header-line);
    border-radius: 50%;
    background: transparent;
    color: var(--rbt-header-ink);
}

.rbt-header-drawer__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 22px 0;
}

.rbt-header-drawer__tabs button {
    padding: 11px;
    border: 1px solid var(--rbt-header-line);
    background: transparent;
    color: var(--rbt-header-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rbt-header-drawer__tabs button.is-active {
    border-color: var(--rbt-header-blue);
    background: var(--rbt-header-blue);
    color: var(--rbt-header-white);
}

.rbt-header-drawer__content {
    display: none;
}

.rbt-header-drawer__content.is-active {
    display: block;
}

.rbt-header-drawer__content > a,
.rbt-header-drawer__category-row > a,
.rbt-header-drawer__submenu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--rbt-header-line);
    color: var(--rbt-header-ink);
    font-size: 12px;
    font-weight: 600;
}

.rbt-header-drawer__category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--rbt-header-line);
}

.rbt-header-drawer__category-row > a {
    flex: 1;
    border: 0;
}

.rbt-header-drawer__category-row button {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--rbt-header-blue);
}

.rbt-header-drawer__submenu {
    display: none;
    padding-left: 16px;
}

.rbt-header-drawer__submenu.is-open {
    display: block;
}

.rbt-header-drawer__submenu a {
    color: var(--rbt-header-muted);
    font-size: 11px;
}

.rbt-header-drawer__empty {
    color: var(--rbt-header-muted);
    font-size: 13px;
}

/* Search overlay */
.rbt-header-search {
    display: grid;
    place-items: start center;
    padding: 10vh 20px 20px;
}

.rbt-header-search__box {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    padding: 50px 32px 32px;
    background: var(--rbt-header-paper);
    box-shadow: var(--rbt-header-shadow);
}

.rbt-header-search__box > span {
    display: block;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rbt-header-search__close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.rbt-header-search form {
    position: relative;
}

.rbt-header-search input {
    width: 100%;
    height: 54px;
    padding: 0 58px 0 16px;
    border: 1px solid var(--rbt-header-line);
    border-radius: 0;
    outline: none;
    background: var(--rbt-header-white);
}

.rbt-header-search form > button {
    position: absolute;
    top: 0;
    right: 0;
    width: 54px;
    height: 54px;
    border: 0;
    background: var(--rbt-header-blue);
    color: var(--rbt-header-white);
}

body.rbt-header-lock {
    overflow: hidden;
}

@media (max-width: 575px) {
    .rbt-header-action {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .rbt-header-search {
        padding: 70px 14px 14px;
    }

    .rbt-header-search__box {
        padding: 48px 18px 18px;
    }
}