/* ----------------------------------------------------------------------------
   The product listing — `/produkty` and `/produkty/<category>`, CU-869ff1rff.
   `templates/product/listing.html.twig` and `product/tile.html.twig`; the
   numbers are `new-produkty.html`'s. The heart is base.css's `.gk-heart`, the
   sort sheet base.css's `.gk-picker`.
   ---------------------------------------------------------------------------- */

/* ---- The column ---------------------------------------------------------- */

/* The design's 550px measure, as the magazine and the brand directory. */
.gk-listing {
    box-sizing: border-box;
    width: 100%;
    max-width: 34.375rem;
    margin-inline: auto;
    padding: var(--gk-space-4) var(--gk-space-4) 4rem;
}

@media (min-width: 768px) {
    .gk-listing {
        max-width: calc(34.375rem + 2 * var(--gk-space-6));
        padding-inline: var(--gk-space-6);
        padding-top: var(--gk-space-6);
    }
}

@media (min-width: 1024px) {
    .gk-listing {
        max-width: calc(34.375rem + 2 * var(--gk-space-10));
        padding-inline: var(--gk-space-10);
    }
}

/* ---- Head ---------------------------------------------------------------- */

/* One level up. Pulled into the padding above it, so the h1 sits where it
   would without it. */
.gk-listing__back {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: var(--gk-space-1);
    min-height: 2.75rem;
    margin: -0.75rem 0 -0.25rem;
    color: var(--gk-color-text);
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-medium);
    line-height: 1.25rem;
    text-decoration: none;
}

.gk-listing__back svg {
    flex: none;
    color: var(--gk-color-text-soft);
}

@media (hover: hover) {
    .gk-listing__back:hover .gk-listing__back-label {
        text-decoration: underline;
        text-underline-offset: 2px;
    }
}

.gk-listing__back:focus-visible {
    outline: none;
    border-radius: var(--gk-radius-md);
    box-shadow: var(--gk-ring-focus);
}

/* `gk-h1-decision`, 30/34 and 40/44 — brand-listing.css has why the sizes are
   stated rather than tokens. */
.gk-listing__title {
    margin: 0;
    color: var(--gk-color-text);
    font-size: 1.875rem;
    font-weight: var(--gk-weight-bold);
    line-height: 2.125rem;
    letter-spacing: -0.012em;
}

@media (min-width: 768px) {
    .gk-listing__title {
        font-size: 2.5rem;
        line-height: 2.75rem;
    }
}

/* ---- The brand's description (brand page only) --------------------------- */

.gk-listing__about {
    margin-top: 8px;
}

.gk-listing__about-body {
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
}

.gk-listing__about-body p {
    margin: 0;
}

.gk-listing__about-body p + p {
    margin-top: 8px;
}

/* Closed: the first paragraph in three lines, the rest out of sight. */
.gk-listing__about:not(.is-open) .gk-listing__about-body p:first-child {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.gk-listing__about:not(.is-open) .gk-listing__about-body p:not(:first-child) {
    display: none;
}

.gk-listing__about-toggle {
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--gk-radius-md);
    background: transparent;
    color: var(--gk-color-text);
    font: inherit;
    font-size: var(--gk-text-xs);
    line-height: 1.25rem;
    text-decoration: underline;
    text-decoration-color: var(--gk-color-border);
    text-underline-offset: 2px;
    cursor: pointer;
    transition: text-decoration-color 140ms ease;
}

.gk-listing__about-toggle[hidden] {
    display: none;
}

@media (hover: hover) {
    .gk-listing__about-toggle:hover {
        text-decoration-color: var(--gk-color-text);
    }
}

.gk-listing__about-toggle:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

/* ---- Category strip ------------------------------------------------------ */

.gk-listing__strip {
    margin-top: var(--gk-space-4);
}

/* Under the strip; the design keeps the same 16px. */

/* Pulled left by a link's padding, so the first label lines up with the h1. */
.gk-listing__strip ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 0 calc(-1 * var(--gk-space-2));
    padding: 0;
    list-style: none;
}

