.ml-lock {
    overflow: hidden;
}

.ml-topline {
    height: 34px;
    background: var(--deep-red);
    color: #fff;
    font-size: 12px;
}

.ml-topline__inner {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ml-topline__right {
    white-space: nowrap;
}

.ml-topline a {
    color: #fff;
    opacity: .92;
}

.ml-site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
}

.ml-header-row {
    height: 78px;
    display: grid;
    grid-template-columns: 220px auto minmax(320px, 1fr) auto;
    gap: 22px;
    align-items: center;
}

.ml-logo {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ml-logo img {
    display: block;
}

.ml-logo .ml-logo__mark {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    object-fit: contain;
}

.ml-logo .ml-logo__wordmark {
    display: block;
    width: 176px;
    max-width: 100%;
    height: auto;
    min-width: 0;
    flex: 0 1 176px;
    object-fit: contain;
}

.ml-main-nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.ml-nav-link {
    position: relative;
    height: 42px;
    border: 0;
    background: transparent;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1f2937;
    font-size: 15px;
    font-weight: 850;
    white-space: nowrap;
}

.ml-nav-link:hover,
.ml-nav-link.is-active {
    color: var(--accent);
}

.ml-nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 1px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.ml-search {
    position: relative;
    min-width: 0;
}

.ml-search__form {
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 96px;
    align-items: center;
    overflow: hidden;
}

.ml-search__icon {
    display: grid;
    place-items: center;
    color: var(--soft);
}

.ml-search__input {
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 12px 0 0;
    color: var(--text);
}

.ml-search__input::placeholder {
    color: #7b8495;
}

.ml-search__button {
    height: 48px;
    border: 0;
    background: var(--accent);
    color: #fff;
    font-weight: 950;
}

.ml-search__button:hover {
    background: var(--accent-dark);
}

.ml-search-results {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    z-index: 260;
    display: none;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 10px;
    max-height: min(68vh, 560px);
    overflow: auto;
}

.ml-search-results.is-open {
    display: block;
}

.ml-search-result {
    width: 100%;
    min-height: 62px;
    border: 0;
    border-radius: 15px;
    background: #fff;
    padding: 10px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    text-align: left;
}

.ml-search-result:hover {
    background: var(--surface-2);
}

.ml-search-result__img {
    width: 44px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 16px;
    font-weight: 900;
}

.ml-search-result__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ml-search-result b {
    display: block;
    font-size: 13px;
    line-height: 1.2;
}

.ml-search-result span span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-search-result strong {
    font-size: 13px;
    white-space: nowrap;
    color: #111827;
    font-weight: 800;
}

.ml-search-result--empty {
    grid-template-columns: 1fr;
    cursor: default;
}

.ml-search-result--empty span span {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.ml-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ml-lang {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.ml-lang__link {
    min-width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    color: var(--muted);
    transition: color .16s ease, background-color .16s ease;
}

.ml-lang__link:hover {
    color: var(--accent);
    background: var(--surface-2);
}

.ml-lang__link.is-active {
    color: #fff;
    background: var(--accent);
    pointer-events: none;
}

.ml-lang--mobile {
    justify-content: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.ml-lang--mobile .ml-lang__link {
    flex: 1 1 0;
    height: 42px;
}

.ml-action {
    position: relative;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    color: var(--icon);
}

.ml-action:hover {
    color: var(--accent);
}

.ml-counter {
    position: absolute;
    top: 0;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 950;
}

.ml-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

.ml-icon-btn {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    color: var(--icon);
    display: grid;
    place-items: center;
}

.ml-icon-btn:hover {
    color: var(--accent);
    border-color: rgba(130, 1, 0, .28);
}

.ml-mega {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 180;
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

.ml-mega.is-open {
    display: block;
}

.ml-mega__inner {
    padding-top: 8px;
    padding-bottom: 18px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
}

.ml-mega-side {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface-2);
    padding: 10px;
    max-height: 74vh;
    overflow: auto;
}

.ml-mega-side__item {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 13px;
    color: #344054;
    font-weight: 900;
    text-align: left;
}

.ml-mega-side__lead {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.ml-mega-side__thumb {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #f4f6f9;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.ml-mega-side__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ml-mega-side__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b7c1d1;
}

.ml-mega-side__lead > span:last-child {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.ml-mega-side__item:hover,
.ml-mega-side__item.is-active {
    background: #fff;
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(130, 1, 0, .14);
}

.ml-mega-side__item small {
    color: var(--soft);
    font-weight: 850;
    padding-left: 8px;
    flex: 0 0 auto;
}

.ml-mega-content {
    min-width: 0;
    padding-top: 15px;
}

.ml-mega-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.ml-mega-head h2 {
    margin: 0;
    font-size: clamp(30px, 2.2vw, 56px);
    line-height: 1;
    letter-spacing: -.05em;
}

.ml-mega-head h2 a:hover {
    color: var(--accent);
}

.ml-mega-head p {
    margin: 0;
}

.ml-mega-close {
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    padding: 0 13px;
    color: var(--muted);
    font-weight: 800;
}

.ml-mega-close:hover {
    color: var(--accent);
    border-color: rgba(130, 1, 0, .28);
}

.ml-mega-grid {
    min-width: 0;
}

.ml-mega-pane {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ml-mega-pane.is-active {
    display: grid;
}

.ml-mega-card {
    min-height: 200px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    padding: 15px;
}

.ml-mega-card__top {
    margin-bottom: 10px;
}

.ml-mega-card h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.15;
    letter-spacing: -.025em;
    text-transform: uppercase;
}

.ml-mega-card h3 a:hover {
    color: var(--accent);
}

.ml-mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ml-mega-list a {
    min-height: 34px;
    border-top: 1px solid #eef0f3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #1f2937;
    font-size: 13px;
}

.ml-mega-list a:hover {
    color: var(--accent);
}

.ml-mega-list span {
    color: var(--soft);
    font-size: 11px;
    flex: 0 0 auto;
    margin-left: 8px;
}

.ml-mega-products {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}


.ml-mega-product {
    min-height: 40px;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    background: #fafbfd;
    padding: 4px 7px 4px 4px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.ml-mega-product:hover {
    border-color: rgba(130, 1, 0, .2);
    background: #fff;
}

.ml-mega-product__img {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid #e7ebf2;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.ml-mega-product__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ml-mega-product__title {
    min-width: 0;
    font-size: 12px;
    line-height: 1.2;
    color: #273142;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ml-mobile-search {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: .18s ease;
}

.ml-mobile-search.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ml-mobile-search__panel {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
    padding: 14px;
}

.ml-mobile-search__field {
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface-2);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    overflow: hidden;
}

.ml-mobile-search__field svg {
    margin: auto;
    color: var(--soft);
}

.ml-mobile-search__field input {
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
}

.ml-mobile-search__field button {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 26px;
}

.ml-mobile-tags {
    display: flex;
    gap: 8px;
    overflow: auto;
    padding: 12px 0 4px;
}

.ml-chip {
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #344054;
    padding: 0 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ml-mobile-results {
    display: grid;
    gap: 8px;
    max-height: 62vh;
    overflow: auto;
    padding-top: 10px;
}

.ml-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 380;
    background: rgba(15, 23, 42, .26);
    opacity: 0;
    pointer-events: none;
    transition: .18s ease;
}

.ml-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ml-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 390;
    width: 430px;
    max-width: calc(100vw - 16px);
    height: 100dvh;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: 0 28px 90px rgba(15, 23, 42, .22);
    transform: translateX(104%);
    transition: .22s ease;
    display: flex;
    flex-direction: column;
}

.ml-drawer.is-open {
    transform: translateX(0);
}

.ml-drawer__head {
    height: 72px;
    border-bottom: 1px solid var(--line);
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ml-drawer__body {
    padding: 18px;
    overflow: auto;
}

.ml-mobile-menu {
    display: grid;
    gap: 10px;
}

.ml-mobile-menu__group {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    padding: 10px;
}

.ml-mobile-menu__title {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    padding: 6px 8px 10px;
}

.ml-mobile-menu__item {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 11px;
    text-align: left;
    font-weight: 850;
    color: #1f2937;
}

.ml-mobile-menu__item:hover {
    background: var(--surface-2);
    color: var(--accent);
}

@media (max-width: 1320px) {
    .ml-header-row {
        grid-template-columns: 180px auto minmax(260px, 1fr) auto;
        gap: 14px;
    }

    .ml-nav-link {
        padding: 0 10px;
    }

    .ml-header-actions {
        gap: 10px;
    }

    .ml-mega__inner {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 20px;
    }

    .ml-mega-head h2 {
        font-size: 24px;
    }

    .ml-mega-head p {
        font-size: 13px;
    }

    .ml-mega-pane {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 1180px) {
    .ml-header-row {
        grid-template-columns: 200px minmax(0, 1fr) auto;
    }

    .ml-main-nav {
        display: none;
    }

    .ml-mega {
        display: none !important;
    }
}

@media (max-width: 860px) {
    .ml-topline {
        display: none;
    }

    .ml-header-row {
        height: 64px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .ml-logo .ml-logo__mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .ml-logo .ml-logo__wordmark {
        width: 146px;
        flex-basis: 146px;
    }

    .ml-search,
    .ml-header-actions {
        display: none;
    }

    .ml-mobile-actions {
        display: flex;
    }

    .ml-drawer {
        width: 100%;
        max-width: 100%;
    }
}
