/* =========================================================================
   WIKMAR - MASIV — iteration 1
   Warm, crafted, trustworthy. Palette derived from spruce / treated wood
   with deep forest green as the action colour.
   ========================================================================= */

:root {
    /* Named palette (4-6 core colours) */
    --bg:          #f6f1e7; /* warm sand background */
    --surface:     #fffdf8; /* card / panel */
    --wood:        #a9743f; /* honey spruce */
    --wood-dark:   #6e4a28; /* treated wood, deep */
    --forest:      #2e5a3b; /* action / CTA */
    --forest-dark: #234833; /* hover */
    --ink:         #2a241d; /* warm near-black text */
    --muted:       #6f6555; /* secondary text */
    --line:        #e4d9c4; /* hairlines / borders */

    --radius:   14px;
    --radius-sm: 9px;
    --shadow:   0 10px 30px rgba(60, 42, 20, .10);
    --shadow-sm: 0 4px 14px rgba(60, 42, 20, .08);
    --container: 1180px;

    --font-head: "Bitter", Georgia, "Times New Roman", serif;
    --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---- Reset-ish --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; border-radius: 4px; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: 1rem;
    padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: background-color .18s ease, color .18s ease, transform .18s ease;
    text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: var(--forest-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: #fff; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex; align-items: center; gap: 20px;
    min-height: 74px;
}
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 48px; width: auto; display: block; }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
    display: block; padding: 9px 10px; color: var(--ink); font-weight: 500;
    border-radius: var(--radius-sm); font-size: .98rem; white-space: nowrap;
}
.site-nav a:hover { background: var(--bg); color: var(--wood-dark); text-decoration: none; }

/* ---- Nav dropdown ("O firmě") ------------------------------------------ */
.nav-dropdown { position: relative; }
.nav-dropdown__trigger {
    display: inline-flex; align-items: center; gap: 6px;
    font: inherit; font-weight: 500; font-size: .98rem; color: var(--ink);
    background: transparent; border: none; padding: 9px 10px; border-radius: var(--radius-sm); cursor: pointer;
}
.nav-dropdown__trigger:hover { background: var(--bg); color: var(--wood-dark); }
.nav-dropdown__trigger svg { flex: none; transition: transform .18s ease; }
.nav-dropdown__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Scoped under .site-nav: it's a plain class selector, but .site-nav ul/a
   (class+element) outrank it on shared properties (display, padding...)
   with equal-or-lower specificity, order regardless. */
.site-nav .nav-dropdown__menu {
    display: flex; flex-direction: column;
    list-style: none; margin: 0; padding: 8px; gap: 0; z-index: 50;
    position: absolute; top: 100%; left: 0; min-width: 210px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
/* Beat the display:flex above so the JS toggle (sets [hidden]) can close the menu. */
.site-nav .nav-dropdown__menu[hidden] { display: none; }
.site-nav .nav-dropdown__menu a {
    display: block; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--ink); font-size: .95rem; white-space: nowrap;
}
.nav-dropdown__menu a:hover { background: var(--bg); color: var(--wood-dark); text-decoration: none; }

.header-phone {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--forest); color: #fff; font-weight: 600;
    padding: 10px 16px; border-radius: 999px; font-size: .98rem;
}
.header-phone:hover { background: var(--forest-dark); color: #fff; text-decoration: none; }

.nav-toggle { display: none; }

/* ---- Hero -------------------------------------------------------------- */
.hero {
    position: relative;
    background: var(--wood-dark) var(--hero-image, none) center/cover no-repeat;
    color: #fff;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(35, 26, 15, .82) 0%, rgba(35, 26, 15, .55) 45%, rgba(35, 26, 15, .2) 100%);
}
.hero__inner { position: relative; padding-block: clamp(56px, 9vw, 128px); }
.hero__content { max-width: 620px; }
.hero__eyebrow {
    text-transform: uppercase; letter-spacing: .18em; font-size: .8rem;
    color: #f2e2c9; margin: 0 0 14px; font-weight: 600;
}
.hero__title { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; margin: 0 0 18px; color: #fff; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: #f4ead9; margin: 0 0 30px; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn--ghost:hover { background: #fff; color: var(--forest-dark); border-color: #fff; }

/* ---- Feature strip ----------------------------------------------------- */
.features { background: var(--surface); border-bottom: 1px solid var(--line); }
.features__grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
    padding-block: 30px;
}
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature__icon { width: 30px; height: 30px; color: var(--forest); flex: none; margin-top: 2px; }
.feature__title { font-size: 1rem; margin: 0 0 2px; font-family: var(--font-body); font-weight: 700; }
.feature__desc { margin: 0; font-size: .86rem; color: var(--muted); }

/* ---- Sections ---------------------------------------------------------- */
.section { padding-block: clamp(46px, 7vw, 78px); }
.section--tint { background: #efe7d6; }
.section__head { margin-bottom: 34px; max-width: 640px; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 8px; }
.section__sub { color: var(--muted); margin: 0; font-size: 1.08rem; }

/* ---- About / trust stats ------------------------------------------------ */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; }
.about__text p { margin: 0 0 16px; font-size: 1.05rem; }
.about__text p:last-child { margin-bottom: 0; }
.about__media { margin: 0; }
.about__media img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.about__media figcaption { margin-top: 10px; color: var(--muted); font-size: .86rem; }

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stats--band { grid-template-columns: repeat(4, 1fr); } /* standalone row (o-nas) */
.stat {
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 4px;
}
.stat__value { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--wood-dark); }
.stat__label { color: var(--muted); font-size: .86rem; line-height: 1.4; }

