/* ----------------------------------------------------------------------------
   The product page — `/produkt/<slug>`, CU-869ezffq1.

   `templates/product/detail.html.twig` holds the markup and
   `assets/pages/product-detail.js` the gallery, the pickers and the offer
   redraw. Drawn from `design/prototype-prod-detail/new-product-detail-b.html`,
   whose rules are `npd-*` against the prototype's own token names; these are
   the same rules against base.css's semantic tokens.

   Two translations are worth knowing before comparing numbers with the
   prototype:

   - **The spacing scales differ above 16px.** The prototype's `--gk-space-5/6/7`
     are 24/32/40px; base.css's are 20/24px and there is no 7, so those read
     here as `--gk-space-6`, `--gk-space-8` and `--gk-space-10`.
   - **The prototype is a phone column.** 480px wide until 1248px, then 550px
     between two ad rails. The rails are outside v1, so the column is centred
     alone at both widths.

   The 44px touch minimum appears as `2.75rem` and the heading's 30/40px sizes
   are stated here, for the reasons brand-listing.css gives for the same two.
   ---------------------------------------------------------------------------- */

.gk-product {
    max-width: 30rem;              /* 480px */
    margin-inline: auto;
    padding: var(--gk-space-4) var(--gk-space-4) 4rem;
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-10);
}

@media (min-width: 768px) {
    .gk-product {
        padding-top: var(--gk-space-10);
    }
}

@media (min-width: 1248px) {
    .gk-product {
        max-width: 34.375rem;      /* 550px */
        padding-inline: 0;
    }
}

/* Clear the sticky header when a band link jumps down the page. */
.gk-product__section {
    scroll-margin-top: 4rem;
}

@media (min-width: 768px) {
    .gk-product__section {
        scroll-margin-top: 5rem;
    }
}

.gk-product__caption {
    margin: 0;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-muted);
}

.gk-product__section {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-8);
}

.gk-product__section-title {
    margin: 0;
    font-family: var(--gk-font-body);
    font-size: var(--gk-text-lg);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
    color: var(--gk-color-text);
}

.gk-product__hairline {
    width: 100%;
    height: 1px;
    margin: var(--gk-space-6) 0 0;
    border: 0;
    background: var(--gk-color-border);
}

/* ---- Above the fold ------------------------------------------------------ */

.gk-product__intro {
    display: flex;
    flex-direction: column;
}

/* The trail is `.gk-crumbs` in base.css; the brand row under it brings its own gap. */
.gk-product__intro .gk-crumbs ol {
    margin-bottom: 0;
}

/* The brand on the left, the heart pushed right; the error drops to its own line. */
.gk-product__brand-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gk-space-1) var(--gk-space-3);
    margin-top: var(--gk-space-6);
}

.gk-product__brand {
    margin: 0;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gk-product__brand-link {
    display: inline-block;
    padding: 0.875rem var(--gk-space-1);
    margin: -0.875rem calc(-1 * var(--gk-space-1));
    color: inherit;
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

@media (hover: hover) {
    .gk-product__brand-link:hover {
        color: var(--gk-color-text);
        text-decoration: underline;
    }
}

.gk-product__name {
    margin: var(--gk-space-1) 0 0;
    color: var(--gk-color-text);
    font-family: var(--gk-font-display);
    font-size: 1.875rem;
    font-weight: var(--gk-weight-bold);
    line-height: 2.125rem;
    letter-spacing: -0.012em;
}

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

/* ---- The heart ----------------------------------------------------------- */

/* The heart itself is `.gk-heart` in base.css; beside the brand it is pushed to
   the row's end and its padding handed back to the edge. */
.gk-product__brand-row .gk-heart {
    margin-left: auto;
    margin-right: -6px;
}

.gk-product__heart-error {
    flex: 1 1 100%;
    margin: 0;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-danger);
}

/* ---- Gallery ------------------------------------------------------------- */

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

.gk-product__gallery-track {
    display: flex;
    gap: var(--gk-space-3);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.gk-product__gallery-track::-webkit-scrollbar {
    display: none;
}

.gk-product__slide {
    position: relative;
    flex: 0 0 80%;
    aspect-ratio: 1 / 1;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-lg);
    background: var(--gk-color-surface);
    scroll-snap-align: start;
    cursor: pointer;
    transition: border-color 140ms ease;
}

.gk-product__gallery--one .gk-product__slide {
    flex-basis: 85%;
}

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

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

/* The picture itself, contained, over a blurred copy of it filling the square —
   a feed photograph is rarely square and the letterbox is the photo's own
   colour rather than white. */
.gk-product__slide-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gk-product__slide-fill {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(24px);
    transform: scale(1.12);
    pointer-events: none;
}

.gk-product__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: var(--gk-space-4);
}

