/* ==========================================================================
   motopneu.cz — Redesign 2026
   ===========================================================================
   - Plain CSS (žádný build), kompletní design system
   - Načítá se přes uni/head-modern.php pokud `USE_REDESIGN_2026 = true`
   - Aggresivně přepisuje legacy class-names z design.css/menu.css/boxy-hlavni.css
   ========================================================================== */

/* ==========================================================================
   1. MODERN CSS RESET (modern-normalize style)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overflow-x: clip; }
body { margin: 0; min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; margin: 0; }
ul, ol { padding-left: 1.25em; margin: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }
:where(:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ==========================================================================
   2. DESIGN TOKENS
   ========================================================================== */

:root {
    /* Brand */
    --color-primary: #F28C1C;
    --color-primary-hover: #E07A0F;
    --color-primary-pressed: #C46808;
    --color-primary-soft: #FFF1E0;
    --color-primary-soft-hover: #FFE6CC;

    /* Neutrals */
    --color-bg: #FFFFFF;
    --color-bg-subtle: #F9FAFB;
    --color-bg-muted: #F3F4F6;
    --color-bg-emphasis: #1F2937;
    --color-surface: #FFFFFF;
    --color-surface-overlay: rgba(255, 255, 255, 0.96);

    --color-text: #111827;
    --color-text-secondary: #4B5563;
    --color-text-muted: #6B7280;
    --color-text-on-primary: #FFFFFF;
    --color-text-on-dark: #F9FAFB;

    --color-border: #E5E7EB;
    --color-border-strong: #D1D5DB;
    --color-border-subtle: #F3F4F6;

    /* Semantic */
    --color-success: #10B981;
    --color-success-bg: #ECFDF5;
    --color-success-text: #065F46;
    --color-danger: #EF4444;
    --color-danger-bg: #FEF2F2;
    --color-danger-text: #991B1B;
    --color-warning: #F59E0B;
    --color-warning-bg: #FFFBEB;
    --color-warning-text: #92400E;
    --color-info: #3B82F6;
    --color-info-bg: #EFF6FF;
    --color-info-text: #1E40AF;

    /* Sklad badges */
    --color-stock-in: #10B981;
    --color-stock-low: #F59E0B;
    --color-stock-out: #6B7280;

    /* Spacing scale (8px grid) */
    --space-0: 0;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 64px;
    --space-11: 80px;
    --space-12: 96px;

    /* Typography */
    --font-sans: "Inter", "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    --fs-xs: 0.75rem;       /* 12px */
    --fs-sm: 0.875rem;      /* 14px */
    --fs-base: 1rem;        /* 16px */
    --fs-md: 1.125rem;      /* 18px */
    --fs-lg: 1.375rem;      /* 22px */
    --fs-xl: 1.75rem;       /* 28px */
    --fs-2xl: 2.25rem;      /* 36px */
    --fs-3xl: 3rem;         /* 48px */
    --fs-4xl: 3.75rem;      /* 60px */

    --lh-tight: 1.2;
    --lh-normal: 1.5;
    --lh-relaxed: 1.7;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Radius */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
    --shadow-sm: 0 2px 4px rgba(17, 24, 39, 0.06), 0 1px 2px rgba(17, 24, 39, 0.04);
    --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 16px 48px rgba(17, 24, 39, 0.12);
    --shadow-xl: 0 24px 64px rgba(17, 24, 39, 0.16);
    --shadow-glow: 0 0 0 4px rgba(242, 140, 28, 0.18);
    /* WCAG 2.4.11 — focus ring se 3:1 kontrastem proti orange brand;
       použito jako outline pro tlačítka s primary background. */
    --color-focus-ring: #1F2937;
    --color-focus-ring-on-dark: #FFFFFF;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 120ms;
    --duration: 160ms;
    --duration-slow: 240ms;
    --duration-slower: 400ms;

    --transition: all var(--duration) var(--ease-out);
    --transition-fast: all var(--duration-fast) var(--ease-out);

    /* Layout */
    --container: 1280px;
    --container-wide: 1440px;
    --container-tight: 960px;
    --container-narrow: 720px;
    --header-h: 64px;
    --header-h-mobile: 56px;
    --header-top-h: 32px;
    --header-top-h-mobile: 28px;
    --bottom-nav-h: 64px;

    /* Z-index scale
       --z-popover (1050) sits between --z-modal (1000) a --z-toast (1100):
       header dropdowns (login, currency) must být nad sticky headerem (200)
       i nad cart pillem (z-index: 1) v top-actions, ale pod toasty a cookie
       bannerem aby kritické notifikace nikdy nezmizely. */
    --z-base: 0;
    --z-sticky: 100;
    --z-header: 200;
    --z-drawer: 900;
    --z-modal: 1000;
    --z-popover: 1050;
    --z-toast: 1100;
    --z-cookie: 1200;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   3. BASE ELEMENTS
   ========================================================================== */

html {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: var(--lh-normal);
    font-size: 16px;
}

body {
    font-size: var(--fs-base);
    background-color: var(--color-bg);
    background-image: none;
    background-repeat: no-repeat;
    color: var(--color-text);
    font-family: var(--font-sans);
}
/* Defenzivní reset: legacy design.css/modern.css/mobile1.css používají
   `body { background: #fff url(components/wall.jpg) ... }` (tire-tracks pattern).
   Když je v redesign módu kvůli HTML kompatibilitě dohraně i design.css/modern.css
   (kdokoli zapomene `noLegacyCss => false` nebo jiný include), longhand
   `background-image: none` přepíše shorthand bez nutnosti !important.
   first.php (body.first-page) má samostatný styling níže — neovlivněno. */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
    color: var(--color-text);
}

h1 { font-size: var(--fs-2xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
h5 { font-size: var(--fs-base); }
h6 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-secondary); }

@media (min-width: 768px) {
    h1 { font-size: var(--fs-3xl); }
    h2 { font-size: var(--fs-2xl); }
    h3 { font-size: var(--fs-xl); }
}

p { color: var(--color-text-secondary); line-height: var(--lh-normal); }
strong, b { font-weight: var(--fw-semibold); color: var(--color-text); }

a { color: var(--color-primary); transition: color var(--duration) var(--ease-out); }
a:hover { color: var(--color-primary-hover); }
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: var(--radius-xs); }

hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-7) 0; }

/* Selection */
::selection { background: var(--color-primary-soft); color: var(--color-text); }

/* Scrollbar polish (WebKit) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: var(--radius-full); border: 3px solid var(--color-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* ==========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-4);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-6); } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-7); } }

.container--wide { max-width: var(--container-wide); }
.container--tight { max-width: var(--container-tight); }
.container--narrow { max-width: var(--container-narrow); }
.container--full { max-width: 100%; }

.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack--sm { gap: var(--space-2); }
.stack--md { gap: var(--space-5); }
.stack--lg { gap: var(--space-7); }
.stack--xl { gap: var(--space-10); }

.row { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.row--center { align-items: center; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.row--nowrap { flex-wrap: nowrap; }

.grid { display: grid; gap: var(--space-4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grid--auto-lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--gap-lg { gap: var(--space-6); }
.grid--gap-xl { gap: var(--space-8); }

@media (max-width: 767px) {
    .grid--2 { grid-template-columns: 1fr; }
    .grid--3 { grid-template-columns: 1fr; }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.section { padding-block: var(--space-8); }
.section--sm { padding-block: var(--space-6); }
.section--lg { padding-block: var(--space-11); }

@media (min-width: 768px) {
    .section { padding-block: var(--space-10); }
    .section--lg { padding-block: var(--space-12); }
}

.split { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) {
    .split { grid-template-columns: 1fr 380px; }
    .split--detail { grid-template-columns: 1fr 420px; }
}

/* ==========================================================================
   5. UTILITIES
   ========================================================================== */

.sr-only {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-4);
    z-index: var(--z-toast);
    padding: var(--space-3) var(--space-4);
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border-radius: var(--radius);
    font-weight: var(--fw-semibold);
    transition: top var(--duration) var(--ease-out);
}
.skip-link:focus, .skip-link:focus-visible { top: var(--space-3); color: var(--color-text-on-primary); }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-primary { color: var(--color-primary); }

.fw-medium { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold { font-weight: var(--fw-bold); }

.fs-xs { font-size: var(--fs-xs); }
.fs-sm { font-size: var(--fs-sm); }
.fs-md { font-size: var(--fs-md); }
.fs-lg { font-size: var(--fs-lg); }

.hidden { display: none !important; }
/* Bottom-nav padding pro veškerý content (desktop = 0, mobile = bottom-nav-h) */
@media (max-width: 1023px) {
    body {
        padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
    }
}
@media (max-width: 767px)  { .hide-mobile  { display: none !important; } }
@media (min-width: 768px)  { .hide-tablet  { display: none !important; } }
@media (min-width: 1024px) { .hide-desktop { display: none !important; } }
@media (max-width: 767px)  { .show-mobile-only  {  } .show-mobile-only-table { display: table !important; } }
@media (min-width: 1024px) { .show-desktop-only-flex { display: flex !important; } }

.divider { border: 0; border-top: 1px solid var(--color-border); margin-block: var(--space-6); }

/* Icon helper — pro <svg class="icon"><use href="components/icons.svg#icon-cart"/></svg> */
.icon {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.5em; height: 1.5em; }
.icon--xl { width: 2em; height: 2em; }

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.btn,
button.btn,
input.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: var(--space-2) var(--space-5);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--color-bg-muted);
    color: var(--color-text);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    user-select: none;
    position: relative;
}
.btn:hover { background: var(--color-border-subtle); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
/* WCAG 2.4.11 Focus Appearance — výrazný dvojitý ring:
   tmavý outline (3:1 proti orange CTA i bílému pozadí) + světlý halo pro vrstvení. */
.btn:focus-visible {
    outline: 2px solid var(--color-focus-ring);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85), 0 0 0 6px var(--color-focus-ring);
}
.btn--primary:focus-visible,
.btn-primary:focus-visible {
    /* na primary (orange) ploše: bílý ring + tmavý outer obrys */
    outline: 2px solid var(--color-focus-ring-on-dark);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(31, 41, 55, 0.6);
}

.btn--primary,
.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border-color: var(--color-primary);
}
.btn--primary:hover,
.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-text-on-primary);
}
.btn--primary:active { background: var(--color-primary-pressed); }

.btn--secondary {
    background: var(--color-bg);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}
.btn--secondary:hover { background: var(--color-bg-subtle); border-color: var(--color-text-muted); }

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--color-bg-muted); box-shadow: none; transform: none; }

.btn--danger { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }
.btn--danger:hover { filter: brightness(0.92); color: #fff; }

.btn--success { background: var(--color-success); color: #fff; border-color: var(--color-success); }

.btn--icon {
    width: 44px;
    min-width: 44px;
    padding: 0;
    aspect-ratio: 1;
}
.btn--icon .icon { width: 1.25em; height: 1.25em; }

.btn--sm { min-height: 36px; padding: var(--space-1) var(--space-3); font-size: var(--fs-sm); }
.btn--sm.btn--icon { width: 36px; min-width: 36px; }

.btn--lg { min-height: 52px; padding: var(--space-3) var(--space-7); font-size: var(--fs-md); }
.btn--lg.btn--icon { width: 52px; min-width: 52px; }

.btn--block { display: flex; width: 100%; }

.btn--loading { color: transparent !important; pointer-events: none; }
.btn--loading::after {
    content: "";
    position: absolute;
    width: 18px; height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: btn-spin 600ms linear infinite;
    color: var(--color-text-on-primary);
}
.btn--secondary.btn--loading::after,
.btn--ghost.btn--loading::after { color: var(--color-text); }

@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Button group */
.btn-group { display: inline-flex; align-items: stretch; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-top-left-radius: var(--radius); border-bottom-left-radius: var(--radius); }
.btn-group .btn:last-child { border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.btn-group .btn:not(:first-child) { margin-left: -1px; }

/* ==========================================================================
   7. INPUTS, FORMS
   ========================================================================== */

.input,
input[type="text"].input,
input[type="email"].input,
input[type="tel"].input,
input[type="password"].input,
input[type="number"].input,
input[type="search"].input,
select.input,
textarea.input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
    appearance: none;
    -webkit-appearance: none;
}
textarea.input { min-height: 96px; resize: vertical; }
select.input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-9);
}

.input::placeholder { color: var(--color-text-muted); }
.input:hover { border-color: var(--color-text-muted); }
.input:focus, .input:focus-visible {
    outline: 0;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.input:disabled, .input[disabled], .input[aria-disabled="true"] {
    background: var(--color-bg-muted);
    color: var(--color-text-muted);
    cursor: not-allowed;
}

.input[aria-invalid="true"],
.input.is-invalid {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.input--lg { min-height: 52px; font-size: var(--fs-md); padding: var(--space-3) var(--space-5); }
.input--sm { min-height: 36px; font-size: var(--fs-sm); padding: var(--space-2) var(--space-3); }

/* Search input s ikonou */
.input-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.input-search > .icon,
.input-search > svg.icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    pointer-events: none;
    z-index: 1;
}
.input-search > .input,
.input-search > input,
.input-search input.input,
.input-search input[type="search"],
.input-search input[type="text"] {
    padding-left: 44px !important;
    width: 100% !important;
}

/* Field group s labelem */
.field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.field label,
.field .field__label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
}
.field--required label::after,
.field--required .field__label::after {
    content: " *";
    color: var(--color-danger);
}
.field__hint, .field-hint {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}
.field-error {
    font-size: var(--fs-xs);
    color: var(--color-danger);
    margin-top: var(--space-1);
}

/* Checkbox + radio */
.check {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    padding: var(--space-2) 0;
}
.check input[type="checkbox"],
.check input[type="radio"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
    accent-color: var(--color-primary);
}

/* Chip selector — multiple choice rozměrů, kategorií apod. */
.chip-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: var(--transition);
}
.chip:hover { background: var(--color-bg-subtle); border-color: var(--color-text-muted); }
.chip[aria-pressed="true"], .chip.is-active, .chip--active {
    background: var(--color-primary-soft);
    color: var(--color-primary-pressed);
    border-color: var(--color-primary);
}
.chip--remove::after {
    content: "×";
    margin-left: var(--space-1);
    font-size: 1.2em;
    line-height: 1;
}

/* Quantity input */
.qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
}
.qty button {
    width: 40px;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: var(--fs-md);
    line-height: 1;
    transition: background var(--duration) var(--ease-out);
}
.qty button:hover { background: var(--color-bg-muted); }
.qty input {
    width: 56px;
    border: 0;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    text-align: center;
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    appearance: textfield;
    -moz-appearance: textfield;
    background: var(--color-bg);
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ==========================================================================
   8. CARDS
   ========================================================================== */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    transition: var(--transition);
}
.card--hover:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--shadow { border: 0; box-shadow: var(--shadow-sm); }
.card--shadow.card--hover:hover { box-shadow: var(--shadow-md); }
.card--flat { background: var(--color-bg-subtle); border-color: transparent; }

.card__header { margin-bottom: var(--space-4); }
.card__title { font-size: var(--fs-lg); font-weight: var(--fw-semibold); margin: 0; }
.card__subtitle { font-size: var(--fs-sm); color: var(--color-text-muted); margin-top: var(--space-1); }
.card__body { color: var(--color-text-secondary); }
.card__footer { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-border-subtle); }

/* Product card — hlavní e-shop komponenta */
.card-product {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    height: 100%;
}
.card-product:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.card-product__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--color-bg-muted);
    overflow: hidden;
}
.card-product__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-4);
    transition: transform var(--duration-slow) var(--ease-out);
}
.card-product:hover .card-product__media img {
    transform: scale(1.06);
}
.card-product__badges {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    z-index: 1;
}
.card-product__wishlist {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    transition: var(--transition);
    cursor: pointer;
    z-index: 1;
}
.card-product__wishlist:hover { color: var(--color-danger); transform: scale(1.08); }
.card-product__wishlist[aria-pressed="true"] { color: var(--color-danger); }

.card-product__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    flex: 1;
}
.card-product__brand {
    font-size: var(--fs-xs);
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text-muted);
    font-weight: var(--fw-semibold);
}
.card-product__title {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    color: var(--color-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}
.card-product__title:hover { color: var(--color-primary); }
.card-product__size {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    line-height: var(--lh-tight);
    margin-top: calc(var(--space-1) * -1);
}
.card-product__meta {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.card-product__rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--fs-xs);
    color: var(--color-text-secondary);
}
.card-product__rating .icon { color: var(--color-warning); width: 14px; height: 14px; fill: currentColor; }

.card-product__footer {
    margin-top: auto;
    padding-top: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.card-product__price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2);
    flex-wrap: wrap;
}
.card-product__price {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}
.card-product__price--old {
    font-size: var(--fs-sm);
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-weight: var(--fw-regular);
}
.card-product__price-novat {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.card-product .btn { width: 100%; }

/* Trust card */
.card-trust {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
}
.card-trust__icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: var(--radius);
    flex-shrink: 0;
}
.card-trust__icon .icon { width: 1.25em; height: 1.25em; }
.card-trust__title {
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-1);
}
.card-trust__desc {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
    line-height: var(--lh-normal);
}

/* ==========================================================================
   9. BADGES
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px var(--space-2);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    line-height: 1.4;
    border-radius: var(--radius-sm);
    background: var(--color-bg-muted);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge--primary { background: var(--color-primary-soft); color: var(--color-primary-pressed); }
.badge--success, .badge--stock-in { background: var(--color-success-bg); color: var(--color-success-text); }
.badge--warning, .badge--stock-low { background: var(--color-warning-bg); color: var(--color-warning-text); }
.badge--danger, .badge--stock-out { background: var(--color-danger-bg); color: var(--color-danger-text); }
.badge--info { background: var(--color-info-bg); color: var(--color-info-text); }
.badge--discount { background: var(--color-danger); color: #fff; }
.badge--new { background: var(--color-primary); color: #fff; }
.badge--top { background: linear-gradient(135deg, #FFD700, #FFA500); color: #5a3a00; }

.badge--dot::before {
    content: "";
    width: 6px; height: 6px;
    background: currentColor;
    border-radius: 50%;
    display: inline-block;
}

/* ==========================================================================
   10. ALERTS
   ========================================================================== */

.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: var(--color-bg-muted);
    color: var(--color-text);
    font-size: var(--fs-sm);
}
.alert .icon { flex-shrink: 0; margin-top: 2px; }
.alert__title { font-weight: var(--fw-semibold); margin-bottom: var(--space-1); }
.alert__close {
    margin-left: auto;
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: var(--transition);
}
.alert__close:hover { opacity: 1; background: rgba(0, 0, 0, 0.05); }

.alert--success, .alert.alert-success { background: var(--color-success-bg); border-color: var(--color-success); color: var(--color-success-text); }
.alert--danger, .alert.alert-danger, .alert--error { background: var(--color-danger-bg); border-color: var(--color-danger); color: var(--color-danger-text); }
.alert--warning { background: var(--color-warning-bg); border-color: var(--color-warning); color: var(--color-warning-text); }
.alert--info { background: var(--color-info-bg); border-color: var(--color-info); color: var(--color-info-text); }

/* ==========================================================================
   11. TABS
   ========================================================================== */

.tabs {
    display: flex;
    gap: var(--space-1);
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
    padding: var(--space-3) var(--space-5);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    color: var(--color-text-secondary);
    border: 0;
    background: transparent;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.tab:hover { color: var(--color-text); }
.tab[aria-selected="true"], .tab.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-panel { padding-block: var(--space-6); }
.tab-panel[hidden] { display: none; }

/* ==========================================================================
   12. PAGINATION
   ========================================================================== */

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding-block: var(--space-7);
    list-style: none;
    flex-wrap: wrap;
}
.pager__item, .pager a, .pager__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.pager__item:hover, .pager a:hover { background: var(--color-bg-subtle); border-color: var(--color-border-strong); }
.pager__current, .pager .is-active, .pager [aria-current="page"] {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border-color: var(--color-primary);
    pointer-events: none;
}

/* Čitelný souhrn nad stránkováním ("Nalezeno X produktů · Strana Y z Z") */
.pagination-summary {
    margin: var(--space-4) 0 var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}
.pagination-summary strong {
    color: var(--color-text);
    font-weight: var(--fw-semibold);
}

/* ==========================================================================
   13. MODALS, DRAWERS
   ========================================================================== */

.modal-backdrop, .drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    z-index: var(--z-drawer);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-slow) var(--ease-out);
}
.modal-backdrop.is-open, .drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: var(--color-surface);
    z-index: calc(var(--z-drawer) + 1);
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-out);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.drawer.is-open { transform: translateX(0); }

.drawer--left { left: 0; right: auto; transform: translateX(-100%); }
.drawer--left.is-open { transform: translateX(0); }

.drawer--bottom {
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    transform: translateY(100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.drawer--bottom.is-open { transform: translateY(0); }

.drawer__header {
    padding: var(--space-5);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-shrink: 0;
}
.drawer__title {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    margin: 0;
}
.drawer__close {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--color-text-muted);
    transition: var(--transition);
}
.drawer__close:hover { background: var(--color-bg-muted); color: var(--color-text); }
.drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-5);
}
.drawer__footer {
    padding: var(--space-5);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
    flex-shrink: 0;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__dialog {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 560px;
    width: 100%;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    transform: scale(0.96);
    transition: transform var(--duration-slow) var(--ease-out);
}
.modal.is-open .modal__dialog { transform: scale(1); }
.modal--lg .modal__dialog { max-width: 840px; }
.modal--xl .modal__dialog { max-width: 1100px; }

/* ==========================================================================
   14. TOASTS
   ========================================================================== */

.toast-stack {
    position: fixed;
    top: var(--space-5);
    right: var(--space-5);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    pointer-events: none;
    max-width: 400px;
}
.toast {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    pointer-events: auto;
    animation: toast-in var(--duration-slow) var(--ease-out);
}
.toast--success { border-left-color: var(--color-success); }
.toast--danger, .toast--error { border-left-color: var(--color-danger); }
.toast--warning { border-left-color: var(--color-warning); }
.toast--info { border-left-color: var(--color-info); }

.toast__title { font-weight: var(--fw-semibold); margin-bottom: var(--space-1); }
.toast__body { color: var(--color-text-secondary); font-size: var(--fs-sm); }
.toast__close {
    margin-left: auto;
    color: var(--color-text-muted);
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}
.toast.is-leaving { animation: toast-out var(--duration-slow) var(--ease-in) forwards; }

@keyframes toast-in { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-out { to { transform: translateX(120%); opacity: 0; } }

/* ==========================================================================
   15. SKELETON LOADERS
   ========================================================================== */

@keyframes skel-pulse {
    0%, 100% { background-color: var(--color-bg-muted); }
    50% { background-color: var(--color-border-subtle); }
}

.skel {
    background: var(--color-bg-muted);
    border-radius: var(--radius);
    animation: skel-pulse 1.6s ease-in-out infinite;
}
.skel--line { height: 14px; margin-bottom: var(--space-2); }
.skel--line-lg { height: 20px; }
.skel--circle { border-radius: 50%; aspect-ratio: 1; }
.skel--card { aspect-ratio: 3/4; min-height: 240px; }

/* ==========================================================================
   16. BREADCRUMBS
   ========================================================================== */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) 0;
    font-size: var(--fs-sm);
    list-style: none;
    margin: 0 0 var(--space-3);
}
/* Bare-bones <li> markup (uni/breadcrumbs.php) */
.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
}
.breadcrumb li:not(:last-child)::after {
    content: "›";
    color: var(--color-border);
    font-weight: var(--fw-regular);
    margin-left: var(--space-1);
}
.breadcrumb li a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}
.breadcrumb li a:hover,
.breadcrumb li a:focus-visible {
    color: var(--color-primary);
    text-decoration: underline;
}
.breadcrumb li [aria-current="page"],
.breadcrumb li span {
    color: var(--color-text);
    font-weight: var(--fw-medium);
}
/* BEM variant — keep for forward compat */
.breadcrumb__item { display: inline-flex; align-items: center; gap: var(--space-2); }
.breadcrumb__item:not(:last-child)::after {
    content: "›";
    color: var(--color-border);
    font-weight: var(--fw-regular);
}
.breadcrumb__link { color: var(--color-text-muted); transition: color var(--duration); text-decoration: none; }
.breadcrumb__link:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumb__current { color: var(--color-text); font-weight: var(--fw-medium); }
[aria-current="page"].breadcrumb__link { color: var(--color-text); pointer-events: none; }