/* ---- How it works (numbered steps) -------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.step__num {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 999px;
    background: var(--forest); color: #fff; font-family: var(--font-head); font-weight: 700;
    margin-bottom: 16px;
}
.step__title { font-size: 1.08rem; margin: 0 0 6px; font-family: var(--font-body); font-weight: 700; }
.step__desc { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---- FAQ (accordion + FAQPage schema) ------------------------------------ */
.faq { display: grid; gap: 14px; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item__q {
    list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq-item__icon::before, .faq-item__icon::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    background: var(--forest); transform: translate(-50%, -50%);
}
.faq-item__icon::before { width: 13px; height: 2px; }
.faq-item__icon::after { width: 2px; height: 13px; transition: transform .18s ease; }
.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item__a { padding: 0 22px 20px; color: var(--muted); }
.faq-item__a p { margin: 0 0 10px; }
.faq-item__a p:last-child { margin-bottom: 0; }
.faq-item__link { font-weight: 600; }

/* ---- Category grid ----------------------------------------------------- */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.category-tile {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); color: var(--ink);
    display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.category-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.category-tile__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.category-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-tile:hover .category-tile__media img { transform: scale(1.04); }
.category-tile__body { padding: 20px 22px 24px; }
.category-tile__name { font-size: 1.35rem; margin: 0 0 6px; color: var(--wood-dark); }
.category-tile__tag { color: var(--muted); margin: 0 0 14px; font-size: .96rem; }
.category-tile__link { color: var(--forest); font-weight: 600; }

/* ---- Product grid + card ---------------------------------------------- */
.product-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.product-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card__link { color: var(--ink); display: flex; flex-direction: column; height: 100%; }
.product-card__link:hover { text-decoration: none; }
.product-card__media { aspect-ratio: 4 / 3; background: var(--line); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card__name { font-size: 1.12rem; margin: 0 0 4px; font-family: var(--font-head); font-weight: 600; }
.product-card__sizes { margin: 0 0 12px; font-size: .88rem; color: var(--muted); }
.product-card__sizes strong { color: var(--wood-dark); font-weight: 600; }
.product-card__foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.product-card__price { font-weight: 700; color: var(--wood-dark); font-size: 1.12rem; font-family: var(--font-head); }
.product-card__cta { color: var(--forest); font-weight: 600; font-size: .92rem; }

/* ---- Breadcrumbs ------------------------------------------------------- */
.breadcrumbs { padding-block: 18px 4px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---- Page head --------------------------------------------------------- */
.page-head { padding-block: 20px 6px; }
.page-head__title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 8px; }
.page-head__lead { color: var(--muted); font-size: 1.1rem; max-width: 48em; margin: 0; }
.page-head__count { color: var(--wood); font-weight: 600; margin: 12px 0 0; font-size: .95rem; }

.empty, .placeholder-note { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 34px; text-align: center; }
.placeholder-note p { margin: 0 0 18px; color: var(--muted); font-size: 1.1rem; }

/* ---- Category toolbar (search + sort) ---------------------------------- */
.category-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.category-search { flex: 1 1 260px; max-width: 360px; }
.category-search label, .category-sort label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.category-search input {
    width: 100%; font: inherit; padding: 11px 13px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.category-search input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(46, 90, 59, .15); }
.category-sort { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.category-sort select {
    font: inherit; padding: 11px 13px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: #fff; color: var(--ink); cursor: pointer;
}
.category-sort select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(46, 90, 59, .15); }

@media (max-width: 560px) {
    .category-toolbar { flex-direction: column; align-items: stretch; }
    .category-search { max-width: none; }
}

/* Panel-edited category description, shown below the product grid. */
.category-desc { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 62em; }

/* ---- Product page ------------------------------------------------------ */
.product__top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; padding-block: 20px 40px; }

/*
 * Gallery stage. Product photos come from the old shop in every ratio
 * (4:3, 3:4 portrait, near square, 16:9), so the photo is contained — never
 * cropped — and the leftover space is filled with a blurred, warm-washed
 * copy of the same picture instead of a hard letterbox.
 */
.gallery__stage {
    position: relative; display: block; width: 100%; padding: 0; border: 0;
    font: inherit; border-radius: var(--radius); overflow: hidden;
    background: var(--line); aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm); cursor: zoom-in;
}
.gallery__backdrop {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    /* scaled up so the blur never fades out at the edges of the stage */
    transform: scale(1.25); filter: blur(28px) saturate(.75);
}
.gallery__stage::after { /* warm wash keeps the blur inside the palette */
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: rgba(246, 241, 231, .45);
}
.gallery__frame { position: absolute; inset: 0; z-index: 2; display: block; }
.gallery__photo { width: 100%; height: 100%; object-fit: contain; }

