/* ============================================
   Modern Shopify-Style Design
   ============================================ */

/* CSS Variables - Light Mode */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-color: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --sidebar-bg: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    --success-bg: #d4edda;
    --success-color: #155724;
    --success-border: #28a745;
    --warning-bg: #fff3cd;
    --warning-color: #856404;
    --warning-border: #ffc107;
    --info-bg: #d1ecf1;
    --info-color: #0c5460;
    --info-border: #0dcaf0;
    --error-bg: #ffebee;
    --error-color: #c62828;
    --error-border: #f44336;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #5a6268;
    --green: #4caf50;
    --red: #f44336;
    --product-image-bg: #ffffff; /* pozadí boxů pro produktové fotky */
}

/* CSS Variables - Dark Mode */
[data-theme="dark"] {
    --primary-color: #3498db;
    --secondary-color: #5dade2;
    --accent-color: #e74c3c;
    --text-color: #e0e0e0;
    --text-muted: #b0b0b0;
    --bg-color: #1a1a1a;
    --border-color: #333333;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.4);
    --card-bg: #2a2a2a;
    --input-bg: #2a2a2a;
    --sidebar-bg: #222222;
    --white: #ffffff;
    --black: #000000;
    --success-bg: #1e4620;
    --success-color: #81c784;
    --success-border: #4caf50;
    --warning-bg: #5d4e1f;
    --warning-color: #ffd54f;
    --warning-border: #ffc107;
    --info-bg: #0d3a47;
    --info-color: #4fc3f7;
    --info-border: #0dcaf0;
    --error-bg: #4a1f1f;
    --error-color: #ef5350;
    --error-border: #f44336;
    --gray-light: #2a2a2a;
    --gray-medium: #6c757d;
    --gray-dark: #5a6268;
    --green: #66bb6a;
    --red: #ef5350;
    --product-image-bg: #1a1a1a; /* pozadí boxů pro produktové fotky v dark */
}

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

/* Interní poznámky produktů */
.product-note {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.product-note.note-info {
    background-color: var(--info-bg);
    border-color: var(--info-border);
    color: var(--info-color);
}

.product-note.note-warning {
    background-color: var(--warning-bg);
    border-color: var(--warning-border);
    color: var(--warning-color);
}

.product-note i {
    margin-right: 8px;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--product-image-bg);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    min-height: 1px; /* Zajistí, že obrázek má minimální výšku pro IntersectionObserver */
}

.product-note-icon {
    cursor: help;
    z-index: 10;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   Breadcrumbs (sjednocené napříč stránkami)
   ============================================ */
.breadcrumb-nav {
    margin: 12px 0 16px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-color);
    opacity: 0.7;
}

/* Separator jen z našeho ::after — Bootstrap má vlastní ::before na + .breadcrumb-item, jinak by byly dvě lomítka. */
.breadcrumb-nav .breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    content: none;
    display: none;
    padding-right: 0;
    float: none;
}

.breadcrumb-nav .breadcrumb-item::after {
    content: '/';
    margin-left: 8px;
    color: var(--border-color);
}