.gk-product__dot {
    width: 6px;
    height: 6px;
    border-radius: var(--gk-radius-full);
    background: var(--gk-color-border);
}

.gk-product__dot--active {
    background: var(--gk-color-text);
}

.gk-product__skin {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--gk-space-2);
    margin: var(--gk-space-6) 0 0;
}

.gk-product__skin-label {
    font-size: var(--gk-text-xs);
    font-weight: var(--gk-weight-medium);
    line-height: 1rem;
    color: var(--gk-color-text-muted);
}

.gk-product__skin-value {
    font-weight: var(--gk-weight-medium);
    line-height: 1.5rem;
}

/* ---- The band ------------------------------------------------------------ */

.gk-product__stats {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--gk-space-1) var(--gk-space-4);
    margin-top: var(--gk-space-4);
}

.gk-product__stat {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    justify-items: center;
    align-items: baseline;
    min-height: 2.75rem;
    padding: var(--gk-space-1) var(--gk-space-3);
    border-radius: var(--gk-radius-md);
    color: inherit;
    text-align: center;
    text-decoration: none;
}

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

.gk-product__stat-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 3rem;
    background: var(--gk-color-border);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.gk-product__stat-empty,
.gk-product__stat-empty-sub {
    margin: 0;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-muted);
}

.gk-product__stat-empty-sub {
    color: var(--gk-color-text-soft);
}

.gk-product__stat-price-row {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--gk-space-1);
    height: 1.75rem;
}

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

.gk-product__stat-value {
    font-size: 1.25rem;
    font-weight: var(--gk-weight-semibold);
    line-height: 1.75rem;
    font-variant-numeric: tabular-nums;
}

.gk-product__stat-value--price {
    color: var(--gk-color-brand);
}

.gk-product__stat-pct {
    font-size: var(--gk-text-xs);
    font-weight: var(--gk-weight-semibold);
    line-height: 1rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.gk-product__stat-link {
    display: inline-flex;
    align-items: center;
    height: 1rem;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-brand);
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.gk-product__stat-unavailable {
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
    color: var(--gk-color-text-soft);
}

.gk-product__stat-alt {
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-medium);
    line-height: 1.25rem;
    color: var(--gk-color-brand);
}

/* The band's text actions — "Kde kúpiš" and the rest — carry no underline at
   rest; a hover on their column underlines them. */
@media (hover: hover) {
    a.gk-product__stat:hover .gk-product__stat-alt,
    a.gk-product__stat:hover .gk-product__stat-link {
        text-decoration: underline;
    }
}

/* Exactly one of the two price halves is on the page at a time. */
.gk-product__stat--no-offer {
    display: none;
}

.gk-product__stats--no-offer .gk-product__stat--price {
    display: none;
}

.gk-product__stats--no-offer .gk-product__stat--no-offer {
    display: grid;
}

/* ---- Kde kúpiš ----------------------------------------------------------- */

/* The heading sits 16px closer to the band than a section gap would put it —
   the prototype's own negative margin. */
