/* ==========================================================================
   U Jabka — Soda design system: THE CATALOGUE (product list)

   DESIGN SOURCE: design-previews/product-list/soda-catalog.html, the approved
   sibling of the Soda product detail (detail.css). Same face, same tones,
   same render treatment, same motion tempo:

     - one light ground, tinted like the first device on it;
     - the category word huge and light on the left, the filters as plain
       typography on the right, no chrome around either;
     - the results as FIELDS, not cards: touching rectangles of their devices'
       own tones (--soda-tone-*, tokens.css), an irregular 12-column rhythm
       (catalog_field_layout() in partials/catalog-fields.php), the device as an
       object on the field, the model name in the light/medium pair, the price
       big at the bottom, almost nothing else;
     - the device multiplied onto its field (white-backed studio renders lose
       their white), tilted -8deg, floating 6s, flying out and in on a colour
       change exactly as the detail's does (catalog-fields.js).

   STRUCTURE. The DOM keeps every region the live filter (catalog.js), the
   no-JS forms and the filter motion rely on: the workspace, the sidebar, the
   results column and its head. Here those wrappers are `display: contents`
   and their children are laid out on the SECTION's grid, so the filters can
   stand beside the category word while the results run the full width.

   CSP: no inline style anywhere in the template. Tints arrive as data-tone,
   spans as classes; the only CSSOM writes are the filter motion's ghost
   geometry and the view-transition name on the device being followed.

   Loaded by the catalogue only (CatalogController); scoped under
   html.theme-soda like the rest of the system.
   ========================================================================== */

html.theme-soda .plp {
    --plp-ink: #121214;
    --plp-mute: rgba(18, 18, 20, .62);
    --plp-faint: rgba(18, 18, 20, .42);
    --plp-line: rgba(18, 18, 20, .13);
    --plp-ok: #1b7a4b;
    --plp-warn: #9a6408;
    --plp-pad: clamp(16px, 3.06vw, 44px);
    --plp-ease: cubic-bezier(.65, 0, .25, 1);
    --plp-ground: var(--soda-tone-neutral);

    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
    /* Navigation first, full width: which catalogue (cats), which iPhone line
       (models), then the category word with the filters beside it. */
    grid-template-areas:
        'crumb  crumb'
        'cats   cats'
        'models models'
        'title  side'
        'count  side'
        'active sort'
        'grid   grid'
        'empty  empty'
        'guides guides';
    grid-template-rows: auto auto auto auto 1fr auto auto auto auto;
    column-gap: 40px;
    align-items: start;
    /* Runs up under the fixed, transparent header so the tint is one ground
       from the top edge down — the detail's rule. */
    margin-top: calc(-1 * var(--header-band));
    padding: var(--header-band) var(--plp-pad) 0;
    background: var(--plp-ground);
    color: var(--plp-ink);
    font-family: var(--font-main);
    transition: background-color .9s ease;

    /* The shared components read these; on this ground they are ink. */
    --ink: var(--plp-ink);
    --ink-muted: var(--plp-mute);
    --ink-faint: var(--plp-faint);
    --ink-2: var(--plp-mute);
    --ink-3: var(--plp-faint);
    --line: var(--plp-line);
    --line-hi: rgba(18, 18, 20, .3);
    --panel: transparent;
    --field-bg: transparent;
    --focus: var(--plp-ink);
    --accent: var(--plp-ink);
}

html.theme-soda .plp[data-tone='blue']     { --plp-ground: var(--soda-tone-blue); }
html.theme-soda .plp[data-tone='graphite'] { --plp-ground: var(--soda-tone-graphite); }
html.theme-soda .plp[data-tone='lavender'] { --plp-ground: var(--soda-tone-lavender); }
html.theme-soda .plp[data-tone='warm']     { --plp-ground: var(--soda-tone-warm); }
html.theme-soda .plp[data-tone='sage']     { --plp-ground: var(--soda-tone-sage); }
html.theme-soda .plp[data-tone='teal']     { --plp-ground: var(--soda-tone-teal); }
html.theme-soda .plp[data-tone='rose']     { --plp-ground: var(--soda-tone-rose); }
html.theme-soda .plp[data-tone='peach']    { --plp-ground: var(--soda-tone-peach); }
html.theme-soda .plp[data-tone='sand']     { --plp-ground: var(--soda-tone-sand); }

html.theme-soda .plp :focus-visible {
    outline: 2px solid var(--plp-ink);
    outline-offset: 3px;
}

/* The wrappers the live filter needs, dissolved into the section's grid. */
html.theme-soda .plp .soda-catalog__workspace,
html.theme-soda .plp .soda-catalog__sidebar,
html.theme-soda .plp .soda-catalog__results,
html.theme-soda .plp .soda-catalog__results-head,
html.theme-soda .plp .soda-catalog__results-head > div {
    display: contents;
}

/* ------------------------------------------------------------ the head */

html.theme-soda .plp__crumb {
    grid-area: crumb;
    align-self: center;
    padding: 6px 0 0 6px;
}

html.theme-soda .plp .soda-breadcrumb {
    font-size: 13px;
    color: var(--plp-mute);
}

html.theme-soda .plp .soda-breadcrumb a {
    color: var(--plp-mute);
    text-decoration: none;
}

html.theme-soda .plp .soda-breadcrumb a:hover {
    color: var(--plp-ink);
}

html.theme-soda .plp__head {
    grid-area: title;
    align-self: end;
    margin: 44px 0 0;
}

/* "iPhony" — the detail's word, light, as big as the page allows. */
html.theme-soda .plp__word {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(96px, 14.2vw, 215px);
    font-weight: 300;
    line-height: .86;
    letter-spacing: -.055em;
    color: var(--plp-ink);
    overflow-wrap: normal;
}

/* A long category or model name ("Příslušenství", "iPhone 17 Pro Max")
   steps down rather than breaking inside a word — the detail's --long rule. */
html.theme-soda .plp__word--long {
    font-size: clamp(64px, 8.4vw, 132px);
    line-height: .92;
}

html.theme-soda .plp__word b {
    font-weight: 500;
    letter-spacing: -.06em;
}