/* Below 768px one row that scrolls sideways, edge to edge. */
@media (max-width: 767px) {
    .gk-listing__strip {
        margin-inline: calc(-1 * var(--gk-space-4));
    }

    .gk-listing__strip ul {
        flex-wrap: nowrap;
        margin: 0;
        padding: 0 var(--gk-space-4) 0 var(--gk-space-2);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .gk-listing__strip ul::-webkit-scrollbar {
        display: none;
    }

    .gk-listing__strip li {
        flex: none;
    }

    .gk-listing__strip-link {
        white-space: nowrap;
    }
}

.gk-listing__strip-link {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 var(--gk-space-2);
    color: var(--gk-color-text);
    font-weight: var(--gk-weight-medium);
    line-height: 1.5rem;
    text-decoration: none;
}

.gk-listing__strip-link span {
    position: relative;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

@media (hover: hover) {
    .gk-listing__strip-link:hover span {
        text-decoration-color: currentColor;
    }
}

.gk-listing__strip-link[aria-current="page"] {
    font-weight: var(--gk-weight-semibold);
}

.gk-listing__strip-link[aria-current="page"] span {
    text-decoration-color: transparent;
}

.gk-listing__strip-link[aria-current="page"] span::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.25rem;
    left: 0;
    height: 2px;
    background: currentColor;
}

.gk-listing__strip-link:focus-visible {
    outline: none;
    border-radius: var(--gk-radius-md);
    box-shadow: var(--gk-ring-focus);
}

/* ---- Count and sort ------------------------------------------------------ */

.gk-listing__countrow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--gk-space-2);
    min-height: 2.75rem;
    margin-top: var(--gk-space-4);
}

.gk-listing__count {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--gk-color-text-muted);
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
}

/* A word with a chevron, not a box: the design's `.gpl-sort`. */
.gk-listing__sort {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: var(--gk-space-1);
    min-width: 2.75rem;
    min-height: 2.75rem;
    margin-right: -4px;
    padding: 0 4px;
    border: 0;
    border-radius: var(--gk-radius-md);
    background: transparent;
    color: var(--gk-color-text);
    font: inherit;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: text-decoration-color 140ms ease;
}

.gk-listing__sort svg {
    flex: none;
    color: var(--gk-color-text-soft);
}

@media (hover: hover) {
    .gk-listing__sort:hover {
        text-decoration-color: currentColor;
    }
}

.gk-listing__sort:active {
    text-decoration-color: currentColor;
}

.gk-listing__sort:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

.gk-listing__sort-verb {
    display: inline-flex;
    align-items: flex-start;
    gap: var(--gk-space-1);
}

/* Says the order is not the default one. */
.gk-listing__dot {
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: 3px;
    border-radius: var(--gk-radius-full);
    background: var(--gk-color-brand);
}

/* Off, it keeps its room: the button does not grow when a filter is chosen,
   and the pills after it do not move under her thumb. */
.gk-listing__dot--off {
    visibility: hidden;
}

/* ---- The grid ------------------------------------------------------------ */

.gk-listing__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gk-space-6) var(--gk-space-4);
    margin: var(--gk-space-4) 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .gk-listing__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gk-listing__item {
    min-width: 0;
}

/* ---- A tile -------------------------------------------------------------- */

.gk-tile {
    position: relative;
    height: 100%;
}

.gk-tile__link {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-1);
    height: 100%;
    min-width: 0;
    border-radius: var(--gk-radius-lg);
    color: var(--gk-color-text);
    text-decoration: none;
}

.gk-tile__link:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

.gk-tile__media {
    display: block;
    aspect-ratio: 4 / 5;
    margin-bottom: var(--gk-space-2);
    overflow: hidden;
    border-radius: var(--gk-radius-lg);
    background: var(--gk-color-surface);
}

.gk-tile__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gk-tile__sale {
    position: absolute;
    top: var(--gk-space-2);
    left: var(--gk-space-2);
    z-index: 1;
    padding: var(--gk-space-1) 6px;
    border-radius: var(--gk-radius-full);
    background: var(--gk-color-text);
    color: var(--gk-color-on-brand);
    font-size: var(--gk-text-xs);
    font-weight: var(--gk-weight-semibold);
    line-height: 1rem;
}