.gk-product__section--offers {
    margin-top: calc(-1 * var(--gk-space-4));
    gap: var(--gk-space-4);
}

.gk-product__section--offers > .gk-product__section-title {
    margin-bottom: var(--gk-space-4);
}

.gk-product__controls {
    display: flex;
    align-items: center;
    gap: var(--gk-space-3);
}

.gk-product__select,
.gk-product__sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gk-space-2);
    height: 3rem;
    padding: 0 var(--gk-space-3);
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-md);
    background: var(--gk-color-surface);
    color: var(--gk-color-text);
    font: inherit;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
    cursor: pointer;
    transition: border-color 140ms ease;
}

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

.gk-product__sort {
    flex: 0 0 auto;
}

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

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

.gk-product__select svg,
.gk-product__sort svg {
    flex: none;
    color: var(--gk-color-text-muted);
}

.gk-product__select-verb {
    display: inline-flex;
    align-items: flex-start;
    gap: var(--gk-space-1);
    min-width: 0;
    white-space: nowrap;
}

.gk-product__select-value {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The red dot beside a control she has changed from its default. */
.gk-product__dot-mark {
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: 3px;
    border-radius: var(--gk-radius-full);
    background: var(--gk-color-brand);
}

.gk-product__dot-mark--off {
    visibility: hidden;
}

/* Takes the room the picker would, so "Zoradiť" still sits at the right edge. */
.gk-product__size-single {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: var(--gk-space-1);
    min-width: 0;
    height: 3rem;
    margin: 0;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
}

.gk-product__size-single-hint {
    margin-left: var(--gk-space-1);
    overflow: hidden;
    font-size: var(--gk-text-xs);
    font-weight: var(--gk-weight-normal);
    line-height: 1rem;
    color: var(--gk-color-text-muted);
    white-space: nowrap;
}

.gk-product__retailers {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-4);
}

.gk-product__retailer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--gk-space-3);
    padding: var(--gk-space-3);
    border-radius: var(--gk-radius-lg);
    background: var(--gk-color-surface);
    box-shadow: var(--gk-shadow-card);
}

.gk-product__retailer-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gk-product__retailer-heading {
    margin: 0;
    font: inherit;
}

.gk-product__retailer-logo {
    display: block;
    width: 5rem;
    height: 1.5rem;
    object-fit: contain;
    object-position: left center;
}

.gk-product__retailer-name {
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
    color: var(--gk-color-text);
}

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

.gk-product__retailer-size--on {
    color: var(--gk-color-text);
    font-weight: var(--gk-weight-semibold);
}

/* The whole right-hand column is the one link: price, both markers and Do
   obchodu inside a single anchor that fills the card top to bottom. */
.gk-product__retailer-out {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-3);
    align-items: flex-end;
    justify-content: space-between;
    min-width: 5.125rem;
    color: inherit;
    text-decoration: none;
    border-radius: var(--gk-radius-md);
}

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

.gk-product__offer-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--gk-space-1);
}

.gk-product__offer-price {
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Both marker lines always hold their height, so the payable price sits at the
   same height on every card and a size change that turns a discount on or off
   moves nothing below it. Empty, they are only made invisible. */
.gk-product__offer-mark {
    display: block;
    min-height: 1rem;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.gk-product__offer-mark[data-empty] {
    visibility: hidden;
}

.gk-product__offer-mark--old {
    text-decoration: line-through;
}

.gk-product__offer-mark--pct {
    color: var(--gk-color-text);
    font-weight: var(--gk-weight-semibold);
}

.gk-product__cta {
    display: inline-flex;
    align-items: center;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
    color: var(--gk-color-brand);
}

@media (hover: hover) {
    .gk-product__retailer-out:hover .gk-product__cta {
        text-decoration: underline;
    }
}

/* ---- O produkte ---------------------------------------------------------- */

.gk-product__accordion {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--gk-color-border);
}

.gk-product__row {
    border-bottom: 1px solid var(--gk-color-border);
}

.gk-product__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gk-space-3);
    min-height: 3.5rem;
    padding: var(--gk-space-4) 0;
    list-style: none;
    cursor: pointer;
}