/* ==========================================================================
   17. HEADER (sticky top)
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--color-surface-overlay);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--duration) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------------
   Top strip (utility bar) — 32 px, dark, full-width, 3 zones
   ------------------------------------------------------------------ */
.site-header__top {
    width: 100%;
    background: var(--color-bg-emphasis);
    color: var(--color-text-on-dark);
    font-size: 12.5px;
    line-height: 1;
    min-height: var(--header-top-h);
}
.site-header__top-inner {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-4);
    min-height: var(--header-top-h);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-4);
}
@media (min-width: 768px) { .site-header__top-inner { padding-inline: var(--space-6); } }
@media (min-width: 1024px) { .site-header__top-inner { padding-inline: var(--space-7); } }

.site-header__top a,
.site-header__top button.site-header__top-link {
    color: inherit;
    opacity: 0.88;
    transition: opacity 200ms var(--ease-out), color 200ms var(--ease-out);
}
.site-header__top a:hover,
.site-header__top a:focus-visible,
.site-header__top button.site-header__top-link:hover,
.site-header__top button.site-header__top-link:focus-visible {
    opacity: 1;
    color: var(--color-primary);
}

.site-header__top-notice {
    justify-self: start;
    color: var(--color-text-on-dark);
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.site-header__top-notice a { font-weight: var(--fw-medium); text-decoration: underline; text-underline-offset: 2px; }

.site-header__top-contact {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.site-header__top-contact a { font-weight: var(--fw-medium); }
.site-header__top-contact span { opacity: 0.45; }

.site-header__top-actions {
    position: relative; /* parent stacking context pro login/currency popovery */
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    min-height: var(--header-top-h);
}
.site-header__top-actions > * { display: inline-flex; align-items: center; }

.site-header__top-link {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    color: inherit;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    font-weight: var(--fw-medium);
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: auto;          /* override global 44px on mobile */
}
.site-header__top-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    border-radius: 2px;
}
.site-header__logout { margin: 0; padding: 0; display: inline-flex; }

.site-header__user-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-weight: var(--fw-medium);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.9;
}
.site-header__user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------------------------
   Main header — 64 px, white, 3 zones (logo / nav / cart)
   ------------------------------------------------------------------ */
.site-header__main {
    width: 100%;
    min-height: var(--header-h);
}
.site-header__main-inner {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-4);
    min-height: var(--header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-5);
    align-items: center;
}
@media (min-width: 768px) { .site-header__main-inner { padding-inline: var(--space-6); } }
@media (min-width: 1024px) {
    .site-header__main-inner {
        padding-inline: var(--space-7);
        /* logo / inline search / nav / cart */
        grid-template-columns: auto minmax(220px, 360px) 1fr auto;
        gap: var(--space-4);
    }
}

/* ------------------------------------------------------------------
   Header inline search form (desktop ≥1024 px)
   ------------------------------------------------------------------
   CHANGE 2026-05-14 (Wave M, dark top-strip polish):
     - Background: bg-subtle → bg (white) pro lepší kontrast s top strip dark.
     - Border: var(--color-border) → var(--color-border-strong) — defined edge.
     - Search icon: 18×18 → 20×20 (lepší vizibilita), width:36px slot.
     - Input padding tweaked (4px left after icon, 12px right before submit).
     - Placeholder opacity 0.95 pro lepší čitelnost (před: opacity defaults).
     - Focus: var(--shadow-glow) 4px ring + 1px primary border.
     - Submit button: padding 0 16px + soft orange drop-shadow hover.
     - Native WebKit search decorations potlačeny (custom dropdown UI).
   CHANGE 2026-05-14 (Wave N polish — "vypadá divně" fix):
     - Border weight 1px → 1.5px pro silnější perceptuální váhu vůči white bg
       (D1D5DB na FFFFFF má kontrast jen ~1.45:1 → 1.5px to vyrovná opticky).
     - Hover border: muted gray (#6B7280) → primary-soft-edge rgba(242,140,28,0.55)
       — delight tint místo "vypadá to mrtvě".
     - Hover bg: bg → bg-subtle (#F9FAFB) — subtle lift signal.
     - Focus border: 1px → 1.5px primary (matches base weight).
     - Submit button: height calc/margin → absolute inset 4px (precision corner radius).
     - Submit padding 0 16px → 0 18px (lepší optická balance s pill border).
   ------------------------------------------------------------------ */
.site-header__search-form {
    position: relative;
    display: none;
    align-items: center;
    width: 100%;
    height: 44px;
    background: var(--color-bg);
    border: 1.5px solid var(--color-border-strong);
    border-radius: var(--radius-full);
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
}
.site-header__search-form:hover {
    background: var(--color-bg-subtle);
    border-color: rgba(242, 140, 28, 0.55);
}
.site-header__search-form:focus-within {
    background: var(--color-bg);
    border-color: var(--color-primary);
    border-width: 1.5px;
    box-shadow: var(--shadow-glow);
}
.site-header__search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    padding-left: var(--space-3);
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: color var(--duration-fast) var(--ease-out);
}
.site-header__search-form:focus-within .site-header__search-icon {
    color: var(--color-primary);
}
.site-header__search-icon svg {
    width: 20px;
    height: 20px;
}
.site-header__search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 56px 0 var(--space-1);
    background: transparent;
    border: 0;
    font-size: var(--fs-sm);
    color: var(--color-text);
    outline: 0;
    line-height: 1;
    font-family: inherit;
}
.site-header__search-input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.95;
    font-weight: var(--fw-regular, 400);
}
/* Remove native search clear (we have custom dropdown) and unwanted decorations */
.site-header__search-input::-webkit-search-decoration,
.site-header__search-input::-webkit-search-cancel-button,
.site-header__search-input::-webkit-search-results-button,
.site-header__search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}
.site-header__search-submit {
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border: 0;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}
.site-header__search-submit:hover {
    background: var(--color-primary-pressed, var(--color-primary));
    box-shadow: 0 4px 12px rgba(242, 140, 28, 0.25);
    transform: translateY(-1px);
}
.site-header__search-submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
    box-shadow: 0 0 0 3px var(--color-primary);
}
@media (min-width: 1024px) {
    .site-header__search-form { display: flex; }
}

.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text);
    font-weight: var(--fw-bold);
    font-size: var(--fs-lg);
    line-height: 1;
}
.site-logo img { height: 44px; max-height: 48px; width: auto; max-width: 200px; }
.site-logo__suffix { color: var(--color-primary); margin-left: 4px; }

.site-search {
    flex: 1;
    max-width: 560px;
    margin-inline: auto;
}
.site-search__input {
    width: 100%;
    height: 44px;
    padding: 0 var(--space-4) 0 calc(var(--space-4) + 1.25em + var(--space-2));
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    color: var(--color-text);
    transition: var(--transition);
    cursor: text;
}
.site-search__input:hover { background: var(--color-bg); border-color: var(--color-border-strong); }
.site-search__input:focus, .site-search__input:focus-visible {
    background: var(--color-bg);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
    outline: 0;
}
.site-search { position: relative; }
.site-search > .icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    color: var(--color-text);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}
.header-action:hover { background: var(--color-bg-muted); color: var(--color-primary); }
.header-action__label {
    display: none;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}
@media (min-width: 1280px) {
    .header-action {
        width: auto;
        padding-inline: var(--space-3);
        gap: var(--space-2);
    }
    .header-action__label { display: inline; }
}
.header-action__count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: var(--fw-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.header-action__count:empty { display: none; }
@media (min-width: 1280px) {
    .header-action__count {
        position: static;
        margin-left: var(--space-1);
    }
}

/* Inline horizontal nav inside main header (centered column) */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: transparent;
    border: 0;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav__link, .site-nav__link.site-nav__link--active {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px var(--space-3);
    color: var(--color-text);
    font-weight: var(--fw-medium);
    font-size: var(--fs-sm);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: var(--transition);
    min-height: auto;
    line-height: 1.2;
}
.site-nav__link:hover { color: var(--color-primary); border-bottom-color: var(--color-primary-soft); }
/* Explicitní focus-visible: rounded ring, neoverlapuje border-bottom underline */
.site-nav__link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
    color: var(--color-primary);
}
.site-nav__link.is-active, .site-nav__link--active, .site-nav__link[aria-current="page"] {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

@media (max-width: 1023px) {
    .site-header__main { min-height: var(--header-h-mobile); }
    .site-header__main-inner { min-height: var(--header-h-mobile); }
    .site-search { display: none; }
    .site-header__main .site-search--mobile { display: block; max-width: 100%; }
    .site-nav { display: none; }
}

/* ==========================================================================
   18. HERO
   ========================================================================== */

.hero {
    position: relative;
    background: linear-gradient(135deg, #1A1F2E 0%, #2A1A0F 60%, #3A1F00 100%);
    color: var(--color-text-on-dark);
    overflow: hidden;
    padding-block: var(--space-10);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(242, 140, 28, 0.35), transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(242, 140, 28, 0.12), transparent 50%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 18px);
    pointer-events: none;
    opacity: 0.6;
}
.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    gap: var(--space-7);
    align-items: center;
}
@media (min-width: 1024px) {
    .hero { padding-block: var(--space-12); }
    .hero__inner { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}
.hero__title {
    font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl));
    font-weight: var(--fw-bold);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #FFF;
    margin-bottom: var(--space-4);
}
.hero__title em { color: var(--color-primary); font-style: normal; }
.hero__lead {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--lh-normal);
    margin-bottom: var(--space-6);
    max-width: 56ch;
}
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-7); }

.hero__form {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero__form-title {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-3);
}
.hero__form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: var(--space-2);
}
@media (max-width: 767px) {
    .hero__form-grid { grid-template-columns: 1fr 1fr; }
    .hero__form-grid .btn { grid-column: span 2; }
}
.hero__form .input {
    background: rgba(255, 255, 255, 0.92);
    border-color: transparent;
    color: var(--color-text);
}

.hero__visual {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(242, 140, 28, 0.25), rgba(242, 140, 28, 0.05));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-7);
    overflow: hidden;
}
.hero__visual::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(242, 140, 28, 0.4), transparent 60%);
    animation: hero-spin 8s linear infinite;
}
.hero__visual::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #1F2937, #111827);
}
.hero__visual > * { position: relative; z-index: 1; }
@keyframes hero-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   19. TRUST STRIP
   ========================================================================== */

.trust-strip {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--space-5);
}
.trust-strip__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}
@media (min-width: 768px) { .trust-strip__grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); } }
.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.trust-item__icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-soft);
    color: var(--color-primary-pressed);
    border-radius: var(--radius);
}
.trust-item__title {
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    color: var(--color-text);
    line-height: 1.3;
}
.trust-item__desc {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-top: 2px;
}

/* ==========================================================================
   20. BRAND STRIP
   ========================================================================== */

.brand-strip {
    padding-block: var(--space-7);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
}
.brand-strip__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    align-items: center;
}
@media (min-width: 768px) { .brand-strip__grid { grid-template-columns: repeat(6, 1fr); } }
.brand-strip a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: var(--space-3);
    opacity: 0.85;
    filter: none;
    transition: var(--transition);
}
.brand-strip a:hover { opacity: 1; transform: scale(1.05); }
.brand-strip a:focus-visible {
    opacity: 1;
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}
.brand-strip img { max-height: 40px; width: auto; }

/* ==========================================================================
   21. FOOTER
   ========================================================================== */

.site-footer {
    background: var(--color-bg-emphasis);
    color: var(--color-text-on-dark);
    margin-top: var(--space-11);
}
.site-footer a { color: rgba(255, 255, 255, 0.78); transition: var(--transition); text-decoration: none; }
.site-footer a:hover { color: var(--color-primary); }

.site-footer__top {
    padding-block: var(--space-10);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-7);
}
@media (min-width: 768px) {
    .site-footer__top { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .site-footer__top { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.site-footer__col-title {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-4);
}
.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.site-footer__list li { font-size: var(--fs-sm); }

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 320px;
}
.site-footer__brand img { max-width: 180px; height: auto; }
.site-footer__brand p { color: rgba(255, 255, 255, 0.7); font-size: var(--fs-sm); line-height: var(--lh-normal); }
.site-footer__contact {
    margin-top: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.78);
}
.site-footer__contact-item { display: inline-flex; align-items: center; gap: var(--space-2); }

.site-footer__bottom {
    padding-block: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.5);
}
.site-footer__social {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}
.site-footer__social a {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.78);
}
.site-footer__social a:hover { background: var(--color-primary); color: #fff; }

/* Footer newsletter */
.footer-newsletter__title {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: #fff;
    margin-bottom: var(--space-2);
}
.footer-newsletter__desc {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-3);
    line-height: var(--lh-normal);
}
.footer-newsletter__form {
    display: flex;
    gap: var(--space-2);
}
.footer-newsletter__input {
    flex: 1;
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
    color: var(--color-text);
    font-size: var(--fs-sm);
    min-height: 44px;
}

/* ==========================================================================
   22. MOBILE BOTTOM NAV
   ========================================================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    display: none;
    background: var(--color-surface-overlay);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.04);
}
@media (max-width: 767px) {
    .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); }
    body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
}
.bottom-nav__item {
    /* layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px 8px;
    height: var(--bottom-nav-h);
    min-height: 56px;          /* iOS HIG / WCAG: ≥44px tap, label-comfortable */

    /* visual — icon-only + label, no circle wrapper */
    color: var(--color-text-secondary);
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.1;
    font-weight: var(--fw-medium);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;

    /* interaction */
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    /* Only transform/opacity transitions (no layout) for performance */
    transition: color 180ms var(--ease-out),
                transform 180ms var(--ease-out);
}
.bottom-nav__item:focus { outline: 0; }
.bottom-nav__item:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -4px;
    border-radius: 8px;
}
.bottom-nav__item .icon,
.bottom-nav__icon {
    /* Lucide-standard 24x24, raw — no wrapper, no padding, no border-radius */
    width: 24px;
    height: 24px;
    display: block;
    color: inherit;            /* inherits item color → primary when active */
    transition: transform 180ms var(--ease-out);
}
.bottom-nav__label {
    display: block;
    white-space: nowrap;
    color: inherit;            /* inherits item color */
}

/* Hover (tablet w/ pointer, desktop debug) */
.bottom-nav__item:hover { color: var(--color-primary); }

/* Press feedback — whole item scales (transform-only, GPU-cheap) */
.bottom-nav__item:active { transform: scale(0.96); }

/* Active page state — color + bold label + 2px top accent line */
.bottom-nav__item.is-active,
.bottom-nav__item.bottom-nav__item--active,
.bottom-nav__item[aria-current="page"] {
    color: var(--color-primary);
}
.bottom-nav__item.is-active .bottom-nav__label,
.bottom-nav__item.bottom-nav__item--active .bottom-nav__label,
.bottom-nav__item[aria-current="page"] .bottom-nav__label {
    font-weight: var(--fw-semibold);
}

/* 2px top accent line spans full item width — replaces dot/pill indicator */
.bottom-nav__item.is-active::after,
.bottom-nav__item.bottom-nav__item--active::after,
.bottom-nav__item[aria-current="page"]::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    pointer-events: none;
}

/* Cart badge */
.bottom-nav__count {
    position: absolute;
    top: 4px;
    right: calc(50% - 22px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--color-danger, #e02424);
    color: #fff;
    border: 2px solid var(--color-surface-overlay, #fff);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: var(--fw-bold);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
    z-index: 2;
}
/* Hide badge when no items */
.bottom-nav__count:empty,
.bottom-nav__count[data-cart-count]:empty,
.bottom-nav__count[hidden] {
    display: none !important;
}

/* Badge pulse — triggered by JS on cart count increment */
@keyframes bottom-nav-badge-pulse {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.35); }
    60%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.bottom-nav__count.is-pulsing {
    animation: bottom-nav-badge-pulse 600ms var(--ease-out);
}

/* Reduced motion — kill transforms/animations */
@media (prefers-reduced-motion: reduce) {
    .bottom-nav__item,
    .bottom-nav__icon,
    .bottom-nav__item .icon,
    .bottom-nav__count.is-pulsing,
    .bottom-nav__item:active {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* Back-to-top button — když je viditelný bottom-nav, posuň ho výš nad něj */
@media (max-width: 767px) {
    #back-top {
        bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom)) !important;
    }
}

/* ==========================================================================
   29b. MOBILE POLISH — touch targets, safe-area, viewport
   ========================================================================== */

@media (max-width: 1023px) {
    /* Top strip — kompaktní 28px, jen kontakt + currency/login (notice skryt) */
    .site-header__top { font-size: 12px; min-height: var(--header-top-h-mobile); }
    .site-header__top-inner {
        grid-template-columns: 1fr auto;
        min-height: var(--header-top-h-mobile);
        gap: var(--space-2);
        padding-inline: var(--space-3);
    }
    .site-header__top-notice { display: none; }
    .site-header__top-contact { justify-self: start; gap: 4px; }
    .site-header__top-contact a[href^="mailto"], .site-header__top-contact > span { display: none; }
    .site-header__top-actions { gap: var(--space-2); }
    .site-header__user-tag { max-width: 100px; }
    /* Override global 44px min-height for thin top strip */
    .site-header__top a,
    .site-header__top button,
    .site-header__top-link,
    .site-login-trigger > summary {
        min-height: 0;
    }

    /* Main header — 56 px high, kompaktní logo */
    .site-header__main { min-height: var(--header-h-mobile); }
    .site-header__main-inner { min-height: var(--header-h-mobile); padding-inline: var(--space-3); gap: var(--space-3); }
    .site-logo img { height: 36px; max-height: 40px; max-width: 160px; }

    /* Hero kompaktnější */
    .hero { padding-block: var(--space-7); }
    .hero__title { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
    .hero__lead { font-size: var(--fs-base); margin-bottom: var(--space-4); }
    .hero__form { padding: var(--space-4); }
    .hero__form-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
    .hero__form-grid .btn { grid-column: span 2; }

    /* Trust strip 2-col */
    .trust-strip { padding-block: var(--space-4); }
    .trust-strip__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
    .trust-item { gap: var(--space-2); }
    .trust-item__icon { width: 36px; height: 36px; }
    .trust-item__title { font-size: var(--fs-xs); }
    .trust-item__desc { font-size: 11px; }

    /* Brand strip — 3 sloupce na mobilu */
    .brand-strip { padding-block: var(--space-5); }
    .brand-strip a { min-height: 48px; padding: var(--space-2); }
    .brand-strip img { max-height: 32px; }

    /* Product grid — 2 sloupce */
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
    }
    .card-product__media { aspect-ratio: 1 / 1; }
    .card-product__body { padding: var(--space-3); gap: var(--space-1); }
    .card-product__brand { font-size: 10px; }
    .card-product__title { font-size: var(--fs-sm); min-height: 2.4em; }
    .card-product__size { font-size: 12px; }
    .card-product__meta { font-size: 11px; }
    .card-product__price { font-size: var(--fs-md); }
    .card-product__price-novat { font-size: 11px; }
    .card-product__qty { width: 44px; flex: 0 0 44px; min-height: 40px; font-size: var(--fs-sm); }
    .card-product__btn { min-height: 40px; padding: var(--space-2); font-size: var(--fs-xs); }
    .card-product__btn .icon { width: 16px; height: 16px; }

    /* Search box — kompaktnější */
    .search-box { padding: var(--space-4); }
    .search-box::before { display: none; }
    .filter-category-menu {
        gap: var(--space-1);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        margin-inline: calc(-1 * var(--space-4));
        padding-inline: var(--space-4);
    }
    .filter-category-menu::-webkit-scrollbar { display: none; }
    .filter-category-menu a {
        white-space: nowrap;
        font-size: var(--fs-xs) !important;
        padding: var(--space-1) var(--space-3) !important;
    }

    /* Detail page — 1 sloupec, sticky buy-box drop */
    .content > .foto-box { min-height: 280px; padding: var(--space-5); }
    .content > .foto-box img { max-height: 320px; }
    .content > .desc-box { padding: var(--space-4); position: static; max-height: none; }
    .content .desc-box .price strong { font-size: var(--fs-2xl); }

    /* Cart — items full width, summary below */
    .content > .prod-list1 td.btn img { height: 64px; width: 64px; }
    .content > .bp-wrapper { position: static; }

    /* Checkout — 1 sloupec */
    .content .left-half, .content .right-half { padding: var(--space-4); }
    .content .left-half .reg-tab td.des,
    .content .right-half .reg-tab td.des {
        width: auto;
        display: block;
        padding-bottom: var(--space-1) !important;
    }
    .content .left-half .reg-tab,
    .content .right-half .reg-tab,
    .content .left-half .reg-tab tr,
    .content .right-half .reg-tab tr,
    .content .left-half .reg-tab td,
    .content .right-half .reg-tab td {
        display: block;
        width: 100%;
    }

    /* Mini-cart drawer — full screen */
    .drawer { max-width: 100% !important; }

    /* Search overlay — kompletní viewport */
    #search-overlay { max-height: 100vh; height: 100vh; }

    /* Footer columns stack */
    .site-footer__top { gap: var(--space-5); padding-block: var(--space-7); }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: var(--space-2); padding-block: var(--space-4); }

    /* Touch tap targets — minimum 44px */
    a, button, input[type="submit"], input[type="button"], select {
        min-height: 44px;
    }
    .header-action { width: 44px; height: 44px; }
    .breadcrumb__link { padding: var(--space-1) var(--space-2); margin: -4px 0; }
    .pager a, .pagin a { min-width: 44px; height: 44px; }

    /* Safe-area insets pro notch zařízení (iPhone X+) */
    .site-header { padding-top: env(safe-area-inset-top); }
    body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
    .bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
}

/* Velmi malé telefony (≤480px) */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    .card-product { display: grid; grid-template-columns: 120px 1fr; align-items: stretch; }
    .card-product__media { aspect-ratio: 1; height: 100%; }
    .card-product__media-link { display: contents; }
    .card-product__body { padding: var(--space-3); }
    .card-product__title { -webkit-line-clamp: 3; min-height: 0; }
    .hero__inner > div:last-child { display: none; }
    .trust-strip__grid { grid-template-columns: 1fr 1fr; }
}

/* iPhone SE 1st gen a další 320px viewporty — defensive overflow ochrana */
@media (max-width: 360px) {
    /* Top strip: zúžit gap, padding aby phone + currency + Přihlášení fit */
    .site-header__top-inner {
        padding-inline: var(--space-2);
        gap: var(--space-1);
    }
    .site-header__top-actions { gap: var(--space-1); }
    /* Currency selector kompaktnější */
    .site-header__locale select,
    .site-currency-selector select { padding: 2px 4px; font-size: 11px; }
    /* Logo menší aby zbylo místo na košík vpravo */
    .site-logo img { height: 32px; max-height: 36px; max-width: 130px; }
    .site-header__main-inner { gap: var(--space-2); padding-inline: var(--space-2); }
    /* Bottom nav labels menší aby 5 items pohodlně fitlo */
    .bottom-nav__item { font-size: 10px; padding-inline: 2px; }
    /* Hero H1 nesmí přetéct */
    .home-hero h1 { font-size: clamp(20px, 6.5vw, 28px); }
}

/* ==========================================================================
   23. COOKIE CONSENT v2 (override starého stylu)
   ========================================================================== */