/* The brand stays in the one <h1>, as a quiet label on the word. */
html.theme-soda .plp__word em {
    margin-left: .6rem;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
    vertical-align: top;
    color: var(--plp-mute);
}

/* "—— 17 produktů v této nabídce" */
html.theme-soda .plp .soda-catalog__count {
    grid-area: count;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0 8px;
    font-size: 13px;
    color: var(--plp-mute);
}

html.theme-soda .plp .soda-catalog__count::before {
    content: '';
    flex: 0 0 46px;
    height: 1px;
    background: var(--plp-ink);
}

html.theme-soda .plp .soda-catalog__count strong {
    margin-right: .3em;
    font-weight: 500;
    color: var(--plp-ink);
}

/* ------------------------------------------ categories: the first row
   Full width under the breadcrumb, above everything that narrows the list:
   the catalogue is chosen first, then the iPhone line, then the filters. Each
   category is a pill with its own picture in a round crop — a picture chosen
   by the shared media resolver is a photograph with its own backdrop, and a
   circle filled edge to edge by `cover` shows it as one, never as a square
   pasted onto the ground. The current category is the Soda near-black. */

html.theme-soda .plp__cats {
    grid-area: cats;
    position: relative;
    min-width: 0;
    max-width: 100%;
    margin-top: 22px;
}

html.theme-soda .plp .soda-catfan__track {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 2px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

html.theme-soda .plp .soda-catfan__track::-webkit-scrollbar {
    display: none;
}

html.theme-soda .plp .soda-catfan__cell {
    flex: none;
    scroll-snap-align: start;
}

html.theme-soda .plp .soda-catfan__card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 7px 22px 7px 7px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .46);
    color: var(--plp-ink);
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease;
}

/* The current family is a link too: its hover must stay dark, or the white
   ink lands on a white wash and the label disappears. */
html.theme-soda .plp a.soda-catfan__card:not(.is-current):hover {
    background: rgba(255, 255, 255, .78);
}

html.theme-soda .plp a.soda-catfan__card.is-current:hover {
    background: #2a2a2e;
}

html.theme-soda .plp .soda-catfan__card.is-current {
    background: var(--plp-ink);
    color: #fff;
}

html.theme-soda .plp .soda-catfan__media {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: var(--r-pill);
    background: rgba(18, 18, 20, .06);
}

html.theme-soda .plp .soda-catfan__card.is-current .soda-catfan__media {
    background: rgba(255, 255, 255, .12);
}

html.theme-soda .plp .soda-catfan__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html.theme-soda .plp .soda-catfan__glyph svg {
    width: 20px;
    height: 20px;
}

html.theme-soda .plp .soda-catfan__label {
    display: grid;
    gap: 1px;
    line-height: 1.2;
}

html.theme-soda .plp .soda-catfan__name {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

html.theme-soda .plp .soda-catfan__note {
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    color: var(--plp-mute);
}

html.theme-soda .plp .soda-catfan__card.is-current .soda-catfan__note {
    color: rgba(255, 255, 255, .62);
}

html.theme-soda .plp .soda-catfan__card--upcoming {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--plp-line);
    color: var(--plp-faint);
}

html.theme-soda .plp .soda-catfan__card--upcoming .soda-catfan__note {
    color: var(--plp-faint);
}

html.theme-soda .plp .soda-catfan__card--upcoming .soda-catfan__media {
    opacity: .5;
}

html.theme-soda .plp .soda-catfan__arrows {
    position: absolute;
    right: 0;
    bottom: 100%;
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

html.theme-soda .plp .soda-catfan__arrows[hidden] {
    display: none;
}

/* ------------------------------------ models: the iPhone line, full width
   The second row, the whole width of the page under the categories: the
   devices stand on the ground as they do on the detail, the current one
   lifted and marked by a dot. */

html.theme-soda .plp__models {
    grid-area: models;
    min-width: 0;
    margin-top: 30px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--plp-line);
}

html.theme-soda .plp__models::before {
    content: 'Řada';
    display: block;
    font-size: 12px;
    color: var(--plp-mute);
}

html.theme-soda .plp .soda-models__track {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin: 0;
    padding: 18px 0 8px;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    touch-action: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

html.theme-soda .plp .soda-models__track::-webkit-scrollbar {
    display: none;
}

html.theme-soda .plp .soda-models__cell {
    flex: none;
    scroll-snap-align: start;
}

/* THE CARD PAINTS THE GROUND ITSELF. The renders are white-backed and are
   multiplied onto the ground. Inside a horizontal scroller a phone browser
   composites the scrolled content on its own layer, and a blend there sees
   only what is painted inside the scroller: with nothing painted the white
   stays white — the white square around each phone on mobile. The card
   carries the page's own ground colour, so it is invisible and the blend
   always has the right backdrop. */
html.theme-soda .plp .soda-model-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 104px;
    padding: 0 0 14px;
    border-radius: var(--r-mark);
    background: var(--plp-ground);
    color: var(--plp-ink);
    text-align: center;
    text-decoration: none;
    transition: background-color .9s ease;
}

html.theme-soda .plp .soda-model-card__media {
    display: grid;
    place-items: end center;
    width: 80px;
    height: 92px;
}

html.theme-soda .plp .soda-model-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    mix-blend-mode: multiply;
    transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}

/* "Všechny modely" stands for the whole family and wears the family
   photograph — a picture with its own backdrop, so it gets the categories'
   round crop instead of the multiply a white-backed render gets. */
html.theme-soda .plp .soda-model-card--all .soda-model-card__media {
    place-items: center;
    width: 72px;
    height: 72px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: var(--r-pill);
}

html.theme-soda .plp .soda-model-card--all .soda-model-card__media img {
    object-fit: cover;
    object-position: center;
    mix-blend-mode: normal;
}

html.theme-soda .plp .soda-model-card--all:hover .soda-model-card__media img,
html.theme-soda .plp .soda-model-card--all.is-current .soda-model-card__media img {
    transform: scale(1.06);
}

html.theme-soda .plp .soda-model-card__device {
    width: 38px;
    height: 52px;
    color: var(--plp-faint);
}

html.theme-soda .plp .soda-model-card:not(.soda-model-card--all):hover .soda-model-card__media img {
    transform: translateY(-6px) rotate(-6deg);
}