.gk-tile__brand {
    color: var(--gk-color-text-soft);
    font-size: 0.625rem;
    line-height: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gk-tile__name {
    display: -webkit-box;
    overflow: hidden;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
    text-wrap: balance;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (hover: hover) {
    .gk-tile__link:hover .gk-tile__name {
        text-decoration: underline;
    }
}

/* The rating and the price sit at the bottom, so the prices of a row line up. */
.gk-tile__rating {
    display: flex;
    align-items: center;
    gap: var(--gk-space-1);
    margin-top: auto;
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-xs);
    line-height: 1rem;
}

.gk-tile__rating svg {
    flex: none;
    fill: var(--gk-color-rating);
}

.gk-tile__rating-value {
    color: var(--gk-color-text);
    font-weight: var(--gk-weight-semibold);
    font-variant-numeric: tabular-nums;
}

.gk-tile__rating-count {
    font-size: 0.625rem;
    line-height: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.gk-tile__price {
    margin-top: auto;
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
    font-variant-numeric: tabular-nums;
}

.gk-tile__rating + .gk-tile__price {
    margin-top: var(--gk-space-1);
}

/* In the price's place on a search result nobody here sells; the tile stays a link. */
.gk-tile__nooffer {
    margin-top: auto;
    color: var(--gk-color-text-muted);
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
}

.gk-tile__rating + .gk-tile__nooffer {
    margin-top: var(--gk-space-1);
}

.gk-tile__from {
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-xs);
    font-weight: var(--gk-weight-normal);
    line-height: 1rem;
}

/* Over the picture's corner, bigger than the product page's, and no count. */
.gk-tile__heart {
    position: absolute;
    top: -4px;
    right: 2px;
    z-index: 2;
    /* The glyph at the button's right edge, 8px in from the picture's, with the
       rest of the 44px target to its left. */
    flex-direction: row-reverse;
}

.gk-tile__heart .gk-heart__glyph {
    width: 1.25rem;
    height: 1.25rem;
}

.gk-tile__heart .gk-heart__glyph svg {
    width: 1.25rem;
    height: 1.25rem;
}

.gk-tile__heart .gk-heart__count {
    display: none;
}

/* ---- Empty --------------------------------------------------------------- */

.gk-listing__empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: var(--gk-space-6);
}

.gk-listing__empty p {
    margin: 0;
    line-height: 1.5rem;
}

.gk-listing__empty a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--gk-color-text);
    text-decoration-color: var(--gk-color-border);
    text-underline-offset: 2px;
}

/* ---- Load more, progress and pages --------------------------------------- */

.gk-listing__progress {
    margin: var(--gk-space-8) 0 0;
    color: var(--gk-color-text-muted);
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.gk-listing__more-wrap {
    position: relative;
}

/* Práve trenduje under the list, 40px below the pager. */
.gk-listing__trending {
    margin-top: var(--gk-space-10);
}

.gk-listing__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gk-space-2);
    width: 100%;
    height: 3rem;
    margin-top: var(--gk-space-8);
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-md);
    background: var(--gk-color-surface);
    color: var(--gk-color-text);
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
    text-decoration: none;
    transition: border-color 140ms ease;
}

.gk-listing__progress + .gk-listing__more-wrap .gk-listing__more {
    margin-top: var(--gk-space-2);
}

@media (hover: hover) {
    .gk-listing__more:hover {
        border-color: var(--gk-color-border-strong);
    }
}

.gk-listing__more:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

.gk-listing__more-error {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin: var(--gk-space-2) 0 0;
    color: var(--gk-color-danger);
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
    text-align: center;
}

/* Numbered pages from 768px; a phone has the button alone. */
.gk-listing__pager {
    display: none;
    justify-content: center;
    margin-top: var(--gk-space-4);
}

@media (min-width: 768px) {
    .gk-listing__pager {
        display: flex;
    }
}

.gk-listing__pager ul {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gk-listing__pager-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 var(--gk-space-2);
    color: var(--gk-color-text);
    font-weight: var(--gk-weight-medium);
    line-height: 1.5rem;
    text-decoration: none;
}

.gk-listing__pager-link span {
    position: relative;
}

@media (hover: hover) {
    a.gk-listing__pager-link:hover span {
        text-decoration: underline;
        text-underline-offset: 2px;
    }
}

.gk-listing__pager-link--current {
    font-weight: var(--gk-weight-semibold);
}

