/* Keep the catalog's original container width and fill the available height. */
html.catalog-open { overflow: hidden; }
html.catalog-open body.body-lock { position: static; overflow: hidden !important; height: auto; }
.header .megamenu {
    position: fixed;
    top: var(--catalog-top, 0px);
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    max-height: none;
    padding: 10px 0 0;
    overflow: hidden;
    background: transparent;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: opacity .2s, visibility .2s;
}
.header .megamenu.open {
    z-index: 100;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}
.header .megamenu > .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 4px 4px 0 0;
}
.megamenu .megamenu-toolbar {
    flex: 0 0 auto;
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #e5eaf0;
}
.megamenu-toolbar .catalog-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.megamenu-toolbar .catalog-btn:hover { background: #f4f8fb; }
.megamenu-toolbar .ico { width: 22px; height: 22px; stroke: currentColor; }
.megamenu .megamenu-body { flex: 1 1 0; min-height: 0; margin: 0; overflow: hidden; }
.megamenu .megamenu-categories,
.megamenu .megamenu-subcategories { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.megamenu .megamenu-categories { padding: 0; border-right: 1px solid #e5eaf0; }
.megamenu .megamenu-subcategories { padding: 0 24px; }
.megamenu .megamenu-menu--desctop { height: auto; }
@media (max-width: 991px) {
    .header .megamenu { top: 0; padding-top: 0; }
    .megamenu .megamenu-toolbar { padding-top: max(8px, env(safe-area-inset-top)); }
    .megamenu .megamenu-categories { border-right: 0; padding-bottom: env(safe-area-inset-bottom); }
}
.usermenu .usermenu-shortcut {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
}
.usermenu .usermenu-shortcut > .ico {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
}
.usermenu .usermenu-shortcut > span {
    flex: 1;
    min-width: 0;
    white-space: normal;
    line-height: 1.4;
    text-align: left;
}
.checkout-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
.checkout-layout > .header-checkout,
.checkout-layout > .footer-checkout { flex-shrink: 0; }
.checkout-layout > #shop-application { flex: 1 0 auto; }
.storefront-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
.storefront-layout > #shop-application {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}
.storefront-layout > #shop-application > .header { flex-shrink: 0; }
.storefront-layout > #shop-application > #shop-application { flex: 1 0 auto; }
.storefront-layout .footer { flex-shrink: 0; margin-top: auto; }
.basket-empty { padding: 4px 0 8px; text-align: center; color: #101743; }
.basket-empty-scene {
    position: relative; display: flex; align-items: center; justify-content: center;
    min-height: 300px; overflow: hidden; border-radius: 16px;
    background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
}
.basket-empty-art {
    position: absolute; top: 50%; left: 50%; width: 100%; min-width: 680px;
    height: 300px; max-width: none; transform: translate(-50%, -50%); pointer-events: none;
}
.basket-empty-message { position: relative; width: 320px; max-width: 100%; padding: 28px 16px; }
.basket-empty-icon {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 80px; height: 80px; margin: 0 auto 22px; border: 1px solid #e4e9f6;
    border-radius: 24px; background: #fff; box-shadow: 0 8px 24px #1017430a;
}
.basket-empty-icon .ico { width: 38px; height: 38px; fill: currentColor; }
.basket-empty-icon .ico-mono-eye { fill: none; stroke: currentColor; }
.basket-empty-count {
    position: absolute; top: -7px; right: -7px; display: flex; align-items: center;
    justify-content: center; width: 25px; height: 25px; border: 3px solid #fff;
    border-radius: 50%; background: #f39137; color: #101743; font-size: 12px; font-weight: 700;
}
.basket-empty-title { margin: 0 0 10px; font-size: 23px; font-weight: 700; line-height: 1.3; }
.basket-empty-description { max-width: 265px; margin: 0 auto; color: #778098; font-size: 14px; line-height: 1.6; }
.basket-empty-actions { padding: 24px 12px 8px; }
.basket-empty-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 12px 24px; }
.basket-empty-button svg { flex-shrink: 0; }
@media (max-width: 575px) {
    .basket-empty-scene { min-height: 0; flex-direction: column; border-radius: 12px; padding: 8px 12px 20px; }
    .basket-empty-art {
        position: static; width: 100%; min-width: 0; height: auto; max-width: 400px;
        transform: none; opacity: .85;
    }
    .basket-empty-message { width: 100%; padding: 4px 0 0; }
    .basket-empty-icon { width: 60px; height: 60px; margin-bottom: 16px; border-radius: 18px; }
    .basket-empty-icon .ico { width: 30px; height: 30px; }
    .basket-empty-title { font-size: 21px; }
    .basket-empty-description { max-width: 230px; font-size: 13px; }
    .basket-empty-actions { padding-top: 20px; }
    .basket-empty-button { width: 100%; gap: 12px; padding-right: 16px; padding-left: 16px; }
}
