/* styles.css — shared layout/elements/components foundation.
   Currently loaded only by /produkty (src/templates/page_products_catalog.php and its
   components), NOT sitewide — see plan for the future sitewide migration. Every rule here
   is written generically (no /produkty-specific assumptions) so it can be "lifted" as-is
   into that future shared layer without rewriting anything.

   Each section below is a verified-used subset copied from assets/css/common.css — not a
   full copy. If something looks missing, it's because this page genuinely doesn't use it,
   not an oversight. (No scroll-reveal animation here on purpose — not used going forward.) */

:root {
    --bg-body: #f8f4ee;
    --bg-card: #ffffff;
    --text-dark: #000000;
    --text-light: #636e72;
    --danger: #e0848f;
    --success: #00b894;
    --radius-card: 8px;
    --radius-btn: 50px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.2);
    --font-main: 'Quicksand', sans-serif;
    --max-width: 1400px;
    --header-height: 70px;

    --btn-green: #73b7ab;
    --btn-green-hover: #5fa095;
    --btn-green-text: #ffffff;

    --btn-white: #ffffff;
    --btn-white-hover: #f9f9f9;
    --btn-white-text: #2d3436;

    --btn-apricot: var(--clr-apricot);
    --btn-apricot-hover: #fab1a0;
    --btn-apricot-text: #ffffff;

    --clr-green: #73b7ab;
    --clr-apricot: #f5b6a3;
    --clr-blue: #80cacd;
    --clr-purple: #bdabc4;
    --clr-beige: #f8f4ee;
    --clr-beige-hover: #e0d8c8;

    --clr-strawberry-pink: #e0848f;
    --clr-beach-sand: #eeba9b;
    --clr-buzzing-bees: #f3ee9c;
    --clr-paradise-green: #bcd5a3;
    --clr-aruba-blue: #96cacb;
    --clr-baltic-sea: #87b4d4;
    --clr-scented-levander: #c9b6d4;
    --clr-flushing-pink: #f1cddb;
}

/* --- Reset & Global --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

html,
body {
    position: relative;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    body {
        padding: 0;
        background-color: var(--bg-card);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Hide number input spinners globally */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- App Card Container --- */
.app-card {
    background-color: var(--bg-card);
    width: 100%;
    max-width: var(--max-width);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: clip;
}

@media (max-width: 768px) {
    .app-card {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Shared page-section wrapper — vertical spacing only (every section puts its own .container
   inside for horizontal padding/width, so this never doubles up with it). Use on every
   <section> on the new-architecture pages (homepage, /kontakt, /odbornici, …) instead of a
   one-off class per section with its own slightly different padding number. */
.section {
    padding: 2rem 0;
}

.section--beige {
    background-color: var(--clr-beige);
}

@media (max-width: 768px) {
    .section {
        padding: 1rem 0;
    }
}

/* --- Typography --- */
.section-title {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 2rem;
    position: relative;
    padding-left: 2rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .section-title {
        text-align: center;
        padding-left: 0;
        font-size: 1.8rem;
    }
}

/* --- Component: breadcrumb (home icon + crumbs) ---
   Promoted out of product-catalog.css — shared by /produkty, /kontakt, /odbornici, /recenze
   and the product detail page (components/breadcrumb.php renders this on every page except
   product detail, which still inlines it inside its gallery column layout). The vertical
   offset from the page top lives on the wrapping .breadcrumb-bar, not here, so a caller that
   doesn't use the wrapper (product_detail.php) isn't affected by it. */
.breadcrumb-bar {
    margin-top: 1rem;
}

.catalog-breadcrumb {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    color: #777;
}

.catalog-breadcrumb a {
    color: #777;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.catalog-breadcrumb a:hover {
    color: var(--clr-green, #73b7ab);
}

.catalog-breadcrumb .crumb-arrow {
    width: 14px;
    height: 14px;
    color: #ccc;
    flex-shrink: 0;
}

.catalog-breadcrumb .crumb-home svg {
    display: block;
    width: 17px;
    height: 17px;
}

/* Last crumb, current page — plain text, no link. */
.catalog-breadcrumb .crumb-current {
    color: var(--text-dark, #333);
    font-weight: 600;
}

/* Multi-line editable heading (one \n-separated line per <span>) — both lines text-dark,
   differentiated by weight: first line 900 and larger (the "hook"), every line after it 500
   and smaller. render_heading_lines() in helpers.php. Shared across every page that uses it
   (homepage sections + /kontakt), not homepage-only, so it lives here rather than in
   home.css. */
.heading-lines {
    display: flex;
    flex-direction: column;
    margin: 0 0 0.75rem;
}

.heading-line {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-dark);
}

/* Name is a holdover from when this line was green — it's now just "the bolder/bigger first
   line", same color as the second line, differentiated by weight (900 vs 500) instead. */
.heading-line--green {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
}

/* Centered variant — same heading-lines/heading-line sizing/colors, just centered instead of
   the left-aligned default. */
.heading-lines--center {
    align-items: center;
    text-align: center;
    margin: 0 auto 1.5rem;
}

@media (max-width: 900px) {
    .heading-lines {
        align-items: center;
    }
}

@media (max-width: 768px) {
    /* .heading-line--green must come after the base .heading-line rule — equal specificity
       means source order decides which wins on an element carrying both classes, and with
       these reversed the green (main) line was actually rendering at the smaller size instead
       of bigger than the secondary line. */
    .heading-line {
        font-size: 1.15rem;
    }

    .heading-line--green {
        font-size: 1.6rem;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--btn-green);
    color: var(--btn-green-text);
}

.btn-primary:hover {
    background-color: var(--btn-green-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: var(--btn-white);
    color: var(--btn-white-text);
}

.btn-secondary:hover {
    background-color: var(--btn-white-hover);
    transform: translateY(-2px);
}

.btn-tertiary {
    background-color: var(--btn-apricot);
    color: var(--btn-apricot-text);
}

.btn-tertiary:hover {
    background-color: var(--btn-apricot-hover);
    transform: translateY(-2px);
}

/* --- Toast Notification --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background-color: #fff;
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    display: flex;
    align-items: center;
    border-left: 5px solid var(--success);
    min-width: 250px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.error {
    border-left-color: var(--danger);
}

/* --- Product Cards (Shared, "full" variant — ProductCardRenderer::renderFull) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    justify-items: center;
    margin: 0 auto;
    max-width: 1200px;
}

.product-card {
    background: var(--clr-beige);
    border-radius: 16px;
    border: 2px solid var(--clr-beige);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 350px;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card-top {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: white;
    border-radius: 14px 14px 0 0;
    flex-shrink: 0;
}

.product-img-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.product-card-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-top img {
    transform: scale(1.05);
}

/* Label 1: horizontal ribbon from the right edge */
.label-ribbon-right {
    position: absolute;
    top: 20px;
    right: -8px;
    background: var(--clr-purple);
    color: white;
    padding: 6px 15px 6px 15px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.label-ribbon-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 15px;
    height: 100%;
    background: var(--clr-purple);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 15px 50%);
}

.label-ribbon-right::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    border-top: 8px solid #97889c;
    border-right: 8px solid transparent;
}

/* Label 2: pill exactly above the image/content boundary */
.label-pill-center {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translate(-50%, 50%);
    background: var(--clr-purple);
    color: white;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.ribbon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.ribbon {
    position: absolute;
    top: 30px;
    left: -60px;
    width: 240px;
    background: var(--clr-strawberry-pink);
    color: white;
    text-align: center;
    transform: rotate(-45deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.1;
}

/* Label 3 — the only thing the ribbon shows now; discount info moved to the price pill. */
.ribbon-label3 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile-only compact pills for label_1/2/3, shown above the rating instead of the
   desktop ribbon/pill overlays on the image (see the mobile media query below, which
   hides those overlays and shows this instead). */
.product-card-labels-mobile {
    display: none;
}

.card-label-pill {
    display: inline-block;
    background: var(--clr-purple);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 8px;
    border-radius: 20px;
    margin: 0 4px 4px 0;
}

/* Name/rating/price/stock block — desktop: normal vertical flow below the image.
   Mobile: sits to the right of the (now 40%-width) image, see the grid layout below. */
.product-card-info {
    padding: 1rem 1rem 0;
    text-align: center;
}

/* Review stars (half-star capable, CSS width-clip overlay) */
.star-rating {
    position: relative;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}

.star-rating-bg { color: #ddd; }

.star-rating-fg {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f5c518;
}

.prs-score {
    font-size: .9rem;
    font-weight: 700;
    color: #333;
    margin-left: 4px;
    line-height: 1;
}

.product-card-review-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: .85rem;
    margin-top: 8px;
    margin-bottom: 4px;
}

.prs-count-static {
    font-size: .8rem;
    color: #888;
    margin-left: 2px;
    line-height: 1;
}

.product-card-info h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1rem * 1.6 * 1);
}

.product-card-info h3 a {
    color: inherit;
}

/* Stock + buy button, grouped together and pinned to the card's bottom edge (via
   .product-price-row's margin-top: auto above it) so this group lands at the same
   position on every card in a row, regardless of how long the description runs. */
.product-card-bottom {
    width: 100%;
    padding: 0 1rem 1rem;
}

/* Price — its own flat row (not nested in .product-card-bottom) so mobile can move it
   right under the name while desktop keeps it pinned near the bottom together with the
   stock/button row that follows — see margin-top: auto below and the mobile grid areas.
   min-height reserves the tallest possible content (the 3-line discount pill) so a plain
   price or a shorter "Od" pill still sits vertically centered instead of bottom-anchored,
   and so every card's price row is the same height regardless of what it displays. */
.product-price-row {
    margin-top: auto;
    margin-bottom: 0.8rem;
    padding: 0 1rem;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-plain {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--clr-strawberry-pink);
}

.price-original {
    text-decoration: line-through;
    color: #999;
    font-weight: 400;
    font-size: 0.85rem;
    margin-right: 6px;
}

/* Discounted price: a 3-line pill — discount name (own background), price, savings —
   instead of the plain single-line pill used before. Smaller corner radius since the
   fully-rounded "pill" shape doesn't read well over 3 lines. */
.price-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    vertical-align: middle;
    min-width: 120px;
}

.price-pill-top {
    background: var(--clr-buzzing-bees);
    color: var(--text-dark);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.15;
    padding: 3px 10px;
}

.price-pill-mid {
    background: var(--clr-strawberry-pink);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.15;
    padding: 5px 10px;
}

.price-pill-bottom {
    background: var(--clr-strawberry-pink);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.15;
    padding: 0 10px 4px;
}

/* Running promotion (Akce): pill + countdown to its end + explanation. Rendered by
   ProductCardRenderer::promoStackHtml(); the card variant shows the explanation as a tooltip on
   hover (desktop only), the product page variant (.promo-stack--detail) as a small "* text" line. */
.promo-stack {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: middle;
}

/* The whole price (crossed-out original + pill) on one line; countdown and explanation go under it. */
.price-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Carousel card: original price above the pill, as in .pcc-price (which is a column too). */
.promo-stack--compact .price-line {
    flex-direction: column;
    gap: 2px;
}

.promo-countdown {
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--clr-strawberry-pink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Catalog card: a bigger countdown with some air above it. */
.promo-stack--card .promo-countdown {
    margin-top: 0.8rem;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .promo-stack--card .promo-countdown {
        margin-top: 0.2rem;
        font-size: 1rem;
    }

    .pcc-countdown {
        left: 20px;
        right: 20px;
    }
}

.promo-tip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 6px;
    width: max-content;
    max-width: 190px;
    padding: 6px 9px;
    border-radius: 8px;
    background: var(--text-dark);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    z-index: 50;
    pointer-events: none;
}

@media (hover: hover) and (min-width: 769px) {
    .promo-stack:hover .promo-tip,
    .pcc-countdown:hover .promo-tip {
        display: block;
    }
}

/* Carousel card (fixed height, nothing fits under the price): the countdown is a strip over the bottom edge of
   the square image instead; the explanation is its tooltip. Takes no height from the card. */
.pcc-countdown {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: -8px;
    padding: 1px 6px;
    background: var(--clr-strawberry-pink);
    text-align: center;
    border-radius: 100px;
}

.pcc-countdown .promo-countdown {
    display: block;
    margin: 0;
    font-size: 0.7rem;
    color: #fff;
}

.pcc-countdown .promo-tip {
    bottom: 100%;
}

.promo-note {
    margin-top: 4px;
    max-width: 260px;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.3;
    color: #777;
    text-align: center;
}

/* "Od <price>" accessory-bundle pill — just the one line, so its price line needs its
   own (taller) padding instead of the 3-line pill's top-shaved .price-pill-mid padding. */
.price-pill--from .price-pill-mid {
    padding: 6px 10px;
}

/* Stock — 2 lines with icons: availability, then a static "ships in 24h" line. Rendered
   by ProductCardRenderer::stockHtml() (catalog-specific, not the shared
   format_stock_status() used elsewhere on the site). */
.stock {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.78rem;
    font-weight: 700;
}

.stock-line {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stock-line svg {
    flex-shrink: 0;
}

.stock.stock-in .stock-line:first-child {
    color: var(--clr-green);
}

.stock.stock-low .stock-line:first-child {
    color: #ff9800;
}

.stock.stock-out .stock-line:first-child {
    color: var(--clr-strawberry-pink);
}

.stock.stock-digital .stock-line:first-child {
    color: var(--clr-green);
}

.stock-ship {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.72rem;
}

/* Pre-order / expected restock ("Očekáváme 12. 12."): pre-order highlighted, plain announcement muted */
.stock.stock-preorder .stock-line:first-child {
    color: var(--clr-baltic-sea);
}

/* "?" help icon after "Předobjednávka" — same look as .prs-tooltip-icon (review metrics); the tooltip is the
   global .sk-tooltip component on the whole .stock-line */
.stock-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 2px;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    font-size: .65rem;
    line-height: 1;
    font-weight: 700;
    padding-bottom: 1px;
    box-sizing: border-box;
}

/* The per-product note is multi-line text (line breaks kept) */
.stock-preorder .stock-line.sk-tooltip {
    --tt-max-width: 280px;
}

.stock-preorder .stock-line.sk-tooltip::after {
    white-space: pre-line;
}

.stock.stock-expected .stock-line:first-child {
    color: var(--text-light);
}

/* "VYPRODÁNO" / "PŘEDOBJEDNÁVKA" pill behind the name of a cart / order line, and the one notice for the
   whole order (cart, checkout sidebar, order result) — orders are not split, everything ships after the
   restock date. */
.cart-item-status-pill {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--clr-strawberry-pink);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.5;
    white-space: nowrap;
}