#motopneu-cookie-consent.cookie-consent {
    position: fixed;
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    max-width: 480px;
    margin-inline: auto;
    z-index: var(--z-cookie);
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    box-shadow: var(--shadow-xl);
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
#motopneu-cookie-consent strong { color: var(--color-text); font-size: var(--fs-base); }
#motopneu-cookie-consent button,
#motopneu-cookie-consent .cookie-consent__btn {
    min-height: 40px;
    padding: var(--space-2) var(--space-4);
    background: var(--color-bg-muted);
    color: var(--color-text);
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: var(--fw-medium);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: var(--transition);
}
#motopneu-cookie-consent button[data-consent="all"],
#motopneu-cookie-consent .cookie-consent__btn--primary {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border-color: var(--color-primary);
}
#motopneu-cookie-consent button[data-consent="all"]:hover { background: var(--color-primary-hover); }
#motopneu-cookie-consent button:hover { background: var(--color-bg-subtle); }
.cookie-consent__choices { padding-block: var(--space-2); }

/* ==========================================================================
   24. PRICE / RATING / DOPRAVA HELPERS
   ========================================================================== */

.price {
    display: inline-flex;
    align-items: baseline;
    gap: var(--space-2);
    font-weight: var(--fw-bold);
}
.price--lg { font-size: var(--fs-2xl); }
.price--xl { font-size: var(--fs-3xl); }
.price__currency { font-size: 0.6em; font-weight: var(--fw-semibold); color: var(--color-text-muted); }
.price__novat { font-size: var(--fs-xs); color: var(--color-text-muted); font-weight: var(--fw-regular); }

.rating {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
}
.rating__stars { color: var(--color-warning); display: inline-flex; gap: 1px; }
.rating__stars .icon { width: 14px; height: 14px; fill: currentColor; }

.doprava-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--color-success-bg);
    color: var(--color-success-text);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}
.doprava-info .icon { color: var(--color-success); }

.shipping-progress {
    background: var(--color-bg-muted);
    border-radius: var(--radius-full);
    overflow: hidden;
    height: 8px;
    margin-block: var(--space-2);
}
.shipping-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-success), #34D399);
    transition: width var(--duration-slow) var(--ease-out);
}

/* ==========================================================================
   25. STICKY BUY-BOX (product detail)
   ========================================================================== */

.buybox {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
@media (min-width: 1024px) {
    .buybox--sticky {
        position: sticky;
        top: calc(var(--header-h) + var(--space-4));
    }
}

.buybox__brand {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: var(--fw-semibold);
}
.buybox__title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--color-text);
}
.buybox__meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}
.buybox__price-block {
    padding-block: var(--space-3);
    border-block: 1px solid var(--color-border);
}
.buybox__cta-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-3);
}

/* ==========================================================================
   26. FILTER SIDEBAR
   ========================================================================== */

.filter-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding-right: var(--space-4);
}
@media (min-width: 1024px) {
    .filter-sidebar--sticky {
        position: sticky;
        top: calc(var(--header-h) + var(--space-4));
        max-height: calc(100vh - var(--header-h) - var(--space-7));
        overflow-y: auto;
    }
}
.filter-group {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-4);
}
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-group__title {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.filter-group__count {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    font-weight: var(--fw-regular);
}

/* Active filters chips bar */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--color-border);
}
.active-filters__label {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    font-weight: var(--fw-medium);
}

/* ==========================================================================
   27. MINI-CART DRAWER (specific styles)
   ========================================================================== */

.mini-cart__items {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.mini-cart__item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: var(--space-3);
    align-items: center;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-subtle);
}
.mini-cart__item:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-cart__item-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: var(--color-bg-muted);
    border-radius: var(--radius-sm);
    padding: var(--space-1);
}
.mini-cart__item-title {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    line-height: var(--lh-tight);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mini-cart__item-meta {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    margin-top: var(--space-1);
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}
.mini-cart__item-price { font-weight: var(--fw-bold); color: var(--color-text); white-space: nowrap; }

.mini-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-block: var(--space-3);
    font-size: var(--fs-md);
}
.mini-cart__total-label { color: var(--color-text-secondary); }
.mini-cart__total-value { font-size: var(--fs-xl); font-weight: var(--fw-bold); }

.mini-cart__empty {
    text-align: center;
    padding: var(--space-9) var(--space-4);
    color: var(--color-text-muted);
}
.mini-cart__empty .icon { width: 48px; height: 48px; color: var(--color-border-strong); margin-bottom: var(--space-3); }

/* ==========================================================================
   27a. PRODUCT-CARD CTA (legacy `getAddToBasket()` form polish)
   --------------------------------------------------------------------------
   Legacy renderuje <form>...<input class="basket-small"/> + <input class="count"/>.
   Tady to dáváme do moderního layoutu uvnitř .card-product__cta.
   ========================================================================== */

/* Buy form v product card — qty + button v jednom řádku */
.card-product__buy {
    display: flex;
    align-items: stretch;
    gap: var(--space-2);
    margin: 0;
    width: 100%;
}
.card-product__qty {
    width: 56px;
    flex: 0 0 56px;
    min-height: 44px;
    padding: var(--space-2);
    text-align: center;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    appearance: textfield;
    -moz-appearance: textfield;
    transition: border-color var(--duration);
}
.card-product__qty::-webkit-outer-spin-button,
.card-product__qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.card-product__qty:focus {
    outline: 0;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}
.card-product__btn {
    flex: 1 1 auto;
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-sm);
    line-height: 1;
}

/* Listing wrapper kategorie — moderní grid */
.product-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: var(--space-5);
    margin-block: var(--space-6);
}

/* ==========================================================================
   27c. CATEGORY FILTER CHIPS (legacy `.filter-category-menu` modernizace)
   ========================================================================== */

.filter-category-menu {
    display: flex !important;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
}
.filter-category-menu .t_m,
.filter-category-menu ul {
    display: contents !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.filter-category-menu li,
.filter-category-menu .item_t,
.filter-category-menu .item_t2 {
    display: inline-block !important;
    float: none !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}
.filter-category-menu a {
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4) !important;
    background: var(--color-bg-subtle) !important;
    color: var(--color-text) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-full) !important;
    font-size: var(--fs-sm) !important;
    font-weight: var(--fw-medium) !important;
    text-decoration: none !important;
    text-transform: none !important;
    line-height: 1.2 !important;
    height: auto !important;
    transition: var(--transition);
    white-space: nowrap;
}
.filter-category-menu a:hover {
    background: var(--color-bg-muted) !important;
    border-color: var(--color-border-strong) !important;
    color: var(--color-text) !important;
    transform: translateY(-1px);
}
.filter-category-menu a.active,
.filter-category-menu a:focus-visible {
    background: var(--color-primary) !important;
    color: var(--color-text-on-primary) !important;
    border-color: var(--color-primary) !important;
}

/* ==========================================================================
   27d. SEARCH FORM (legacy `.search-box` / `.searchbox` modernizace)
   --------------------------------------------------------------------------
   Legacy renderuje oranžový tabulkový formulář — zde ho přepneme
   na moderní filter bar s grid layoutem (labels nad inputy).
   ========================================================================== */

.search-box, .searchbox {
    background: var(--color-surface) !important;
    background-image: none !important;
    background-color: var(--color-surface) !important;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    box-shadow: var(--shadow-xs);
    margin-bottom: var(--space-6);
    color: var(--color-text);
    /* `.filter-category-menu` na mobile používá negative margin-inline pro bleed-to-edge scroll;
       toto omezuje jejich rozšiřování pouze v rámci search-boxu, ne přes viewport. */
    overflow-x: clip;
}

.search-box form, .searchbox form { margin: 0; }
/* Grid layout — table+tr+td se zploští na CSS grid pomocí display:contents */
.search-box > form > table,
.searchbox > form > table {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-3) var(--space-4);
    width: 100%;
    background: transparent !important;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    padding: 0;
}
@media (min-width: 768px) {
    .search-box > form > table,
    .searchbox > form > table {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: var(--space-3) var(--space-4);
    }
}
.search-box > form > table > tbody,
.searchbox > form > table > tbody {
    display: contents !important;
}
.search-box > form > table tr,
.searchbox > form > table tr {
    display: contents !important;
    background: transparent !important;
}
.search-box > form > table td,
.searchbox > form > table td {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    color: var(--color-text);
    font-size: var(--fs-sm);
    line-height: 1.4;
}
/* Label řádek (tr.white v legacy = uppercase malý header) */
.search-box > form > table tr.white td,
.searchbox > form > table tr.white td {
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: var(--space-1) !important;
    align-self: end;
}
/* Inputy — full-width, modern styling */
.search-box select,
.search-box input[type="text"],
.search-box input[type="search"],
.searchbox select,
.searchbox input[type="text"],
.searchbox input[type="search"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 44px !important;
    padding: var(--space-2) var(--space-3) !important;
    background: var(--color-bg) !important;
    color: var(--color-text) !important;
    border: 1px solid var(--color-border-strong) !important;
    border-radius: var(--radius) !important;
    font-size: var(--fs-sm) !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: border-color var(--duration), box-shadow var(--duration);
    line-height: 1.4;
}
.search-box select,
.searchbox select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-color: var(--color-bg) !important;
    padding-right: 32px !important;
}
.search-box select:focus,
.search-box input:focus,
.searchbox select:focus,
.searchbox input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: var(--shadow-glow) !important;
    outline: 0 !important;
}
/* Submit tlačítko */
.search-box .result {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-2);
    padding: 0;
}
.search-box .result input[type="submit"],
.searchbox .result input[type="submit"],
.search-box input[type="submit"],
.searchbox input[type="submit"],
.search-box .go3,
.search-box .vyhledat {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--space-2);
    width: auto !important;
    min-height: 44px !important;
    background: var(--color-primary) !important;
    background-image: none !important;
    color: var(--color-text-on-primary) !important;
    border: 1px solid var(--color-primary) !important;
    border-radius: var(--radius) !important;
    padding: var(--space-2) var(--space-6) !important;
    font-weight: var(--fw-semibold) !important;
    font-size: var(--fs-sm) !important;
    cursor: pointer !important;
    transition: var(--transition);
    text-transform: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.search-box input[type="submit"]:hover,
.searchbox input[type="submit"]:hover,
.search-box .go3:hover {
    background: var(--color-primary-hover) !important;
    border-color: var(--color-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.search-box br.cl, .searchbox br.cl { display: none; }
/* Mobile: 2-col grid */
@media (max-width: 640px) {
    .search-box > form > table,
    .searchbox > form > table {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-box .result { grid-column: 1 / -1; justify-content: stretch; }
    .search-box .result input[type="submit"] { width: 100% !important; }
}
/* Pagination uvnitř listingu */
.pagin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    flex-wrap: wrap;
    list-style: none;
    margin-block: var(--space-5);
    padding: 0;
}
.pagin a, .pagin span,
.paginator a, .paginator span,
.paginator__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    background: var(--color-bg);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.pagin a:hover, .paginator a:hover { background: var(--color-bg-subtle); border-color: var(--color-border-strong); }
.pagin .active, .pagin .current,
.paginator .active, .paginator .current,
.paginator__current {
    background: var(--color-primary) !important;
    color: var(--color-text-on-primary) !important;
    border-color: var(--color-primary) !important;
}

/* ==========================================================================
   27b. CURRENCY SELECTOR (CountryManager dropdown override)
   --------------------------------------------------------------------------
   CHANGE 2026-05-14 (Wave M, dark top-strip polish):
     - Force `color: inherit` on .dropbtn AND descendant <strong>/.…__code,
       protože globální `strong { color: var(--color-text) #111827 }` na
       dark slate-800 (#1F2937) bg rendrovalo CZK kód jako muddy red/brown
       (contrast 1.4:1 → WCAG fail). Nyní white-ish #F9FAFB (contrast 13.6:1).
     - Hover: orange brand color (--color-primary) + soft bg lift.
     - Replaced CSS triangle ::after se SVG chevron (crisper, scaling).
     - Dropdown menu: 2-col grid (flag+name | code) for better visual hierarchy.
     - z-index použity tokens, menu šíře 240px (více čitelné než 200px).
   ========================================================================== */

.header-currency { position: relative; }
.header-currency #currency_selector,
#currency_selector {
    position: relative;
    display: inline-block;
}
.header-currency .dropdown,
#currency_selector .dropdown {
    position: relative;
    display: inline-block;
}
.header-currency .dropbtn,
#currency_selector .dropbtn,
.site-currency-trigger {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-on-dark);   /* explicit #F9FAFB — block global text override */
    border: 1px solid transparent;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    line-height: 1;
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out);
    min-height: 0;
    font-family: inherit;
}
/* Crucial — explicit color override for nested <strong> / span — global
   `strong { color: var(--color-text) }` would otherwise paint CZK code dark
   on dark bg (muddy red/brown) → user-reported issue. */
#currency_selector .dropbtn strong,
#currency_selector .dropbtn span,
.site-currency-trigger strong,
.site-currency-trigger__code,
.site-currency-trigger span {
    color: inherit;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
}
.site-currency-trigger__chevron {
    opacity: 0.75;
    transition: transform var(--duration-fast) var(--ease-out);
    margin-left: 2px;
    flex-shrink: 0;
}
.site-currency-trigger[aria-expanded="true"] .site-currency-trigger__chevron,
.dropdown:hover .site-currency-trigger__chevron,
.dropdown:focus-within .site-currency-trigger__chevron {
    transform: rotate(180deg);
}
/* Legacy CSS-triangle keeps working for non-refactored cases, but only when SVG chevron is missing */
.header-currency .dropbtn:not(:has(.site-currency-trigger__chevron))::after,
#currency_selector .dropbtn:not(:has(.site-currency-trigger__chevron))::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.7;
    margin-left: 2px;
}
.header-currency .dropbtn:hover,
.header-currency .dropbtn:focus-visible,
#currency_selector .dropbtn:hover,
#currency_selector .dropbtn:focus-visible,
.site-currency-trigger:hover,
.site-currency-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    color: var(--color-primary);
    border-color: rgba(255, 255, 255, 0.12);
    outline: 0;
}
.site-currency-trigger:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}
.header-currency .dropbtn img,
#currency_selector .dropbtn img,
.site-currency-trigger__flag,
.header-currency .dropdown-content img,
#currency_selector .dropdown-content img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.header-currency .dropdown-content,
#currency_selector .dropdown-content,
.site-currency-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    max-height: 360px;
    overflow-y: auto;
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    z-index: var(--z-modal);
    border: 1px solid var(--color-border);
}
.header-currency .dropdown:hover .dropdown-content,
.header-currency .dropdown:focus-within .dropdown-content,
#currency_selector .dropdown:hover .dropdown-content,
#currency_selector .dropdown:focus-within .dropdown-content {
    display: block;
}
.header-currency .dropdown-content a,
#currency_selector .dropdown-content a,
.site-currency-menu__item {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: background var(--duration-fast);
    margin: 1px 0;
    line-height: 1.4;
    min-height: 40px;
}
.site-currency-menu__name {
    color: var(--color-text);
    font-weight: var(--fw-medium);
}
.site-currency-menu__code {
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}
.header-currency .dropdown-content a:hover,
.header-currency .dropdown-content a:focus-visible,
#currency_selector .dropdown-content a:hover,
#currency_selector .dropdown-content a:focus-visible,
.site-currency-menu__item:hover,
.site-currency-menu__item:focus-visible {
    background: var(--color-bg-muted);
    color: var(--color-text);
    outline: 0;
}
.site-currency-menu__item:hover .site-currency-menu__code,
.site-currency-menu__item:focus-visible .site-currency-menu__code {
    color: var(--color-primary);
}

/* ==========================================================================
   27e. PRODUCT DETAIL (legacy `.foto-box` / `.desc-box` / `.des-cont` modernizace)
   --------------------------------------------------------------------------
   Detail stránky renderují:
     <div class="content">
       <div class="breadcrumb">...</div>
       <div class="lt"><h1>...</h1></div>
       <div class="tr2"><a class="back">...</a></div>
       <div class="foto-box">...</div>
       <div class="desc-box">
         <p class="dim">parametry...</p>
         <p class="price">cena...</p>
         <form><table class="ad-bask">qty + buy</table></form>
       </div>
       <div class="des-cont"><h2>Popis</h2><p>...</p></div>
     </div>
   Tady to přepíšeme na 2-column sticky buy-box layout s tabs.
   ========================================================================== */

/* 2-column grid kdykoliv .content obsahuje .foto-box + .desc-box (= detail page) */
.content:has(> .foto-box):has(> .desc-box) {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-7);
    align-items: start;
}
@media (min-width: 1024px) {
    .content:has(> .foto-box):has(> .desc-box) {
        grid-template-columns: minmax(0, 1fr) 420px;
        gap: var(--space-8);
    }
}
/* Title nad oběma columny — full-width */
.content:has(> .foto-box):has(> .desc-box) > .breadcrumb,
.content:has(> .foto-box):has(> .desc-box) > nav.breadcrumb,
.content:has(> .foto-box):has(> .desc-box) > .lt {
    grid-column: 1 / -1;
    margin: 0 0 var(--space-3) 0 !important;
}
.content:has(> .foto-box):has(> .desc-box) > .tr2 {
    grid-column: 1 / -1;
    margin-bottom: var(--space-4) !important;
}
.content:has(> .foto-box):has(> .desc-box) > br.cl {
    display: none;
}
/* Description blok se zobrazí pod oběma sloupci (full-width) */
.content:has(> .foto-box):has(> .desc-box) > .des-cont {
    grid-column: 1 / -1;
    margin-top: var(--space-7) !important;
}

/* H1 hlavička detailu */
.content > .lt {
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    margin: 0 !important;
    font-size: var(--fs-2xl);
    line-height: var(--lh-tight);
    font-weight: var(--fw-bold);
}
.content > .lt h1 {
    font-size: clamp(var(--fs-xl), 4vw, var(--fs-2xl));
    line-height: var(--lh-tight);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin: 0;
    padding: 0;
}

/* "Zpět na výpis" odkaz */
.content > .tr2 {
    background: transparent !important;
    padding: 0 !important;
    text-align: left !important;
    margin-bottom: var(--space-4);
}
.content > .tr2 .back {
    display: inline-flex !important;
    align-items: center;
    gap: var(--space-2);
    background: transparent !important;
    color: var(--color-text-secondary) !important;
    font-weight: var(--fw-medium) !important;
    font-size: var(--fs-sm) !important;
    border: 0 !important;
    padding: var(--space-1) 0 !important;
    text-transform: none !important;
    text-decoration: none;
    box-shadow: none !important;
    min-height: auto !important;
    height: auto !important;
}
.content > .tr2 .back::before {
    content: "← ";
    margin-right: 4px;
}
.content > .tr2 .back:hover {
    color: var(--color-primary) !important;
    background: transparent !important;
    transform: none !important;
}
.content > .tr2 .back strong { font-weight: var(--fw-medium) !important; }

/* GALERIE (.foto-box) */
.content > .foto-box {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-7);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}
.content > .foto-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 60%, rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
}
.content > .foto-box img {
    max-width: 100%;
    max-height: 480px;
    height: auto !important;
    width: auto !important;
    object-fit: contain;
    transition: transform var(--duration-slow) var(--ease-out);
    cursor: zoom-in;
}
.content > .foto-box:hover img {
    transform: scale(1.04);
}
.content > .foto-box a {
    display: block;
    line-height: 0;
}

/* BUY-BOX (.desc-box) */
.content > .desc-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: var(--shadow-sm);
}
@media (min-width: 1024px) {
    .content > .desc-box {
        position: sticky;
        top: calc(var(--header-h) + var(--space-4));
        max-height: calc(100vh - var(--header-h) - var(--space-7));
        overflow-y: auto;
    }
}

/* Parametry (.dim) */
.content .desc-box .dim {
    margin: 0 !important;
    padding: var(--space-3) 0 !important;
    border-bottom: 1px solid var(--color-border-subtle);
    color: var(--color-text);
    font-size: var(--fs-sm);
    line-height: 1.7;
    background: transparent !important;
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: var(--space-4);
    row-gap: var(--space-2);
}
.content .desc-box .dim strong {
    color: var(--color-text-muted);
    font-weight: var(--fw-medium);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-self: center;
}
.content .desc-box .dim br { display: none; }
/* Hack: .dim renderuje "<strong>Label:</strong> hodnota<br/><strong>Label:</strong> hodnota..." — necháme si to zobrazit jako "rows"
   pomocí display: contents na strong + zlomy přes line-height + grid auto-flow.
   Plně nelze renderovat 2-col grid bez wrapper, takže fallback: lighter line-height, label muted, value bold. */
.content .desc-box .dim {
    display: block !important;
    line-height: 2;
}
.content .desc-box .dim strong {
    display: inline-block;
    min-width: 110px;
    color: var(--color-text-muted);
    font-weight: var(--fw-medium);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.content .desc-box .dim br { display: block; line-height: 0.4; }

/* Stock badge override — popup -> badge */
.content .desc-box .dostupnost-popup {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    background: var(--color-success-bg);
    color: var(--color-success-text);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.content .desc-box .dostupnost-popup.red,
.content .desc-box .dostupnost-popup.r { background: var(--color-danger-bg); color: var(--color-danger-text); }
.content .desc-box .dostupnost-popup.orange,
.content .desc-box .dostupnost-popup.yellow,
.content .desc-box .dostupnost-popup.o { background: var(--color-warning-bg); color: var(--color-warning-text); }

/* CENA (.price) */
.content .desc-box .price {
    margin: 0 !important;
    padding: var(--space-4) 0 !important;
    border-bottom: 1px solid var(--color-border-subtle);
    background: transparent !important;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.content .desc-box .price strong {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    line-height: 1;
}
.content .desc-box .price br { display: none; }
.content .desc-box .price .small-text {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    font-weight: var(--fw-regular);
    margin-top: var(--space-1);
}

/* Buy form (.ad-bask) — modernizace tabulky */
.content .desc-box form {
    margin: 0 !important;
}
.content .desc-box .ad-bask {
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    margin: var(--space-3) 0 !important;
    border-collapse: separate;
    border-spacing: 0;
}
.content .desc-box .ad-bask td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    vertical-align: middle;
}
.content .desc-box .ad-bask td:first-child {
    width: auto;
    padding-right: var(--space-3) !important;
}
.content .desc-box .ad-bask td:first-child strong {
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Detail buy form qty-wrapper a button */
.content .desc-box .qty-wrapper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    background: var(--color-bg);
    overflow: hidden;
    margin-right: var(--space-3);
    position: relative;
}
.content .desc-box .qty-wrapper button.minus,
.content .desc-box .qty-wrapper button.plus {
    width: 44px;
    height: 44px;
    background: var(--color-bg) !important;
    color: var(--color-text) !important;
    font-size: var(--fs-lg);
    line-height: 1;
    cursor: pointer;
    border: 0 !important;
    transition: background var(--duration);
    flex-shrink: 0;
}
.content .desc-box .qty-wrapper button.minus:hover,
.content .desc-box .qty-wrapper button.plus:hover {
    background: var(--color-bg-muted) !important;
}
.content .desc-box .qty-wrapper input.count {
    width: 60px !important;
    height: 44px;
    border: 0 !important;
    border-left: 1px solid var(--color-border) !important;
    border-right: 1px solid var(--color-border) !important;
    text-align: center !important;
    background: var(--color-bg) !important;
    color: var(--color-text) !important;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-base);
    margin: 0 !important;
    border-radius: 0 !important;
    appearance: textfield;
    -moz-appearance: textfield;
    box-shadow: none !important;
}
.content .desc-box .qty-wrapper input.count::-webkit-outer-spin-button,
.content .desc-box .qty-wrapper input.count::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.content .desc-box .qty-wrapper .ajax-question {
    position: absolute;
    top: -34px;
    right: 0;
    background: transparent !important;
    color: var(--color-text-muted) !important;
    font-size: var(--fs-xs) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-full) !important;
    padding: 2px 10px !important;
    height: auto !important;
    min-height: auto !important;
    cursor: pointer;
    transition: var(--transition);
}
.content .desc-box .qty-wrapper .ajax-question:hover {
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    background: var(--color-primary-soft) !important;
}
.content .desc-box .qty-wrapper .clearfix { display: none; }