html.theme-soda .plp .soda-model-card:not(.soda-model-card--all).is-current .soda-model-card__media img {
    transform: translateY(-12px) rotate(-10deg);
}

html.theme-soda .plp .soda-model-card__foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 13px;
    line-height: 1.25;
}

html.theme-soda .plp .soda-model-card__name {
    font-weight: 400;
    color: var(--plp-mute);
}

html.theme-soda .plp .soda-model-card__count {
    font-size: 12px;
    color: var(--plp-faint);
}

html.theme-soda .plp .soda-model-card:hover .soda-model-card__name {
    color: var(--plp-ink);
}

html.theme-soda .plp .soda-model-card.is-current .soda-model-card__name {
    font-weight: 600;
    color: var(--plp-ink);
}

/* The current model's dot — a shape, present or absent, never a tint. */
html.theme-soda .plp .soda-model-card__mark {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 5px;
    margin-left: -2.5px;
    border-radius: var(--r-pill);
    background: var(--plp-ink);
}

html.theme-soda .plp .soda-model-card.is-current .soda-model-card__mark {
    width: 5px;
}

html.theme-soda .plp .soda-models__head {
    display: flex;
    justify-content: flex-end;
    margin-top: -24px;
}

html.theme-soda .plp .soda-models__arrows {
    display: flex;
    gap: 8px;
    order: 2;
}

html.theme-soda .plp .soda-models__arrows[hidden] {
    display: none;
}

html.theme-soda .plp .soda-models__arrow,
html.theme-soda .plp .soda-catfan__arrow {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .5);
    color: var(--plp-ink);
    font-size: 16px;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

html.theme-soda .plp .soda-models__arrow:hover:not(:disabled),
html.theme-soda .plp .soda-catfan__arrow:hover:not(:disabled) {
    background: var(--plp-ink);
    color: #fff;
}

html.theme-soda .plp .soda-models__arrow:disabled,
html.theme-soda .plp .soda-catfan__arrow:disabled {
    opacity: .3;
    cursor: default;
}

/* ----------------------------------------------------------- the filters
   Soda controls, not browser defaults: a segmented control for Stav, soft
   rounded fields for the selects, chips for the used-kus facets. Every one
   is the native control underneath (radio, select, link), so keyboard,
   screen reader and no-JS behaviour are exactly the browser's own. */

html.theme-soda .plp .soda-catalog__filters {
    grid-area: side;
    align-self: end;
    margin: 44px 0 0;
    padding: 0;
    border: 0;
    border-radius: var(--r-none);
    background: transparent;
}

html.theme-soda .plp .soda-catalog__filters-summary {
    display: none;
}

html.theme-soda .plp .soda-catalog__filters-body {
    display: grid;
    gap: 16px;
}

html.theme-soda .plp .soda-catalog__filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
}

html.theme-soda .plp .soda-catalog__facet {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

html.theme-soda .plp .soda-catalog__facet:first-of-type {
    grid-column: 1 / -1;
}

html.theme-soda .plp .soda-catalog__facet legend {
    padding: 0;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--plp-mute);
}

/* Stav — one segmented control: a soft track, the chosen segment a white
   pill. The radio covers its own segment, so the whole pill is the target. */
html.theme-soda .plp .soda-catalog__state-options {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 3px;
    border-radius: 22px;
    background: rgba(18, 18, 20, .06);
}

html.theme-soda .plp .soda-catalog__state-option {
    position: relative;
    display: inline-flex;
    flex: 1 1 auto;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: var(--r-pill);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    color: var(--plp-mute);
    cursor: pointer;
    transition: color .2s, background-color .2s, box-shadow .2s;
}

html.theme-soda .plp .soda-catalog__state-option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

html.theme-soda .plp .soda-catalog__state-option:hover {
    color: var(--plp-ink);
}

html.theme-soda .plp .soda-catalog__state-option:has(input:checked) {
    background: #fff;
    color: var(--plp-ink);
    box-shadow: 0 1px 2px rgba(18, 18, 20, .08), 0 2px 10px rgba(18, 18, 20, .06);
}

/* Focus follows the pill's own shape: a ring, never a square box. */
html.theme-soda .plp .soda-catalog__state-option:has(input:focus-visible) {
    outline: 2px solid var(--plp-ink);
    outline-offset: 1px;
}

html.theme-soda .plp .soda-catalog__state-option small {
    font-size: 11.5px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    color: var(--plp-faint);
}

/* Barva, kapacita, řazení — a soft rounded field over the native select. The
   chevron is drawn by the wrapper, so the select keeps its native behaviour
   (and its native list). */
html.theme-soda .plp .soda-select-wrap {
    position: relative;
    display: block;
    min-width: 0;
}

html.theme-soda .plp .soda-select-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 17px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--plp-ink);
    border-bottom: 1.5px solid var(--plp-ink);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

html.theme-soda .plp .soda-select {
    width: 100%;
    min-height: 46px;
    padding: 0 42px 0 16px;
    border: 1px solid rgba(18, 18, 20, .08);
    border-radius: 14px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, .56);
    color: var(--plp-ink);
    font-family: var(--font-main);
    font-size: 15px;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}

html.theme-soda .plp .soda-select:hover {
    background: rgba(255, 255, 255, .86);
    border-color: rgba(18, 18, 20, .16);
}

html.theme-soda .plp .soda-select:focus-visible {
    outline: 2px solid var(--plp-ink);
    outline-offset: 2px;
}

html.theme-soda .plp .soda-select option {
    color: #121214;
    background: #fff;
}

html.theme-soda .plp .soda-select:disabled {
    opacity: .45;
    cursor: not-allowed;
}

html.theme-soda .plp .soda-catalog__facet-hint {
    grid-column: 1 / -1;
    margin: -4px 0 0;
    font-size: 12px;
    color: var(--plp-faint);
}

html.theme-soda .plp .soda-catalog__filter-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 22px;
}

