.mky-ob-header {
    position: relative;
    z-index: 999;
    width: 100%;
    background: var(--mky-white);
    border-bottom: 1px solid var(--mky-border);
}

.mky-ob-header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
}

.mky-ob-header__brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    color: var(--mky-primary);
    text-decoration: none;
}

.mky-ob-header__brand-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.mky-ob-header__logo-image {
    display: block;
    max-width: 190px;
    max-height: 52px;
    width: auto;
    height: auto;
}

.mky-ob-header__nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.mky-ob-header__menu {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mky-ob-header__menu > li { position: relative; }

.mky-ob-header__menu a,
.mky-ob-header__menu button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--mky-secondary);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.mky-ob-header__menu a:hover,
.mky-ob-header__menu button:hover,
.mky-ob-header__menu button[aria-expanded="true"] {
    color: var(--mky-brand-red);
}

.mky-ob-header__has-submenu > button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.mky-ob-header__submenu {
    position: absolute;
    top: calc(100% + 18px);
    left: -16px;
    min-width: 220px;
    margin: 0;
    padding: 10px;
    background: var(--mky-white);
    border: 1px solid var(--mky-border);
    border-radius: var(--mky-radius-sm);
    box-shadow: 0 14px 32px rgba(17,24,39,.10);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.mky-ob-header__has-submenu:hover > .mky-ob-header__submenu,
.mky-ob-header__has-submenu:focus-within > .mky-ob-header__submenu,
.mky-ob-header__has-submenu.is-open > .mky-ob-header__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mky-ob-header__submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.mky-ob-header__submenu a:hover { background: var(--mky-soft-red); }

.mky-ob-header__cta {
    flex: 0 0 auto;
    min-height: 44px;
    padding-inline: 18px;
}

.mky-ob-header__mobile-actions { display: none; }

.mky-ob-header__toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mky-ob-header__toggle-icon {
    display: flex;
    width: 22px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
}

.mky-ob-header__toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--mky-primary);
    border-radius: 2px;
}

.mky-ob-header__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--mky-primary);
    text-decoration: none;
}