.content .desc-box .bb-wrapper {
    display: inline-block;
}
.content .desc-box .bb-wrapper input.basket-small,
.content .desc-box .bb-wrapper input[type="submit"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px !important;
    padding: var(--space-2) var(--space-6) !important;
    background: var(--color-primary) !important;
    color: var(--color-text-on-primary) !important;
    border: 1px solid var(--color-primary) !important;
    border-radius: var(--radius) !important;
    font-size: var(--fs-base) !important;
    font-weight: var(--fw-semibold) !important;
    width: auto !important;
    height: auto !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 16px center !important;
    background-size: 18px 18px !important;
    background-color: var(--color-primary) !important;
    text-indent: 22px;
    color: transparent !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: var(--transition);
}
.content .desc-box .bb-wrapper input.basket-small::after {
    content: "Do košíku";
    color: var(--color-text-on-primary);
}
/* Skryté input value (= serial number) — nahradíme labelem přes pseudo + ::before content */
.content .desc-box .bb-wrapper input.basket-small[value]::-webkit-input-placeholder {
    color: var(--color-text-on-primary) !important;
}
.content .desc-box .bb-wrapper {
    position: relative;
}
.content .desc-box .bb-wrapper::after {
    content: "Do košíku";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 26px;
    color: var(--color-text-on-primary);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-base);
    pointer-events: none;
    line-height: 1;
}
.content .desc-box .bb-wrapper input.basket-small:hover {
    background-color: var(--color-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm) !important;
}

/* Trust strip pod buy-box (přidá se přes JS, nebo CSS empty content) */
.content .desc-box::after {
    content: "✓ Skladem k expedici  ·  ✓ Doprava zdarma od 2 500 Kč  ·  ✓ Vrácení do 14 dnů";
    display: block;
    margin-top: var(--space-2);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border-subtle);
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.6;
}

/* POPIS (.des-cont) — modern typografie */
.content > .des-cont {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-7);
    box-shadow: var(--shadow-xs);
    margin-bottom: var(--space-6);
}
.content > .des-cont h2 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin: 0 0 var(--space-4) 0;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
}
.content > .des-cont p {
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
    font-size: var(--fs-base);
    margin: 0 0 var(--space-4) 0;
}
.content > .des-cont p:last-child { margin-bottom: 0; }

/* ==========================================================================
   27f. KOŠÍK (`kosik.php` legacy `.prod-list1` + `.bp-wrapper` + `.basket-buttons`)
   --------------------------------------------------------------------------
   Cart layout: 2-column grid (items vlevo, sticky summary vpravo).
   Steps indicator přes `.basket-menu` (= `.filter-category-menu`).
   Items renderované jako `<table class="prod-list1">` per row → přepíšeme
   na flex/grid card.
   ========================================================================== */

/* Steps indicator dostane number badge */
.basket-menu, .filter-category-menu.basket-menu {
    counter-reset: bs;
    margin-bottom: var(--space-7);
}
.basket-menu li,
.basket-menu .item_t {
    counter-increment: bs;
    position: relative;
}
.basket-menu li a,
.basket-menu li .like-link {
    padding-left: var(--space-7) !important;
    position: relative;
}
.basket-menu li a::before,
.basket-menu li .like-link::before {
    content: counter(bs);
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-bg-muted);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
}
.basket-menu li a.active::before {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.basket-menu li .like-link {
    display: inline-flex !important;
    align-items: center !important;
    padding: var(--space-2) var(--space-4) var(--space-2) var(--space-7) !important;
    background: var(--color-bg-subtle) !important;
    color: var(--color-text-muted) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-full) !important;
    font-size: var(--fs-sm) !important;
    font-weight: var(--fw-medium) !important;
}

/* CART layout — content > h1 + bs-table + items + bp-wrapper + basket-buttons */
.content:has(> h1):has(.basket-menu):has(.bp-wrapper) {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}
@media (min-width: 1024px) {
    .content:has(> h1):has(.basket-menu):has(.bp-wrapper) {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: var(--space-7);
        align-items: start;
    }
    .content:has(> h1):has(.basket-menu):has(.bp-wrapper) > h1,
    .content:has(> h1):has(.basket-menu):has(.bp-wrapper) > .basket-menu,
    .content:has(> h1):has(.basket-menu):has(.bp-wrapper) > .filter-category-menu {
        grid-column: 1 / -1;
    }
    .content:has(> h1):has(.basket-menu):has(.bp-wrapper) > .basket-buttons {
        grid-column: 1 / -1;
    }
}

/* Cart row — rebuild .prod-list1 jako flex card */
.content > .prod-list1,
.content table.prod-list1 {
    width: 100%;
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md);
    margin: 0 0 var(--space-3) 0 !important;
    padding: 0 !important;
    box-shadow: var(--shadow-xs);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    transition: var(--transition);
}
.content > .prod-list1:hover {
    border-color: var(--color-border-strong) !important;
    box-shadow: var(--shadow-sm);
}
.content > .prod-list1 tr {
    display: grid !important;
    grid-template-columns: 80px minmax(0, 1fr) auto auto auto auto auto;
    gap: var(--space-3);
    align-items: center;
    padding: var(--space-3);
    background: transparent !important;
}
@media (max-width: 767px) {
    .content > .prod-list1 tr {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        grid-template-areas:
            "img name remove"
            "img price price"
            "img qty qty";
        gap: var(--space-2) var(--space-3);
    }
    .content > .prod-list1 td.btn { grid-area: img; }
    .content > .prod-list1 td.b5 { grid-area: name; }
    .content > .prod-list1 td.b4k:nth-of-type(3),
    .content > .prod-list1 td.b4kc { grid-area: price; }
    .content > .prod-list1 td:has(input[name="pocet"]),
    .content > .prod-list1 td:has(.qty-wrapper) { grid-area: qty; }
    .content > .prod-list1 td:has(input[name="smazat"]),
    .content > .prod-list1 td:has(img[alt*="smazat"]) { grid-area: remove; }
}
.content > .prod-list1 td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--color-text);
    font-size: var(--fs-sm);
    line-height: 1.4;
    vertical-align: middle;
}
.content > .prod-list1 td.btn {
    width: 80px;
}
.content > .prod-list1 td.btn img {
    width: 100% !important;
    height: 80px;
    object-fit: contain;
    background: var(--color-bg-muted);
    border-radius: var(--radius-sm);
    padding: var(--space-1);
}
.content > .prod-list1 td.b5 {
    color: var(--color-text);
}
.content > .prod-list1 td.b5 strong:first-of-type {
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 2px;
}
.content > .prod-list1 td.b5 strong:nth-of-type(2) {
    color: var(--color-text);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
}
.content > .prod-list1 td.b4k,
.content > .prod-list1 td.b4kc {
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    line-height: 1.5;
    text-align: left;
    min-width: 130px;
}
.content > .prod-list1 td.b4kc {
    color: var(--color-text);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
}
.content > .prod-list1 td.b2 {
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: var(--fw-medium);
}
.content > .prod-list1 td:has(.qty-wrapper) {
    width: auto;
}
.content > .prod-list1 .qty-wrapper.basket {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
}
.content > .prod-list1 .qty-wrapper.basket button {
    width: 36px;
    height: 36px;
    background: var(--color-bg) !important;
    color: var(--color-text) !important;
    font-size: var(--fs-md);
    line-height: 1;
    border: 0 !important;
    cursor: pointer;
    transition: background var(--duration);
}
.content > .prod-list1 .qty-wrapper.basket button:hover {
    background: var(--color-bg-muted) !important;
}
.content > .prod-list1 .qty-wrapper.basket input.count {
    width: 50px;
    height: 36px;
    border: 0 !important;
    border-left: 1px solid var(--color-border) !important;
    border-right: 1px solid var(--color-border) !important;
    text-align: center;
    background: var(--color-bg) !important;
    font-weight: var(--fw-semibold);
    box-shadow: none !important;
}
.content > .prod-list1 td img[alt*="smazat"] {
    width: 36px !important;
    height: 36px !important;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    cursor: pointer;
    transition: var(--transition);
    object-fit: contain;
}
.content > .prod-list1 td img[alt*="smazat"]:hover {
    background: var(--color-danger-bg);
    border-color: var(--color-danger);
}

/* SUMMARY (.bp-wrapper) — sticky pravý sidebar */
.content > .bp-wrapper {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
}
@media (min-width: 1024px) {
    .content > .bp-wrapper {
        position: sticky;
        top: calc(var(--header-h) + var(--space-4));
    }
}
.content > .bp-wrapper::before {
    content: "Souhrn objednávky";
    display: block;
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
}
.content > .bp-wrapper p.tr {
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    line-height: 1.6;
}
.content > .bp-wrapper p.tr br { display: none; }
.content > .bp-wrapper .all-price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--space-2) 0;
    color: var(--color-text);
    font-size: var(--fs-sm);
    line-height: 1.5;
}
.content > .bp-wrapper .all-price:nth-of-type(1) {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-2);
    padding-top: var(--space-3);
    color: var(--color-text);
}
.content > .bp-wrapper .all-price:nth-of-type(2) {
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
}

/* Doprava progress bar */
.content > .bp-wrapper::after {
    content: "✓ Doprava zdarma od 2 500 Kč  ·  ✓ Vrácení do 14 dnů";
    display: block;
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border-subtle);
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.6;
}

/* Basket buttons — checkout CTA hierarchy
   Layout: flex row with secondary (ghost) actions on the left, primary CTA pushed right.
   Hierarchy is established by `margin-left: auto` on `.button-primary`/`.btn--primary`
   (which automatically pushes the CTA to the trailing edge in flex flow) plus bigger
   padding, bolder weight and a subtle shadow for visual weight. */
.basket-buttons {
    background: transparent !important;
    margin-top: var(--space-5) !important;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    justify-content: flex-start;
}
.basket-buttons table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: var(--space-3) 0;
    background: transparent !important;
}
.basket-buttons table tr {
    background: transparent !important;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    width: 100%;
}
.basket-buttons table td {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    width: auto !important;
    flex: 1 1 auto;
}
.basket-buttons table td:last-child {
    text-align: right;
    margin-left: auto;
}
/* Base reset for ALL buttons in the basket-buttons row */
.basket-buttons a,
.basket-buttons input[type="submit"],
.basket-buttons button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--space-2);
    width: auto !important;
    min-height: 44px !important;
    padding: var(--space-2) var(--space-5) !important;
    background: var(--color-bg-muted) !important;
    color: var(--color-text) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius) !important;
    font-size: var(--fs-sm) !important;
    font-weight: var(--fw-semibold) !important;
    text-decoration: none !important;
    transition: var(--transition);
    cursor: pointer;
    background-image: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}
.basket-buttons a:hover {
    background: var(--color-bg-subtle) !important;
    border-color: var(--color-border-strong) !important;
}
/* Secondary / ghost — visually quiet (Zpět, Zpět do obchodu, Vysypat košík) */
.basket-buttons .button-secondary,
.basket-buttons .btn--ghost {
    background: transparent !important;
    color: var(--color-text-muted) !important;
    border-color: var(--color-border) !important;
    font-weight: var(--fw-medium) !important;
}
.basket-buttons .button-secondary:hover,
.basket-buttons .btn--ghost:hover {
    background: var(--color-bg-muted) !important;
    color: var(--color-text) !important;
    border-color: var(--color-border-strong) !important;
}
/* Primary CTA — dominant orange, pushed to the right via margin-left:auto */
.basket-buttons table td:last-child a,
.basket-buttons table td:last-child input[type="submit"],
.basket-buttons table tr td:last-child input,
.basket-buttons .next,
.basket-buttons .button-primary,
.basket-buttons .btn--primary {
    background: var(--color-primary) !important;
    color: var(--color-text-on-primary) !important;
    border-color: var(--color-primary) !important;
    font-weight: var(--fw-bold) !important;
    padding: var(--space-3) var(--space-6) !important;
    min-height: 48px !important;
    margin-left: auto !important;
    box-shadow: var(--shadow-sm) !important;
}
.basket-buttons table td:last-child a:hover,
.basket-buttons .next:hover,
.basket-buttons .button-primary:hover,
.basket-buttons .btn--primary:hover {
    background: var(--color-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md) !important;
}
.basket-buttons .button-primary:active,
.basket-buttons .btn--primary:active {
    background: var(--color-primary-pressed) !important;
    transform: translateY(0);
    box-shadow: var(--shadow-sm) !important;
}
/* On narrow viewports, primary CTA spans full row at the top for prominence */
@media (max-width: 599px) {
    .basket-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .basket-buttons .button-primary,
    .basket-buttons .btn--primary {
        margin-left: 0 !important;
        width: 100% !important;
        order: -1;
    }
}

/* Empty cart message */
.content > .clearfix-nf + div[style*="float: left"] {
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-9) var(--space-6) !important;
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--fs-base);
    margin: var(--space-5) 0 !important;
    float: none !important;
}

/* ==========================================================================
   27g. CHECKOUT FORMS (objednat / doprava / shrnuti)
   ========================================================================== */

/* objednat.php má dva polovinky (.left-half, .right-half) */
.content .left-half,
.content .right-half {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    margin-bottom: var(--space-4) !important;
    box-shadow: var(--shadow-xs);
}
.content .left-half {
    width: 100%;
    float: none !important;
}
.content .right-half {
    width: 100%;
    float: none !important;
}
@media (min-width: 1024px) {
    .content:has(.left-half):has(.right-half) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-5);
    }
    .content:has(.left-half):has(.right-half) > h1,
    .content:has(.left-half):has(.right-half) > .basket-menu,
    .content:has(.left-half):has(.right-half) > .filter-category-menu {
        grid-column: 1 / -1;
    }
    .content:has(.left-half):has(.right-half) > .left-half { width: auto; }
    .content:has(.left-half):has(.right-half) > .right-half { width: auto; }
}
.content .left-half h2,
.content .right-half h2 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    margin: 0 0 var(--space-4) 0 !important;
    padding-bottom: var(--space-3) !important;
    padding-left: 0 !important;
    border-bottom: 1px solid var(--color-border);
}
.content .left-half .reg-tab,
.content .right-half .reg-tab {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 var(--space-3);
}
.content .left-half .reg-tab td.des,
.content .right-half .reg-tab td.des {
    padding: 0 var(--space-3) var(--space-1) 0 !important;
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: top;
    width: 140px;
}

/* ==========================================================================
   28. LEGACY OVERRIDE — modernizace existujících class-names
   --------------------------------------------------------------------------
   Tyto pravidla přepisují styly z design.css/menu.css/boxy-hlavni.css
   bez nutnosti měnit HTML markup.
   ========================================================================== */

/* Layout containers */
body { font-family: var(--font-sans) !important; color: var(--color-text); background-color: var(--color-bg); background-image: none; }

.wrapper {
    width: 100% !important;
    max-width: var(--container) !important;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    /* Safety net proti horizontálnímu overflow z legacy elementů (např. negative margins na
       .filter-category-menu na mobile, nebo legacy table layout). `clip` nemění stacking
       context na rozdíl od `hidden`. */
    overflow-x: clip;
}

.content {
    padding-inline: var(--space-4);
    padding-block: var(--space-5);
    max-width: var(--container);
    margin-inline: auto;
}
@media (min-width: 1024px) {
    .content { padding-inline: var(--space-7); padding-block: var(--space-7); }
}

.middle-strip { display: none; } /* nepoužívá se v moderním layoutu */

.cl, br.cl { clear: both; }

/* Top header (legacy `.top-strip` table-based) */
.top-strip {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface-overlay);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: var(--header-h);
}
.top-strip > .logo-box,
.top-strip .logo {
    flex: 0 0 auto;
    background: transparent !important;
}
.top-strip .logo img { max-height: 44px; width: auto; }
.top-strip .menu-box,
.top-strip .top {
    flex: 1;
    background: transparent;
    padding: 0;
}

/* Top sub-bar (.top-strip2) */
.top-strip2 { background: var(--color-bg-emphasis); color: var(--color-text-on-dark); padding: var(--space-2) var(--space-4); font-size: var(--fs-xs); }

/* Hlavní menu — legacy .t_m / .item_t */
ul.t_m, .t_m {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--space-1);
    flex-wrap: wrap;
}
ul.t_m li, .item_t {
    float: none !important;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    list-style: none;
}
ul.t_m a, .item_t a {
    display: inline-flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    color: var(--color-text);
    font-weight: var(--fw-medium);
    font-size: var(--fs-sm);
    text-decoration: none;
    border-radius: var(--radius);
    border: 0;
    background: transparent;
    transition: var(--transition);
    height: auto;
    line-height: 1.2;
}
ul.t_m a:hover, .item_t a:hover, ul.t_m a.active, .item_t a.active {
    background: var(--color-primary-soft);
    color: var(--color-primary-pressed);
}

/* Košík v hlavičce — legacy basket-box table */
table.basket-box, .basket-box {
    display: inline-flex !important;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text);
    margin-left: auto;
    border-collapse: separate;
    border-spacing: 0;
}
.basket-box td, table.basket-box td {
    border: 0;
    padding: 0;
    color: inherit;
    font-size: var(--fs-sm);
    background: transparent;
}
.basket-box img { max-height: 20px; width: auto; }
.basket-box .price-basket-row {
    color: var(--color-primary-pressed);
    font-weight: var(--fw-bold);
}

/* Site cart pill — top-strip.php .site-cart link
   CHANGE 2026-05-14 (Wave M overlay fix):
     - position: relative + z-index: 1 → explicit stacking context tak, aby
       orange shadow / hover-lift nikdy nepřesahoval predictable layer.
     - Login popover (z-index: var(--z-popover, 1050)) tak overlay-uje cart
       čistě, bez Z-fight s box-shadow.
     - Shadow rozsah ponechán (estetika), ale stacking je teď deterministic. */
.site-cart {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px var(--space-3);
    background: var(--color-primary);
    color: #fff !important;
    border: 0;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(242, 140, 28, 0.35);
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
    font-weight: var(--fw-medium);
    line-height: 1.2;
    min-height: 44px;
}
@media (max-width: 767px) {
    .site-cart { padding: 6px var(--space-2); gap: 6px; min-height: 40px; }
    .site-cart__icon { width: 24px; height: 24px; }
    .site-cart__body { display: none; }
}
.site-cart:hover,
.site-cart:focus-visible {
    transform: translateY(-1px);
    background: var(--color-primary-pressed, #d97706);
    box-shadow: 0 8px 22px rgba(242, 140, 28, 0.5);
    color: #fff !important;
}
.site-cart__icon {
    width: 28px;
    height: 28px;
    background: url("/components/basket.png") center / contain no-repeat;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}
.site-cart__body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.site-cart__label {
    text-transform: uppercase;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
}
.site-cart__meta {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    opacity: 0.95;
}

/* ------------------------------------------------------------------
   Currency / locale selector (in dark top strip)
   ------------------------------------------------------------------ */
.site-header__locale,
.site-currency-selector {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    font-size: var(--fs-xs);
    line-height: 1;
}
.site-header__locale select,
.site-currency-selector select {
    padding: 2px var(--space-2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-on-dark);
    border: 0;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    cursor: pointer;
}

/* ------------------------------------------------------------------
   Login trigger (Přihlášení in top strip) + popover dropdown
   ------------------------------------------------------------------
   CHANGE 2026-05-14 (Wave M, dark top-strip polish + overlay fix):
     - z-index: var(--z-popover, 1050) — explicit > sticky header (200),
       cart pill (z-index: 1), nav, ale pod toast/cookie. Cart shadow
       no longer Z-fight-uje s popoverem (předtím: cart auto vs popover
       --z-modal 1000 mohlo v nested stacking renderovat shadow přes).
     - Trigger summary: explicit color (--color-text-on-dark) prevents
       global text bleed; hover orange brand for consistency w/ currency.
     - Popover: shadow-xl pro hloubku + soft border, slight slide-down anim.
     - Mobile (<1024px): full-width drawer-style s 8px inset, top: 12px
       gap pro touch comfort. Below 480px → centered (left: 8px).
   ------------------------------------------------------------------ */
.site-login-trigger {
    position: relative;
    display: inline-block;
}
.site-login-trigger > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: auto;
    color: inherit;
    font-size: inherit;
    font-weight: var(--fw-medium);
    line-height: 1;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}
.site-login-trigger > summary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-primary);
}
.site-login-trigger > summary::-webkit-details-marker { display: none; }
.site-login-trigger > summary::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 2px;
    transition: transform 200ms var(--ease-out);
    opacity: 0.7;
}
.site-login-trigger[open] > summary::after { transform: rotate(180deg); }
.site-login-trigger > summary:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.site-login-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: var(--z-popover, 1050);
    width: min(320px, calc(100vw - 24px));
    padding: var(--space-4);
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl, var(--shadow-lg));
    font-size: var(--fs-sm);
    animation: site-login-popover-in 180ms var(--ease-out);
}
@keyframes site-login-popover-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.site-login-popover form.site-login {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
}
.site-login-popover .site-login__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.site-login-popover .site-login__field label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--color-text-secondary);
}
.site-login-popover .site-login__field .input {
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 var(--space-3);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    color: var(--color-text);
}
.site-login-popover .site-login__field .input:focus,
.site-login-popover .site-login__field .input:focus-visible {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow, 0 0 0 3px rgba(242, 140, 28, 0.25));
    outline: 0;
}
.site-login-popover .button-primary {
    margin-top: var(--space-1);
    width: 100%;
    min-height: 40px;
}
.site-login-popover .site-login__links {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    font-size: var(--fs-xs);
    margin-top: var(--space-1);
}
.site-login-popover .site-login__links a {
    color: var(--color-text-secondary);
    text-decoration: none;
}
.site-login-popover .site-login__links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}
.site-login-popover .form-alert {
    margin: 0;
    padding: var(--space-2) var(--space-3);
    background: var(--color-danger-soft, #fee2e2);
    color: var(--color-danger, #b91c1c);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
}

@media (max-width: 1023px) {
    .site-login-popover {
        right: 8px;
        left: auto;
        width: min(320px, calc(100vw - 16px));
        top: calc(100% + 12px);
    }
}
@media (max-width: 480px) {
    .site-login-popover {
        right: 8px;
        left: 8px;
        width: auto;
        max-width: none;
    }
}

/* ------------------------------------------------------------------
   VO account bar (3rd row, only for logged-in velkoobchod user)
   ------------------------------------------------------------------ */
.site-account.site-account--vo {
    width: 100%;
    background: var(--color-bg-subtle);
    border-top: 1px solid var(--color-border);
    font-size: var(--fs-sm);
}
.site-account.site-account--vo .site-account__inner {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--space-2) var(--space-4);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
}
@media (min-width: 768px) { .site-account.site-account--vo .site-account__inner { padding-inline: var(--space-6); } }
@media (min-width: 1024px) { .site-account.site-account--vo .site-account__inner { padding-inline: var(--space-7); } }

.site-account.site-account--vo .site-account__user {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.site-account.site-account--vo .site-account__switch {
    display: inline-flex;
}
.site-account.site-account--vo .site-account__switch a {
    text-decoration: none;
}
.site-account.site-account--vo .site-account__name {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    margin-right: var(--space-2);
}
.site-account.site-account--vo .site-account__name strong {
    color: var(--color-text);
}
.site-account.site-account--vo .site-account__logout {
    margin: 0;
    padding: 0;
}
.site-account.site-account--vo .site-account__panel {
    display: none;
    width: 100%;
    margin-top: var(--space-2);
    padding: var(--space-3);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.site-account.site-account--vo .site-account__panel a {
    display: inline-block;
    margin: 2px 8px 2px 0;
    padding: 4px 8px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
}
.site-account.site-account--vo .site-account__panel a:hover {
    background: var(--color-bg-muted);
    color: var(--color-primary);
}

/* Homepage staré boxy kategorií (.box-motopneu, .box1, .box3 atd.) */
.box-motopneu, .box-duse, .box-pasky, .box-oleje, .box-autopneu,
.box1, .box2, .box3, .box4 {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin: 0 0 var(--space-4) 0;
    box-shadow: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    height: 100%;
}
.box-motopneu:hover, .box-duse:hover, .box-pasky:hover, .box-oleje:hover, .box-autopneu:hover,
.box1:hover, .box2:hover, .box3:hover, .box4:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.box-motopneu h2, .box-duse h2, .box-pasky h2, .box1 h2, .box3 h2,
.box1 .head, .box3 .head, .head {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin: 0;
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    line-height: var(--lh-tight);
}
.box-motopneu p, .box-duse p, .box-pasky p, .box1 p, .box3 p,
.box1 .body, .box3 .body, .body {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
    line-height: var(--lh-normal);
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
}
.link-main {
    margin-top: auto;
    padding-top: var(--space-3);
}
.link-main a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-primary);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: gap var(--duration);
}
.link-main a:hover { gap: var(--space-3); color: var(--color-primary-hover); }

/* Tabulkové listingy produktů (.prod-list1, .prod-list2) */
.prod-list, .prod-list1, .prod-list2 {
    width: 100%;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent !important;
}
.prod-list1 td, .prod-list2 td, .prod-list td {
    border: 0;
    padding: var(--space-3);
    background: transparent;
    vertical-align: top;
}
.prod-list1 tr, .prod-list2 tr, .prod-list tr {
    background: transparent;
    transition: var(--transition);
}

/* Tlačítka (legacy .go .go2 .go3 .next .add .back .send) */
.go, .go2, .go3, .go4, .go5,
.go-edit, .go-deletead, .go-deleteor, .go-deleteor1,
.next, .add, .back, .send, .submit,
input.go, input.go2, input.go3, input.next, input.add, input.back, input.send,
button.go, button.go2, button.go3, button.next, button.add, button.back, button.send,
input[type="submit"].go, input[type="button"].go,
input[type="submit"].next, input[type="submit"].add {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: var(--space-2) var(--space-5);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: 1;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius);
    background: var(--color-primary);
    color: var(--color-text-on-primary) !important;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: none;
    width: auto !important;
    height: auto !important;
    background-image: none !important;
    text-shadow: none !important;
}
.go:hover, .go2:hover, .go3:hover, .go-edit:hover,
.next:hover, .add:hover, .back:hover, .send:hover,
input.go:hover, input.next:hover, input.add:hover,
button.go:hover, button.next:hover, button.add:hover {
    background: var(--color-primary-hover) !important;
    border-color: var(--color-primary-hover) !important;
    color: var(--color-text-on-primary) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.go-edit, .back {
    background: var(--color-bg) !important;
    color: var(--color-text) !important;
    border-color: var(--color-border-strong) !important;
}
.go-edit:hover, .back:hover {
    background: var(--color-bg-subtle) !important;
    color: var(--color-text) !important;
    border-color: var(--color-text-muted) !important;
}
.go-deletead, .go-deleteor, .go-deleteor1 {
    background: var(--color-danger) !important;
    border-color: var(--color-danger) !important;
}
.go-deletead:hover, .go-deleteor:hover { filter: brightness(0.92); }

/* Form inputs (legacy .input class) */
input.input, select.input, textarea.input,
input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="number"], input[type="search"],
input[type="url"], textarea, select {
    display: block;
    min-height: 44px;
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    transition: border-color var(--duration), box-shadow var(--duration);
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    width: 100%;
    max-width: 100%;
}
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-9);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus,
input.input:focus, select.input:focus, textarea.input:focus {
    outline: 0;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}