.breadcrumb-nav .breadcrumb-item:last-child::after {
    display: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Hlavní layout s levým menu */
.main-layout {
    display: flex;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.categories-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    padding: 24px;
    border-radius: 8px;
    height: fit-content;
    transition: background-color 0.3s ease;
}

.categories-sidebar h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.categories-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.categories-nav .category-nav-item {
    display: flex;
    flex-direction: column;
}

.categories-nav .category-nav-row {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: space-between;
}

.categories-nav .category-expand,
.categories-nav .category-expand-placeholder {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s;
    order: 2;
}

.categories-nav .category-expand:hover {
    color: var(--primary-color);
}

.categories-nav .category-expand-placeholder {
    cursor: default;
}

.categories-nav .category-link {
    flex: 1;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
    min-width: 0;
    order: 1;
}

.categories-nav .category-nav-item[data-level="1"] .category-link {
    padding-left: 28px;
}

.categories-nav .category-nav-item[data-level="2"] .category-link {
    padding-left: 44px;
}

.categories-nav .category-nav-item[data-level="3"] .category-link {
    padding-left: 60px;
}

.categories-nav .category-children-nav {
    margin-left: 20px;
    margin-top: 4px;
}

.categories-nav .category-link-all {
    margin-top: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    font-weight: 600;
}

.categories-nav .category-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Layout pro stránku košíku - bez levého menu */
.main-layout.cart-page-layout {
    flex-direction: column;
    position: relative;
}

.main-layout.cart-page-layout .main-content {
    width: 100%;
}

.main-layout--no-sidebar {
    flex-direction: column;
}

.main-layout--no-sidebar .main-content {
    width: 100%;
    max-width: 100%;
}

/* Přihlášení / registrace — samostatná stránka (bez postranního menu kategorií) */
.auth-standalone-wrap {
    max-width: 460px;
    margin: 0 auto;
    padding: 40px 24px 72px;
    width: 100%;
    box-sizing: border-box;
}

.auth-standalone-inner {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

/* Hamburger menu pro kategorie na stránce košíku - viditelné i na desktopu */
.categories-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 16px;
    width: fit-content;
    position: relative;
    z-index: 1;
}

/* Tlačítko kategorií v hlavičce - skryté na desktopu */
.categories-menu-toggle-mobile {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.categories-menu-toggle-header {
    display: none; /* zapneme na tabletech */
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 44px;
}

.categories-menu-toggle-header:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.categories-menu-toggle-header i {
    font-size: 18px;
}

.categories-menu-toggle-mobile:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.categories-menu-toggle-mobile i {
    font-size: 18px;
}

.categories-menu-toggle-text {
    display: inline;
}

.categories-menu-toggle:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.categories-menu-toggle i {
    font-size: 20px;
}

/* Mobilní sidebar pro kategorie - otevírá se zprava */
.categories-sidebar-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    max-width: 400px;
    height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    box-shadow: -2px 0 16px rgba(0,0,0,0.15);
    transform: translateX(110%);
    transition: transform 0.3s ease;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.categories-sidebar-mobile.active {
    transform: translateX(0);
}

.categories-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: var(--sidebar-bg);
}

.categories-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-categories {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.close-categories:hover {
    background: var(--sidebar-bg);
    color: var(--accent-color);
}

.categories-sidebar-mobile .categories-nav {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.categories-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.categories-sidebar-mobile.active ~ .categories-overlay,
.categories-overlay.active {
    opacity: 1;
    visibility: visible;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.main-content .container {
    padding: 0;
}

/* Optimalizace obrázků */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fade-in pouze pro custom lazy (data-src).
   Nativní loading="lazy" nesmí být nikdy schovaný (jinak fotky mizí). */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-src].loaded,
img[loading="lazy"].loaded {
    opacity: 1;
}

/* ============================================
   Horní admin lišta (přihlášený uživatel, WP styl)
   ============================================ */
:root {
    --admin-toolbar-height: 42px;
}

body.has-admin-toolbar {
    padding-top: var(--admin-toolbar-height);
}

.site-admin-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10002;
    min-height: var(--admin-toolbar-height);
    background: #1d2327;
    color: #c3c4c7;
    font-size: 13px;
    line-height: 1.3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.site-admin-toolbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    min-height: var(--admin-toolbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
}

.site-admin-toolbar-start,
.site-admin-toolbar-end {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
}

.site-admin-toolbar-end {
    flex-shrink: 0;
}

.site-admin-toolbar-sep {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
    vertical-align: middle;
}

.site-admin-toolbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    color: #f0f0f1;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-admin-toolbar-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.site-admin-toolbar-link--home {
    font-weight: 600;
}

.site-admin-toolbar-link--logout {
    color: #dba617;
}

.site-admin-toolbar-link--logout:hover {
    color: #f0c040;
    background: rgba(219, 166, 23, 0.12);
}

.site-admin-toolbar-user {
    font-size: 12px;
    color: #a7aaad;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .site-admin-toolbar-user {
        display: none;
    }

    .site-admin-toolbar-link span {
        display: none;
    }

    .site-admin-toolbar-link {
        padding: 8px 10px;
    }

    .site-admin-toolbar-link i {
        font-size: 16px;
    }

    .site-admin-toolbar-sep {
        display: none;
    }
}

body.has-admin-toolbar .site-header {
    top: var(--admin-toolbar-height);
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    transform: translateZ(0); /* Hardware acceleration pro stabilitu */
}

/* Komprimovaný header při scrollování */
.site-header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Skrytí header notification při scrollování */
.header-notification {
    transition: max-height 0.3s ease, opacity 0.3s ease, overflow 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    will-change: max-height, opacity;
}

body:has(.site-header.scrolled) .header-notification,
.header-notification.hidden-by-scroll {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 32px;
    transition: padding 0.3s ease;
    will-change: padding;
}

/* Menší padding při komprimaci */
.site-header.scrolled .header-content {
    padding: 10px 0;
}

/* Desktop: logo a akce vedle sebe - skrytí mobilních řádků */
.header-content .logo-desktop {
    display: flex;
    flex: 0 0 auto;
}

.header-content .logo-mobile {
    display: none; /* Skryté na desktopu */
}

.header-content .header-top-row {
    display: none; /* Skryté na desktopu */
}

.header-content .header-search-row {
    display: none; /* Skryté na desktopu */
}

.header-content .header-bottom-row {
    display: none; /* Skryté na desktopu */
}

.header-content .header-actions-desktop {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    transition: gap 0.3s ease;
}

/* Menší mezery mezi akcemi při komprimaci */
.site-header.scrolled .header-actions-desktop {
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    min-height: 50px;
    transition: min-height 0.3s ease;
}

/* Menší min-height při komprimaci */
.site-header.scrolled .logo {
    min-height: 40px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img,
.logo-img {
    max-height: 50px;
    max-width: 150px;
    width: auto;
    height: auto;
    display: block !important;
    object-fit: contain;
    opacity: 1 !important;
    visibility: visible !important;
    transition: max-height 0.3s ease, max-width 0.3s ease;
}

/* Menší logo při komprimaci - přepíše inline styly */
.site-header.scrolled .logo img,
.site-header.scrolled .logo-img {
    max-height: 40px !important;
    max-width: 120px !important;
    height: 40px !important;
}

.logo img[src*=".svg"],
.logo-img[src*=".svg"] {
    width: auto;
    height: 50px;
    max-height: 50px;
    max-width: 150px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: height 0.3s ease, max-height 0.3s ease, max-width 0.3s ease;
}

/* Menší SVG logo při komprimaci - přepíše inline styly */
.site-header.scrolled .logo img[src*=".svg"],
.site-header.scrolled .logo-img[src*=".svg"] {
    height: 40px !important;
    max-height: 40px !important;
    max-width: 120px !important;
}

.logo-text {
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: flex-start;
    transition: gap 0.3s ease, font-size 0.3s ease;
}

/* Menší navigace při komprimaci */
.site-header.scrolled .main-nav {
    gap: 20px;
    font-size: 0.9em;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

/* Menší padding pro navigaci při komprimaci */
.site-header.scrolled .main-nav a {
    padding: 4px 0;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav .admin-nav-link {
    color: var(--accent-color);
    font-weight: 600;
}

.main-nav .admin-nav-link:hover {
    color: var(--accent-color);
}

/* Přepínače jazyk / měna / téma v hlavním baru */
.header-locale-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Flag switcher v headeru */
.header-flag-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
}
.header-flag-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #888);
    transition: background 0.15s;
    min-height: 34px;
}
.header-flag-btn:hover { background: var(--bg-secondary, #f5f5f5); color: var(--text-color); }
.header-flag-btn--active { background: var(--bg-secondary, #f0f0f0); color: var(--text-color); }
.header-flag-img { width: 18px; height: auto; border-radius: 2px; display: block; }
.header-flag-label { font-size: 12px; font-weight: 600; }

.header-locale-select {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 8px;
    padding: 6px 8px;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    min-height: 36px;
    max-width: 5.5rem;
    cursor: pointer;
}

[data-theme="dark"] .header-locale-select {
    background: var(--input-bg);
}

.header-locale-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.15);
}

.header-actions-desktop .header-locale-toolbar {
    margin: 0 4px;
}

.header-search-actions .header-locale-toolbar {
    gap: 6px;
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* Nové řádky pro mobilní hlavičku - skryté na desktopu */
.header-top-row {
    display: none;
}

.header-search-row {
    display: none;
}

.header-bottom-row {
    display: none;
}

/* Desktop verze - zobrazena na desktopu */
.header-actions-desktop {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* Vyhledávání */
.search-container {
    position: relative;
    min-width: 300px;
    max-width: 100%;
    flex: 1;
    transition: min-width 0.3s ease;
}

/* Menší search container při komprimaci */
.site-header.scrolled .search-container {
    min-width: 250px;
}

.search-form {
    position: relative;
    width: 100%;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

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

.search-input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background: var(--input-bg);
    color: var(--text-color);
    transition: var(--transition), padding 0.3s ease, min-height 0.3s ease, font-size 0.3s ease;
    outline: none;
    min-height: 44px;
}

/* Menší search input při komprimaci */
.site-header.scrolled .search-input {
    padding: 8px 40px 8px 12px;
    min-height: 36px;
    font-size: 13px;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, font-size 0.3s ease, color 0.2s ease;
}

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

/* Menší search submit při komprimaci */
.site-header.scrolled .search-submit {
    right: 6px;
    font-size: 0.9em;
    transform: translateY(-50%) scale(0.9);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
    display: none;
}

.search-suggestions-content {
    padding: 8px 0;
}

.search-suggestions-section {
    margin-bottom: 8px;
}

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

.search-suggestions-label {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.search-suggestions-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 8px;
}

.search-suggestion-keyword {
    display: inline-block;
    padding: 6px 12px;
    background: var(--sidebar-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 16px;
    font-size: 13px;
    transition: var(--transition);
}

.search-suggestion-keyword:hover {
    background: var(--primary-color);
    color: var(--white);
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

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

.search-suggestion-item:hover {
    background: var(--sidebar-bg);
}

.search-suggestion-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
}

.search-suggestion-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sidebar-bg);
    border-radius: 4px;
    color: var(--text-muted);
    flex-shrink: 0;
}

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

.search-suggestion-name {
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestion-price {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.search-suggestion-category {
    padding: 10px 16px;
}

.search-suggestion-category i {
    color: var(--text-muted);
    font-size: 18px;
}

.search-suggestions-loading,
.search-suggestions-error,
.search-suggestions-no-results {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
}

.search-suggestions-loading i {
    animation: spin 1s linear infinite;
}

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

.search-suggestion-view-all {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.search-suggestion-view-all:hover {
    background: var(--accent-color);
}

@media (max-width: 768px) {
    /* Jen hlavička – globální .search-container jinak nepoužíváme */
    .site-header .search-container {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
}

.header-actions a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: var(--transition);
}

.header-actions .cart-link,
.header-actions .login-link,
.header-actions .admin-link,
.header-actions-desktop .cart-link,
.header-actions-desktop .login-link,
.header-search-actions .cart-link,
.header-search-actions .login-link {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition), padding 0.3s ease, font-size 0.3s ease, min-width 0.3s ease, min-height 0.3s ease;
    min-width: 44px;
    min-height: 44px;
}

a.cart-link {
    text-decoration: none;
    color: var(--white);
}

/* Menší tlačítka při komprimaci */
.site-header.scrolled .header-actions-desktop .cart-link,
.site-header.scrolled .header-actions-desktop .login-link,
.site-header.scrolled .header-actions .cart-link,
.site-header.scrolled .header-actions .login-link {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 38px;
    min-height: 38px;
    gap: 6px;
}

.header-actions .cart-link i,
.header-actions-desktop .cart-link i,
.header-search-actions .cart-link i {
    font-size: 20px;
    line-height: 1;
    transition: font-size 0.3s ease;
}

/* Menší ikony při komprimaci */
.site-header.scrolled .header-actions-desktop .cart-link i,
.site-header.scrolled .header-actions .cart-link i {
    font-size: 18px;
}

.header-actions .cart-link:hover,
.header-actions .login-link:hover,
.header-actions .admin-link:hover,
.header-actions-desktop .cart-link:hover,
.header-actions-desktop .login-link:hover,
.header-search-actions .cart-link:hover,
.header-search-actions .login-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Dropdown košík */
.cart-dropdown {
    position: relative;
}

.cart-count {
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    position: absolute;
    top: -8px;
    right: -8px;
    line-height: 1;
}

.cart-dropdown-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 16px rgba(0,0,0,0.15);
    transform: translateX(110%);
    transition: transform 0.3s ease;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

[data-theme="dark"] .cart-dropdown-content {
    box-shadow: -4px 0 16px rgba(0,0,0,0.4);
}

.cart-dropdown.active .cart-dropdown-content {
    transform: translateX(0);
}

/* Overlay pro zavření minicartu */
.cart-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

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

.cart-dropdown-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: var(--card-bg);
    gap: 16px;
}

.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cart-dropdown-header .close-cart {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.cart-dropdown-header .close-cart:hover {
    background: var(--sidebar-bg);
    color: var(--accent-color);
}

.cart-dropdown-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
}

.cart-items-count {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
}

.cart-empty p {
    margin-bottom: 16px;
    color: var(--text-color);
    font-weight: 500;
}

.cart-items {
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.cart-item:hover {
    background-color: var(--sidebar-bg);
}

.cart-item-image {
   
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

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

.cart-item-details {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.7;
}

.cart-dropdown-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: var(--sidebar-bg);
}

.cart-total {
    margin-bottom: 12px;
    font-size: 18px;
    text-align: center;
}

.cart-actions {
    display: flex;
    gap: 8px;
}

.cart-actions .btn {
    flex: 1;
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.cart-actions .btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.cart-actions .btn-primary:hover {
    background: var(--accent-color);
}

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

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

@media (max-width: 768px) {
    .cart-dropdown-content {
        width: 100%;
        max-width: 100vw;
    }
}

/* Tablet: košík drawer přes celou šířku (ať nezůstává "pruh" obsahu vedle) */
@media (max-width: 992px) {
    .cart-dropdown-content {
        width: 100%;
        max-width: 100vw;
    }
}

/* Staré user-link styly - odstraněno, nahrazeno user-menu */

.cart-items-count {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
}

.cart-empty p {
    margin-bottom: 16px;
    color: var(--text-color);
    font-weight: 500;
}

.cart-items {
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.cart-item:hover {
    background-color: var(--sidebar-bg);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

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

.cart-item-details {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.7;
}

.cart-dropdown-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: var(--sidebar-bg);
}

.cart-total {
    margin-bottom: 12px;
    font-size: 18px;
    text-align: center;
}

.cart-actions {
    display: flex;
    gap: 8px;
}

.cart-actions .btn {
    flex: 1;
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.cart-actions .btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.cart-actions .btn-primary:hover {
    background: var(--accent-color);
}

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

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

/* ============================================
   Hero Slider
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 60px;
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/6;
    max-height: 600px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    position: relative;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 24px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.slider-nav:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-hover);
}

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

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

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slider-dots .dot.active {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(255,255,255,0.5);
}

/* ============================================
   USP Section
   ============================================ */
.usp-section {
    background: var(--sidebar-bg);
    padding: 60px 0;
    margin-bottom: 60px;
    transition: background-color 0.3s ease;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.usp-item {
    text-align: center;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.usp-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.usp-item-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: inherit;
}

.usp-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usp-icon img {
    max-width: 64px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.usp-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.usp-item p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   Category Filters
   ============================================ */
.category-filters {
    background: var(--sidebar-bg);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
    transition: background-color 0.3s ease;
}

.filters-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

[data-theme="dark"] .filter-group input:focus,
[data-theme="dark"] .filter-group select:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.btn-filter {
    padding: 10px 24px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    height: fit-content;
}

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

.btn-reset {
    padding: 10px 24px;
    background: var(--gray-medium);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    height: fit-content;
}

.btn-reset:hover {
    background: var(--gray-dark);
    transform: translateY(-2px);
}

/* ============================================
   Products Section
   ============================================ */
.products-section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
}

.category-header-with-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-header-with-filters h2 {
    margin: 0;
    flex: 1;
}

.products-filters-toggle {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.btn-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    color: var(--text-color, #333);
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-filter-toggle:hover {
    background: var(--border-color, #f0f0f0);
    color: var(--text-color, #333);
    border-color: var(--border-color, #ccc);
}

.btn-filter-toggle i {
    font-size: 18px;
}

.products-filters {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

/* Category header actions */
.category-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.products-count {
    margin: 0;
    font-size: 16px;
    color: var(--text-muted);
}

.view-toggle {
    display: flex;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: var(--sidebar-bg);
}

.view-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.view-btn i {
    font-size: 18px;
}

.products-view {
    margin-bottom: 48px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.products-grid.products-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.products-grid.products-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.products-grid.products-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .products-grid.products-grid-cols-3,
    .products-grid.products-grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .products-grid.products-grid-cols-2,
    .products-grid.products-grid-cols-3,
    .products-grid.products-grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-header {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.favorite-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    box-shadow: var(--shadow);
}

.favorite-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.favorite-btn svg {
    stroke: var(--text-muted);
    fill: transparent;
    transition: var(--transition);
}

.favorite-btn.active svg {
    stroke: var(--accent-color);
    fill: var(--accent-color);
}

.favorite-btn:hover svg {
    stroke: var(--accent-color);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.product-link > h3,
.product-link h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    flex-shrink: 0;
}

.product-link > .price,
.product-link .price {
    margin: 0 20px 8px 20px;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    flex-shrink: 0;
}

.product-link > .product-card-price-per-pack,
.product-link .product-card-price-per-pack {
    margin: -2px 20px 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.35;
    flex-shrink: 0;
}

.product-link > .in-stock,
.product-link > .out-of-stock,
.product-link .in-stock,
.product-link .out-of-stock {
    margin: 0 20px 16px 20px;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
    flex-shrink: 0;
}

.product-link > .in-stock,
.product-link .in-stock {
    background: var(--green);
    color: var(--white);
}

.product-link > .out-of-stock,
.product-link .out-of-stock {
    background: var(--red);
    color: var(--white);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--product-image-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--product-image-bg);
    color: var(--text-color);
    opacity: 0.5;
}

.product-manufacturer,
.product-sku,
.product-stock-info {
    margin: 0 20px 8px 20px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.in-stock {
    background: var(--green);
    color: var(--white);
}

.badge.out-of-stock {
    background: var(--red);
    color: var(--white);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    padding: 20px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
}

/* Product card actions */
.product-card-actions {
    padding: 12px 20px;
    margin-top: auto;
    flex-shrink: 0;
}

.product-card-actions .add-to-cart-form {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* Kartový výpis: u 3–4 sloupců je karta úzká — množství nahoře, Do košíku pod ním (ne ořezání tlačítka) */
.products-grid.products-grid-cols-3 .product-card-actions .add-to-cart-form,
.products-grid.products-grid-cols-4 .product-card-actions .add-to-cart-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.products-grid.products-grid-cols-3 .product-card-actions .quantity-input-group,
.products-grid.products-grid-cols-4 .product-card-actions .quantity-input-group {
    width: 100%;
}

.products-grid.products-grid-cols-3 .product-card-actions .quantity-input-group .quantity-controls,
.products-grid.products-grid-cols-4 .product-card-actions .quantity-input-group .quantity-controls {
    margin: 0 auto;
}

.products-grid.products-grid-cols-3 .product-card-actions .btn-add-to-cart,
.products-grid.products-grid-cols-4 .product-card-actions .btn-add-to-cart {
    flex: none;
    width: 100%;
    white-space: normal;
}

/* Detail produktu: v rámci formuláře — množství, oblíbené a Do košíku vedle sebe (ne vedle ceny) */
.product-detail-page .add-to-cart-form.add-to-cart-form--detail-row,
.product-detail-page .add-to-cart-form--oos.add-to-cart-form--detail-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.product-detail-page .add-to-cart-main-row,
.product-detail-page .add-to-cart-main-row--oos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
}

.product-detail-page .add-to-cart-main-row .quantity-input-group {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

.product-detail-page .add-to-cart-main-row .favorite-btn.favorite-btn--detail-cart {
    flex: 0 0 auto;
    position: relative;
}

.product-detail-page .add-to-cart-main-row .btn-add-to-cart {
    width: auto;
    min-width: min(100%, 170px);
    flex: 1 1 140px;
    margin-left: auto;
}

.product-detail-page .add-to-cart-main-row--oos .add-to-cart-oos-placeholder {
    flex: 1 1 auto;
    min-width: 0;
}

.product-detail-page .add-to-cart-main-row--oos .btn-add-to-cart {
    margin-left: auto;
}

@media (max-width: 640px) {
    .product-detail-page .add-to-cart-main-row .btn-add-to-cart,
    .product-detail-page .add-to-cart-main-row--oos .btn-add-to-cart {
        margin-left: 0;
        flex: 1 1 100%;
        width: 100%;
    }
}

.quantity-input-group {
    flex-shrink: 0;
}

.quantity-input-group .quantity-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}

.quantity-input-group .qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.quantity-input-group .qty-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.quantity-input-group .qty-btn:active {
    transform: scale(0.95);
}

.quantity-input-group .qty-input {
    width: 50px;
    padding: 6px 4px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
}

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

.quantity-input-group .qty-input[type=number] {
    -moz-appearance: textfield;
    font-size: 14px;
    font-weight: 500;
    background: var(--input-bg);
    color: var(--text-color);
    flex-shrink: 0;
}

.quantity-input-group .qty-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

[data-theme="dark"] .quantity-input-group .qty-input:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Starý quantity-input pro zpětnou kompatibilitu */
.quantity-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background: var(--input-bg);
    color: var(--text-color);
}

/* Odstranění šipek z number inputu */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

[data-theme="dark"] .quantity-input:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.product-card-actions .btn-add-to-cart {
    padding: 8px 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
}

.product-card-actions .btn-add-to-cart:hover:not(:disabled) {
    background: var(--accent-color);
}

.product-card-actions .btn-add-to-cart:disabled {
    background: var(--gray-medium);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Products table view */
.products-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.products-table thead {
    background: var(--sidebar-bg);
}

.products-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

.products-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.products-table td:first-child {
    width: 100px;
    min-width: 100px;
    padding: 12px 16px;
    text-align: center;
}

.products-table td:first-child a {
    display: inline-block;
    line-height: 0;
    transition: transform 0.2s ease;
}

.products-table td:first-child a:hover {
    transform: scale(1.05);
}

.products-table tbody tr:hover {
    background: var(--sidebar-bg);
}

.products-table tbody tr:last-child td {
    border-bottom: none;
}

.table-product-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    object-fit: cover;
    border-radius: 6px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.table-product-image:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


.table-product-placeholder {
    width: 80px;
    height: 80px;
    background: var(--sidebar-bg);
    border-radius: 6px;
    display: flex;
    border: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
}

.table-product-name {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-right: 8px;
}

.table-product-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-favorite-btn {
    position: static;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 4px;
}

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

.table-product-note {
    color: var(--info-color);
    cursor: help;
    font-size: 16px;
}

.product-list-row td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.product-list-image-cell {
    width: 96px;
}

.product-list-image {
    object-fit: contain;
}

.product-list-name {
    font-weight: 600;
    line-height: 1.35;
}

.product-list-meta {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.3;
}

.product-list-price,
.product-list-availability,
.product-list-quantity,
.product-list-action {
    white-space: nowrap;
}

.product-list-availability .badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
}

.table-product-price {
    font-weight: 600;
    font-size: 18px;
    color: var(--accent-color);
}

.table-product-price-per-pack {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.3;
}

.table-quantity-input {
    width: 65px;
    padding: 6px 4px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    background: var(--input-bg);
    color: var(--text-color);
    text-align: center;
    flex-shrink: 0;
}

.table-quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

[data-theme="dark"] .table-quantity-input:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Quantity controls v tabulce */
.products-table .quantity-input-group {
    display: flex;
    justify-content: center;
}

.products-table .quantity-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.products-table .qty-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--input-bg);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.products-table .qty-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.products-table .qty-btn:active {
    transform: scale(0.95);
}

.btn-add-to-cart-table {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
}

.btn-add-to-cart-table:hover:not(:disabled) {
    background: var(--accent-color);
}

.btn-add-to-cart-table:disabled {
    background: var(--gray-medium);
    cursor: not-allowed;
    opacity: 0.6;
}

.add-to-cart-form-inline {
    display: inline-block;
    margin: 0;
}

/* Indikátor "v košíku" - NEPOUŽÍVÁ SE (používá se product-in-cart-indicator-table a product-in-cart-indicator-detail) */

.table-cart-action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.product-in-cart-indicator-table {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 4px 0;
    font-weight: 400;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: default;
    text-decoration: none;
    transition: var(--transition);
}

.product-in-cart-indicator-table:hover {
    color: var(--text-muted);
    transform: none;
}

.product-in-cart-indicator-table i {
    font-size: 12px;
}

/* "V košíku" na detailu – jemný zelený odznak */
.product-in-cart-indicator-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: var(--green, #2e7d32);
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: default;
}

.product-in-cart-indicator-detail i { font-size: 1rem; }

/* Informace o košíku pod kartou – jemný odznak */
.product-card-wrapper {
    display: flex;
    flex-direction: column;
}

.product-card-cart-info {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #e8f5e9;
    color: var(--green, #2e7d32);
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    cursor: default;
    transition: none;
}

.product-card-cart-info:hover { background: #e8f5e9; color: var(--green, #2e7d32); }
.product-card-cart-info i { font-size: 0.85rem; }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

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

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

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
}

.pagination-link {
    padding: 12px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.pagination-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-info {
    color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 24px;
    margin-top: 80px;
    transition: background-color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    box-shadow: var(--shadow);
    color: var(--text-color);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.theme-toggle .icon-sun {
    display: block;
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

/* Toolbar v hlavičce – sladění výšky s selecty (desktop) */
.header-actions-desktop .theme-toggle {
    width: 36px;
    height: 36px;
    box-shadow: none;
}

.header-actions-desktop .theme-toggle svg {
    width: 18px;
    height: 18px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   Hamburger Menu
   ============================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        gap: 0;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav a {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav a::after {
        display: none;
    }
    
    .header-actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .header-actions a {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .main-layout {
        flex-direction: column;
        padding: 16px;
        gap: 24px;
    }
    
    .categories-sidebar {
        width: 100%;
        position: static;
        order: 2;
    }

    /* Na tabletu radši offcanvas (sjednocení s mobilem) */
    .categories-sidebar {
        display: none;
    }

    .categories-menu-toggle-header {
        display: inline-flex;
    }
    
    .main-content {
        order: 1;
    }
    
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .btn-filter,
    .btn-reset,
    .btn-filter-toggle {
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-title {
        text-align: center;
        margin-bottom: 16px;
    }
    
    .products-filters-toggle {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 24px;
    }
    
    .product-card {
        font-size: 14px;
    }
    
    .product-card h3 {
        font-size: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .header-locale-toolbar {
        gap: 4px;
    }

    .header-locale-select {
        font-size: 12px;
        padding: 4px 6px;
        min-height: 40px;
        max-width: 4.75rem;
    }

    .header-search-actions .theme-toggle {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
    }
    
    /* Skrytí desktop verze */
    .header-actions-desktop {
        display: none !important;
    }

    /* Explicitně skryj desktop hamburger na mobilu, i kdyby ho 992px query zapnul */
    .categories-menu-toggle-header {
        display: none !important;
    }
    
    /* Zobrazení mobilních řádků */
    .header-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 8px;
        flex-wrap: wrap;
    }

    .header-top-row__end {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 6px 8px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-mobile-locale-wrap {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 4px 6px;
    }

    .header-mobile-locale-wrap .header-lang-select {
        max-width: 4.25rem;
    }

    .header-mobile-locale-wrap .header-currency-select {
        max-width: 4.6rem;
    }

    .header-mobile-locale-wrap .header-locale-select {
        min-width: 0;
        font-size: 12px;
        padding: 5px 6px;
        min-height: 40px;
    }
    
    .header-search-row {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .header-content .header-search-row {
        display: flex !important;
    }

    .header-search-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px 10px;
        flex: 1 1 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Vyhledávání celá šířka, akce pod ním – bez přetékání „Přihlásit“ + vlajky v jednom řádku */
    .header-search-row .search-container {
        flex: 1 1 100%;
        min-width: 0 !important;
        max-width: 100%;
        margin-bottom: 0 !important;
    }

    .header-locale-toolbar--theme-only {
        gap: 0;
    }

    .header-locale-toolbar--theme-only .theme-toggle {
        flex-shrink: 0;
    }
    
    /* Logo na mobilu */
    .header-content .logo-desktop {
        display: none !important; /* Skryté na mobilu */
    }
    
    .header-content .logo-mobile {
        display: flex !important;
        flex: 0 0 auto;
        align-items: center;
    }
    
    .header-top-row {
        display: flex !important;
    }
    
    .header-top-row .logo-mobile {
        display: flex !important;
        flex: 1 1 auto;
        align-items: center;
        min-width: 0;
        max-width: min(58%, 220px);
    }
    
    .header-top-row .logo-mobile img,
    .header-top-row .logo-mobile .logo-text {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Tlačítko kategorií v hlavičce na mobilu - jen ikonka */
    .categories-menu-toggle-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 10px;
        background: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: var(--transition);
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
    
    .categories-menu-toggle-mobile:hover {
        background: var(--accent-color);
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }
    
    .categories-menu-toggle-mobile i {
        font-size: 24px;
    }
    
    .categories-menu-toggle-text {
        display: none;
    }
    
    .header-search-actions .cart-link {
        padding: 10px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        position: relative;
        transition: var(--transition);
    }
    
    .header-bottom-row .cart-link i {
        font-size: 20px;
        line-height: 1;
    }
    
    .header-search-actions .cart-link:hover {
        background: var(--accent-color);
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }
    
    /* Skrytí desktop sidebaru na mobilu */
    .categories-sidebar {
        display: none;
    }
    
    .slider-container {
        aspect-ratio: 1;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .category-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Skrytí tabulkového zobrazení na mobilu */
    .products-view-table,
    #products-table,
    .products-view.products-view-table {
        display: none !important;
    }
    
    /* Skrytí tlačítka pro přepínání zobrazení na mobilu */
    .view-toggle {
        display: none !important;
    }
    
    .usp-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .product-detail-content {
        flex-direction: column;
    }
    
    .product-image {
        width: 100%;
    }
    
    .product-info {
        width: 100%;
    }
    
    .container {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .header-actions a {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .product-card {
        font-size: 12px;
    }
    
    .product-card h3 {
        font-size: 14px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .cart-table {
        font-size: 14px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 8px 4px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination-link {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .product-detail-content {
        gap: 24px;
    }
    
    .add-to-cart {
        flex-direction: column;
    }
    
    .add-to-cart label,
    .add-to-cart button {
        width: 100%;
    }
}

/* ============================================
   Paddings
   ============================================ */

.p-t-10 {
    padding-top: 10px;
}


/* ============================================
   Optimalizace pro rychlost
   ============================================ */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Containment pro lepší výkon */
.products-grid {
    contain: layout style;
}

.product-card {
    contain: layout style paint;
}

/* Responzivní formuláře */
@media (max-width: 768px) {
    form {
        padding: 20px;
    }
    
    label input,
    label select,
    label textarea {
        font-size: 16px; /* Zabraňuje zoomu na iOS */
    }
}

/* Touch friendly */
@media (hover: none) {
    .product-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* ============================================
   Legacy Styles (pro kompatibilitu)
   ============================================ */
main {
    min-height: 60vh;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 18px;
}

/* Formuláře */
form {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    transition: background-color 0.3s ease;
}

label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
}

label input,
label select,
label textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--input-bg);
    color: var(--text-color);
}

label input:focus,
label select:focus,
label textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.error-message {
    background: var(--error-border);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Blokový "alert" styl pro .error — pouze pro NE-formulářové prvky.
   Pro <input>/<select>/<textarea>/.form-control se chybový stav řeší zvlášť (jen border-color/bg),
   jinak margin/padding z této třídy posouvá layout formuláře. */
.error:not(input):not(select):not(textarea):not(.form-control) {
    background: var(--error-bg);
    color: var(--error-color);
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid var(--error-border);
}

/* Admin styles */
.admin-table {
    width: 100%;
    background: var(--card-bg);
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--sidebar-bg);
    font-weight: 600;
    color: var(--text-color);
}

/* Cart table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.cart-table th,
.cart-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-table th {
    background: var(--sidebar-bg);
    font-weight: 600;
    color: var(--text-color);
}

.cart-table tfoot {
    font-weight: 600;
}

.cart-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.cart-actions button,
.cart-actions .button {
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cart-actions button:hover,
.cart-actions .button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Responzivní tabulky */
@media (max-width: 768px) {
    .cart-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cart-table thead,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td,
    .cart-table th {
        display: block;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tr {
        border: 1px solid var(--border-color);
        margin-bottom: 16px;
        border-radius: 8px;
        padding: 12px;
        background: var(--card-bg);
    }
    
    .cart-table td {
        border: none;
        padding: 8px 0;
        text-align: right;
        position: relative;
        padding-left: 50%;
    }
    
    .cart-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        text-align: left;
        font-weight: 600;
    }
}


/* Notifikace košíku */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-notification-success {
    border-left: 4px solid var(--green);
}

.cart-notification-error {
    border-left: 4px solid var(--accent-color);
}

/* === Cart added modal === */
.cart-added-modal {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.cart-added-modal--visible { opacity: 1; }

.cart-added-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
.cart-added-modal-dialog {
    position: relative;
    background: var(--card-bg, #fff);
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    margin: 0 16px;
    transform: translateY(-16px);
    transition: transform 0.25s ease;
}
.cart-added-modal--visible .cart-added-modal-dialog { transform: translateY(0); }

.cart-added-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.cart-added-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color, #111);
}
.cart-added-modal-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green, #2e7d32);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cart-added-modal-close {
    background: none;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted, #666);
    transition: background 0.15s;
}
.cart-added-modal-close:hover { background: var(--bg-secondary, #f5f5f5); }

.cart-added-modal-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    flex-wrap: wrap;
}
.cart-modal-product-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e7eb);
    flex-shrink: 0;
}
.cart-modal-product-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-muted, #aaa);
    font-size: 1.5rem;
}
.cart-added-modal-product-info {
    flex: 1;
    min-width: 0;
}
.cart-added-modal-product-name {
    font-weight: 600;
    color: var(--text-color, #111);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}
.cart-added-modal-product-name:hover { color: var(--primary-color); }
.cart-added-modal-product-qty { color: var(--text-muted, #666); font-size: 0.9rem; }

.cart-added-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.cart-added-modal-btn-primary {
    background: var(--primary-color, #2e7d32);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
    display: block;
}
.cart-added-modal-btn-primary:hover { opacity: 0.88; color: #fff; }
.cart-added-modal-btn-secondary {
    background: none;
    border: none;
    color: var(--primary-color, #2e7d32);
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    padding: 4px 0;
}
.cart-added-modal-btn-secondary:hover { text-decoration: underline; }

.cart-modal-related {
    border-top: 1px solid var(--border-color, #e5e7eb);
    padding: 20px 24px 24px;
}
.cart-modal-related-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color, #111);
}
.cart-modal-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    align-items: stretch;
}
.cart-modal-related-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
}
.cart-modal-related-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
    padding-bottom: 6px;
}
.cart-modal-related-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e7eb);
    display: block;
}
.cart-modal-related-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-muted, #aaa);
    font-size: 1.2rem;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e7eb);
}
.cart-modal-related-name {
    font-size: 0.8rem;
    color: var(--text-color, #111);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-modal-related-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-color, #111);
}
.cart-modal-related-add {
    background: var(--primary-color, #2e7d32);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: opacity 0.15s;
    width: 100%;
}
.cart-modal-related-add:hover { opacity: 0.88; }
.cart-modal-related-add--done {
    background: var(--green, #2e7d32);
    opacity: 0.7;
    cursor: default;
}
.cart-modal-related-add:disabled { cursor: default; }

@media (max-width: 480px) {
    .cart-added-modal { padding-top: 0; align-items: flex-end; }
    .cart-added-modal-dialog { border-radius: 16px 16px 0 0; max-height: 90vh; margin: 0; }
    .cart-added-modal-product { flex-wrap: wrap; }
    .cart-added-modal-actions { flex-direction: row; width: 100%; }
    .cart-added-modal-btn-primary { flex: 1; }
}

/* Benefity na homepage */
.benefit-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.benefit-item-link:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
}

.benefit-icon-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.b2b-info-text,
.info-items-content {
    line-height: 1.6;
}

.b2b-info-text p,
.info-items-content p {
    margin-bottom: 12px;
}

.b2b-info-text p:last-child,
.info-items-content p:last-child {
    margin-bottom: 0;
}

.b2b-info-text ul,
.info-items-content ul {
    margin: 0;
    padding-left: 20px;
}

.b2b-info-text li,
.info-items-content li {
    margin-bottom: 8px;
}

.b2b-info-text li:last-child,
.info-items-content li:last-child {
    margin-bottom: 0;
}

/* Vybrané produkty v adminu */
.selected-products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 50px;
}

.selected-products-list .badge {
    font-size: 14px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-products-list .btn-close {
    font-size: 10px;
    padding: 0;
    margin: 0;
    width: 16px;
    height: 16px;
}

/* Checkout formulář - chybové zprávy */
.checkout-form .form-group {
    margin-bottom: 20px;
}

.checkout-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.checkout-form .form-group.has-error label {
    color: var(--error-color);
}

.checkout-form .error-message {
    display: block;
    color: var(--error-color);
    font-size: 14px;
    font-weight: normal;
    margin-top: 4px;
}

.checkout-form input.error,
.checkout-form textarea.error {
    border-color: var(--error-border);
    background-color: var(--error-bg);
}

.checkout-form input.error:focus,
.checkout-form textarea.error:focus {
    border-color: var(--error-border);
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
    outline: none;
}

.checkout-form .alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 4px solid;
}

.checkout-form .alert-danger {
    background-color: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error-color);
}

.checkout-form .alert-danger ul {
    margin-top: 8px;
    padding-left: 20px;
}

.checkout-form .alert-danger li {
    margin-bottom: 4px;
}

/* B2B info box na checkout */
.checkout-b2b-info {
    margin-bottom: 24px;
}

.b2b-info-box {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-left: 4px solid var(--info-border);
    border-radius: 8px;
    color: var(--info-color);
}

.b2b-info-box i {
    font-size: 32px;
    color: var(--info-border);
    flex-shrink: 0;
}

.b2b-info-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--info-color);
}

.b2b-info-box p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Form hint texty */
.checkout-form .form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"],
.checkout-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--input-bg);
    color: var(--text-color);
}

.checkout-form input[type="text"]:focus,
.checkout-form input[type="email"]:focus,
.checkout-form input[type="tel"]:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.checkout-form input::placeholder,
.checkout-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Checkout submit button */
.btn-checkout-submit {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.btn-checkout-submit:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-checkout-submit i {
    font-size: 20px;
}

/* Sekce s formulářem pod shipping/payment layoutem */
.checkout-form-outer {
    max-width: 1200px;
    margin: 28px auto 0;
    padding: 0 24px 48px;
}
@media (min-width: 900px) {
    .checkout-form-outer .checkout-form-panel {
        max-width: 720px;
    }
}

/* === Radio karty pro dopravu / platbu === */
.checkout-radio-panel { margin-bottom: 0; }
.checkout-radio-list { display: flex; flex-direction: column; gap: 8px; }

.checkout-radio-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: var(--card-bg, #fff);
    user-select: none;
}
.checkout-radio-card:hover {
    border-color: var(--primary-color);
    background: rgba(44, 62, 80, 0.03);
}
.checkout-radio-card--selected {
    border-color: var(--green, #2e7d32);
    background: rgba(46, 125, 50, 0.04);
}

.checkout-radio-check {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-color, #ccc);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: transparent;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    font-size: 0.75rem;
}
.checkout-radio-card--selected .checkout-radio-check {
    border-color: var(--green, #2e7d32);
    background: var(--green, #2e7d32);
    color: #fff;
}

.checkout-radio-body { flex: 1; min-width: 0; }
.checkout-radio-name { font-weight: 600; font-size: 0.95rem; color: var(--text-color); }
.checkout-radio-desc { font-size: 0.8rem; color: var(--text-muted, #888); margin-top: 2px; }

.checkout-radio-price {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    color: var(--text-color);
    flex-shrink: 0;
}
.checkout-radio-free { color: var(--green, #2e7d32); }

/* Submit button v aside – zelený */
.btn-checkout-submit--aside {
    background: var(--green, #2e7d32);
    margin-top: 16px;
    font-size: 1rem;
    padding: 13px 20px;
}
.btn-checkout-submit--aside:hover { background: #1b5e20; transform: none; box-shadow: none; }

/* Plovoucí dokončení objednávky (vždy viditelné dole na /objednavka) */
.checkout-page-root {
    padding-bottom: max(132px, calc(72px + env(safe-area-inset-bottom, 0px)));
}

.checkout-submit-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: var(--card-bg, #fff);
    border-top: 1px solid var(--border-color, #e5e7eb);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.1);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}

.checkout-submit-dock__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-submit-dock__totals {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
}

.checkout-submit-dock__totals-label {
    color: var(--text-muted, #666);
    font-weight: 500;
}

.checkout-submit-dock__totals-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color, #2c3e50);
}

.checkout-submit-dock__terms {
    margin-top: 0;
    font-size: 0.8rem;
}

.checkout-submit-dock__terms .checkout-terms-label {
    margin: 0;
}

.btn-checkout-submit--dock {
    width: 100%;
    margin-top: 0;
    padding: 12px 18px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.btn-checkout-submit--dock .btn-checkout-submit__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
    text-align: center;
}

.btn-checkout-submit--dock .btn-checkout-submit__primary {
    font-size: 1.05rem;
    font-weight: 700;
}

.btn-checkout-submit--dock .btn-checkout-submit__secondary {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.92;
}

.btn-checkout-submit__chev {
    font-size: 1.15rem;
    flex-shrink: 0;
}

@media (min-width: 900px) {
    .checkout-submit-dock__inner {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 20px;
    }

    .checkout-submit-dock__totals {
        flex: 0 0 auto;
    }

    .checkout-submit-dock__terms {
        flex: 1 1 auto;
        min-width: 0;
    }

    .btn-checkout-submit--dock {
        width: auto;
        min-width: 240px;
        flex: 0 0 auto;
    }
}

/* Checkout summary (pravý panel) */
.checkout-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.checkout-summary-header .checkout-panel-title { margin: 0; }
.checkout-summary-edit {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
}
.checkout-summary-edit:hover { text-decoration: underline; }
.checkout-summary-items { margin-bottom: 16px; }
.checkout-summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, #f0f0f0);
}
.checkout-summary-item:last-child { border-bottom: none; }
.checkout-summary-item-img {
    width: 48px; height: 48px; flex-shrink: 0;
    border: 1px solid var(--border-color, #eee);
    border-radius: 6px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-secondary, #f8f8f8);
}
.checkout-summary-item-img img { width: 100%; height: 100%; object-fit: contain; }
.checkout-summary-item-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.checkout-summary-item-name {
    font-size: 0.85rem; font-weight: 600; color: var(--primary-color);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.checkout-summary-item-qty { font-size: 0.8rem; color: var(--text-muted, #888); }
.checkout-summary-item-total { font-size: 0.9rem; font-weight: 700; white-space: nowrap; color: var(--primary-color); }
.checkout-summary-rows { border-top: 1px solid var(--border-color); padding-top: 14px; }
.checkout-summary-row {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 8px; margin-bottom: 10px; font-size: 0.9rem;
}
.checkout-summary-row--total {
    font-size: 1.05rem; border-top: 1px solid var(--border-color); padding-top: 12px; margin-top: 4px;
}
.checkout-summary-divider { height: 1px; background: var(--border-color); margin: 8px 0 12px; }
.checkout-terms-row {
    margin-top: 14px;
    font-size: 0.85rem;
}
.checkout-terms-label {
    display: flex; align-items: flex-start; gap: 8px; cursor: pointer;
    line-height: 1.4;
}
.checkout-terms-label a { color: var(--primary-color); }

/* === Checkout steps (sdílené) === */
.checkout-steps {
    display: flex;
    margin-bottom: 32px;
    gap: 0;
}
.checkout-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    color: var(--text-muted, #aaa);
    font-size: 0.9rem;
    font-weight: 500;
}
.checkout-step:first-child { border-radius: 8px 0 0 8px; }
.checkout-step:last-child  { border-radius: 0 8px 8px 0; }
.checkout-step + .checkout-step { border-left: none; }
.checkout-step--active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    color: var(--text-color, #111);
    font-weight: 600;
}
.checkout-step--done { color: var(--text-color, #111); font-weight: 600; }
.checkout-step-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-color, #ddd);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    color: var(--text-muted, #bbb);
}
.checkout-step--done .checkout-step-icon {
    background: var(--green, #2e7d32);
    border-color: var(--green, #2e7d32);
    color: #fff;
}
@media (max-width: 600px) {
    .checkout-steps { flex-direction: column; }
    .checkout-step, .checkout-step:first-child, .checkout-step:last-child { border-radius: 0; }
    .checkout-step + .checkout-step { border-left: 1px solid var(--border-color); border-top: none; }
}

/* Košík – přehledné dvousloupové rozložení na desktopu */
.cart-page-heading,
.checkout-page-heading {
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

.cart-page {
    max-width: 1180px;
    margin: 0 auto;
    padding-bottom: 32px;
}

.cart-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@media (min-width: 992px) {
    .cart-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
        gap: 32px;
        align-items: start;
    }

    .cart-aside {
        position: sticky;
        top: 1rem;
    }
}

.cart-main .cart-items-list {
    margin-bottom: 0;
}

.cart-main #cart-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.cart-aside .cart-summary {
    margin-top: 0;
}

.cart-aside .cart-summary-card {
    margin-bottom: 0;
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow);
}

/* Checkout – stránka pokladny */
.checkout-page {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 48px;
}

/* Checkout – dva sloupce na desktopu */
.checkout-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
@media (min-width: 900px) {
    .checkout-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
    }
    .checkout-layout-main {
        flex: 1 1 0;
        min-width: 0;
    }
    .checkout-layout-aside {
        width: 360px;
        flex-shrink: 0;
        position: sticky;
        top: 24px;
    }
}

.checkout-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: var(--shadow);
}

@media (min-width: 576px) {
    .checkout-panel {
        padding: 28px 28px;
    }
}

.checkout-panel-title {
    margin: 0 0 1.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
}

.checkout-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.checkout-delivery-block {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
}

.checkout-shipping-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem 1.5rem;
}

@media (min-width: 640px) {
    .checkout-shipping-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.checkout-field-group .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.4;
}

.checkout-select {
    min-height: 48px;
    font-size: 1rem;
    line-height: 1.4;
    border-radius: 8px;
    padding: 10px 14px;
}

.checkout-field-group .form-text {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.shipping-payment-summary {
    margin-top: 1.5rem;
    padding: 1.25rem 1.35rem;
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.checkout-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 0.4rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
}

.checkout-price-row span {
    color: var(--text-muted);
}

.checkout-price-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.65rem 0 0.5rem;
}

.checkout-price-row-total {
    padding-top: 0.35rem;
    font-size: 1.1rem;
}

.checkout-total-value {
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
}

.checkout-items-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background: var(--card-bg);
}

.checkout-items-table thead {
    background: var(--sidebar-bg);
}

.checkout-items-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.checkout-items-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.checkout-items-table tbody tr:hover {
    background-color: var(--sidebar-bg);
}

.checkout-items-table td {
    padding: 16px 16px;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--text-color);
}

.checkout-items-table td:first-child {
    font-weight: 500;
    min-width: 10rem;
}

.checkout-items-table .text-center {
    text-align: center;
}

.checkout-items-table .text-right {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.checkout-items-table tfoot {
    border-top: 2px solid var(--border-color);
    background: var(--sidebar-bg);
}

.checkout-items-table tfoot td {
    padding: 16px;
    font-size: 1.05rem;
}

.checkout-items-table tfoot strong {
    color: var(--primary-color);
}

.checkout-form-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 20px 28px;
    box-shadow: var(--shadow);
}

@media (min-width: 576px) {
    .checkout-form-panel {
        padding: 28px 28px 32px;
    }
}

.checkout-form-panel-title {
    margin: 0 0 1.25rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.checkout-form select.error,
.checkout-form .checkout-select.error {
    border-color: var(--error-border);
    background-color: var(--error-bg);
}

.checkout-company-box {
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.35rem;
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.checkout-company-box-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.checkout-company-box-text {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.checkout-company-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.checkout-company-ico-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.checkout-company-field {
    flex: 1 1 200px;
    min-width: 0;
}

.checkout-ares-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: flex-end;
}

/* Country switcher (CZ/SK) nahoře v ARES sekci */
.checkout-country-switcher {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.checkout-country-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    background: var(--card-bg, #fff);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted, #666);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.checkout-country-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.checkout-country-btn--active {
    border-color: var(--primary-color);
    background: rgba(44, 62, 80, 0.06);
    color: var(--primary-color);
}

.checkout-country-flag {
    width: 22px;
    height: auto;
    border-radius: 2px;
    display: block;
}

.checkout-company-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

.checkout-company-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text-color);
}

.checkout-company-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.checkout-ares-status {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.checkout-ares-button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 18px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition);
}

.checkout-ares-button:hover {
    background: var(--accent-color);
    color: var(--white);
}

.checkout-ares-button--flag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    align-self: flex-end;
}

.checkout-ares-company-banner {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 14px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    color: #1b5e20;
    font-size: 0.9rem;
    animation: fadeIn 0.25s ease;
}
.checkout-ares-company-banner i { font-size: 1.1rem; flex-shrink: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.checkout-form-panel .form-control {
    min-height: 44px;
    font-size: 1rem;
    border-radius: 8px;
}

.checkout-form-panel .address-section .small {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Email a telefon vedle sebe (checkout) */
.contact-fields-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .contact-fields-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Adresy vedle sebe */
.addresses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 992px) {
    .addresses-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.address-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.address-section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.address-section h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.same-address-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.same-address-label input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.same-address-label span {
    flex: 1;
}

.address-section .form-group {
    margin-bottom: 16px;
}

.address-section .form-group:last-child {
    margin-bottom: 0;
}

.address-section input:disabled,
.address-section select:disabled {
    background-color: var(--sidebar-bg);
    cursor: not-allowed;
}

/* Order confirmation page */
.order-confirmation {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.order-confirmation h2 {
    color: var(--primary-color);
    margin-bottom: 24px;
}

.order-confirmation h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.order-confirmation table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: var(--card-bg);
}

.order-confirmation table thead {
    background: var(--sidebar-bg);
}

.order-confirmation table th,
.order-confirmation table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.order-confirmation table th {
    font-weight: 600;
    color: var(--text-color);
}

.order-confirmation table tfoot {
    font-weight: 600;
}

.order-confirmation-actions {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
}

.confirmation-message {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-left: 4px solid var(--success-border);
    border-radius: 8px;
    color: var(--success-color);
}

.confirmation-message i {
    font-size: 48px;
    color: var(--success-border);
    display: block;
    margin-bottom: 16px;
}

.confirmation-message p {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.6;
}

.confirmation-message p:first-of-type {
    font-size: 18px;
    font-weight: 600;
}

.confirmation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.confirmation-buttons .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    min-width: 200px;
    justify-content: center;
}

.confirmation-buttons .btn i {
    font-size: 18px;
}

.confirmation-buttons .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

.confirmation-buttons .btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

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

.confirmation-buttons .btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.confirmation-buttons .btn-outline-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.confirmation-buttons .btn-outline-secondary:hover {
    background: var(--sidebar-bg);
    color: var(--text-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .confirmation-buttons {
        flex-direction: column;
    }
    
    .confirmation-buttons .btn {
        width: 100%;
        min-width: auto;
    }
    
    .confirmation-message {
        padding: 20px 16px;
    }
    
    .confirmation-message i {
        font-size: 40px;
    }
}

/* Login link styling */
.login-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-link i {
    font-size: 18px;
}

/* Články v kategoriích produktů */
.category-articles {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.category-articles h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.article-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.article-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--sidebar-bg);
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.article-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px 0;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

.article-author,
.article-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-author i,
.article-date i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .category-articles {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }
}

/* Globální styly pro přepínače (form-switch) - zelené/červené */
.form-check.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Zelené přepínače když jsou zapnuté */
.form-check.form-switch .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Červené přepínače když jsou vypnuté */
.form-check.form-switch .form-check-input:not(:checked) {
    background-color: #dc3545;
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Hover efekty */
.form-check.form-switch .form-check-input:hover:checked {
    background-color: #218838;
    border-color: #218838;
}

.form-check.form-switch .form-check-input:hover:not(:checked) {
    background-color: #c82333;
    border-color: #c82333;
}

/* Focus efekty */
.form-check.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.form-check.form-switch .form-check-input:not(:checked):focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