.gk-product__summary::-webkit-details-marker {
    display: none;
}

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

.gk-product__summary-label {
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
}

@media (hover: hover) {
    .gk-product__summary:hover .gk-product__summary-label {
        text-decoration: underline;
    }
}

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

.gk-product__row[open] .gk-product__summary svg {
    transform: rotate(180deg);
}

.gk-product__row-content {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-3);
    padding: var(--gk-space-2) 0 var(--gk-space-4);
}

.gk-product__text {
    margin: 0;
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
}

/* Three lines of the first paragraph, the rest behind Zobraziť celý popis. */
.gk-product__text--lead {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.gk-product__text--rest {
    display: none;
}

.is-expanded > .gk-product__text--lead {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.is-expanded > .gk-product__text--rest {
    display: block;
}

.gk-product__textlink {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gk-color-text);
    font: inherit;
    font-size: var(--gk-text-xs);
    text-decoration: none;
    text-underline-offset: 2px;
    cursor: pointer;
}

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

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

/* ---- Zloženie a alergény ------------------------------------------------ */

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

/* The allergen box and the two "zatiaľ nemáme" lines. */
.gk-product__text--small {
    font-size: var(--gk-text-xs);
    line-height: 1rem;
}

/* Zobraziť celé zloženie: the page's text link, its underline there at rest. */
.gk-product__textlink--link {
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
    text-decoration: underline;
    text-decoration-color: var(--gk-color-border);
}

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

/* Her answer, not an invitation: the primary ink. */
.gk-product__intro-line.gk-product__intro-line--answer {
    color: var(--gk-color-text);
}

.gk-product__allergens {
    display: flex;
    gap: var(--gk-space-3);
    align-items: flex-start;
    padding: var(--gk-space-3) var(--gk-space-4);
    border-radius: var(--gk-radius-lg);
    background: var(--gk-color-surface-warning);
}

.gk-product__allergens svg {
    flex: none;
    margin-top: 2px;
    color: var(--gk-color-warning);
}

.gk-product__allergens-body {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-1);
}

.gk-product__row-content > .gk-product__intro-line {
    margin: 0;
}

.gk-product__ingredients {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gk-product__ingredient {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 3.5rem;
    padding: var(--gk-space-2) 0;
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
}

.gk-product__ingredient + .gk-product__ingredient {
    border-top: 1px solid var(--gk-color-border);
}

.gk-product__ingredients:not(.is-expanded) .gk-product__ingredient--more {
    display: none;
}

.gk-product__ingredient-hit {
    display: flex;
    align-items: center;
    gap: var(--gk-space-1);
    font-size: var(--gk-text-xs);
    font-weight: var(--gk-weight-semibold);
    line-height: 1rem;
    color: var(--gk-color-warning);
}

.gk-product__details {
    margin: 0;
}

.gk-product__detail {
    display: flex;
    justify-content: space-between;
    gap: var(--gk-space-3);
    padding: var(--gk-space-2) 0;
    border-bottom: 1px solid var(--gk-color-border);
    font-size: var(--gk-text-xs);
    line-height: 1rem;
}

.gk-product__detail:last-child {
    border-bottom: 0;
}

.gk-product__detail dt {
    color: var(--gk-color-text-muted);
}

.gk-product__detail dd {
    margin: 0;
    font-weight: var(--gk-weight-semibold);
    text-align: right;
}

/* ---- Čo hovorí komunita -------------------------------------------------- */

.gk-product__rating-summary {
    display: flex;
    align-items: stretch;
    gap: var(--gk-space-6);
}

/* Centred on the column beside it — the five distribution rows are taller than
   the average, and the average sits on their middle, as the prototype has it. */
.gk-product__rating-average {
    display: flex;
    flex: none;
    align-self: center;
    align-items: baseline;
    gap: var(--gk-space-2);
    text-align: center;
}

.gk-product__rating-average .gk-product__caption {
    max-width: 4.5rem;
    margin-top: var(--gk-space-1);
    text-wrap: balance;
}

/* "1730 recenzií" stays one line: the number and its noun are one reading.
   The narrow, balanced caption above is for the empty state's sentence. */
.gk-product__rating-average .gk-product__rating-count {
    max-width: none;
    text-wrap: nowrap;
}

.gk-product__rating-value {
    margin: 0;
    font-size: 2.8125rem;
    font-weight: var(--gk-weight-semibold);
    line-height: 2.8125rem;
    color: var(--gk-color-text-muted);
}

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

/* ---- Podobné produkty ---------------------------------------------------- */

.gk-product__section--rail {
    gap: 0;
}

.gk-product__intro-line {
    margin: var(--gk-space-2) 0 0;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-soft);
}