input.check, input[type="checkbox"], input[type="radio"] {
    width: 18px;
    height: 18px;
    min-height: auto;
    padding: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* Form table layout — staré .reg-tab .log-tab */
.reg-tab, .reg-tab1, .log-tab, .log-tab2 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 var(--space-2);
}
.reg-tab td, .log-tab td, .log-tab2 td {
    padding: var(--space-2);
    vertical-align: middle;
    border: 0;
    background: transparent;
}
.reg-tab td.des, .log-tab td.label, .log-tab2 td.label, td.des, td.des-n {
    color: var(--color-text-secondary);
    font-weight: var(--fw-medium);
    font-size: var(--fs-sm);
    padding-right: var(--space-4);
    width: auto;
    min-width: 140px;
    background: transparent;
}
.reg-tab td.des label,
.log-tab td.label label { cursor: pointer; }

/* Footer (legacy .fl/.fr floaty) */
.footer { background: var(--color-bg-emphasis); color: var(--color-text-on-dark); margin-top: var(--space-10); }
.f-cont {
    display: flex !important;
    flex-wrap: wrap;
    gap: var(--space-7);
    align-items: flex-start;
    padding-block: var(--space-9);
    color: rgba(255, 255, 255, 0.78);
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-4);
}
.f-cont .fl, .f-cont .fr {
    float: none !important;
    flex: 1 1 280px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.78);
}
.f-cont .fr { text-align: left; }
.f-cont a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.f-cont a:hover { color: var(--color-primary); }
.f-cont strong, .f-cont h2, .f-cont h3 { color: #fff; font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.f-cont img { max-height: 36px; width: auto; opacity: 0.8; transition: opacity var(--duration); }
.f-cont img:hover { opacity: 1; }

/* H1 visible homepage (eshop.php) */
.content > h1 {
    font-size: clamp(var(--fs-lg), 3vw, var(--fs-xl));
    line-height: var(--lh-tight);
    margin-block: var(--space-5) var(--space-6);
    color: var(--color-text);
    max-width: 64ch;
}
.lt h1 { font-size: clamp(var(--fs-lg), 3vw, var(--fs-2xl)); margin: 0 0 var(--space-4); line-height: var(--lh-tight); }

/* Detail produktu */
.lt {
    background: transparent;
    padding: 0;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-5);
}

/* Cena & dostupnost */
.price-detail, .price1, .price-line {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

/* Searchbar v top-stripu (legacy form) */
.top-strip form input[type="text"],
.top-strip form select { min-height: 36px; padding: var(--space-2) var(--space-3); font-size: var(--fs-sm); }

/* User-list table (.user-list) */
.user-list, table.user-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface);
}
.user-list th, .user-list td {
    padding: var(--space-3) var(--space-4);
    border: 0;
    border-bottom: 1px solid var(--color-border-subtle);
    text-align: left;
}
.user-list tr:last-child td { border-bottom: 0; }
.user-list th {
    background: var(--color-bg-subtle);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

/* Alerty (z části 1) */
.alert.alert-success { background: var(--color-success-bg) !important; border: 1px solid var(--color-success) !important; color: var(--color-success-text) !important; }
.alert.alert-danger { background: var(--color-danger-bg) !important; border: 1px solid var(--color-danger) !important; color: var(--color-danger-text) !important; }

/* Mobile menu / hamburger ze starého modern.css */
.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: var(--radius-full);
    color: var(--color-text);
}
@media (max-width: 1023px) {
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .menu-toggle:hover { background: var(--color-bg-muted); }
}

/* "Boxy hlavni" old hp boxes container */
.boxes, .boxes-hp {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: var(--space-5);
    margin-top: var(--space-6);
}
.main-cont {
    margin-top: var(--space-4);
}

/* ==========================================================================
   28b. MICROINTERACTIONS — animations, transitions
   ========================================================================== */

/* Cart badge pulse když se přidá produkt */
@keyframes cart-pulse {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(242, 140, 28, 0.25); }
    50%  { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(242, 140, 28, 0); }
    100% { transform: scale(1); }
}
.cart-pulse [data-cart-count],
.cart-pulse .header-action__count,
.cart-pulse .bottom-nav__count {
    animation: cart-pulse 600ms var(--ease-out);
}
.header-action.cart-pulse,
.bottom-nav__item.cart-pulse {
    animation: cart-pulse 600ms var(--ease-out);
    transform-origin: center;
}

/* Button success flash — krátký zelený přechod */
@keyframes btn-success-flash {
    0%   { background: var(--color-primary); }
    20%  { background: var(--color-success); transform: scale(1.02); }
    80%  { background: var(--color-success); transform: scale(1); }
    100% { background: var(--color-primary); transform: scale(1); }
}
.btn--success-flash {
    animation: btn-success-flash 1800ms var(--ease-out);
    background: var(--color-success) !important;
    border-color: var(--color-success) !important;
}
.btn--success-flash .icon {
    animation: success-icon-pop 400ms var(--ease-out);
}
@keyframes success-icon-pop {
    from { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    to   { transform: scale(1) rotate(0); opacity: 1; }
}

/* Page fade-in při loadu (subtle) */
@keyframes page-fadein {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
    .content > .product-grid,
    .content > .grid,
    .hero,
    .trust-strip,
    .brand-strip,
    .content > .desc-box,
    .content > .foto-box,
    .content > .des-cont {
        animation: page-fadein 320ms var(--ease-out) both;
    }
    /* Stagger pro produktové karty */
    .product-grid > .card-product:nth-child(1) { animation-delay: 0ms; }
    .product-grid > .card-product:nth-child(2) { animation-delay: 30ms; }
    .product-grid > .card-product:nth-child(3) { animation-delay: 60ms; }
    .product-grid > .card-product:nth-child(4) { animation-delay: 90ms; }
    .product-grid > .card-product:nth-child(5) { animation-delay: 120ms; }
    .product-grid > .card-product:nth-child(n+6) { animation-delay: 150ms; }
    .product-grid > .card-product {
        animation: page-fadein 320ms var(--ease-out) both;
    }
}

/* Card hover — refined elevation */
.card-product {
    transition: transform var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out);
}
.card-product:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Header sticky shadow on scroll */
.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.98);
}

/* Skeleton loader pro search overlay results */
.search-skeleton {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.search-skeleton__row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 80px;
    gap: var(--space-3);
    align-items: center;
    padding: var(--space-2);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius);
}
.search-skeleton__row .skel { height: 12px; border-radius: 6px; }
.search-skeleton__row .skel-img { width: 56px; height: 56px; border-radius: var(--radius-sm); }
.search-skeleton__row .skel-line-1 { width: 80%; height: 14px; margin-bottom: 6px; }
.search-skeleton__row .skel-line-2 { width: 50%; }
.search-skeleton__row .skel-price { width: 60px; height: 16px; margin-left: auto; }

/* Drawer open animation — slightly more spring */
.drawer {
    transition: transform var(--duration-slow) cubic-bezier(0.32, 0.72, 0.0, 1);
}

/* Toast subtle improvements */
.toast {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}
.toast--success { border-left-color: var(--color-success); }
.toast--success .toast__title::before {
    content: "✓ ";
    color: var(--color-success);
    font-weight: var(--fw-bold);
}

/* Smooth focus transitions */
:focus-visible {
    transition: box-shadow var(--duration-fast) var(--ease-out),
                outline-offset var(--duration-fast) var(--ease-out);
}

/* ==========================================================================
   27a. NICE-TABLE — pro technicke-info, obchodní podmínky, tabulky obecně
   ========================================================================== */

table.nice-table {
    width: 100%;
    margin: var(--space-3) 0 var(--space-5);
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: var(--fs-sm);
}
table.nice-table thead th,
table.nice-table tr:first-child td,
table.nice-table tbody tr:first-child td {
    background: var(--color-bg-subtle);
    color: var(--color-text);
    font-weight: var(--fw-semibold);
    text-align: left;
    padding: var(--space-2) var(--space-3);
    border-bottom: 2px solid var(--color-border);
}
table.nice-table tr:nth-of-type(odd) {
    background: rgba(0, 0, 0, 0.02);
}
table.nice-table tr:nth-of-type(even) {
    background: #fff;
}
table.nice-table td,
table.nice-table th {
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--color-border-subtle);
    color: var(--color-text);
    vertical-align: top;
}
table.nice-table tr:last-child td {
    border-bottom: 0;
}
table.nice-table tr:hover td {
    background: rgba(242, 140, 28, 0.05);
}
@media (max-width: 767px) {
    table.nice-table {
        font-size: var(--fs-xs);
    }
    table.nice-table td,
    table.nice-table th {
        padding: var(--space-2);
    }
}

/* ==========================================================================
   27b. CHECKOUT STEPS — portováno z modern.css pro redesign mode
   ========================================================================== */

.checkout-steps {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto var(--space-4);
    padding: var(--space-2);
    background: #fff;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.checkout-steps ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.checkout-steps__item {
    margin: 0;
}
.checkout-steps__item a,
.checkout-steps__item .like-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 46px;
    padding: var(--space-2) var(--space-3);
    color: var(--color-text);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
}
.checkout-steps__item span span,
.checkout-steps__item a span:first-child,
.checkout-steps__item .like-link span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #fff;
    background: var(--color-text-muted);
    border-radius: 50%;
    font-variant-numeric: tabular-nums;
    font-size: var(--fs-xs);
}
.checkout-steps__item--active a {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.checkout-steps__item--active a span:first-child,
.checkout-steps__item--done a span:first-child {
    background: #fff;
    color: var(--color-primary);
}
.checkout-steps__item--done a {
    color: var(--color-text);
}
.checkout-steps__item--disabled .like-link {
    color: var(--color-text-muted);
    cursor: not-allowed;
}
@media (max-width: 767px) {
    .checkout-steps ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .checkout-steps__item a,
    .checkout-steps__item .like-link {
        min-height: 40px;
        font-size: var(--fs-xs);
        padding: var(--space-1) var(--space-2);
    }
}

/* ==========================================================================
   27c. PRODUCT CARDS — legacy classes (.motopneu-product-card)
   Portováno z modern.css aby fungovalo i v redesign 2026 módu
   (modern.css se v redesign mode neloaduje viz head-modern.php)
   ========================================================================== */

.motopneu-product-card {
    display: grid;
    grid-template-columns: 174px minmax(0, 1fr) minmax(210px, 0.44fr);
    gap: var(--space-4);
    align-items: stretch;
    width: 100%;
    max-width: 1100px;
    margin: var(--space-3) auto;
    padding: var(--space-4);
    background: #fff;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out),
                transform var(--duration) var(--ease-out);
}
.motopneu-product-card:hover {
    border-color: rgba(242, 140, 28, 0.45);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
    .motopneu-product-card,
    .motopneu-product-card:hover { transform: none; transition: none; }
}

.motopneu-product-card__media {
    position: relative;
    display: flex;
    min-height: 184px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2);
    overflow: hidden;
    color: var(--color-text);
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    transition: border-color var(--duration) var(--ease-out);
}
.motopneu-product-card:hover .motopneu-product-card__media {
    border-color: rgba(242, 140, 28, 0.25);
}
.motopneu-product-card__media img {
    max-width: 142px;
    max-height: 142px;
    object-fit: contain;
    transition: transform var(--duration-slow) var(--ease-out);
    will-change: transform;
}
.motopneu-product-card__media img.motopneu-product-card__placeholder {
    max-width: 148px;
    max-height: 148px;
}
.motopneu-product-card:hover .motopneu-product-card__media img {
    transform: scale(1.05);
}
@media (prefers-reduced-motion: reduce) {
    .motopneu-product-card:hover .motopneu-product-card__media img { transform: none; }
}
.motopneu-product-card__media span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: var(--fs-xs);
    transition: color var(--duration-fast) var(--ease-out), gap var(--duration-fast) var(--ease-out);
}
.motopneu-product-card__media span::after {
    content: "\2192"; /* → */
    display: inline-block;
    transition: transform var(--duration-fast) var(--ease-out);
}
.motopneu-product-card:hover .motopneu-product-card__media span {
    color: var(--color-primary);
    gap: 6px;
}
.motopneu-product-card:hover .motopneu-product-card__media span::after {
    transform: translateX(2px);
}

.motopneu-product-card__main {
    min-width: 0;
}
.motopneu-product-card__brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 4px;
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.motopneu-product-card__brand::before {
    content: "\2022"; /* • */
    color: var(--color-primary);
    margin-right: 6px;
    font-size: 1em;
    line-height: 1;
}
.motopneu-product-card h2,
.motopneu-product-card__name {
    margin: 0 0 4px;
    color: var(--color-text);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
}
.motopneu-product-card h2 a,
.motopneu-product-card__name a {
    color: inherit;
    text-decoration: none;
}
.motopneu-product-card h2 a:hover,
.motopneu-product-card__name a:hover {
    color: var(--color-primary);
}
.motopneu-product-card__size {
    margin: 0 0 var(--space-3);
    color: var(--color-text);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    line-height: 1.3;
}
.motopneu-product-card__alt-size {
    display: inline-block;
    margin-bottom: var(--space-3);
    padding: 3px var(--space-2);
    color: var(--color-text-muted);
    background: var(--color-bg-subtle);
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
}

.motopneu-product-card__availability {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-2) 0 var(--space-3);
}
.motopneu-product-card__availability span {
    width: 100%;
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
/* Pill badges (skladem = green default) */
.motopneu-product-card__availability strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 2px 10px;
    background: rgba(34, 197, 94, 0.1);
    color: rgb(21, 128, 61);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
/* Red — není skladem / vyprodáno */
.motopneu-product-card__availability strong.red,
.motopneu-product-card__availability strong.r {
    background: rgba(239, 68, 68, 0.1);
    color: rgb(153, 27, 27);
    border-color: rgba(239, 68, 68, 0.3);
}
/* Amber — na objednání / dlouhá dodací */
.motopneu-product-card__availability strong.orange,
.motopneu-product-card__availability strong.yellow,
.motopneu-product-card__availability strong.o {
    background: rgba(245, 158, 11, 0.12);
    color: rgb(146, 64, 14);
    border-color: rgba(245, 158, 11, 0.35);
}
.motopneu-product-card__availability em {
    color: var(--color-text-muted);
    font-style: normal;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-xs);
}

.motopneu-product-card__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
    margin: 0;
}
.motopneu-product-card__facts div {
    min-width: 0;
    padding: var(--space-2);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
}
.motopneu-product-card__facts dt {
    margin-bottom: 2px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
}
.motopneu-product-card__facts dd {
    margin: 0;
    color: var(--color-text);
    font-weight: var(--fw-bold);
    overflow-wrap: anywhere;
}

.motopneu-product-card__buy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-2);
}
.motopneu-product-card__price {
    position: relative;
    padding: var(--space-3) var(--space-3) var(--space-2);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-subtle);
    border-top: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
}
.motopneu-product-card__price span {
    display: block;
    margin-bottom: 2px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.motopneu-product-card__price-secondary {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}
.motopneu-product-card__price-primary {
    display: block;
    color: var(--color-primary);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    line-height: 1.05;
    letter-spacing: -0.01em;
}
.motopneu-product-card__vo-message {
    padding: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

/* Alt offer (jiný sklad) na listing kartě */
.motopneu-product-card__alt-offer {
    grid-column: 1 / -1;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: 3px solid var(--color-warning);
    border-radius: var(--radius);
}
.motopneu-product-card__alt-offer > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.motopneu-product-card__alt-offer > div:first-child strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(245, 158, 11, 0.18);
    color: rgb(146, 64, 14);
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.motopneu-product-card__alt-offer > div:first-child strong::before {
    content: "\26A1"; /* ⚡ */
    font-size: 0.95em;
}
.motopneu-product-card__alt-offer span {
    display: block;
    margin-bottom: 2px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.motopneu-product-card__alt-offer > div:not(:first-child) strong {
    display: block;
    color: var(--color-text);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    line-height: 1.1;
}
/* Highlight the with-VAT price as primary */
.motopneu-product-card__alt-offer > div:nth-child(3) strong {
    color: rgb(146, 64, 14);
    font-size: var(--fs-lg);
}
/* Alt offer's own dostupnost-popup — reuse pill style locally */
.motopneu-product-card__alt-offer .dostupnost-popup {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: rgba(34, 197, 94, 0.1);
    color: rgb(21, 128, 61);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.motopneu-product-card__alt-offer .dostupnost-popup.red,
.motopneu-product-card__alt-offer .dostupnost-popup.r {
    background: rgba(239, 68, 68, 0.1);
    color: rgb(153, 27, 27);
    border-color: rgba(239, 68, 68, 0.3);
}
.motopneu-product-card__alt-offer .dostupnost-popup.orange,
.motopneu-product-card__alt-offer .dostupnost-popup.yellow,
.motopneu-product-card__alt-offer .dostupnost-popup.o {
    background: rgba(245, 158, 11, 0.16);
    color: rgb(146, 64, 14);
    border-color: rgba(245, 158, 11, 0.4);
}
/* Add-to-cart kontroly v kartě */
.motopneu-card-cart {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
    margin: 0;
}
.motopneu-card-cart .qty-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: auto 38px 1fr 38px;
    align-items: center;
    width: 100%;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}
.motopneu-card-cart .qty-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(242, 140, 28, 0.18);
}
.motopneu-card-cart .qty-wrapper .ks-fixer {
    padding: 0 var(--space-2) 0 var(--space-3);
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.motopneu-card-cart .qty-wrapper button.minus,
.motopneu-card-cart .qty-wrapper button.plus {
    height: 38px;
    background: transparent;
    border: 0;
    color: var(--color-text);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.motopneu-card-cart .qty-wrapper button.minus:hover,
.motopneu-card-cart .qty-wrapper button.plus:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}
.motopneu-card-cart .qty-wrapper input.count {
    height: 38px;
    width: 100%;
    text-align: center;
    border: 0;
    background: transparent;
    color: var(--color-text);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    -moz-appearance: textfield;
}
.motopneu-card-cart .qty-wrapper input.count::-webkit-outer-spin-button,
.motopneu-card-cart .qty-wrapper input.count::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.motopneu-card-cart .qty-wrapper .clearfix { display: none; }
/* "Dotaz?" — inline subtle link, right-aligned under qty row */
.motopneu-card-cart .ajax-question.abs {
    position: static;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    grid-column: 1 / -1;
    order: 9;
    justify-self: end;
    padding: 4px var(--space-3) 4px 0;
    background: transparent;
    border: 0;
    border-top: 1px dashed var(--color-border-subtle);
    border-radius: 0;
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-out);
}
.motopneu-card-cart .ajax-question.abs:hover {
    color: var(--color-primary);
    text-decoration: underline;
}
/* Reorder qty controls — ks-fixer, minus, count, plus stay on row 1 */
.motopneu-card-cart .qty-wrapper .ks-fixer { order: 1; }
.motopneu-card-cart .qty-wrapper button.minus { order: 2; }
.motopneu-card-cart .qty-wrapper input.count { order: 3; }
.motopneu-card-cart .qty-wrapper button.plus { order: 4; }
.motopneu-card-cart .basket-small {
    width: 100%;
    height: 42px;
    padding: 0 var(--space-3);
    background: var(--color-primary);
    color: #fff;
    border: 0;
    border-radius: var(--radius-sm);
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: background var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}
.motopneu-card-cart .basket-small:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 6px 14px rgba(242, 140, 28, 0.28);
    transform: translateY(-1px);
}
.motopneu-card-cart .basket-small:active {
    background: var(--color-primary-pressed);
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
/* Cart icon prefix — added via ::before on form so it sits next to button label */
.motopneu-card-cart .bb-wrapper {
    position: relative;
}
.motopneu-card-cart .bb-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: var(--space-3);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transform: translateY(-50%);
    background-color: #fff;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='20' r='1.5'/><circle cx='17' cy='20' r='1.5'/><path d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.2a2 2 0 0 0 2-1.5L20.5 8H6'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='20' r='1.5'/><circle cx='17' cy='20' r='1.5'/><path d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.2a2 2 0 0 0 2-1.5L20.5 8H6'/></svg>") center / contain no-repeat;
    z-index: 1;
}
.motopneu-card-cart .bb-wrapper input.basket-small {
    padding-left: calc(var(--space-3) + 18px + var(--space-2));
}
@media (prefers-reduced-motion: reduce) {
    .motopneu-card-cart .basket-small:hover { transform: none; }
}

/* Inline add-to-cart in alt offer — narrower, no Dotaz button shown */
.motopneu-card-cart.motopneu-card-cart--alt {
    grid-column: auto;
    align-self: center;
}
.motopneu-card-cart.motopneu-card-cart--alt .ajax-question.abs { display: none; }
.motopneu-card-cart.motopneu-card-cart--alt .basket-small {
    height: 38px;
    font-size: var(--fs-xs);
}
.motopneu-card-cart.motopneu-card-cart--alt .bb-wrapper::before {
    width: 16px;
    height: 16px;
}
.motopneu-card-cart.motopneu-card-cart--alt .bb-wrapper input.basket-small {
    padding-left: calc(var(--space-3) + 16px + 6px);
}

/* Mobile (< 768px) — 1-col stack: photo top, content middle, price/buy bottom */
@media (max-width: 767px) {
    .motopneu-product-card {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        padding: var(--space-3);
    }
    .motopneu-product-card:hover {
        transform: none; /* no lift on touch devices, just shadow */
    }
    .motopneu-product-card__media {
        min-height: 0;
        aspect-ratio: 1 / 1;
        max-height: 240px;
        width: 100%;
        padding: var(--space-3);
    }
    .motopneu-product-card__media img { max-width: 60%; max-height: 60%; }
    .motopneu-product-card__media img.motopneu-product-card__placeholder { max-width: 60%; max-height: 60%; }
    .motopneu-product-card__main,
    .motopneu-product-card__buy,
    .motopneu-product-card__alt-offer { grid-column: 1 / -1; }
    .motopneu-product-card h2,
    .motopneu-product-card__name { font-size: var(--fs-lg); }
    .motopneu-product-card__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .motopneu-product-card__price-primary { font-size: var(--fs-xl); }
    .motopneu-product-card__alt-offer {
        grid-template-columns: 1fr;
        padding: var(--space-3);
    }
    .motopneu-product-card__alt-offer > div:not(:first-child) {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: var(--space-2);
    }
    .motopneu-product-card__alt-offer > div:not(:first-child) span {
        margin-bottom: 0;
    }
}
/* Compact mobile (< 480px) — tighter spacing, smaller photo aspect */
@media (max-width: 480px) {
    .motopneu-product-card__media { max-height: 200px; }
    .motopneu-product-card__facts { grid-template-columns: 1fr; }
}

/* ==========================================================================
   27d. LISTING VIEW SWITCHER (list vs grid) — motopneu category listing
   --------------------------------------------------------------------------
   Default = LIST (kompaktní 140 px karty, rychlý scan 5040 produktů).
   GRID = 3-col mřížka pro vizuální browsing.
   Switcher hidden na mobile — vždy 1-col stack.
   ========================================================================== */

.listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    margin: var(--space-3) auto var(--space-2);
    max-width: 1100px;
}

