/**
 * Printago E-shop Frontend Styles
 * Modern, minimalist design with purple accent (#521cdf)
 */

/* =====================================================
   PÍSMO MANROPE – z vlastního serveru (ne z Google Fonts kvůli GDPR)
   Variabilní řez 400–800, jen latinka a latin-ext (čeština). Licence: assets/fonts/manrope/OFL.txt
   ===================================================== */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/manrope/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/manrope/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ===================================================== */
:root {
    /* Primary Colors */
    --primary: #521cdf;
    --primary-hover: #4318b8;
    --primary-dark: var(--primary-hover); /* používají hover stavy (filtry, hlídání, přihlášení) */
    --primary-light: rgba(82, 28, 223, 0.08);
    --primary-lighter: rgba(82, 28, 223, 0.04);

    /* Text Colors */
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #6c757d;
    --text-light: #9ca3af;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #fafafe;
    --bg-gray: #f3f4f6;
    --bg-dark: #1a1a2e;

    /* Border Colors */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;

    /* Status Colors */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 20px rgba(82, 28, 223, 0.15);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;

    /* Typography */
    --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Courier New', monospace;

    /* Spacing */
    --header-height: 70px;
    --sidebar-width: 280px;
    --container-max: 1400px;
    --container-padding: 1.5rem;
}

/* =====================================================
   BASE STYLES
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html.no-scroll-behavior,
html.no-scroll-behavior * {
    scroll-behavior: auto !important;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    box-sizing: border-box;
}

.container > * {
    min-width: 0;
}

/* Cart/checkout grids: columns can shrink so container stays centered on mobile */
.container .cart-table,
.container .cart-table-body {
    min-width: 0;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--container-padding);
}

.main-content {
    min-height: calc(100vh - var(--header-height) - 300px);
    padding: 2rem 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.logo a:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.logo .logo-text {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Oblíbené + porovnání – jen v mobilním menu */
.mobile-nav-actions {
    display: none;
}

/* Patička s kontakty – jen v mobilním menu */
.mobile-nav-footer {
    display: none;
}

/* Configurators mega-menu — desktop: side by side */
.nav-link-configurators {
    color: var(--primary);
    font-weight: 600;
}

.configurators-menu {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
}

.configurators-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    flex: 1;
}

.configurators-menu-item:hover {
    background: var(--bg-light);
}

.configurators-menu-item svg {
    flex-shrink: 0;
    color: var(--primary);
}

.configurators-menu-title {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
}

.configurators-menu-desc {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.nav-item {
    position: static;
}


.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.875rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-item.mega-open .nav-link {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link .nav-chevron {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link .nav-chevron {
    transform: rotate(180deg);
}

/* Mega Menu - Portal version (moved to body via JS) */
.mega-menu-portal {
    position: fixed;
    top: 0; /* Will be set by JavaScript */
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-white);
    border-top: 3px solid var(--primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 2rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 1001;
}

.mega-menu-portal.mega-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hide original megamenu inside nav-item (before JS moves it to body) */
.nav-item .mega-menu {
    display: none;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 2.5rem;
}

.mega-menu-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.mega-menu-item:hover {
    background: linear-gradient(135deg, #f0f2f8 0%, #f8f9fc 100%);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.mega-menu-category {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    border-radius: var(--radius-md);
    transition: background-color 0.15s ease;
}

.mega-menu-category:hover {
    background-color: transparent;
}

.mega-menu-image {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mega-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.mega-menu-image svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.mega-menu-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.mega-menu-item:hover .mega-menu-title {
    color: var(--primary);
}

.mega-menu-subcategories {
    padding: 0;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.mega-menu-subcategories a {
    color: #555e68;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.mega-menu-subcategories a:not(:last-child)::after {
    content: ' · ';
    color: var(--border-color);
    font-weight: normal;
    margin: 0 0.1rem;
}

.mega-menu-subcategories a:hover {
    color: var(--primary);
}

/* Mega menu Tiskárny a kancelář: vyhledávač náplní jako zvýrazněná dlaždice */
.mega-menu-promo {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--primary-lighter);
    border: 1px solid rgba(82, 28, 223, 0.16);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.mega-menu-promo:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.mega-menu-promo-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    color: var(--primary);
}

.mega-menu-promo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.mega-menu-promo-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.mega-menu-promo-badge {
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mega-menu-promo-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* Odkaz „Vše v kategorii“ jen v mobilním menu */
.mega-menu-all-link {
    display: none;
}

/* Legacy mega menu styles - keep for fallback */
.mega-menu-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.mega-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mega-menu-links a {
    display: block;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mega-menu-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

/* Configurators mini-dropdown */
.nav-item-configurators {
    position: relative;
}

.configurators-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--primary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    z-index: 1002;
}

.nav-item-configurators:hover .configurators-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.configurators-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: background 0.12s ease;
}

.configurators-dropdown-item:hover {
    background: var(--bg-light);
}

.configurators-dropdown-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.configurators-dropdown-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.configurators-dropdown-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1002;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-gray);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.search-result-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.search-result-stock {
    font-size: 0.6875rem;
    font-weight: 500;
    white-space: nowrap;
}

.search-result-stock.stock-in { color: var(--success); }
.search-result-stock.stock-low { color: var(--warning); }
.search-result-stock.stock-order { color: var(--info); }
.search-result-stock.stock-out { color: var(--danger); }
.search-result-stock.stock-temp { color: var(--text-muted); }

/* Náplně do tiskárny v našeptávači */
.search-sc-printer em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.search-sc-badges {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.125rem;
}

.search-sc-badge {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 0.375rem;
    border-radius: 5px;
    font-size: 0.6875rem;
    font-weight: 800;
}

.search-sc-badge.is-orig { background: #1a1a2e; color: #fff; }
.search-sc-badge.is-comp { background: rgba(82, 28, 223, 0.1); color: var(--primary); }
.search-sc-badge.is-save { background: #dcfce7; color: #166534; }

/* Search result sections */
.search-result-section {
    border-bottom: 1px solid var(--border-light);
}

.search-result-section:last-child {
    border-bottom: none;
}

.search-result-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-light);
}

.search-result-category,
.search-result-brand {
    gap: 0.75rem;
    padding: 0.625rem 1rem;
}

.search-result-category svg,
.search-result-brand svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.search-result-category span,
.search-result-brand span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.search-result-brand-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.search-result-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-light);
    transition: background var(--transition-fast);
}

.search-result-all:hover {
    background: var(--primary-light);
}

.search-result-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
}

.search-result-empty svg {
    color: var(--text-muted);
    opacity: 0.5;
}

.search-result-empty span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Search filter chips (category filtering in autocomplete dropdown) */
.search-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-light);
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    line-height: 1.4;
}

.search-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.search-chip-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.search-chip-active:hover {
    background: var(--primary-hover, var(--primary));
    border-color: var(--primary-hover, var(--primary));
    color: #fff;
}

.search-chip-count {
    font-size: 0.6875rem;
    opacity: 0.7;
}

/* =====================================================
   MOBILE HEADER
   ===================================================== */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* =====================================================
   MOBILE LAYOUT (< 992px)
   ===================================================== */
@media (max-width: 991px) {
    /* Hamburger — animated three lines → X */
    .mobile-menu-toggle {
        display: flex;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        margin-left: 0.5rem;
    }

    .hamburger-icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 20px;
        height: 20px;
        position: relative;
    }

    .hamburger-line {
        display: block;
        width: 18px;
        height: 2px;
        background: currentColor;
        border-radius: 1px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.2s ease;
    }

    .hamburger-line:nth-child(1) {
        top: 3px;
    }

    .hamburger-line:nth-child(2) {
        top: 9px;
    }

    .hamburger-line:nth-child(3) {
        top: 15px;
    }

    /* Active state → X */
    .mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
        top: 9px;
        transform: translateX(-50%) rotate(45deg);
    }

    .mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: translateX(-50%) scaleX(0);
    }

    .mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
        top: 9px;
        transform: translateX(-50%) rotate(-45deg);
    }

    /* Wishlist + compare links in mobile menu */
    .mobile-nav-actions {
        display: flex;
        gap: 0;
        padding: 0.25rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .mobile-nav-action-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.15s ease, background 0.15s ease;
        position: relative;
    }

    .mobile-nav-action-link:hover,
    .mobile-nav-action-link:active {
        color: var(--primary);
        background: rgba(124, 58, 237, 0.04);
    }

    .mobile-nav-action-link svg {
        flex-shrink: 0;
        color: var(--text-muted);
        transition: color 0.15s ease;
    }

    .mobile-nav-action-link:hover svg,
    .mobile-nav-action-link:active svg {
        color: var(--primary);
    }

    .mobile-nav-action-badge {
        font-size: 0.6875rem;
        font-weight: 700;
        color: white;
        background: var(--primary);
        border-radius: 9px;
        min-width: 18px;
        height: 18px;
        line-height: 18px;
        text-align: center;
        padding: 0 5px;
        margin-left: auto;
    }

    /* Mobile slide-in navigation – glass efekt, kompaktnější */
    .main-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 280px;
        height: 100vh;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 1001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        visibility: hidden;
    }

    .main-nav.mobile-open {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    /* Configurators menu on mobile — stacked, compact */
    .configurators-menu {
        flex-direction: column;
        gap: 0;
        padding: 0.25rem 0;
    }

    .configurators-menu-item {
        gap: 0.625rem;
        padding: 0.5rem 0.875rem;
        border-radius: 0;
    }

    .configurators-menu-item svg {
        width: 20px;
        height: 20px;
    }

    .configurators-menu-title {
        font-size: 0.8125rem;
    }

    .configurators-menu-desc {
        display: none;
    }

    /* Mobile: celý řádek rozklikávací, šipka rotuje */
    .nav-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .nav-link .nav-chevron {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }

    .nav-item.expanded .nav-link .nav-chevron {
        transform: rotate(180deg);
    }

    .mega-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    /* Na mobilu POUZE .expanded řídí viditelnost – ne :hover/:focus (na dotyku zůstává sticky hover) */
    .nav-item.expanded .mega-menu {
        display: block;
    }

    .nav-item:not(.expanded) .mega-menu {
        display: none;
    }

    .mega-menu .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        padding: 0.25rem 0 0.35rem 0;
        gap: 0;
    }

    /* Odkaz „Vše v kategorii“ – první řádek v rozbaleném menu */
    .mega-menu-all-link {
        display: block;
        padding: 0.35rem 0.25rem 0.5rem;
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--primary);
        text-decoration: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        margin-bottom: 0.25rem;
    }

    .mega-menu-all-link:hover {
        color: var(--primary-hover);
    }

    /* Odtržítko mezi bloky subkategorií */
    .mega-menu-item {
        padding: 0.35rem 0.25rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .mega-menu-item:last-child {
        border-bottom: none;
    }

    /* Spodní blok kontaktů v mobilním menu */
    .mobile-nav-footer {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: auto;
        padding: 1rem 0.875rem 1.25rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        background: rgba(82, 28, 223, 0.06);
    }

    .mobile-nav-contact {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.625rem 0.75rem;
        border-radius: var(--radius-md);
        text-decoration: none;
        color: var(--text-primary);
        background: rgba(255, 255, 255, 0.7);
        transition: background var(--transition-fast), color var(--transition-fast);
    }

    .mobile-nav-contact:hover {
        background: var(--primary-light);
        color: var(--primary);
    }

    .mobile-nav-contact-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: var(--radius-full);
        background: var(--primary-light);
        color: var(--primary);
        flex-shrink: 0;
    }

    .mobile-nav-contact:hover .mobile-nav-contact-icon {
        background: var(--primary);
        color: white;
    }

    .mobile-nav-contact-text {
        display: flex;
        flex-direction: column;
        gap: 0.125rem;
        min-width: 0;
        flex: 1;
    }

    .mobile-nav-contact-label {
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-muted);
    }

    .mobile-nav-contact:hover .mobile-nav-contact-label {
        color: var(--primary);
    }

    .mobile-nav-contact-value {
        font-size: 0.875rem;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Ikony kategorií v mobilním menu */
    .mega-menu-image {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.6);
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .mega-menu-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .mega-menu-image svg {
        width: 18px;
        height: 18px;
        color: var(--text-muted);
    }

    .mega-menu-category {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.15rem 0;
    }

    .mega-menu-title {
        font-size: 0.8125rem;
        font-weight: 600;
        padding: 0;
    }

    /* Subkategorie v mobilním menu – kompaktní, odtržítka */
    .mega-menu-subcategories {
        display: block;
        margin-top: 0.2rem;
        padding-left: calc(32px + 0.45rem);
        padding-bottom: 0.15rem;
        font-size: 0.75rem;
        line-height: 1.45;
        color: var(--text-muted);
    }

    .mega-menu-subcategories a {
        display: block;
        padding: 0.15rem 0;
        color: var(--text-muted);
        text-decoration: none;
    }

    .mega-menu-subcategories a:hover {
        color: var(--primary);
    }

}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 19, 31, 0.4);
    /* Jemné rozmazání stránky pod otevřeným menu */
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Hide mobile search on desktop */
@media (min-width: 992px) {
    .mobile-search {
        display: none;
    }
}

/* =====================================================
   HEADER (10/2026)
   Proužek s uzávěrkou → hlavní řádek → kategorie.
   Lepí se jen hlavní řádek: proužek odjede (top = −výška proužku) a kategorie se při
   posunu dolů zasunou pod hlavní řádek posunem (ne změnou výšky) – obsah stránky tak
   při posouvání nikdy neposkočí. Na mobilu se lepí jen řádek s hledáním.
   ===================================================== */
:root {
    --hd-strip-h: 36px;
    --hd-main-h: 76px;
    --hd-nav-h: 50px;
    --hd-ink: #14131f;
    --hd-ground: #f3f2f8;
    --hd-line: #d8d5e8;
    --hd-ok: #12b76a;
}