.gk-product__intro-cta {
    display: inline-block;
    padding: 0.875rem var(--gk-space-1);
    margin: -0.875rem calc(-1 * var(--gk-space-1));
    color: var(--gk-color-brand);
    font-weight: var(--gk-weight-semibold);
    text-decoration: none;
}

@media (hover: hover) {
    .gk-product__intro-cta:hover {
        text-decoration: underline;
    }
}

.gk-product__intro-cta:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
    border-radius: var(--gk-radius-sm);
}

/* Bleeds to the screen edge on a phone, so a card cut off at the right says
   there is more; held to the column from 768px up. */
.gk-product__rail {
    display: flex;
    gap: var(--gk-space-4);
    margin: var(--gk-space-6) calc(-1 * var(--gk-space-4)) 0;
    padding: 0 var(--gk-space-4) var(--gk-space-1);
    overflow-x: auto;
    scrollbar-width: none;
}

.gk-product__rail::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .gk-product__rail {
        margin-inline: 0;
        padding-inline: 0;
    }
}

/* ---- Zoom ---------------------------------------------------------------- */

/* A native <dialog> opened with showModal(), as the pickers are (base.css). */
.gk-product__zoom {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.gk-product__zoom[open] {
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* The one colour here that is not a token: the dim behind a photograph is
   black at 85%, as the prototype draws it, and nothing else on the site is. */
.gk-product__zoom::backdrop {
    background: rgb(0 0 0 / 0.85);
}

.gk-product__zoom-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: var(--gk-radius-full);
    background: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.gk-product__zoom-close {
    position: absolute;
    top: var(--gk-space-4);
    right: var(--gk-space-4);
    z-index: 2;
    color: var(--gk-color-on-brand);
}

.gk-product__zoom-close:focus-visible,
.gk-product__zoom-thumb:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

.gk-product__zoom-body {
    /* Sideways is the swipe between pictures (product-detail.js); pinch stays the browser's. */
    touch-action: pan-y pinch-zoom;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: var(--gk-space-6);
}

.gk-product__zoom-photo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Desktop only: a phone steps through the thumbnails under the photo. */
.gk-product__zoom-arrow {
    display: none;
}

@media (min-width: 768px) {
    /* Room either side so the arrows never sit on the photograph. */
    .gk-product__zoom-body {
        position: relative;
        padding-inline: calc(2 * var(--gk-space-4) + 2.75rem);
    }

    .gk-product__zoom-arrow:not([hidden]) {
        position: absolute;
        top: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        border: 0;
        border-radius: var(--gk-radius-full);
        background: none;
        color: var(--gk-color-on-brand);
        cursor: pointer;
        transform: translateY(-50%);
    }

    .gk-product__zoom-arrow--previous {
        left: var(--gk-space-4);
    }

    .gk-product__zoom-arrow--next {
        right: var(--gk-space-4);
    }

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

.gk-product__zoom-thumbs {
    display: flex;
    justify-content: center;
    gap: var(--gk-space-2);
    margin-bottom: var(--gk-space-6);
    padding: 0 var(--gk-space-4);
    overflow-x: auto;
    scrollbar-width: none;
}

.gk-product__zoom-thumb {
    flex: 0 0 auto;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-md);
    background: none;
    opacity: 0.6;
    cursor: pointer;
}

.gk-product__zoom-thumb[aria-current="true"] {
    border: 2px solid var(--gk-color-on-brand);
    opacity: 1;
}

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

/* ---- The band's rating half, once there are reviews ---------------------- */

.gk-product__stat-star-row {
    display: inline-flex;
    align-items: center;
    gap: var(--gk-space-1);
    height: 1.75rem;
}

.gk-product__stat-count {
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-soft);
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* The whole rating column is the link: at rest nothing is underlined, and a
   hover anywhere on it underlines "1730 recenzií". */
@media (hover: hover) {
    a.gk-product__stat:hover .gk-product__stat-count {
        text-decoration: underline;
    }
}

.gk-product__stat-link--strong {
    font-weight: var(--gk-weight-semibold);
    text-decoration: none;
}

/* The empty rating column is a button signed in and a link signed out; both
   read as the column, not as a control. */
button.gk-product__stat {
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

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

@media (hover: hover) {
    .gk-product__stat--empty:hover .gk-product__stat-link {
        text-decoration: underline;
    }
}

/* ---- Čo hovorí komunita, with reviews ------------------------------------ */

.gk-review-block__write {
    display: inline-flex;
    flex: none;
    align-items: center;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gk-color-brand);
    font: inherit;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

@media (hover: hover) {
    .gk-review-block__write:hover {
        text-decoration: underline;
    }
}

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

.gk-product__rating-value--set {
    color: var(--gk-color-text);
}

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

.gk-review-block__dist-row {
    display: flex;
    align-items: center;
    gap: var(--gk-space-2);
}

.gk-review-block__dist-label {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 2px;
    width: 1.5rem;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-muted);
    font-variant-numeric: tabular-nums;
}

.gk-review-block__dist-track {
    flex: 1;
    height: 8px;
    overflow: hidden;
    border-radius: var(--gk-radius-full);
    background: var(--gk-color-border);
}

.gk-review-block__dist-fill {
    display: block;
    min-width: 8px;
    height: 100%;
    border-radius: var(--gk-radius-full);
    background: var(--gk-color-rating);
}

.gk-review-block__dist-fill--zero {
    min-width: 0;
}

.gk-review-block__dist-count {
    flex: none;
    min-width: 3rem;
    font-size: 0.625rem;
    line-height: 1rem;
    color: var(--gk-color-text-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.gk-review-block__rule {
    margin-top: calc(-1 * var(--gk-space-2));
}

.gk-review-block__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gk-space-4);
    margin-top: calc(-1 * var(--gk-space-4));
}

.gk-review-block__sort {
    display: inline-flex;
    align-items: center;
    gap: var(--gk-space-2);
    min-height: 2.75rem;
    padding: var(--gk-space-3) 0;
    border: 0;
    border-radius: var(--gk-radius-md);
    background: none;
    color: var(--gk-color-text);
    font: inherit;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    cursor: pointer;
}

@media (hover: hover) {
    .gk-review-block__sort:hover {
        text-decoration: underline;
    }
}

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

.gk-review-block__list {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-4);
    margin-top: calc(-1 * var(--gk-space-4));
}

.gk-review-block__more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3rem;
    margin-top: calc(-1 * var(--gk-space-2));
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-md);
    background: var(--gk-color-surface);
    color: var(--gk-color-text);
    font: inherit;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    cursor: pointer;
    transition: border-color 140ms ease;
}

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

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