.listing-view-switcher {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    gap: 2px;
}

.listing-view-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 var(--space-3);
    background: transparent;
    border: 0;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}
.listing-view-switcher__btn:hover {
    color: var(--color-text);
    background: var(--color-bg-muted);
}
.listing-view-switcher__btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.listing-view-switcher__btn.is-active,
.listing-view-switcher__btn[aria-pressed="true"] {
    background: #fff;
    color: var(--color-text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.listing-view-switcher__btn .icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}
.listing-view-switcher__label {
    display: inline-block;
}

/* ----------------------------------------------------------------------
   Listing container — view-aware
   ---------------------------------------------------------------------- */
.motopneu-listing {
    display: block;
}

/* === LIST VIEW (default) =============================================
   Kompaktní horizontální karta ~140 px:
   [80×80 photo] [brand / model / size / availability / facts inline] [price + buy]
   ===================================================================== */
.motopneu-listing[data-view="list"] > .motopneu-product-card {
    grid-template-columns: 96px minmax(0, 1fr) minmax(220px, 280px);
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    margin-block: var(--space-2);
    min-height: 124px;
}
.motopneu-listing[data-view="list"] .motopneu-product-card__media {
    min-height: 0;
    width: 96px;
    height: 96px;
    padding: 6px;
    align-self: center;
}
.motopneu-listing[data-view="list"] .motopneu-product-card__media img {
    max-width: 84px;
    max-height: 84px;
}
.motopneu-listing[data-view="list"] .motopneu-product-card__media img.motopneu-product-card__placeholder {
    max-width: 84px;
    max-height: 84px;
}
/* Hide "Detail →" affordance in list view (whole card is clickable via image link) */
.motopneu-listing[data-view="list"] .motopneu-product-card__media span {
    display: none;
}
.motopneu-listing[data-view="list"] .motopneu-product-card__brand {
    margin-bottom: 2px;
    font-size: 10px;
    letter-spacing: 0.1em;
}
.motopneu-listing[data-view="list"] .motopneu-product-card__name,
.motopneu-listing[data-view="list"] .motopneu-product-card h2 {
    margin-bottom: 2px;
    font-size: var(--fs-md);
    line-height: 1.2;
}
.motopneu-listing[data-view="list"] .motopneu-product-card__size {
    margin: 0 0 4px;
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    font-weight: var(--fw-medium);
}
.motopneu-listing[data-view="list"] .motopneu-product-card__alt-size {
    margin-bottom: 4px;
    padding: 1px 8px;
    font-size: 10px;
}
.motopneu-listing[data-view="list"] .motopneu-product-card__availability {
    margin: 4px 0 0;
    gap: 6px;
}
.motopneu-listing[data-view="list"] .motopneu-product-card__availability span {
    display: none; /* skryjeme "DOSTUPNOST" label — pill je samonosný */
}
.motopneu-listing[data-view="list"] .motopneu-product-card__availability strong {
    min-height: 22px;
    padding: 1px 8px;
    font-size: 10px;
}
.motopneu-listing[data-view="list"] .motopneu-product-card__facts {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.motopneu-listing[data-view="list"] .motopneu-product-card__facts div {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--color-bg-subtle);
    border-color: var(--color-border-subtle);
}
.motopneu-listing[data-view="list"] .motopneu-product-card__facts dt {
    margin: 0;
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.motopneu-listing[data-view="list"] .motopneu-product-card__facts dt::after {
    content: ":";
}
.motopneu-listing[data-view="list"] .motopneu-product-card__facts dd {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
}
.motopneu-listing[data-view="list"] .motopneu-product-card__buy {
    gap: var(--space-2);
}
.motopneu-listing[data-view="list"] .motopneu-product-card__price {
    padding: 6px var(--space-2) 4px;
}
.motopneu-listing[data-view="list"] .motopneu-product-card__price span {
    font-size: 10px;
    margin-bottom: 0;
}
.motopneu-listing[data-view="list"] .motopneu-product-card__price-secondary {
    margin-bottom: 2px;
    font-size: 11px;
}
.motopneu-listing[data-view="list"] .motopneu-product-card__price-primary {
    font-size: var(--fs-lg);
    line-height: 1;
}
.motopneu-listing[data-view="list"] .motopneu-card-cart .basket-small {
    height: 36px;
    font-size: var(--fs-xs);
}
.motopneu-listing[data-view="list"] .motopneu-card-cart .qty-wrapper {
    grid-template-columns: auto 32px 1fr 32px;
}
.motopneu-listing[data-view="list"] .motopneu-card-cart .qty-wrapper button.minus,
.motopneu-listing[data-view="list"] .motopneu-card-cart .qty-wrapper button.plus,
.motopneu-listing[data-view="list"] .motopneu-card-cart .qty-wrapper input.count {
    height: 32px;
}
.motopneu-listing[data-view="list"] .motopneu-card-cart .ajax-question.abs {
    display: none; /* "Dotaz?" link skryt v list view — uvolní prostor */
}

/* === GRID VIEW =======================================================
   3-col mřížka (auto-fill min 280 px). Karta vertikálně: media nahoře,
   info uprostřed, cena + CTA dole.
   ===================================================================== */
.motopneu-listing[data-view="grid"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: var(--space-4);
    max-width: 1100px;
    margin: var(--space-3) auto;
}
.motopneu-listing[data-view="grid"] > .motopneu-product-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--space-3);
    max-width: none;
    margin: 0;
    padding: var(--space-3);
    min-height: 0;
}
.motopneu-listing[data-view="grid"] .motopneu-product-card__media {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    max-height: 220px;
}
.motopneu-listing[data-view="grid"] .motopneu-product-card__media img {
    max-width: 70%;
    max-height: 70%;
}
.motopneu-listing[data-view="grid"] .motopneu-product-card__name,
.motopneu-listing[data-view="grid"] .motopneu-product-card h2 {
    font-size: var(--fs-md);
}
.motopneu-listing[data-view="grid"] .motopneu-product-card__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.motopneu-listing[data-view="grid"] .motopneu-product-card__price-primary {
    font-size: var(--fs-xl);
}

/* Mobile (< 768px) — switcher hidden, force list-like 1-col stack */
@media (max-width: 767px) {
    .listing-toolbar {
        display: none;
    }
    .motopneu-listing[data-view="list"] > .motopneu-product-card,
    .motopneu-listing[data-view="grid"] > .motopneu-product-card {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        padding: var(--space-3);
        min-height: 0;
        align-items: stretch;
    }
    .motopneu-listing[data-view="list"] .motopneu-product-card__media,
    .motopneu-listing[data-view="grid"] .motopneu-product-card__media {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-height: 240px;
        padding: var(--space-3);
    }
    .motopneu-listing[data-view="list"] .motopneu-product-card__media img,
    .motopneu-listing[data-view="grid"] .motopneu-product-card__media img {
        max-width: 60%;
        max-height: 60%;
    }
    .motopneu-listing[data-view="list"] .motopneu-product-card__media span {
        display: inline-flex; /* obnovíme "Detail →" na mobile */
    }
    .motopneu-listing[data-view="list"] .motopneu-product-card__availability span {
        display: block; /* obnovíme "DOSTUPNOST" label */
    }
    .motopneu-listing[data-view="list"] .motopneu-card-cart .ajax-question.abs {
        display: block; /* obnovíme "Dotaz?" */
    }
    .motopneu-listing[data-view="grid"] {
        display: block;
    }
}

/* ==========================================================================
   28b. PRODUCT DETAIL — MODERN LAYOUT (2026)
   ========================================================================== */

.product-detail--modern {
    display: block;
    padding-bottom: var(--space-8);
}

.product-detail--modern .product-detail__header {
    margin: var(--space-4) 0 var(--space-5);
}

.product-detail--modern .product-detail__title {
    font-size: var(--fs-3xl);
    line-height: var(--lh-tight);
    margin: 0;
    color: var(--color-text);
    min-width: 0;
}

.product-detail--modern .product-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: var(--space-6);
    align-items: start;
}

.product-detail--modern .product-detail__photo {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    max-width: 480px;
    aspect-ratio: 1;
    width: 100%;
    margin-inline: auto;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.product-detail--modern .product-detail__photo-helper {
    margin: var(--space-2) 0 0;
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    font-style: italic;
    text-align: center;
    pointer-events: none;
}
.product-detail--modern .product-detail__photo > a,
.product-detail--modern .product-detail__photo > img,
.product-detail--modern .product-detail__photo > svg {
    display: inline-flex;
    transition: transform var(--duration-slow) var(--ease-out);
    will-change: transform;
}
.product-detail--modern .product-detail__photo img,
.product-detail--modern .product-detail__photo svg {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.08));
}
.product-detail--modern .product-detail__photo:hover > a,
.product-detail--modern .product-detail__photo:hover > img,
.product-detail--modern .product-detail__photo:hover > svg {
    transform: scale(1.025);
}
.product-detail--modern .product-detail__photo > a {
    position: relative;
    cursor: zoom-in;
}
.product-detail--modern .product-detail__photo > a::after {
    content: "🔍 Klikněte pro zvětšení";
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-full);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--duration) var(--ease-out),
                transform var(--duration) var(--ease-out);
    pointer-events: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}
.product-detail--modern .product-detail__photo:hover > a::after,
.product-detail--modern .product-detail__photo > a:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .product-detail--modern .product-detail__photo > a,
    .product-detail--modern .product-detail__photo > img,
    .product-detail--modern .product-detail__photo > svg,
    .product-detail--modern .product-detail__photo:hover > a,
    .product-detail--modern .product-detail__photo:hover > img,
    .product-detail--modern .product-detail__photo:hover > svg {
        transform: none;
        transition: none;
    }
}

.product-detail--modern .product-detail__buy-box {
    position: sticky;
    top: calc(var(--header-h) + var(--space-3));
    background: #fff;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.product-detail--modern .product-detail__specs {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0 var(--space-4);
    margin: 0 0 var(--space-4);
    font-size: var(--fs-sm);
    line-height: 1.35;
}
.product-detail--modern .product-detail__specs dt,
.product-detail--modern .product-detail__specs dd {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border-subtle);
    margin: 0;
}
.product-detail--modern .product-detail__specs dt {
    color: var(--color-text-muted);
    font-weight: var(--fw-medium);
    text-align: right;
}
.product-detail--modern .product-detail__specs dd {
    color: var(--color-text);
    font-weight: var(--fw-semibold);
    text-align: left;
}
.product-detail--modern .product-detail__specs dt:nth-last-of-type(1),
.product-detail--modern .product-detail__specs dd:nth-last-of-type(1) {
    border-bottom: 0;
    padding-bottom: 0;
}

.product-detail--modern .product-detail__price {
    margin: var(--space-4) 0;
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--color-primary-soft) 0%, rgba(242, 140, 28, 0.04) 100%);
    border: 1px solid rgba(242, 140, 28, 0.18);
    border-radius: var(--radius-md);
    font-size: var(--fs-lg);
}
.product-detail--modern .product-detail__price strong {
    display: block;
    color: var(--color-primary-pressed);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.product-detail--modern .product-detail__price .small-text {
    display: block;
    margin-top: var(--space-1);
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.product-detail--modern .product-detail__cart-form {
    margin: 0 0 var(--space-4);
}
.product-detail--modern .product-detail__cart-form .bb-wrapper,
.product-detail--modern .product-detail__cart-form .bb-wrapper input.basket-small,
.product-detail--modern .product-detail__cart-form .bb-wrapper input[type="submit"] {
    width: 100%;
    box-sizing: border-box;
}
.product-detail--modern .product-detail__cart-form .bb-wrapper input.basket-small,
.product-detail--modern .product-detail__cart-form .bb-wrapper input[type="submit"] {
    min-height: 52px !important;
    padding-top: var(--space-3) !important;
    padding-bottom: var(--space-3) !important;
    font-size: var(--fs-base) !important;
    font-weight: var(--fw-bold) !important;
    box-shadow: 0 4px 14px rgba(242, 140, 28, 0.32) !important;
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out) !important;
}
.product-detail--modern .product-detail__cart-form .bb-wrapper input.basket-small:hover,
.product-detail--modern .product-detail__cart-form .bb-wrapper input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(242, 140, 28, 0.42) !important;
}
.product-detail--modern .product-detail__cart-form .bb-wrapper input.basket-small:active,
.product-detail--modern .product-detail__cart-form .bb-wrapper input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(242, 140, 28, 0.28) !important;
    background-color: var(--color-primary-pressed) !important;
}
@media (prefers-reduced-motion: reduce) {
    .product-detail--modern .product-detail__cart-form .bb-wrapper input.basket-small,
    .product-detail--modern .product-detail__cart-form .bb-wrapper input[type="submit"],
    .product-detail--modern .product-detail__cart-form .bb-wrapper input.basket-small:hover,
    .product-detail--modern .product-detail__cart-form .bb-wrapper input[type="submit"]:hover {
        transform: none !important;
    }
}

.product-detail--modern .product-detail__trust {
    list-style: none;
    padding: var(--space-4) 0 0;
    margin: 0;
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.product-detail--modern .product-detail__trust li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-2) var(--space-2) var(--space-2) calc(var(--space-2) + 26px);
    font-size: var(--fs-sm);
    border-radius: var(--radius);
    transition: background var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}
.product-detail--modern .product-detail__trust li::before {
    content: "";
    position: absolute;
    left: var(--space-2);
    top: calc(var(--space-2) + 2px);
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background-color: var(--color-success-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23065f46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    flex-shrink: 0;
}
.product-detail--modern .product-detail__trust li:hover {
    background: var(--color-bg-subtle);
    transform: translateX(2px);
}
@media (prefers-reduced-motion: reduce) {
    .product-detail--modern .product-detail__trust li,
    .product-detail--modern .product-detail__trust li:hover { transform: none; }
}
.product-detail--modern .product-detail__trust strong {
    color: var(--color-text);
    font-weight: var(--fw-semibold);
}
.product-detail--modern .product-detail__trust span {
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    line-height: 1.45;
}
.product-detail--modern .product-detail__trust a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--fw-medium);
}
.product-detail--modern .product-detail__trust a:hover {
    text-decoration: underline;
}

.product-detail--modern .product-detail__description {
    margin-top: var(--space-7);
    padding: var(--space-6) var(--space-5);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
}
.product-detail--modern .product-detail__description h2 {
    margin-top: 0;
    margin-bottom: var(--space-3);
    font-size: var(--fs-2xl);
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
    color: var(--color-text);
}
.product-detail--modern .product-detail__description-body {
    max-width: 720px;
    line-height: 1.7;
    color: var(--color-text);
    font-size: var(--fs-base);
}
.product-detail--modern .product-detail__description-body p {
    margin: 0 0 var(--space-3);
}
.product-detail--modern .product-detail__description-body p:last-child {
    margin-bottom: 0;
}

/* Alternative-offer block (jiný sklad / partner) */
.product-detail__alt-offer {
    margin: var(--space-6) 0;
    padding: var(--space-5);
    background: linear-gradient(135deg, rgba(242, 140, 28, 0.05), rgba(242, 140, 28, 0.12));
    border: 1px solid rgba(242, 140, 28, 0.25);
    border-radius: var(--radius-lg);
}
.alt-offer-block__header h2 {
    margin: 0 0 var(--space-2);
    font-size: var(--fs-xl);
    color: var(--color-text);
}
.alt-offer-block__header p {
    margin: 0 0 var(--space-4);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
}
.alt-offer-block__body {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: var(--space-4);
    align-items: center;
}
.alt-offer-block__label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}
.alt-offer-block__avail strong,
.alt-offer-block__price strong {
    font-size: var(--fs-lg);
    color: var(--color-text);
    font-weight: var(--fw-semibold);
}
.alt-offer-block__cta {
    grid-column: 3;
}
@media (max-width: 767px) {
    .alt-offer-block__body {
        grid-template-columns: 1fr;
    }
    .alt-offer-block__cta { grid-column: 1; }
}

/* Related products grid (na detailu) */
.product-detail__related {
    margin: var(--space-7) 0 var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border-subtle);
}
.product-detail__related h2 {
    margin: 0 0 var(--space-2);
    font-size: var(--fs-2xl);
}
.product-detail__related-subtitle {
    margin: 0 0 var(--space-4);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}
.product-detail__related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-3);
}
.product-detail__related-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-3);
    background: #fff;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out);
    gap: 4px;
}
.product-detail__related-card:hover,
.product-detail__related-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    text-decoration: none;
}
.product-detail__related-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-2);
}
.product-detail__related-brand {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: var(--fw-medium);
}
.product-detail__related-name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.4em;
}
.product-detail__related-price {
    margin-top: var(--space-1);
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
}

/* Lightbox-2.6 polish — modern overlay + close button + arrows */
.lightboxOverlay {
    background-color: #0f172a !important;
    opacity: 0.86 !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.lightbox .lb-outerContainer {
    background-color: transparent !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55) !important;
    overflow: hidden;
}
.lightbox .lb-image {
    border: 0 !important;
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
}
.lightbox .lb-dataContainer {
    padding: var(--space-2) var(--space-3) !important;
}
.lightbox .lb-data .lb-caption {
    color: #f8fafc !important;
    font-family: var(--font-sans) !important;
    font-size: var(--fs-sm) !important;
    line-height: var(--lh-normal) !important;
}
.lightbox .lb-data .lb-number {
    color: rgba(248, 250, 252, 0.7) !important;
    font-family: var(--font-sans) !important;
    font-size: var(--fs-xs) !important;
}
.lightbox .lb-close {
    width: 40px !important;
    height: 40px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='M6 6l12 12'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 20px 20px !important;
    background-color: rgba(15, 23, 42, 0.5) !important;
    border-radius: var(--radius-full) !important;
    opacity: 1 !important;
    transition: background-color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
    text-indent: -9999px;
    outline: none !important;
}
.lightbox .lb-close:hover {
    background-color: rgba(15, 23, 42, 0.85) !important;
    transform: scale(1.05);
}
.lightbox .lb-prev,
.lightbox .lb-next {
    opacity: 0.7 !important;
    transition: opacity var(--duration-fast) var(--ease-out);
    background-size: 36px 36px !important;
    background-repeat: no-repeat !important;
}
.lightbox .lb-prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") !important;
    background-position: 5% center !important;
}
.lightbox .lb-next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") !important;
    background-position: 95% center !important;
}
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover {
    opacity: 1 !important;
}

/* Sticky CTA (mobile) */
.product-detail__sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
    z-index: 50;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
    display: none;
    transform: translateY(0);
    transition: transform var(--duration-slow) var(--ease-out);
}
.product-detail__sticky-cta--hidden {
    transform: translateY(120%);
}
.product-detail__sticky-cta-inner {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    max-width: var(--container);
    margin: 0 auto;
}
.product-detail__sticky-cta-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.product-detail__sticky-cta-info strong {
    font-size: var(--fs-sm);
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-detail__sticky-cta-info span {
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    color: var(--color-primary-pressed);
}
.product-detail__sticky-cta-btn {
    flex: 0 0 auto;
    min-height: 48px;
    padding: var(--space-3) var(--space-5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    white-space: nowrap;
    font-weight: var(--fw-bold);
    box-shadow: 0 4px 14px rgba(242, 140, 28, 0.32);
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}
.product-detail__sticky-cta-btn:hover,
.product-detail__sticky-cta-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(242, 140, 28, 0.42);
}
.product-detail__sticky-cta-btn::before {
    content: "";
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
    .product-detail__sticky-cta,
    .product-detail__sticky-cta--hidden,
    .product-detail__sticky-cta-btn,
    .product-detail__sticky-cta-btn:hover { transition: none; transform: none; }
}

/* ==========================================================================
   28c. HOMEPAGE — Hero + Category Grid + Support (2026 elite)
   ========================================================================== */

.home-page {
    display: grid;
    gap: var(--space-6);
    padding-bottom: var(--space-8);
}

/* Hero — dark gradient + tire photo + dramatic typography
   Note: NO `isolation: isolate` here — that would create a stacking context
   and lock the search suggestions dropdown inside, preventing it from
   rendering above the sibling .home-category-grid below.
   Instead: hero gets explicit z-index:10 so its layer wins vs sibling
   sections, and ::before/__copy z-indices remain local because the only
   z-indexed children are the ::before overlay and the __copy/.__search.
*/
.home-hero {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    padding: var(--space-7) var(--space-7);
    /* overflow visible so the search suggestions dropdown can render outside the hero */
    overflow: visible;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.25) 100%),
        url("/components/velke-foto.jpg") center right / cover no-repeat;
    background-clip: padding-box;
    border-radius: var(--radius-xl, 16px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    z-index: 10;
}
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at 20% 50%, rgba(242, 140, 28, 0.18), transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}
.home-hero__copy {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
}
.home-hero__eyebrow {
    display: inline-block;
    margin-bottom: var(--space-3);
    padding: 4px var(--space-3);
    color: var(--color-primary);
    background: rgba(242, 140, 28, 0.12);
    border: 1px solid rgba(242, 140, 28, 0.3);
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.home-hero h1 {
    margin: 0 0 var(--space-3);
    color: #fff;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: var(--fw-bold);
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.home-hero p {
    max-width: 560px;
    margin: 0 0 var(--space-5);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--fs-lg);
    line-height: 1.5;
}
.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}
.home-hero__actions .button-primary,
.home-hero__actions .btn--primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: var(--fw-bold);
    font-size: var(--fs-base);
    box-shadow: 0 8px 24px rgba(242, 140, 28, 0.45);
    transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.home-hero__actions .button-primary:hover,