.gk-listing__pager-link--current span::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.25rem;
    left: 0;
    height: 2px;
    background: currentColor;
}

.gk-listing__pager-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--gk-radius-md);
    color: var(--gk-color-text-soft);
}

@media (hover: hover) {
    a.gk-listing__pager-arrow:hover {
        color: var(--gk-color-text);
    }
}

.gk-listing__pager-gap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 2.75rem;
    color: var(--gk-color-text-muted);
}

.gk-listing__pager a:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

/* ---- Filtrovať, the pills and the chips ---------------------------------- */

/* One row that scrolls sideways under its own edge padding, so a pill is never
   cut by the column. */
.gk-listing__controls,
.gk-listing__active {
    display: flex;
    align-items: center;
    gap: var(--gk-space-2);
    /* The 4px around the pills is room for a focus ring, taken back by the
       margins, so the row is its 44px pills tall in the flow. */
    margin: calc(var(--gk-space-6) - 4px) calc(-1 * var(--gk-space-4)) -4px;
    padding: 4px var(--gk-space-4);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.gk-listing__controls::-webkit-scrollbar,
.gk-listing__active::-webkit-scrollbar {
    display: none;
}

.gk-listing__active {
    margin-top: 0;
}

.gk-listing__controls + .gk-listing__controls-ph + .gk-listing__active {
    margin-top: 4px;
}

.gk-listing__filter,
.gk-listing__pill {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: var(--gk-space-2);
    height: 2.75rem;
    padding: 0 0.875rem;
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-full);
    background: var(--gk-color-surface);
    color: var(--gk-color-text);
    font: inherit;
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 140ms ease;
}

.gk-listing__filter {
    font-weight: var(--gk-weight-semibold);
}

.gk-listing__pill {
    padding: 0 var(--gk-space-3);
}

.gk-listing__filter svg {
    flex: none;
    color: var(--gk-color-text-soft);
}

@media (hover: hover) {
    .gk-listing__filter:hover,
    .gk-listing__pill:hover {
        border-color: var(--gk-color-border-strong);
    }
}

.gk-listing__filter:focus-visible,
.gk-listing__pill:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

.gk-listing__verb {
    display: inline-flex;
    align-items: flex-start;
    gap: var(--gk-space-1);
}

/* Pinned under the header once scrolled past, and slid back in on the way up —
   the same element, so focus and the pills' state go with it; the placeholder
   keeps its place in the flow. Under the header (z-index 40), so it slides out
   from behind it. The script sets the side padding to the column's. */
.gk-listing__controls.is-pinned {
    position: fixed;
    top: var(--gk-listing-pin-top, 3.5rem);
    right: 0;
    left: 0;
    z-index: 30;
    margin: 0;
    padding: var(--gk-space-2) var(--gk-listing-pin-right, var(--gk-space-4)) var(--gk-space-2) var(--gk-listing-pin-left, var(--gk-space-4));
    border-bottom: 1px solid var(--gk-color-border);
    background: var(--gk-color-surface-page);
    transform: translateY(-100%);
    transition: transform 150ms ease;
}

.gk-listing__controls.is-pinned.is-shown {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .gk-listing__controls.is-pinned {
        transition: none;
    }
}

/* A chip: a 32px box inside a 44px target. A link on the page, a button in
   the panel's tray. */
.gk-listing__chip {
    display: inline-flex;
    flex: none;
    align-items: center;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
    color: var(--gk-color-text);
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
    text-decoration: none;
    white-space: nowrap;
}

.gk-listing__chip-in {
    display: inline-flex;
    align-items: center;
    gap: var(--gk-space-1);
    height: 2rem;
    padding: 0 var(--gk-space-2) 0 var(--gk-space-3);
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-sm);
    background: var(--gk-color-surface);
    transition: border-color 140ms ease;
}

.gk-listing__chip svg {
    flex: none;
    color: var(--gk-color-text-soft);
}

@media (hover: hover) {
    .gk-listing__chip:hover .gk-listing__chip-in {
        border-color: var(--gk-color-border-strong);
    }
}

.gk-listing__chip:focus-visible {
    outline: none;
}

.gk-listing__chip:focus-visible .gk-listing__chip-in {
    box-shadow: var(--gk-ring-focus);
}