/* Magnifier: a round lens following the cursor, showing the 'full' variant. */
.gallery__lens {
    position: absolute; z-index: 3; top: 0; left: 0;
    width: 200px; height: 200px; margin: -100px 0 0 -100px;
    border-radius: 50%; pointer-events: none;
    background: var(--surface) no-repeat;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 0 0 6px rgba(46, 90, 59, .45),
                0 18px 34px rgba(60, 42, 20, .35);
    opacity: 0; visibility: hidden; transition: opacity .16s ease;
}
.gallery__stage.is-zooming { cursor: none; }
.gallery__stage.is-zooming .gallery__lens { opacity: 1; visibility: visible; }

.gallery__hint {
    position: absolute; z-index: 4; right: 12px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px 7px 11px; border-radius: 999px;
    background: rgba(42, 36, 29, .62); color: #fff;
    font-size: .82rem; font-weight: 600; letter-spacing: .01em;
    transition: opacity .16s ease;
}
.gallery__stage.is-zooming .gallery__hint { opacity: 0; }

.gallery__thumbs { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 12px 0 0; margin: 0; }
.gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--line); aspect-ratio: 4 / 3; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--forest); }

.product__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 0 0 18px; }
.product__price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 22px; }
.product__price-label { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 2px; }
.product__price-value { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--wood-dark); display: block; }
.product__price-note { color: var(--muted); font-size: .9rem; }

/* ---- Configurator (option selection) ---------------------------------- */
.configurator { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; }
.configurator__title { font-size: 1.1rem; margin: 0 0 14px; font-family: var(--font-body); font-weight: 700; }
.config-field { margin-bottom: 14px; }
.config-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.config-field__opt { color: var(--muted); font-weight: 500; font-size: .85rem; }
.config-field select {
    width: 100%; font: inherit; padding: 11px 13px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: #fff; color: var(--ink); cursor: pointer;
}
.config-field select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(46, 90, 59, .15); }
.configurator__note { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }

/* Finish swatches: with JS on, the tiles replace the (hidden) select. */
.config-field[data-swatches-on] select { display: none; }
.swatches { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; }
.swatch {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    width: 76px; padding: 6px 4px 7px; font: inherit; color: var(--ink); cursor: pointer;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.swatch img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; display: block; }
.swatch__label { font-size: .76rem; line-height: 1.2; text-align: center; overflow-wrap: break-word; max-width: 100%; }
.swatch__delta { font-size: .72rem; color: var(--muted); }
.swatch:hover { border-color: var(--forest); }
.swatch.is-active { border-color: var(--forest); box-shadow: 0 0 0 2px rgba(46, 90, 59, .25); }
.swatch:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

.includes { margin-bottom: 24px; }
.includes__title { font-size: 1.1rem; margin: 0 0 12px; font-family: var(--font-body); font-weight: 700; }
.includes__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.includes__list li { display: flex; gap: 10px; align-items: center; }
.includes__list svg { color: var(--forest); flex: none; }

.product__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.product__reassure { color: var(--muted); font-size: .92rem; margin: 0; }

.product__details { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; padding-block: 20px 50px; align-items: start; }
.product__desc h2, .product__specs h2, .assembly h2 { font-size: 1.4rem; margin: 0 0 14px; }