.preorder-notice {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-card);
    background: var(--clr-baltic-sea);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.preorder-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.cart-item-status-pill--preorder {
    background: var(--clr-baltic-sea);
}

.preorder-notice[hidden] {
    display: none;
}

/* Description — its own row below the image+info, full card width. */
.product-short-desc {
    padding: 0 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    min-height: calc(0.9rem * 1.4 * 4);
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-short-desc p {
    display: inline;
    margin: 0;
}

/* Card action row — stock left, "Do košíku" button right. .has-qty is toggled by
   common.js's renderQtyControl()/renderAddToCartButton() when the product is/isn't in
   the cart (swaps the button for a qty stepper in the same .js-cart-action-container). */
.product-actions-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.product-actions-wrapper .stock {
    text-align: left;
}

/* Explicit height AND width (not content-driven) so .qty-control (height:100%/width:100%)
   can exactly fill the same box .btn-buy occupies when it swaps in, instead of each state
   sizing itself independently and visibly changing the row's shape. Card context only
   (the product detail page's buy-actions overrides this to flex:1 1 50%, see product.css) —
   a relative width here, not a fixed px one, so it stays proportionate to the card instead
   of ballooning toward half the card's width on narrow cards. */
.product-actions-wrapper .js-cart-action-container {
    flex-shrink: 0;
    margin-left: auto;
    height: 44px;
    width: 50%;
}

.product-actions-wrapper .btn-buy {
    width: 100%;
    padding: 0 0.75rem; /* room for icon + the longer "Předobjednat" label in the half-width slot */
}

/* Sized to roughly match the height of the 2-line .stock block next to it, so the row
   reads as one even baseline instead of a tall label beside a small button. */
.btn-buy {
    height: 44px;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    box-sizing: border-box;
}

.product-actions-wrapper .btn:hover {
    transform: none;
}

/* Card / detail buy button states: pre-order = aruba blue (no icon, the label is long), sold out = grey and disabled */
.btn-buy--preorder {
    background-color: var(--clr-baltic-sea);
    color: var(--btn-green-text);
}

.btn-buy--preorder:hover {
    background-color: #6f9fc2;
}

.btn-buy--soldout,
.btn-buy--soldout:hover {
    background-color: #e4e4e4;
    color: #8a8a8a;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-buy--soldout svg,
.btn-buy--preorder svg {
    flex-shrink: 0;
}

.product-actions-wrapper .qty-control {
    height: 100%;
    width: 100%;
}

/* --- Mobile layout: image left (square, ~40% width) + name/rating right, price right
   under the name, description below spanning full width, then stock+button. Grid areas
   instead of relying on DOM order, since the desktop order doesn't match this — the
   top-level children of .product-card are direct grid-item children for exactly this
   reason. "media" spans both the info and price rows (repeated area name = row span). */
@media (max-width: 600px) {
    .product-card {
        display: grid;
        grid-template-columns: 42% 1fr;
        grid-template-areas:
            "media info"
            "media price"
            "labels labels"
            "desc desc"
            "bottom bottom";
        max-width: none;
    }

    .product-card-top {
        grid-area: media;
        /* No bottom-left rounding — the card's own rounded corner is the top-left one.
           Square again (matches the product image everywhere else) now that
           .product-card-info/.product-price-row carry their own min-height — the grid
           rows this spans grow to fit the square instead of it overflowing into the
           "labels" row below, which is what forced the height:100% workaround before
           those reservations existed. */
        aspect-ratio: 1 / 1;
        border-radius: 14px 0 0 0;
    }

    .product-img-link {
        border-radius: 14px 0 0 0;
    }

    /* Desktop's ribbon/pill overlays are replaced by the compact pills below on mobile. */
    .ribbon-wrapper,
    .label-ribbon-right,
    .label-pill-center {
        display: none;
    }

    .product-card-info {
        grid-area: info;
        text-align: left;
        padding: 0.5rem 0.5rem 0;
        min-height: 3rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Its own row below the image/name/price header, above the description — not nested
       inside .product-card-info any more (see the PHP: flat sibling, own grid area). */
    .product-card-labels-mobile {
        grid-area: labels;
        display: flex;
        flex-wrap: wrap;
        padding: 0 1rem;
        margin-top: 0.75rem;
    }

    /* Name above rating on mobile — reversed from desktop's DOM order (rating, then name)
       via flex order, not a markup change, so desktop stays untouched. */
    .product-card-info .product-card-review-stars {
        order: 2;
        justify-content: flex-start;
        margin-top: 4px;
    }

    /* Name wraps up to 2 lines on mobile, not clamped to 1 — max-height, not a reserved
       min-height: a 1-line name shouldn't leave a gap before the rating below it. */
    .product-card-info h3 {
        order: 1;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        max-height: calc(1rem * 1.6 * 2);
        margin-bottom: 0;
    }

    .product-price-row {
        grid-area: price;
        margin-top: 0;
        margin-bottom: 0.5rem;
        padding: 0 1rem 0 0.75rem;
        align-items: center;
        justify-content: flex-start;
    }

    .price-original {
        font-size: 0.7rem;
    }

    .price-pill {
        min-width: 105px;
    }

    .price-pill-top {
        font-size: 0.62rem;
        padding: 3px 9px;
    }

    .price-pill-mid {
        font-size: 1.15rem;
        padding: 5px 9px;
    }

    .price-pill-bottom {
        font-size: 0.62rem;
        padding: 0 9px 3px;
    }

    .product-short-desc {
        grid-area: desc;
        padding: 0.75rem 1rem;
    }

    .product-card-bottom {
        grid-area: bottom;
        padding: 0 1rem 1rem;
    }
}

/* --- Qty Control (Generic) — the stepper that replaces the buy button once the
   product is in the cart (window.renderQtyControl in common.js) ---
   height:100% — not a fixed pixel value — so it exactly fills whichever context's own
   fixed-height wrapper it's swapped into (.product-actions-wrapper .js-cart-action-container
   on cards, .buy-actions .js-cart-action-container on the product detail page), instead of
   assuming one specific button height. The inner +/- circles stay a fixed comfortable size
   regardless of the container's exact height (card ~44px vs detail page ~50px). */
.qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: fit-content;
    height: 100%;
    box-sizing: border-box;
    background-color: #fff;
    border: 2px solid var(--clr-green);
    border-radius: 30px;
    padding: 0 4px;
    min-width: 110px;
}

.qty-control button.btn-qty {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--clr-apricot);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.qty-control button.btn-qty:hover {
    background-color: #fab1a0;
}

.qty-control input.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: bold;
    font-size: 1.05rem;
    background: transparent;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-control input {
    -moz-appearance: textfield;
    appearance: none;
}

/* --- Contact Section (section_contact.php) ---
   White band (not beige — same white as the page), but the same container/card pattern as
   .catalog-cta-band (product-catalog.css): .container.container-large wrapper (not its own
   max-width — this used to be narrower than .catalog-cta-band's row above it, an
   inconsistent side inset), white cards, no shadow, matching padding/radius/breakpoints.
   Same values mirrored in common.css (every page but product/catalog); home.css no longer
   overrides this section at all. */
.contact-hero-section {
    width: 100%;
    padding: 60px 0;
    background-color: #fff;
}

@media (max-width: 768px) {
    .contact-hero-section {
        padding: 2rem 0;
    }
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-info,
.contact-form {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
}

@media (max-width: 768px) {
    .contact-info,
    .contact-form {
        padding: 2rem 1.25rem;
    }
}

.contact-info {
    font-size: 1rem;
    color: var(--text-dark);
}

/* Right column (the form) gets a tinted background so it reads as its own card instead of
   blending into the white section behind it — .contact-info stays white/flat since it's
   already visually separated by its .contact-details boxes. Inputs get a white fill on top
   of that tint so they stand out as fillable fields, not just more background. */
.contact-form {
    background: var(--clr-beige);
}

.contact-form .form-control {
    background: #fff;
    border-color: var(--clr-beige-hover, #e0d8c8);
}

.contact-form label {
    color: var(--text-dark);
}

/* Heading is .section-title (see markup) — the same shared class every other section's
   heading uses (left-aligned/2.5rem desktop, centered/1.8rem mobile inside
   .container.container-large), not a bespoke size for this section alone. */

.contact-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #666;
}

.contact-details {
    margin-top: 2rem;
    background: var(--clr-beige);
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid var(--clr-beige);
}

.contact-details p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Was 3x identical inline style="display:flex;align-items:center;gap:0.5rem;..." in
   section_contact.php — one rule instead. */
.contact-details a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.contact-phone-hours-short {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--clr-text-muted, #6b6b6b);
}

@media (max-width: 480px) {
    .contact-details p:has(.contact-phone-hours-short) {
        flex-wrap: wrap;
    }

    .contact-phone-hours-short {
        flex-basis: 100%;
        margin-left: 1.75rem;
    }
}

.contact-phone-hours {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--clr-text-muted, #6b6b6b);
    margin-top: 0.35rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-green);
    box-shadow: 0 0 0 3px rgba(115, 183, 171, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* .contact-info/.contact-form stretch to equal height (.contact-layout's align-items:
   stretch) — the form's own fields are naturally shorter than the info column's text +
   detail boxes, which without this left a dead gap at the bottom of the (invisible,
   border/shadow-free) card. Filling the stretched height and pinning the submit button to
   the bottom makes both columns' visible content actually reach the same bottom edge. */
#contact-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* The message field (last .form-group, holding the textarea) grows into the leftover
   stretched height instead of leaving a dead gap above the button — a bigger textarea to
   write in, not empty space. */
#contact-form .form-group:last-of-type {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#contact-form .form-group:last-of-type textarea {
    flex: 1;
}

.contact-form-submit {
    width: 100%;
}

/* --- Validation Errors (Global) --- */
input.error,
select.error,
textarea.error,
.error-border {
    border-color: #e74c3c !important;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* =========================================================================
   Components — merged from the former assets/css/components/ folder
   (carousel.css, product-card-compact.css, tabs.css). Kept as clearly
   delimited blocks below so they're easy to eyeball independently. */

/* --- Component: Carousel (carousel.php, carousel.js) ---
   Full-width beige promo/product carousel band. Every card in a row shares one fixed
   "unit" width AND height — a product card is always exactly 1 unit wide (square image +
   text body underneath); an offer card is 1-3 units wide (image fills the entire card, no
   text body) but always the same total height as a product card, so the row never has
   ragged/misaligned cards regardless of which widths are mixed together. */
:root {
    --carousel-unit-w: 200px;
    /* Tall enough for a 3-line discount pill (name/price/savings) + full-height buy
       button in .product-card-compact without the button getting clipped. */
    --carousel-unit-h: 400px;
    --carousel-gap: 16px;
    /* Left/right inset for the first/last card — matches .container's padding so the row
       starts aligned with the heading above it, while the track itself spans edge-to-edge
       and cards scroll all the way out to the true edge. */
    --carousel-edge-inset: 2rem;
}

.carousel-band {
    width: 100%;
    background-color: var(--clr-beige, #f8f4ee);
    padding: 10px 0;
}

/* Per-carousel admin toggle ("Zobrazit béžové pozadí") — same band, no fill, for a
   carousel meant to blend into whatever section it's embedded in. */
.carousel-band--no-bg {
    background-color: transparent;
}

/* Per-carousel admin toggle ("Zrušit boční odsazení karet") — for a carousel embedded in
   narrower surrounding content (e.g. a product detail tab) where the default edge inset
   (matching .container's padding) would sit wider than everything around it. Overriding
   the variable itself (not just .carousel-track's padding) so .carousel-title-wrap, which
   also reads it, stays in sync automatically — a carousel with no edge inset shouldn't
   have its heading indented either. */
.carousel-band--no-edge-inset {
    --carousel-edge-inset: 0px;
}

/* Same side padding as .carousel-track's own edge inset (both read --carousel-edge-inset)
   so the heading always lines up with the row of cards under it, with or without the
   no-edge-inset toggle. Always rendered now (even with no title) since it's also the nav
   arrows' row — .carousel-nav-group's margin-left:auto pushes them to the right whether or
   not a title sits next to them. */
.carousel-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 var(--carousel-edge-inset);
    margin-bottom: 16px;
}

.carousel-title {
    font-size: 1.8rem;
    text-align: left;
    margin: 0;
}

.carousel-nav-group {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.carousel-wrapper {
    position: relative;
}


.carousel-track {
    display: flex;
    align-items: flex-start;
    gap: var(--carousel-gap);
    overflow-x: auto;
    /* No scroll-snap — combined with the track's own left/right padding it made some
       browsers settle a few pixels into the row on load instead of true scrollLeft:0,
       which read as "the carousel starts pre-scrolled". Carousel.js still forces
       scrollLeft:0 on load, but removing snap avoids fighting it. */
    scrollbar-width: none;
    padding: 4px var(--carousel-edge-inset);
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 auto;
    width: var(--carousel-unit-w);
    height: var(--carousel-unit-h);
}

.carousel-item-w2 { width: calc(var(--carousel-unit-w) * 2 + var(--carousel-gap)); }
.carousel-item-w3 { width: calc(var(--carousel-unit-w) * 3 + var(--carousel-gap) * 2); }

/* --- Grid layout variant (carousel.php's $carouselLayout === 'grid', e.g. the added-to-cart
   modal) — same card markup/CSS vars as the track above, just arranged as a static CSS grid
   instead of a horizontal scroll strip: no nav arrows, no carousel.js instance. An offer card
   spanning N "positions" (admin-configured width_desktop/width_mobile, same fields the track
   layout reads) spans N grid columns instead of being N units wide. */
.carousel-band--grid {
    padding: 0;
    background: none;
}

.carousel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--carousel-gap);
}

.carousel-grid-item {
    height: var(--carousel-unit-h);
    grid-column: span 1;
}

.carousel-grid-item.cg-dw2 { grid-column: span 2; }
.carousel-grid-item.cg-dw3 { grid-column: span 3; }
.carousel-grid-item.cg-dw4 { grid-column: span 4; }

@media (max-width: 900px) {
    .carousel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Grid only has 2 columns on mobile — desktop spans of 3/4 would overflow a row, so
       mobile goes by its own width_mobile value (cg-mwN) instead, capped at the 2 columns
       actually available. */
    .carousel-grid-item.cg-dw2,
    .carousel-grid-item.cg-dw3,
    .carousel-grid-item.cg-dw4 {
        grid-column: span 1;
    }

    .carousel-grid-item.cg-mw2 {
        grid-column: span 2;
    }
}

/* Shared circle-button look for every horizontal track's prev/next controls (and the
   lightbox/modal close button, same shape). .gallery-nav/.lightbox-nav/.sk-modal-close stay
   absolutely positioned overlays on their image; .carousel-nav is different — it sits inline
   in .carousel-title-wrap's row now (always visible, both breakpoints, disabled instead of
   hidden when there's nothing to scroll — see .carousel-nav-group above and carousel.js), so
   its own rule below overrides the shared position/inset with position:static. */
.carousel-nav,
.gallery-nav,
.lightbox-nav,
.sk-modal-close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--clr-green, #73b7ab);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.carousel-nav {
    position: static;
    transform: none;
}

.gallery-nav:hover,
.lightbox-nav:hover,
.sk-modal-close:hover {
    background: var(--clr-green, #73b7ab);
    color: #fff;
}

.carousel-nav:hover:not(:disabled) {
    background: var(--clr-green, #73b7ab);
    color: #fff;
}

/* Distinct, unmistakably "nothing to scroll this way" look — no hover color change (see
   :not(:disabled) above), not-allowed cursor, faded. */
.carousel-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    color: #999;
}

/* Offer card: the image fills the whole card edge-to-edge (its aspect ratio follows
   however many units wide it is — only product images are always square), CTA button
   overlaid at the bottom-right — no separate white content area, no shadow. */
.carousel-offer-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-card, 8px);
    overflow: hidden;
    background: var(--clr-beige-hover, #e0d8c8);
}

.carousel-offer-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Only present when a dedicated mobile image was picked (see carousel.php) — otherwise
   the single unclassed <img> above covers every breakpoint. */
.carousel-offer-img-mobile {
    display: none;
}

@media (max-width: 768px) {
    .carousel-offer-img-desktop {
        display: none;
    }
    .carousel-offer-img-mobile {
        display: block;
    }
}

.carousel-offer-cta {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
}

/* A single-position offer card (no room to justify a corner pill) gets the same
   full-width, centered button treatment as a product card, at each breakpoint
   independently (desktop width and mobile width are configured separately). */
.carousel-item-w1 .carousel-offer-cta {
    left: 12px;
    width: calc(100% - 24px);
    justify-content: center;
}

@media (max-width: 768px) {
    :root {
        --carousel-unit-w: 165px;
        --carousel-unit-h: 365px;
        --carousel-gap: 12px;
        --carousel-edge-inset: 1rem;
    }

    .carousel-title {
        font-size: 1.4rem;
    }

    /* An offer card's mobile width (1-3 positions) is configured separately from its
       desktop width in the admin — override the desktop .carousel-item-w2/w3 class here.
       !important because both rules have identical specificity and must win regardless
       of source order. */
    .carousel-item-mw1 { width: var(--carousel-unit-w) !important; }
    .carousel-item-mw2 { width: calc(var(--carousel-unit-w) * 2 + var(--carousel-gap)) !important; }
    .carousel-item-mw3 { width: calc(var(--carousel-unit-w) * 3 + var(--carousel-gap) * 2) !important; }

    .carousel-item-mw1 .carousel-offer-cta {
        left: 12px;
        width: calc(100% - 24px);
        justify-content: center;
    }
}

/* --- Component: Compact product card (carousel product items, ProductCardRenderer::renderCompact) ---
   Always exactly 1 carousel unit wide — image, rating, name, price, button. White, no
   shadow, square edge-to-edge image. (Unrelated to .product-card above, the "full" card.) */
.product-card-compact {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: var(--radius-card, 8px);
    overflow: hidden;
    border: 1px solid #f0ece3;
}

.pcc-img-link {
    position: relative;
    display: block;
    width: 100%;
    /* Square, sized off the shared unit width so it lines up with the unit height
       budget (unit height - body height). */
    height: var(--carousel-unit-w, 200px);
    flex-shrink: 0;
}

.pcc-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pcc-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--clr-strawberry-pink, #e0848f);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 20px;
}

.pcc-body {
    padding: 6px 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* The body clips its content (overflow:hidden above), which would cut off the promotion's explanation tooltip that
   opens upwards over the image — while the tooltip is shown the body doesn't clip. The card itself still clips
   to its rounded corners. */
.pcc-body:has(.promo-stack:hover) {
    overflow: visible;
}

/* Tighter than .product-card-review-stars's default margin above — this card is small,
   the full-size rating spacing looks too airy here. */
.pcc-body .product-card-review-stars {
    margin: 2px 0;
}

.pcc-name {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.3;
    min-height: 2.2em;
    width: 100%;
}

.pcc-name a {
    color: inherit;
    text-decoration: none;
}

/* Price + button anchored together at the bottom of the card (regardless of how tall
   the rating/name block above happens to be) so the price row lines up at the exact
   same height across every card in a row. */
.pcc-bottom {
    margin-top: auto;
    padding-top: 6px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Fixed height, tall enough for the worst case (original price + 3-line discount pill,
   stacked) — so a plain/short price still lands vertically centered instead of sitting at
   the bottom right above the button. Without this, a discounted neighbor card (taller
   price block) pushes its button down further than an undiscounted one's, so the two
   buttons — and the prices right above them — never line up at the same height. */
.pcc-price {
    min-height: 76px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

/* Reuses .price-plain/.price-original/.price-pill (same discounted-price pill treatment
   as the full card), just sized down to fit the compact carousel card. */
.pcc-price .price-plain {
    font-size: 0.95rem;
}

.pcc-price .price-original {
    font-size: 0.75rem;
}

.pcc-price .price-pill {
    min-width: 90px;
}

.pcc-price .price-pill-top {
    font-size: 0.55rem;
    padding: 2px 7px;
}

.pcc-price .price-pill-mid {
    font-size: 0.85rem;
    padding: 5px 7px;
}

.pcc-price .price-pill-bottom {
    font-size: 0.55rem;
    padding: 0 7px 2px;
}

/* Fixed height (not padding-derived) on both buttons below — a padding+line-height combo
   rendered a couple px taller on one than the other depending on whether an icon was
   present, which is exactly the kind of mismatch a shared explicit height avoids. */
.pcc-actions .btn,
.carousel-offer-cta {
    height: 38px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 1.2rem;
    font-size: 0.85rem;
    line-height: 1;
}

.pcc-actions .btn {
    width: 100%;
}

.pcc-actions .btn svg {
    flex-shrink: 0;
}

/* Same 38px the buy button already uses (see .pcc-actions .btn above) — gives the swapped-in
   .qty-control (height:100%, see the generic rule) the same explicit height to fill, same
   convention .product-actions-wrapper uses for full cards. Width:100% too, so it exactly
   replaces the button it swapped out instead of shrinking to content. */
.pcc-actions .js-cart-action-container {
    height: 38px;
    width: 100%;
}

.pcc-actions .qty-control {
    width: 100%;
    min-width: 0;
    padding: 0 3px;
}

/* The generic .qty-control's +/- circles (32px) and input are sized for the full card's
   44px-tall container — scaled down here to match, same proportional top/bottom breathing
   room (~7px) inside this card's smaller 38px button, instead of nearly filling it edge to
   edge. */
.pcc-actions .qty-control button.btn-qty {
    width: 28px;
    height: 28px;
    font-size: 1rem;
}

.pcc-actions .qty-control input.qty-input {
    width: 28px;
    font-size: 0.8rem;
}

/* --- Component: Tabs (tabs.php pattern, tabs.js ResponsiveTabs) ---
   Same visual language as the product detail page tabs (assets/css/product.css
   .tabs-nav/.tab-btn/.tab-content) — kept in sync by eye if either changes.
   Responsive: when the tab row doesn't fit its container, .tabs-bar gets .is-collapsed
   and the row becomes a "Třídit" dropdown instead of wrapping/scrolling. */
.tabs-bar {
    position: relative;
}

/* Opts out of the collapse-to-dropdown behavior (see tabs.js — .tabs-bar--scroll is never
   handed to ResponsiveTabs at all) in favor of a plain horizontally scrollable row — for a
   handful of always-relevant content tabs (e.g. product detail's popis/recenze/...), not a
   "pick one" sort control, a dropdown just hides tabs the visitor would otherwise want to
   see directly. */
.tabs-bar--scroll .tabs-nav {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tabs-bar--scroll .tabs-nav::-webkit-scrollbar {
    display: none;
}

.tabs-nav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 0.5rem;
    margin-bottom: 0;
    padding: 0 1rem;
    border-bottom: 2px solid var(--clr-green, #73b7ab);
}

.tab-btn {
    display: flex;
    align-items: center;
    background: var(--clr-beige, #f8f4ee);
    border: none;
    border-radius: 8px 8px 0 0;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    cursor: pointer;
    color: var(--text-dark, #333);
    transition: all 0.3s;
    margin-right: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover {
    background: var(--clr-beige-hover, #e0d8c8);
    color: var(--text-dark, #333);
}

.tab-btn.active {
    background: var(--clr-green, #73b7ab);
    color: #fff;
    position: relative;
    z-index: 2;
}

.tab-btn svg {
    width: 15px;
    height: 15px;
    margin-right: 6px;
    flex-shrink: 0;
    transition: stroke 0.3s;
}

/* Just a top border, no radius/side borders/padding — the product grid inside gets its
   horizontal spacing purely from the page's own .container, same as every other element
   on the page, instead of an extra padding layer of its own. */
.tab-content {
    max-width: 100%;
    margin-top: 1rem;
    position: relative;
}

.tab-content[aria-busy="true"] {
    opacity: 0.5;
    pointer-events: none;
}

.tabs-sort-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--clr-beige, #f8f4ee);
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 0.7rem 1.4rem;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark, #333);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 2px;
}

.tabs-sort-toggle:hover {
    background: var(--clr-beige-hover, #e0d8c8);
}

.tabs-sort-toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.tabs-bar.is-collapsed .tabs-sort-toggle {
    display: flex;
}

/* Dropdown holding whatever tabs aren't the currently active one, once collapsed. */
.tabs-sort-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    margin-top: 6px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
    gap: 8px;
    flex-direction: column;
    flex-wrap: nowrap;
    z-index: 20;
    min-width: 200px;
}

.tabs-bar.is-open .tabs-sort-dropdown {
    display: flex;
}

.tabs-sort-dropdown .tab-btn {
    border-radius: 8px;
    width: 100%;
    justify-content: flex-start;
    margin-right: 0;
}

/* --- Component: Product gallery + lightbox (components/product_gallery.php,
   components/gallery.js) — sitewide-shared, not page-specific, since any product image
   gallery on any page should look/behave identically. --- */
.detail-gallery {
    position: relative;
    width: 100%;
}

.main-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #fff;
}

/* Horizontally scroll-snapping track — one slide per image. Native touch/swipe momentum
   gives a smooth, animated transition between images on mobile with zero custom drag
   code; nav buttons (desktop only, see .gallery-nav below) just scroll by one slide. */
.main-image-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.main-image-track::-webkit-scrollbar {
    display: none;
}

/* Height is set per-breakpoint further down (bigger on desktop, a bit smaller on mobile,
   see the media queries below) — a tall product photo no longer stretches the whole
   gallery column; if the image ends up narrower than the column because of the height
   cap, it's centered rather than left-aligned. */
.main-image-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
}

.main-image-slide img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    cursor: zoom-in;
}

@media (max-width: 900px) {
    /* Square, not a fixed height — product photos are always square-cropped (same
       convention as the catalog/carousel cards), so a fixed height either let-boxed a big
       blank strip above/below the photo (indistinguishable from real page whitespace,
       since both are plain white) or cropped a taller photo. Aspect-ratio always matches
       the actual image with zero gap either way. */
    .main-image-slide {
        height: auto;
        aspect-ratio: 1 / 1;
        position: relative;
        min-height: 0;
        overflow: hidden;
    }

    /* Filled + letterboxed (not auto-sized): a tall portrait photo/video must not stretch the
       slide (aspect-ratio boxes grow to their content's natural height otherwise). */
    .main-image-slide img,
    .main-image-slide video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
    }
}

/* Desktop only — swiping carries the "change image" job on mobile instead. Shares its
   look with .carousel-nav (same white circle + SVG chevron, see that rule above) instead
   of a separate style. .gallery-main (not .main-image-wrapper, which clips to its rounded
   corners via overflow:hidden) is these buttons' positioning parent, so they can sit
   further outside the image without being clipped. */
.gallery-main {
    position: relative;
}

.gallery-nav.prev {
    left: -18px;
}

.gallery-nav.next {
    right: -18px;
}

@media (max-width: 900px) {
    .gallery-nav {
        display: none;
    }
}

/* Small "current/total" badge, mobile only (see .gallery-thumbs below) — bottom-left
   corner of the main image. */
.gallery-counter {
    display: none;
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}

@media (max-width: 900px) {
    .gallery-counter {
        display: block;
    }
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.gallery-thumbs img.thumb-active,
.gallery-thumbs img:hover {
    opacity: 1;
    border-color: var(--clr-green);
}

/* Mobile: thumbnail strip stays, just rendered smaller alongside swipe + the counter badge. */
@media (max-width: 900px) {
    .gallery-thumbs img {
        width: 60px;
        height: 60px;
    }
}

/* --- Component: Modal (components/modal.php + components/modal.js) ---
   Generic modal shell — any page's Modal instance gets this look for free. Two desktop
   size variants (.sk-modal--fullscreen, .sk-modal--dialog); on mobile both always collapse
   to the same bottom sheet (slides up on open, swipe-down or the close button to dismiss —
   see modal.js) instead of their own desktop treatment. No shadow anywhere by design —
   .sk-modal-card gets a hairline-free flat look, distinguished from the backdrop only by
   being opaque white against the dark scrim. */
.sk-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.sk-modal.active {
    display: flex;
}

.sk-modal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    animation: skModalZoomIn 0.3s;
}

@keyframes skModalZoomIn {
    from {
        transform: scale(0.96);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Floats over the card's top-right corner. transform:none cancels the shared
   .carousel-nav/.gallery-nav/.lightbox-nav rule's top:50%/translateY(-50%) (a vertical
   centering rule that doesn't apply here and would push this half out of the card). */
.sk-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    transform: none;
    z-index: 5;
}

/* flex:1 1 auto (not height:100%) — the card's own height is "auto" on mobile and capped
   only via max-height (see the max-width:900px block below), so a percentage height here
   has nothing to resolve against and the body never becomes the actual scroll boundary;
   flex fills exactly whatever space the (possibly auto-sized, max-height-capped) card ends
   up with, in every modal size variant, desktop or mobile. */
.sk-modal-body {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

/* Near-fullscreen: the margin around the card (all 4 sides desktop) is the dark scrim. */
.sk-modal--fullscreen {
    padding: 15px;
}

.sk-modal--fullscreen .sk-modal-card {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Centered, content-sized dialog (e.g. an info box) — not full height. */
.sk-modal--dialog .sk-modal-card {
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    border-radius: 16px;
    padding: 32px;
    box-sizing: border-box;
}

/* Drawer: fixed panel pinned to the right edge, full viewport height, slides in from the
   right (e.g. the added-to-cart modal) — same off-canvas idea as the mobile #main-nav panel
   (header.css), mirrored to the right edge instead of the left. Reuses modal.js's existing
   .sk-modal-open class/timing (desktop AND mobile both already get it on open/close — see
   Modal.open()) instead of needing its own JS: on desktop this is the slide transform, on
   mobile the bottom-sheet rule below takes over for the same class. */
.sk-modal--drawer {
    justify-content: flex-end;
    padding: 0;
}

.sk-modal--drawer .sk-modal-card {
    width: 900px;
    max-width: 92vw;
    height: 100%;
    border-radius: 0;
    /* No padding here — the scrollbar (.sk-modal-body has overflow:auto) needs to sit flush
       against the true right edge of the panel, not inset by a padded ancestor. Padding goes
       on .sk-modal-body itself instead (below), scoped to this modal only. */
    box-sizing: border-box;
    animation: none;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.sk-modal--drawer.sk-modal-open .sk-modal-card {
    transform: translateX(0);
}

#added-to-cart-modal .sk-modal-body {
    padding: 32px;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    #added-to-cart-modal .sk-modal-body {
        padding: 16px;
    }

    .added-to-cart-heading {
        font-size: 1.3rem;
        line-height: 1.5rem;
    }

    /* .sk-modal-close is 40px wide, pinned at right:16px — the header row sits right under
       it on mobile (body padding dropped to 16px above, closer to that edge than on desktop),
       so a long heading can run under the button instead of wrapping before it. */
    .added-to-cart-header {
        margin-right: 48px;
    }

    /* Both buttons at full width, stacked, pill text properly centered — side by side the
       two labels' combined width (plus .btn's own 2rem horizontal padding each) overflows a
       phone-width row instead of actually centering. */
    .added-to-cart-modal-actions {
        flex-direction: column;
    }

    .added-to-cart-modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 900px) {
    /* Bottom sheet, app-style, for ALL THREE desktop size variants: flush to the
       bottom/sides, a gap (and rounded corners) only at the top so it visibly reads as a
       card that slid up rather than a plain swap of the whole screen — slides up on open and
       back down on close/swipe-down (see .sk-modal-open below and modal.js) instead of the
       desktop zoom/fade/slide-from-right. */
    .sk-modal--fullscreen,
    .sk-modal--dialog,
    .sk-modal--drawer {
        padding: 20px 0 0;
        align-items: flex-end;
        justify-content: center;
    }

    .sk-modal--fullscreen .sk-modal-card,
    .sk-modal--dialog .sk-modal-card,
    .sk-modal--drawer .sk-modal-card {
        width: 100%;
        height: auto;
        /* Not calc(100% - 20px) — the parent's content box already excludes its own
           20px padding-top, so subtracting it again here left a doubled 40px gap. */
        max-height: 100%;
        max-width: none;
        border-radius: 20px 20px 0 0;
        animation: none;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .sk-modal--fullscreen.active .sk-modal-card {
        height: 100%;
    }

    .sk-modal.sk-modal-open .sk-modal-card {
        transform: translateY(0);
    }
}

/* --- Shared cart item row (Cart.renderRow(), assets/js/cart.js) — moved here from cart.css:
   originally cart-page-only, now also used by the added-to-cart modal (any page) to show each
   added product with its real qty/remove/price/accessories/link, reactive to the same
   cart-updated events the cart page itself listens to. --- */
.cart-item-card {
    background: #fff;
    border: 1px solid var(--clr-beige-hover, #e0d8c8);
    border-radius: var(--radius-card, 8px);
    padding: 1.25rem;
}

/* Image sits next to the whole info block (name/price/qty/total) and stretches to match its
   height via align-items:stretch + its own flex centering — not grid row-spanning, which only
   covered the name row, not the qty row below it. */
.cart-item-top {
    display: flex;
    gap: 1rem;
}

.cart-item-img-link {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    align-self: center;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--clr-beige-hover, #e0d8c8);
    display: block;
}

.cart-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-row1 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cart-item-title-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.cart-item-name {
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.05rem;
}

.cart-item-name:hover {
    text-decoration: underline;
}

.cart-item-unit-price {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Sits inline right after the unit price (.cart-item-title-group is a flex row) — override
   the stacked-layout margin the shared --cart modifier assumes elsewhere. */
.cart-item-title-group .accessory-discount-hint--cart {
    margin: 0;
}

.cart-remove-btn {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--clr-apricot);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cart-remove-btn:hover {
    background-color: #fab1a0;
    transform: scale(1.1);
}

.cart-remove-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.cart-item-row2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* .qty-control's height:100% (styles.css) needs a real height to resolve against — elsewhere
   it swaps into an existing 44px button slot (see .product-actions-wrapper convention); here
   there's no button to replace, so give it the same 44px directly. */
.cart-qty-control {
    height: 44px;
}

.cart-item-line-total {
    font-weight: 700;
    color: var(--success);
    font-size: 1.1rem;
}

.cart-item-divider {
    height: 1px;
    background: var(--clr-beige-hover, #e0d8c8);
    margin: 1rem 0 0.75rem;
}

/* --- Per-item accessory checklist (inside the card, under the divider) — collapsible,
   default open. --- */
.cart-item-accessories-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
}

.cart-item-accessories-chevron {
    transition: transform 0.2s ease;
}

.cart-item-accessories-toggle[aria-expanded="false"] .cart-item-accessories-chevron {
    transform: rotate(-90deg);
}

.cart-item-accessories {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-accessories.is-collapsed {
    display: none;
}

.cart-acc-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-acc-row .accessory-add-btn {
    width: 26px;
    height: 26px;
    font-size: 1rem;
}

.cart-acc-thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--clr-beige-hover, #e0d8c8);
    flex-shrink: 0;
}

.cart-acc-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.cart-acc-name {
    display: inline-block;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
}

.cart-acc-price {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .cart-item-name {
        font-size: 0.9rem;
    }

    .cart-item-unit-price {
        font-size: 0.8rem;
    }

    .cart-item-accessories-toggle {
        font-size: 0.75rem;
    }

    .cart-acc-name,
    .cart-acc-price {
        font-size: 0.8rem;
    }
}

/* --- "Added to cart" modal content (components/added_to_cart_modal.php +
   assets/js/components/added-to-cart-modal.js) --- */
.added-to-cart-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.added-to-cart-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--clr-green);
    color: #fff;
    flex-shrink: 0;
}

.added-to-cart-heading {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.added-to-cart-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

#added-to-cart-modal-shipping .shipping-box {
    padding: 0.75rem 1rem;
    margin-bottom: 20px;
    box-sizing: border-box;
}

#added-to-cart-modal-carousel .carousel-band {
    margin-top: 20px;
}

.added-to-cart-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.lightbox-body {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* min-height:0 (here and on .lightbox-image-wrap) lets the picture area shrink to the space
   left by the thumbs instead of growing to the media's natural size (a tall portrait video
   used to push the thumbs out of the modal, so they had to be scrolled to). */
.lightbox-main {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.lightbox-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Same scroll-snap mechanism as .main-image-track/.main-image-slide — see gallery.js. */
.lightbox-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.lightbox-track::-webkit-scrollbar {
    display: none;
}

.lightbox-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Fixed 24px pill, bottom 18px: its centre (18 + 12) is the centre of the 36px mute button
   sitting at bottom 12px on the opposite side (see product-video.css), so they line up. */
.lightbox-counter {
    position: absolute;
    left: 12px;
    bottom: 18px;
    height: 24px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    padding: 0 12px;
    border-radius: 20px;
}

.lightbox-nav.prev {
    left: 12px;
}

.lightbox-nav.next {
    right: 12px;
}

/* Right side panel (desktop) — the other images in this gallery, click to jump. Wider,
   with generous side padding, and thumbs themselves render smaller than the panel (not
   100% of it) — see .lightbox-thumbs img's fixed width below. */
.lightbox-thumbs {
    width: 200px;
    flex-shrink: 0;
    border-left: 1px solid #eee;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    overflow-y: auto;
    box-sizing: border-box;
}

.lightbox-thumbs img {
    width: 90px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: all 0.3s;
}

/* Clears .sk-modal-close, which floats over this corner of the card. */
.lightbox-thumbs img:first-child {
    margin-top: 40px;
}

.lightbox-thumbs img.thumb-active,
.lightbox-thumbs img:hover {
    opacity: 1;
    border-color: var(--clr-green);
}

@media (max-width: 900px) {
    /* Shell (padding/radius/slide animation) comes from .sk-modal--fullscreen's own mobile
       rules now (see the Modal component section above) — this just adjusts the gallery's
       own content layout for the bottom-sheet shape. Nav arrows hidden — swipe carries the
       "change image" job (native scroll-snap on .lightbox-track, same mechanism as the
       inline gallery below this breakpoint), not a JS src-swap. */
    .lightbox-nav {
        display: none;
    }

    .lightbox-body {
        flex-direction: column;
    }

    .lightbox-main {
        padding: 12px;
        flex: 1 1 0;
    }

    /* The media fills the slide's box and is letterboxed inside it (object-fit: contain), so
       its size always follows the space available (height or width), never its natural size. */
    .lightbox-slide {
        position: relative;
    }

    .lightbox-slide .lightbox-content {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
    }

    /* Thumbs always stay at the bottom, never squeezed out. */
    .lightbox-thumbs {
        flex: 0 0 auto;
        width: 100%;
        flex-direction: row;
        align-items: stretch;
        border-left: none;
        border-top: 1px solid #eee;
        overflow-y: visible;
        overflow-x: auto;
        padding: 12px;
    }

    .lightbox-thumbs img {
        width: 64px;
        flex-shrink: 0;
    }

    .lightbox-thumbs img:first-child {
        margin-top: 0;
    }
}

/* --- Component: Clamp + toggle (components/clamp-toggle.js) ---
   Generic "clamp to N lines, show Zobrazit více/méně only if it actually overflows".
   --clamp-lines is set inline per instance by the JS from data-lines. */
.clamp-toggle-content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--clamp-lines, 2);
    overflow: hidden;
}

.clamp-toggle-content.is-expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.clamp-toggle-btn {
    display: inline-block;
    margin-top: 4px;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-green, #73b7ab);
    cursor: pointer;
}

/* An author-stylesheet rule of equal specificity to the UA [hidden] rule always wins over
   it — without this, the button above stays visible even with the hidden attribute set. */
.clamp-toggle-btn[hidden] {
    display: none;
}

/* --- Component: Slider (components/slider.php, components/slider.js) ---
   Hero slider, reused wherever a slider is picked by id (homepage sections 1/2/9 — see
   SliderManager). Deliberately namespaced .sk-slider* rather than reusing the old
   common.css hero/slider rules (.hero-*, .slider-*), which stay put for page_b2b.php's own
   unrelated hero. One markup, one scroll-snap track for every device: a slide is a square
   16:10 image + a text panel in the slide's palette color (--slide-bg, set inline from the
   slide's color) — panel right of the image on desktop, below it on mobile. The border
   between them is a random wavy SVG edge (SliderManager::cloudEdgePath) filled with the
   panel color, overlapping the image: --side on desktop, --top on mobile. */
.sk-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    container-type: inline-size; /* mobile arrows sit on the image/panel line = 75cqw (4:3 image) */
}

/* margin-right: -1px makes the track (and so every slide) 1px wider than the visible
   slider; .sk-slider clips that pixel. Otherwise a fractional slider width lets the first
   subpixel column of the next slide show at the right edge. */
.sk-slider-track {
    margin-right: -1px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.sk-slider-track::-webkit-scrollbar {
    display: none;
}

.sk-slider-slide {
    --slide-bg: var(--clr-beige);
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--slide-bg);
}

.sk-slider-image {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
}

.sk-slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sk-slider-panel {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px 16px;
    background: var(--slide-bg);
}

/* Title + subtitle: centered vertically in the space above the button, which is pinned to
   the panel's bottom edge. */
.sk-slider-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: inherit;
}

.sk-slider-cloud {
    position: absolute;
    display: block;
    fill: var(--slide-bg);
}

/* Mobile edge: full panel width, height from the viewBox ratio (no distortion), tucked
   1px into the panel so no seam shows between the two fills. */
.sk-slider-cloud--top {
    left: 0;
    bottom: calc(100% - 1px);
    width: 100%;
    height: auto;
}

.sk-slider-cloud--side {
    display: none;
}

.sk-slider-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-dark);
}

.sk-slider-subtitle {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--text-dark);
}

/* Rich text from the admin editor: paragraphs (<p>) with inline bold / italic / underline / strike. */
.sk-slider-subtitle p {
    margin: 0;
}

.sk-slider-subtitle p + p {
    margin-top: 0.4em;
}

/* Bottom row of the panel (pinned to the bottom edge): button + optional countdown. Desktop:
   button left, countdown pushed to the right edge; mobile: stacked, countdown centered above the
   button (reads as the last line of the text). */
.sk-slider-actions {
    align-self: stretch;
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.sk-slider-countdown {
    margin-left: auto; /* desktop: right edge of the row */
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--text-dark);
}

.sk-slider-countdown[hidden] {
    display: none;
}

/* One fixed-width cell per digit (see SliderManager::countdownHtml / slider.js): the countdown
   keeps its width and position while the digits tick. */
.sk-slider-digit {
    display: inline-block;
    width: 0.62em;
    text-align: center;
}

/* Standard .btn .btn-large — only the color differs (text-dark background, so it stands out on every
   pastel panel color). */
.sk-slider-cta {
    background-color: var(--text-dark);
    color: #fff;
}

/* With a button defined the whole slide is the link (slider.js). */
.sk-slider-slide--link {
    cursor: pointer;
}

.sk-slider-cta {
    gap: 0.5em;
}

.sk-slider-cta svg {
    flex: 0 0 auto;
    width: 1.25em;
    height: 1.25em;
}

.sk-slider-cta:hover {
    background-color: #3a3a3a;
}

.sk-slider-cta:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Arrows: black chevron in a translucent circle (own look, not shared with the other
   carousels' .carousel-nav). Fully self-contained — common.css also defines an older
   .carousel-nav that loads before styles.css on the homepage; relying on cascade order
   alone was fragile. Desktop: vertically centered at the edges; mobile: on the line
   between image and panel (see the max-width block below). */
.sk-slider-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: background-color 0.2s ease;
}

.sk-slider-nav:hover {
    background: rgba(255, 255, 255, 0.8);
}

.sk-slider-nav.prev { left: 24px; }
.sk-slider-nav.next { right: 24px; }

/* Dark translucent dots — they sit over both the photo and the pastel panel. */
.sk-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 8px;
    padding: 10px 14px; /* dead zone around the dots: a missed tap must not hit the slide link beneath */
}

.sk-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background-color 0.2s ease, width 0.2s ease;
}

