/* Shared storefront header. One DOM tree, including on mobile. */
.goti-design .goti-header {
    position: relative;
    z-index: 60;
    background: #fff;
    color: var(--goti-ink);
    border-bottom: 1px solid var(--goti-line);
    margin-bottom: 28px;
}
.goti-header__inner { max-width: 1414px; margin: 0 auto; padding: 0 40px; }
.goti-header__bar { display: flex; align-items: center; gap: 20px; min-height: 88px; }
.goti-header__logo { flex: 0 0 212px; border: 0; }
.goti-header__logo img { display: block; width: 100%; height: auto; }
.goti-header__catalog { flex: none; }
.goti-header summary { list-style: none; cursor: pointer; }
.goti-header summary::-webkit-details-marker { display: none; }
.goti-header details:not([open]) > :not(summary) { display: none; }
.goti-header__catalog > summary {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 46px; padding: 10px 18px; border-radius: var(--goti-radius);
    background: var(--goti-accent); color: #fff; font-size: 16px; font-weight: 600;
}
.goti-header__catalog > summary:hover, .goti-header__catalog[open] > summary { background: var(--goti-accent-hover); }
.goti-header__catalog > summary svg { flex: none; }
.goti-header .goti-header__search { display: flex; flex: 1 1 auto; min-width: 0; gap: 8px; margin: 0; }
.goti-header .image-search-text-field { min-width: 210px; }
.goti-header .image-search-text-field .navbar__search-control {
    width: 100%; min-width: 0; height: 46px; padding: 0 84px 0 14px;
    border: 1px solid var(--goti-line); border-radius: var(--goti-radius);
    color: var(--goti-ink); background: var(--goti-surface); font-size: 16px;
}
.goti-header .navbar__search-control::placeholder { color: transparent; opacity: 1; text-indent: 0; transition: none; }
.goti-header .image-search-text-field .navbar__search-control:focus { background: #fff; border-color: var(--goti-accent); }
.goti-header .navbar__search-control::-webkit-search-cancel-button { -webkit-appearance: none; }
.goti-header .image-search-text-field .navbar__search-btn { right: 5px; width: 36px; height: 36px; cursor: pointer; }
.goti-header .navbar__search-icon { width: 20px; height: 20px; fill: var(--goti-ink); }
.goti-header__search-caption { position: absolute; top: 0; bottom: 0; left: 14px; right: 45px; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.goti-header__search-caption label { margin: 0; color: var(--goti-muted); font-size: 16px; font-weight: 400; white-space: nowrap; cursor: text; pointer-events: auto; }
.goti-header .smart-search-help { position: static; flex: none; transform: none; pointer-events: auto; }
.goti-header .smart-search-help summary { width: 24px; height: 24px; font-size: 14px; color: var(--goti-muted); border-color: #98a2a6; background: transparent; }
.goti-header .navbar__search-control:is(:focus, :not(:placeholder-shown)) + .goti-header__search-caption { justify-content: flex-end; }
.goti-header .navbar__search-control:is(:focus, :not(:placeholder-shown)) + .goti-header__search-caption label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.goti-header .smart-search-help__popover {
    left: 0; right: auto; top: calc(100% + 8px); width: min(310px, calc(100vw - 60px));
    border-color: var(--goti-line); border-radius: var(--goti-radius); color: var(--goti-ink);
}
.goti-header .navbar__search-control:is(:focus, :not(:placeholder-shown)) + .goti-header__search-caption .smart-search-help__popover { left: 0; right: auto; }
.goti-header .smart-search-help[data-header-help-hidden] .smart-search-help__popover { display: none; }
.goti-header .goti-header__photo {
    display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px;
    min-width: 46px; height: 46px; padding: 0 12px; border: 1px solid var(--goti-line);
    border-radius: var(--goti-radius); background: #fff; color: var(--goti-ink); font-size: 14px; font-weight: 600; cursor: pointer;
}
.goti-header .goti-header__photo:hover { background: var(--goti-surface); border-color: var(--goti-ink); }
.goti-header__tools { display: flex; align-items: center; gap: 6px; flex: none; }
.goti-header .goti-header__tool {
    position: relative; display: grid; place-items: center; width: 44px; height: 46px;
    border: 0; border-radius: var(--goti-radius); color: var(--goti-ink);
}
.goti-header__tool > svg { fill: currentColor; }
.goti-header .goti-header__tool:hover { background: var(--goti-surface); color: var(--goti-accent); }
.goti-header .goti-header__count { position: absolute; right: 0; left: auto; top: 0; bottom: auto; min-width: 18px; width: auto; height: auto; padding: 0 3px; border-radius: 12px; background: #fff; color: var(--goti-ink); text-align: center; font-size: 12px; line-height: 18px; }
.goti-header__subbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 0 0 12px; }
.goti-header__navigation { min-width: 0; }
.goti-header__navigation > summary { font-size: 14px; padding: 10px 0; }
.goti-header .navbar__list { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.goti-header .navbar__list-item { padding: 0; }
.goti-header .navbar__link { display: block; padding: 7px 0; border: 0; color: var(--goti-muted); font-size: 14px; font-weight: 400; }
.goti-header .navbar__link:hover { color: var(--goti-accent); opacity: 1; }
.goti-header__account { display: flex; flex: none; gap: 16px; }
.goti-header__account > :is(a, button) { display: block; background: transparent; border: 0; padding: 7px 0; color: var(--goti-ink); font-size: 14px; line-height: inherit; cursor: pointer; }
.goti-header__account > :is(a, button):hover { color: var(--goti-accent); }
.goti-header__panel {
    position: absolute; z-index: 25; top: 100%; left: 20px; right: 20px;
    max-width: 1334px; max-height: min(70vh, 680px); overflow-y: auto; overscroll-behavior: contain;
    margin: 0 auto; padding: 24px; background: #fff; border: 1px solid var(--goti-line);
    border-radius: 0 0 var(--goti-radius) var(--goti-radius); box-shadow: 0 18px 40px #18282e26;
}
.goti-header__panel-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.goti-header__panel-head > a { font-weight: 600; color: var(--goti-accent); }
.goti-header__panel-head button { width: 44px; height: 44px; flex: none; border: 1px solid var(--goti-line); background: #fff; color: var(--goti-ink); border-radius: var(--goti-radius); font-size: 28px; cursor: pointer; }
.goti-header__categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.goti-header__category > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 8px; }
.goti-header__category > summary > span { font-size: 22px; flex: none; transition: transform .15s; }
.goti-header__category[open] > summary > span { transform: rotate(45deg); }
.goti-header .goti-header__category h2 { margin: 0 0 14px; font-size: 18px; line-height: 1.3; letter-spacing: -.3px; }
.goti-header .goti-header__category > summary h2 { margin: 0; }
.goti-header__category h2 a { color: var(--goti-ink); border: 0; }
.goti-header__category ul { list-style: none; margin: 0; padding: 0; }
.goti-header__category li { margin: 0; padding: 0; }
.goti-header__category li > a { display: block; padding: 6px 0; color: var(--goti-ink); font-size: 14px; border: 0; overflow-wrap: anywhere; }
.goti-header__category li > ul { border-left: 1px solid var(--goti-line); padding-left: 12px; margin: 2px 0 12px; }
.goti-header__category li > ul a { color: var(--goti-muted); }
.goti-header__branch { border-bottom: 1px solid var(--goti-line); }
.goti-header__branch > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 9px 0; color: var(--goti-ink); font-size: 14px; }
.goti-header__branch > summary span { flex: none; font-size: 20px; font-weight: 400; transition: transform .15s; }
.goti-header__branch[open] > summary { color: var(--goti-accent); }
.goti-header__branch[open] > summary span { transform: rotate(45deg); }
.goti-header__branch > summary:hover { color: var(--goti-accent); }
.goti-header__category .goti-header__branch > ul { padding-left: 12px; margin: 0 0 12px; border-left: 1px solid var(--goti-line); }
.goti-header__category .goti-header__branch > ul a { color: var(--goti-muted); }
.goti-header__category a:hover { color: var(--goti-accent); text-decoration: underline; text-underline-offset: 3px; }
.goti-header .goti-header__custom { display: flex; justify-content: space-between; padding: 16px; margin-top: 24px; background: var(--goti-dark); border-radius: var(--goti-radius); color: #fff; }
.goti-header .goti-header__sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.goti-mobile-dock, .goti-header__mobile-menu-head, .goti-header__mobile-account { display: none; }
.goti-design .login-wrapper { z-index: 10010; overflow-y: auto; }
@media (min-width: 1024px) {
    .goti-header__navigation[open] > summary { display: none; }
}
@media (max-width: 1199px) {
    .goti-header__inner { padding: 0 24px; }
    .goti-header__bar { gap: 14px; }
    .goti-header__logo { flex-basis: 180px; }
    .goti-header__photo span { display: none; }
    .goti-header .navbar__list { column-gap: 18px; }
}
@media (max-width: 1023px) {
    .goti-design { --goti-dock-height: calc(68px + env(safe-area-inset-bottom, 0px)); padding-bottom: var(--goti-dock-height); }
    .goti-design.goti-mobile-panel-open { overflow: hidden; }
    .goti-mobile-dock {
        position: fixed; z-index: 80; bottom: 0; left: 0; right: 0;
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: var(--goti-dock-height); padding: 5px 8px calc(5px + env(safe-area-inset-bottom, 0px));
        background: #fff; border-top: 1px solid var(--goti-line); box-shadow: 0 -4px 18px #18282e0a;
    }
    .goti-mobile-dock > :is(a, button) {
        position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
        min-width: 0; min-height: 57px; padding: 4px 0; border: 0; background: transparent;
        color: var(--goti-muted); font: 400 14px/1.3 var(--goti-font); cursor: pointer; border-radius: var(--goti-radius);
    }
    .goti-mobile-dock > :is(a, button):is(:hover, [aria-current="page"], [aria-expanded="true"]) { color: var(--goti-accent); background: #fff5ef; }
    .goti-mobile-dock > :is(a, button) > svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .goti-design .goti-mobile-dock__count { position: absolute; top: 1px; left: calc(50% + 4px); right: auto; width: auto; height: auto; min-width: 17px; padding: 1px 4px; background: var(--goti-accent); color: #fff; border-radius: 10px; font: 400 11px/1.3 var(--goti-font); }
    .goti-design .goti-mobile-dock__count:empty { display: none; }
    .goti-design .bottom-line { bottom: var(--goti-dock-height); }
    .goti-design .totop { bottom: calc(var(--goti-dock-height) + 18px); }
    .goti-design.image-search-is-open .goti-mobile-dock { display: none; }
    .goti-header[data-mobile-dock-enabled] .goti-header__catalog > summary,
    .goti-header[data-mobile-dock-enabled] .goti-header__navigation > summary,
    .goti-header[data-mobile-dock-enabled] .goti-header__tools > a[href="/cart"],
    .goti-header[data-mobile-dock-enabled] .goti-header__account { display: none; }
    .goti-header[data-mobile-dock-enabled] .goti-header__subbar { padding: 0; }
    .goti-header[data-mobile-dock-enabled]::before { content: ''; display: none; position: fixed; inset: 0; background: #18282e66; }
    .goti-header[data-mobile-panel-open]::before { display: block; }
    .goti-header[data-mobile-dock-enabled] .goti-header__panel,
    .goti-header[data-mobile-dock-enabled] .goti-header__navigation > nav {
        position: fixed; z-index: 25; top: max(12px, env(safe-area-inset-top, 0px)); left: 12px; right: 12px; bottom: calc(var(--goti-dock-height) + 12px);
        width: auto; max-width: none; max-height: none; margin: 0; padding: 20px; overflow-y: auto; overscroll-behavior: contain;
        border: 1px solid var(--goti-line); border-radius: var(--goti-radius); background: #fff; box-shadow: 0 8px 30px #18282e26;
    }
    .goti-header__mobile-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
    .goti-header__mobile-account { display: block; padding: 12px 0; }
    .goti-header__mobile-menu-head button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--goti-line); border-radius: var(--goti-radius); color: var(--goti-ink); background: #fff; font-size: 28px; cursor: pointer; }
    .goti-header[data-mobile-dock-enabled] .goti-header__navigation .navbar__list { display: grid; gap: 6px; }
    .goti-header[data-mobile-dock-enabled] .goti-header__navigation .navbar__link { padding: 12px 0; color: var(--goti-ink); font-size: 16px; border-bottom: 1px solid var(--goti-line); }
    .goti-header__bar { flex-wrap: wrap; gap: 12px; padding: 16px 0 8px; min-height: 0; }
    .goti-header__logo { flex-basis: 190px; }
    .goti-header__tools { margin-left: auto; }
    .goti-header .goti-header__search { order: 4; flex-basis: 100%; }
    .goti-header__subbar { padding-bottom: 4px; }
    .goti-header__navigation > summary { display: flex; align-items: center; gap: 12px; min-height: 44px; }
    .goti-header__navigation[open] > summary span { transform: rotate(180deg); }
    .goti-header .navbar__list { padding: 8px 0 16px; gap: 8px 24px; }
    .goti-header__account > :is(a, button) { padding: 10px 0; min-height: 44px; }
    .goti-header__categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .goti-header[data-mobile-dock-enabled] .goti-header__categories { grid-template-columns: 1fr; gap: 0; }
    .goti-header[data-mobile-dock-enabled] .goti-header__category { border-bottom: 1px solid var(--goti-line); }
    .goti-header[data-mobile-dock-enabled] .goti-header__category > summary { min-height: 56px; margin: 0; padding: 10px 0; }
    .goti-header[data-mobile-dock-enabled] .goti-header__category > ul { padding: 0 0 16px 12px; }
    .goti-header__panel { max-height: calc(100dvh - 200px); }
}
@media (max-width: 539px) {
    .goti-design .goti-header { margin-bottom: 20px; }
    .goti-header__inner { padding: 0 16px; }
    .goti-header__bar { gap: 8px; }
    .goti-header__logo { flex: 1 1 100px; max-width: 180px; }
    .goti-header__catalog > summary { gap: 6px; padding: 10px; font-size: 14px; }
    .goti-header__catalog > summary svg { display: none; }
    .goti-header__tools { gap: 0; }
    .goti-header .goti-header__tool { width: 44px; }
    .goti-header .goti-header__photo { padding: 0; }
    .goti-header .goti-header__search { gap: 8px; }
    .goti-header .image-search-text-field { min-width: 0; }
    .goti-header__panel { left: 8px; right: 8px; padding: 16px; }
    .goti-header__categories { grid-template-columns: 1fr; gap: 24px; }
}