.mky-ob-header__cart svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mky-ob-header__cart-badge {
    position: absolute;
    top: 0;
    right: -1px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--mky-brand-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.mky-ob-header__overlay { display: none; }

.mky-ob-header__drawer-head { display: none; }

.mky-ob-header__menu-icon,
.mky-ob-header__menu-label,
.mky-ob-header__menu-arrow { display: inline; }

@media (min-width: 768px) {
    .mky-ob-header {
        position: sticky;
        top: 0;
        box-shadow: 0 1px 0 rgba(17,24,39,.02);
    }
}

@media (max-width: 1100px) and (min-width: 768px) {
    .mky-ob-header__inner { gap: 20px; }
    .mky-ob-header__nav,
    .mky-ob-header__menu { gap: 18px; }
    .mky-ob-header__menu a,
    .mky-ob-header__menu button { font-size: 14px; }
    .mky-ob-header__cta { padding-inline: 14px; }
}

@media (max-width: 767px) {
    .mky-ob-header {
        position: relative !important;
        z-index: 9999 !important;
        background: #fff !important;
    }

    .mky-ob-header__inner {
        min-height: 72px !important;
        width: calc(100% - 32px) !important;
        gap: 10px !important;
        position: relative !important;
        z-index: 10000 !important;
    }

    .mky-ob-header__logo-image {
        max-width: 190px !important;
        max-height: 52px !important;
    }

    .mky-ob-header__mobile-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-left: auto !important;
    }

    .mky-ob-header__toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px !important;
        padding: 10px !important;
        border: 1px solid var(--mky-border) !important;
        border-radius: 12px !important;
        background: #fff !important;
        position: relative !important;
        z-index: 10003 !important;
    }

    .mky-ob-header__toggle-icon {
        display: flex !important;
        width: 22px !important;
        height: 18px !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .mky-ob-header__toggle-icon span {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        background: var(--mky-primary) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .mky-ob-header__cart {
        display: inline-flex !important;
    }

    .mky-ob-header__overlay {
        position: fixed !important;
        inset: 0 !important;
        display: block !important;
        background: rgba(17,24,39,.48) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity .22s ease, visibility .22s ease !important;
        z-index: 10000 !important;
    }

    .mky-ob-header__nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: min(88vw, 410px) !important;
        max-width: 410px !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 24px 22px 28px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 18px !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        background: #fff !important;
        border: 0 !important;
        box-shadow: 18px 0 45px rgba(17,24,39,.16) !important;
        transform: translateX(-105%) !important;
        transition: transform .25s ease !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 10001 !important;
    }

    .mky-ob-header__nav.is-open {
        transform: translateX(0) !important;
    }

    .mky-ob-header__overlay.is-open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .mky-ob-header__drawer-head {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 18px !important;
        border-bottom: 1px solid var(--mky-border) !important;
    }

    .mky-ob-header__drawer-label {
        color: var(--mky-brand-red) !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        letter-spacing: .16em !important;
    }

    .mky-ob-header__drawer-close {
        width: 42px !important;
        height: 42px !important;
        border: 0 !important;
        background: transparent !important;
        color: var(--mky-primary) !important;
        font-size: 34px !important;
        font-weight: 300 !important;
        line-height: 1 !important;
        cursor: pointer !important;
    }

    .mky-ob-header__menu {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .mky-ob-header__menu > li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid var(--mky-border) !important;
    }

    .mky-ob-header__menu > li:last-child { border-bottom: 0 !important; }

    .mky-ob-header__menu > li > a,
    .mky-ob-header__menu > li > button {
        display: grid !important;
        grid-template-columns: 42px minmax(0,1fr) 24px !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 64px !important;
        padding: 9px 0 !important;
        box-sizing: border-box !important;
        border: 0 !important;
        background: transparent !important;
        color: var(--mky-primary) !important;
        font-size: 16px !important;
        font-weight: 650 !important;
        text-decoration: none !important;
        text-align: left !important;
    }

    .mky-ob-header__menu-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        border: 1px solid rgba(17,24,39,.16) !important;
        border-radius: 50% !important;
        color: var(--mky-brand-red) !important;
    }

    .mky-ob-header__menu-icon svg {
        width: 17px !important;
        height: 17px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.5 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    .mky-ob-header__menu-label {
        display: block !important;
        min-width: 0 !important;
        color: var(--mky-primary) !important;
    }

    .mky-ob-header__menu-arrow {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        color: var(--mky-brand-red) !important;
        font-size: 18px !important;
    }

    .mky-ob-header__submenu {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 0 10px 52px !important;
        box-sizing: border-box !important;
        background: #fff !important;
        border: 0 !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .mky-ob-header__has-submenu.is-open > .mky-ob-header__submenu {
        display: block !important;
    }

    .mky-ob-header__submenu li {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .mky-ob-header__submenu a {
        display: block !important;
        min-height: 38px !important;
        padding: 8px 0 !important;
        color: var(--mky-secondary) !important;
        font-size: 14px !important;
        font-weight: 500 !important;
    }

    .mky-ob-header__cta {
        display: inline-flex !important;
        width: 100% !important;
        min-height: 52px !important;
        margin-top: auto !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        border-radius: 10px !important;
        color: #fff !important;
    }

    body.mky-ob-menu-open {
        overflow: hidden !important;
    }
}

/* v0.4.0 mobile drawer refinements */
.mky-ob-header__social { display: none; }

.mky-ob-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    background: #fff;
    z-index: 10005;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform .25s ease;
    box-shadow: -18px 0 45px rgba(17,24,39,.16);
    visibility: hidden;
}

.mky-ob-cart-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.mky-ob-cart-drawer__head,
.mky-ob-cart-drawer__foot {
    padding: 22px;
    border-bottom: 1px solid var(--mky-border);
}

.mky-ob-cart-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mky-ob-cart-drawer__eyebrow {
    display: block;
    color: var(--mky-brand-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    margin-bottom: 5px;
}

.mky-ob-cart-drawer__head h2 {
    margin: 0;
    color: var(--mky-primary);
    font-size: 28px;
    line-height: 1.1;
}

.mky-ob-cart-drawer__close {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--mky-primary);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.mky-ob-cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px;
}

.mky-ob-cart-drawer__item {
    display: grid;
    grid-template-columns: 64px minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--mky-border);
}

.mky-ob-cart-drawer__thumb-image {
    display: block;
    width: 64px !important;
    height: 64px !important;
    object-fit: cover;
    border-radius: 10px;
}

.mky-ob-cart-drawer__item-name {
    color: var(--mky-primary);
    font-size: 14px;
    font-weight: 700;
}

.mky-ob-cart-drawer__item-meta {
    margin-top: 6px;
    color: var(--mky-secondary);
    font-size: 12px;
}