.sk-slider-dot.active {
    width: 22px;
    background: rgba(0, 0, 0, 0.7);
}

@media (min-width: 769px) {
    .sk-slider-slide {
        flex-direction: row;
        height: clamp(320px, 34vw, 560px);
    }

    /* 16:10 image sized by the slide's height. */
    .sk-slider-image {
        width: auto;
        height: 100%;
        aspect-ratio: 4 / 3;
    }

    /* Right padding keeps the text clear of the next arrow (24px offset + 40px + gap). */
    .sk-slider-panel {
        padding: 60px 70px 60px 10px;
        gap: 20px;
    }

    .sk-slider-cloud--top {
        display: none;
    }

    /* Desktop edge: sits left of the panel, full height; width follows the viewBox ratio
       (120x600) so the waves keep their proportions at any slide height. */
    .sk-slider-cloud--side {
        display: block;
        top: 0;
        right: calc(100% - 1px);
        height: 100%;
        width: auto;
        aspect-ratio: 120 / 600;
    }

    .sk-slider-title {
        font-size: clamp(2rem, 3.3vw, 3.5rem);
    }

    .sk-slider-subtitle {
        font-size: clamp(1.35rem, 1.95vw, 1.8rem);
    }
}

/* --- Shared text primitives (ported from common.css for the homepage, which no longer
   loads it — see header.php) --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.hero-subtitle span {
    display: block;
}

/* --- Suggestion card (components/cart_suggestions_carousel.js) ---
   Small horizontal card: thumbnail + name + price + "add" button. Used inside a
   .carousel-item in a .carousel-band strip (see components/carousel.php) wherever a compact
   "add this too" card is needed — today the cart's "Zákazníci si také koupili" carousel
   (targeted accessories + free-shipping-gap suggestions). No box-shadow, border-only. */