/* ---- One review ---------------------------------------------------------- */

.gk-review {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-3);
    padding: var(--gk-space-4);
    border-radius: var(--gk-radius-lg);
    background: var(--gk-color-surface);
    box-shadow: var(--gk-shadow-md);
    scroll-margin-top: 4rem;
    transition: background-color 600ms ease;
}

/* The flash her own review gets when it lands in the list, for as long as the
   "je zverejnená" line shows. */
.gk-review--flash {
    background: var(--gk-color-selected);
}

.gk-review__mine {
    margin: 0;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-soft);
}

/* For 2400 ms after she publishes: the completed mark and "Tvoja recenzia je
   zverejnená.", then back to the plain "Tvoja recenzia". */
.gk-review__mine--done {
    color: var(--gk-color-success);
    font-weight: var(--gk-weight-semibold);
}

.gk-review__mine--done::before {
    content: '✓ ';
}

.gk-review__head {
    display: flex;
    align-items: center;
    gap: var(--gk-space-3);
}

.gk-review__avatar {
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--gk-radius-full);
    object-fit: cover;
}

.gk-review__avatar--initial {
    display: grid;
    place-items: center;
    background: var(--gk-color-avatar);
    color: var(--gk-color-on-brand);
    font-weight: var(--gk-weight-semibold);
}

