
:root {
    --omas-black: #000;
    --omas-white: #fff;
    --omas-header-height: 72px;
}

body {
    padding-top: 0;
}

.omas-announcement {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 20px;
    background: var(--omas-black);
    color: var(--omas-white);
    border-bottom: 1px solid rgba(255,255,255,.7);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .08em;
    text-align: center;
}

.omas-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--omas-black);
    color: var(--omas-white);
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.admin-bar .omas-header {
    top: 32px;
}

.omas-header__inner {
    min-height: var(--omas-header-height);
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: center;
    gap: 24px;
    padding: 0 32px;
}

.omas-header a {
    color: inherit;
    text-decoration: none;
}

.omas-header__primary {
    min-width: 0;
}

.omas-menu,
.omas-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.omas-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.omas-menu > li {
    position: relative;
}

.omas-menu > li > a {
    display: block;
    padding: 26px 0;
    font-size: 12px;
    line-height: 20px;
    text-transform: uppercase;
    letter-spacing: .18em;
    white-space: nowrap;
}

.omas-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    min-width: 235px;
    padding: 16px 20px;
    background: #000;
    border: 1px solid rgba(255,255,255,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.omas-menu li:hover > .sub-menu,
.omas-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.omas-menu .sub-menu a {
    display: block;
    padding: 8px 0;
    font-size: 13px;
    line-height: 1.4;
}

.omas-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.omas-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.omas-logo__image {
    display: block;
    width: auto;
    max-width: 80px;
    max-height: 52px;
}

.omas-logo__text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    letter-spacing: .14em;
}

.omas-header__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
}

.omas-header__actions .omas-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
    opacity: 1;
    transition: opacity .15s ease;
}

.omas-header__actions .omas-action:hover {
    background: transparent;
    color: #fff;
    opacity: .65;
}

.omas-header__actions .omas-action:focus,
.omas-header__actions .omas-action:active {
    background: transparent;
    color: #fff;
}

.omas-header__actions .omas-action:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 3px;
}

.omas-action svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.omas-cart-count {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 10px;
    background: #fff;
    color: #000;
    font-size: 9px;
    line-height: 15px;
    text-align: center;
}

.omas-menu-toggle {
    display: none;
    width: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.omas-menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    margin: 5px 0;
    background: #fff;
}

.omas-menu-toggle:hover,
.omas-menu-toggle:focus,
.omas-menu-toggle:active {
    border: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.omas-menu-toggle:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 2px;
}

.omas-mobile-nav {
    display: none;
}

.site-header,
.storefront-primary-navigation {
    display: none !important;
}

@media (max-width: 980px) {
    :root {
        --omas-header-height: 64px;
    }

    .omas-header__inner {
        padding: 0 18px;
        gap: 12px;
    }

    .omas-desktop-nav {
        display: none;
    }

    .omas-menu-toggle {
        display: block;
    }

    .omas-action--account {
        display: none;
    }

    .omas-logo__image {
        max-width: 70px;
        max-height: 46px;
    }

    .omas-mobile-nav {
        position: fixed;
        z-index: 10000;
        inset: 0;
        display: block;
        visibility: hidden;
        pointer-events: none;
    }

    .omas-mobile-nav.is-open {
        visibility: visible;
        pointer-events: auto;
    }

    .omas-mobile-nav__overlay {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgb(0 0 0 / 46%);
        opacity: 0;
        transition: opacity .28s ease;
    }

    .omas-mobile-nav.is-open .omas-mobile-nav__overlay {
        opacity: 1;
    }

    .omas-mobile-nav__panel {
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        width: min(440px, 100vw);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        overflow: hidden;
        color: #252525;
        background: #fff;
        box-shadow: 16px 0 45px rgb(0 0 0 / 12%);
        transform: translateX(-100%);
        transition: transform .32s cubic-bezier(.22, .61, .36, 1);
    }

    .omas-mobile-nav.is-open .omas-mobile-nav__panel {
        transform: translateX(0);
    }

    .omas-mobile-nav__header {
        display: flex;
        min-height: 72px;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        padding: 0 26px;
        border-bottom: 1px solid #ddd;
    }

    .omas-mobile-nav__header h2 {
        margin: 0;
        color: #222;
        font-size: 12px;
        line-height: 1.3;
        font-weight: 600;
        letter-spacing: .16em;
        text-transform: uppercase;
    }

    .omas-mobile-nav__close {
        position: relative;
        width: 42px;
        height: 42px;
        margin-right: -10px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        cursor: pointer;
    }

    .omas-mobile-nav__close span::before,
    .omas-mobile-nav__close span::after {
        position: absolute;
        top: 20px;
        left: 11px;
        width: 20px;
        height: 1px;
        background: #222;
        content: "";
    }

    .omas-mobile-nav__close span::before {
        transform: rotate(45deg);
    }

    .omas-mobile-nav__close span::after {
        transform: rotate(-45deg);
    }

    .omas-mobile-nav__close:hover,
    .omas-mobile-nav__close:focus,
    .omas-mobile-nav__close:active {
        background: transparent;
        color: #222;
        box-shadow: none;
    }

    .omas-mobile-nav__close:focus-visible {
        outline: 2px solid #111;
        outline-offset: 2px;
    }

    .omas-mobile-nav__content {
        min-height: 0;
        flex: 1 1 auto;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 8px 26px calc(32px + env(safe-area-inset-bottom));
        -webkit-overflow-scrolling: touch;
    }

    .omas-mobile-menu,
    .omas-mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .omas-mobile-menu > li {
        border-bottom: 1px solid #e1e1e1;
    }

    .omas-mobile-menu a {
        display: block;
        padding: 14px 0;
        color: #252525;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: .12em;
    }

    .omas-mobile-menu .sub-menu {
        padding: 0 0 10px 18px;
    }

    .omas-mobile-menu .sub-menu a {
        padding: 8px 0;
        font-size: 13px;
        text-transform: none;
        letter-spacing: .03em;
    }

    html.omas-menu-open,
    html.omas-menu-open body {
        overflow: hidden;
    }
}

@media (max-width: 767px) {
    .omas-mobile-nav__panel {
        width: 100%;
        max-width: none;
    }

    .omas-mobile-nav__header {
        min-height: 64px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .omas-mobile-nav__content {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .omas-mobile-nav__overlay,
    .omas-mobile-nav__panel {
        transition-duration: .01ms;
    }
}

@media (max-width: 782px) {
    .admin-bar .omas-header {
        top: 46px;
    }

}

/* ===== RESPONSIVE HEADER FIX ===== */
@media (max-width: 980px) {
    /* Mobile header belongs to the document flow; it must not drop into hero while scrolling. */
    .omas-header,
    .admin-bar .omas-header {
        position: relative;
        top: auto;
    }

    .omas-announcement {
        min-height: 36px;
        padding: 8px 16px;
        font-size: 10px;
        line-height: 1.35;
        letter-spacing: .09em;
    }

}

@media (max-width: 600px) {
    :root { --omas-header-height: 62px; }
    .omas-header__inner { min-height: 62px; padding: 0 16px; }
    .omas-logo__image { max-width: 68px; max-height: 42px; }
    .omas-header__actions { gap: 14px; }
    .omas-action { width: 22px; }
    .omas-action svg { width: 19px; height: 19px; }
}