/* Full-width cross-sell strip on the product page (config 'product_page'). */
.related { padding: 0 0 50px; }
.related__title { font-size: 1.4rem; margin: 0 0 18px; }
.rte { color: #3a332a; }
.rte p { margin: 0 0 14px; }
.rte ul { padding-left: 20px; }
.assembly { margin-top: 30px; background: var(--surface); border-radius: var(--radius); padding: 24px 26px; border: 1px solid var(--line); }
.assembly__list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

.product__specs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.specs__title { font-size: 1.15rem !important; }
.specs { margin: 0 0 6px; }
.specs__row { display: grid; grid-template-columns: 40% 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs__row:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); font-weight: 600; }
.specs dd { margin: 0; }

/* ---- Poptávka ---------------------------------------------------------- */
.poptavka-section { background: #efe7d6; border-top: 1px solid var(--line); }
.poptavka-section__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; padding-block: 50px; align-items: start; }
.poptavka-section h2 { font-size: 1.8rem; margin: 0 0 12px; }
.poptavka-section__phone { margin-top: 16px; font-size: 1.1rem; }
.poptavka-section__phone a { font-weight: 700; }
.poptavka { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.poptavka__context { margin: 0 0 16px; color: var(--muted); }
.poptavka__config { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; }
.poptavka__config[hidden] { display: none; }
.poptavka__config-title { margin: 0 0 8px; font-weight: 700; font-size: .92rem; }
.poptavka__config-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; font-size: .9rem; color: var(--ink); }
.poptavka__config-list strong { color: var(--muted); font-weight: 600; }
.poptavka__config-price { margin: 0; font-size: .95rem; }
.poptavka__config-price strong { color: var(--wood-dark); font-family: var(--font-head); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea {
    width: 100%; font: inherit; padding: 11px 13px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(46, 90, 59, .15); }
.poptavka__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.poptavka__note { margin: 0; font-weight: 600; color: var(--forest); }
.poptavka__note.is-error { color: #a33; }

/* ---- Contact page ------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.contact-phone { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.contact-socials a { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0; }
.contact-messenger { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }

/* ---- Realizace teaser + CTA band -------------------------------------- */
.realizace-teaser { background: var(--wood-dark); color: #f6ead6; }
.realizace-teaser__inner { padding-block: 54px; max-width: 620px; }
.realizace-teaser h2 { color: #fff; }
.realizace-teaser p { margin: 10px 0 22px; color: #e9d8bd; }
.realizace-teaser .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.realizace-teaser .btn--ghost:hover { background: #fff; color: var(--wood-dark); }

.cta-band { background: var(--forest); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 42px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 1.7rem; }
.cta-band p { margin: 0; color: #dcebdf; }
.cta-band .btn--primary { background: #fff; color: var(--forest-dark); }
.cta-band .btn--primary:hover { background: #f0efe8; }

/* ---- Realizace gallery ------------------------------------------------- */
.realizace-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    font: inherit; font-weight: 600; font-size: .95rem;
    padding: 9px 16px; border-radius: 999px; cursor: pointer;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line);
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { border-color: var(--wood); color: var(--wood-dark); }
.chip.is-active { background: var(--forest); color: #fff; border-color: var(--forest); }
.chip__count { font-size: .8rem; font-weight: 700; opacity: .7; }

.realizace-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.realizace-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.realizace-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* Beat the display:flex above so the JS theme filter (sets [hidden]) hides cards. */
.realizace-card[hidden] { display: none; }
.realizace-card__media {
    position: relative; display: block; width: 100%; padding: 0; border: 0;
    aspect-ratio: 4 / 3; background: var(--line); overflow: hidden; cursor: zoom-in;
}
.realizace-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.realizace-card:hover .realizace-card__media img { transform: scale(1.05); }
.realizace-card__zoom {
    position: absolute; right: 12px; bottom: 12px;
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 999px;
    background: rgba(35, 26, 15, .6); color: #fff; opacity: 0; transition: opacity .2s ease;
}
.realizace-card__media:hover .realizace-card__zoom,
.realizace-card__media:focus-visible .realizace-card__zoom { opacity: 1; }
.realizace-card__body { padding: 16px 18px 18px; }
.realizace-card__title { font-size: 1.1rem; margin: 0 0 6px; font-family: var(--font-head); font-weight: 600; color: var(--wood-dark); }
.realizace-card__desc { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.realizace-empty { text-align: center; color: var(--muted); padding: 30px; }

/* ---- Vzorník (color / stain samples) ---------------------------------- */
.vzornik-group { margin-top: clamp(34px, 5vw, 56px); }
.vzornik-group:first-of-type { margin-top: 0; }
.vzornik-group__title { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0 0 6px; color: var(--wood-dark); }
.vzornik-group__lead { color: var(--muted); margin: 0 0 22px; max-width: 52em; }
.vzornik-card {
    margin: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.vzornik-card img { width: 100%; height: auto; display: block; }
.vzornik-card figcaption {
    padding: 12px 16px; font-size: .92rem; color: var(--muted);
    border-top: 1px solid var(--line); text-align: center;
}

/* Two samples side by side: one large (index 0), one small accent,
   vertically centred so the short palette lines up with the tall photo. */
.vzornik-duo {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: clamp(20px, 3vw, 44px);
}
.vzornik-card--big   { flex: 1 1 380px; max-width: 620px; }
.vzornik-card--small { flex: 0 1 auto; max-width: 280px; }
.vzornik-card--small img { width: auto; max-height: 440px; margin-inline: auto; }

/* Individual sample tiles (stain shades, shingle colors) — the same swatch
   files the product configurator and the admin panel use. */
.vzornik-swatches {
    list-style: none; display: flex; flex-wrap: wrap; gap: 10px;
    margin: 0 0 22px; padding: 0;
}
.vzornik-swatches figure {
    margin: 0; width: 104px; padding: 8px 6px 9px; text-align: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.vzornik-swatches img { width: 88px; height: 88px; object-fit: cover; border-radius: 6px; }
.vzornik-swatches figcaption { font-size: .8rem; line-height: 1.2; margin-top: 6px; color: var(--ink); }

/* Single sample photo, centred; does not stretch portrait photos. */
.vzornik-solo { display: flex; justify-content: center; }
.vzornik-solo .vzornik-card { max-width: 820px; }
.vzornik-solo .vzornik-card img { width: auto; max-width: 100%; max-height: 520px; margin-inline: auto; }
.vzornik-note {
    margin-top: clamp(30px, 5vw, 48px); padding: 18px 22px;
    background: #efe7d6; border-radius: var(--radius); color: var(--ink);
    font-size: .96rem; line-height: 1.6;
}

/* ---- Lightbox ---------------------------------------------------------- */
.lightbox {
    position: fixed; inset: 0; z-index: 60; padding: 24px;
    background: rgba(20, 15, 8, .93);
    display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__dialog { position: relative; width: min(1100px, 96vw); display: flex; align-items: center; justify-content: center; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-height: 92vh; }
.lightbox__img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius-sm); background: #000; }
.lightbox__caption { color: #f4ead9; text-align: center; padding: 14px 44px 0; max-width: 44em; }
.lightbox__title { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: #fff; }
.lightbox__desc { display: block; font-size: .95rem; color: #e0d3bd; margin-top: 4px; }
.lightbox__counter { display: block; font-size: .82rem; color: #c9b48f; margin-top: 8px; }
.lightbox__btn {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 999px; cursor: pointer;
    background: rgba(255, 255, 255, .14); color: #fff; border: 0;
    transition: background-color .18s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox__prev { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__next { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__close { position: absolute; top: -8px; right: -4px; width: 42px; height: 42px; background: rgba(20, 15, 8, .75); }
body.no-scroll { overflow: hidden; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: #241d15; color: #d7cbb5; margin-top: auto; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1.3fr 1fr 1.2fr; gap: 34px; padding-block: 52px 36px; }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: 12px; }
.footer-lead { color: #bcae95; margin: 0; max-width: 30em; }
.footer-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: #e8cfa0; margin: 0 0 12px; font-family: var(--font-body); font-weight: 700; }
.site-footer a { color: #ecdcc0; }
.footer-phone { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff; }
.footer-muted { color: #8f836d; font-size: .88rem; }
.footer-contact { margin: 16px 0 0; }
.footer-socials { list-style: none; display: flex; gap: 10px; margin: 16px 0 0; padding: 0; }
.footer-socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(236, 220, 192, .12); color: #ecdcc0;
}
.footer-socials a:hover { background: rgba(236, 220, 192, .24); color: #fff; }
.footer-title--spaced { margin-top: 22px; }
.footer-col { min-width: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: #ecdcc0; }
.footer-links a:hover { color: #fff; }
.site-footer__bottom {
    border-top: 1px solid #3a2f22; padding-block: 20px; font-size: .85rem; color: #8f836d;
    display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center;
}
.site-footer__bottom a { color: #a99a80; }

/* ---- Editorial content pages (prose) ----------------------------------
   The admin editor may emit any HTML (tables, images, embeds), so every tag
   that can realistically appear in a content page gets a base style here. */
.prose { max-width: 74ch; overflow-x: auto; }
.prose h1 { font-size: 1.7rem; margin: 1.8em 0 .5em; }
.prose h2 { font-size: 1.4rem; margin: 1.8em 0 .5em; }
.prose h1:first-child, .prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
.prose h4, .prose h5, .prose h6 { font-size: 1.05rem; margin: 1.3em 0 .4em; font-family: var(--font-head); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--forest); text-decoration: underline; }
.prose img { margin: 0 0 1em; border-radius: var(--radius-sm); }
.prose figure { margin: 0 0 1.4em; }
.prose figcaption { font-size: .9rem; color: var(--muted); }
.prose blockquote {
    margin: 0 0 1.2em; padding: 4px 0 4px 18px;
    border-left: 3px solid var(--wood); color: var(--muted);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.8em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 600; }
.prose caption { caption-side: bottom; padding-top: .5em; font-size: .9rem; color: var(--muted); }
.prose dt { font-weight: 600; }
.prose dd { margin: 0 0 .6em 1.2em; }
.prose pre {
    overflow-x: auto; padding: 12px 14px; margin: 0 0 1.2em;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.prose iframe, .prose video { display: block; max-width: 100%; border: 0; margin: 0 0 1.2em; }

/* ---- Sitemap ---------------------------------------------------------- */
.sitemap__group { margin-bottom: 34px; }
.sitemap__title { font-size: 1.3rem; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sitemap__subtitle { font-size: 1.05rem; margin: 18px 0 8px; }
.sitemap__list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sitemap__list a { color: var(--forest); }

/* ---- Consent dialog (checkout terms / privacy) ------------------------ */
.link-underline {
    background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
    font: inherit; color: var(--forest); text-decoration: underline;
}
.link-underline:hover { color: var(--forest-dark); }
.legal-dialog {
    width: min(760px, calc(100vw - 32px)); max-height: min(84vh, 900px);
    padding: 0; border: 0; border-radius: var(--radius);
    box-shadow: var(--shadow); background: var(--surface); color: var(--ink);
    overflow: hidden;
}
.legal-dialog::backdrop { background: rgba(30, 22, 12, .55); }
.legal-dialog[open] { display: flex; flex-direction: column; }
.legal-dialog__head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.legal-dialog__title { margin: 0; font-size: 1.25rem; }
.legal-dialog__close {
    background: none; border: 0; cursor: pointer; font-size: 1.8rem; line-height: 1;
    color: var(--muted); padding: 0 4px;
}
.legal-dialog__close:hover { color: var(--ink); }
.legal-dialog__body { overflow-y: auto; padding: 22px 24px; font-size: .96rem; }
.legal-dialog__foot { padding: 16px 24px; border-top: 1px solid var(--line); text-align: right; }

@media (prefers-reduced-motion: no-preference) {
    .legal-dialog[open] { animation: dialog-in .18s ease; }
    @keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---- Error page -------------------------------------------------------- */
.error-page { text-align: center; }
.error-page__code { font-family: var(--font-head); font-weight: 700; font-size: 5rem; color: var(--wood); margin: 0; line-height: 1; }
.error-page__title { font-size: 2rem; margin: 6px 0 10px; }
.error-page__lead { color: var(--muted); margin: 0 0 26px; }
.error-page__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Sticky mobile call button ---------------------------------------- */
.mobile-call { display: none; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
    .features__grid { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

@media (max-width: 1200px) {
    .nav-toggle {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        margin-left: auto; width: 46px; height: 42px; padding: 0 11px;
        background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
    }
    .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .site-nav {
        position: fixed; inset: 74px 0 auto 0; margin: 0;
        background: var(--surface); border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height .25s ease; box-shadow: var(--shadow);
    }
    .site-nav.is-open { max-height: 80vh; overflow-y: auto; }
    .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
    .site-nav a { padding: 14px 20px; border-radius: 0; font-size: 1.05rem; white-space: normal; }

    .nav-dropdown__trigger { width: 100%; justify-content: space-between; padding: 14px 20px; border-radius: 0; font-size: 1.05rem; }
    .site-nav .nav-dropdown__menu {
        position: static; z-index: auto; min-width: 0;
        background: var(--bg); border: none; box-shadow: none; border-radius: 0;
        margin: 0 0 4px; padding: 4px 0 4px 14px; gap: 0;
    }
    .site-nav .nav-dropdown__menu a { padding: 12px 20px; font-size: 1rem; white-space: normal; }
}

@media (max-width: 860px) {
    body { font-size: 16px; }
    .header-phone span { display: none; }
    .header-phone { padding: 11px; }

    .category-grid { grid-template-columns: 1fr 1fr; }
    .product-grid { grid-template-columns: 1fr 1fr; }
    .realizace-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .product__top { grid-template-columns: 1fr; gap: 26px; }
    .product__details { grid-template-columns: 1fr; gap: 30px; }
    .poptavka-section__inner { grid-template-columns: 1fr; gap: 24px; }
    .about { grid-template-columns: 1fr; gap: 28px; }
    .stats--band { grid-template-columns: 1fr 1fr; }

    .mobile-call {
        display: inline-flex; align-items: center; gap: 8px;
        position: fixed; right: 16px; bottom: 16px; z-index: 45;
        background: var(--forest); color: #fff; font-weight: 700;
        padding: 13px 20px; border-radius: 999px; box-shadow: var(--shadow);
    }
    .mobile-call:hover { background: var(--forest-dark); color: #fff; text-decoration: none; }
}

@media (max-width: 560px) {
    .brand__logo { height: 40px; }
    .features__grid { grid-template-columns: 1fr 1fr; }
    .category-grid { grid-template-columns: 1fr; }
    .realizace-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .lightbox__caption { padding: 12px 8px 0; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 26px; }
    .field-row { grid-template-columns: 1fr; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .stats { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .container { padding-inline: 16px; }
    .product-grid { grid-template-columns: 1fr; }
    .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================================
   Iteration 2 — cart, checkout, confirmation
   ========================================================================= */

/* ---- Buttons (additions) ---------------------------------------------- */
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--link { background: transparent; border-color: transparent; color: var(--forest); padding: 12px 8px; }
.btn--link:hover { background: transparent; text-decoration: underline; }

/* ---- Header cart link -------------------------------------------------- */
.cart-link {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 999px; color: var(--ink);
}
.cart-link:hover { background: var(--bg); color: var(--wood-dark); text-decoration: none; }
.cart-link__count {
    position: absolute; top: 1px; right: -1px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--forest); color: #fff;
    font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-link__count[hidden] { display: none; }

/* ---- Toast (add-to-cart feedback) ------------------------------------- */
.toast-region {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70;
    display: flex; flex-direction: column; gap: 10px;
    width: min(420px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
    pointer-events: auto; display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--forest);
    border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 13px 16px;
    opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: none; }
.toast__text { font-weight: 600; font-size: .95rem; }
.toast__text small { display: block; font-weight: 400; color: var(--muted); }
.toast__link { margin-left: auto; white-space: nowrap; font-weight: 700; }

/* ---- Checkbox + quantity stepper -------------------------------------- */
.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 500; }
.checkbox input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--forest); }

.qty {
    display: inline-flex; align-items: stretch; background: var(--surface);
    border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.qty__btn { width: 40px; border: 0; background: transparent; color: var(--wood-dark); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.qty__btn:hover { background: var(--bg); }
.qty__input {
    width: 52px; border: 0; background: transparent; text-align: center;
    font: 600 1rem var(--font-body); color: var(--ink); -moz-appearance: textfield; appearance: textfield;
}
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- Add-to-cart (product page) --------------------------------------- */
.add-to-cart { margin: 20px 0; }
.add-to-cart__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.add-to-cart__foot .btn { flex: 1 1 auto; }
.add-to-cart__trust { margin: 12px 0 0; font-size: .86rem; color: var(--muted); }

/* ---- Item options (shared: cart, summary) ----------------------------- */
.item-options { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: .88rem; }
.item-options__name { color: var(--muted); }
.item-options__delta { color: var(--wood-dark); }
.item-options__note { color: var(--muted); font-size: .82rem; }

/* ---- Cart page -------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
    display: grid; grid-template-columns: 140px 1fr auto; gap: 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.cart-item__media img { width: 140px; height: 105px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item__title { font-size: 1.15rem; margin: 0 0 4px; }
.cart-item__title a { color: var(--ink); }
.cart-item__unit { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.cart-item__controls { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }
.cart-item__qty { display: flex; align-items: center; gap: 10px; margin: 0; }
.cart-item__recount { border: 0; background: transparent; color: var(--forest); font-weight: 600; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.cart-item__total { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.cart-item__remove-form { margin: 0; }
.cart-item__remove { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); font-size: .85rem; cursor: pointer; }
.cart-item__remove:hover { color: #a33; }

.cart-continue { display: inline-block; margin-top: 4px; color: var(--forest); font-weight: 600; }

.cart-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.cart-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.cart-summary__title { font-size: 1.25rem; margin: 0 0 16px; }
.cart-summary__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.cart-summary__row strong { font-family: var(--font-head); font-size: 1.4rem; }
.cart-summary__note { font-size: .85rem; color: var(--muted); margin: 0 0 18px; }
.cart-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; color: var(--muted); }
.cart-trust li { display: flex; align-items: center; gap: 8px; }
.cart-trust li::before { content: "✓"; color: var(--forest); font-weight: 700; }

.cart-empty { max-width: 520px; margin: 0 auto; padding: 20px 0 40px; text-align: center; color: var(--muted); }
.cart-empty > svg { color: var(--line); }
.cart-empty__title { font-size: 1.6rem; margin: 14px 0 8px; color: var(--ink); }
.cart-empty__lead { margin: 0 0 22px; }
.cart-empty__cats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.cart-empty__more a { font-weight: 600; }

/* ---- Checkout --------------------------------------------------------- */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: start; }
.checkout-form { grid-column: 1; grid-row: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.checkout-form .field input, .checkout-form .field textarea { font-size: 16px; padding: 13px 14px; }
.checkout-fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.checkout-fieldset legend { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; padding: 0; margin-bottom: 12px; }

.checkout-summary { grid-column: 2; grid-row: 1; position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.checkout-summary__toggle { display: none; justify-content: space-between; align-items: baseline; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; list-style: none; }
.checkout-summary__toggle::-webkit-details-marker { display: none; }
.checkout-summary__toggle strong { font-size: 1.25rem; }
.checkout-summary__body { margin-top: 4px; }

.field__hint { display: block; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field__opt { color: var(--muted); font-weight: 400; }
.field__error { margin: 6px 0 0; color: #a3352c; font-size: .85rem; font-weight: 600; }
.field.has-error input, .field.has-error textarea { border-color: #c9483f; background: #fdf6f5; }
.field-check { margin: 4px 0 20px; }
.field-check.has-error { color: #a3352c; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-banner { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-weight: 600; }
.form-banner--error { background: #fbeae8; border: 1px solid #e5b7b1; color: #9a3229; }
.form-banner--success { background: #eef3e6; border: 1px solid #c7dcb2; color: #2e5a3b; }

.checkout-submit { margin-top: 6px; }
.checkout-submit__trust { text-align: center; font-size: .86rem; color: var(--muted); margin: 12px 0 0; }

/* ---- Order summary (shared: checkout, confirmation) ------------------- */
.summary-items { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.summary-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; }
.summary-item__thumb { width: 64px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); }
.summary-item__info { min-width: 0; }
.summary-item__name { margin: 0; font-weight: 600; font-size: .95rem; }
.summary-item__qty { color: var(--muted); font-weight: 400; }
.summary-item__price { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.summary-total strong { font-family: var(--font-head); font-size: 1.3rem; }
.summary-note { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }

/* ---- Confirmation ----------------------------------------------------- */
.thanks__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.thanks__badge { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 999px; background: #e7f0e8; color: var(--forest); display: flex; align-items: center; justify-content: center; }
.thanks__title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 12px; }
.thanks__number { font-size: 1.15rem; margin: 0 0 18px; }
.thanks__number strong { font-family: var(--font-head); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 12px; }
.thanks__lead { color: var(--ink); margin: 0 0 26px; font-size: 1.08rem; }
.thanks__summary { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.thanks__summary-title { font-size: 1.2rem; margin: 0 0 14px; }
.thanks__call { margin: 0 0 22px; color: var(--muted); }
.thanks__call a, .thanks__number a { font-weight: 700; }
.thanks__signoff { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.thanks__signoff strong { color: var(--ink); font-family: var(--font-head); }

/* ---- Iteration 2 responsive ------------------------------------------- */
@media (max-width: 860px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-aside { position: static; }
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-form, .checkout-summary { grid-column: auto; grid-row: auto; }
    .checkout-summary { position: static; order: -1; }
    .checkout-summary__toggle { display: flex; cursor: pointer; }
    .checkout-summary[open] .checkout-summary__toggle { margin-bottom: 12px; }
    .toast-region { bottom: 84px; }
}
@media (max-width: 560px) {
    .cart-item { grid-template-columns: 96px 1fr; row-gap: 12px; }
    .cart-item__media img { width: 96px; height: 72px; }
    .cart-item__controls { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
}

/* ---- Motion ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
