/*
 * EpicDecks Cardsystem – stránky Singles.
 * Převod návrhu docs/design/eshop-singles.html: třídy s prefixem edc-, stavy is-*.
 * Pořadí v souboru: základ → komponenty → @media → @container (vždy až za ostatními pravidly, jinak se nepoužijí).
 * Základní CSS core (framework) nuluje okraje a u odkazů přidává opacity při najetí – proto explicitní hodnoty.
 */

/* ───────── Základ ───────── */
.edc-main {
    container: main / inline-size;
    color: #111827;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
/* Třídy s display: flex/grid by jinak přebily výchozí [hidden] prohlížeče (loader, prázdný výpis, popupy). */
.edc-singles [hidden] { display: none !important; }
.edc-main h1,
.edc-main h2,
.edc-main h3,
.edc-main h4 { margin: 0; color: inherit; }
.edc-main a { color: inherit; text-decoration: none; }
.edc-main a:hover { opacity: 1; }
.edc-main button,
.edc-main input,
.edc-main select { font-family: inherit; }
.edc-singles :where(button, a, input, select):focus-visible { outline: 2px solid #3BC1F4; outline-offset: 2px; }

/* ───────── Odznak stavu a tlačítka ───────── */
.edc-cb { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--c, #6b7280); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; line-height: 1; }

.edc-btn-add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 50px; border: 1px solid #3BC1F4; background: #3BC1F4; color: #fff; font-weight: 700; font-size: 13.5px; line-height: 1; cursor: pointer; transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.edc-main a.edc-btn-add,
.edc-btn-add:hover { color: #fff; }
.edc-btn-add:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(59, 193, 244, .35); }
.edc-btn-add.is-in-cart,
.edc-btn-add.is-in-cart:hover { background: #ecfdf5; color: #047857; border-color: #a7f3d0; box-shadow: none; transform: none; }
.edc-btn-add.is-off,
.edc-btn-add.is-off:hover,
.edc-btn-add:disabled { background: #d1d5db; border-color: #d1d5db; color: #6b7280; cursor: not-allowed; box-shadow: none; transform: none; }
.edc-btn-sec { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 50px; border: 1px solid #e5e7eb; background: #f3f4f6; color: #374151; font-weight: 600; font-size: 13.5px; line-height: 1; cursor: pointer; white-space: nowrap; }
.edc-main a.edc-btn-sec { color: #374151; }
.edc-btn-sec:hover { background: #e9ecef; }
.edc-btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.edc-link-btn { border: 0; background: none; padding: 0; color: #3BC1F4; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.edc-main a.edc-link-btn { color: #3BC1F4; }
.edc-link-btn:hover,
.edc-main a.edc-link-btn:hover { color: #2aa5d1; text-decoration: underline; }

/* ───────── Scan kusu (okraj pozadí je součástí obrázku) ───────── */
.edc-scan { display: block; width: 100%; aspect-ratio: 69 / 94; overflow: hidden; background: #cfd3d7; border-radius: 3px; }
.edc-scan img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ───────── Oznámení ───────── */
.edc-toast { position: fixed; right: 18px; bottom: 18px; z-index: 100002; max-width: calc(100% - 36px); padding: 10px 14px; border-radius: 12px; background: #111827; color: #fff; font: 13px/1.4 "Segoe UI", system-ui, sans-serif; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.edc-toast.is-shown { opacity: 1; transform: none; }

/* ───────── Hlavička stránky (výpis, sada) ───────── */
.edc-l-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
/* Názvy jako u běžného produktu v core: 800, 22–32 px podle šířky obsahu. */
.edc-l-head h1 { font-size: 28px; font-size: clamp(22px, 4.2cqi, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; }
.edc-l-count { color: #6b7280; font-size: 13px; font-weight: 600; }

/* ───────── Hlavička sady, štítek sady (i na stránce karty) ───────── */
.edc-set-head { display: grid; gap: 6px; margin-bottom: 14px; }
.edc-set-head .edc-l-head { margin-bottom: 0; }
.edc-set-chip { justify-self: start; display: inline-flex; align-items: center; max-width: 100%; height: 26px; padding: 0 12px; border-radius: 50px; background: #e8f8fe; color: #0a6a90; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edc-set-meta { margin: 0; color: #6b7280; font-size: 13px; }

/* ───────── Lišta výpisu ───────── */
.edc-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; margin: 0; }
.edc-tb-search { display: flex; align-items: center; gap: 8px; height: 42px; margin: 0; padding: 0 14px; border-radius: 50px; background: #fff; border: 1px solid #e5e7eb; color: #9ca3af; cursor: text; min-width: 0; }
.edc-tb-search:focus-within { border-color: #3BC1F4; }
.edc-tb-search input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; color: #111827; font: inherit; font-size: 13.5px; }
.edc-tb-search input::-webkit-search-cancel-button { cursor: pointer; }
.edc-singles .edc-tb-search input:focus-visible,
.edc-singles .edc-f-find input:focus-visible,
.edc-singles .edc-range-in input:focus-visible { outline: none; }
.edc-tb-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; margin: 0; padding: 0 16px; border-radius: 50px; border: 1px solid #e5e7eb; background: #fff; color: #111827; font-weight: 700; font-size: 13.5px; line-height: 1; cursor: pointer; white-space: nowrap; }
.edc-tb-btn:hover { border-color: #3BC1F4; color: #0a6a90; }
.edc-tb-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #3BC1F4; color: #fff; font-size: 11px; }
.edc-tb-sort { display: block; margin: 0; }
.edc-tb-sort select { height: 42px; margin: 0; padding: 0 34px 0 14px; border-radius: 50px; border: 1px solid #e5e7eb; background-color: #fff; color: #111827; font: inherit; font-size: 13.5px; cursor: pointer; -webkit-appearance: none; appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #6b7280 50%), linear-gradient(135deg, #6b7280 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.edc-tb-view { display: inline-flex; padding: 3px; border-radius: 50px; background: #fff; border: 1px solid #e5e7eb; }
.edc-tb-view button { display: grid; place-items: center; width: 36px; height: 34px; margin: 0; padding: 0; border-radius: 50px; border: 0; background: transparent; color: #6b7280; cursor: pointer; }
.edc-tb-view button[aria-pressed="true"] { background: #111827; color: #fff; }

.edc-a-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 16px; }
.edc-a-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px; padding: 0 6px 0 12px; border-radius: 50px; background: #e8f8fe; color: #0a6a90; font-size: 12.5px; font-weight: 600; border: 1px solid #bfe9fb; }
.edc-a-chip > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.edc-main .edc-a-chip a,
.edc-a-chip button { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(10, 106, 144, .12); color: #0a6a90; font-size: 12px; line-height: 1; cursor: pointer; }
.edc-main .edc-a-clear,
.edc-a-clear { border: 0; background: none; padding: 0; color: #6b7280; font-size: 12.5px; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ───────── Mřížka a dlaždice ───────── */
.edc-grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 14px; }
.edc-cols-3 { --cols: 3; }
.edc-cols-4 { --cols: 4; }
.edc-cols-5 { --cols: 5; }
.edc-cols-6 { --cols: 6; }
.edc-tile { display: grid; gap: 7px; align-content: start; min-width: 0; padding: 8px 8px 10px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.edc-main a.edc-tile { color: #111827; }
.edc-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .1); }
.edc-t-img { position: relative; overflow: hidden; aspect-ratio: 63 / 88; border-radius: 8px; background: #eef0f3; }
.edc-t-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.edc-t-noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; padding: 14px; box-sizing: border-box; border-radius: 4.5% / 3.2%; border: 6px solid #e5e8ec; background: linear-gradient(150deg, #f7f8fa 0%, #e3e6ea 55%, #f1f2f4 100%); color: #374151; text-align: center; }
.edc-t-noimg b { font-size: 14px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.edc-t-noimg em { font-style: normal; font-size: 11.5px; font-weight: 600; color: #6b7280; }
.edc-t-badges { position: absolute; left: 6px; right: 6px; bottom: 7px; display: flex; justify-content: center; gap: 4px; overflow: hidden; padding-bottom: 3px; }
.edc-t-badge { flex: 0 0 auto; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .95); color: #111827; font-size: 10.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.edc-t-badge:only-child { flex-shrink: 1; min-width: 0; }
.edc-t-body { display: grid; gap: 1px; min-width: 0; padding: 0 2px; }
.edc-t-name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edc-t-code { font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edc-t-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 6px; margin-top: 3px; }
.edc-t-price { font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.edc-t-qty { font-size: 12px; font-weight: 600; color: #059669; white-space: nowrap; }

.edc-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.edc-grid.is-list .edc-tile { grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 14px; padding: 8px 14px 8px 8px; }
.edc-grid.is-list .edc-t-badges { display: none; }
.edc-grid.is-list .edc-t-body { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; }
.edc-grid.is-list .edc-t-foot { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; margin: 0; }

/* ───────── Načítání, konec, prázdný výpis, stránkování ───────── */
.edc-tail { min-height: 1px; }
.edc-loader { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 22px; color: #6b7280; font-size: 13px; }
.edc-spin { width: 24px; height: 24px; border-radius: 50%; border: 3px solid #e5e7eb; border-top-color: #3BC1F4; animation: edc-spin .8s linear infinite; }
@keyframes edc-spin { to { transform: rotate(360deg); } }
.edc-end { margin: 0; padding: 22px; text-align: center; color: #9ca3af; font-size: 13px; }
.edc-empty { display: grid; justify-items: center; gap: 12px; margin: 6px 0 0; padding: 32px 20px; border: 1px dashed #d1d5db; border-radius: 14px; background: #fff; color: #6b7280; text-align: center; }
.edc-empty strong { color: #374151; font-size: 15px; }
.edc-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px 0 0; }
.edc-pagination a,
.edc-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 50px; border: 1px solid #e5e7eb; background: #fff; color: #374151; font-weight: 600; font-size: 13.5px; }
.edc-pagination a:hover { border-color: #3BC1F4; color: #0a6a90; }
.edc-pagination span[aria-current] { background: #3BC1F4; border-color: #3BC1F4; color: #fff; }
.edc-pagination .edc-pg-gap { border: 0; background: none; min-width: 0; padding: 0 2px; }
.edc-listing.is-enhanced .edc-pagination { display: none; }

/* ───────── Stránka karty: panel ───────── */
.edc-hero { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; padding: 20px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; }
.edc-hero-img { display: block; align-self: start; overflow: hidden; border-radius: 10px; background: #eef0f3; }
.edc-hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 63 / 88; object-fit: cover; }
.edc-hero-img .edc-t-noimg { aspect-ratio: 63 / 88; height: auto; }
.edc-hero-info { display: grid; gap: 10px; align-content: start; min-width: 0; }
.edc-hero-info h1 { font-size: 28px; font-size: clamp(22px, 4.2cqi, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; overflow-wrap: anywhere; }
.edc-hero-sub { margin-top: -6px; color: #6b7280; }
.edc-stockline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 14px; }
.edc-stockline .edc-dot { display: inline-block; align-self: center; width: 9px; height: 9px; border-radius: 50%; background: #10b981; }
.edc-stockline > b { color: #059669; }
.edc-stockline .edc-from { color: #374151; }
.edc-stockline .edc-from b { font-size: 22px; font-weight: 800; color: #111827; white-space: nowrap; }
.edc-stockline.is-out { color: #6b7280; font-weight: 600; }
.edc-cond-avail { display: flex; flex-wrap: wrap; gap: 6px; }
.edc-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 4px 0 0; }
.edc-details div { display: flex; justify-content: space-between; gap: 10px; min-width: 0; padding: 7px 0; border-bottom: 1px solid #f0f2f5; font-size: 13.5px; }
.edc-details dt { margin: 0; color: #6b7280; }
.edc-details dd { min-width: 0; margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.edc-hero-info .edc-link-btn { justify-self: start; }

/* ───────── Stránka karty: kusy ───────── */
.edc-offers-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 26px 0 10px; }
.edc-offers-head h2 { font-size: 20px; font-weight: 700; }
.edc-offers-head h2 span { color: #6b7280; font-weight: 600; font-size: 15px; }
.edc-o-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.edc-o-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin: 0; padding: 0 12px; border-radius: 50px; border: 1px solid #e5e7eb; background: #fff; color: #374151; font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1; cursor: pointer; }
.edc-o-chip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.edc-o-chip[aria-pressed="true"] { background: #111827; border-color: #111827; color: #fff; }
.edc-o-tools select { height: 32px; margin: 0; padding: 0 30px 0 12px; border-radius: 50px; border: 1px solid #e5e7eb; background-color: #fff; color: #111827; font: inherit; font-size: 12.5px; cursor: pointer; -webkit-appearance: none; appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #6b7280 50%), linear-gradient(135deg, #6b7280 50%, transparent 50%); background-position: calc(100% - 16px) 13px, calc(100% - 11px) 13px; background-size: 5px 5px; background-repeat: no-repeat; }
.edc-dust { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; border: 1px dashed #d1d5db; background: #fff; color: #6b7280; font-size: 12.5px; }
.edc-dust svg { flex-shrink: 0; margin-top: 2px; }
.edc-offers { display: grid; gap: 10px; }
.edc-offer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 12px 18px 12px 12px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.edc-offer:hover { border-color: #bfe9fb; box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.edc-o-scans { display: flex; gap: 8px; }
.edc-o-scan { display: block; width: 96px; border-radius: 3px; cursor: zoom-in; transition: transform .15s; }
.edc-o-scan:hover { transform: scale(1.03); }
.edc-o-info { display: grid; gap: 5px; min-width: 0; }
.edc-o-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.edc-o-cname { font-weight: 700; font-size: 15px; }
.edc-o-var { padding: 2px 8px; border-radius: 6px; background: #f3f4f6; color: #374151; font-size: 12px; font-weight: 600; }
.edc-o-photos { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px; border: 1px solid #bfe9fb; background: #e8f8fe; font-size: 12px; font-weight: 700; cursor: zoom-in; }
.edc-main a.edc-o-photos { color: #0a6a90; }
.edc-o-photos:hover { border-color: #3BC1F4; }
.edc-o-note { margin: 0; font-size: 13px; color: #374151; overflow-wrap: anywhere; }
.edc-o-note span { color: #6b7280; }
.edc-main a.edc-o-link { justify-self: start; color: #3BC1F4; font-weight: 700; font-size: 13px; }
.edc-main a.edc-o-link:hover { text-decoration: underline; }
.edc-o-buy { display: grid; gap: 8px; justify-items: end; }
.edc-o-price { font-size: 22px; font-weight: 800; white-space: nowrap; }
.edc-more-btn { display: flex; margin: 12px auto 0; }
.edc-sold-out { margin-top: 18px; }

/* ───────── Pásy dlaždic ───────── */
.edc-rail-sec { margin-top: 34px; }
.edc-rail-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.edc-rail-head h2 { font-size: 18px; font-weight: 700; }
.edc-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; padding: 2px 2px 10px; scroll-snap-type: x mandatory; }
.edc-rail .edc-tile { scroll-snap-align: start; }

/* ───────── Stránka kusu v2 ───────── */
/* Řádky auto + 1fr: když je pravý sloupec delší (další fotky), roste jen řádek obsahu – název ani detaily vlevo se neposunou. */
.edc-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); grid-template-rows: auto 1fr; grid-template-areas: "head gal" "body gal"; column-gap: 28px; align-items: start; }
.edc-c-head { grid-area: head; min-width: 0; margin-bottom: 16px; }
.edc-c-head h1 { font-size: 28px; font-size: clamp(22px, 4.2cqi, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; overflow-wrap: anywhere; }
.edc-c-sub { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-top: 6px; font-size: 15px; color: #4b5563; }
.edc-c-sub b { color: #111827; font-weight: 700; }
.edc-c-sub i { font-style: normal; color: #d1d5db; }
.edc-c-body { grid-area: body; display: grid; gap: 14px; min-width: 0; container: cbody / inline-size; }
/* Pravý sloupec přes název i obsah: scany nahoře, výhody dole – spodní hrana výhod v úrovni spodní hrany detailů vlevo
   (detaily jsou poslední v .edc-c-body). S dalšími fotkami výhody jen sjedou pod scany, levý sloupec se nehýbe.
   Bez lepení (test 0.4.3): sloupec je stejně vysoký jako obsah vlevo, lepicí panel by přejel přes výhody. */
.edc-c-gal { grid-area: gal; align-self: stretch; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.edc-c-gal > .edc-perks { margin-top: auto; }
.edc-box { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.edc-box h3 { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.edc-box p { margin: 0; font-size: 14px; color: #374151; overflow-wrap: anywhere; }
.edc-box p.edc-c-own { padding-bottom: 8px; border-bottom: 1px dashed #e5e7eb; color: #111827; font-weight: 600; }
.edc-c-own span { color: #3BC1F4; font-weight: 700; }
.edc-cond-head { display: flex; align-items: center; gap: 12px; }
.edc-cond-head .edc-cb { height: 34px; min-width: 46px; font-size: 14px; border-radius: 8px; }
.edc-cond-head strong { display: block; font-size: 17px; line-height: 1.2; }
.edc-cond-head .edc-lbl { display: block; font-size: 12px; color: #6b7280; }
.edc-meter { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: 2px; }
.edc-meter span { display: grid; gap: 3px; text-align: center; }
.edc-meter i { display: block; height: 6px; border-radius: 3px; background: #e5e7eb; }
.edc-meter em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #9ca3af; }
.edc-meter .is-on i { background: var(--c); }
.edc-meter .is-on em { color: #111827; }
.edc-box .edc-btn-sm { justify-self: start; margin-top: 2px; }
.edc-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 12px 12px 18px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; }
.edc-buy-price { font-size: 32px; font-weight: 800; line-height: 1; white-space: nowrap; }
.edc-buy-btn { flex: 1 1 200px; max-width: 320px; height: 50px; padding: 0 30px; font-size: 15px; }
.edc-c-specs { display: grid; grid-template-columns: 1fr 1fr; margin: 0; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.edc-c-specs div { display: grid; gap: 1px; min-width: 0; padding: 10px 16px; border-bottom: 1px solid #f0f2f5; }
.edc-c-specs div:nth-child(odd) { border-right: 1px solid #f0f2f5; }
.edc-c-specs div:nth-last-child(-n+2) { border-bottom: 0; }
.edc-c-specs dt { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; }
.edc-c-specs dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.edc-perks { list-style: none; margin: 0; padding: 0; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.edc-perks li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 16px; border-bottom: 1px solid #f0f2f5; font-size: 13px; color: #6b7280; }
.edc-perks li:last-child { border-bottom: 0; }
.edc-pk-ic { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: #e8f8fe; }
.edc-perks strong { display: block; color: #111827; font-size: 13.5px; }
.edc-perks b { color: #111827; }
.edc-dip { position: relative; display: grid; gap: 12px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; }
.edc-dip-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; font-size: 12px; color: #6b7280; }
.edc-dip-head span { display: inline-flex; align-items: center; gap: 6px; }
.edc-dip-head .edc-dip-title { color: #111827; font-weight: 700; }
.edc-dip-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.edc-dip-pair a { display: grid; gap: 6px; min-width: 0; cursor: zoom-in; transition: transform .15s; }
.edc-dip-pair a:hover { transform: translateY(-2px); }
.edc-dip-pair em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.edc-dip-extra { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid #f0f2f5; }
.edc-dip-extra-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.edc-dip-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.edc-dip-thumbs a { display: grid; gap: 3px; width: 70px; padding: 3px; border: 2px solid #e5e7eb; border-radius: 10px; background: #fff; cursor: zoom-in; transition: border-color .15s, transform .15s; }
.edc-dip-thumbs a:hover { border-color: #3BC1F4; transform: translateY(-2px); }
.edc-dip-thumb { display: block; aspect-ratio: 69 / 94; overflow: hidden; border-radius: 3px; background: #eef0f3; }
.edc-dip-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.edc-dip-thumbs em { font-style: normal; font-size: 10px; line-height: 1.2; color: #6b7280; text-align: center; overflow-wrap: anywhere; }
.edc-dip-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding-top: 10px; border-top: 1px dashed #e5e7eb; font-size: 12px; color: #6b7280; }
.edc-dip-note svg { flex-shrink: 0; margin-top: 2px; }
.edc-sold-flag { position: absolute; top: 50px; left: 50%; z-index: 2; transform: translateX(-50%); padding: 6px 16px; border-radius: 50px; background: #111827; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); pointer-events: none; }
.edc-dip.is-sold .edc-dip-pair,
.edc-dip.is-sold .edc-dip-thumbs a { filter: grayscale(.6); opacity: .75; }
.edc-muted { margin: 0; color: #6b7280; }
.edc-m-sticky { display: none; }

/* ───────── Popup (filtr, stavy karet) – tiskne se za obsahem, position: fixed nad hlavičkou core ───────── */
html.edc-scroll-lock,
html.edc-scroll-lock body { overflow: hidden; }
/* Plynulý scroll uvnitř popupu (test na webu 15. 9. 2026 – v 0.4.0 i 0.4.1 se sekal):
   - bez backdrop-filter: rozostření celého okna se přepočítávalo při každém posunu obsahu před ním,
   - panel bez overflow: hidden (ořez posuvné části zaoblenými rohy) – zaoblení nesou hlavička a patička,
   - posuvné části mají neprůhledné pozadí, aby je prohlížeč posouval ve vlastní vrstvě. */
.edc-ov { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 24px; }
.edc-ov::before { content: ""; position: absolute; inset: 0; background: rgba(17, 24, 39, .5); }
.edc-modal { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(780px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); border-radius: 20px; background: #fff; color: #111827; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); font-family: "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.5; text-align: left; }
.edc-m-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid #eef0f3; border-radius: 20px 20px 0 0; background: #fff; }
.edc-m-head h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; color: #111827; }
.edc-m-x { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f3f4f6; color: #374151; cursor: pointer; }
.edc-m-x:hover { background: #e9ecef; }
.edc-m-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 30px; align-items: start; flex: 1 1 auto; min-height: 0; padding: 18px 22px; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.edc-f-col { display: grid; gap: 20px; min-width: 0; }
.edc-f-span { grid-column: 1 / -1; display: grid; gap: 20px; min-width: 0; }
.edc-f-group { min-width: 0; }
.edc-f-group h4 { margin: 0 0 9px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #374151; }
.edc-f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.edc-f-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin: 0; padding: 0 12px; border-radius: 50px; border: 1px solid #e5e7eb; background: #f9fafb; color: #374151; font: inherit; font-size: 13px; line-height: 1; cursor: pointer; }
.edc-f-chip i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.edc-f-chip:hover { border-color: #3BC1F4; }
.edc-f-chip[aria-pressed="true"] { background: #3BC1F4; border-color: #3BC1F4; color: #fff; font-weight: 700; }
.edc-f-chip[aria-pressed="true"] i { box-shadow: 0 0 0 2px #fff; }
.edc-f-check { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; color: #374151; cursor: pointer; }
.edc-f-check input,
.edc-f-list input { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: #3BC1F4; }
.edc-f-find { display: flex; align-items: center; gap: 8px; height: 36px; margin: 0 0 8px; padding: 0 12px; border-radius: 10px; border: 1px solid #e5e7eb; background: #f9fafb; color: #9ca3af; }
.edc-f-find:focus-within { border-color: #3BC1F4; }
.edc-f-find input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; color: #111827; font: inherit; font-size: 13px; }
.edc-f-list { display: grid; gap: 2px; max-height: 188px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; background: #fff; }
.edc-f-list-sm { max-height: 120px; }
.edc-f-list label { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 6px 8px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.edc-f-list label:hover { background: #f0f9ff; }
.edc-f-name { min-width: 0; overflow-wrap: anywhere; }
.edc-f-code { color: #9ca3af; }
.edc-f-list em { margin-left: auto; padding-left: 8px; font-style: normal; font-size: 12px; color: #9ca3af; }
.edc-range { position: relative; height: 28px; }
.edc-range-track,
.edc-range-fill { position: absolute; top: 12px; height: 4px; border-radius: 4px; }
.edc-range-track { left: 0; right: 0; background: #e5e7eb; }
.edc-range-fill { left: 0; width: 100%; background: #3BC1F4; }
.edc-range input { position: absolute; left: 0; top: 4px; width: 100%; height: 20px; margin: 0; padding: 0; background: none; border: 0; pointer-events: none; -webkit-appearance: none; appearance: none; }
.edc-range input::-webkit-slider-runnable-track { background: none; border: 0; }
.edc-range input::-moz-range-track { background: none; border: 0; }
.edc-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #3BC1F4; cursor: pointer; }
.edc-range input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #3BC1F4; cursor: pointer; }
/* Minimální stav: posuvník se 6 zastávkami (NM vlevo … PO vpravo). Lišta a zkratky jsou odsazené o polovinu úchytu,
   takže zastávka k leží přesně pod středem úchytu v hodnotě k. Výplň v barvách stavů od NM po zvolený stav. */
.edc-range-steps .edc-range-track,
.edc-range-steps .edc-range-fill { left: 10px; right: 10px; width: auto; }
.edc-range-steps .edc-range-fill { background: linear-gradient(90deg, #059669, #65a30d, #ca8a04, #ea580c, #dc2626, #7f1d1d); clip-path: inset(0 var(--edc-cond-cut, 0%) 0 0); }
.edc-range-steps input { pointer-events: auto; cursor: pointer; }
.edc-range-steps input::-webkit-slider-thumb { border-color: var(--c, #3BC1F4); }
.edc-range-steps input::-moz-range-thumb { border-color: var(--c, #3BC1F4); }
.edc-range-steps input:focus-visible { outline: 0; }
.edc-range-steps input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(59, 193, 244, .35); }
.edc-range-steps input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px rgba(59, 193, 244, .35); }
.edc-cond-stops { position: relative; height: 24px; margin: 2px 10px 0; }
.edc-cond-stop { position: absolute; top: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; margin: 0; padding: 0 6px; border-radius: 6px; border: 1px solid #e5e7eb; background: #f9fafb; color: #9ca3af; font: inherit; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; line-height: 1; cursor: pointer; transform: translateX(-50%); }
.edc-cond-stop:hover { border-color: var(--c); color: #374151; }
.edc-cond-stop.is-on { border-color: var(--c); background: var(--c); color: #fff; }
.edc-cond-stop[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.edc-range-in { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: #6b7280; }
.edc-range-in input:focus { border-color: #3BC1F4; }
.edc-range-in input { width: 100%; min-width: 0; height: 36px; margin: 0; padding: 0 10px; border-radius: 10px; border: 1px solid #e5e7eb; background: #f9fafb; color: #111827; font: inherit; font-size: 13px; box-shadow: none; }
.edc-m-foot { flex: 0 0 auto; display: flex; justify-content: space-between; gap: 10px; padding: 14px 22px; border-top: 1px solid #eef0f3; border-radius: 0 0 20px 20px; background: #fff; }
.edc-m-foot .edc-btn-add { flex: 1; max-width: 360px; height: 46px; }
.edc-btn-add.is-loading { opacity: .85; }
/* Okno „Stavy karet" (PLAN.md §7.11) – stejný panel jako popup filtru; posuvný seznam s neprůhledným pozadím nese spodní rohy. */
.edc-c-modal { width: min(600px, 100%); }
.edc-cond-list { flex: 1 1 auto; min-height: 0; display: grid; align-content: start; padding: 8px 22px 20px; overflow-y: auto; overscroll-behavior: contain; border-radius: 0 0 20px 20px; background: #fff; outline: 0; }
.edc-cond-list:focus-visible { box-shadow: inset 0 0 0 2px #3BC1F4; }
.edc-cond-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }
.edc-cond-row:last-child { border-bottom: 0; }
.edc-cond-row .edc-cb { height: 26px; min-width: 42px; }
.edc-cond-row strong { display: block; color: #111827; }
.edc-cond-row p { margin: 2px 0 0; color: #4b5563; font-size: 13.5px; }

/* ───────── Zvětšení s lupou (PLAN.md §7.10) – tiskne se za obsahem, obrázek na výšku okna ───────── */
.edc-lb { position: fixed; inset: 0; z-index: 10000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(8, 11, 16, .9); color: #fff; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.4; }
.edc-lb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-size: 13px; }
.edc-lb-caption { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.edc-lb-top b { font-weight: 700; }
.edc-lb-x,
.edc-lb-nav { display: grid; place-items: center; margin: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.edc-lb-x:hover,
.edc-lb-nav:hover { background: rgba(255, 255, 255, .18); }
.edc-lb-x { flex: 0 0 40px; width: 40px; height: 40px; margin-left: auto; }
.edc-lb-stage { position: relative; display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 0; overflow: hidden; }
.edc-lb-img { height: calc(100% - 16px); aspect-ratio: 69 / 94; max-width: calc(100% - 110px); }
.edc-lb-pic { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; cursor: crosshair; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.edc-lb.is-zoomed .edc-lb-pic { cursor: grab; }
.edc-lb-nav { position: absolute; top: 50%; width: 44px; height: 44px; transform: translateY(-50%); }
.edc-lb-nav.is-prev { left: 16px; }
.edc-lb-nav.is-next { right: 16px; }
/* Čočka 300 px včetně okraje (test 0.4.3: 200 px ukazovala málo), přímo v okně nad lištou i miniaturami;
   vnitřní obrázek má rozměr obrázku ve scéně a zvětšuje se od levého horního rohu. */
.edc-lb-lens { position: absolute; left: 0; top: 0; z-index: 3; display: none; box-sizing: border-box; width: 300px; height: 300px; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: #cfd3d7; box-shadow: 0 12px 34px rgba(0, 0, 0, .55); pointer-events: none; }
.edc-lb-lens img { position: absolute; left: 0; top: 0; display: block; max-width: none; object-fit: contain; transform-origin: 0 0; }
.edc-lb-thumbs { display: flex; justify-content: center; gap: 8px; padding: 12px; overflow-x: auto; }
.edc-lb-th { flex: 0 0 52px; width: 52px; margin: 0; padding: 3px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .25); background: transparent; cursor: pointer; }
.edc-lb-th img { display: block; width: 100%; height: auto; aspect-ratio: 69 / 94; object-fit: cover; border-radius: 3px; }
.edc-lb-th[aria-pressed="true"] { border-color: #3BC1F4; }
.edc-lb-hint { display: none; font-size: 12px; color: rgba(255, 255, 255, .7); }
@media (hover: none) {
    .edc-lb-hint { display: block; }
}

/* ───────── Dotyk: pole a výběry aspoň 16 px (iPhone jinak při klepnutí přiblíží stránku) ───────── */
@media (hover: none) and (pointer: coarse) {
    .edc-tb-search input,
    .edc-tb-sort select,
    .edc-o-tools select,
    .edc-f-find input,
    .edc-range-in input { font-size: 16px; }
}

/* ───────── Mobil (šířka okna) ───────── */
@media (max-width: 640px) {
    .edc-toolbar { grid-template-columns: 1fr 1fr auto; }
    .edc-tb-search { grid-column: 1 / -1; }
    .edc-tb-sort select { width: 100%; }
    .edc-tb-btn { justify-content: center; }
    .edc-grid { gap: 10px; }
    .edc-ov { place-items: end stretch; padding: 0; }
    .edc-modal { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; }
    .edc-m-body { grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .edc-m-foot { padding: 12px 16px; border-radius: 0; }
    .edc-cond-list { padding: 4px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 0; }
    .edc-rail { grid-auto-columns: 142px; }
    .edc-c-sub { font-size: 14px; }
    .edc-dip-head .edc-dip-hint { display: none; }
    .edc-buy-price { font-size: 26px; }
    .edc-buy-btn { height: 46px; padding: 0 18px; }
    .edc-lb-top { flex-wrap: wrap; }
    .edc-lb-caption { flex: 1 1 0; }
    .edc-lb-hint { display: block; order: 3; flex-basis: 100%; }
    .edc-lb-img { width: calc(100% - 20px); max-width: calc(100% - 20px); height: auto; max-height: calc(100% - 16px); }
    .edc-lb-nav { display: none; }
    /* Lepicí lišta s cenou – poslední prvek obsahu, přes okraje obalu core (14 px). */
    .edc-m-sticky { position: sticky; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px -14px 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #e5e7eb; background: #fff; box-shadow: 0 -6px 16px rgba(0, 0, 0, .06); }
    .edc-m-sticky > div { min-width: 0; }
    .edc-m-sticky span { display: block; overflow: hidden; font-size: 12px; color: #6b7280; white-space: nowrap; text-overflow: ellipsis; }
    .edc-m-sticky b { font-size: 18px; white-space: nowrap; }
    .edc-m-sticky .edc-btn-add { flex-shrink: 0; }
}
@media (max-width: 600px) {
    .edc-m-sticky { margin-inline: -10px; padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .edc-btn-add,
    .edc-toast,
    .edc-tile { transition: none; }
    .edc-spin { animation-duration: 2s; }
}

/* ───────── Šířka obsahu (container main) – stejná pravidla jako EdcSingles columnsFor bez JS ───────── */
@container main (max-width: 899.98px) {
    .edc-cols-5,
    .edc-cols-6 { --cols: 4; }
}
@container main (max-width: 699.98px) {
    .edc-grid { --cols: 3; }
}
@container main (max-width: 640px) {
    .edc-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
    .edc-hero-img { width: 190px; justify-self: center; }
    .edc-offer { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 10px; }
    .edc-o-buy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid #f0f2f5; }
}
@container main (max-width: 559.98px) {
    .edc-details { grid-template-columns: minmax(0, 1fr); }
    .edc-o-scans { flex-direction: column; gap: 6px; }
    .edc-o-scan { width: 64px; }
    .edc-toolbar { grid-template-columns: 1fr 1fr auto; }
    .edc-tb-search { grid-column: 1 / -1; }
    .edc-tb-sort select { width: 100%; }
    .edc-tb-btn { justify-content: center; }
}
@container main (max-width: 479.98px) {
    .edc-grid { --cols: 2; }
}
/* Stránka kusu: dvousloupcově jen s alespoň 780 px obsahu; jinak název → galerie → zbytek a galerie není lepicí. */
@container main (max-width: 780px) {
    /* Jeden sloupec: název → scany → obsah → výhody (pravý sloupec se rozpustí do mřížky). */
    .edc-copy { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "gal" "body" "perks"; }
    .edc-c-gal { display: contents; }
    .edc-c-gal > .edc-dip { grid-area: gal; max-width: 520px; margin-bottom: 14px; }
    .edc-c-gal > .edc-perks { grid-area: perks; margin-top: 14px; }
}
@container cbody (max-width: 380px) {
    .edc-c-specs { grid-template-columns: minmax(0, 1fr); }
    .edc-c-specs div:nth-child(odd) { border-right: 0; }
    .edc-c-specs div:nth-last-child(2) { border-bottom: 1px solid #f0f2f5; }
    .edc-buy-btn { max-width: none; }
}