.header {
    position: sticky;
    top: calc(-1 * var(--hd-strip-h));
    z-index: 1050;
    /* Místo po zasunutých kategoriích nesmí blokovat klikání do stránky */
    pointer-events: none;
}

.header > * {
    pointer-events: auto;
}

/* ---------- Servisní proužek ---------- */
.hd-strip {
    position: relative;
    z-index: 3;
    background: var(--hd-ink);
    color: #cfcde0;
    font-size: 0.78125rem;
    font-weight: 600;
}

.hd-strip-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    height: var(--hd-strip-h);
}

.hd-strip-left,
.hd-strip-right {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    white-space: nowrap;
    min-width: 0;
}

.hd-strip-left {
    overflow: hidden;
}

.hd-strip svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.hd-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: inherit;
    text-decoration: none;
}

a.hd-strip-item:hover {
    color: #fff;
}

.hd-sep {
    width: 1px;
    height: 14px;
    flex-shrink: 0;
    background: #3a3852;
}

.hd-dispatch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    color: #fff;
}

.hd-dispatch-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.hd-short {
    display: none;
}

.hd-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--hd-ok);
    animation: hd-pulse 2s infinite;
}

.hd-dot.is-off {
    background: #f5a524;
    animation: none;
}

@keyframes hd-pulse {
    0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(18, 183, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hd-dot { animation: none; }
}

.hd-count,
.hd-mini-dispatch [data-hd-count] {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.hd-count {
    padding: 1px 7px;
    border-radius: 6px;
    background: rgba(18, 183, 106, 0.14);
    color: #7ff0bb;
    font-size: 0.75rem;
}

.hd-free b {
    color: #fff;
}

.hd-free.is-done {
    color: #7ff0bb;
}

.hd-vat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hd-vat-label {
    color: #8a88a3;
}

.hd-vat-seg {
    display: inline-flex;
    padding: 2px;
    border-radius: 8px;
    background: #24223a;
}

.hd-vat-seg button {
    padding: 2px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #9c9ab3;
    font: inherit;
    font-size: 0.71875rem;
    font-weight: 700;
    cursor: pointer;
}

.hd-vat-seg button[aria-pressed="true"] {
    background: #fff;
    color: var(--hd-ink);
}

.hd-vat-seg button:focus-visible {
    outline: 2px solid #a99bf5;
    outline-offset: 1px;
}

/* ---------- Hlavní řádek ---------- */
.hd-main {
    position: relative;
    z-index: 2;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.2s ease;
}

.hd-main-in {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: var(--hd-main-h);
}

.hd-cats-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    height: 42px;
    padding: 0 0.875rem;
    border: 1.5px solid var(--hd-line);
    border-radius: 12px;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.hd-cats-btn svg {
    width: 18px;
    height: 18px;
}

.hd-cats-btn:hover,
.hd-cats-btn[aria-expanded="true"] {
    border-color: var(--primary);
    color: var(--primary);
}

/* Hledání (desktop i mobil) */
.header-search {
    position: relative;
    z-index: 10;
    flex: 1 1 auto;
    max-width: 640px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.hd-search-ico {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: #8b8fa3;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 5.5rem 0 2.75rem;
    border: 1.5px solid #e4e1ef; /* jemný rámeček – pole na bílé hlavičce jinak splývalo (hlavně na OLED) */
    border-radius: 14px;
    background: var(--hd-ground);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.search-input::placeholder {
    color: #8b8fa3;
}

.search-input:hover:not(:focus) {
    border-color: #d3cee6;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(82, 28, 223, 0.12);
}

.hd-kbd {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    padding: 1px 6px;
    border: 1px solid var(--hd-line);
    border-radius: 6px;
    background: #fff;
    color: #8b8fa3;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 0.6875rem;
    line-height: 1.4;
    pointer-events: none;
}

.search-input:focus ~ .hd-kbd,
.search-input:not(:placeholder-shown) ~ .hd-kbd {
    display: none;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.search-btn:hover {
    background: var(--primary-hover);
}

.search-btn:active {
    transform: translateY(-50%) scale(0.96);
}

/* Poradenství po telefonu */
.hd-help {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
    color: var(--text-primary);
    text-decoration: none;
}

.hd-help-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    transition: background 0.15s, color 0.15s;
}

.hd-help-ico svg {
    width: 19px;
    height: 19px;
}

.hd-help:hover .hd-help-ico {
    background: var(--primary);
    color: #fff;
}

.hd-help-txt small {
    display: block;
    color: var(--text-muted);
    font-size: 0.71875rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.hd-help-txt strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.3;
    white-space: nowrap;
}

/* Štítek uzávěrky v přilepené hlavičce */
.hd-mini-dispatch {
    display: none;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 5px 11px;
    border-radius: 99px;
    background: #e9f8f0;
    color: #0b7a48;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.hd-mini-dispatch .hd-dot {
    width: 7px;
    height: 7px;
}

/* Oblíbené, porovnání, účet, košík */
.hd-acts {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    margin-left: auto;
}

.hd-act {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 62px;
    padding: 6px 6px 4px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.71875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.hd-act:hover {
    background: var(--hd-ground);
    color: var(--text-primary);
}

.hd-act svg {
    width: 22px;
    height: 22px;
}

.hd-act-label {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hd-badge {
    position: absolute;
    top: 1px;
    left: calc(50% + 5px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 99px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65625rem;
    font-weight: 800;
    line-height: 1;
}

.hd-badge[hidden] {
    display: none;
}

.hd-check {
    position: absolute;
    top: 3px;
    left: calc(50% + 5px);
    display: grid;
    place-items: center;
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--hd-ok);
    color: #fff;
}

.hd-cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    height: 48px;
    margin-left: 0.5rem;
    padding: 0 1rem 0 0.75rem;
    border: 1.5px solid var(--primary);
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px -10px rgba(82, 28, 223, 0.7);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hd-cart:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.hd-cart svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.hd-cart-txt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    white-space: nowrap;
}

.hd-cart-txt small {
    margin-top: 2px;
    font-size: 0.65625rem;
    font-weight: 600;
    opacity: 0.75;
}

.hd-cart .hd-badge {
    top: -7px;
    left: 24px;
    background: var(--hd-ink);
}

.hd-cart.is-empty {
    border-color: var(--hd-line);
    background: #fff;
    color: var(--text-primary);
    box-shadow: none;
}

.hd-cart.is-empty:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ---------- Kategorie ---------- */
.nav-bar {
    position: relative;
    z-index: 1;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}

.hd-mnav-head,
.hd-accent-desc,
.hd-cat-ico,
.hd-chips,
.mobile-search,
.hd-mbtn {
    display: none;
}

@media (min-width: 992px) {
    .nav-bar {
        transition: transform 0.25s ease, visibility 0s linear 0s;
    }

    .main-nav {
        height: var(--hd-nav-h);
        gap: 0;
        /* Pojistka pro dlouhé názvy kategorií: radši posunout než přetéct (mega menu je mimo lištu) */
        overflow-x: auto;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav > .nav-item > .nav-link {
        gap: 0.2rem;
        height: 36px;
        padding: 0 0.5rem;
        border-radius: 10px;
        color: var(--text-secondary);
        font-size: 0.875rem;
        font-weight: 600;
    }

    /* Najetí: fialové zvýraznění a otočení šipky (původní vzhled, .nav-link:hover výše) */
    .main-nav > .nav-item > .nav-link:hover,
    .main-nav > .nav-item.mega-open > .nav-link {
        background: var(--primary-light);
        color: var(--primary);
    }

    .main-nav > .nav-item.mega-open > .nav-link .nav-chevron {
        transform: rotate(180deg);
    }

    .main-nav > .nav-item > .nav-link > .nav-chevron {
        width: 14px;
        height: 14px;
    }

    /* Náplně do tiskárny – první a zvýrazněné */
    .nav-item-accent {
        margin-right: 0.5rem;
    }

    .main-nav > .nav-item-accent > .nav-link,
    .main-nav > .nav-item-accent > .nav-link:hover {
        gap: 0.45rem;
        padding: 0 0.75rem 0 0.625rem;
        background: var(--primary-light);
        color: #3c14a6;
    }

    .main-nav > .nav-item-accent > .nav-link:hover {
        background: rgba(82, 28, 223, 0.14);
    }

    .hd-accent-ico {
        display: flex;
        color: var(--primary);
    }

    .hd-accent-ico svg {
        width: 18px;
        height: 18px;
    }

    /* Konfigurátory vpravo jako nástroj */
    .nav-item-tools {
        margin-left: auto;
    }

    .main-nav > .nav-item-tools > .nav-link {
        gap: 0.4rem;
        border: 1.5px solid var(--hd-line);
        color: var(--text-primary);
    }

    .main-nav > .nav-item-tools > .nav-link:hover {
        border-color: var(--primary);
        background: #fff;
        color: var(--primary);
    }

    .mobile-nav-actions,
    .mobile-nav-footer {
        display: none;
    }

    /* Přilepená hlavička: místo telefonu tlačítko Kategorie a štítek uzávěrky */
    .header.is-stuck .hd-cats-btn {
        display: inline-flex;
    }

    .header.is-stuck .hd-help {
        display: none;
    }

    .header.is-stuck .hd-mini-dispatch:not([hidden]) {
        display: inline-flex;
    }

    .header.is-stuck .nav-bar {
        box-shadow: 0 10px 24px -16px rgba(20, 19, 31, 0.35);
    }

    .header.nav-hidden .nav-bar {
        transform: translateY(-100%);
        visibility: hidden;
        box-shadow: none;
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
    }

    .header.is-stuck.nav-hidden .hd-main {
        box-shadow: 0 10px 24px -16px rgba(20, 19, 31, 0.35);
    }
}

.hd-beta {
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--primary);
    color: #fff;
    font-size: 0.59375rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.5;
}

/* Užší desktop: postupně ubíráme to nejméně důležité, ať se nic nezalamuje */
/* Obsah má max. 1400 px, takže na širokém monitoru místa nepřibývá: Konfigurátory jsou
   na desktopu vždy jen klíč se šipkou (popisek v title), BETA až při plné šířce obsahu */
@media (min-width: 992px) {
    .nav-item-tools .hd-cat-name {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1447px) {
    .nav-item-accent .hd-beta {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1439px) {
    .main-nav > .nav-item > .nav-link {
        padding-left: clamp(0.3rem, calc((100vw - 1180px) / 30), 0.5rem);
        padding-right: clamp(0.3rem, calc((100vw - 1180px) / 30), 0.5rem);
    }
}

@media (min-width: 992px) and (max-width: 1319px) {
    .hd-help {
        display: none;
    }

    .hd-strip-right .hd-strip-item:nth-of-type(n+3) {
        display: none;
    }

    .main-nav > .nav-item > .nav-link {
        font-size: 0.8125rem;
    }

    .main-nav > .nav-item > .nav-link > .nav-chevron {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1179px) {
    .hd-main-in {
        gap: 1rem;
    }

    .hd-act {
        min-width: 44px;
    }

    .hd-act-label,
    .hd-kbd,
    .hd-free {
        display: none;
    }

    .hd-strip-left .hd-sep {
        display: none;
    }

    .hd-accent-ico,
    .nav-item-tools .hd-cat-name {
        display: none;
    }

    .main-nav > .nav-item > .nav-link {
        font-size: 0.75rem;
    }
}

/* ---------- Mobil a tablet ---------- */
@media (max-width: 991px) {
    :root {
        --hd-strip-h: 30px;
        --hd-main-h: 56px;
    }

    .header {
        /* Lepí se jen řádek s hledáním */
        top: calc(-1 * (var(--hd-strip-h) + var(--hd-main-h)));
        z-index: 1002;
    }

    .hd-strip {
        font-size: 0.75rem;
    }

    .hd-strip-in {
        justify-content: center;
    }

    .hd-strip-right,
    .hd-free,
    .hd-strip-left .hd-sep,
    .hd-long {
        display: none;
    }

    .hd-short {
        display: inline;
    }

    .hd-main {
        border-bottom: 0; /* výška musí sedět s --hd-main-h (lepí se řádek s hledáním) */
    }

    .hd-main-in {
        gap: 0.125rem;
        padding-left: 0.875rem;
        padding-right: 0.375rem;
    }

    .logo {
        flex: 1;
        min-width: 0;
    }

    .logo img {
        height: 30px;
        max-width: 140px;
    }

    .logo .logo-text {
        font-size: 1.25rem;
    }

    .header-search,
    .hd-help,
    .hd-cats-btn,
    .hd-mini-dispatch,
    .hd-act-desktop {
        display: none !important;
    }

    .hd-act {
        justify-content: center;
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
    }

    .hd-act-label {
        display: none;
    }

    .hd-act .hd-badge,
    .hd-check {
        top: 4px;
        left: 24px;
    }

    .hd-cart {
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: 2px;
        padding: 0;
        border-radius: 12px;
        box-shadow: none;
    }

    .hd-cart.is-empty {
        border-color: transparent;
        background: transparent;
    }

    .hd-cart-txt {
        display: none;
    }

    .hd-cart .hd-badge {
        top: 2px;
        left: 24px;
    }

    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        margin-left: 0;
    }

    /* Řádek s hledáním – po přilepení přibude menu a košík */
    .mobile-search {
        display: block;
        position: relative;
        z-index: 2;
        background: #fff;
        border-bottom: 1px solid var(--border-light);
        transition: box-shadow 0.2s ease;
    }

    .hd-msearch {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 4px 12px 10px;
    }

    .header.is-stuck .hd-msearch {
        padding: 7px 8px;
    }

    .header.is-stuck .mobile-search {
        box-shadow: 0 10px 20px -14px rgba(20, 19, 31, 0.4);
    }

    .mobile-search-wrapper {
        position: relative;
        flex: 1;
        min-width: 0;
    }

    .hd-mbtn {
        position: relative;
        place-items: center;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: var(--text-primary);
        cursor: pointer;
    }

    .hd-mbtn svg {
        width: 23px;
        height: 23px;
    }

    .header.is-stuck .hd-msearch .hd-mbtn {
        display: grid;
    }

    .hd-mbtn-cart {
        background: var(--primary);
        color: #fff;
    }

    .hd-mbtn .hd-badge {
        top: 3px;
        left: 24px;
        border-color: var(--primary);
        background: var(--hd-ink);
    }

    .mobile-search .search-input {
        height: 44px;
        padding: 0 3.25rem 0 2.6rem;
        border-radius: 12px;
        font-size: 16px; /* iOS nepřibližuje */
    }

    .mobile-search .hd-search-ico {
        left: 13px;
    }

    .mobile-search .search-btn {
        width: 36px;
        height: 36px;
        right: 4px;
    }

    .mobile-search .search-results {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        max-height: 60vh;
    }

    /* Kategorie jsou na mobilu vysouvací panel */
    .nav-bar {
        position: static;
        height: 0;
        overflow: visible;
        padding: 0;
        margin: 0;
        border: none;
        background: none;
    }

    .main-nav {
        width: 86%;
        max-width: 340px;
        padding: 0;
        background: #fff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hd-mnav-head {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        height: 56px;
        padding: 0 0.375rem 0 1.125rem;
        border-bottom: 1px solid var(--border-light);
        background: #fff;
    }

    .hd-mnav-head strong {
        font-size: 1.0625rem;
        font-weight: 800;
    }

    .hd-mnav-head .hd-mbtn {
        display: grid;
    }

    /* Karta náplní nahoře */
    .nav-item-accent {
        padding: 0.875rem 0.875rem 0.5rem;
        border-bottom: 0;
    }

    .main-nav > .nav-item-accent > .nav-link {
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 0.75rem;
        border-radius: 14px;
        background: var(--hd-ink);
        color: #fff;
    }

    .hd-accent-ico {
        display: grid;
        place-items: center;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 11px;
        background: var(--primary);
        color: #fff;
    }

    .hd-accent-ico svg {
        width: 20px;
        height: 20px;
    }

    .hd-accent-txt {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .hd-accent-title {
        font-size: 0.9375rem;
        font-weight: 800;
    }

    .hd-accent-desc {
        display: block;
        color: #b9b7cc;
        font-size: 0.75rem;
        font-weight: 500;
        white-space: normal;
    }

    .nav-item-accent .hd-beta {
        align-self: flex-start;
        margin-left: auto;
    }

    /* Řádky kategorií s ikonami */
    .main-nav > .nav-item > .nav-link {
        justify-content: flex-start;
        gap: 0.75rem;
        min-height: 50px;
        padding: 0.375rem 0.875rem;
        font-size: 0.9375rem;
        font-weight: 700;
    }

    .hd-cat-name {
        flex: 1;
        min-width: 0;
    }

    .hd-cat-ico,
    .main-nav > .nav-item-tools > .nav-link > svg:first-child {
        display: grid;
        place-items: center;
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        border-radius: 9px;
        background: var(--hd-ground);
        color: var(--text-secondary);
    }

    .main-nav > .nav-item-tools > .nav-link > svg:first-child {
        padding: 7px;
        color: var(--primary);
    }

    .hd-cat-ico svg {
        width: 18px;
        height: 18px;
    }

    .main-nav > .nav-item-tools > .nav-link {
        color: var(--text-primary);
    }

    /* Rychlé odkazy */
    .mobile-nav-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 0.875rem;
        border-bottom: 0;
    }

    .mobile-nav-action-link {
        gap: 0.5rem;
        height: 44px;
        padding: 0 0.75rem;
        border-radius: 11px;
        background: var(--hd-ground);
        color: var(--text-secondary);
        font-size: 0.8125rem;
        font-weight: 700;
    }

    /* Ceny a kontakt dole */
    .mobile-nav-footer {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: auto;
        padding: 0.875rem 0.875rem 1.25rem;
        border-top: 1px solid var(--border-light);
        background: #faf9fd;
    }

    .hd-mvat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--text-secondary);
        font-size: 0.875rem;
        font-weight: 700;
    }

    .hd-mvat .hd-vat-seg {
        background: #ecebf3;
    }

    .hd-mvat .hd-vat-seg button {
        padding: 5px 12px;
        color: var(--text-muted);
        font-size: 0.8125rem;
    }

    .hd-mvat .hd-vat-seg button[aria-pressed="true"] {
        background: #fff;
        color: var(--hd-ink);
        box-shadow: 0 1px 2px rgba(20, 19, 31, 0.12);
    }

    .hd-mcall {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem;
        border: 1.5px solid var(--hd-line);
        border-radius: 14px;
        background: #fff;
        color: var(--text-primary);
        text-decoration: none;
    }

    .hd-mcall-btn {
        display: grid;
        place-items: center;
        margin-left: auto;
        height: 38px;
        padding: 0 14px;
        border-radius: 10px;
        background: var(--hd-ok);
        color: #fff;
        font-size: 0.8125rem;
        font-weight: 800;
        flex-shrink: 0;
    }

    /* Na úzkém telefonu se popisek zalomí, ať tlačítko „Zavolat“ nevyjede z karty */
    .hd-mcall .hd-help-ico {
        flex-shrink: 0;
    }

    .hd-mcall .hd-help-txt {
        flex: 1 1 auto;
        min-width: 0;
    }

    .hd-mcall .hd-help-txt small {
        white-space: normal;
    }

    .hd-mmail {
        color: var(--text-secondary);
        font-size: 0.8125rem;
        text-align: center;
        text-decoration: none;
    }

    /* Rychlé zkratky pod hlavičkou (homepage) */
    .hd-chips {
        display: flex;
        gap: 6px;
        padding: 10px 12px 2px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .hd-chips::-webkit-scrollbar {
        display: none;
    }

    .hd-chips a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        height: 34px;
        padding: 0 12px;
        border: 1px solid var(--border-light);
        border-radius: 10px;
        background: #fff;
        color: var(--text-secondary);
        font-size: 0.8125rem;
        font-weight: 700;
        text-decoration: none;
    }

    .hd-chips a.is-accent {
        border-color: #ddd4fb;
        background: var(--primary-light);
        color: #3c14a6;
    }

    .hd-chips svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 374px) {
    .logo img {
        height: 26px;
        max-width: 110px;
    }

    .hd-act,
    .hd-cart,
    .mobile-menu-toggle {
        width: 40px;
        min-width: 40px;
    }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-light);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
}

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

/* Configurator Banner (in battery/charger categories) */
.cfg-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(82, 28, 223, 0.06) 0%, rgba(82, 28, 223, 0.12) 100%);
    border: 1px solid rgba(82, 28, 223, 0.18);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.cfg-banner:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(82, 28, 223, 0.12);
    transform: translateY(-1px);
}

.cfg-banner-icon {
    flex-shrink: 0;
    color: var(--primary);
}

.cfg-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.cfg-banner-text strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cfg-banner-text span {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 500;
}

@media (max-width: 480px) {
    .cfg-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }
}

/* =====================================================
   PRODUCT CARDS
   ===================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 479px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 28px -4px rgba(108, 92, 231, 0.18), 0 4px 10px -2px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.product-card:hover .product-price-current {
    color: color-mix(in srgb, var(--primary) 70%, #000);
}

.product-card:hover .product-price-current.product-price-sale {
    color: #9a2e23;
}

.product-card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.product-badge {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
}

.product-badge-new {
    background: var(--primary);
    color: white;
}

.product-badge-sale {
    background: var(--danger);
    color: white;
}

/* Pravidelná sleva („Středa s TB“) – štítek bez procent */
.product-badge-campaign {
    background: #0f766e;
    color: white;
}

/* Doprodej – dodavatel zboží už nenaskladní (ATC isEOL) */
.product-badge-eol {
    background: #334155;
    color: white;
}

.product-badge-bestseller {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}
.product-badge-opened {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

/* Stav zboží (Rozbaleno, Repasováno, vratky…) – barva z productConditions() přes --cond */
.product-badge-condition {
    background: var(--cond, #ea580c);
    color: white;
}

/* Top actions container (share + wishlist) */
.product-card-top-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
}

.product-card-action-btn,
.product-card-wishlist {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.product-card-action-btn:hover {
    background: var(--bg-white);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.product-card-wishlist:hover,
.product-card-wishlist.active {
    background: var(--bg-white);
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.product-card-action-btn svg,
.product-card-wishlist svg {
    width: 18px;
    height: 18px;
}

/* Fixed aspect box so no image can break the card layout */
.product-card-image {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-white);
    overflow: hidden;
    flex-shrink: 0;
    min-height: 0;
}

.product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    min-width: 0;
    min-height: 0;
    transition: transform var(--transition-normal);
}

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

.product-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--bg-light);
}

.product-card-bottom {
    margin-top: auto;
}

.product-card-brand {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.375rem;
}

.product-card-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.625rem;
}