.home-hero__actions .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(242, 140, 28, 0.6);
}
.home-hero__actions .button-secondary,
.home-hero__actions .btn--ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: var(--fw-semibold);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background var(--duration-fast) var(--ease-out);
}
.home-hero__actions .button-secondary:hover,
.home-hero__actions .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* Hero search — prominent search bar above CTAs */
.home-hero__search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(640px, 100%);
    height: 56px;
    margin: 0 0 var(--space-4);
    padding: 4px 4px 4px 0;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    transition: box-shadow var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
    z-index: 3;
}
.home-hero__search:focus-within {
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.35),
                0 0 0 3px rgba(242, 140, 28, 0.45);
    transform: translateY(-1px);
}
.home-hero__search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-2) 0 var(--space-4);
    color: var(--color-text-muted);
    flex-shrink: 0;
}
.home-hero__search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 var(--space-2);
    background: transparent;
    border: 0;
    font-size: var(--fs-base);
    color: var(--color-text);
    outline: 0;
}
.home-hero__search-input::placeholder {
    color: var(--color-text-muted);
}
.home-hero__search-input:focus { outline: 0; }
.home-hero__search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    height: calc(100% - 0px);
    padding: 0 var(--space-5);
    background: var(--color-primary);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(242, 140, 28, 0.4);
    transition: background var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}
.home-hero__search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(242, 140, 28, 0.55);
}
.home-hero__search-submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
@media (max-width: 767px) {
    .home-hero__search {
        height: 52px;
        width: 100%;
    }
    .home-hero__search-input { font-size: var(--fs-sm); }
    .home-hero__search-submit { padding: 0 var(--space-4); font-size: var(--fs-sm); }
    .home-hero__search-submit span { display: none; }
    .home-hero__search-submit::after {
        content: "";
        width: 18px;
        height: 18px;
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
                mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
    }
}

/* ------------------------------------------------------------------
   Search suggestions dropdown (shared by hero + header forms)
   ------------------------------------------------------------------ */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: min(70vh, 540px);
    overflow-y: auto;
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    /* Stronger shadow + high z-index so the dropdown pops above sibling sections
       (.home-category-grid cards, related products, etc.). Value sits above
       --z-toast (1100) / --z-cookie (1200) is intentionally avoided — those
       chrome overlays should still cover the dropdown. */
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(15, 23, 42, 0.12);
    z-index: 1050;
    -webkit-overflow-scrolling: touch;
}
.search-suggestions-dropdown[hidden] { display: none; }
.search-suggestions-dropdown__section {
    padding: var(--space-2) 0;
}
.search-suggestions-dropdown__section + .search-suggestions-dropdown__section {
    border-top: 1px solid var(--color-border-subtle);
}
.search-suggestions-dropdown__heading {
    padding: var(--space-2) var(--space-4) 4px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.search-suggestions-dropdown__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--duration-fast) var(--ease-out);
    cursor: pointer;
}
.search-suggestions-dropdown__item:hover,
.search-suggestions-dropdown__item.is-active,
.search-suggestions-dropdown__item:focus {
    background: var(--color-bg-subtle);
    outline: 0;
}
.search-suggestions-dropdown__thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-sm, 6px);
    flex-shrink: 0;
}
.search-suggestions-dropdown__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.search-suggestions-dropdown__name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-suggestions-dropdown__meta {
    font-size: 12px;
    color: var(--color-text-muted);
}
.search-suggestions-dropdown__price {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    flex-shrink: 0;
}
.search-suggestions-dropdown__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px var(--space-3);
    margin: 2px var(--space-2) 2px 0;
    background: var(--color-bg-subtle);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: var(--fw-medium);
    text-decoration: none;
    transition: background var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out);
}
.search-suggestions-dropdown__chip:hover,
.search-suggestions-dropdown__chip.is-active,
.search-suggestions-dropdown__chip:focus {
    background: var(--color-primary-soft, rgba(242, 140, 28, 0.12));
    border-color: var(--color-primary);
    color: var(--color-text);
    outline: 0;
}
.search-suggestions-dropdown__chips {
    padding: 4px var(--space-3) var(--space-2);
    display: flex;
    flex-wrap: wrap;
}
.search-suggestions-dropdown__empty,
.search-suggestions-dropdown__loading {
    padding: var(--space-4);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    text-align: center;
}
.search-suggestions-dropdown__loading-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
}
.search-suggestions-dropdown__loading-thumb,
.search-suggestions-dropdown__loading-line {
    background: linear-gradient(90deg, var(--color-bg-subtle) 0%, var(--color-bg-muted) 50%, var(--color-bg-subtle) 100%);
    background-size: 200% 100%;
    animation: search-suggest-shimmer 1.4s ease-in-out infinite;
    border-radius: 4px;
}
.search-suggestions-dropdown__loading-thumb {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.search-suggestions-dropdown__loading-line {
    height: 12px;
    flex: 1;
}
@keyframes search-suggest-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .search-suggestions-dropdown__loading-thumb,
    .search-suggestions-dropdown__loading-line {
        animation: none;
    }
    .home-hero__search:focus-within,
    .home-hero__search-submit:hover { transform: none; }
}

/* Category grid — dark cards with image overlay + smooth hover
   Auto-fit fluid layout — 7 categories naturally flow as 4+3 stretched on wide,
   3+3+1 or 2+2+2+1 on narrower viewports without empty cells. */
.home-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-3);
}
.home-category {
    position: relative;
    display: grid;
    min-height: 240px;
    overflow: hidden;
    color: #fff;
    background: #0f172a;
    border-radius: var(--radius-lg);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
    isolation: isolate;
}
.home-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3), 0 0 0 2px var(--color-primary);
}
/* Focus ring je výraznější než hover stav — primárně pro keyboard usery */
.home-category:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3), 0 0 0 3px #fff, 0 0 0 5px var(--color-primary);
    outline: none;
}
.home-category img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
    z-index: 0;
}
.home-category:hover img {
    opacity: 0.75;
    transform: scale(1.05);
}
.home-category__body {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: end;
    gap: var(--space-1);
    min-height: 240px;
    padding: var(--space-4);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.7) 60%, rgba(15, 23, 42, 0.95) 100%);
}
.home-category strong {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.01em;
}
.home-category > span > span {
    color: rgba(255, 255, 255, 0.85);
}
.home-category__body > span {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}
.home-category em {
    margin-top: var(--space-2);
    color: var(--color-primary);
    font-style: normal;
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}
.home-category em::after {
    content: "→";
    transition: transform var(--duration-fast) var(--ease-out);
}
.home-category:hover em::after {
    transform: translateX(4px);
}

/* Support strip — 3 reasons-to-buy below categories */
.home-support {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
    padding: var(--space-5) 0;
    border-top: 1px solid var(--color-border-subtle);
}
.home-support > div {
    display: grid;
    gap: var(--space-1);
    padding-top: var(--space-3);
    border-top: 3px solid var(--color-primary);
}
.home-support strong {
    color: var(--color-text);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}
.home-support span {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    line-height: 1.5;
}

/* ============================================================
   Bestsellers — top motopneu carousel
   ============================================================ */
.home-bestsellers {
    margin-top: var(--space-9);
}
.home-bestsellers__head {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    text-align: center;
}
.home-bestsellers__head h2 {
    font-size: clamp(24px, 3.2vw, var(--fs-2xl));
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--color-text);
    letter-spacing: -0.01em;
    margin: 0;
}
.home-bestsellers__subtitle {
    color: var(--color-text-muted);
    font-size: var(--fs-md);
    margin: 0;
}
.home-bestsellers__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-4);
}
.home-bestseller-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out);
    isolation: isolate;
}
.home-bestseller-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}
/* WCAG 2.4.7/2.4.11 — výraznější focus ring než pouhý hover state */
.home-bestseller-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}
.home-bestseller-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--color-bg-subtle);
    padding: var(--space-3);
    overflow: hidden;
}
.home-bestseller-card__media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform var(--duration-slow) var(--ease-out);
}
.home-bestseller-card:hover .home-bestseller-card__media img {
    transform: scale(1.05);
}
.home-bestseller-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4) var(--space-4);
    flex: 1;
}
.home-bestseller-card__brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}
.home-bestseller-card__brand::before {
    content: "•";
    color: var(--color-primary);
    font-size: 1.2em;
    line-height: 0;
}
.home-bestseller-card__name {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    line-height: 1.3;
    margin: 0;
    /* clamp na 2 řádky pro konzistentní výšky karet */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-bestseller-card__price {
    margin-top: var(--space-2);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    line-height: 1;
}
.home-bestseller-card__cta {
    margin-top: var(--space-2);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--duration-fast) var(--ease-out);
}
.home-bestseller-card__cta span {
    transition: transform var(--duration-fast) var(--ease-out);
}
.home-bestseller-card:hover .home-bestseller-card__cta {
    color: var(--color-primary);
}
.home-bestseller-card:hover .home-bestseller-card__cta span {
    transform: translateX(3px);
}

/* ============================================================
   Trust strip — 4-col: Heureka rating, doprava, vrácení, osobní odběr
   ============================================================ */
.home-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-9);
    padding: var(--space-6);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
}
.home-trust-strip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    padding: var(--space-3);
}
.home-trust-strip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}
.home-trust-strip__icon .icon {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}
.home-trust-strip__title {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    line-height: 1.2;
}
.home-trust-strip__label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text-secondary);
}
.home-trust-strip__detail {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ============================================================
   Brand showcase — 8 brand logos, klikatelné na filtered listing
   ============================================================ */
.home-brand-showcase {
    margin-top: var(--space-9);
    padding: var(--space-7) var(--space-5);
    background: linear-gradient(180deg, var(--color-bg-subtle) 0%, var(--color-bg) 100%);
    border-radius: var(--radius-md);
}
.home-brand-showcase__head {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-7);
    text-align: center;
}
.home-brand-showcase__head h2 {
    font-size: clamp(22px, 2.8vw, var(--fs-xl));
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--color-text);
    letter-spacing: -0.01em;
    margin: 0;
}
.home-brand-showcase__subtitle {
    color: var(--color-text-muted);
    font-size: var(--fs-base);
    margin: 0;
}
.home-brand-showcase__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
}
.home-brand-showcase__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 120px;
    padding: var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: transform var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out);
}
.home-brand-showcase__item:hover,
.home-brand-showcase__item:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    color: var(--color-text);
}
.home-brand-showcase__item img {
    max-width: 140px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.4);
    opacity: 0.85;
    transition: filter var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}
.home-brand-showcase__item:hover img {
    filter: grayscale(0);
    opacity: 1;
}
.home-brand-showcase__name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: inherit;
    letter-spacing: 0.01em;
}

/* ============================================================
   Tablet & Mobile responsive
   ============================================================ */
/* Tablet — explicit 3-col category grid (overrides auto-fit for predictable 7-item layout) */
@media (max-width: 1100px) {
    .home-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .home-bestsellers__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .home-brand-showcase__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
/* Mobile — 2-col category grid, smaller hero */
@media (max-width: 767px) {
    .home-hero {
        min-height: 360px;
        padding: var(--space-5) var(--space-4);
    }
    .home-hero h1 {
        font-size: clamp(24px, 7vw, 32px);
    }
    .home-hero p {
        font-size: var(--fs-base);
    }
    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
    }
    .home-category {
        min-height: 200px;
    }
    .home-category strong {
        font-size: var(--fs-xl);
    }
    .home-support {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    /* Bestsellers — 2-col mobile grid */
    .home-bestsellers {
        margin-top: var(--space-7);
    }
    .home-bestsellers__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
    }
    .home-bestseller-card__body {
        padding: var(--space-2) var(--space-3) var(--space-3);
    }
    .home-bestseller-card__name {
        font-size: var(--fs-sm);
    }
    .home-bestseller-card__price {
        font-size: var(--fs-base);
    }
    /* Trust strip — 2-col mobile, smaller padding */
    .home-trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
        padding: var(--space-4);
        margin-top: var(--space-7);
    }
    .home-trust-strip__item {
        padding: var(--space-2);
    }
    .home-trust-strip__icon {
        width: 44px;
        height: 44px;
    }
    .home-trust-strip__icon .icon {
        width: 22px;
        height: 22px;
    }
    .home-trust-strip__title {
        font-size: var(--fs-base);
    }
    /* Brand showcase — 2-col mobile */
    .home-brand-showcase {
        margin-top: var(--space-7);
        padding: var(--space-5) var(--space-3);
    }
    .home-brand-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
    }
    .home-brand-showcase__item {
        min-height: 100px;
        padding: var(--space-3);
    }
    .home-brand-showcase__item img {
        max-width: 110px;
        max-height: 48px;
    }
}
@media (max-width: 480px) {
    .home-category strong { font-size: var(--fs-lg); }
    /* Bestsellers — 1-col stack on tiny screens */
    .home-bestsellers__grid {
        grid-template-columns: 1fr;
    }
    .home-bestseller-card {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 0;
    }
    .home-bestseller-card__media {
        aspect-ratio: 1 / 1;
        max-width: 110px;
    }
    .home-bestseller-card__body {
        padding: var(--space-3);
    }
}

/* Home hero trust strip */
.home-hero__trust {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0;
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}
.home-hero__trust li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.home-hero__trust strong {
    color: #fff;
    font-weight: var(--fw-semibold);
}

/* Responsive */
@media (max-width: 900px) {
    .product-detail--modern .product-detail__layout {
        grid-template-columns: 1fr;
    }
    .product-detail--modern .product-detail__buy-box {
        position: static;
    }
}

@media (max-width: 767px) {
    .product-detail__sticky-cta { display: block; }
    .product-detail--modern .product-detail__title { font-size: var(--fs-2xl); }
    .product-detail--modern .product-detail__buy-box { padding: var(--space-4); }
    .product-detail--modern .product-detail__photo { min-height: 240px; max-width: 340px; padding: var(--space-3); }
    .product-detail--modern { padding-bottom: 100px; }
    .product-detail--modern .product-detail__description h2 { font-size: var(--fs-xl); }
    .product-detail--modern .product-detail__trust li { font-size: var(--fs-xs); }
    .product-detail--modern .product-detail__trust span { font-size: 0.7rem; }
    /* Mobile: zoom hint always visible (no hover on touch) */
    .product-detail--modern .product-detail__photo > a::after {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .product-detail--modern .product-detail__specs {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .product-detail--modern .product-detail__specs dt {
        padding: var(--space-2) 0 0;
        border-bottom: 0;
        font-size: var(--fs-xs);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--color-text-muted);
        text-align: left;
    }
    .product-detail--modern .product-detail__specs dd {
        padding: 2px 0 var(--space-2);
        font-size: var(--fs-base);
        color: var(--color-text);
        text-align: left;
    }
    .product-detail--modern .product-detail__price strong { font-size: var(--fs-xl); }
}

/* Checkout — drobné modernizace */
.checkout-step-label {
    display: inline-block;
    margin-left: var(--space-2);
    padding: 2px var(--space-2);
    background: var(--color-bg-subtle);
    border-radius: var(--radius);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    vertical-align: middle;
}
.checkout-helper {
    margin: 0 0 var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg-subtle);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    line-height: 1.4;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}
@media (min-width: 900px) {
    .checkout-page .checkout-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
    }
    .checkout-page .checkout-form > .left-half,
    .checkout-page .checkout-form > .right-half {
        width: auto;
        float: none;
    }
    .checkout-page .basket-buttons {
        grid-column: 1 / -1;
    }
}

/* first.php — VO/MO/Motomuzeum rozcestník */
body.first-page { background: var(--color-bg-subtle); padding: var(--space-6) var(--space-4); }
.first-page__main {
    max-width: 1100px;
    margin: 0 auto;
}
.first-page__logo {
    text-align: center;
    margin-bottom: var(--space-6);
}
.first-page__logo img {
    max-width: 100%;
    height: auto;
}
.first-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}
.first-page__card {
    background: #fff;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}
.first-page__card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.first-page__card-head {
    padding: var(--space-3) var(--space-4);
    background: var(--color-primary);
    color: #fff;
    text-align: center;
}
.first-page__card-head h2 {
    margin: 0;
    font-size: var(--fs-xl);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.first-page__card-body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1 1 auto;
}
.first-page__inventory {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: var(--lh-relaxed);
}
.first-page__login {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.first-page__field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.first-page__field span {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.first-page__field input.input {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
}
.first-page__links {
    margin: var(--space-2) 0 0;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    text-align: center;
}
.first-page__links a {
    color: var(--color-primary);
    text-decoration: none;
}
.first-page__links a:hover {
    text-decoration: underline;
}

/* Technical info FAQ — drobečková navigace + details/summary */
.tech-info-page .tech-info-intro {
    margin: 0 0 var(--space-5);
    font-size: var(--fs-lg);
    color: var(--color-text-muted);
    line-height: var(--lh-relaxed);
    max-width: 70ch;
}
.tech-info-faq {
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border-subtle);
}
.tech-info-faq h2 {
    font-size: var(--fs-2xl);
    margin: 0 0 var(--space-4);
}
.tech-faq__item {
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-2);
    background: #fff;
    transition: box-shadow var(--duration-fast) var(--ease-out);
}
.tech-faq__item[open] {
    box-shadow: var(--shadow-sm);
}
.tech-faq__item > summary {
    cursor: pointer;
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    list-style: none;
    padding-right: var(--space-5);
    position: relative;
}
.tech-faq__item > summary::-webkit-details-marker { display: none; }
.tech-faq__item > summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--color-primary);
    font-size: var(--fs-xl);
    font-weight: var(--fw-normal);
    transition: transform var(--duration-fast) var(--ease-out);
}
.tech-faq__item[open] > summary::after {
    content: "−";
}
.tech-faq__item > p {
    margin: var(--space-3) 0 0;
    color: var(--color-text-muted);
    line-height: var(--lh-relaxed);
}

/* Empty-state for legacy listings */
.category-empty-state {
    margin: var(--space-6) 0;
    padding: var(--space-6);
    text-align: center;
    background: var(--color-bg-subtle);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
}
.category-empty-state__title {
    margin: 0 0 var(--space-2);
    font-size: var(--fs-lg);
    color: var(--color-text);
}
.category-empty-state__body {
    margin: 0 0 var(--space-4);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}
.category-empty-state__actions {
    display: inline-flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
}
.category-empty-state__suggestions {
    margin: 0 0 var(--space-4);
}
.category-empty-state__suggestions-label {
    margin: 0 0 var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: var(--fw-semibold);
}
.category-empty-state__suggestions-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
}

/* ==========================================================================
   28d. CATALOG FILTER — Bar + Active Chips + Mobile Drawer (2026)
   --------------------------------------------------------------------------
   Active filter chips se zobrazí nad form.
   Mobile drawer (< 768px) — toggle button vyvolá slide-in z pravé strany,
   form na desktopu je vždy visible.
   ========================================================================== */

/* Bar — title + mobile toggle */
.catalog-filter__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin: 0 0 var(--space-3);
    flex-wrap: wrap;
}
.catalog-filter__bar-title {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    color: var(--color-text);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    letter-spacing: -0.005em;
}
.catalog-filter__bar-icon {
    display: inline-flex;
    color: var(--color-primary);
}

/* Mobile toggle button — only visible < 768px */
.filter-toggle {
    display: none;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: var(--transition);
    min-height: 40px;
    line-height: 1;
    text-decoration: none;
    font-family: inherit;
}
.filter-toggle:hover,
.filter-toggle:focus-visible {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}
.filter-toggle__icon { display: inline-flex; }
.filter-toggle__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 var(--space-2);
    background: var(--color-text-on-primary);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    line-height: 1;
}

/* Active filter chips bar — over the form */
.filter-active-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    margin: 0 0 var(--space-4);
    padding: var(--space-3);
    background: var(--color-bg-subtle, #f7f8fa);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.filter-active-chips__label {
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: var(--fw-semibold);
    flex: 0 0 auto;
}
.filter-active-chips__list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    flex: 1 1 auto;
    min-width: 0;
}
.filter-active-chips__clear-all {
    margin-left: auto;
    color: var(--color-primary);
    background: transparent;
    border: 0;
    padding: var(--space-1) var(--space-2);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-decoration: underline;
    cursor: pointer;
    line-height: 1.2;
}
.filter-active-chips__clear-all:hover,
.filter-active-chips__clear-all:focus-visible {
    color: var(--color-primary-hover);
    text-decoration: none;
}

/* Individual chip — pill with X */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2) var(--space-1) var(--space-3);
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-family: inherit;
}
.filter-chip:hover,
.filter-chip:focus-visible {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
}
.filter-chip__label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
}
.filter-chip__value {
    font-weight: var(--fw-medium);
}
.filter-chip__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: var(--space-1);
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    font-weight: var(--fw-bold);
    transition: var(--transition);
}
.filter-chip:hover .filter-chip__close,
.filter-chip:focus-visible .filter-chip__close {
    background: rgba(255, 255, 255, 0.25);
}
.filter-chip--suggestion {
    background: var(--color-bg);
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.filter-chip--suggestion:hover {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
}

/* Catalog filter form — polish over existing search-box base */
.catalog-filter__heading { margin: 0 0 var(--space-3); }
.catalog-filter__heading h2 { margin: 0; font-size: var(--fs-md); }
.catalog-filter__hint {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
}

.catalog-filter__form {
    display: block;
    margin: 0;
}
.catalog-filter__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-3) var(--space-4);
    margin: 0;
    padding: 0;
}
.catalog-filter__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}
.catalog-filter__field label {
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}
.catalog-filter__field select,
.catalog-filter__field input[type="text"],
.catalog-filter__field input[type="search"] {
    width: 100%;
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    appearance: none;
    -webkit-appearance: none;
    transition: border-color var(--duration), box-shadow var(--duration);
}
.catalog-filter__field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.catalog-filter__field select:focus,
.catalog-filter__field input:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
    outline: 0;
}
.catalog-filter__field--sort select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e85f1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='6' y1='12' x2='18' y2='12'%3E%3C/line%3E%3Cline x1='10' y1='18' x2='14' y2='18'%3E%3C/line%3E%3C/svg%3E") !important;
    background-position: right 10px center !important;
    padding-right: 36px !important;
    font-weight: var(--fw-semibold);
}

.catalog-filter__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: flex-end;
    margin: var(--space-4) 0 0;
    padding: 0;
}
.catalog-filter__submit,
.button-primary.catalog-filter__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: var(--space-2) var(--space-6);
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}
.catalog-filter__submit:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-1px);
}
.catalog-filter__clear,
.button-secondary.catalog-filter__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: var(--space-2) var(--space-4);
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-decoration: none;
    transition: var(--transition);
}
.catalog-filter__clear:hover {
    background: var(--color-bg-subtle);
    border-color: var(--color-border-strong);
}

/* Drawer wrapper — desktop = inline static, mobile = fixed slide-in */
.catalog-filter__drawer { display: block; }
.catalog-filter__drawer-header { display: none; }

@media (max-width: 767px) {
    .filter-toggle { display: inline-flex; }

    .catalog-filter__drawer {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(86vw, 380px);
        height: 100dvh;
        max-height: 100vh;
        background: var(--color-bg);
        z-index: 1100;
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
        display: flex;
        flex-direction: column;
        visibility: hidden;
    }
    .catalog-filter__drawer.is-open {
        transform: translateX(0);
        visibility: visible;
    }
    .catalog-filter__drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        padding: var(--space-4);
        border-bottom: 1px solid var(--color-border);
        position: sticky;
        top: 0;
        background: var(--color-bg);
        z-index: 1;
    }
    .catalog-filter__drawer-title {
        margin: 0;
        font-size: var(--fs-lg);
        font-weight: var(--fw-semibold);
    }
    .catalog-filter__drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        color: var(--color-text);
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        font-family: inherit;
    }
    .catalog-filter__drawer-close:hover,
    .catalog-filter__drawer-close:focus-visible {
        background: var(--color-bg-subtle);
        border-color: var(--color-border-strong);
    }
    .catalog-filter__drawer .catalog-filter__form {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }
    .catalog-filter__drawer .catalog-filter__heading,
    .catalog-filter__drawer .catalog-filter__grid {
        padding-inline: var(--space-4);
    }
    .catalog-filter__drawer .catalog-filter__heading { padding-top: var(--space-3); }
    .catalog-filter__drawer .catalog-filter__grid {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--space-4);
        grid-template-columns: 1fr;
    }
    .catalog-filter__drawer .catalog-filter__actions {
        flex: 0 0 auto;
        margin: 0;
        padding: var(--space-3) var(--space-4);
        border-top: 1px solid var(--color-border);
        background: var(--color-bg);
        justify-content: stretch;
    }
    .catalog-filter__drawer .catalog-filter__clear,
    .catalog-filter__drawer .catalog-filter__submit {
        flex: 1 1 0;
    }

    /* Bar adjustments */
    .catalog-filter__bar { margin-bottom: var(--space-2); }
    .catalog-filter__bar-title { font-size: var(--fs-md); }

    .filter-active-chips { padding: var(--space-2); gap: var(--space-1) var(--space-2); }
    .filter-active-chips__label { font-size: 10px; }
    .filter-active-chips__clear-all { margin-left: 0; }
}

