#primary.shop-page > .vk-cat-hero {
    --vk-cat-panel: #fff;
    --vk-cat-ink: #17202c;
    --vk-cat-border: #dce2e9;
    --vk-cat-link: #4a36a4;
    --vk-cat-button: transparent;
    --vk-cat-button-active: transparent;
    --vk-cat-button-ink: #000;
    position: relative;
    z-index: 3;
    padding-block: clamp(24px, 3.6vw, 52px);
}
html[data-vk-theme="dark"] #primary.shop-page > .vk-cat-hero {
    --vk-cat-panel: #191e26;
    --vk-cat-ink: #f4f6fb;
    --vk-cat-border: #363d48;
    --vk-cat-link: #c0afff;
    --vk-cat-button: #191e26;
    --vk-cat-button-active: #292442;
    --vk-cat-button-ink: #fff;
}
.vk-cat-hero > .row > .vk-cat-heading {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    column-gap: clamp(16px, 3vw, 48px);
    float: none;
    text-align: start;
}
.vk-cat-hero .vk-cat-heading > #breadcrumbs { grid-area: 1 / 1 / auto / -1; }
#primary .vk-cat-hero .vk-cat-heading > #breadcrumbs :is(div, span, a) { color: inherit; }
#primary .vk-cat-hero .vk-cat-heading > :is(#breadcrumbs, .page-title, .vk-cat-lead) {
    color: var(--vk-cat-ink);
    overflow-wrap: anywhere;
}
#primary .vk-cat-hero .vk-cat-heading > .page-title {
    grid-area: 2 / 1;
    color: var(--vk-cat-ink) !important;
    margin: .12em 0 .2em;
    line-height: 1.12;
    text-align: start;
}
.vk-cat-hero .vk-cat-lead { grid-area: 3 / 1; margin: 0; }
#primary .vk-cat-hero .vk-cat-lead,
#primary .vk-cat-hero .vk-cat-lead p {
    color: var(--vk-cat-ink) !important;
    margin: 0;
    font-size: clamp(14px, 1.4vw, 19px);
    line-height: 1.5;
    text-align: start;
}
.vk-cat-hero .vk-cat-lead a { color: var(--vk-cat-link); text-decoration: underline; }
@media (min-width: 701px) {
    .vk-cat-heading:has(> .vk-cat-guide) > #breadcrumbs { grid-column-end: 2; }
}
.vk-cat-guide { position: relative; grid-area: 1 / 2 / 4; align-self: center; min-width: 0; max-width: 23rem; margin: 0; }
.vk-cat-guide > summary {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 13px;
    position: relative;
    border: 1px solid #515fec;
    border-radius: 8px;
    background: var(--vk-cat-button) padding-box;
    color: var(--vk-cat-button-ink);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
    overflow-wrap: anywhere;
}
@supports (mask-composite: exclude) {
    .vk-cat-guide > summary { border-color: transparent; }
    .vk-cat-guide > summary::before {
        content: "";
        position: absolute;
        inset: -1px;
        padding: 1px;
        border-radius: inherit;
        background: linear-gradient(110deg, #515fec, #af347f);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
    }
}
.vk-cat-guide > summary::-webkit-details-marker { display: none; }
.vk-cat-guide > summary svg { flex: 0 0 auto; }
.vk-cat-guide > summary svg:last-child { margin-inline-start: auto; }
.vk-cat-guide[open] > summary svg:last-child { transform: rotate(180deg); }
.vk-cat-guide[open] > summary,
.vk-cat-guide > summary:hover { --vk-cat-button: var(--vk-cat-button-active); }
#primary .vk-cat-guide-panel {
    position: absolute;
    z-index: 6;
    inset: calc(100% + 8px) 0 auto auto;
    box-sizing: border-box;
    width: min(490px, calc(100vw - 32px));
    max-height: 65vh;
    max-height: min(65dvh, var(--vk-cat-guide-room, 65dvh), 520px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--vk-cat-border);
    border-radius: 12px;
    background: var(--vk-cat-panel);
    color: var(--vk-cat-ink);
    box-shadow: 0 12px 35px rgb(0 0 0 / 24%);
    text-align: start;
}
.vk-cat-guide-panel > header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 12px 7px 17px;
    border-bottom: 1px solid var(--vk-cat-border);
    background: var(--vk-cat-panel);
}
#primary .vk-cat-guide-panel > header h2 {
    margin: 0;
    color: inherit;
    font-size: 18px;
    line-height: 1.25;
    text-align: start;
    overflow-wrap: anywhere;
}
.vk-cat-guide-close:not([hidden]) {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--vk-cat-ink);
    font: 500 24px/1 system-ui, sans-serif;
}
.vk-cat-guide-close:hover { background: color-mix(in srgb, var(--vk-cat-ink) 8%, transparent); }
#primary .vk-cat-guide-copy {
    padding: 16px 17px;
    font-family: var(--vk-font-family, Manrope, Arial, sans-serif);
    font-size: 14px;
    line-height: 1.58;
    overflow-wrap: anywhere;
}
#primary .vk-cat-guide-copy :is(p, li, summary, th, td, figcaption, h2, h3, h4, h5, h6) {
    color: var(--vk-cat-ink);
    text-align: start;
    text-transform: none;
}
/* Keep list and table wrappers from reintroducing the theme's root text size. */
#primary .vk-cat-guide-copy :is(p, ul, ol, dl, li, dt, dd, summary, table, th, td, figcaption, blockquote, a) {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}
#primary .vk-cat-guide-copy thead th { font-size: inherit !important; }
#primary .vk-cat-guide-copy :is(h2,h3,h4,h5,h6) { font-size: 16px; }
#primary .vk-cat-guide-copy p { margin: 0 0 .85em; }
#primary .vk-cat-guide-copy a { color: var(--vk-cat-link); text-decoration: underline; text-underline-offset: .15em; }
.vk-cat-guide-copy :is(ol,ul) { margin: 0 0 .85em; padding-inline-start: 1.3em; }
.vk-cat-guide-copy :is(img, figure, video) { max-width: 100%; height: auto; }
.vk-cat-guide-copy pre { white-space: pre-wrap; }
.vk-cat-guide-copy summary { cursor: pointer; font-weight: 750; }
html:has(.vk-cat-guide[open]) .vka-launcher[data-vka-open] { visibility: hidden; pointer-events: none; }
@media (max-width: 700px) {
    .vk-cat-hero > .row > .vk-cat-heading { grid-template-columns: minmax(0, 1fr); }
    .vk-cat-guide { position: static; grid-area: 4 / 1; max-width: none; margin-block-start: 12px; }
    #primary .vk-cat-guide-panel { inset-inline: clamp(14px, 4vw, 25px); width: auto; }
}

/* Hide the CZ PL facet controls above the catalogue and retain reset links on filtered URLs. */
body.tax-product_cat.term-1386 .before_main_content form.vk-pl-lens-format:has(select[name="filter_vk_pl_sensor"]) > :is(.vk-pl-lens-format__control, button[type="submit"]),
body.tax-product_cat.term-1386 .before_main_content > .row:has(> .columns > form.vk-pl-lens-format select[name="filter_vk_pl_sensor"]):not(:has(> .columns > form.vk-pl-lens-format > a[href])) {
    display: none;
}