.product-card-name a {
    color: inherit;
}

.product-card-name a:hover {
    color: var(--primary);
}

.product-card-params {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
    height: 5.5rem;
    overflow: hidden;
    align-content: flex-start;
}

.product-card-param {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6875rem;
    color: var(--text-primary);
    background: #f6f7fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: border-color 0.15s ease;
    cursor: default;
}

.product-card-param:hover {
    border-color: rgba(108, 92, 231, 0.25);
}

/* Tooltip for param badges - rendered via JS as fixed-position element to escape overflow:hidden */
.param-tooltip {
    position: fixed;
    background: var(--text-primary, #1a1a2e);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.3rem 0.625rem;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.param-tooltip.visible {
    opacity: 1;
}

.product-card-param .param-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: var(--primary);
    opacity: 1;
}

.product-card-param .param-icon-bi {
    font-size: 12px;
    flex-shrink: 0;
    color: var(--primary);
    opacity: 1;
}

.product-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-card-price {
    display: flex;
    flex-direction: column;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.product-price-current {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-price-current.product-price-sale {
    color: #b53629;
}

.product-price-old {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-price-vat,
.price-vat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.product-price-secondary {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.price-vat-label-alt {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.product-card-stock {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.product-card-delivery {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.product-card-delivery svg {
    color: var(--primary);
    flex-shrink: 0;
}

.product-card-delivery.placeholder {
    visibility: hidden;
}

.product-card-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-in .product-card-stock-dot {
    background: var(--success);
}

.stock-low .product-card-stock-dot {
    background: var(--warning);
}

.stock-out .product-card-stock-dot {
    background: var(--danger);
}

.stock-in {
    color: var(--success);
}

.stock-low {
    color: var(--warning);
}

.stock-out {
    color: var(--danger);
}

.stock-temp-unavail .product-card-stock-dot {
    background: var(--secondary);
}

.stock-temp-unavail {
    color: var(--secondary);
}

/* Skeleton Loading */
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

.product-card-skeleton {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.product-card-skeleton .skeleton-image {
    width: 100%;
    padding-top: 100%;
    background: linear-gradient(90deg, #f5f5f5 25%, #ebebeb 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.product-card-skeleton .skeleton-content {
    padding: 1rem;
}

.product-card-skeleton .skeleton-brand {
    width: 60px;
    height: 12px;
    margin-bottom: 0.5rem;
}

.product-card-skeleton .skeleton-title {
    width: 100%;
    height: 16px;
    margin-bottom: 0.375rem;
}

.product-card-skeleton .skeleton-title-2 {
    width: 70%;
    height: 16px;
    margin-bottom: 0.75rem;
}

.product-card-skeleton .skeleton-params {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.product-card-skeleton .skeleton-param {
    width: 50px;
    height: 18px;
    border-radius: var(--radius-sm);
}

.product-card-skeleton .skeleton-stock {
    width: 80px;
    height: 14px;
    margin-bottom: 0.5rem;
}

.product-card-skeleton .skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card-skeleton .skeleton-price {
    width: 80px;
    height: 24px;
}

.product-card-skeleton .skeleton-button {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

/* Product Delivery Estimate */
.product-delivery {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.product-delivery svg {
    color: var(--primary);
    flex-shrink: 0;
}

.product-delivery strong {
    color: var(--text-primary);
}

.product-card-add {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.product-card-add:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

/* =====================================================
   COMPACT PRODUCT CARD (Horizontal - for accessories)
   ===================================================== */
.products-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (max-width: 991px) {
    .products-grid-compact {
        grid-template-columns: 1fr;
    }
}

.product-card-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.product-card-compact:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.product-compact-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.product-compact-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.product-compact-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-compact-brand {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.product-compact-name {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
}

.product-compact-name a {
    color: var(--text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-compact-name a:hover {
    color: var(--primary);
}

.product-compact-stock {
    font-size: 0.6875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-compact-stock .product-card-stock-dot {
    width: 6px;
    height: 6px;
}

.product-compact-action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.product-compact-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.product-compact-action .btn-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   CATALOG LAYOUT
   ===================================================== */
.catalog-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 2rem;
}

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

/* Sidebar Filters – aside na celou výšku gridu, sticky wrapper drží filtry nahoře */
.catalog-sidebar {
    align-self: start;
}

.catalog-sidebar-sticky {
    /* No sticky/scroll — sidebar scrolls with the page (like Alza) */
}

/* Mobile sidebar: header/footer hidden on desktop */
.catalog-sidebar-mobile-header,
.catalog-sidebar-mobile-footer {
    display: none;
}

@media (max-width: 991px) {
    .catalog-sidebar {
        display: none;
    }

    .catalog-sidebar.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: var(--bg-white);
        z-index: 1100;
        overflow: hidden;
        padding: 0;
    }

    .catalog-sidebar.mobile-open .catalog-sidebar-mobile-header {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        padding-left: max(1.25rem, env(safe-area-inset-left));
        padding-right: max(1.25rem, env(safe-area-inset-right));
        padding-top: max(1rem, env(safe-area-inset-top));
        border-bottom: 1px solid var(--border-light);
        background: var(--bg-white);
    }

    .catalog-sidebar-mobile-title {
        margin: 0;
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .catalog-sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: -0.5rem -0.5rem -0.5rem 0;
        padding: 0;
        background: none;
        border: none;
        border-radius: var(--radius-md);
        color: var(--text-primary);
        cursor: pointer;
    }

    .catalog-sidebar-close-btn:hover {
        background: var(--bg-gray);
    }

    .catalog-sidebar.mobile-open .catalog-sidebar-sticky {
        position: static;
        max-height: none;
        overflow: visible;
        display: contents;
    }

    .catalog-sidebar.mobile-open .catalog-sidebar-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 1rem 1.25rem;
        padding-left: max(1.25rem, env(safe-area-inset-left));
        padding-right: max(1.25rem, env(safe-area-inset-right));
        -webkit-overflow-scrolling: touch;
    }

    .catalog-sidebar.mobile-open .catalog-sidebar-mobile-footer {
        display: block;
        flex-shrink: 0;
        padding: 1rem 1.25rem;
        padding-left: max(1.25rem, env(safe-area-inset-left));
        padding-right: max(1.25rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        border-top: 1px solid var(--border-light);
        background: var(--bg-white);
    }

    .catalog-sidebar-apply-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        min-height: 48px;
        font-weight: 600;
    }
}

/* ---- Sidebar Filter Sections (modern, borderless) ---- */
.filter-section {
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
    overflow: visible;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    cursor: pointer;
    user-select: none;
    gap: 0.5rem;
}

.filter-header h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    margin: 0;
}

.filter-header svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.filter-section.collapsed .filter-header svg {
    transform: rotate(-90deg);
}

.filter-content {
    padding: 0 0 0.75rem;
}

.filter-section.collapsed .filter-content {
    display: none;
}

/* Price Filter - Dual Range Slider */
.price-slider-container {
    position: relative;
    height: 24px;
    margin: 0.5rem 0 0.375rem;
    overflow: visible;
}

.price-slider-track {
    position: absolute;
    top: 50%;
    left: 9px;   /* half of thumb width — align track start with thumb center at 0% */
    right: 9px;  /* half of thumb width — align track end with thumb center at 100% */
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    transform: translateY(-50%);
}

.price-slider-range {
    position: absolute;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

.price-slider-input {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 24px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.price-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.price-slider-input::-webkit-slider-thumb:active {
    transform: scale(1.15);
    background: var(--primary);
}

.price-slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.price-slider-input::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.price-slider-input::-moz-range-track {
    background: transparent;
}

.price-slider-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.price-slider-values span {
    font-weight: 500;
    color: var(--text-primary);
}

/* Legacy price inputs (hidden but may be used as fallback) */
.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
}

.price-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Checkbox Filters */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem 0.25rem;
    border-radius: var(--radius-sm);
    transition: background 0.1s ease;
}

.filter-option:hover {
    background: var(--bg-light);
}

/* Custom CSS checkboxes (14px, rounded, brand color) */
.filter-option input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    min-width: 14px;
    border: 1.5px solid var(--border-medium);
    border-radius: 3px;
    background: var(--bg-white);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.15s ease;
    margin: 0;
    /* Prevent browser from scrolling to focused checkbox */
    scroll-margin: 0;
    scroll-snap-align: none;
}

.filter-option input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.filter-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 3.5px;
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.filter-option input[type="checkbox"]:hover {
    border-color: var(--primary);
}

/* Prevent focus outline from causing scroll */
.filter-option input[type="checkbox"]:focus,
.filter-option-compact input[type="checkbox"]:focus {
    outline: none;
}

.filter-option-label {
    flex: 1;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.filter-option-count {
    font-size: 0.6875rem;
    color: var(--text-light);
    transition: color 0.2s ease;
    min-width: 2em;
    text-align: right;
}

/* Disabled filter options (0 count) */
.filter-option.disabled,
.filter-option-compact.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.filter-option.disabled .filter-option-label,
.filter-option-compact.disabled span {
    color: var(--text-muted);
}

.filter-option.disabled .filter-option-count,
.filter-option-compact.disabled small {
    color: var(--text-muted);
}

/* Numeric grid layout (e.g. RAM: 4GB / 8GB / 16GB) */
.filter-options.filter-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

.filter-options-grid .filter-option {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.25rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
    gap: 0.0625rem;
}

.filter-options-grid .filter-option:hover {
    border-color: rgba(82, 28, 223, 0.3);
    background: var(--primary-lighter);
}

.filter-options-grid .filter-option input[type="checkbox"] {
    display: none; /* checkbox hidden, entire box is clickable */
}

.filter-options-grid .filter-option.active,
.filter-options-grid .filter-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.filter-options-grid .filter-option-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-primary);
}

.filter-options-grid .filter-option.active .filter-option-label,
.filter-options-grid .filter-option:has(input:checked) .filter-option-label {
    color: var(--primary);
    font-weight: 600;
}

.filter-options-grid .filter-option-count {
    font-size: 0.5625rem;
    min-width: auto;
    text-align: center;
}

/* Inline search for long filter lists (e.g. Brand) */
.filter-search-inline {
    position: relative;
    margin-bottom: 0.5rem;
}

.filter-search-inline input {
    width: 100%;
    padding: 0.375rem 0.5rem 0.375rem 1.75rem;
    font-size: 0.8125rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.filter-search-inline input:focus {
    border-color: var(--primary);
    background: var(--bg-white);
}

.filter-search-inline svg {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.filter-search-inline input::placeholder {
    color: var(--text-light);
}

/* More Filters Button */
.filter-more-btn {
    background: transparent;
    border: none;
    border-bottom: none;
    padding: 1rem 0 0.5rem;
}

.filter-more-btn .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(82, 28, 223, 0.06);
    border: 1.5px solid rgba(82, 28, 223, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-more-btn .btn:hover {
    background: rgba(82, 28, 223, 0.1);
    border-color: rgba(82, 28, 223, 0.35);
    box-shadow: 0 2px 8px rgba(82, 28, 223, 0.12);
}

.filter-more-btn .btn svg {
    color: var(--primary);
    opacity: 0.7;
}

.filter-more-btn .btn .filter-active-badge {
    background: var(--primary);
    color: white;
    font-size: 0.625rem;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    margin-left: 0;
    margin-right: 0;
}

/* Sticky Apply Filters Button */
.filter-apply-sticky {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, var(--bg-white) 90%, transparent);
    z-index: 100;
    margin-top: 1rem;
}

.filter-apply-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
}

.filter-apply-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.filter-apply-btn svg {
    flex-shrink: 0;
}

/* Legacy container (for modal) */
.filter-apply-container {
    padding: 1rem;
    border-top: 1px solid var(--border-light);
}

.filter-apply-container .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* AJAX Loading State */
/* Optimistic UI: instant visual feedback before debounce fires */
.catalog-main.loading-pending {
    opacity: 0.7;
    transition: opacity 0.1s ease;
    pointer-events: none;
}

/* Načítání katalogu „fialová vlna“: karty zůstanou vidět, ztlumí se a přes ně přejede
   odlesk (zleva doprava po sloupcích), nahoře běží progress bar (#catalogProgress v app.js)
   a nové karty pak naskočí postupně (.pc-enter) */
.catalog-main.is-loading {
    position: relative;
    pointer-events: none;
}

.catalog-main.is-loading .product-card {
    transition: opacity 0.2s ease, filter 0.2s ease;
    opacity: 0.55;
    filter: saturate(0.4);
}

.catalog-main.is-loading .product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(105deg, transparent 30%, rgba(82, 28, 223, 0.07) 42%, rgba(255, 255, 255, 0.85) 50%, rgba(82, 28, 223, 0.07) 58%, transparent 70%);
    background-size: 250% 100%;
    background-position: 130% 0;
    animation: catalog-sheen 1.3s ease-in-out infinite;
}

.catalog-main.is-loading .products-grid > .product-card:nth-child(4n+2)::after { animation-delay: 0.08s; }
.catalog-main.is-loading .products-grid > .product-card:nth-child(4n+3)::after { animation-delay: 0.16s; }
.catalog-main.is-loading .products-grid > .product-card:nth-child(4n)::after { animation-delay: 0.24s; }

@keyframes catalog-sheen {
    from { background-position: 130% 0; }
    to { background-position: -30% 0; }
}

/* Progress bar na spodní hraně viditelné části hlavičky (pod nejnižší viditelný řádek –
   kategorie, hlavní řádek, na mobilu hledání; bez hlavičky nahoře okna) */
.header > * > .catalog-progress {
    position: absolute;
    top: auto;
    bottom: -2px;
}

.catalog-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 100%;
    height: 3px;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--primary), #8b5cf6 60%, #c4b5fd);
    box-shadow: 0 0 10px rgba(82, 28, 223, 0.55);
    opacity: 0;
}

.catalog-progress.is-running {
    opacity: 1;
    transform: scaleX(0.85);
    transition: transform 2.4s cubic-bezier(0.1, 0.7, 0.2, 1), opacity 0.1s;
}

.catalog-progress.is-done {
    opacity: 0;
    transform: scaleX(1);
    transition: transform 0.25s ease-out, opacity 0.35s ease 0.2s;
}

/* Nové karty po načtení naskočí postupně (zpoždění z --pc-i v app.js) */
.product-card.pc-enter {
    animation: pc-enter 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--pc-i, 0) * 25ms);
}

@keyframes pc-enter {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-main.is-loading .product-card::after { display: none; }
    .catalog-progress { display: none; }
    .product-card.pc-enter { animation: none; }
}

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

/* ---- Filters Modal (modern, airy, Apple/Notion-inspired) ---- */
.filters-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1150;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.filters-modal-overlay.active {
    display: block;
    opacity: 1;
}

.filters-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.97);
    width: 90%;
    max-width: 780px;
    max-height: 82vh;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 1151;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.filters-modal.active {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal header */
.filters-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.filters-modal-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.filters-modal-close {
    background: none;
    border: none;
    padding: 0.375rem;
    cursor: pointer;
    color: var(--text-light);
    border-radius: 8px;
    transition: all 0.15s ease;
}

.filters-modal-close:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

/* Modal search */
.filters-modal-search {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0.75rem 1.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: var(--bg-light);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.filters-modal-search:focus-within {
    border-color: rgba(82, 28, 223, 0.3);
    background: var(--bg-white);
}

.filters-modal-search svg {
    color: var(--primary);
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.filters-modal-search:focus-within svg {
    opacity: 0.8;
}

.filters-modal-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    outline: none;
    color: var(--text-primary);
}

.filters-modal-search input::placeholder {
    color: var(--text-muted);
}

.filters-search-clear {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-light);
    border-radius: 6px;
    transition: all 0.15s ease;
}

.filters-search-clear:hover {
    color: var(--text-primary);
}

.filters-modal-section.search-hidden {
    display: none;
}

.filters-modal-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Modal body & groups */
.filters-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.08) transparent;
}

.filters-modal-group {
    margin-bottom: 1.5rem;
}

.filters-modal-group:last-child {
    margin-bottom: 0;
}

.filters-modal-group-header {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(124, 58, 237, 0.45);
    padding: 0 0 0.625rem;
    margin-bottom: 0.625rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

.filters-modal-group.search-hidden {
    display: none;
}

.filters-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
}

/* Individual filter sections (cards → light bordered) */
.filters-modal-section {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filters-modal-section:hover {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Active filter accent */
.filters-modal-section.has-active {
    background: var(--bg-white);
    border-color: rgba(82, 28, 223, 0.15);
    border-left: 3px solid rgba(82, 28, 223, 0.4);
}

.filters-modal-section.has-active .filters-modal-section-header span:first-child {
    color: var(--primary);
    opacity: 0.85;
}

/* Section header */
.filters-modal-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: background 0.15s ease;
    border-radius: 12px;
}

.filters-modal-section-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.filters-modal-section-header span:first-child {
    flex: 1;
}

.filters-modal-section-header svg {
    transition: transform 0.2s ease;
    color: var(--text-light);
    width: 14px;
    height: 14px;
}

.filters-modal-section.expanded .filters-modal-section-header svg {
    transform: rotate(180deg);
}

/* Section content with slide animation */
.filters-modal-section-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 0.875rem;
    opacity: 0;
    transition: max-height 0.2s ease, opacity 0.15s ease, padding 0.2s ease;
}

.filters-modal-section.expanded .filters-modal-section-content {
    max-height: 260px;
    overflow-y: auto;
    opacity: 1;
    padding: 0 0.875rem 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.08) transparent;
}

/* Compact filter options for modal */
.filter-options-compact {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.filter-option-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3125rem 0.25rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: background 0.1s ease;
}

.filter-option-compact:hover {
    background: rgba(0, 0, 0, 0.02);
}

.filter-option-compact input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    min-width: 14px;
    margin: 0;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    background: var(--bg-white);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.15s ease;
    scroll-margin: 0;
    scroll-snap-align: none;
}

.filter-option-compact input[type="checkbox"]:hover {
    border-color: var(--primary);
}

.filter-option-compact input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.filter-option-compact input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 3.5px;
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.filter-option-compact span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-option-compact small {
    color: var(--text-light);
    font-size: 0.6875rem;
    min-width: 2em;
    text-align: right;
}

.filter-option-compact.active {
    color: var(--primary);
    font-weight: 500;
}

/* Modal footer */
.filters-modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--bg-white);
}

.filters-modal-clear-all {
    font-size: 0.8125rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: color 0.15s ease;
}

.filters-modal-clear-all:hover {
    color: var(--danger);
}

.filters-modal-footer-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
}

