/* ==========================================================================
   LIKE safe header v15
   Target file: /local/templates/like_main/assets/css/like-header-safe.css
   Safe rules: no Bitrix admin-popup overrides, no giant z-index, no product template hooks.
   ========================================================================== */

:root {
    --like-container-max: 1480px;
    --like-header-container-max: 1560px;
    --like-page-gutter: clamp(16px, 2.5vw, 40px);
    --like-admin-panel-offset: 0px;
    --like-header-compact-height: 82px;
    --like-header-spacer-height: calc(
        var(--like-admin-panel-offset, 0px) + var(--like-header-compact-height, 82px)
    );
}

html {
    overflow-x: hidden;
    scrollbar-gutter: stable;
    scroll-padding-top: calc(var(--like-admin-panel-offset, 0px) + var(--like-header-compact-height, 82px));
}

body {
    color: var(--like-text);
    background: var(--like-bg);
    overflow-x: hidden;
}

@supports (overflow-x: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

.like-header,
.like-header * {
    box-sizing: border-box;
}

.like-header-stage {
    position: sticky;
    top: var(--like-admin-panel-offset, 0px);
    z-index: 700;
    width: 100%;
    height: auto;
    min-height: 0;
}

.like-header {
    position: relative !important;
    z-index: 700;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: visible;
    border-bottom: 1px solid var(--like-line-soft);
    background: var(--like-header-bg, rgba(255, 255, 255, 0.97));
    font-family: var(--like-font-body);
    font-style: normal;
    font-stretch: normal;
    font-synthesis: none;
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 1px 0 var(--like-border-subtle);
    transform: none;
    transition: box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.like-header a,
.like-header a:link,
.like-header a:visited,
.like-header a:hover,
.like-header a:focus,
.like-header a:active {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
}

.like-header-stage.is-compact .like-header,
html.like-header-initial-compact .like-header-stage .like-header {
    border-bottom-color: var(--like-border-subtle);
    background: var(--like-header-glass-bg, rgba(255, 252, 248, 0.6));
    -webkit-backdrop-filter: blur(36px) saturate(200%);
    backdrop-filter: blur(36px) saturate(200%);
    box-shadow: var(--like-shadow-md), inset 0 -1px 0 var(--like-border-subtle);
}

body.like-product-zoom-open .like-header,
.like-product-zoom-open .like-header {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.like-header .container {
    width: min(var(--like-header-container-max), calc(100% - 48px)) !important;
    max-width: var(--like-header-container-max) !important;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
}

.like-header .container::before,
.like-header .container::after {
    display: none !important;
    content: none !important;
}

.like-breadcrumbs .container {
    width: min(var(--like-container-max), calc(100% - var(--like-page-gutter) * 2)) !important;
    max-width: var(--like-container-max) !important;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
}

.like-header__top {
    max-height: 52px;
    overflow: hidden;
    background: var(--like-header-top-bg, #f7f4ef);
    border-bottom: 1px solid var(--like-line-soft);
    opacity: 1;
    transition:
        max-height 0.24s ease,
        opacity 0.16s ease,
        transform 0.24s ease,
        border-color 0.16s ease;
}

.like-header__top-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.like-header__top-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.like-header__top-nav::-webkit-scrollbar {
    display: none;
}

.like-header__top-link,
.like-header__top-phone {
    flex: 0 0 auto;
    color: var(--like-text-soft);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.like-header__top-link:hover,
.like-header__top-link:focus,
.like-header__top-link:active,
.like-header__top-link.is-active,
.like-header__top-phone:hover,
.like-header__top-phone:focus,
.like-header__top-phone:active {
    color: var(--like-orange-dark);
    text-decoration: none;
}

.like-header__top-link--admin {
    color: var(--like-danger);
}

.like-header__top-phone {
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--like-text-soft);
    font-family: var(--like-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.like-header__location {
    min-width: 0;
    max-width: 230px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--like-text-soft);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.like-header__location:hover,
.like-header__location:focus-visible {
    color: var(--like-orange-dark);
}

.like-header__location svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.like-header__location span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.like-header__action.like-header__action--location-mobile {
    display: none;
}

.like-header__top-phone-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    color: var(--like-orange);
}

.like-header__top-phone-icon svg {
    width: 14px;
    height: 14px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.like-header__main {
    position: relative;
    width: 100%;
    background: transparent;
}

.like-header__main-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 13px;
    transition: min-height 0.24s ease;
}

.like-header-stage.is-compact .like-header__top,
html.like-header-initial-compact .like-header-stage .like-header__top {
    max-height: 0;
    border-bottom-width: 0;
    border-bottom-color: transparent;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

@media (min-width: 1181px) {
    .like-header-stage.is-compact .like-header__main-inner,
    html.like-header-initial-compact .like-header-stage .like-header__main-inner {
        min-height: 68px;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .like-header-stage.is-compact .like-header,
    html.like-header-initial-compact .like-header-stage .like-header {
        background: var(--like-header-bg, rgba(255, 255, 255, 0.96));
    }
}

.like-header__logo {
    position: relative;
    flex: 0 0 180px;
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    color: var(--like-text);
    text-decoration: none;
    transition:
        flex-basis 0.24s ease,
        width 0.24s ease,
        min-width 0.24s ease,
        max-width 0.24s ease;
}

.like-header__logo-stage {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    pointer-events: none;
}

.like-header__logo-image {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    max-width: none;
    height: auto;
    object-fit: contain;
    object-position: left center;
    transform-origin: left center;
    transition: width 0.24s ease, opacity 0.2s ease, transform 0.24s ease;
}

.like-header__logo-image--horizontal {
    width: 172px;
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.like-header__logo-image--compact {
    width: 44px;
    opacity: 0;
    transform: translateY(-50%) scale(0.84);
}

.like-header__logo-fallback {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
}

.like-header__logo.has-logo-image .like-header__logo-fallback {
    display: none;
}

.like-header__logo-name {
    color: var(--like-text);
    font-size: 28px;
    line-height: 0.92;
    font-weight: 900;
    letter-spacing: -0.075em;
}

.like-header__logo-text {
    margin-top: 5px;
    color: var(--like-text-muted);
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.03em;
}

@media (min-width: 761px) {
    .like-header-stage.is-compact .like-header__logo.has-compact-logo,
    html.like-header-initial-compact .like-header-stage .like-header__logo.has-compact-logo {
        flex-basis: 48px;
        width: 48px;
        min-width: 48px;
        max-width: 48px;
    }

    .like-header-stage.is-compact .like-header__logo.has-compact-logo .like-header__logo-image--horizontal,
    html.like-header-initial-compact .like-header-stage .like-header__logo.has-compact-logo .like-header__logo-image--horizontal {
        opacity: 0;
        transform: translateY(-50%) translateX(-6px) scale(0.92);
    }

    .like-header-stage.is-compact .like-header__logo.has-compact-logo .like-header__logo-image--compact,
    html.like-header-initial-compact .like-header-stage .like-header__logo.has-compact-logo .like-header__logo-image--compact {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.like-header__catalog-button {
    position: relative;
    isolation: isolate;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 0 17px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #2c2a25, #1a1917);
    color: var(--like-button-text, #ffffff);
    font-family: var(--like-font-display);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(27, 26, 24, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.like-header__catalog-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #3a3730, #232220);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.like-header__catalog-button > * {
    position: relative;
    z-index: 1;
}

.like-header__catalog-button:hover,
.like-header__catalog-button.is-open {
    background: linear-gradient(135deg, #2c2a25, #1a1917);
    color: #ffffff;
    transform: none;
    box-shadow: 0 8px 22px rgba(27, 26, 24, 0.3);
}

.like-header__catalog-button:hover::before,
.like-header__catalog-button.is-open::before {
    opacity: 1;
}

.like-header__catalog-button.is-active:not(.is-open) {
    background: linear-gradient(135deg, #2c2a25, #1a1917);
    color: #ffffff;
}

.like-header__catalog-icon {
    position: relative;
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 19px;
}

.like-header__catalog-icon svg {
    position: absolute;
    inset: 0;
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity 0.1s ease, transform 0.2s ease;
}

.like-header__catalog-icon-burger {
    transition-delay: 0.08s, 0s;
}

.like-header__catalog-icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.86);
    transition-delay: 0s, 0s;
}

.like-header__catalog-button.is-open .like-header__catalog-icon-burger {
    opacity: 0;
    transform: rotate(90deg) scale(0.86);
    transition-delay: 0s, 0s;
}

.like-header__catalog-button.is-open .like-header__catalog-icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    transition-delay: 0.08s, 0s;
}

.like-header__search {
    position: relative;
    z-index: 20;
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 50px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 48px;
    align-items: stretch;
    margin: 0;
    border: 1px solid var(--like-input-border, var(--like-line));
    border-radius: 14px;
    background: var(--like-surface, #f7f3ee);
    box-shadow: 0 6px 20px rgba(31, 26, 22, 0.035);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    /* переопределяет overflow:hidden легаси-правила из template_styles.css —
       иначе оно обрезает вложенную выпадающую панель результатов */
    overflow: visible;
    /* Динамические результаты внутри sticky-шапки не должны становиться
       якорем прокрутки и сдвигать страницу при каждом введённом символе. */
    overflow-anchor: none;
}

.like-header__search:focus-within {
    border-color: rgba(239, 127, 26, 0.42);
}

.like-header__search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.like-header__search-leading {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--like-text-muted);
    pointer-events: none;
}

.like-header__search-leading svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.like-header__search-input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 8px 0 12px;
    border: none;
    /* !important нужен: сайтовое правило input:not([type=checkbox])... из
       template_styles.css специфичнее одного класса и иначе красит инпут
       в var(--like-input-bg) с своим border-radius, отчего фон контейнера
       .like-header__search просвечивает по краям как серые "огрызки" */
    border-radius: 0 !important;
    background: none !important;
    color: var(--like-text);
    font-size: 16px;
    font-family: var(--like-font-body);
    font-weight: 400;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.like-header__search-input::-webkit-search-decoration,
.like-header__search-input::-webkit-search-cancel-button,
.like-header__search-input::-webkit-search-results-button,
.like-header__search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

.like-header__search-input:focus,
.like-header__search-input:focus-visible {
    outline: none;
    box-shadow: none;
}

.like-header__search-input::placeholder {
    color: var(--like-text-muted);
}

.like-header__search-submit {
    width: 40px;
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    align-self: center;
    justify-self: center;
    border-radius: 10px;
    background: var(--like-orange);
    color: var(--like-accent-text);
    cursor: pointer;
}

.like-header__search-submit:hover {
    color: var(--like-accent-text);
    background: var(--like-orange-hover);
}

.like-header__search-submit svg,
.like-header__action-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.like-header__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
}

.like-header__action {
    position: relative;
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--like-line-soft);
    border-radius: 999px;
    background: var(--like-card-bg, #ffffff);
    color: var(--like-text);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(31, 26, 22, 0.04);
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, min-width 0.18s ease, padding 0.18s ease;
}

.like-header__action:hover,
.like-header__action.is-active {
    border-color: rgba(239, 127, 26, 0.44);
    background: var(--like-orange-pale);
    color: var(--like-orange-dark);
    transform: translateY(-1px);
}

.like-header__action-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--like-card-bg, #ffffff);
    border-radius: 999px;
    background: var(--like-orange);
    color: var(--like-accent-text);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.like-header__action-badge.is-hidden {
    display: none;
}

.like-header-portfolio-pill,
.like-header-login-pill {
    min-width: auto;
    padding: 0 17px;
    white-space: nowrap;
}

.like-header-portfolio-pill,
.like-header-portfolio-pill:hover,
.like-header-portfolio-pill.is-active,
.like-header-portfolio-pill--active {
    background: var(--like-card-bg, #ffffff);
}

.like-header-portfolio-pill__text,
.like-header-login-pill__text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-size: 14px;
    font-family: var(--like-font-display);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
}

.like-header-login-pill__text {
    text-transform: uppercase;
}

.like-header-portfolio-pill:focus-visible,
.like-header-login-pill:focus-visible,
.like-header-account-action:focus-visible {
    outline: 3px solid rgba(239, 127, 26, 0.28);
    outline-offset: 3px;
}

.like-header-account-action {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-color: transparent;
    background: #1b1a18;
    color: #e0b15f;
    line-height: 1;
    text-align: center;
    box-shadow: 0 8px 20px rgba(27, 26, 24, 0.16);
}

.like-header-account-action:hover,
.like-header-account-action.is-active {
    border-color: transparent;
    background: #262420;
    color: #e8bd72;
}

.like-theme-seg-divider {
    flex: none;
    width: 1px;
    height: 15px;
    background: var(--like-line-soft);
}

.like-theme-seg {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    background: var(--like-card, #ffffff);
    border: 1px solid var(--like-line);
    border-radius: 999px;
    padding: 3px;
    gap: 4px;
}

.like-theme-seg button {
    position: relative;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--like-text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.25s ease;
}

.like-theme-seg button svg {
    display: block;
}

.like-theme-seg button.active {
    color: var(--like-accent-text, #25170b);
}

.like-theme-seg button:focus-visible {
    outline: 3px solid rgba(239, 127, 26, 0.28);
    outline-offset: 2px;
}

.like-theme-seg .thumb {
    position: absolute;
    z-index: 1;
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--like-orange);
    box-shadow: 0 2px 10px var(--like-focus-ring);
    transition: transform 0.28s cubic-bezier(0.4, 0.1, 0.2, 1);
}

.like-theme-seg[data-on="dark"] .thumb {
    transform: translateX(32px);
}

html[data-like-theme="light"] .like-theme-seg button[data-set="light"],
html[data-like-theme="dark"] .like-theme-seg button[data-set="dark"] {
    color: var(--like-accent-text, #25170b);
}

html[data-like-theme="light"] .like-theme-seg button[data-set="dark"],
html[data-like-theme="dark"] .like-theme-seg button[data-set="light"] {
    color: var(--like-text-muted);
}

html[data-like-theme="dark"] .like-theme-seg .thumb {
    transform: translateX(32px);
}

html[data-like-theme="dark"] .like-header {
    box-shadow: 0 1px 0 var(--like-border-subtle);
}

html[data-like-theme="dark"] .like-header-stage.is-compact .like-header,
html[data-like-theme="dark"].like-header-initial-compact .like-header-stage .like-header {
    border-bottom-color: var(--like-border-subtle);
    background: var(--like-header-glass-bg, rgba(21, 20, 18, 0.6));
    box-shadow: var(--like-shadow-md), inset 0 -1px 0 var(--like-border-subtle);
}

html[data-like-theme="dark"] .like-header__search {
    box-shadow: inset 0 0 0 1px var(--like-border-subtle), var(--like-shadow-sm);
}

html[data-like-theme="dark"] .like-header__action {
    box-shadow: var(--like-shadow-sm);
}

html[data-like-theme="dark"] .like-header__action:hover:not(.like-header-account-action),
html[data-like-theme="dark"] .like-header__action.is-active:not(.like-header-account-action) {
    background: var(--like-orange-pale);
    color: var(--like-orange-dark);
}

.like-header__account-initials {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    color: currentColor;
    font-size: 13px;
    font-family: var(--like-font-display);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    transform: translate(-50%, -50%) translateY(1px);
    white-space: nowrap;
    pointer-events: none;
}

.like-header-account-action .like-header__action-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.like-header__action--cart {
    flex: 0 0 auto;
    width: max-content;
    min-width: 0;
    max-width: none;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    white-space: nowrap;
}

.like-header__action--cart.is-empty {
    min-width: 44px;
    width: 44px;
    padding: 0;
    justify-content: center;
    gap: 0;
}

.like-header__cart-count {
    position: absolute;
    top: -6px;
    left: 31px;
    min-width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--like-card-bg, #ffffff);
    border-radius: 999px;
    background: var(--like-orange);
    color: var(--like-accent-text);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.like-header__cart-sum {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    overflow: visible;
    color: var(--like-text);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    text-overflow: clip;
    white-space: nowrap;
}

.like-header__action--cart.is-empty .like-header__cart-count,
.like-header__action--cart.is-empty .like-header__cart-sum {
    display: none;
}

.like-header-catalog-strip {
    max-height: 50px;
    overflow: hidden;
    border-top: 0;
    border-bottom: 0;
    background: var(--like-orange);
    opacity: 1;
    transform: translateY(0);
    transform-origin: top;
    contain: layout paint;
    will-change: auto;
    transition: max-height 0.24s ease, opacity 0.16s ease, transform 0.24s ease;
}

.like-header-stage.is-compact .like-header-catalog-strip,
html.like-header-initial-compact .like-header-stage .like-header-catalog-strip {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.like-header-catalog-strip.is-transitioning {
    will-change: max-height, opacity, transform;
}

html:not(.like-header-motion-ready) .like-header,
html:not(.like-header-motion-ready) .like-header__top,
html:not(.like-header-motion-ready) .like-header__main-inner,
html:not(.like-header-motion-ready) .like-header__logo,
html:not(.like-header-motion-ready) .like-header__logo-image,
html:not(.like-header-motion-ready) .like-header-catalog-strip {
    transition: none !important;
}

.like-header-catalog-strip.like-header-catalog-strip--hidden {
    height: 0;
    min-height: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    border-width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    box-shadow: none;
}

.like-header-catalog-strip__inner {
    min-height: 50px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.like-header-catalog-strip__inner::-webkit-scrollbar {
    display: none;
}

.like-header-catalog-strip__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: max-content;
    min-height: 50px;
    padding: 0 clamp(18px, 2vw, 30px);
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--like-accent-text);
    font-family: var(--like-font-display);
    font-size: clamp(13px, 0.75vw, 14px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    overflow-wrap: normal;
    white-space: nowrap;
    transition: background-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.like-header-catalog-strip__link::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 16px;
    display: block;
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%);
    pointer-events: none;
}

.like-header-catalog-strip__link:last-child::after {
    display: none;
}

.like-header-catalog-strip .like-header-catalog-strip__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--like-accent-text);
    transform: translateY(-1px);
}

.like-header-catalog-strip .like-header-catalog-strip__link--active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--like-accent-text);
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.92);
}

.like-header-catalog-strip__link--sale {
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
    border-color: rgba(239, 127, 26, 0.14);
    background: var(--like-orange-soft);
    color: var(--like-orange-dark);
    font-weight: 600;
    gap: 7px;
}

.like-header__top-nav .like-header__top-sale {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 0;
    margin-left: 0;
    padding: 8px 15px;
    border: 1px solid rgba(239, 127, 26, 0.14);
    border-radius: 10px;
    background: var(--like-orange-soft);
    color: var(--like-orange-dark);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: 0;
    text-decoration: none;
}

.like-header__top-nav .like-header__top-sale:hover,
.like-header__top-nav .like-header__top-sale:focus,
.like-header__top-nav .like-header__top-sale:active,
.like-header__top-nav .like-header__top-sale.like-header-catalog-strip__link--active {
    border-color: rgba(239, 127, 26, 0.38);
    background: var(--like-orange-soft);
    color: var(--like-orange-dark);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(239, 127, 26, 0.1);
}

.like-header__top-nav .like-header__top-sale::after {
    display: none;
}

.like-header__sale-icon {
    width: 14px;
    height: 14px;
    display: block;
    flex: 0 0 14px;
    fill: currentColor;
    transform: none;
}

.like-header-catalog-strip__link--sale:hover,
.like-header-catalog-strip__link--sale.like-header-catalog-strip__link--active {
    border-color: var(--like-orange);
    background: var(--like-orange);
    color: var(--like-accent-text);
}

html[data-like-theme="dark"] .like-header-catalog-strip {
    background: var(--like-orange);
}

html[data-like-theme="dark"] .like-header-catalog-strip .like-header-catalog-strip__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--like-accent-text);
}

html[data-like-theme="dark"] .like-header-catalog-strip .like-header-catalog-strip__link--active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--like-accent-text);
}

html[data-like-theme="dark"] .like-header-catalog-strip__link--sale:hover,
html[data-like-theme="dark"] .like-header-catalog-strip__link--sale.like-header-catalog-strip__link--active {
    border-color: var(--like-orange);
    background: var(--like-orange);
    color: var(--like-accent-text);
}

html[data-like-theme="dark"] .like-header__top-nav .like-header__top-sale:hover,
html[data-like-theme="dark"] .like-header__top-nav .like-header__top-sale:focus,
html[data-like-theme="dark"] .like-header__top-nav .like-header__top-sale:active,
html[data-like-theme="dark"] .like-header__top-nav .like-header__top-sale.like-header-catalog-strip__link--active {
    border-color: rgba(239, 127, 26, 0.42);
    background: var(--like-orange-soft);
    color: var(--like-orange-dark);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .like-header__top,
    .like-header__main,
    .like-header__main-inner,
    .like-header__logo,
    .like-header__logo-image,
    .like-header-catalog-strip,
    .like-header__catalog-button,
    .like-header__catalog-button::before,
    .like-header__catalog-icon svg {
        transition: none;
    }
}

.like-header__catalog-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 740;
    min-height: calc(100vh - var(--like-header-spacer-height, 116px));
    min-height: calc(100dvh - var(--like-header-spacer-height, 116px));
    padding-top: 12px;
    padding-bottom: 28px;
    background: rgba(24, 23, 21, 0.24);
    border: 0;
    outline: 0;
    box-shadow: none;
}

.like-header__catalog-panel[hidden] {
    display: none;
}

.like-header__catalog-panel-inner {
    pointer-events: none;
}

.like-header__catalog-card {
    pointer-events: auto;
    overflow: hidden;
    border: 1px solid var(--like-line-soft);
    border-radius: 26px;
    background: var(--like-dropdown-bg, #ffffff);
    box-shadow: var(--like-shadow-strong);
}

.like-header__catalog-v4 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: var(--like-dropdown-bg, #ffffff);
}

.like-header__catalog-v4.has-promo {
    grid-template-columns: minmax(0, 1fr) 330px;
}

.like-header__catalog-directions {
    position: relative;
    min-width: 0;
    min-height: min(540px, calc(100vh - 246px));
    min-height: min(540px, calc(100dvh - 246px));
    padding: 12px calc(100% - 280px) 12px 12px;
    background: linear-gradient(
        to right,
        var(--like-surface-soft, #fbfaf8) 0,
        var(--like-surface-soft, #fbfaf8) 280px,
        var(--like-line-soft) 280px,
        var(--like-line-soft) 281px,
        var(--like-dropdown-bg, #ffffff) 281px
    );
}

.like-header__catalog-direction {
    width: 268px;
}

.like-header__catalog-rail-all-wrap {
    width: 268px;
    margin-top: 12px;
    padding: 14px 10px 2px;
    border-top: 1px solid var(--like-line-soft);
}

.like-header__catalog-rail-all {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid var(--like-orange);
    border-radius: 999px;
    background: var(--like-card-bg, #ffffff);
    color: var(--like-orange-dark);
    font-family: var(--like-font-display);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.like-header__catalog-rail-all:hover,
.like-header__catalog-rail-all:focus-visible {
    background: var(--like-orange);
    color: var(--like-accent-text);
    outline: none;
    box-shadow: 0 8px 18px rgba(239, 127, 26, 0.2);
}

.like-header__catalog-rail-social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.like-header__catalog-rail-social-link {
    display: inline-flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px;
    border-radius: 12px;
    color: #fff;
    font-family: var(--like-font-display);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: filter .15s ease, transform .15s ease;
}

.like-header__catalog-rail-social-link--telegram {
    background: #229ed9;
}

.like-header__catalog-rail-social-link--max {
    background: #6056d9;
}

.like-header__catalog-rail-social-link:hover,
.like-header__catalog-rail-social-link:focus-visible {
    color: #fff;
    filter: brightness(.92);
    outline: 2px solid var(--like-orange);
    outline-offset: 2px;
    text-decoration: none;
    transform: translateY(-1px);
}

.like-header__catalog-rail-social-link:visited {
    color: #fff;
}

.like-header__catalog-rail-social-link img {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

.like-header__catalog-rail-item {
    position: relative;
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--like-text);
    font: inherit;
    font-size: 13.5px;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.like-header__catalog-rail-item::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 999px;
    background: var(--like-orange);
    content: "";
    opacity: 0;
    transform: scaleY(0.45);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.like-header__catalog-rail-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 10px;
    background: var(--like-card-bg, #ffffff);
    color: var(--like-text-muted);
}

.like-header__catalog-rail-icon svg {
    width: 20px;
    height: 20px;
}

.like-header__catalog-rail-name {
    min-width: 0;
    flex: 1 1 auto;
    font-weight: 700;
}

.like-header__catalog-rail-arrow {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 20px;
    color: var(--like-text-muted);
    transition: transform 0.14s ease;
}

.like-header__catalog-rail-arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.like-header__catalog-rail-item:hover,
.like-header__catalog-direction.is-active > .like-header__catalog-rail-item {
    background: var(--like-orange-pale);
    color: var(--like-orange-dark);
}

.like-header__catalog-rail-item:hover .like-header__catalog-rail-icon,
.like-header__catalog-direction.is-active > .like-header__catalog-rail-item .like-header__catalog-rail-icon {
    color: var(--like-orange);
}

.like-header__catalog-direction.is-active > .like-header__catalog-rail-item::before {
    opacity: 1;
    transform: scaleY(1);
}

.like-header__catalog-rail-item:focus-visible {
    outline: 2px solid var(--like-orange);
    outline-offset: -2px;
}

.like-header__catalog-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 281px;
    min-width: 0;
    padding: 25px 28px 28px;
    overflow-y: auto;
    animation: like-catalog-content-in 0.14s ease both;
    scrollbar-width: thin;
}

.like-header__catalog-content[hidden] {
    display: none;
}

@keyframes like-catalog-content-in {
    from {
        opacity: 0;
        transform: translateX(5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.like-header__catalog-content-empty a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: var(--like-orange-dark);
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
}

.like-header__catalog-content-empty a:hover,
.like-header__catalog-content-empty a:focus-visible {
    color: var(--like-orange);
    outline: none;
    text-decoration: none;
}

.like-header__catalog-groups {
    width: 100%;
    column-count: 3;
    column-gap: 28px;
    column-fill: balance;
}

.like-header__catalog-group {
    width: 100%;
    min-width: 0;
    display: inline-block;
    margin: 0 0 24px;
    break-inside: avoid;
    page-break-inside: avoid;
    vertical-align: top;
}

.like-header__catalog-group-title {
    display: block;
    margin-bottom: 9px;
    color: var(--like-text);
    font-family: var(--like-font-display);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
}

.like-header__catalog-group-title:hover {
    color: var(--like-orange-dark);
}

.like-header__catalog-serie {
    display: block;
    padding: 3px 0;
    color: var(--like-text-muted);
    font-size: 12.5px;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.12s ease;
}

.like-header__catalog-serie:hover {
    color: var(--like-orange-dark);
}

.like-header__catalog-content-empty {
    max-width: 440px;
    color: var(--like-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.like-header__catalog-empty {
    padding: 28px;
    color: var(--like-text-soft);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.like-breadcrumbs {
    border-bottom: 0;
    background: var(--like-bg);
}

.like-breadcrumbs__inner {
    display: block;
    max-width: 100%;
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
    overflow: hidden;
}

.like-breadcrumbs.like-breadcrumbs--catalog .like-breadcrumbs__inner {
    width: min(1240px, calc(100% - 40px)) !important;
    max-width: 1240px !important;
    padding-top: 22px;
}

.like-crumbs {
    overflow: hidden;
    color: var(--like-text-muted);
}

.like-crumbs.like-breadcrumbs {
    overflow: hidden;
}

.like-crumbs::-webkit-scrollbar,
.like-crumbs__list::-webkit-scrollbar {
    display: none;
}

.like-crumbs .like-crumbs__list {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    margin: 0;
    padding: 4px 0;
    flex-wrap: nowrap;
    list-style: none;
}

.like-crumbs .like-crumbs__item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: inherit;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 400;
    white-space: nowrap;
}

.like-crumbs .like-crumbs__item:not(:last-child)::after {
    content: "/";
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    color: currentColor;
    opacity: 0.45;
    transform: none;
}

.like-crumbs .like-crumbs__item a {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

.like-crumbs .like-crumbs__item a:hover {
    color: var(--like-orange-dark);
}

.like-crumbs .like-crumbs__item.is-current {
    flex: 1 1 auto;
    overflow: hidden;
    color: var(--like-text);
    font-weight: 500;
}

.like-crumbs .like-crumbs__item.is-current > span {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.like-header__action--price-request[hidden] {
    display: none !important;
}

.like-crumbs__home-icon {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.like-crumbs__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    :root {
        --like-header-compact-height: 142px;
    }

    .like-header__main-inner {
        flex-wrap: wrap;
        min-height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .like-header__logo {
        width: 160px;
        min-width: 160px;
        max-width: 160px;
    }

    .like-header__logo-image--horizontal {
        width: 152px;
    }

    .like-header__search {
        order: 4;
        width: 100%;
        max-width: none;
        flex-basis: 100%;
    }

    .like-header__actions {
        margin-left: auto;
    }

    .like-header-catalog-strip {
        max-height: 50px;
    }

    .like-header-catalog-strip__inner {
        min-height: 50px;
    }

    .like-header-catalog-strip__link {
        flex: 1 1 auto;
        min-width: max-content;
        padding: 0 clamp(18px, 2vw, 30px);
        white-space: nowrap;
        overflow-wrap: normal;
    }

    .like-header__catalog-v4.has-promo {
        grid-template-columns: minmax(0, 1fr);
    }

    .like-header__catalog-directions {
        min-height: min(440px, calc(100vh - 330px));
        min-height: min(440px, calc(100dvh - 330px));
    }

}

@media (max-width: 760px) {
    :root {
        --like-header-compact-height: 128px;
    }

    .like-header .container,
    .like-breadcrumbs .container {
        width: min(100% - 32px, var(--like-header-container-max)) !important;
    }

    .like-breadcrumbs.like-breadcrumbs--catalog .like-breadcrumbs__inner {
        width: min(100% - 28px, 1240px) !important;
        padding-top: 18px;
    }

    .like-header__top {
        display: none;
    }

    .like-header__main-inner {
        gap: 10px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .like-header__actions {
        gap: 5px;
    }

    .like-theme-seg {
        gap: 2px;
        padding: 2px;
    }

    .like-theme-seg button,
    .like-theme-seg .thumb {
        width: 25px;
        height: 25px;
    }

    .like-theme-seg[data-on="dark"] .thumb {
        transform: translateX(27px);
    }

    html[data-like-theme="dark"] .like-theme-seg .thumb {
        transform: translateX(27px);
    }

    .like-header__logo.has-compact-logo {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        min-height: 44px;
    }

    .like-header__logo.has-compact-logo .like-header__logo-image--horizontal {
        opacity: 0;
        transform: translateY(-50%) scale(0.86);
    }

    .like-header__logo.has-compact-logo .like-header__logo-image--compact {
        width: 42px;
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    .like-header__catalog-button {
        min-height: 42px;
        padding: 0 14px;
        font-size: 14px;
    }

    .like-header__action:not(.like-header__action--cart):not(.like-header__action--price-request):not(.like-header__action--location-mobile) {
        display: none;
    }

    .like-header__action.like-header__action--location-mobile {
        display: inline-flex;
        width: 42px;
        min-width: 42px;
        height: 42px;
    }

    .like-header__action--price-request {
        display: inline-flex;
        width: 42px;
        min-width: 42px;
        height: 42px;
    }

    .like-header__action.like-header-login-pill {
        display: inline-flex;
        height: 42px;
        min-width: auto;
        padding: 0 12px;
    }

    .like-header__action.like-header-account-action {
        display: inline-grid;
        min-width: 42px;
        width: 42px;
        height: 42px;
    }

    .like-header-portfolio-pill__text,
    .like-header-login-pill__text {
        font-size: 12px;
    }

    .like-header__action--cart:not(.is-empty) {
        min-width: 44px;
        width: 44px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }

    .like-header__cart-sum {
        display: none;
    }

    .like-header-catalog-strip__inner {
        width: 100% !important;
        min-height: 46px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .like-header-catalog-strip {
        max-height: 46px;
    }

    .like-header-catalog-strip__link {
        min-height: 46px;
        padding-block: 0;
    }

    .like-header__catalog-panel {
        min-height: calc(100vh - var(--like-header-spacer-height, 116px));
        min-height: calc(100dvh - var(--like-header-spacer-height, 116px));
        padding-top: 12px;
    }

    .like-header__catalog-card {
        max-height: calc(100vh - var(--like-header-spacer-height, 116px) - 32px);
        max-height: calc(100dvh - var(--like-header-spacer-height, 116px) - 32px);
        overflow-y: auto;
        border-radius: 24px;
    }

    .like-header__catalog-v4,
    .like-header__catalog-v4.has-promo {
        grid-template-columns: 1fr;
    }

    .like-header__catalog-directions {
        min-height: 0;
        padding: 8px;
        background: var(--like-surface-soft, #fbfaf8);
    }

    .like-header__catalog-direction {
        width: 100%;
        border-bottom: 1px solid var(--like-line-soft);
    }

    .like-header__catalog-direction:last-of-type {
        border-bottom: 0;
    }

    .like-header__catalog-rail-all-wrap {
        width: 100%;
        margin-top: 8px;
        padding: 14px 8px 6px;
    }

    .like-header__catalog-rail-all {
        min-height: 46px;
        font-size: 12px;
    }

    .like-header__catalog-rail-item {
        min-height: 58px;
        padding-right: 10px;
        padding-left: 10px;
        border-radius: 11px;
    }

    .like-header__catalog-direction.is-active > .like-header__catalog-rail-item .like-header__catalog-rail-arrow {
        transform: rotate(90deg);
    }

    .like-header__catalog-content {
        position: static;
        padding: 14px 12px 22px 56px;
        overflow: visible;
        animation-name: like-catalog-accordion-in;
    }

    @keyframes like-catalog-accordion-in {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .like-header__catalog-groups {
        column-count: 1;
        column-gap: 0;
    }

    .like-header__catalog-group {
        margin-bottom: 19px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .like-header__catalog-content {
        animation: none;
    }

    .like-header__catalog-rail-item,
    .like-header__catalog-rail-item::before,
    .like-header__catalog-rail-arrow {
        transition: none;
    }
}

/* ==========================================================================
   LIKE header search panel v16
   Search dropdown now uses the same premium card logic as catalog mega-menu.
   ========================================================================== */

.like-header__search-dropdown {
    display: none !important;
}

.like-header__search-panel {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    z-index: 745;
}

.like-header__search-panel[hidden] {
    display: none !important;
}

.like-header__search-card {
    pointer-events: auto;
    overflow: hidden;
    border: 1px solid var(--like-line-soft);
    border-top: none;
    border-radius: 20px;
    background: var(--like-dropdown-bg, #ffffff);
    box-shadow: var(--like-shadow-strong);
    animation: like-search-slide-down 0.16s ease;
}

@keyframes like-search-slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.like-header__search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--like-line-soft);
}

.like-header__search-title {
    color: var(--like-text-muted);
    font-family: var(--like-font-body);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
}

.like-header__search-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.like-header__search-close {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--like-line-soft);
    border-radius: 999px;
    background: var(--like-card-bg, #ffffff);
    color: var(--like-text-soft);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.like-header__search-close:hover {
    border-color: rgba(239, 127, 26, 0.5);
    background: var(--like-orange-pale);
    color: var(--like-orange-dark);
}

.like-header__search-close svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.like-header__search-state {
    padding: 12px 16px;
    color: var(--like-text-soft);
    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 600;
    border-bottom: 1px solid var(--like-line-soft);
}

.like-header__search-state:empty,
.like-header__search-state[style*="display: none"] {
    border-bottom: 0;
}

.like-header__search-results {
    display: flex;
    flex-direction: column;
    max-height: min(430px, calc(100vh - 160px));
    overflow-y: auto;
    background: var(--like-dropdown-bg, #ffffff);
}

.like-header__search-results:empty {
    display: none;
}

.like-header__search-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    color: var(--like-text);
    text-decoration: none;
    border-bottom: 1px solid var(--like-line-soft);
    transition: background-color 0.12s ease;
}

.like-header__search-item:last-child {
    border-bottom: 0;
}

.like-header__search-item:hover,
.like-header__search-item.is-active {
    background: var(--like-orange-pale);
}

.like-header__search-item .like-header__search-thumb.like-card-search__image {
    position: relative;
    flex: none;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--like-line-soft);
    border-radius: 12px;
    background: var(--like-surface-soft, #fbfaf8);
}

.like-header__search-item .like-header__search-thumb img {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: block;
    padding: 3px;
    object-fit: contain;
    object-position: center;
}

.like-header__search-thumb-placeholder {
    color: var(--like-orange-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.like-header__search-swatch {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.like-header__search-main {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 3px;
}

.like-header__search-name {
    overflow: hidden;
    color: var(--like-text);
    font-family: var(--like-font-body);
    font-size: 13.5px;
    line-height: 1.25;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.like-header__search-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.like-header__search-article {
    flex: none;
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--like-orange-pale);
    color: var(--like-orange-dark);
    font-family: var(--like-font-body);
    font-size: 11px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.like-header__search-cat {
    min-width: 0;
    overflow: hidden;
    color: var(--like-text-muted);
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.like-header__search-price-box {
    flex: none;
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 94px;
    padding: 7px 10px;
    text-align: center;
    background: var(--like-surface-soft, #fbfaf8);
    border: 1px solid var(--like-line-soft);
    border-radius: 10px;
}

.like-header__search-item .like-header__search-price.like-card-search__price {
    color: var(--like-text);
    font-family: var(--like-font-body);
    font-size: 15px;
    line-height: 1.15;
    font-weight: 800;
    white-space: nowrap;
}

.like-header__search-wholesale {
    color: var(--like-orange-dark);
    font-family: var(--like-font-body);
    font-size: 11px;
    white-space: nowrap;
}

.like-header-search-open .like-header__search {
    border-color: rgba(239, 127, 26, 0.52);
}

@media (max-width: 760px) {
    .like-header__search-results {
        max-height: 60vh;
    }

    .like-header__search-item {
        gap: 10px;
        padding: 9px 12px;
    }

    .like-header__search-item .like-header__search-thumb.like-card-search__image {
        width: 64px;
        height: 64px;
    }

    .like-header__search-price-box {
        min-width: 0;
        padding: 6px 8px;
    }

    .like-header__search-item .like-header__search-price.like-card-search__price {
        font-size: 14px;
    }
}

.like-location-ui,
.like-location-ui *,
.like-location-ui *::before,
.like-location-ui *::after {
    box-sizing: border-box;
}

.like-location-prompt {
    position: fixed;
    z-index: 910;
    top: var(--like-location-prompt-top, calc(var(--like-admin-panel-offset, 0px) + 44px));
    left: var(--like-location-prompt-left, 12px);
    right: auto;
    width: min(300px, calc(100vw - 24px));
    padding: 14px 16px 15px;
    border: 1px solid var(--like-line-soft);
    border-radius: 14px;
    background: var(--like-dropdown-bg, #ffffff);
    color: var(--like-text);
    font-family: var(--like-font-body);
    box-shadow: 0 14px 36px rgba(31, 26, 22, 0.16);
}

.like-location-prompt::before {
    position: absolute;
    top: -6px;
    left: var(--like-location-prompt-arrow-left, 42px);
    width: 11px;
    height: 11px;
    border-top: 1px solid var(--like-line-soft);
    border-left: 1px solid var(--like-line-soft);
    background: var(--like-dropdown-bg, #ffffff);
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.like-location-prompt[hidden],
.like-location-modal[hidden] {
    display: none !important;
}

.like-location-prompt > span,
.like-location-modal__eyebrow {
    display: block;
    color: var(--like-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.like-location-prompt > span {
    font-size: 10px;
}

.like-location-prompt > strong {
    display: block;
    margin-top: 3px;
    padding-right: 30px;
    color: var(--like-text);
    font-family: var(--like-font-heading);
    font-size: 19px;
    line-height: 1.15;
}

.like-location-prompt__close,
.like-location-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--like-surface-soft, #f7f4ef);
    color: var(--like-text-soft);
    font: inherit;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.like-location-prompt__close {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 20px;
}

.like-location-prompt__actions {
    display: flex;
    gap: 6px;
    margin-top: 11px;
}

.like-location-prompt__actions button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.like-location-prompt__actions button[hidden] {
    display: none !important;
}

.like-location-prompt__confirm {
    border: 1px solid var(--like-orange);
    background: var(--like-orange);
    color: var(--like-accent-text);
}

.like-location-prompt__change {
    border: 1px solid var(--like-line);
    background: var(--like-card-bg, #ffffff);
    color: var(--like-text);
}

.like-location-modal {
    position: fixed;
    z-index: 920;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.like-location-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(24, 21, 19, 0.44);
    cursor: default;
}

.like-location-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(680px, calc(100vh - 40px));
    max-height: min(680px, calc(100dvh - 40px));
    padding: 30px;
    overflow: auto;
    border: 1px solid var(--like-line-soft);
    border-radius: 24px;
    background: var(--like-dropdown-bg, #ffffff);
    color: var(--like-text);
    font-family: var(--like-font-body);
    box-shadow: var(--like-shadow-strong, 0 28px 90px rgba(31, 26, 22, 0.28));
}

.like-location-modal__dialog h2 {
    margin: 6px 44px 0 0;
    color: var(--like-text);
    font-family: var(--like-font-heading);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.like-location-modal__dialog > p {
    margin: 9px 0 20px;
    color: var(--like-text-soft);
    font-size: 14px;
    line-height: 1.5;
}

.like-location-modal__search {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    border: 1px solid var(--like-line);
    border-radius: 14px;
    background: var(--like-card-bg, #ffffff);
}

.like-location-modal__search:focus-within {
    border-color: var(--like-orange);
    box-shadow: 0 0 0 3px rgba(239, 127, 26, 0.12);
}

.like-location-modal__search-icon,
.like-location-modal__search-icon svg {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
}

.like-location-modal__search-icon svg {
    display: block;
    fill: none;
    stroke: var(--like-text-muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.like-location-modal__search input {
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--like-text);
    font: inherit;
    font-size: 15px;
}

.like-location-modal__status {
    padding: 12px 2px 8px;
    color: var(--like-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.like-location-modal__results {
    display: grid;
    gap: 6px;
}

.like-location-modal__results button {
    width: 100%;
    min-height: 52px;
    display: grid;
    gap: 3px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--like-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.like-location-modal__results button:hover,
.like-location-modal__results button:focus-visible {
    border-color: rgba(239, 127, 26, 0.28);
    background: var(--like-orange-pale);
    outline: 0;
}

.like-location-modal__results strong {
    font-size: 14px;
    line-height: 1.25;
}

.like-location-modal__results span {
    color: var(--like-text-muted);
    font-size: 12px;
    line-height: 1.35;
}

html.like-location-modal-open,
html.like-location-modal-open body {
    overflow: hidden;
}

html[data-like-theme="dark"] .like-location-prompt,
html[data-like-theme="dark"] .like-location-modal__dialog {
    border-color: var(--like-border);
    background: var(--like-dropdown-bg);
}

html[data-like-theme="dark"] .like-location-modal__search,
html[data-like-theme="dark"] .like-location-prompt__change {
    border-color: var(--like-border);
    background: var(--like-panel-bg-soft);
}

@media (max-width: 760px) {
    .like-location-prompt {
        width: min(288px, calc(100vw - 24px));
    }

    .like-location-modal {
        align-items: end;
        padding: 0;
    }

    .like-location-modal__dialog {
        width: 100%;
        max-height: min(82vh, 700px);
        max-height: min(82dvh, 700px);
        padding: 24px 18px;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
    }

    .like-location-modal__dialog h2 {
        font-size: 26px;
    }
}