.gk-review__who {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.gk-review__name {
    display: flex;
    align-items: baseline;
    min-width: 0;
    margin: 0;
}

/* The nickname gives way first: it truncates, the country does not. */
.gk-review__nick {
    min-width: 0;
    overflow: hidden;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-review__country {
    flex: none;
    margin-left: var(--gk-space-1);
    font-size: var(--gk-text-xs);
    font-weight: var(--gk-weight-normal);
    line-height: 1rem;
    color: var(--gk-color-text-muted);
    white-space: nowrap;
}

/* Wraps inside the card; the separator belongs to the item before it, so a
   wrapped line ends on its dot rather than starting with one. */
.gk-review__meta {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-muted);
}

.gk-review__meta-item {
    white-space: nowrap;
}

.gk-review__meta-item:has(+ .gk-review__meta-item)::after {
    content: "·";
    margin: 0 6px;
    color: var(--gk-color-text-muted);
    font-weight: var(--gk-weight-normal);
}

.gk-review__shade {
    margin: 0;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-muted);
}

.gk-review__shade-name {
    color: var(--gk-color-text);
    font-weight: var(--gk-weight-semibold);
}

/* The panel in the closing rail after the last product matched to her. */
.gk-product__rail-end {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: 9.25rem;
    aspect-ratio: 2 / 3;
    padding: var(--gk-space-3);
    border-radius: var(--gk-radius-lg);
    background: var(--gk-color-surface-alt);
}

.gk-product__rail-end-text {
    margin: 0;
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
    text-wrap: balance;
}

.gk-review__meta-item--attr {
    color: var(--gk-color-text);
    font-weight: var(--gk-weight-semibold);
}

/* "26 – 30 rokov": the band in the line's ink and weight, the unit muted 400. */
.gk-review__meta-unit {
    font-weight: var(--gk-weight-normal);
    color: var(--gk-color-text-muted);
}

.gk-review__sub {
    display: flex;
    align-items: flex-start;
    gap: var(--gk-space-2);
}

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

.gk-review__nw {
    white-space: nowrap;
}

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

.gk-review__points {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-1);
}

.gk-review__point {
    display: flex;
    align-items: flex-start;
    gap: var(--gk-space-2);
    margin: 0;
}

.gk-review__mark {
    flex: 0 0 1.25rem;
}

.gk-review__mark--plus::before {
    content: "+";
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
    color: var(--gk-color-success);
}

.gk-review__mark--minus::before {
    content: "\2212";
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
    color: var(--gk-color-danger);
}