html.theme-soda .plp .soda-catalog__filter-submit,
html.theme-soda .plp .soda-catalog__sort-submit {
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--plp-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* With enhancement live, a change applies itself (catalog.js). */
html.theme-soda.js-soda .plp .soda-catalog__filter-submit,
html.theme-soda.js-soda .plp .soda-catalog__sort-submit {
    display: none;
}

html.theme-soda .plp .soda-catalog__clear-all {
    font-size: 13px;
    color: var(--plp-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* The used-kus facets: one quiet disclosure, then chips. */
html.theme-soda .plp .soda-catalog__secondary-facets {
    margin: 0;
}

html.theme-soda .plp .soda-catalog__secondary-facets > summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

html.theme-soda .plp .soda-catalog__secondary-facets > summary::-webkit-details-marker {
    display: none;
}

html.theme-soda .plp .soda-catalog__secondary-facets > summary::before {
    content: '+';
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: var(--r-pill);
    background: var(--plp-ink);
    color: #fff;
    font-size: 14px;
    transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}

html.theme-soda .plp .soda-catalog__secondary-facets[open] > summary::before {
    transform: rotate(45deg);
}

html.theme-soda .plp .soda-catalog__quick-facet {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

html.theme-soda .plp .soda-catalog__quick-facet > span {
    flex: none;
    width: 56px;
    font-size: 12px;
    color: var(--plp-mute);
}

html.theme-soda .plp .soda-catalog__quick-facet .soda-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

html.theme-soda .plp .soda-catalog__quick-facet .soda-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-height: 36px;
    padding: 8px 14px;
    border: 0;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .5);
    color: var(--plp-ink);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

html.theme-soda .plp .soda-catalog__quick-facet .soda-pill:hover {
    background: rgba(255, 255, 255, .86);
}

html.theme-soda .plp .soda-catalog__quick-facet .soda-pill.is-active {
    background: var(--plp-ink);
    color: #fff;
}

html.theme-soda .plp .soda-catalog__quick-facet .soda-pill.is-active .soda-catalog__n {
    color: rgba(255, 255, 255, .62);
}

html.theme-soda .plp .soda-catalog__n {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--plp-mute);
}

html.theme-soda .plp .soda-catalog__note {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 12.5px;
    color: var(--plp-mute);
}

/* ------------------------------------------- sort + active filters row */

html.theme-soda .plp .soda-catalog__sort-form {
    grid-area: sort;
    justify-self: end;
    align-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 40px 0 18px;
}

html.theme-soda .plp .soda-catalog__sort-form > label {
    font-size: 13px;
    color: var(--plp-mute);
}

html.theme-soda .plp .soda-catalog__sort-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
}

/* The sort field is the compact sibling of the filter fields: a pill that
   sizes to its label; it shrinks to the row on a narrow phone, so the no-JS
   "Seřadit" beside it wraps below rather than being clipped. */
html.theme-soda .plp .soda-catalog__sort-control .soda-select-wrap {
    max-width: 100%;
}

html.theme-soda .plp .soda-catalog__sort-control .soda-select {
    width: auto;
    min-width: min(12rem, 100%);
    max-width: 100%;
    min-height: 40px;
    padding-left: 16px;
    border-radius: var(--r-pill);
    font-size: 14px;
    font-weight: 500;
}

html.theme-soda .plp .soda-catalog__active-filters {
    grid-area: active;
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 40px 0 18px;
    font-size: 13px;
}

html.theme-soda .plp .soda-catalog__active-filters > span {
    color: var(--plp-mute);
}

html.theme-soda .plp .soda-catalog__active-filters > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

/* An active filter is a chip that removes itself: label, then a round "×". */
html.theme-soda .plp .soda-catalog__active-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 4px 6px 4px 14px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .62);
    color: var(--plp-ink);
    font-weight: 500;
    text-decoration: none;
    transition: background-color .2s;
}

html.theme-soda .plp .soda-catalog__active-filter > span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: var(--r-pill);
    background: rgba(18, 18, 20, .08);
    font-size: 14px;
    line-height: 1;
    transition: background-color .2s, color .2s;
}

html.theme-soda .plp .soda-catalog__active-filter:hover {
    background: #fff;
}

html.theme-soda .plp .soda-catalog__active-filter:hover > span {
    background: var(--plp-ink);
    color: #fff;
}

html.theme-soda .plp .soda-catalog__active-filters .soda-catalog__clear-all {
    margin-left: 4px;
}

/* ------------------------------------------------------------ the fields */

html.theme-soda .plp-grid {
    grid-area: grid;
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-content: start;
    /* Touching fields; the 2px seam is the page's own light showing through,
       so two fields of the same tone still read as two. */
    gap: 2px;
    margin: 0 calc(-1 * var(--plp-pad));
    background: rgba(255, 255, 255, .55);
}

html.theme-soda .plp-grid:empty {
    background: transparent;
}

html.theme-soda .plp-span-3  { grid-column: span 3; }
html.theme-soda .plp-span-4  { grid-column: span 4; }
html.theme-soda .plp-span-5  { grid-column: span 5; }
html.theme-soda .plp-span-7  { grid-column: span 7; }
html.theme-soda .plp-span-8  { grid-column: span 8; }
html.theme-soda .plp-span-12 { grid-column: span 12; }

html.theme-soda .plp-field {
    --plp-tone: var(--soda-tone-neutral);
    --plp-t: clamp(34px, 2.9vw, 42px);
    --plp-p: clamp(30px, 2.5vw, 38px);
    --plp-ph: 58%;

    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
        'title cond'
        'spec  cond'
        '.     .'
        'buy   act';
    column-gap: 20px;
    min-height: min(66vh, 640px);
    padding: 26px 30px 28px 32px;
    overflow: hidden;
    /* The group the device is multiplied into. */
    isolation: isolate;
    background: var(--plp-tone);
    color: var(--plp-ink);
    transition: background-color .9s ease;
}

html.theme-soda .plp-row-2 { min-height: clamp(560px, 82vh, 860px); }
html.theme-soda .plp-row-1 { min-height: clamp(520px, 76vh, 780px); }