.gk-listing__clear,
.gk-filters__link,
.gk-filters__clear {
    display: inline-flex;
    flex: none;
    align-items: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 var(--gk-space-2);
    border: 0;
    border-radius: var(--gk-radius-md);
    background: transparent;
    color: var(--gk-color-brand);
    font: inherit;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: text-decoration-color 140ms ease;
}

@media (hover: hover) {
    .gk-listing__clear:hover,
    .gk-filters__link:hover,
    .gk-filters__clear:hover {
        text-decoration-color: currentColor;
    }
}

.gk-listing__clear:focus-visible,
.gk-filters__link:focus-visible,
.gk-filters__clear:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

.gk-listing__controls + .gk-listing__countrow {
    margin-top: var(--gk-space-4);
}

/* ---- Nothing under her filters ------------------------------------------- */

.gk-listing__zero {
    margin-top: var(--gk-space-2);
}

.gk-listing__zero p {
    margin: 0;
    line-height: 1.5rem;
}

.gk-listing__zero ul {
    margin: var(--gk-space-2) 0 0;
    padding: 0;
    list-style: none;
}

.gk-listing__zero a {
    display: block;
    width: fit-content;
    min-height: 2.75rem;
    padding: var(--gk-space-3) 0;
    text-decoration: none;
}

.gk-listing__zero-drop {
    color: var(--gk-color-brand);
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
}

@media (hover: hover) {
    .gk-listing__zero a:hover .gk-listing__zero-drop {
        text-decoration-color: currentColor;
    }
}

.gk-listing__zero-gain {
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
    font-variant-numeric: tabular-nums;
}

/* ---- The filter panel ------------------------------------------------------ */

/* Full screen below 1024px; a pill's one row is a bottom sheet; from 1024px
   every view is a 480px drawer from the left over a scrim. */
.gk-filters {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--gk-color-surface);
}

.gk-filters[open] {
    display: flex;
}

.gk-filters::backdrop {
    background: var(--gk-color-border-strong);
}

.gk-filters__sheet {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    background: var(--gk-color-surface);
}

@media (max-width: 1023px) {
    .gk-filters:not([data-mode="full"]) {
        align-items: flex-end;
        justify-content: center;
        background: transparent;
    }

    .gk-filters:not([data-mode="full"]) .gk-filters__sheet {
        flex: 0 1 auto;
        max-width: 30rem;
        max-height: calc(100dvh - 4.5rem);
        overflow: hidden;
        border-radius: var(--gk-radius-xl) var(--gk-radius-xl) 0 0;
        box-shadow: var(--gk-shadow-pop);
    }

    /* The brand list is long: the sheet takes its full height at once. */
    .gk-filters[data-mode="znacka"] .gk-filters__sheet {
        height: calc(100dvh - 4.5rem);
    }
}

@media (min-width: 1024px) {
    .gk-filters {
        justify-content: flex-start;
        background: transparent;
    }

    .gk-filters__sheet {
        flex: none;
        width: 30rem;
        max-width: 100%;
        box-shadow: var(--gk-shadow-pop);
    }
}

.gk-filters__head {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--gk-space-4);
    width: 100%;
    max-width: 30rem;
    height: 3.5rem;
    margin: 0 auto var(--gk-space-2);
    padding: 0 var(--gk-space-4);
}

.gk-filters__title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-filters__back {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: -11px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gk-color-text-soft);
    cursor: pointer;
}

.gk-filters__back:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