.accessory-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--clr-beige-hover, #e0d8c8);
    border-radius: var(--radius-card, 8px);
    flex-shrink: 0;
    min-width: 0;
    max-width: 280px;
}

.accessory-card-img-link {
    flex-shrink: 0;
    display: block;
    width: 46px;
    height: 46px;
}

.accessory-card-img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: block;
}

.accessory-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 3px;
}

.accessory-card-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.accessory-card-name:hover {
    text-decoration: underline;
}

.accessory-card-prices {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.accessory-card-price-original {
    font-size: 0.75rem;
    color: #999;
    text-decoration: line-through;
}

.accessory-card-price {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}

.accessory-card-price--discounted {
    display: inline-block;
    border: 2px solid var(--clr-strawberry-pink, var(--danger, #e74c3c));
    color: var(--clr-strawberry-pink, var(--danger, #e74c3c));
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
}

.accessory-add-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--clr-green);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.accessory-add-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.08);
}

.accessory-add-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* "Cheaper bought with accessories" hint — shown under a product's price (detail/card) or
   under a cart item's name (--cart). Shared between product.css (detail page) and cart.css
   since both pages now build off styles.css instead of common.css. */
.accessory-discount-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: -0.75rem 0 1.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--clr-strawberry-pink);
}

.accessory-discount-hint svg {
    flex-shrink: 0;
}