.active-filter-remove {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.filter-clear-all-wrap {
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-light);
}

.clear-all-filters-btn {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.clear-all-filters-btn:hover {
    color: var(--danger);
}

.clear-all-filters {
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
}

.clear-all-filters:hover {
    color: var(--danger);
}

/* Filter Group Header */
.filter-group-header {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(124, 58, 237, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0 0.25rem;
    margin-top: 0.25rem;
}

/* Filter Active Badge (sidebar) */
.filter-active-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    margin-left: auto;
    margin-right: 0.375rem;
}

/* Smaller, subtler badge inside modal */
.filters-modal-section .filter-active-badge {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 0.625rem;
    font-weight: 700;
    background: rgba(82, 28, 223, 0.12);
    color: var(--primary);
    margin-right: 0;
}

/* Filter Option Active State */
.filter-option.active {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

.filter-option.active .filter-option-label {
    color: var(--primary);
    font-weight: 500;
}

/* Show More Button */
.filter-show-more {
    padding-top: 0.375rem;
    border-top: 1px dashed var(--border-light);
    margin-top: 0.25rem;
}

.filter-show-more .btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
}

.filter-show-more .btn-link:hover {
    text-decoration: underline;
}

/* Catalog Header */
.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.catalog-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.catalog-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Mobile: add spacing between breadcrumbs scrollbar and category title */
@media (max-width: 767px) {
    .catalog-header {
        margin-top: 0.5rem;
    }
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.catalog-sort label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.catalog-sort select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    cursor: pointer;
}

.mobile-filter-toggle {
    display: none;
}

@media (max-width: 991px) {
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 600;
        font-size: 0.9375rem;
    }

    .catalog-toolbar {
        position: sticky;
        top: calc(var(--sticky-top, 72px) - 12px); /* hned pod přilepeným řádkem s hledáním */
        z-index: 90;
        background: var(--bg-body, #f4f5f7);
        padding: 0.625rem 0;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        border-bottom: 1px solid var(--border-light);
        width: calc(100% + 2rem);
    }

    .catalog-toolbar .mobile-filter-toggle {
        flex: 1;
        justify-content: center;
        padding: 0.625rem 1rem;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: var(--radius-md);
    }

    .catalog-toolbar .catalog-sort {
        flex: 1;
    }

    .catalog-toolbar .catalog-sort label {
        display: none;
    }

    .catalog-toolbar .catalog-sort select {
        width: 100%;
        padding: 0.625rem 2rem 0.625rem 0.75rem;
    }
}

/* =====================================================
   SUBCATEGORY PILLS (Compact horizontal strip)
   ===================================================== */
.subcategory-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.subcategory-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.subcategory-pill:hover {
    border-color: var(--primary);
    background: var(--primary-lighter);
    box-shadow: var(--shadow-sm);
}

.subcategory-pill-image {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.subcategory-pill-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.subcategory-pill-image svg {
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.subcategory-pill-name {
    color: var(--text-primary);
    font-weight: 500;
}

.subcategory-pill-count {
    color: var(--text-muted);
    font-size: 0.75rem;
    background: var(--bg-gray);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-full);
}

.subcategory-pill:hover .subcategory-pill-count {
    background: var(--primary-light);
    color: var(--primary);
}

@media (max-width: 767px) {
    .subcategory-pills {
        gap: 0.375rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .subcategory-pill {
        padding: 0.375rem 0.75rem 0.375rem 0.375rem;
        font-size: 0.8125rem;
    }

    .subcategory-pill-image {
        width: 30px;
        height: 30px;
    }

    .subcategory-pill-count {
        font-size: 0.6875rem;
        padding: 0 0.25rem;
    }
}

/* =====================================================
   COLLECTION CHIPS (SEO landing pages)
   ===================================================== */
.collection-picks {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 0.875rem 0;
    margin-bottom: 1rem;
}

.collection-picks-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.collection-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.collection-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    background: var(--primary-lighter);
    border: 1px solid rgba(82, 28, 223, 0.18);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.collection-chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(82, 28, 223, 0.25);
    transform: translateY(-1px);
}


.collection-chip-icon {
    flex-shrink: 0;
    margin-right: 0.4rem;
    color: var(--primary);
    opacity: 0.85;
    transition: all 0.2s ease;
}

.collection-chip:hover .collection-chip-icon {
    color: white;
    opacity: 1;
}

.collection-intro {
    margin: 0.25rem 0 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .catalog-main {
        min-width: 0;
    }

    .collection-picks {
        padding: 0.75rem 0;
        margin-bottom: 0.75rem;
        position: relative;
        min-width: 0;
    }

    .collection-picks::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        width: 3rem;
        height: calc(100% - 1.125rem);
        background: linear-gradient(to right, transparent, var(--bg-light));
        pointer-events: none;
        z-index: 1;
    }

    .collection-picks-label {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }

    .collection-chips {
        gap: 0.375rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-right: 2rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .collection-chips::-webkit-scrollbar {
        display: none;
    }

    .collection-chip {
        padding: 0.35rem 0.75rem;
        font-size: 0.8125rem;
        flex-shrink: 0;
    }

    .collection-chip-icon {
        width: 14px;
        height: 14px;
        margin-right: 0.25rem;
    }
}

/* =====================================================
   CATEGORY DESCRIPTIONS
   ===================================================== */
.catalog-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0.25rem 0 0.5rem 0;
    line-height: 1.5;
}

.category-seo-description {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
}

.category-seo-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.category-seo-description p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 767px) {
    .category-seo-description {
        margin-top: 2rem;
        padding: 1.25rem;
    }
}