.gk-filters__body {
    /* No scrollbar-gutter: a classic scrollbar takes its width on the right
       only, and only while the panel scrolls, so the rows keep the title's and
       the tray's left edge. */
    flex: 1 1 auto;
    width: 100%;
    max-width: 30rem;
    min-height: 0;
    margin: 0 auto;
    padding: 0 var(--gk-space-4) var(--gk-space-4);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* The views: every row; one row from its pill (the script hides the others);
   the brand level. */
.gk-filters:not([data-mode="full"]) .gk-filters__row-hh,
.gk-filters[data-level="brand"] .gk-filters__row {
    display: none;
}

.gk-filters:not([data-mode="full"]) .gk-filters__row-b {
    display: block;
}

/* The rows a brand page swaps after a pick in Kategória: a wrapper for the
   script, not for the layout, so the rule between rows also runs across it. */
.gk-filters__rows {
    display: contents;
}

.gk-filters__row + .gk-filters__row,
.gk-filters__row + .gk-filters__rows > .gk-filters__row:first-child,
.gk-filters__rows:has(> .gk-filters__row) + .gk-filters__row {
    border-top: 1px solid var(--gk-color-border);
}

.gk-filters:not([data-mode="full"]) .gk-filters__row + .gk-filters__row,
.gk-filters:not([data-mode="full"]) .gk-filters__row + .gk-filters__rows > .gk-filters__row:first-child,
.gk-filters:not([data-mode="full"]) .gk-filters__rows + .gk-filters__row {
    border-top: 0;
}

.gk-filters__row-hh {
    margin: 0;
    font: inherit;
}

.gk-filters__row-h {
    display: flex;
    align-items: center;
    gap: var(--gk-space-3);
    width: 100%;
    min-height: 3.5rem;
    padding: var(--gk-space-2) 0;
    border: 0;
    background: transparent;
    color: var(--gk-color-text);
    font: inherit;
    font-size: var(--gk-text-base);
    text-align: left;
    cursor: pointer;
}

.gk-filters__row-l {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 140ms ease;
}

@media (hover: hover) {
    .gk-filters__row-h:hover .gk-filters__row-l {
        text-decoration-color: currentColor;
    }
}

.gk-filters__row-h:focus-visible {
    outline: none;
    box-shadow: inset var(--gk-ring-focus);
}

.gk-filters__cd {
    flex: none;
    color: var(--gk-color-text-soft);
    transition: transform 140ms ease;
}

.gk-filters__row-h[aria-expanded="true"] .gk-filters__cd {
    transform: rotate(180deg);
}

.gk-filters__row-b {
    display: none;
    padding-bottom: var(--gk-space-4);
}

.gk-filters__row.is-open .gk-filters__row-b {
    display: block;
}

/* Values: two columns of check rows; the brand level one column. */
.gk-filters__vals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gk-space-4);
}

.gk-filters__vals--rows {
    display: flex;
    flex-direction: column;
}

.gk-check {
    display: flex;
    align-items: flex-start;
    gap: var(--gk-space-3);
    width: 100%;
    min-height: 2.75rem;
    padding: var(--gk-space-3) 0;
    border: 0;
    background: none;
    color: var(--gk-color-text);
    font: inherit;
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
    text-align: left;
    cursor: pointer;
}

.gk-check--row {
    align-items: center;
    padding: 0;
    font-size: var(--gk-text-base);
    line-height: 1.5rem;
}

.gk-check--row[aria-pressed="true"] {
    font-weight: var(--gk-weight-semibold);
}

.gk-check__box {
    position: relative;
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-sm);
    background: var(--gk-color-surface);
    transition: border-color 140ms ease;
}

@media (hover: hover) {
    .gk-check[aria-pressed="false"]:hover .gk-check__box {
        border-color: var(--gk-color-border-strong);
    }
}

.gk-check[aria-pressed="true"] .gk-check__box {
    border-color: var(--gk-color-brand);
    background: var(--gk-color-brand);
}

.gk-check[aria-pressed="true"] .gk-check__box::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid var(--gk-color-on-brand);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gk-check:focus-visible {
    outline: none;
}

.gk-check:focus-visible .gk-check__box {
    box-shadow: var(--gk-ring-focus);
}

.gk-check__label {
    flex: 1 1 auto;
    min-width: 0;
}

/* Her own price range. */
.gk-filters__link {
    margin: var(--gk-space-1) 0 0 calc(-1 * var(--gk-space-2));
}

.gk-filters__range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--gk-space-4);
    margin-top: var(--gk-space-2);
}

.gk-filters__field {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-1);
    min-width: 0;
}

.gk-filters__field-l {
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
}

.gk-filters__field-w {
    position: relative;
    display: block;
}

.gk-filters__input,
.gk-filters__search-input {
    box-sizing: border-box;
    width: 100%;
    height: 3rem;
    padding: 0 2rem 0 0.875rem;
    border: 1px solid var(--gk-color-border-strong);
    border-radius: var(--gk-radius-md);
    background: var(--gk-color-surface);
    color: var(--gk-color-text);
    font: inherit;
    font-size: var(--gk-text-base);
    line-height: 1.5rem;
    transition: border-color 140ms ease;
    appearance: none;
}