html.theme-soda .plp-field[data-tone='blue']     { --plp-tone: var(--soda-tone-blue); }
html.theme-soda .plp-field[data-tone='graphite'] { --plp-tone: var(--soda-tone-graphite); }
html.theme-soda .plp-field[data-tone='lavender'] { --plp-tone: var(--soda-tone-lavender); }
html.theme-soda .plp-field[data-tone='warm']     { --plp-tone: var(--soda-tone-warm); }
html.theme-soda .plp-field[data-tone='sage']     { --plp-tone: var(--soda-tone-sage); }
html.theme-soda .plp-field[data-tone='teal']     { --plp-tone: var(--soda-tone-teal); }
html.theme-soda .plp-field[data-tone='rose']     { --plp-tone: var(--soda-tone-rose); }
html.theme-soda .plp-field[data-tone='peach']    { --plp-tone: var(--soda-tone-peach); }
html.theme-soda .plp-field[data-tone='sand']     { --plp-tone: var(--soda-tone-sand); }

html.theme-soda .plp-field--m    { --plp-t: clamp(40px, 3.6vw, 54px); --plp-p: clamp(36px, 3vw, 46px); --plp-ph: 60%; }
html.theme-soda .plp-field--xl   { --plp-t: clamp(52px, 5.4vw, 84px); --plp-p: clamp(46px, 4.6vw, 70px); --plp-ph: 72%; }
html.theme-soda .plp-field--wide { --plp-t: clamp(60px, 7vw, 110px); --plp-p: clamp(50px, 5vw, 76px); --plp-ph: 88%; }

/* A SMALL field (3-4 of 12 columns, ~220-480px) never has room for the name
   and the action column side by side, at any viewport: it stacks them —
   name, spec, condition, then price, then the colours and the "+". */
html.theme-soda .plp-field--s {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        'title'
        'spec'
        'cond'
        '.'
        'buy'
        'act';
    grid-template-rows: auto auto auto 1fr auto auto;
    row-gap: 4px;
}

html.theme-soda .plp-field--s .plp-field__cond {
    justify-items: start;
    text-align: left;
    margin-top: 8px;
}

html.theme-soda .plp-field--s .plp-field__act {
    align-items: flex-start;
    margin-top: 14px;
}

html.theme-soda .plp-field--s .plp-field__colors {
    justify-content: flex-start;
}

/* Its device sits in the band between the stacked text and the price. */
html.theme-soda .plp-field--s .plp-field__stage {
    inset: 27% 0 37%;
}

html.theme-soda .plp-field--s {
    --plp-ph: 100%;
}

/* A long product name takes a smaller size on any field. */
html.theme-soda .plp-field--long {
    --plp-t: clamp(30px, 3vw, 48px);
}

/* The live filter's motion (filter-motion.js): [hidden] is the truth; the
   exit ghost stays painted, pinned where it stood, for its 300ms. */
html.theme-soda .plp-field[hidden] {
    display: none;
}

html.theme-soda .plp-field.is-flip-out[hidden] {
    display: grid;
    position: absolute;
    margin: 0;
    pointer-events: none;
}

html.theme-soda .plp-field.is-muted .plp-field__img {
    opacity: .55;
    filter: grayscale(.5);
}

/* The whole field follows to the detail; the title link is the one a
   keyboard or a screen reader uses, the rest are for the pointer. */
html.theme-soda .plp-field__link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* The device — multiplied onto the field, so a white-backed render's white
   becomes the field's tone and a photo keeps its colours. */
html.theme-soda .plp-field__stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Flex, not grid: the device's height is a share (--plp-ph) of this box,
       and a percentage inside a grid track would resolve against content. */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
}

html.theme-soda .plp-field--wide .plp-field__stage {
    left: 40%;
}

html.theme-soda .plp-field__float {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    animation: plp-float 6s ease-in-out infinite;
}

html.theme-soda .plp-field:nth-child(even) .plp-field__float {
    animation-delay: -3s;
}

@keyframes plp-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

html.theme-soda .plp-field__img {
    display: block;
    width: auto;
    height: var(--plp-ph);
    max-width: 92%;
    aspect-ratio: 1;
    object-fit: contain;
    transition: transform .9s var(--plp-ease), opacity .45s;
}

html.theme-soda .plp-field__stage.is-render .plp-field__img {
    transform: rotate(-8deg) scale(.9);
}

html.theme-soda .plp-field:hover .plp-field__stage.is-render .plp-field__img,
html.theme-soda .plp-field:focus-within .plp-field__stage.is-render .plp-field__img {
    transform: rotate(-3deg) scale(.95) translateY(-8px);
}

/* A genuine photograph of a kus is never rotated. */
html.theme-soda .plp-field__stage.is-photo .plp-field__img {
    aspect-ratio: auto;
    border-radius: var(--r-card);
}

html.theme-soda .plp-field:hover .plp-field__stage.is-photo .plp-field__img {
    transform: translateY(-8px);
}

/* Colour change: the detail's fly-out / fly-in (catalog-fields.js). */
html.theme-soda .plp-field__stage.is-render .plp-field__img.is-out {
    transform: translateX(-60vw) rotate(-26deg);
    opacity: 0;
}

html.theme-soda .plp-field__stage.is-render .plp-field__img.is-in {
    transform: translateX(60vw) rotate(34deg);
    opacity: 0;
    transition: none;
}

html.theme-soda .plp-field__shadow {
    position: absolute;
    left: 32%;
    right: 32%;
    bottom: 12%;
    height: 5%;
    border-radius: var(--r-pill);
    background: radial-gradient(closest-side, rgba(18, 18, 20, .16), transparent);
}

html.theme-soda .plp-field__symbol,
html.theme-soda .plp-field__stage .soda-catalog-card__ph {
    width: 28%;
    max-width: 120px;
    color: var(--plp-faint);
}

html.theme-soda .plp-field__stage .soda-catalog-card__ph .ico {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

/* The words on the field. */
html.theme-soda .plp-field__title,
html.theme-soda .plp-field__spec,
html.theme-soda .plp-field__cond,
html.theme-soda .plp-field__buy,
html.theme-soda .plp-field__act {
    position: relative;
    z-index: 3;
}

html.theme-soda .plp-field__title {
    grid-area: title;
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--plp-t);
    font-weight: 300;
    line-height: .92;
    letter-spacing: -.05em;
    pointer-events: none;
}

html.theme-soda .plp-field__title a {
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
}

html.theme-soda .plp-field__title b {
    font-weight: 500;
    letter-spacing: -.06em;
}