.gk-review__point-text {
    display: -webkit-box;
    flex: 1 1 auto;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-width: 0;
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
}

.gk-review__body {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
    white-space: pre-line;
}

.gk-review__body.is-expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.gk-review__more {
    min-height: 2.75rem;
    margin: calc(-1 * var(--gk-space-3)) 0;
    font-weight: var(--gk-weight-semibold);
}

/* "Čítať ďalej" and the "Preložené" line share one row, as `.npd-review-controls`
   does in the design: the first sits left, the second right. Either half may be
   absent — an untranslated review, or a body short enough not to clamp — and the
   row collapses to whichever is there. */
.gk-review__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gk-space-4);
}

.gk-review__controls > .gk-review__more[hidden] {
    display: none;
}

.gk-review__origin {
    margin: 0;
    margin-inline-start: auto;
}

/* The tap target is padding rather than height, so a 44px target does not push
   the row taller than the line it sits on. */
.gk-review__origin-link {
    display: inline-block;
    padding: var(--gk-space-3) var(--gk-space-1);
    margin: calc(-1 * var(--gk-space-3)) calc(-1 * var(--gk-space-1));
    border: 0;
    background: none;
    color: var(--gk-color-text);
    font: inherit;
    text-decoration: none;
    text-underline-offset: 2px;
    cursor: pointer;
}

@media (hover: hover) {
    .gk-review__origin-link:hover {
        text-decoration: underline;
    }
}

.gk-review__actions {
    display: flex;
    gap: var(--gk-space-4);
}

/* Her own card: the likes on the left, Upraviť · Zmazať on the right. */
.gk-review-own {
    align-items: center;
    min-height: 2rem;
}

.gk-review__like {
    display: inline-flex;
    align-items: center;
    gap: var(--gk-space-1);
    min-width: 2.75rem;
    min-height: 2.75rem;
    margin: -14px -6px;
    padding: 0 6px;
    border: 0;
    border-radius: var(--gk-radius-md);
    background: transparent;
    color: var(--gk-color-text-muted);
    font: inherit;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    text-decoration: none;
    cursor: pointer;
}

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

@media (hover: hover) {
    .gk-review__like:hover .gk-review__like-count {
        text-decoration: underline;
    }
}

.gk-review__like-icon {
    position: relative;
    flex: none;
    width: 14px;
    height: 14px;
}

.gk-review__like-icon svg {
    position: absolute;
    inset: 0;
    width: 14px;
    height: 14px;
}

.gk-review__like-filled {
    display: none;
    color: var(--gk-color-brand);
}

.gk-review__like[aria-pressed="true"] .gk-review__like-outline {
    display: none;
}

.gk-review__like[aria-pressed="true"] .gk-review__like-filled {
    display: block;
}

.gk-review__like-count {
    display: inline-block;
    min-width: 1ch;
    font-variant-numeric: tabular-nums;
}

.gk-review__like[aria-pressed="true"] .gk-review__like-count {
    color: var(--gk-color-text);
    font-weight: var(--gk-weight-semibold);
}

.gk-review__like-error {
    margin: 0;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-danger);
}

/* ---- Long copy never widens the column -----------------------------------
   A product name, a shade, a retailer or a reviewer can be one long word
   ("Hydro-Boost-Water-Gel-Cream-Extra-…") or simply longer than the design's
   demo. Every flex and grid child that holds such text may shrink below its
   content (`min-width: 0`), and the text itself breaks where it must rather
   than pushing the page wider than the screen. */
.gk-product > *,
.gk-product__intro > *,
.gk-product__retailer-left,
.gk-product__select-value,
.gk-review__who {
    min-width: 0;
}

.gk-product__name,
.gk-product__retailer-name,
.gk-product__text,
.gk-review__title,
.gk-review__body,
.gk-review__point-text,
.gk-product__rail-end-text {
    overflow-wrap: anywhere;
}

.gk-product__name {
    hyphens: auto;
}