.gk-filters__input:focus,
.gk-filters__search-input:focus {
    outline: none;
    border-color: var(--gk-color-brand);
    box-shadow: var(--gk-ring-focus);
}

.gk-filters__input[aria-invalid="true"] {
    border-color: var(--gk-color-danger);
}

.gk-filters__unit {
    position: absolute;
    top: 0;
    right: 0.875rem;
    display: flex;
    align-items: center;
    height: 3rem;
    color: var(--gk-color-text-soft);
    pointer-events: none;
}

/* The brand level. */
.gk-filters__search {
    position: relative;
}

.gk-filters__search-input {
    padding-right: 2.75rem;
}

.gk-filters__search-input::-webkit-search-cancel-button {
    display: none;
}

.gk-filters__search-clear {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    background: transparent;
    color: var(--gk-color-text-soft);
    cursor: pointer;
}

.gk-filters__letter-h {
    margin: var(--gk-space-4) 0 var(--gk-space-1);
    color: var(--gk-color-text);
    font-family: var(--gk-font-body);
    font-size: var(--gk-text-base);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
}

.gk-filters__none {
    margin: var(--gk-space-4) 0 0;
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-sm);
}

/* The bar: what is chosen, Zrušiť všetko, and how many she will see. */
.gk-filters__bar {
    flex: none;
    padding: var(--gk-space-3) var(--gk-space-4) calc(var(--gk-space-3) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--gk-color-border);
    background: var(--gk-color-surface);
}

/* The wrapper holds the bar's column; the tray inside it reaches 4px past it on
   each side for the focus ring, so the first tag starts on the column's edge,
   under the title and Zrušiť všetko. */
.gk-filters__tray-w {
    max-width: 28rem;
    margin: 0 auto;
}

.gk-filters__tray {
    display: flex;
    align-items: center;
    gap: var(--gk-space-2);
    margin: -4px -4px 4px;
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.gk-filters__bar-in {
    display: flex;
    align-items: center;
    gap: var(--gk-space-2);
    max-width: 28rem;
    margin: 0 auto;
}

.gk-filters__clear {
    margin-left: calc(-1 * var(--gk-space-2));
}

.gk-filters__clear[aria-disabled="true"] {
    visibility: hidden;
}

.gk-filters__apply {
    flex: 1 1 auto;
    min-width: 0;
    height: 3rem;
    padding: 0 var(--gk-space-3);
    overflow: hidden;
    border: 0;
    border-radius: var(--gk-radius-md);
    /* The site's primary button, `.gk-button--primary`. */
    background-color: var(--gk-color-brand);
    color: var(--gk-color-on-brand);
    font: inherit;
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.gk-filters__apply[aria-busy="true"] {
    opacity: 0.7;
    cursor: progress;
}

.gk-filters__apply:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

/* ---- The editorial tile ------------------------------------------------ */

/* One place in the grid, after the sixth product: a 4:5 picture, the kicker,
   the headline and the author, as `new-produkty.html`'s .gpl-ed. */
.gk-listing__edit {
    min-width: 0;
}

.gk-listing__ed {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-1);
    height: 100%;
    min-width: 0;
    border-radius: var(--gk-radius-lg);
    color: var(--gk-color-text);
    text-decoration: none;
}

.gk-listing__ed:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

.gk-listing__ed-media {
    display: block;
    aspect-ratio: 4 / 5;
    margin-bottom: var(--gk-space-2);
    overflow: hidden;
    border-radius: var(--gk-radius-lg);
    background: var(--gk-color-surface-alt);
}

.gk-listing__ed-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gk-listing__ed-kicker {
    color: var(--gk-color-text-soft);
    font-size: 0.625rem;
    line-height: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gk-listing__ed-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--gk-color-text);
    font-family: var(--gk-font-body);
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
    text-wrap: balance;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (hover: hover) {
    .gk-listing__ed:hover .gk-listing__ed-title {
        text-decoration: underline;
    }
}

.gk-listing__ed-author {
    margin-top: auto;
    padding-bottom: 2.5px;
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-xs);
    line-height: 1rem;
}