html.theme-soda .plp-field__spec {
    grid-area: spec;
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--plp-mute);
    pointer-events: none;
}

html.theme-soda .plp-field__cond {
    grid-area: cond;
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 1px;
    margin: 4px 0 0;
    font-size: 13px;
    text-align: right;
    color: var(--plp-mute);
    pointer-events: none;
}

html.theme-soda .plp-field__cond span:first-child {
    font-weight: 500;
    color: var(--plp-ink);
}

html.theme-soda .plp-field__buy {
    grid-area: buy;
    align-self: end;
    min-width: 0;
    pointer-events: none;
}

html.theme-soda .plp-field__status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--plp-mute);
}

html.theme-soda .plp-field__status::before {
    content: '';
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: var(--r-pill);
    background: var(--plp-faint);
}

html.theme-soda .plp-field__status--in_stock::before { background: var(--plp-ok); }
html.theme-soda .plp-field__status--on_order::before { background: var(--plp-warn); }
html.theme-soda .plp-field__status--choice::before   { background: var(--plp-ink); }

html.theme-soda .plp-field .plp-field__price {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--plp-p);
    font-weight: 400;
    line-height: .95;
    letter-spacing: -.045em;
    white-space: nowrap;
    color: var(--plp-ink);
}

html.theme-soda .plp-field.is-muted .plp-field__price {
    color: var(--plp-faint);
}

html.theme-soda .plp-field__note {
    max-width: 32ch;
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--plp-mute);
}

/* "—— Detail": the preview's tag line, drawn out when the field is entered. */
html.theme-soda .plp-field__go {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--plp-ink);
    text-decoration: none;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity .35s, transform .45s var(--plp-ease);
}

html.theme-soda .plp-field__go::before {
    content: '';
    width: 46px;
    height: 1px;
    background: var(--plp-ink);
    transform: scaleX(.3);
    transform-origin: left;
    transition: transform .6s var(--plp-ease);
}

html.theme-soda .plp-field:hover .plp-field__go,
html.theme-soda .plp-field:focus-within .plp-field__go {
    opacity: 1;
    transform: none;
}

html.theme-soda .plp-field:hover .plp-field__go::before,
html.theme-soda .plp-field:focus-within .plp-field__go::before {
    transform: none;
}

html.theme-soda .plp-field__act {
    grid-area: act;
    align-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* Colour swatches — a small picture of that colour, like the detail's. */
html.theme-soda .plp-field__colors {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

html.theme-soda .plp-swatch {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    border-radius: var(--r-pill);
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(18, 18, 20, .18);
    transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}

html.theme-soda .plp-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* The back of the device, where its colour is. */
    object-position: 24% 58%;
    transform: scale(2.4);
    mix-blend-mode: multiply;
}

html.theme-soda .plp-swatch:hover {
    transform: translateY(-3px);
}

html.theme-soda .plp-swatch.is-current {
    box-shadow: inset 0 0 0 1px rgba(18, 18, 20, .18), 0 0 0 2px var(--plp-tone), 0 0 0 3px var(--plp-ink);
}

html.theme-soda .plp-swatch.is-sold::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 1.5px;
    background: var(--plp-ink);
    transform: rotate(-45deg);
    opacity: .6;
}

html.theme-soda .plp-field__color {
    margin: 0;
    font-size: 12px;
    color: var(--plp-mute);
    white-space: nowrap;
}

/* Do košíku — the detail CTA's white "+" disc, black here, one per field. */
html.theme-soda .plp-field__form {
    margin: 0;
}

html.theme-soda .plp-field__add {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--plp-ink);
    font-family: var(--font-main);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
}

html.theme-soda .plp-field__add-label {
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .3s, transform .45s var(--plp-ease);
}

html.theme-soda .plp-field__add:hover .plp-field__add-label,
html.theme-soda .plp-field__add:focus-visible .plp-field__add-label {
    opacity: 1;
    transform: none;
}

html.theme-soda .plp-field__plus {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-pill);
    background: var(--plp-ink);
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}

html.theme-soda .plp-field__add:hover .plp-field__plus {
    transform: rotate(90deg);
}

html.theme-soda .plp-field__add.is-adding .plp-field__plus {
    animation: plp-adding 1s linear infinite;
}

@keyframes plp-adding {
    to { transform: rotate(360deg); }
}

html.theme-soda .plp-field__choose {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--plp-ink);
    text-decoration: underline;
    text-underline-offset: 5px;
    white-space: nowrap;
}

/* --------------------------------------------------- empty and guides */

html.theme-soda .plp .soda-empty {
    grid-area: empty;
    margin: 20px 0 60px;
    padding: 80px 0;
    border: 0;
    border-top: 1px solid var(--plp-line);
    border-radius: var(--r-none);
    background: transparent;
    text-align: left;
    color: var(--plp-ink);
}

html.theme-soda .plp .soda-empty h3 {
    max-width: 18ch;
    margin: 0 0 14px;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.04em;
}

html.theme-soda .plp .soda-empty p {
    margin: 0 0 22px;
    font-size: 15px;
    color: var(--plp-mute);
}

html.theme-soda .plp .soda-catalog__empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--plp-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

html.theme-soda .plp .soda-catalog__guides {
    grid-area: guides;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 40px;
    padding: 70px 0 80px;
}

html.theme-soda .plp .soda-catalog__guides h2 {
    grid-row: span 2;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(34px, 3.4vw, 52px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.04em;
    max-width: 12ch;
}

html.theme-soda .plp .soda-catalog__guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

html.theme-soda .plp .soda-catalog__guide-grid article {
    padding-top: 14px;
    border-top: 1px solid var(--plp-line);
}

html.theme-soda .plp .soda-catalog__guide-grid h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
}

html.theme-soda .plp .soda-catalog__guides a {
    color: var(--plp-ink);
    text-underline-offset: 4px;
}

html.theme-soda .plp .soda-catalog__guides p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--plp-mute);
}

html.theme-soda .plp .soda-catalog__guides > a {
    grid-column: 2;
    justify-self: start;
    margin-top: 26px;
    font-size: 14px;
    font-weight: 500;
}