.accessory-discount-hint--detail {
    justify-content: flex-start;
    margin: 0.25rem 0 1.5rem;
}

.accessory-discount-hint--cart {
    margin: 0.25rem 0 0;
    font-size: 0.72rem;
}

/* --- Free shipping box + progress bars (components/free_shipping_bars.php) ---
   Shared between the product detail shipping box (product.css adds its own
   padding/margin) and the cart sidebar (cart.css). Pickup bar is green, home bar apricot. */
.shipping-box,
.product-info-box {
    background: var(--clr-beige, #f8f4ee);
    border-radius: 12px;
}

.shipping-box-free {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shipping-progress-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.shipping-progress-icon {
    display: flex;
    flex-shrink: 0;
    color: var(--clr-green);
}

.shipping-progress[data-type="home"] .shipping-progress-icon {
    color: var(--clr-apricot);
}

.shipping-progress-text {
    font-weight: 600;
}

.shipping-progress-remaining {
    margin-left: auto;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.78rem;
}

.shipping-progress-bar {
    height: 7px;
    border-radius: 3.5px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.shipping-progress-bar-fill {
    height: 100%;
    background: var(--clr-green);
    border-radius: 3.5px;
    transition: width 0.3s ease;
}

.shipping-progress[data-type="home"] .shipping-progress-bar-fill {
    background: var(--clr-apricot);
}

/* Gift promotion bar (components/free_product_bars.php) */
.shipping-progress[data-type="gift"] .shipping-progress-icon {
    color: var(--clr-strawberry-pink);
}

.shipping-progress[data-type="gift"] .shipping-progress-bar-fill {
    background: var(--clr-strawberry-pink);
}

.shipping-progress-hint {
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--text-light);
}

/* The gift bars wrapper adds no box of its own: the bars are laid out by .shipping-box-free */
.js-gift-bars {
    display: contents;
}

/* --- Step indicator (Košík/Doručení/Platba on cart; Doručení/Platba on checkout) ---
   Shared between cart.css and checkout.css. States: default (upcoming, beige), --active
   (current, green), --completed (done, green with checkmark instead of a number). */
.order-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
}

.order-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--clr-beige, #f8f4ee);
    color: var(--text-light, #888);
}

.order-step-label {
    font-weight: 600;
    color: var(--text-light, #888);
}

.order-step--active .order-step-circle,
.order-step--completed .order-step-circle {
    background: var(--clr-green);
    color: #fff;
}

.order-step--active .order-step-label,
.order-step--completed .order-step-label {
    color: var(--text-dark);
}

.order-step-line {
    width: 60px;
    height: 2px;
    background: var(--clr-beige-hover, #e0d8c8);
    margin: 0 1rem;
}

/* Set directly on the line (not a descendant of .order-step — it's a sibling between two
   steps in the markup) when the step before it is done. */
.order-step-line--completed {
    background: var(--clr-green);
}

@media (max-width: 768px) {
    /* Název kroku pod číslo (ne vedle), aby se celý indikátor vešel na šířku displeje bez
       zalamování — platí pro košík i pokladnu, komponenta je sdílená. */
    .order-step {
        flex-direction: column;
        gap: 4px;
    }

    .order-step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .order-step-label {
        font-size: 0.7rem;
        text-align: center;
    }

    /* Čára je sibling mezi .order-step sloupci — bez vlastního zarovnání by se (díky vyšším
       sloupcům s číslem+názvem pod sebou) posunula doprostřed celé výšky, ne na úroveň
       kolečka. align-self + margin-top ji vrátí zpátky na úroveň středu kolečka. */
    .order-step-line {
        flex: 1 1 auto;
        margin: 0 0.4rem;
        align-self: flex-start;
        margin-top: 13px;
    }

    /* Roztáhnout na celou šířku (space-between místo center) a stáhnout margin — platí pro
       košík i pokladnu, komponenta je sdílená. */
    .order-steps {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 1rem;
    }

}

/* --- Shared form kit (rows, labels, inputs, checkboxes, radios, country select) ---
   Moved here from checkout.css — these are plain, page-agnostic form primitives (used today
   by checkout and cart's discount/newsletter fields), not something that should live in one
   page's own stylesheet. Any page that wants the same look (admin included, once it loads
   styles.css) gets it for free instead of re-implementing its own inputs. */
.form-row {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    grid-template-columns: 1fr;
}

.form-row.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.form-row.grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-row.street-split {
    grid-template-columns: 2fr 1fr;
}

/* Musí být AŽ ZA výše uvedenými základními .form-row.grid-2/.grid-3 pravidly — při stejné
   specificitě (dvě třídy v obou) vyhrává to, co je v souboru napsané později, bez ohledu na
   to, že jedno z nich je v media query. Dřív byla tahle mobilní verze omylem napsaná PŘED
   nimi (v jiném @media bloku výš) a base pravidlo ji tak na mobilu tiše přebilo. */
@media (max-width: 768px) {
    /* Pole ve víceřádkových form-row (Osoba/Firma/Kam na pokladně) na mobilu každé na vlastní
       řádek — grid-2/grid-3 jsou desktopový rozvrh, na úzkém displeji by se zalamovaly. */
    .form-row.grid-2,
    .form-row.grid-3 {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.form-group.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.form-group label.required::after {
    content: "*";
    color: var(--danger);
    margin-left: 2px;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
    padding: 0.7rem 1rem;
    border: 1px solid var(--clr-beige-hover, #e0d8c8);
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 1rem;
    width: 100%;
    background: #fff;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-green);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--danger);
}

.error-message {
    display: inline-flex;
    align-items: center;
    background: var(--clr-strawberry-pink);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 0.4rem;
}

.form-section-title {
    margin: 2rem 0 1rem;
    font-size: 1.2rem;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--clr-beige-hover, #e0d8c8);
}

.form-help-text {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: -0.5rem 0 1rem;
}

/* Checkbox — custom tick via ::before. box-sizing/padding explicit so it stays a square even
   nested inside .form-group (whose generic input padding would otherwise inflate it into a
   rectangle — this is exactly what happened before). */
input[type="checkbox"] {
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    padding: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--clr-beige-hover, #e0d8c8);
    border-radius: 5px;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"]:checked {
    background-color: var(--clr-green);
    border-color: var(--clr-green);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* Radio — "fat border" dot instead of a ::before pseudo-element. A pseudo-element inside a
   replaced form control doesn't center reliably across browsers (that's what showed up as an
   off-center dot) — a border that thickens on :checked is always perfectly centered since
   it's the element's own box, nothing else to position. */
input[type="radio"] {
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--clr-beige-hover, #e0d8c8);
    background-color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s ease, border-width 0.15s ease;
}

input[type="radio"]:checked {
    border-width: 6px;
    border-color: var(--clr-green);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 2px;
}

.checkbox-container .checkmark {
    display: none;
}

/* --- Country select (flag + fixed name, no real dropdown) --- */
.select-with-flag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--clr-beige-hover, #e0d8c8);
    border-radius: 10px;
    background: #fff;
}

.country-flag-icon {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.country-display {
    font-weight: 600;
    color: var(--text-dark);
}

.country-switch-hint {
    margin: 0.5rem 0 0;
    font-size: 0.72rem;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.country-switch-hint svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.country-switch-hint a {
    color: var(--clr-green);
    font-weight: 600;
}

/* --- Shipping info badges (Expedujeme do 24h / Doručíme od-do) — sdíleno košíkem i oběma
   kroky pokladny, proto tady a ne v cart.css/checkout.css. */
.shipping-info-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
}

.shipping-info-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--clr-beige-hover, #e0d8c8);
    border-radius: 30px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Stejná velikost jako .checkout-progress-check (ikony/text u rekapitulace Komu/Kdo/Kam
   atd.) — badge nemá vystupovat výrazněji než zbytek sidebaru. */
.shipping-info-badge-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--clr-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Address autocomplete dropdown (components/address-autocomplete.js) ---
   .address-autocomplete-wrap holds ONLY the input (JS wraps it at runtime) — positioning the
   dropdown relative to that, not the whole .form-group, keeps it directly under the input
   regardless of a label above or an error message below. The open input flattens its bottom
   corners + turns its border green so the dropdown reads as one continuous piece coming out
   of the field, not a disconnected floating box. */
.address-autocomplete-wrap {
    position: relative;
    width: 100%;
}

/* Specificita musí přebít ".form-group input:not([type=checkbox]):not([type=radio])" výš —
   proto stejné :not() klauzule i tady, jinak základní pravidlo (shodná/vyšší specificita,
   ale dřívější pořadí) vyhrává a zaoblené rohy pole "prokouknou" i když je dropdown otevřený. */
.form-group input:not([type="checkbox"]):not([type="radio"]).address-autocomplete-input-open {
    border-color: var(--clr-green);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.address-autocomplete-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    background: #fff;
    border: 2px solid var(--clr-green);
    border-top: none;
    border-radius: 0 0 10px 10px;
    margin-top: -1px;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.address-autocomplete-item {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid var(--clr-beige, #f8f4ee);
}

.address-autocomplete-item:last-child {
    border-bottom: none;
}

.address-autocomplete-item:hover,
.address-autocomplete-item.is-active {
    background: var(--clr-beige, #f8f4ee);
}

/* --- Component: ConfirmModal (components/confirm_modal.php + components/confirm-modal.js) ---
   Compact centered confirmation dialog (cart item removal, voucher forfeit, ...), shown via .active.
   Sibling of the content Modal (.sk-modal) but deliberately NOT a sheet/fullscreen on mobile.
   Not to be confused with admin's ConfirmModal JS utility (admin.js, not loaded on storefront pages). */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

.confirm-modal.active {
    display: flex;
}

.confirm-modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-card, 8px);
    width: 90%;
    max-width: 420px;
    text-align: center;
    animation: skModalZoomIn 0.3s;
}

.confirm-modal-title {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.confirm-modal-text {
    margin: 0 0 1.5rem;
    color: var(--text-light);
}

.confirm-modal-text p {
    margin: 0 0 0.75rem;
}

.confirm-modal-text p:last-child {
    margin-bottom: 0;
}

.confirm-modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* --- Component: tooltip (.sk-tooltip + data-tooltip="text") ---
   Dark bubble above the element on hover / focus (tabindex="0" makes it tappable on mobile). Optional per
   element: --tt-offset (horizontal shift) and --tt-max-width. Used by the voucher forfeit warning and the
   product review header. */
.sk-tooltip {
    position: relative;
    cursor: help;
}

.sk-tooltip:focus {
    outline: none;
}

.sk-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 50;
    box-sizing: border-box;
    width: max-content;
    max-width: min(var(--tt-max-width, 230px), calc(100vw - 40px));
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--text-dark);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(var(--tt-offset, 0px), 4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.sk-tooltip:hover::after,
.sk-tooltip:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translate(var(--tt-offset, 0px), 0);
}

/* --- Voucher that won't be used in full: strawberry-pink warning icon in front of the code; the tooltip
   (.sk-tooltip on the whole code badge) says how much is forfeited (components/voucher_forfeit_warn.php,
   cart + checkout) --- */
.voucher-forfeit-warn {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--clr-strawberry-pink);
}

/* --- Small "i" in a circle in front of the name of an applied promotion (Akce) in the cart and checkout sidebar; the
   tooltip (.sk-tooltip) is the promotion's explanation. Sits in front of the name (the right side of the cart badge
   is the remove "x"); the tooltip opens to the right. components/discount_info.php + window.discountInfoHtml (cart.js) --- */
.discount-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
    color: var(--clr-strawberry-pink);
}

.discount-info.sk-tooltip::after {
    left: -8px;
}

/* --- Trust section (3 full-width bars) — shared component (components/trust_section.php),
   used on the homepage and on /recenze below its review grid.
   Bar 1 (beige) — "SenzoKids — …" one-line claim. Bar 2 (scented-levander tint) — 3 live
   stats, whole bar is a link to /recenze. Bar 3 (white) — 4 claims, same separator treatment.
   Moved here from home.css since it's no longer homepage-only. */
.trust-bar {
    padding: 1.25rem 0;
}

.trust-bar--top {
    background: var(--clr-beige);
}

.trust-bar--stats {
    background: color-mix(in srgb, var(--clr-scented-levander) 25%, #fff);
}

/* Bar 2 is an <a> (whole bar links to /recenze) — reset anchor defaults. */
a.trust-bar--stats {
    display: block;
    color: inherit;
    text-decoration: none;
}

.trust-bar--claims {
    background: #fff;
}

.trust-top-text {
    margin: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.trust-top-text strong {
    font-weight: 700;
}

/* Badge is mobile-only (desktop shows it in the header row). */
.trust-top-badge {
    display: none;
}

/* Bar 2 — 3 stat items as a 3-column grid, each centered on the center of its own third. */
.trust-stats-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.trust-stats-row {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.trust-stats-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 1rem;
}

.trust-stats-item + .trust-stats-item {
    border-left: 1px solid color-mix(in srgb, var(--text-dark) 15%, transparent);
}

.trust-stats-icon,
.trust-claims-icon {
    color: var(--clr-green);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-stats-icon svg {
    width: 26px;
    height: 26px;
}

.trust-stats-body {
    display: flex;
    flex-direction: column;
}

.trust-stats-number {
    font-size: 2rem;
    font-weight: 900;
    line-height: 2.3rem;
    color: var(--text-dark);
}

.trust-stats-number--rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.trust-stats-number--rating .star-rating {
    font-size: 1.5rem;
}

.trust-stats-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Bar 3 — 4 claims, same row + separator pattern as the stats bar. Bottom border closes off
   the whole trust section against whatever comes next. */
.trust-bar--claims {
    border-bottom: 1px solid color-mix(in srgb, var(--text-dark) 12%, transparent);
}

.trust-claims-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-claims-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    flex: 1 1 220px;
}

.trust-claims-sep {
    width: 1px;
    align-self: stretch;
    background: color-mix(in srgb, var(--text-dark) 12%, transparent);
    flex-shrink: 0;
}

.trust-claims-icon svg {
    width: 34px;
    height: 34px;
}

.trust-claims-body {
    display: flex;
    flex-direction: column;
}

.trust-claims-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.trust-claims-text {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .trust-bar {
        padding: 0.75rem 0;
    }

    /* Mobile: text left as exactly 2 lines (first part bold on line 1, rest on line 2),
       badge right, its height matching those 2 lines (2 x line-height 1.3 = 2.6em). */
    .trust-top-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        font-size: 0.8rem;
    }

    .trust-top-text {
        font-size: inherit;
        line-height: 1.3;
        text-align: left;
    }

    .trust-top-text strong,
    .trust-top-rest {
        display: block;
    }

    .trust-top-rest {
        margin-left: 0;
    }

    .trust-top-badge {
        display: block;
        flex: 0 0 auto;
        width: auto;
        height: 2.6em;
        /* Vizuálně větší odznak, ale box v layoutu zůstává 2.6em (nemění výšku pruhu ani
           nezatlačuje text) — scale ho nechá přetéct do paddingu sekce. */
        transform: scale(1.5);
    }

    .trust-stats-wrap {
        gap: 0.5rem;
    }

    /* 3 stat cards in a single row — icon stacked above number on each card. */
    .trust-stats-row {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        gap: 0.5rem;
    }

    .trust-stats-item {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.6rem 0.4rem;
        background: #fff;
        border: 1px solid color-mix(in srgb, var(--text-dark) 12%, transparent);
        border-radius: var(--radius-card, 8px);
    }

    /* Each card already has its own full border above — the desktop row-separator border-left
       must NOT also apply here, or the middle/last cards get a visibly doubled left edge
       (the actual mobile misalignment bug being fixed by this rule). */
    .trust-stats-item + .trust-stats-item {
        border-left: none;
    }

    .trust-stats-icon svg {
        width: 20px;
        height: 20px;
    }

    .trust-stats-body {
        align-items: center;
        text-align: center;
    }

    .trust-stats-number {
        font-size: 1.2rem;
        line-height: 1.4rem;
    }

    .trust-stats-number--rating {
        flex-direction: column;
        gap: 0.1rem;
    }

    .trust-stats-number--rating .star-rating {
        font-size: 1rem;
    }

    .trust-stats-label {
        font-size: 0.7rem;
        line-height: 1.1;
    }

    /* 4 claims — 2x2 grid of cards instead of a wrapping row. */
    .trust-claims-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .trust-claims-sep {
        display: none;
    }

    .trust-claims-item {
        max-width: none;
        width: 100%;
        flex: unset;
    }

    .trust-claims-icon svg {
        width: 26px;
        height: 26px;
    }

    .trust-claims-title {
        font-size: 0.82rem;
    }

    .trust-claims-text {
        font-size: 0.75rem;
    }
}




/* Tag in the top-left corner of the image: text-dark background, white text. A rounded text box
   (--radius-card on the left corners) with an SVG arrow end overlapping its right
   edge (40x40 viewBox = 2em = box height; its path rounds both the junction corners and the tip, overlap -0.5em hides the seam). drop-shadow on the container so
   the shadow follows the whole shape, tip included. */
.sk-slider-label {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    display: flex;
    align-items: stretch;
    font-size: 1.15rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.sk-slider-label-text {
    padding: 0.4em 0.5em 0.4em 1em;
    border-radius: var(--radius-card) 0 0 var(--radius-card);
    background: var(--text-dark);
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.sk-slider-label-tip {
    flex: 0 0 auto;
    width: 2em;
    height: 2em;
    margin-left: -0.5em;
    fill: var(--text-dark);
}

@media (min-width: 769px) {
    .sk-slider-label {
        top: 24px;
        left: 24px;
        font-size: 1.6rem;
    }
}

/* Mobile: smaller standard .btn-large pinned bottom-right of the panel, dots bottom-left on
   the same row (vertically centered on the button), arrows on the image/panel line
   (image is 4:3, so that line is 75% of the slider's width). */
@media (max-width: 768px) {
    .sk-slider-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .sk-slider-countdown {
        order: -1;
        margin-left: 0;
        align-self: center;
        font-size: 1.15rem;
    }

    .sk-slider-cta {
        align-self: flex-end;
        padding: 0.65rem 1.6rem;
        font-size: 0.9rem;
    }

    .sk-slider-dots {
        left: 2px;
        bottom: 19px;
        transform: none;
    }

    .sk-slider-nav {
        top: calc(75cqw - 14px);
        width: 34px;
        height: 34px;
    }

    .sk-slider-nav.prev { left: 8px; }
    .sk-slider-nav.next { right: 8px; }
}