/* =====================================================
   BREADCRUMBS
   ===================================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    color: var(--text-muted);
}

.breadcrumbs-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Mobil: scroll jen uvnitř breadcrumbs (stránka se neposouvá), název produktu zkrácen */
@media (max-width: 767px) {
    .breadcrumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin-bottom: -0.25rem;
        min-width: 0; /* aby flex kontejner nepřetáhl stránku */
        /* jemný fade vpravo = hint „je toho víc, sjeď doprava“ */
        mask-image: linear-gradient(to right, black 0, black calc(100% - 24px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 24px), transparent 100%);
    }

    .breadcrumbs a,
    .breadcrumbs span {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* hlavně zkracujeme název vybraného produktu (poslední položka) */
    .breadcrumbs-current {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 2rem;
}

.pagination-item {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =====================================================
   LOAD MORE BUTTON
   ===================================================== */
.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 260px;
    padding: 0.75rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.load-more-btn:hover {
    background: var(--primary);
    color: white;
}

.load-more-btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

.load-more-btn.is-loading svg {
    animation: spin 0.8s linear infinite;
}

.load-more-info {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (max-width: 575px) {
    .load-more-btn {
        width: 100%;
        min-width: 0;
    }
}

/* =====================================================
   PRODUCT DOCUMENTS
   ===================================================== */
.product-documents {
    padding: 1rem 0;
}

.documents-section {
    margin-bottom: 2rem;
}

.documents-section:last-child {
    margin-bottom: 0;
}

.documents-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.documents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.documents-list li {
    margin-bottom: 0.5rem;
}

.document-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.document-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.document-link i:first-child {
    font-size: 1.25rem;
}

.document-name {
    flex: 1;
    font-weight: 500;
}

.document-size {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.document-link i:last-child {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.document-link:hover i:last-child {
    color: var(--primary);
}

.product-tab .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border-radius: 10px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    margin-top: 4rem;
}

/* Trust Bar */
.footer-trust-bar {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    padding: 1.5rem 0;
}

.footer-trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.footer-trust-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.footer-trust-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: white;
    flex-shrink: 0;
}

.footer-trust-text {
    display: flex;
    flex-direction: column;
    color: white;
}

.footer-trust-text strong {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.footer-trust-text span {
    font-size: 0.8125rem;
    opacity: 0.85;
}

@media (max-width: 991px) {
    .footer-trust-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 575px) {
    .footer-trust-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-trust-item {
        justify-content: flex-start;
    }
}

/* Footer Main */
.footer-main {
    background: var(--bg-dark);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1.1fr 1fr 1.25fr;
    gap: 2.5rem;
}

@media (max-width: 1199px) {
    /* značka přes celou šířku, pod ní čtyři sloupce */
    .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
    .footer-grid .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
    /* odkazy po dvou vedle sebe, značka a kontakt přes celou šířku (vyšší specificita než starší pravidla níž) */
    .footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
    .footer .footer-grid .footer-brand, .footer .footer-grid .footer-contact { grid-column: 1 / -1; }
}

/* Loga plateb (templates/components/payment-logos.php) – výška sjednocená, barva jako ikony */
.payment-logo { display: inline-flex; align-items: center; height: 20px; padding: 0 2px; color: rgba(255, 255, 255, 0.55); transition: color .2s; }
.payment-logo svg { height: 14px; width: auto; }
.payment-logo-mastercard svg, .payment-logo-applepay svg { height: 18px; }
.payment-logo:hover { color: rgba(255, 255, 255, 0.85); }
.footer-cookie-link { margin-left: .75rem; padding: 0; border: 0; background: none; font: inherit; color: inherit; opacity: .75; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-cookie-link:hover { opacity: 1; }

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Footer Brand */
.footer-brand {
    padding-right: 2rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo img {
    max-height: 40px;
    max-width: 180px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-company-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Footer Column */
.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.footer-nav a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--primary);
    margin-right: 0;
    transition: all var(--transition-fast);
}

.footer-nav a:hover {
    color: white;
}

.footer-nav a:hover::before {
    width: 12px;
    margin-right: 0.5rem;
}

/* Footer Contact */
.footer-contact .footer-phone,
.footer-contact .footer-email {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    margin-bottom: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-contact .footer-phone:hover,
.footer-contact .footer-email:hover {
    color: var(--primary-light);
}

.footer-contact .footer-phone svg,
.footer-contact .footer-email svg {
    color: var(--primary);
    flex-shrink: 0;
}

.footer-hours,
.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.75rem;
}

.footer-hours svg,
.footer-address svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.6;
}

/* Footer Bottom */
.footer-bottom {
    background: #0f172a;
    padding: 1.25rem 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-payment-methods {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-payment-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-payment-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.payment-icon:hover {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 767px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-payment-methods {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Legacy support */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: 0.25rem;
}

/* =====================================================
   CART SIDEBAR
   ===================================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-normal);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.cart-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.cart-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.cart-close:hover {
    color: var(--text-primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--border-light);
}

.quantity-input {
    width: 40px;
    height: 28px;
    text-align: center;
    font-size: 0.875rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    align-self: flex-start;
    margin-top: 0.25rem;
}

.cart-item-remove:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    transform: scale(1.1);
}

.cart-item-remove:active {
    transform: scale(0.95);
}

.cart-item-remove svg {
    transition: transform var(--transition-fast);
}

.cart-item-remove:hover svg {
    transform: rotate(-8deg);
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--text-muted);
    animation: cartEmptyIn 0.25s ease;
}

.cart-empty__icon {
    width: 104px;
    height: 104px;
    border-radius: var(--radius-full);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.cart-empty__icon svg {
    width: 48px;
    height: 48px;
}

.cart-empty__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark, #1f2937);
    margin: 0 0 0.4rem;
}

.cart-empty__text {
    font-size: 0.925rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    max-width: 28ch;
    line-height: 1.5;
}

.cart-empty .btn {
    min-width: 200px;
}

@keyframes cartEmptyIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cart-total-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.cart-total-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-checkout-btn {
    width: 100%;
}

/* „Chci nabídku na celý košík“ – vedlejší akce pod objednávkou */
.cart-quote-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    padding: 8px 14px;
    border: 1.5px solid var(--primary);
    border-radius: 12px;
    background: #fff;
    color: var(--primary);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.cart-quote-link:hover { background: var(--primary); color: #fff; }
.cart-quote-link[hidden] { display: none; }

/* Cart header count */
.cart-header-count {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Free shipping progress */
.cart-shipping-progress {
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.shipping-progress-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.shipping-progress-fill.complete {
    background: linear-gradient(90deg, #10b981, #059669);
}

.shipping-progress-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

.shipping-progress-text strong {
    color: var(--primary);
}

/* Cart item clickable links */
a.cart-item-image {
    display: block;
    transition: opacity 0.2s;
}

a.cart-item-image:hover {
    opacity: 0.8;
}

a.cart-item-name {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a.cart-item-name:hover {
    color: var(--primary);
}

/* Cart item prices (dual format) */
.cart-item-prices {
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.cart-item-original-price {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.cart-item-price-without-vat {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.cart-item-price-with-vat {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

/* Cart item stock warning */
.cart-item-stock-warning {
    font-size: 0.6875rem;
    color: #f59e0b;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Stock limit warning for main cart page */
.stock-limit-warning {
    display: block;
    font-size: 0.6875rem;
    color: #f59e0b;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Stock Watch Button */
#stockWatchBtn.watching {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

#stockWatchBtn.watching:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Stock Watch Modal */
.stock-watch-modal {
    max-width: 400px;
}

.stock-watch-modal .modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stock-watch-modal .modal-icon {
    color: var(--primary);
}

.stock-watch-modal .modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.stock-watch-modal .modal-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.stock-watch-modal .modal-description strong {
    color: var(--text-primary);
}

.stock-watch-form .form-group {
    margin-bottom: 1.25rem;
}

.stock-watch-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.stock-watch-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stock-watch-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.stock-watch-form .form-error {
    display: block;
    color: #ef4444;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    min-height: 1.25rem;
}

.modal-privacy-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.stock-watch-form .form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.stock-watch-form .form-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-watch-form .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Cart shipping info */
.cart-shipping-info {
    margin-bottom: 1rem;
}

.cart-delivery {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.625rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.cart-delivery svg {
    flex-shrink: 0;
    color: #10b981;
    transition: color 0.2s;
    margin-top: 0.125rem;
}

.cart-delivery-content {
    flex: 1;
    min-width: 0;
}

.cart-delivery-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #059669;
}

.cart-dispatch-text {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.cart-countdown {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-weight: 600;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
}

/* Ships today - green */
.cart-delivery.ships-today {
    background: rgba(16, 185, 129, 0.1);
}

.cart-delivery.ships-today svg {
    color: #10b981;
}

.cart-delivery.ships-today .cart-delivery-text {
    color: #059669;
}

/* Ships later - keep green like ships-today (consistent with checkout) */
.cart-delivery.ships-later {
    background: rgba(16, 185, 129, 0.1);
}

.cart-delivery.ships-later svg {
    color: #10b981;
}

.cart-delivery.ships-later .cart-delivery-text {
    color: #059669;
}

/* Cart price breakdown */
.cart-price-breakdown {
    margin-bottom: 1rem;
}

.cart-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.cart-price-row.cart-price-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
    margin-top: 0.5rem;
}

/* Cart clear button */
.cart-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.2s;
}

.cart-clear-btn:hover {
    color: var(--danger);
}

/* Inline "empty cart" confirmation (shown above the clear button) */
.cart-clear-confirm {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--danger-light);
    border: 1px solid var(--danger);
    border-radius: var(--radius-lg);
    text-align: center;
    animation: cartClearConfirmIn 0.16s ease;
}
.cart-clear-confirm[hidden] { display: none; }
.cart-clear-confirm__q {
    margin: 0 0 0.7rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark, #1f2937);
}
.cart-clear-confirm__actions {
    display: flex;
    gap: 0.5rem;
}
.cart-clear-confirm__cancel,
.cart-clear-confirm__yes {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, filter 0.15s;
}
.cart-clear-confirm__cancel {
    background: var(--bg-white, #fff);
    border-color: var(--border-light);
    color: var(--text-secondary);
}
.cart-clear-confirm__cancel:hover { background: var(--bg-light); }
.cart-clear-confirm__yes {
    background: var(--danger);
    color: #fff;
}
.cart-clear-confirm__yes:hover { filter: brightness(0.92); }
@keyframes cartClearConfirmIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Cart Header Actions (share + close grouped) */
.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cart-share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    border-radius: var(--radius-sm);
}

.cart-share-btn:hover {
    color: var(--primary);
}

.cart-share-btn.hidden {
    display: none;
}

/* Cart Share Modal Overlay (reuses .share-modal styles from global modals) */
.cart-share-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* =====================================================
   HOMEPAGE SECTIONS
   ===================================================== */
.section {
    padding: 3.5rem 0;
    position: relative;
}

/* Alternating backgrounds for sections */
.section-featured {
    background: linear-gradient(180deg, #f5f7fa 0%, #fff 100%);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    border-top: 1px solid #e9ecf2;
}

.section-highlight {
    background: linear-gradient(135deg, rgba(102, 51, 153, 0.04) 0%, rgba(102, 51, 153, 0.08) 100%);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    border-top: 1px solid rgba(102, 51, 153, 0.12);
    border-bottom: 1px solid rgba(102, 51, 153, 0.12);
}

/* Mobil: pozadí až ke krajům, obsah (ikona, tlačítko) vždy s odsazením */
@media (max-width: 991px) {
    .section-featured,
    .section-highlight {
        /* Breakout zachován – pozadí sahá vlevo/vpravo ke kraji; padding vynucen kvůli calc = 0 */
        padding-left: var(--container-padding) !important;
        padding-right: var(--container-padding) !important;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.section-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    border-radius: var(--radius-md);
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 51, 153, 0.25);
}

.section-icon svg {
    width: 1.375rem;
    height: 1.375rem;
}

.section-title-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.section-title {
    font-size: 1.625rem;
    font-weight: 700;
    margin: 0;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
    font-weight: 400;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary);
    padding: 0.5rem 1rem;
    background: rgba(102, 51, 153, 0.08);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.section-link:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

.section-link svg {
    transition: transform 0.2s ease;
}

.section-link:hover svg {
    transform: translateX(3px);
}

/* Hero Banner */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    border-radius: var(--radius-xl);
    padding: 4rem;
    color: white;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    max-width: 500px;
}

.hero-title {
    font-size: var(--title-size, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text {
    font-size: var(--subtitle-size, 1.125rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-btn {
    background: white;
    color: var(--primary);
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* =====================================================
   HERO SLIDER
   ===================================================== */
/* Screen-reader / crawler only text (used for the stable homepage H1 above the slider) */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-slider {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-slider-track {
    position: relative;
    width: 100%;
    height: 340px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    padding: 4rem;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

/* Text position variants */
.hero-slide-content--left {
    margin-right: auto;
}

.hero-slide-content--center {
    margin: 0 auto;
    text-align: center;
}

.hero-slide-content--right {
    margin-left: auto;
    text-align: right;
}

/* Navigation dots */
.hero-slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-normal);
}

.hero-slider-dot:hover {
    border-color: white;
}

.hero-slider-dot.active {
    background: white;
    border-color: white;
}

/* Prev/Next arrows */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--radius-full, 50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition-normal);
    opacity: 0;
    backdrop-filter: blur(4px);
}

.hero-slider:hover .hero-slider-arrow {
    opacity: 1;
}

.hero-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-slider-arrow--prev {
    left: 1rem;
}

.hero-slider-arrow--next {
    right: 1rem;
}

/* Responsive */
@media (max-width: 767px) {
    .hero-slider-track {
        height: 260px;
    }

    .hero-slide {
        padding: 2rem;
    }

    .hero-slide-content {
        max-width: 100%;
    }

    .hero-slider-arrow {
        display: none;
    }

    .hero-slider-dots {
        bottom: 1rem;
    }

    /* Smaller CTA button on mobile */
    .hero-btn.btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    /* Mobile background images are swapped via JS (applyMobileBackgrounds) */
}

/* Category Cards */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

@media (max-width: 1199px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-fast);
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.category-card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.category-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Recently Viewed */
.recently-viewed {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control.error {
    border-color: var(--danger);
}

.form-error {
    font-size: 0.8125rem;
    color: var(--danger);
    margin-top: 0.375rem;
}

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

select.form-control {
    cursor: pointer;
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.alert-info {
    background: var(--info-light);
    color: var(--info);
    border: 1px solid var(--info);
}

/* =====================================================
   LOADING
   ===================================================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* =====================================================
   UTILITIES
   ===================================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.d-none { display: none; }
.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-flex { display: inline-flex; }

.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--gray-600);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 999;
    transition: all var(--transition-fast);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 767px) {
    :root {
        --header-height: 60px;
        --container-padding: 1.5rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero {
        padding: 2rem;
    }

    .hero-title {
        font-size: calc(var(--title-size, 2.5rem) * 0.7);
    }

    .hero-text {
        font-size: calc(var(--subtitle-size, 1.125rem) * 0.85);
    }

    .section {
        padding: 2rem 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-title-wrapper {
        gap: 0.75rem;
    }

    .section-icon {
        width: 2.25rem;
        height: 2.25rem;
    }

    .section-icon svg {
        width: 1.125rem;
        height: 1.125rem;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .section-subtitle {
        font-size: 0.8125rem;
    }

    .section-link {
        font-size: 0.875rem;
        padding: 0.375rem 0.875rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
}

/* =====================================================
   SHARE MODAL
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--bg-light);
}

.share-modal h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.share-modal h3 svg {
    color: var(--primary);
}

.share-modal p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.share-url-container {
    display: flex;
    gap: 0.5rem;
}

/* Mobile: stack URL input and copy button vertically */
@media (max-width: 479px) {
    .share-url-container {
        flex-direction: column;
    }

    .share-url-container .btn {
        width: 100%;
    }
}

.share-url-input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--bg-light);
}

.share-copied-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.share-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.share-social span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.share-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
}

.share-social-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.share-social-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.share-social-btn.whatsapp {
    background: #25D366;
}

.share-social-btn.facebook {
    background: #1877F2;
}

.share-social-btn.email {
    background: var(--text-muted);
}

/* =====================================================
   WISHLIST PROMO (Homepage)
   ===================================================== */
.wishlist-promo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(244, 114, 182, 0.06) 100%);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.wishlist-promo-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444 0%, #f472b6 100%);
    border-radius: var(--radius-md);
    color: white;
}

.wishlist-promo-content {
    flex: 1;
    min-width: 0;
}

.wishlist-promo-title {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.wishlist-promo-text {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.wishlist-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.wishlist-promo-link:hover {
    background: var(--primary-light);
}

@media (max-width: 640px) {
    .wishlist-promo {
        flex-wrap: wrap;
    }

    .wishlist-promo-content {
        flex: 1 1 calc(100% - 64px);
    }

    .wishlist-promo-link {
        margin-left: auto;
    }
}

/* =====================================================
   COOKIE CONSENT MODAL
   ===================================================== */
.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: cookieOverlayIn 0.5s ease-out 0.3s forwards;
}

@keyframes cookieOverlayIn {
    to {
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}

.cookie-modal {
    background: #fff;
    border-radius: 1rem 1rem 0 0;
    padding: 2rem 2rem 1.75rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    animation: cookieModalIn 0.4s ease-out 0.3s forwards;
}

@keyframes cookieModalIn {
    to { transform: translateY(0); }
}

.cookie-modal-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.cookie-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.cookie-modal-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.cookie-modal-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-modal-text a:hover {
    color: var(--primary-hover);
}

.cookie-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-btn {
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    width: 100%;
}

.cookie-btn-accept {
    background: var(--primary);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: var(--primary-hover);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 0.5rem 1.5rem;
}

.cookie-btn-decline:hover {
    color: var(--text-primary);
}

.cookie-overlay.hiding .cookie-modal {
    animation: cookieModalOut 0.3s ease-in forwards;
}

.cookie-overlay.hiding {
    animation: cookieOverlayOut 0.3s ease-in 0.1s forwards;
}

@keyframes cookieModalOut {
    to { transform: translateY(100%); }
}

@keyframes cookieOverlayOut {
    to { background: rgba(0, 0, 0, 0); }
}

/* Cookie Thank You State */
.cookie-modal.cookie-thank-you {
    animation: cookieThankYouPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    padding: 2.5rem 2rem;
}

@keyframes cookieThankYouPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cookie-thank-check {
    width: 3.5rem;
    height: 3.5rem;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    animation: cookieCheckIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: scale(0);
}

@keyframes cookieCheckIn {
    to { transform: scale(1); }
}

.cookie-thank-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    animation: cookieTextIn 0.4s ease-out 0.15s forwards;
    opacity: 0;
}

@keyframes cookieTextIn {
    to { opacity: 1; }
}


/* =====================================================
   OUT OF STOCK WARNING
   ===================================================== */
.out-of-stock-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius-md);
    color: #856404;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    width: 100%;
}

.out-of-stock-warning svg {
    flex-shrink: 0;
    color: #ffc107;
}

.out-of-stock-warning strong {
    color: #664d03;
}

/* =====================================================
   OUT OF STOCK WARNING MODAL
   ===================================================== */
.out-of-stock-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    padding: 1rem;
}

.out-of-stock-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.out-of-stock-modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.2s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.out-of-stock-modal-overlay.active .out-of-stock-modal {
    transform: scale(1);
}

.out-of-stock-modal-icon {
    width: 80px;
    height: 80px;
    background: #fff3cd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.out-of-stock-modal-icon svg {
    color: #ffc107;
}

.out-of-stock-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.out-of-stock-modal-text {
    color: var(--text-secondary);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.out-of-stock-modal-text strong {
    color: var(--text-primary);
}

.out-of-stock-modal-note {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0 0 1.5rem;
}

.out-of-stock-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.out-of-stock-modal-actions .btn {
    min-width: 120px;
}

.out-of-stock-modal-actions .btn-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .out-of-stock-modal {
        padding: 1.5rem;
    }

    .out-of-stock-modal-actions {
        flex-direction: column-reverse;
    }

    .out-of-stock-modal-actions .btn {
        width: 100%;
    }
}

/* =====================================================
   CART SIDEBAR - OUT OF STOCK ITEMS
   ===================================================== */
.cart-item-out-of-stock {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #dc6803;
    margin-bottom: 0.25rem;
}

.cart-item-stock-dot {
    width: 6px;
    height: 6px;
    background: #dc6803;
    border-radius: 50%;
    flex-shrink: 0;
}

.cart-item-out-of-stock-item {
    border-left: 3px solid #ffc107;
    padding-left: 0.75rem;
    margin-left: -0.75rem;
}

/* Cart delivery - out of stock notice */
.cart-out-of-stock-notice {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #dc6803;
    margin-top: 0.25rem;
    padding: 0.375rem 0.5rem;
    background: #fff8e6;
    border-radius: 4px;
    width: 100%;
    flex-basis: 100%;
}

.cart-out-of-stock-notice i {
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* When cart contains ONLY out-of-stock items */
.cart-delivery.out-of-stock-only {
    background: #fff8e6;
    justify-content: center;
}

.cart-delivery.out-of-stock-only .cart-out-of-stock-notice {
    margin-top: 0;
    padding: 0;
    background: transparent;
}

/* =====================================================
   FOOTER RATING BADGE (Firmy.cz)
   ===================================================== */
.footer-rating-badge {
    display: block;
    margin-top: 1rem;
    transition: opacity 0.2s ease;
}

.footer-rating-badge:hover {
    opacity: 0.85;
}

.footer-rating-badge img {
    display: block;
    height: auto;
    width: 200px;
    max-width: 100%;
    border-radius: 6px;
}

/* =====================================================
   PRODUCT COMPARISON
   ===================================================== */

/* Comparison Page */
.comparison-page {
    padding-bottom: 3rem;
}

.comparison-page-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comparison-page-header .page-title {
    margin-bottom: 0;
    margin-right: auto;
}

/* Empty State */
.comparison-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.comparison-empty-icon {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.comparison-empty h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.comparison-empty p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Loading State */
.comparison-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.comparison-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Comparison Layout */
.comparison-content {
    --param-col-width: 200px;
}

/* Product Cards Row - CSS Grid for precise alignment with table */
.comparison-products {
    display: grid;
    grid-template-columns: var(--comparison-first-col, 15%) repeat(var(--comparison-product-count, 3), 1fr);
    border: 1px solid var(--border-light);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--bg-white);
}

/* Limit warning */
.comparison-limit-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: #92400e;
}

.comparison-limit-warning svg {
    flex-shrink: 0;
    color: #f59e0b;
}

/* Spacer to align with parameter name column */
.comparison-products-spacer {
    background: var(--bg-light);
    border-right: 2px solid var(--border-light);
    display: flex;
    align-items: flex-end;
    padding: 0.5rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-product-card {
    min-width: 0;
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    padding: 0.625rem 0.75rem;
    position: relative;
    transition: background-color 0.2s ease;
}

.comparison-product-card:last-child {
    border-right: none;
}

.comparison-product-card:hover {
    background-color: var(--bg-light);
}

/* Remove button - larger hit area */
.comparison-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.15s ease;
    z-index: 1;
}

.comparison-remove:hover {
    background: var(--danger);
    color: white;
    transform: scale(1.1);
}

.comparison-remove:active {
    transform: scale(0.95);
}

/* Smaller image */
.comparison-product-image {
    display: block;
    width: 70px;
    height: 70px;
    margin: 0 auto 0.5rem;
    overflow: hidden;
}

.comparison-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comparison-product-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

/* Single line name with tooltip */
.comparison-product-name {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

.comparison-product-name a {
    color: inherit;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comparison-product-name a:hover {
    color: var(--primary);
}

/* Price + stock in one row */
.comparison-product-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.comparison-product-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Stock as compact badge */
.comparison-product-stock {
    font-size: 0.625rem;
    font-weight: 500;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    white-space: nowrap;
}

.comparison-product-stock.stock-in {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.comparison-product-stock.stock-low {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.comparison-product-stock.stock-out {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.comparison-add-to-cart {
    margin-top: 0.375rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    padding: 0.375rem 0.5rem;
}

/* Extra small button variant */
.btn-xs {
    padding: 0.3125rem 0.625rem;
    font-size: 0.6875rem;
}

/* Quick Actions Bar - in header */
.comparison-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Toggle Switch */
.comparison-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.comparison-toggle input {
    display: none;
}

.comparison-toggle-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--border-light);
    border-radius: 20px;
    transition: background-color 0.2s ease;
}

.comparison-toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--bg-white);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.comparison-toggle input:checked + .comparison-toggle-slider {
    background: var(--primary);
}

.comparison-toggle input:checked + .comparison-toggle-slider::before {
    transform: translateX(16px);
}

.comparison-toggle-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.comparison-toggle:hover .comparison-toggle-label {
    color: var(--text-primary);
}

/* Sort Dropdown */
.comparison-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-sort label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.comparison-sort .form-select-sm {
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background-color: var(--bg-white);
    cursor: pointer;
}

.comparison-sort .form-select-sm:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Parameters Table */
.comparison-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: var(--bg-white);
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.15s ease;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Row hover effect */
.comparison-table tbody tr:not(.comparison-group-header):hover th,
.comparison-table tbody tr:not(.comparison-group-header):hover td {
    background-color: rgba(124, 58, 237, 0.04);
}

.comparison-table tbody tr:not(.comparison-group-header):hover th:first-child {
    background-color: rgba(124, 58, 237, 0.08);
}

/* Zebra striping */
.comparison-table tbody tr:nth-child(even):not(.comparison-group-header) td {
    background-color: rgba(0, 0, 0, 0.015);
}

.comparison-table tbody tr:nth-child(even):not(.comparison-group-header):hover td {
    background-color: rgba(124, 58, 237, 0.04);
}

/* Parameter name column (sticky left) */
.comparison-table th:first-child,
.comparison-table td:first-child {
    width: var(--comparison-first-col, 15%);
}

.comparison-table tbody th:first-child {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: var(--bg-light);
    position: sticky;
    left: 0;
    z-index: 1;
    border-right: 2px solid var(--border-light);
}

/* Sticky header first column (top-left corner - needs highest z-index) */
.comparison-table thead th:first-child {
    left: 0;
    z-index: 101;
    background: var(--bg-light) !important;
}

/* Value cells */
.comparison-table td {
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Collapsible Group Header - more prominent */
.comparison-group-header {
    cursor: pointer;
}

.comparison-group-header th {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    padding: 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
}

.comparison-group-toggle {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.comparison-group-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.comparison-group-toggle .chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    opacity: 0.9;
}

.comparison-group-header.collapsed .chevron {
    transform: rotate(-90deg);
}

.comparison-group-toggle .group-name {
    flex: 1;
    font-weight: 600;
}

.comparison-group-toggle .group-count {
    font-size: 0.6875rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.1875rem 0.625rem;
    border-radius: 12px;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.comparison-group-toggle .group-priority {
    color: #fcd34d;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Collapsed state - dimmed appearance */
.comparison-group-header.collapsed th {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.comparison-group-header.collapsed .group-count {
    background: rgba(255, 255, 255, 0.15);
}

/* Group rows */
.comparison-group-row {
    transition: opacity 0.15s ease;
}

/* Value Highlighting */
.comparison-value-best {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.06) 100%);
    color: #059669;
    font-weight: 600;
    position: relative;
}

.comparison-value-best::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #10b981;
}

.comparison-value-worst {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #dc2626;
}

.comparison-value-empty {
    color: var(--text-muted);
    font-style: italic;
}

/* Comparison Button Active State on Product Card */
.product-card-action-btn[data-comparison-toggle].active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.product-card-action-btn[data-comparison-toggle].active:hover {
    background: var(--primary-hover);
}

/* Responsive */
@media (max-width: 992px) {
    .comparison-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .comparison-page-header .page-title {
        margin-right: 0;
    }

    .comparison-actions {
        flex-wrap: wrap;
        width: 100%;
        order: 3;
    }
}

@media (max-width: 768px) {
    .comparison-actions {
        gap: 0.5rem;
    }

    .comparison-limit-warning {
        font-size: 0.75rem;
    }

    /* Mobile: horizontal scroll layout */
    .comparison-products {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .comparison-products::-webkit-scrollbar {
        display: none;
    }

    .comparison-products-spacer {
        display: none; /* Hide spacer on mobile */
    }

    .comparison-product-card {
        flex: 0 0 140px;
        min-width: 140px;
        scroll-snap-align: start;
        padding: 0.5rem;
    }

    .comparison-product-image {
        width: 60px;
        height: 60px;
    }

    .comparison-product-name {
        font-size: 0.6875rem;
    }

    .comparison-product-price {
        font-size: 0.8125rem;
    }

    .comparison-product-stock {
        font-size: 0.5625rem;
        padding: 0.0625rem 0.25rem;
    }

    .comparison-add-to-cart {
        font-size: 0.625rem;
        padding: 0.25rem 0.375rem;
    }

    .comparison-remove {
        width: 20px;
        height: 20px;
        top: 0.25rem;
        right: 0.25rem;
    }

    .comparison-remove svg {
        width: 10px;
        height: 10px;
    }

    /* Table mobile styles */
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Scroll indicator shadow */
        background:
            linear-gradient(to right, white 30%, rgba(255,255,255,0)),
            linear-gradient(to right, rgba(255,255,255,0), white 70%) 100% 0,
            linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0,0)),
            linear-gradient(to left, rgba(0,0,0,0.1), rgba(0,0,0,0)) 100% 0;
        background-repeat: no-repeat;
        background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
        background-attachment: local, local, scroll, scroll;
    }

    .comparison-table {
        min-width: 500px;
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        background: var(--bg-light);
        min-width: 100px;
        width: 100px;
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .comparison-table td {
        min-width: 120px;
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }

    /* Group headers on mobile - sticky full width */
    .comparison-group-header th {
        position: sticky;
        left: 0;
        z-index: 5;
        /* Extend beyond table width to cover scroll area */
        min-width: calc(100vw - 2rem);
        background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    }

    .comparison-group-header.collapsed th {
        background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    }

    .comparison-group-toggle {
        padding: 0.625rem 0.75rem;
        font-size: 0.6875rem;
    }

    .comparison-group-toggle .group-count {
        font-size: 0.5625rem;
        padding: 0.125rem 0.375rem;
    }
}

@media (max-width: 480px) {
    .comparison-toggle-label {
        font-size: 0.6875rem;
    }

    .comparison-toggle-slider {
        width: 30px;
        height: 16px;
    }

    .comparison-toggle-slider::before {
        width: 12px;
        height: 12px;
    }

    .comparison-toggle input:checked + .comparison-toggle-slider::before {
        transform: translateX(14px);
    }

    .comparison-product-card {
        flex: 0 0 120px;
        min-width: 120px;
    }

    .comparison-product-image {
        width: 50px;
        height: 50px;
    }

    .comparison-sort label {
        display: none;
    }

    .comparison-sort .form-select-sm {
        font-size: 0.75rem;
        padding: 0.25rem 1.5rem 0.25rem 0.5rem;
    }
}


/* =====================================================
   WHATSAPP CONTACT BUTTON (floating, admin-switchable)
   Sits under the back-to-top button (bottom: 5.5rem) and
   below every modal. On mobile product pages JS lifts it
   above the sticky buy bar.
   ===================================================== */
.wa-fab {
    position: fixed;
    right: 1.5rem;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 998;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #25d366;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.wa-fab:hover,
.wa-fab:focus-visible {
    background: #1fb855;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 3px 8px rgba(0, 0, 0, 0.1);
}

.wa-fab-icon {
    flex: 0 0 auto;
}

.wa-fab-text {
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    padding-right: 0.375rem;
}

/* Opening-hours tooltip — desktop hover only, so it never blocks a tap */
.wa-fab-tip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.5rem);
    padding: 0.375rem 0.625rem;
    background: var(--bg-dark);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-sm, 6px);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    pointer-events: none;
}

.wa-fab:hover .wa-fab-tip,
.wa-fab:focus-visible .wa-fab-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile: compact circle, label and tooltip hidden */
@media (max-width: 767px) {
    .wa-fab {
        right: 1rem;
        padding: 0.875rem;
    }

    .wa-fab-text,
    .wa-fab-tip {
        display: none;
    }
}

/* Per-device switches from the admin */
@media (max-width: 767px) {
    .wa-fab--desktop-only { display: none; }
}

@media (min-width: 768px) {
    .wa-fab--mobile-only { display: none; }
}

/* Printed pages and reduced motion */
@media print {
    .wa-fab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .wa-fab,
    .wa-fab-tip {
        transition: none;
    }

    .wa-fab:hover,
    .wa-fab:focus-visible {
        transform: none;
    }
}

/* =====================================================
   KATALOG A KARTA PRODUKTU – REDESIGN (09/2026)
   Vizuál sjednocený s detailem produktu: karty s jemným fialovým rámečkem,
   tlumené popisky + výraznější hodnoty. Blok záměrně přepisuje starší pravidla
   výše (PRODUCT CARDS, CATALOG LAYOUT, filtry…), aby byl redesign na jednom místě.
   Cena a tlačítko košíku na kartě zůstávají beze změny.
   ===================================================== */
:root {
    --cat-line: #e8e6f2;
    --cat-line-2: #d8d5e8;
    --cat-ink-3: #797d93;
    --cat-brand-ink: #3c14a6;
    --cat-brand-wash: #f2effe;
    --cat-ok: #0f8f5f;
}

/* ---------- Karta produktu ---------- */
.products-grid {
    gap: 1rem;
}

.product-card {
    border-color: var(--cat-line);
    border-radius: 12px;
}

.product-card:hover {
    border-color: var(--cat-line-2);
    box-shadow: 0 8px 26px -14px rgba(40, 20, 120, 0.28);
    transform: none;
}

.product-card-content {
    background: var(--bg-white);
    padding: 0.25rem 0.875rem 0.875rem;
}

.product-card-brand {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.product-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    min-height: calc(0.875rem * 1.35 * 2);
    margin-bottom: 0.625rem;
}

.product-card-name a:hover,
.product-card:hover .product-card-name a {
    color: var(--cat-brand-ink);
}

/* Klíčové parametry: popisek tlumeně vlevo, hodnota výrazně vpravo */
.product-card-specs {
    margin: 0 0 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--cat-line);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.product-card-spec {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.625rem;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.4;
}

.product-card-spec dt {
    color: var(--cat-ink-3);
    font-weight: 400;
    flex: none;
    max-width: 55%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-spec dd {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

/* Dostupnost a odeslání v jednom řádku */
.product-card-avail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.product-card-avail .product-card-stock {
    margin: 0;
    font-size: inherit;
    font-weight: 700;
}

.product-card-avail .product-card-stock.stock-in {
    color: var(--cat-ok);
}

.product-card-avail .product-card-stock-dot {
    width: 7px;
    height: 7px;
}

.product-card-avail .product-card-delivery {
    margin: 0;
    font-size: inherit;
    color: var(--text-secondary);
}

/* Porovnání a oblíbené se ukážou po najetí (na dotykových zařízeních pořád) */
.product-card-action-btn,
.product-card-wishlist {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--cat-line);
    color: var(--text-secondary);
}

.product-card-top-actions {
    gap: 0.25rem;
}

@media (hover: hover) {
    .product-card-top-actions {
        opacity: 0;
        transition: opacity 0.15s ease;
    }

    .product-card:hover .product-card-top-actions,
    .product-card:focus-within .product-card-top-actions,
    .product-card-top-actions:has(.active) {
        opacity: 1;
    }
}

/* ---------- Hlavička katalogu ---------- */
.catalog-header {
    display: block;
    margin-bottom: 1rem;
}

.catalog-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
}

.catalog-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.catalog-count {
    font-size: 0.8125rem;
    color: var(--cat-ink-3);
    font-variant-numeric: tabular-nums;
}

.catalog-description {
    font-size: 0.875rem;
    margin: 0.375rem 0 0;
    max-width: 90ch;
}

.catalog-description-more {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

/* Podkategorie jako mřížka stejně širokých dlaždic – bez vodorovného posuvníku, zarovnané do sloupců */
.subcategory-pills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 1rem;
}

.subcategory-pill {
    min-width: 0;
    border-color: var(--cat-line);
    border-radius: 10px;
    padding: 0.4rem 0.875rem 0.4rem 0.4rem;
}

.subcategory-pill-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767px) {
    .subcategory-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.375rem;
    }
    /* Počet pod názvem – název má celou šířku a dlouhé slovo („Notebooky“) se nezkracuje */
    .subcategory-pill {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr);
        column-gap: 0.5rem;
        row-gap: 0.0625rem;
        align-items: center;
        white-space: normal;
        padding-right: 0.5rem;
    }
    .subcategory-pill-image {
        grid-row: 1 / span 2;
    }
    .subcategory-pill-name {
        grid-column: 2;
        align-self: end;
        white-space: normal;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    .subcategory-pill-count {
        grid-column: 2;
        align-self: start;
        font-size: 0.75rem;
    }
}

.subcategory-pill:hover {
    background: var(--bg-white);
    box-shadow: none;
}

.subcategory-pill-name {
    font-weight: 600;
}

.subcategory-pill-count {
    background: none;
    padding: 0;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
}

.subcategory-pill:hover .subcategory-pill-count {
    background: none;
}

/* Rychlý výběr */
.collection-picks {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    border: 0;
    padding: 0;
    margin-bottom: 0.875rem;
}

.collection-picks-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cat-ink-3);
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0.25rem 0 0;
}

.collection-chip {
    background: var(--cat-brand-wash);
    border: 0;
    color: var(--cat-brand-ink);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
}

.collection-chip:hover {
    background: #e7e1fd;
    color: var(--cat-brand-ink);
    box-shadow: none;
    transform: none;
}

.collection-chip .collection-chip-icon,
.collection-chip:hover .collection-chip-icon {
    color: var(--cat-brand-ink);
    opacity: 1;
}

/* ---------- Lišta: řazení + Jen skladem ---------- */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.375rem;
    background: var(--bg-white);
    border: 1px solid var(--cat-line);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.catalog-sort {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.catalog-sort-btn {
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.catalog-sort-btn:hover {
    background: var(--bg-light);
}

.catalog-sort-btn[aria-pressed="true"] {
    background: var(--cat-brand-wash);
    color: var(--cat-brand-ink);
}

.catalog-stock-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    white-space: nowrap;
}

.catalog-stock-switch-track {
    position: relative;
    width: 34px;
    height: 20px;
    border-radius: 99px;
    background: var(--cat-line-2);
    transition: background 0.15s ease;
    flex: none;
}

.catalog-stock-switch-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}

.catalog-stock-switch[aria-checked="true"] .catalog-stock-switch-track {
    background: var(--cat-ok);
}

.catalog-stock-switch[aria-checked="true"] .catalog-stock-switch-track::after {
    transform: translateX(14px);
}

/* Aktivní filtry */
.active-filters {
    align-items: center;
    margin-bottom: 1rem;
}

.active-filter {
    background: var(--bg-white);
    border: 1px solid var(--cat-line-2);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.3rem 0.375rem 0.3rem 0.75rem;
}

.active-filter-remove {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--cat-ink-3);
    font-size: 0.875rem;
    line-height: 1;
}

.active-filter:hover .active-filter-remove {
    background: var(--primary);
    color: #fff;
}

.active-filters-clear {
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    padding: 0 0.25rem;
}

.active-filters-clear:hover {
    text-decoration: underline;
}

/* ---------- Postranní panel s filtry ---------- */
.catalog-layout {
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 1.75rem;
}

@media (min-width: 992px) {
    /* Panel se při posouvání drží pod hlavičkou webu, ale jen když se na obrazovku
       vejde celý (třídu is-sticky přidává app.js). Vyšší panel se posouvá se stránkou –
       omezená výška s vnitřním posuvníkem byla na noteboocích příliš krátká. */
    .catalog-sidebar-sticky.is-sticky {
        position: sticky;
        top: calc(var(--site-header-h, 160px) + 12px);
    }
}

.catalog-sidebar-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.catalog-sidebar-body > .filter-section,
.catalog-sidebar-body > .filter-group {
    background: var(--bg-white);
    border: 1px solid var(--cat-line);
    border-radius: 12px;
    padding: 0.25rem 1rem;
}

.catalog-sidebar-body > .filter-section:last-of-type {
    border-bottom: 1px solid var(--cat-line);
}

.filter-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-primary);
}

/* Skupina parametrů = jedna karta, parametry v ní jako řádky */
.filter-group .filter-section {
    border-bottom: 0;
    border-top: 1px solid var(--cat-line);
}

.filter-group .filter-group-header + .filter-section,
.filter-group > .filter-section:first-child {
    border-top: 0;
}

.filter-group .filter-header h3 {
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-group .filter-section:not(.collapsed) .filter-header h3 {
    font-weight: 600;
    color: var(--text-primary);
}

.filter-group-header {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--cat-ink-3);
    letter-spacing: 0.07em;
    padding: 0.75rem 0 0;
    margin: 0;
}

.filter-active-badge {
    background: var(--cat-brand-wash);
    color: var(--primary);
    font-weight: 700;
}

.filter-option-count {
    color: var(--cat-ink-3);
    font-variant-numeric: tabular-nums;
}

/* Krátké hodnoty (8 GB, 16 GB…) jako klikací štítky */
.filter-options-grid .filter-option {
    border-radius: 99px;
    border-color: var(--cat-line-2);
}

.filter-options-grid .filter-option.active,
.filter-options-grid .filter-option:has(input:checked) {
    background: var(--primary);
    border-color: var(--primary);
}

.filter-options-grid .filter-option.active .filter-option-label,
.filter-options-grid .filter-option:has(input:checked) .filter-option-label,
.filter-options-grid .filter-option:has(input:checked) .filter-option-count {
    color: #fff;
}

.catalog-sidebar-body > .filter-more-btn {
    background: none;
    border: 0;
    padding: 0;
}

.filter-more-btn .btn {
    border-radius: 10px;
    border-color: var(--cat-line-2);
    background: var(--bg-white);
    color: var(--primary);
    font-weight: 600;
}

.catalog-sidebar-body > .filter-clear-all-wrap {
    border-top: 0;
    padding: 0 0.25rem;
}

/* ---------- Stránkování a „Zobrazit další“ ---------- */
.load-more-container {
    margin-top: 1.75rem;
    padding-top: 0;
    gap: 0.625rem;
}

.load-more-btn {
    width: min(420px, 100%);
    min-width: 0;
    height: 46px;
    padding: 0 1.5rem;
    border: 1px solid var(--cat-line-2);
    border-radius: 10px;
    background: var(--bg-white);
    color: var(--text-primary);
    font-weight: 700;
}

.load-more-btn:hover {
    background: var(--bg-white);
    border-color: var(--primary);
    color: var(--primary);
}

.load-more-info {
    width: min(420px, 100%);
    text-align: center;
    color: var(--cat-ink-3);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
}

.load-more-progress {
    display: block;
    height: 3px;
    border-radius: 3px;
    background: var(--cat-line);
    margin-top: 0.375rem;
    overflow: hidden;
}

.load-more-progress > span {
    display: block;
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

.pagination {
    gap: 0.25rem;
    margin-top: 1rem;
}

.pagination-item {
    min-width: 36px;
    height: 36px;
    border: 0;
    background: none;
    border-radius: 8px;
    font-weight: 600;
}

.pagination-item:hover {
    background: var(--bg-white);
}

.pagination-item.active {
    background: var(--text-primary);
    color: #fff;
}

.category-seo-description {
    margin-top: 2.75rem;
    background: var(--bg-white);
    border: 1px solid var(--cat-line);
    border-radius: 12px;
    padding: 1.375rem 1.5rem;
    scroll-margin-top: calc(var(--site-header-h, 160px) + 16px);
}

.category-seo-title {
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

/* ---------- Tablet a telefon ---------- */
@media (max-width: 991px) {
    .catalog-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Lišta pod hlavičkou: Filtry + Jen skladem, pod tím řazení (posuvné do strany) */
    .catalog-toolbar {
        flex-wrap: wrap;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border-top: 0;
        padding: 0.5rem 1rem;
    }

    .catalog-toolbar .mobile-filter-toggle {
        flex: none;
        order: 1;
        padding: 0.5rem 1rem;
    }

    .catalog-stock-switch {
        order: 2;
        margin-left: auto;
    }

    .catalog-toolbar .catalog-sort {
        order: 3;
        flex: 1 1 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .catalog-toolbar .catalog-sort::-webkit-scrollbar {
        display: none;
    }

    .catalog-sidebar-sticky.is-sticky {
        position: static;
    }
}

@media (max-width: 640px) {
    .catalog-title {
        font-size: 1.4rem;
    }

    /* Na telefonu karta naležato: obrázek vlevo, údaje vpravo, cena s košíkem v liště přes celou
       šířku. Lišta je ve sloupci s údaji a záporným okrajem se roztáhne pod obrázek; pod obrázkem
       je pro ni vyhrazené místo (--pc-foot = tlačítko 44 px + odsazení + linka). */
    .products-grid .product-card {
        --pc-img: 112px;
        --pc-foot: 57px;
        display: grid;
        grid-template-columns: var(--pc-img) minmax(0, 1fr);
        column-gap: 0.75rem;
        padding: 0.75rem 0.75rem 0;
    }

    .products-grid .product-card-image {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        width: var(--pc-img);
        height: var(--pc-img);
        aspect-ratio: auto;
        margin-bottom: var(--pc-foot);
        padding: 0.25rem;
        border-radius: 8px;
    }

    .products-grid .product-card-content {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        padding: 0;
    }

    .products-grid .product-card-brand {
        margin-bottom: 0.125rem;
    }

    .products-grid .product-card-name {
        font-size: 0.9375rem;
        line-height: 1.3;
        min-height: 0;
        margin-bottom: 0.25rem;
    }

    .products-grid .product-card-top-actions {
        display: none;
    }

    /* Štítek nad obrázkem: malý, v šířce obrázku (dlouhý se zalomí), obrázek o kousek níž;
       víc štítků najednou je na telefonu jen šum */
    .products-grid .product-card-badges {
        top: 0.5rem;
        left: 0.75rem;
        max-width: var(--pc-img);
    }

    .products-grid .product-badge {
        padding: 0.125rem 0.375rem;
        font-size: 0.6875rem;
        line-height: 1.25;
        white-space: normal;
        border-radius: 5px;
    }

    .products-grid .product-badge-bestseller {
        background: #fff1e0;
        color: #b45309;
    }

    /* Stav zboží (nevyzvednutá zásilka, rozbaleno…) stejně jemně v barvě stavu */
    .products-grid .product-badge-condition {
        background: color-mix(in srgb, var(--cond, #ea580c) 12%, #fff);
        color: color-mix(in srgb, var(--cond, #ea580c) 80%, #000);
    }

    .products-grid .product-badge:nth-child(n+2) {
        display: none;
    }

    .products-grid .product-card:has(.product-badge) .product-card-image {
        margin-top: 1.25rem;
    }

    /* Dostupnost a menší expedice vedle ní, když se nevejde, tak pod ní (bez odrážky) */
    .products-grid .product-card-avail {
        column-gap: 0.4rem;
        row-gap: 0;
        margin-bottom: 0.5rem;
    }

    .products-grid .product-card-delivery {
        font-size: 0.6875rem;
        color: var(--text-muted);
    }

    .products-grid .product-card-delivery-sep {
        display: none;
    }

    /* Spodní lišta: cena vlevo, plné fialové tlačítko košíku vpravo, přes celou šířku karty */
    .products-grid .product-card-footer {
        align-items: center;
        min-height: var(--pc-foot);
        margin: 0 -0.75rem 0 calc(-1 * var(--pc-img) - 1.5rem);
        padding: 0.375rem 0.75rem;
        border-top: 1px solid var(--cat-line);
    }

    .products-grid .product-card-price {
        flex-direction: row;
        align-items: baseline;
        column-gap: 0.5rem;
        min-width: 0;
        white-space: nowrap;
    }

    .products-grid .product-price-row {
        flex-wrap: nowrap;
    }

    .products-grid .product-price-current {
        font-size: 1.25rem;
    }

    .products-grid .product-card-add {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }

    .products-grid .product-card-add svg {
        width: 20px;
        height: 20px;
    }

    /* Parametry v jednom řádku: „Ryzen 5 · 16 GB · 512 GB SSD“ */
    .products-grid .product-card-specs {
        display: block;
        border-top: 0;
        padding-top: 0;
        margin-bottom: 0.375rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.75rem;
        color: var(--text-secondary);
        line-height: 1.45;
    }

    .products-grid .product-card-spec {
        display: inline;
        font-size: inherit;
        white-space: nowrap;
    }

    .products-grid .product-card-spec:not(:last-child)::after {
        content: " · ";
        color: var(--cat-ink-3);
    }

    .products-grid .product-card-spec dt {
        display: none;
    }

    .products-grid .product-card-spec dd {
        display: inline;
        font-weight: 500;
        color: inherit;
        white-space: nowrap;
    }
}