/* ------------------------------------------------------ to the detail
   Cross-document view transition: the followed field's device is named
   `pdp-device` (catalog-fields.js), the name the detail gives its own device,
   so the phone carries across. Reduced motion opts out entirely. */

@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }
}

/* ------------------------------------------------------------- tablet */

@media (max-width: 1180px) {
    html.theme-soda .plp {
        grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    }

    /* Here the 5-column field is narrow too: it stacks like the small one. */
    html.theme-soda .plp-field--m {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            'title'
            'spec'
            'cond'
            '.'
            'buy'
            'act';
        grid-template-rows: auto auto auto 1fr auto auto;
        row-gap: 4px;
    }

    html.theme-soda .plp-field--m .plp-field__cond {
        justify-items: start;
        text-align: left;
        margin-top: 8px;
    }

    html.theme-soda .plp-field--m .plp-field__act {
        align-items: flex-start;
        margin-top: 14px;
    }

    html.theme-soda .plp-field--m .plp-field__colors {
        justify-content: flex-start;
    }

    html.theme-soda .plp .soda-catalog__guide-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------------------------------------------- mobile: one column */

@media (max-width: 900px) {
    html.theme-soda .plp {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            'crumb'
            'cats'
            'models'
            'title'
            'count'
            'side'
            'active'
            'sort'
            'grid'
            'empty'
            'guides';
        grid-template-rows: none;
        /* Room for the filter dock at the foot of the screen. */
        padding-bottom: 80px;
    }

    html.theme-soda .plp__word {
        font-size: 29vw;
    }

    html.theme-soda .plp__word--long {
        font-size: 13vw;
    }

    /* On a phone the label takes its own short line, not a line of the
       word's height. */
    html.theme-soda .plp__word em {
        display: block;
        margin: 6px 0 0 4px;
        line-height: 1.2;
    }

    /* The two rows run to the screen edge and scroll under it. */
    html.theme-soda .plp__cats {
        margin: 16px calc(-1 * var(--plp-pad)) 0;
    }

    html.theme-soda .plp .soda-catfan__track {
        gap: 8px;
        padding: 2px var(--plp-pad);
        scroll-padding: 0 var(--plp-pad);
    }

    html.theme-soda .plp .soda-catfan__card {
        min-height: 52px;
        padding: 5px 16px 5px 5px;
        gap: 10px;
    }

    html.theme-soda .plp .soda-catfan__media {
        width: 42px;
        height: 42px;
    }

    html.theme-soda .plp .soda-catfan__name {
        font-size: 15px;
    }

    html.theme-soda .plp__head {
        margin-top: 30px;
    }

    html.theme-soda .plp .soda-catfan__arrows {
        display: none;
    }

    html.theme-soda .plp__models {
        margin: 24px calc(-1 * var(--plp-pad)) 0;
        padding-bottom: 2px;
    }

    html.theme-soda .plp__models::before {
        padding-left: var(--plp-pad);
    }

    html.theme-soda .plp .soda-models__track {
        gap: 4px;
        padding: 16px var(--plp-pad) 8px;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--plp-pad);
    }

    html.theme-soda .plp .soda-model-card {
        width: 92px;
    }

    html.theme-soda .plp .soda-model-card__media {
        width: 72px;
        height: 84px;
    }

    html.theme-soda .plp .soda-models__arrows {
        display: none;
    }

    html.theme-soda .plp .soda-catalog__filters {
        margin-top: 0;
    }

    html.theme-soda .plp .soda-catalog__sort-form {
        justify-self: start;
        margin: 14px 0 18px;
    }

    html.theme-soda .plp .soda-catalog__active-filters {
        margin: 22px 0 0;
    }

    html.theme-soda .plp-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* A PHONE FIELD IS A COLUMN, and the device has its OWN ROW in it.
       On a desktop the device floats behind the words across the whole
       field; at 390px that layer reached up into the name and the spec line
       ("Vyberte kapacitu a barvu v detailu") and sat on top of them. Here the
       stage is an in-flow row between the facts and the price, so the words
       and the device can never overlap, whatever the name's length. */
    html.theme-soda .plp-grid > .plp-field {
        grid-column: 1 / -1;
        min-height: 0;
        height: auto;
        --plp-t: 44px;
        --plp-p: 40px;
        --plp-ph: 100%;
        padding: 22px 18px 20px;
    }

    /* On a phone every field is full width: the small field's stacked
       desktop layout and device band do not apply. */
    html.theme-soda .plp-grid > .plp-field,
    html.theme-soda .plp-grid > .plp-field--s,
    html.theme-soda .plp-grid > .plp-field--m {
        grid-template-columns: minmax(0, 1fr) auto;
        /* The price gets the full width; colours and "+" run beneath it. */
        grid-template-areas:
            'title cond'
            'spec  cond'
            'stage stage'
            'buy   buy'
            'act   act';
        grid-template-rows: auto auto auto auto auto;
        row-gap: 0;
    }

    html.theme-soda .plp-grid > .plp-field .plp-field__stage,
    html.theme-soda .plp-grid > .plp-field--s .plp-field__stage,
    html.theme-soda .plp-grid > .plp-field--m .plp-field__stage,
    html.theme-soda .plp-grid > .plp-field--wide .plp-field__stage {
        grid-area: stage;
        position: relative;
        inset: auto;
        height: min(78vw, 400px);
        margin: 18px 0 14px;
    }

    html.theme-soda .plp-grid > .plp-field--s .plp-field__cond,
    html.theme-soda .plp-grid > .plp-field--m .plp-field__cond {
        justify-items: end;
        text-align: right;
        margin-top: 4px;
    }

    html.theme-soda .plp-grid > .plp-field .plp-field__act,
    html.theme-soda .plp-grid > .plp-field--s .plp-field__act,
    html.theme-soda .plp-grid > .plp-field--m .plp-field__act {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        margin-top: 14px;
    }

    html.theme-soda .plp-grid > .plp-field .plp-field__colors {
        justify-content: flex-start;
    }

    html.theme-soda .plp-grid > .plp-field .plp-field__form,
    html.theme-soda .plp-grid > .plp-field .plp-field__choose {
        margin-left: auto;
    }

    html.theme-soda .plp-grid > .plp-field:nth-child(3n + 2) .plp-field__stage {
        height: min(66vw, 340px);
    }

    html.theme-soda .plp-field__go {
        opacity: 1;
        transform: none;
    }

    html.theme-soda .plp-field__go::before {
        width: 30px;
        transform: none;
    }

    /* Visually hidden, not removed: it is the button's accessible name. */
    html.theme-soda .plp-field__add-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    html.theme-soda .plp .soda-catalog__guides {
        grid-template-columns: 1fr;
        row-gap: 24px;
        padding: 50px 0 40px;
    }

    html.theme-soda .plp .soda-catalog__guides h2 {
        grid-row: auto;
    }

    html.theme-soda .plp .soda-catalog__guide-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    html.theme-soda .plp .soda-catalog__guides > a {
        grid-column: 1;
    }

    /* THE FILTER DOCK AND SHEET. Only once enhancement is live: with
       JavaScript blocked the server-open form simply stays inline.

       The dock is a compact floating pill centred over the list — not a bar
       across the whole screen: "Filtry", and the number of active filters as
       a small white count only when there is one. Translucent near-black
       glass, so the page stays visible around and behind it. */
    html.theme-soda.js-soda .plp .soda-catalog__filters:not([open]) > .soda-catalog__filters-summary {
        position: fixed;
        z-index: 50;
        left: 50%;
        bottom: max(14px, env(safe-area-inset-bottom));
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        padding: 0 22px;
        border-radius: var(--r-pill);
        background: rgba(18, 18, 20, .84);
        -webkit-backdrop-filter: blur(14px) saturate(1.4);
        backdrop-filter: blur(14px) saturate(1.4);
        box-shadow: 0 8px 30px rgba(18, 18, 20, .18);
        color: #fff;
        font-size: 15px;
        font-weight: 500;
        white-space: nowrap;
        list-style: none;
        cursor: pointer;
        transform: translateX(-50%);
    }

    html.theme-soda.js-soda .plp .soda-catalog__filters-summary::-webkit-details-marker {
        display: none;
    }

    /* A small filter glyph before "Filtry": three rules, drawn in CSS. */
    html.theme-soda.js-soda .plp .soda-catalog__filters:not([open]) > .soda-catalog__filters-summary::before {
        content: '';
        width: 16px;
        height: 11px;
        background:
            linear-gradient(currentColor, currentColor) 0 0 / 100% 1.5px no-repeat,
            linear-gradient(currentColor, currentColor) center / 70% 1.5px no-repeat,
            linear-gradient(currentColor, currentColor) bottom / 40% 1.5px no-repeat;
    }

    html.theme-soda.js-soda .plp .soda-catalog__filters:not([open]) .soda-catalog__filters-state {
        display: inline-grid;
        place-items: center;
        min-width: 22px;
        height: 22px;
        padding: 0 8px;
        border-radius: var(--r-pill);
        background: #fff;
        color: var(--plp-ink);
        font-size: 12px;
        font-weight: 600;
    }

    /* Nothing active: the dock says only "Filtry". */
    html.theme-soda.js-soda .plp .soda-catalog__filters[data-active-count='0']:not([open]) .soda-catalog__filters-state {
        display: none;
    }

    html.theme-soda.js-soda .plp .soda-catalog__filters[open] {
        position: fixed;
        z-index: 1001;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 88dvh;
        margin: 0;
        padding: 0 18px max(24px, env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 24px 24px 0 0;
        background: #f5f4f1;
        box-shadow: 0 -10px 40px rgba(18, 18, 20, .14);
        color: var(--plp-ink);
    }

    /* The sheet's head: "Filtry", the active count, a round close. A grab
       handle above it says the sheet can be dismissed. */
    html.theme-soda.js-soda .plp .soda-catalog__filters[open] > .soda-catalog__filters-summary {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 0 -18px;
        padding: 26px 18px 16px;
        background: #f5f4f1;
        font-size: 30px;
        font-weight: 400;
        letter-spacing: -.03em;
        list-style: none;
        cursor: pointer;
    }

    html.theme-soda.js-soda .plp .soda-catalog__filters[open] > .soda-catalog__filters-summary::before {
        content: '';
        position: absolute;
        top: 9px;
        left: 50%;
        width: 36px;
        height: 4px;
        margin-left: -18px;
        border-radius: var(--r-pill);
        background: rgba(18, 18, 20, .16);
    }

    html.theme-soda.js-soda .plp .soda-catalog__filters[open] .soda-catalog__filters-state {
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 0;
        color: var(--plp-mute);
    }

    html.theme-soda.js-soda .plp .soda-catalog__filters[open] > .soda-catalog__filters-summary::after {
        content: '\00d7';
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        margin-left: auto;
        border-radius: var(--r-pill);
        background: rgba(18, 18, 20, .08);
        font-size: 22px;
        font-weight: 300;
        letter-spacing: 0;
        line-height: 1;
    }

    /* The summary is the sheet's close control; its ring hugs the round "×"
       side of the head rather than boxing the whole title. */
    html.theme-soda.js-soda .plp .soda-catalog__filters[open] > .soda-catalog__filters-summary:focus-visible {
        outline: 2px solid var(--plp-ink);
        outline-offset: -4px;
        border-radius: 20px;
    }

    html.theme-soda.js-soda.soda-catalog-filters-open body {
        overflow: hidden;
    }

    /* The sheet must join the page's stacking context while it is open, or
       the section's own z-index would trap it under the body-level backdrop. */
    html.theme-soda.js-soda.soda-catalog-filters-open .soda-section.plp {
        z-index: auto;
    }

    html.theme-soda .soda-catalog__filter-backdrop {
        position: fixed;
        z-index: 1000;
        inset: 0;
        background: rgba(18, 18, 20, .32);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }
}

@media (max-width: 560px) {
    html.theme-soda .plp .soda-catalog__filter-form {
        grid-template-columns: 1fr;
    }

    html.theme-soda .plp .soda-catalog__state-option {
        padding-inline: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.theme-soda .plp-field__float {
        animation: none;
    }

    html.theme-soda .plp-field__img,
    html.theme-soda .plp,
    html.theme-soda .plp-field {
        transition: none;
    }
}