/* Filter category menu — refined active state */
.filter-category-menu a.active {
    box-shadow: 0 1px 4px rgba(232, 95, 28, 0.25);
    font-weight: var(--fw-bold) !important;
}

/* ==========================================================================
   27h. MISC LEGACY COMPONENTS — portováno z modern.css (redesign mode fix)
   --------------------------------------------------------------------------
   V redesign mode se modern.css neloaduje, takže BEM komponenty které se
   renderují PHP backendem (paginator_class, kosik, doprava, objednat,
   shrnuti, obchodni_podminky, technicke-info) zůstávaly bez stylu.
   Tato sekce přidává jejich modern look přes design tokens.
   ========================================================================== */

/* ---- 27h.1 PAGINATION (BEM verze, generuje paginator_class.php) ---------
   `.pager` (sekce 12) NEPOKRÝVÁ tyto class names — paginator_class.php
   generuje `.pagination__items`, `.pagination__item`,
   `.pagination__summary`, `.pagination__ellipsis`. Eshop listings:
   motopneu.php, oleje.php, eshop-zavodnipneu.php a další. */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    margin: var(--space-4) auto var(--space-5);
    padding: var(--space-2) var(--space-3);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}
.pagination__summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 36px;
    padding: 0 var(--space-2);
    color: var(--color-text);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}
.pagination__summary--muted {
    min-width: 0;
    color: var(--color-text-muted);
    background: transparent;
    border-color: transparent;
    font-weight: var(--fw-medium);
}
.pagination__items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    min-width: 0;
}
.pagination__item,
.pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--space-2);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    line-height: 1;
    transition: var(--transition);
}
a.pagination__item:hover,
a.pagination__item:focus {
    color: var(--color-primary);
    background: var(--color-bg-subtle);
    border-color: var(--color-primary);
}
.pagination__item--current {
    color: var(--color-text-on-primary);
    background: var(--color-primary);
    border-color: var(--color-primary);
    pointer-events: none;
}
.pagination__item--disabled {
    color: var(--color-text-muted);
    background: var(--color-bg-subtle);
    cursor: default;
    opacity: 0.6;
}
.pagination__item--arrow {
    font-size: var(--fs-md);
}
.pagination__ellipsis {
    min-width: 28px;
    padding: 0;
    color: var(--color-text-muted);
    background: transparent;
    border-color: transparent;
}

/* ---- 27h.2 KOŠÍK / CHECKOUT BODY CLASSES -------------------------------
   `.cart-page`, `.checkout-page` se přidávají do <main>/<div class="content">
   na stránkách kosik.php, doprava-a-platba.php, objednat.php,
   rekapitulace_objednavky.php, shrnuti_objednavky.php. Headings + page chrome. */
.cart-page h1,
.checkout-page h1 {
    margin: 0 0 var(--space-4);
    color: var(--color-text);
    font-size: var(--fs-2xl);
    line-height: 1.2;
}
.cart-empty {
    padding: var(--space-6);
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
}
/* Cart delete button (× ikona u řádku v košíku, kosik.php) */
.cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-danger);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.32);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--fs-lg);
    line-height: 1;
    transition: var(--transition);
}
.cart-remove:hover,
.cart-remove:focus {
    color: #fff;
    background: var(--color-danger);
    border-color: var(--color-danger);
}

/* ---- 27h.3 CHECKOUT CHOICE (doprava-a-platba.php radio rows) -----------
   `<tr class="checkout-choice">` rows with radio + label.
   Modernizace: card-like rows, large click target, selected state. */
.checkout-panel {
    min-height: 200px;
}
.checkout-choice-group {
    min-width: 0;
    margin: 0 0 var(--space-5);
    padding: 0;
    border: 0;
}
.checkout-choice-group legend {
    margin: 0 0 var(--space-3);
    padding: 0;
    color: var(--color-text);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
}
.checkout-choice-table {
    width: 100%;
    border-spacing: 0;
}
.checkout-choice-table td {
    padding: 0 0 var(--space-2);
    vertical-align: top;
}
.checkout-choice input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: var(--space-3) var(--space-2) 0 0;
    accent-color: var(--color-primary);
}
.checkout-choice label {
    display: block;
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    color: var(--color-text);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.checkout-choice label:hover {
    border-color: var(--color-border-strong);
    background: var(--color-bg);
}
.checkout-choice input[type="radio"]:checked + label,
.checkout-choice:has(input[type="radio"]:checked) label {
    background: rgba(242, 140, 28, 0.08);
    border-color: var(--color-primary);
}
.checkout-choice label span {
    display: block;
    color: var(--color-text);
    font-weight: var(--fw-semibold);
}
.checkout-choice .note {
    margin-top: var(--space-1);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    font-style: normal;
    line-height: 1.4;
}

/* ---- 27h.4 CHECKOUT FORM PAGE (objednat.php — adresní formulář) --------
   `.checkout-form-page` + `.reg-tab` (legacy table layout) inputs. */
.checkout-form-page .reg-tab {
    width: 100%;
    border-spacing: 0;
}
.checkout-form-page .reg-tab td {
    display: block;
    width: 100%;
    padding: var(--space-1) 0;
    background: transparent;
}
.checkout-form-page .reg-tab .des,
.checkout-form-page .reg-tab .des-n {
    color: var(--color-text);
    background: transparent;
    font-weight: var(--fw-semibold);
}
.checkout-form-page .reg-tab label {
    display: inline-block;
    margin-bottom: 2px;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}
.checkout-form-page .input,
.checkout-form-page select,
.checkout-form-page textarea,
.checkout-page .input,
.checkout-page select,
.checkout-page textarea {
    width: 100%;
    min-height: 40px;
    padding: var(--space-2) var(--space-3);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    font: inherit;
}
.checkout-form-page .input:focus,
.checkout-form-page select:focus,
.checkout-form-page textarea:focus,
.checkout-page .input:focus,
.checkout-page select:focus,
.checkout-page textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(242, 140, 28, 0.18);
}
.checkout-form-page textarea.note {
    min-height: 110px;
    resize: vertical;
    font-style: normal;
}
/* Summary page — flexbilní šířka pro vnořené tabulky (legacy <table width="…"> override) */
.checkout-summary-page .hilight table,
.checkout-summary-page .prod-list1 {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
.checkout-summary-page .hilight {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

/* ---- 27h.5 LEGAL / CONTENT PAGES (obchodni_podminky, technicke-info) ---
   `.content-page` chrome — clean card paper + readable typography.
   `.legal-page` jen tweakuje line-height pro dlouhé právní texty. */
.content-page {
    padding: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}
.content-page h1 { color: var(--color-text); }
.content-page h2 {
    margin-top: var(--space-7);
    margin-bottom: var(--space-3);
    color: var(--color-text);
}
.content-page ul,
.content-page ol {
    padding-left: var(--space-6);
}
.legal-page {
    color: var(--color-text);
    line-height: 1.7;
}

/* ---- 27h.6 FORM ALERT (top-strip.php — chyba přihlášení) -------------- */
.form-alert {
    width: 100%;
    margin: var(--space-1) 0 0;
    color: var(--color-danger);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

/* ---- 27h.7 BACK-TOP (floating ↑ button — footer.php) ------------------
   Pozn.: footer-modern.php má vlastní inline style; tato pravidla jsou pro
   legacy footer.php fallback se class="back-top". */
.back-top {
    position: fixed;
    z-index: 1000;
    right: var(--space-4);
    bottom: var(--space-4);
    display: none;
    width: 44px;
    height: 44px;
    color: var(--color-text-on-primary);
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    font-size: var(--fs-md);
    line-height: 1;
    transition: var(--transition);
}
.back-top.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.back-top:hover,
.back-top:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---- 27h.8 COOKIE PREFERENCES BUTTON (fixed bottom-right toggle) ------ */
.cookie-preferences-button {
    position: fixed;
    z-index: 9998;
    right: var(--space-3);
    bottom: var(--space-3);
    min-height: 32px;
    padding: var(--space-1) var(--space-3);
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
}
.cookie-preferences-button:hover {
    background: #fff;
    border-color: var(--color-border-strong);
}

/* ---- 27h.9 FOOTER NEWSLETTER FEEDBACK (msg po odeslání emailu) -------- */
.footer-newsletter__feedback {
    margin: var(--space-2) 0 0;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}
.footer-newsletter__feedback--ok {
    color: var(--color-success);
}
.footer-newsletter__feedback--err {
    color: #ffb4b4;
}

/* ---- 27h.10 SITE FOOTER SUB-SECTIONS (fallback pro footer-modern.php) - */
.site-footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-6);
    width: min(1200px, calc(100vw - 32px));
    margin: 0 auto;
}
.site-footer__section {
    display: grid;
    align-content: start;
    gap: var(--space-2);
    min-width: 0;
}
.site-footer__logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
    align-items: center;
}
.site-footer__logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: var(--space-2);
    background: #fff;
    border-radius: var(--radius);
}
.site-footer__logos img {
    max-height: 40px;
    object-fit: contain;
}

/* ---- 27h.11 MOBILE — responsive overrides ---------------------------- */
@media (max-width: 600px) {
    .pagination {
        gap: var(--space-1);
        padding: var(--space-1) var(--space-2);
    }
    .pagination__item,
    .pagination__ellipsis {
        min-width: 32px;
        height: 32px;
        font-size: var(--fs-xs);
    }
    .cart-page h1,
    .checkout-page h1 { font-size: var(--fs-xl); }
    .content-page { padding: var(--space-4); }
}

/* ==========================================================================
   27i. CHECKOUT — 2026 polish (step connector, choice cards, sticky summary,
        form validation styling, empty cart, mobile sticky CTA)
   ========================================================================== */

/* --- Step indicator: horizontal connector + green checkmark on done state --- */
@media (min-width: 768px) {
    .checkout-steps ol {
        position: relative;
    }
    .checkout-steps ol::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 12%;
        right: 12%;
        height: 2px;
        background: var(--color-border);
        transform: translateY(-50%);
        z-index: 0;
        pointer-events: none;
        border-radius: 2px;
    }
    .checkout-steps__item {
        position: relative;
        z-index: 1;
    }
}
.checkout-steps__item a,
.checkout-steps__item .like-link {
    transition: background-color var(--duration) var(--ease-out),
                color var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}
.checkout-steps__item a:hover {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
    color: var(--color-text);
}
.checkout-steps__item--active a {
    box-shadow: var(--shadow-md);
}
.checkout-steps__item--done a {
    background: var(--color-success-bg);
    border-color: var(--color-success);
    color: var(--color-success-text);
}
.checkout-steps__item--done a span:first-child {
    background: var(--color-success);
    color: #fff;
    text-indent: -9999px;
    overflow: hidden;
    position: relative;
}
.checkout-steps__item--done a span:first-child::after {
    content: "";
    position: absolute;
    inset: 0;
    text-indent: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}
@media (max-width: 767px) {
    .checkout-steps ol {
        grid-template-columns: 1fr;
        gap: var(--space-1);
    }
    .checkout-steps__item {
        position: relative;
    }
    .checkout-steps__item a,
    .checkout-steps__item .like-link {
        justify-content: flex-start;
        text-align: left;
    }
    .checkout-steps__item:not(:last-child)::after {
        content: "";
        position: absolute;
        left: calc(var(--space-3) + 12px);
        top: 100%;
        height: var(--space-1);
        width: 2px;
        background: var(--color-border);
    }
    .checkout-steps__item--done:not(:last-child)::after {
        background: var(--color-success);
    }
}

/* --- Choice cards (Doprava/Platba with Lucide icons) --- */
.checkout-choice-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 var(--space-2);
}
.checkout-choice {
    transition: background-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}
.checkout-choice > td {
    background: #fff;
    border: 1px solid var(--color-border-subtle);
    padding: var(--space-3) var(--space-4) !important;
    vertical-align: middle;
    transition: border-color var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out);
}
.checkout-choice > td:first-child {
    width: 36px;
    text-align: center;
    border-right: 0;
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    padding-right: 0 !important;
}
.checkout-choice > td:last-child {
    border-left: 0;
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    padding-left: var(--space-2) !important;
}
.checkout-choice:hover > td {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}
.checkout-choice.is-selected > td {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
    box-shadow: 0 0 0 1px var(--color-primary) inset;
}
.checkout-choice label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    margin: 0;
}
.checkout-choice__main {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
}
.checkout-choice__icon {
    flex: 0 0 auto;
    color: var(--color-primary);
    width: 24px;
    height: 24px;
}
.checkout-choice__name {
    font-size: var(--fs-base);
}
.checkout-choice .note {
    margin: 0;
    padding-left: calc(24px + var(--space-3));
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    line-height: 1.4;
    display: block;
}
.checkout-choice input[type="radio"].check {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

/* --- Address form polish (objednat.php) --- */
.required {
    color: var(--color-danger);
    margin-left: 2px;
    font-weight: var(--fw-bold);
}
.checkout-form--address input.input,
.checkout-form--address select {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-base);
    color: var(--color-text);
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out);
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
}
.checkout-form--address input.input:focus,
.checkout-form--address select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}
.checkout-form--address input.input[aria-invalid="true"] {
    border-color: var(--color-danger);
    background-color: var(--color-danger-bg);
}
.checkout-form--address input.input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}
.checkout-form--address input.input[aria-invalid="false"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: right var(--space-2) center;
    background-size: 16px 16px;
    padding-right: calc(var(--space-2) + 16px + var(--space-2));
}
.checkout-form--address .field-error {
    display: block;
    margin-top: 4px;
    color: var(--color-danger-text);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
}
.checkout-form--address .checkout-form__same-as {
    margin-top: var(--space-2);
}
.checkout-form--address .checkout-form__same-as label {
    color: var(--color-text);
    font-size: var(--fs-sm);
}

/* --- Sticky order summary (sidebar layout) --- */
/* When a page uses the new with-summary layout, legacy `:has(...)` 2-col grid rules
   on `.content` (both `:has(.left-half):has(.right-half)` and the bp-wrapper cart layout)
   must NOT activate — the new `.checkout-grid--with-summary` already creates the
   1fr + 340px split inside, so the outer `.content` should stay single-column. */
.checkout-page--with-summary,
.content.checkout-page--with-summary {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}
.checkout-grid--with-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}
.checkout-grid--with-summary > .checkout-form,
.checkout-grid--with-summary > .checkout-form--address {
    /* Reset legacy half-floats — the inner form is its own grid (see below) */
    width: 100%;
    float: none;
}
@media (min-width: 1024px) {
    .checkout-grid--with-summary {
        grid-template-columns: minmax(0, 1fr) 340px;
        align-items: start;
    }
    .checkout-grid--with-summary > .checkout-form,
    .checkout-grid--with-summary > .checkout-form--address {
        min-width: 0;
    }
    /* Inside the new layout the form itself splits into 2 cols, not the outer .content */
    .checkout-page--with-summary .checkout-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
    }
    .checkout-page--with-summary .checkout-form > .left-half,
    .checkout-page--with-summary .checkout-form > .right-half {
        width: auto;
        float: none;
        margin-bottom: 0 !important;
    }
    .checkout-page--with-summary .checkout-form > .basket-buttons,
    .checkout-page--with-summary .checkout-form > br,
    .checkout-page--with-summary .checkout-form > .reg-tab:last-of-type {
        grid-column: 1 / -1;
    }
}
.checkout-summary {
    background: #fff;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.checkout-summary__inner {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.checkout-summary--sidebar {
    display: none;
}
@media (min-width: 1024px) {
    .checkout-summary--sidebar {
        display: block;
        position: sticky;
        top: calc(var(--space-4) + 80px);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
}
.checkout-summary__heading {
    margin: 0;
    font-size: var(--fs-lg);
    color: var(--color-text);
    font-weight: var(--fw-bold);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border-subtle);
}
.checkout-summary__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-height: 280px;
    overflow-y: auto;
}
.checkout-summary__item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: var(--space-3);
    align-items: center;
}
.checkout-summary__item-media {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-subtle);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkout-summary__item-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.checkout-summary__item-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: var(--fw-bold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: var(--shadow-sm);
}
.checkout-summary__item-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.checkout-summary__item-name {
    font-size: var(--fs-sm);
    color: var(--color-text);
    font-weight: var(--fw-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}
.checkout-summary__item-price {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}
.checkout-summary__lines {
    margin: 0;
    padding: var(--space-2) 0;
    border-top: 1px solid var(--color-border-subtle);
    border-bottom: 1px solid var(--color-border-subtle);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.checkout-summary__line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-2);
}
.checkout-summary__line dt {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    margin: 0;
}
.checkout-summary__line dd {
    color: var(--color-text);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    margin: 0;
    text-align: right;
}
.checkout-summary__line-sub {
    display: block;
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    font-weight: var(--fw-normal);
}
.checkout-summary__line--meta dt,
.checkout-summary__line--meta dd {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    font-weight: var(--fw-normal);
}
.checkout-summary__free {
    color: var(--color-success-text);
    font-weight: var(--fw-bold);
}
.checkout-summary__total {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "label value"
        "note  note";
    gap: 2px var(--space-3);
    padding: var(--space-2) 0;
    align-items: baseline;
}
.checkout-summary__total-label {
    grid-area: label;
    font-size: var(--fs-base);
    color: var(--color-text);
    font-weight: var(--fw-semibold);
}
.checkout-summary__total-value {
    grid-area: value;
    font-size: var(--fs-xl);
    color: var(--color-text);
    font-weight: var(--fw-bold);
}
.checkout-summary__total-note {
    grid-area: note;
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}
.checkout-summary__cta {
    display: flex;
}
.checkout-summary__cta-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
}
.checkout-summary__trust {
    list-style: none;
    margin: 0;
    padding: var(--space-2) 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 6px;
    border-top: 1px solid var(--color-border-subtle);
}
.checkout-summary__trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    line-height: 1.2;
}
.checkout-summary__trust .icon {
    color: var(--color-success);
    flex: 0 0 auto;
}

/* --- Mobile disclosure variant of summary --- */
.checkout-summary--mobile {
    margin: var(--space-3) 0 var(--space-4);
    position: relative;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .checkout-summary--mobile {
        display: none;
    }
}
.checkout-summary__disclosure {
    margin: 0;
}
.checkout-summary__disclosure > summary.checkout-summary__disclosure-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-subtle);
    border-radius: var(--radius);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    transition: background-color var(--duration-fast) var(--ease-out);
}
.checkout-summary__disclosure[open] > summary.checkout-summary__disclosure-summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: var(--color-primary-soft);
}
.checkout-summary__disclosure-summary::-webkit-details-marker { display: none; }
.checkout-summary__disclosure-summary::after {
    content: "";
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F28C1C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex: 0 0 auto;
    transition: transform var(--duration-fast) var(--ease-out);
    margin-left: auto;
}
.checkout-summary__disclosure[open] > summary.checkout-summary__disclosure-summary::after {
    transform: rotate(180deg);
}
.checkout-summary__count {
    color: var(--color-text-muted);
    font-weight: var(--fw-normal);
    font-size: var(--fs-sm);
    margin-left: 4px;
}
.checkout-summary__disclosure-total {
    color: var(--color-text);
    font-weight: var(--fw-bold);
    white-space: nowrap;
}

/* --- Empty cart state (kosik.php) --- */
.checkout-empty-state {
    margin: var(--space-6) auto;
    max-width: 560px;
    padding: var(--space-7) var(--space-5);
    text-align: center;
    background: #fff;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-xs);
}
.checkout-empty-state__icon {
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}
.checkout-empty-state__title {
    margin: 0;
    font-size: var(--fs-xl);
    color: var(--color-text);
    font-weight: var(--fw-bold);
}
.checkout-empty-state__body {
    margin: 0;
    max-width: 420px;
    color: var(--color-text-muted);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
}
.checkout-empty-state__actions {
    display: inline-flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-2);
}

/* --- Mobile sticky CTA (duplicates primary button at bottom for thumb reach) --- */
.checkout-sticky-cta {
    display: none;
}
@media (max-width: 1023px) {
    .checkout-page[data-checkout-step="2"] .checkout-sticky-cta,
    .checkout-page[data-checkout-step="3"] .checkout-sticky-cta,
    .checkout-page[data-checkout-step="4"] .checkout-sticky-cta {
        position: fixed;
        bottom: calc(var(--bottom-nav-h, 0px) + env(safe-area-inset-bottom));
        left: 0;
        right: 0;
        z-index: 45;
        display: flex;
        gap: var(--space-2);
        padding: var(--space-2) var(--space-4) calc(var(--space-2) + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--color-border);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
        transform: translateY(0);
        transition: transform var(--duration) var(--ease-out);
        align-items: center;
    }
    .checkout-sticky-cta--hidden {
        transform: translateY(120%);
    }
    .checkout-sticky-cta__total {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }
    .checkout-sticky-cta__total-label {
        font-size: var(--fs-xs);
        color: var(--color-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        line-height: 1;
    }
    .checkout-sticky-cta__total-value {
        font-size: var(--fs-lg);
        color: var(--color-text);
        font-weight: var(--fw-bold);
        line-height: 1.1;
    }
    .checkout-sticky-cta__btn {
        flex: 0 0 auto;
        min-height: 48px;
        padding: var(--space-2) var(--space-5);
        white-space: nowrap;
    }
    body.checkout-sticky-cta-active {
        padding-bottom: calc(var(--bottom-nav-h, 0px) + 80px + env(safe-area-inset-bottom));
    }
}

/* ==========================================================================
   28a. REDUCED MOTION — final consolidated kill-switch
   (Doplňuje globální blok na řádku 162, který killuje transition/animation duration.
    Tady killujeme i konkrétní transform/scale na :hover, které by jinak proběhly
    okamžitě a působily vizuálně ostřeji než plynulá animace.)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    /* Hover/focus transforms — žádné překvapivé skoky pro uživatele s vestibulárními problémy */
    .home-category:hover,
    .home-category:focus-visible,
    .home-bestseller-card:hover,
    .home-bestseller-card:focus-visible,
    .home-brand-showcase__item:hover,
    .home-brand-showcase__item:focus-visible,
    .brand-strip a:hover,
    .home-hero__search-submit:hover,
    .card-product:hover,
    .product-detail__related-card:hover,
    .btn:hover,
    .btn:active,
    .site-cart:hover,
    .site-cart:focus-visible,
    .bottom-nav__item:active,
    .home-category:hover img,
    .home-bestseller-card:hover .home-bestseller-card__media img,
    .home-bestseller-card:hover .home-bestseller-card__cta span {
        transform: none !important;
    }
    /* Page-load fade-in stagger — zruš všechen entrance animation pro reduced-motion */
    .content > .product-grid,
    .content > .grid,
    .hero,
    .trust-strip,
    .brand-strip,
    .content > .desc-box,
    .content > .foto-box,
    .content > .des-cont,
    .product-grid > .card-product {
        animation: none !important;
        opacity: 1 !important;
    }
    /* Smooth scroll na anchor → instant (skip-link target by jinak skipoval) */
    html { scroll-behavior: auto !important; }
}

/* ==========================================================================
   29. PRINT
   ========================================================================== */

@media print {
    .site-header, .top-strip, .menu-box, .basket-box, .footer, .site-footer,
    .footer-newsletter, .cookie-consent, #motopneu-cookie-consent, .skip-link,
    #back-top, .bottom-nav, .header-action, .site-nav,
    .filter-sidebar, .toast-stack, .modal, .drawer, .drawer-backdrop, .modal-backdrop {
        display: none !important;
    }
    .content, .container, .wrapper { max-width: 100%; padding: 0; }
    body { background: #fff; color: #000; }
    a { color: #000; text-decoration: underline; }
    .card-product, .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}