.mky-ob-cart-drawer__line-total {
    color: var(--mky-brand-red);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.mky-ob-cart-drawer__empty {
    padding: 70px 10px;
    text-align: center;
}

.mky-ob-cart-drawer__empty-icon { font-size: 32px; margin-bottom: 12px; }
.mky-ob-cart-drawer__empty h3 { margin: 0 0 6px; color: var(--mky-primary); }
.mky-ob-cart-drawer__empty p { margin: 0; color: var(--mky-secondary); }

.mky-ob-cart-drawer__foot {
    border-top: 1px solid var(--mky-border);
    border-bottom: 0;
    background: #fff;
}

.mky-ob-cart-drawer__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: var(--mky-secondary);
}

.mky-ob-cart-drawer__subtotal strong {
    color: var(--mky-primary);
    font-size: 18px;
}

.mky-ob-cart-drawer__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mky-ob-cart-drawer__view,
.mky-ob-cart-drawer__checkout {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.mky-ob-cart-drawer__view {
    border: 1px solid var(--mky-primary);
    color: var(--mky-primary);
}

.mky-ob-cart-drawer__checkout {
    background: var(--mky-brand-red);
    color: #fff;
}

@media (max-width: 767px) {
    .mky-ob-header__social {
        display: block !important;
        padding-top: 8px !important;
    }

    .mky-ob-header__social-label {
        display: block !important;
        margin-bottom: 12px !important;
        color: #98A2B3 !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        letter-spacing: .18em !important;
        text-align: center !important;
    }

    .mky-ob-header__social-list {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .mky-ob-header__social-list a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        border: 1px solid var(--mky-border) !important;
        border-radius: 50% !important;
        color: var(--mky-primary) !important;
        text-decoration: none !important;
    }

    .mky-ob-header__social-list svg {
        width: 18px !important;
        height: 18px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.6 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    .mky-ob-cart-drawer {
        width: min(94vw, 410px) !important;
        z-index: 10006 !important;
    }

    .mky-ob-header__overlay {
        z-index: 10000 !important;
    }
}

body.mky-ob-cart-open { overflow: hidden !important; }

/* v0.4.0 submenu + cart controls */
.mky-ob-header__submenu a {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
}

.mky-ob-header__submenu-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    border: 1px solid var(--mky-border) !important;
    border-radius: 50% !important;
    color: var(--mky-brand-red) !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

.mky-ob-cart-drawer__item-main {
    min-width: 0;
}

.mky-ob-cart-drawer__controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.mky-ob-cart-drawer__controls button {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--mky-border);
    border-radius: 50%;
    background: #fff;
    color: var(--mky-primary);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.mky-ob-cart-drawer__controls button:hover {
    border-color: var(--mky-brand-red);
    color: var(--mky-brand-red);
}

.mky-ob-cart-drawer__controls span {
    min-width: 16px;
    color: var(--mky-primary);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.mky-ob-cart-drawer__item-price {
    margin-top: 5px;
    color: var(--mky-secondary);
    font-size: 11px;
}

.mky-ob-cart-drawer__item.is-loading {
    opacity: .55;
    pointer-events: none;
}

.mky-ob-cart-drawer__line-total {
    align-self: center;
}

.mky-ob-header__cart-badge[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .mky-ob-header__submenu {
        padding-left: 52px !important;
        padding-right: 4px !important;
    }

    .mky-ob-header__submenu a {
        min-height: 44px !important;
        padding: 7px 0 !important;
        gap: 10px !important;
    }

    .mky-ob-header__submenu-icon {
        width: 24px !important;
        height: 24px !important;
        flex-basis: 24px !important;
        background: #fff !important;
    }

    .mky-ob-cart-drawer__item {
        grid-template-columns: 64px minmax(0,1fr) auto !important;
        align-items: start !important;
    }

    .mky-ob-cart-drawer__line-total {
        padding-top: 2px !important;
    }
}

.mky-ob-header__menu-icon svg,
.mky-ob-header__submenu-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.mky-ob-header__submenu a{display:grid;grid-template-columns:28px minmax(0,1fr) 20px;align-items:center;gap:4px}
.mky-ob-header__submenu-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid rgba(17,24,39,.12);border-radius:50%;color:var(--mky-brand-red)}
.mky-ob-header__submenu-arrow{color:var(--mky-brand-red);font-size:14px;text-align:right}
@media(max-width:767px){
.mky-ob-header__submenu a{display:grid!important;grid-template-columns:34px minmax(0,1fr) 20px!important;align-items:center!important;gap:6px!important}
.mky-ob-header__submenu-icon{width:28px!important;height:28px!important}
.mky-ob-header__submenu-icon svg{width:14px!important;height:14px!important}
}
