/* ==========================================================================
   MotoDíly Srovnávač - Styly aplikace (Moto E-shop Design)
   ========================================================================== */

:root {
    --primary: #c9182b;
    --primary-dark: #a01020;
    --primary-light: #fef2f2;
    --secondary: #1e293b;
    --accent: #f59e0b;
    --bg-main: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --success: #10b981;
    --success-light: #ecfdf5;
    --danger: #ef4444;

    /* Barvy e-shopů */
    --color-motomax: #e63946;
    --color-motokramek: #1d3557;
    --color-motojelinek: #008779;
    --color-fichtlkramek: #e85d04;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Top Bar
   -------------------------------------------------------------------------- */
.top-bar {
    background-color: #0f172a;
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 7px 0;
    border-bottom: 1px solid #334155;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.source-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.source-label {
    font-weight: 600;
    color: #94a3b8;
    margin-right: 4px;
}

.badge-shop {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.badge-motomax { background-color: var(--color-motomax); }
.badge-motokramek { background-color: var(--color-motokramek); }
.badge-motojelinek { background-color: var(--color-motojelinek); }
.badge-fichtlkramek { background-color: var(--color-fichtlkramek); }

.btn-top-sync {
    background: transparent;
    border: 1px solid #475569;
    color: #f8fafc;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-top-sync:hover {
    background-color: #334155;
    border-color: #64748b;
}

/* --------------------------------------------------------------------------
   Main Header
   -------------------------------------------------------------------------- */
.main-header {
    background-color: #ffffff;
    border-bottom: 2px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.jawa-logo-badge {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.jawa-logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.logo:hover .jawa-logo-badge {
    transform: scale(1.04);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #0f172a;
    line-height: 1.1;
}

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

.logo-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 680px;
    position: relative;
}

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

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.search-form input {
    width: 100%;
    padding: 12px 100px 12px 44px;
    border: 2px solid var(--border-dark);
    border-radius: 30px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

.search-form input:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(201, 24, 43, 0.12);
}

.btn-clear-search {
    position: absolute;
    right: 92px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    font-size: 0.9rem;
}

.btn-search {
    position: absolute;
    right: 4px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

/* Cart Button */
.btn-cart {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 2px solid var(--border);
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.cart-icon-wrapper {
    position: relative;
    font-size: 1.3rem;
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.cart-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cart-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.cart-amount {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
}

/* --------------------------------------------------------------------------
   Moto Navigation Bar (Pills)
   -------------------------------------------------------------------------- */
.moto-nav {
    background-color: #1e293b;
    padding: 8px 0;
    border-bottom: 3px solid var(--primary);
}

.moto-nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.moto-nav-inner::-webkit-scrollbar {
    height: 4px;
}

.moto-nav-inner::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

.moto-chip {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.moto-chip:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.moto-chip.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(201, 24, 43, 0.4);
}

/* --------------------------------------------------------------------------
   Catalog Layout & Sidebar
   -------------------------------------------------------------------------- */
.main-content {
    padding: 24px 20px 60px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}

.filter-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.filter-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reset-filters {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-reset-filters:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.filter-group {
    margin-bottom: 20px;
}

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

.filter-title {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.filter-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    font-size: 0.88rem;
    background: #fff;
    color: var(--text-main);
    outline: none;
}

.filter-select:focus {
    border-color: var(--primary);
}

/* Category Tree */
.category-tree {
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.86rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.category-item:hover {
    background-color: #f1f5f9;
    color: var(--text-main);
}

.category-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.cat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-count {
    font-size: 0.75rem;
    background: #e2e8f0;
    color: #64748b;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
}

.category-item.active .cat-count {
    background: var(--primary);
    color: #fff;
}

/* Checkboxes & Radios */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.86rem;
    color: #334155;
    cursor: pointer;
    margin-bottom: 8px;
}

.checkbox-label input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.shop-pill {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}
.motomax-pill { background: var(--color-motomax); }
.motokramek-pill { background: var(--color-motokramek); }
.motojelinek-pill { background: var(--color-motojelinek); }
.fichtlkramek-pill { background: var(--color-fichtlkramek); }

/* Price Inputs */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-inputs input {
    width: 75px;
    padding: 7px 8px;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    font-size: 0.85rem;
}

.price-sep {
    color: var(--text-muted);
}

.btn-price-apply {
    background-color: #334155;
    color: #fff;
    border: none;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-price-apply:hover {
    background-color: var(--primary);
}

.sidebar-promo {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #e2e8f0;
    padding: 16px;
    border-radius: var(--radius-lg);
    font-size: 0.82rem;
}

.sidebar-promo h4 {
    color: #f59e0b;
    margin-bottom: 6px;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --------------------------------------------------------------------------
   Toolbar & Product Grid
   -------------------------------------------------------------------------- */
.catalog-toolbar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 12px;
}

.results-info h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--text-main);
    line-height: 1.2;
}

.results-count {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: #475569;
    font-weight: 600;
}

.sort-select {
    padding: 6px 12px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    font-size: 0.86rem;
    background: #fff;
    outline: none;
}

/* Active Filters Bar */
.active-filters-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.active-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #fff;
    border: 1px solid var(--border-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.active-filter-badge button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
}

.active-filter-badge button:hover {
    color: var(--danger);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.product-card-top {
    position: relative;
    height: 210px;
    background-color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.product-card-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background-color: #ffffff;
    transition: transform 0.3s ease;
    display: block;
}

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

.card-badge-moto {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.card-badge-sources {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #10b981;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-card-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

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

.product-card-oem {
    font-size: 0.76rem;
    color: #64748b;
    margin-bottom: 12px;
}

.product-card-oem code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #334155;
}

/* Shop Availability Pills in Card */
.product-card-shops {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.shop-dot {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
}

.product-card-price-row {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 12px;
}

.price-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
}

.price-val {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.price-range-sub {
    font-size: 0.76rem;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

.product-card-actions {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 8px;
}

.btn-compare {
    background-color: #0f172a;
    color: #fff;
    border: none;
    padding: 9px 12px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

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

.btn-card-quick-buy {
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(201, 24, 43, 0.2);
    border-radius: var(--radius);
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-card-quick-buy:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Loading & Empty States */
.loading-indicator {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.empty-icon {
    font-size: 3.5rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 10px;
}

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

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

/* --------------------------------------------------------------------------
   Modals & Drawers
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hidden {
    display: none !important;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    width: 100%;
}

.modal-product-detail {
    max-width: 960px;
    padding: 30px;
}

.modal-cart {
    max-width: 900px;
}

.modal-sync {
    max-width: 750px;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.modal-body {
    padding: 25px;
}

.btn-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.btn-modal-close:hover {
    background: var(--danger);
    color: #fff;
}

/* Product Detail Modal Content */
.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-img-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.detail-img-box img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.detail-info-box {
    display: flex;
    flex-direction: column;
}

.detail-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.detail-badge-moto {
    background: #1e293b;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.detail-badge-cat {
    background: #e2e8f0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.detail-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 10px;
}

.detail-meta-row {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.detail-description {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
    background: #f8fafc;
    padding: 14px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    margin-top: auto;
}

/* 4-Shop Comparison Table */
.comparison-section {
    border-top: 2px solid var(--border);
    padding-top: 25px;
}

.comparison-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th {
    background: #f8fafc;
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    color: #475569;
    border-bottom: 2px solid var(--border);
    font-size: 0.82rem;
    text-transform: uppercase;
}

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

.comparison-row.best-price-row {
    background-color: #f0fdf4;
}

.shop-badge-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-logo-pill {
    padding: 4px 10px;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
}

.price-cell-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.best-price-tag {
    display: inline-block;
    background: var(--success);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.stock-in {
    color: #059669;
    font-weight: 600;
}

.stock-out {
    color: #dc2626;
    font-weight: 600;
}

.shipping-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.action-buttons-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-visit-shop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border-dark);
    color: #334155;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-visit-shop:hover {
    border-color: #0f172a;
    background-color: #0f172a;
    color: #fff;
}

.btn-add-offer-cart {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-add-offer-cart:hover {
    background-color: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   Smart Cart Breakdown Styles
   -------------------------------------------------------------------------- */
.cart-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 75vh;
    overflow-y: auto;
}

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

.cart-empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.shop-cart-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.shop-cart-header {
    background: #f8fafc;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-cart-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-cart-items-list {
    list-style: none;
}

.shop-cart-item {
    display: grid;
    grid-template-columns: 50px 1fr 110px 100px 30px;
    gap: 14px;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
}

.cart-item-thumb {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
}

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

.qty-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

.qty-val {
    font-size: 0.9rem;
    font-weight: 700;
    width: 24px;
    text-align: center;
}

.cart-item-total {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
}

.btn-remove-item {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

.btn-remove-item:hover {
    color: var(--danger);
}

.shop-cart-footer {
    background: #f8fafc;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: center;
}

.shipping-box {
    font-size: 0.85rem;
}

.shipping-box strong {
    color: #0f172a;
}

.shipping-free-tag {
    color: #059669;
    font-weight: 700;
    background: #d1fae5;
    padding: 2px 6px;
    border-radius: 4px;
}

.free-ship-progress {
    font-size: 0.78rem;
    color: #f59e0b;
    margin-top: 2px;
}

.shop-subtotal-box {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.shop-subtotal-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Grand Total Box in Cart */
.cart-grand-summary {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.grand-summary-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.grand-summary-left strong {
    color: #fff;
}

.grand-total-amount {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #f59e0b;
    line-height: 1;
}

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

.btn-clear-cart {
    background: transparent;
    border: 1px solid #475569;
    color: #e2e8f0;
    padding: 10px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
}

.btn-clear-cart:hover {
    background: #334155;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Sync Modal & Admin
   -------------------------------------------------------------------------- */
.sync-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.sync-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sync-box h4 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.form-row input, .form-row select {
    padding: 8px 10px;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    font-size: 0.88rem;
}

.sync-log-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sync-log-wrapper label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.sync-log {
    background: #0f172a;
    color: #38bdf8;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.82rem;
    padding: 14px;
    border-radius: var(--radius);
    height: 160px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* --------------------------------------------------------------------------
   Buttons & Toasts
   -------------------------------------------------------------------------- */
.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

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

.btn-secondary {
    background-color: #334155;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #1e293b;
}

.toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #0f172a;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--primary);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Footer (Zjednodušená patička srovnávače)
   -------------------------------------------------------------------------- */
.main-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 35px 0 25px;
    border-top: 3px solid var(--primary);
    font-size: 0.88rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-disclaimer {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 10px 0;
    max-width: 550px;
}

.footer-col-shops h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-shop-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    transition: opacity 0.2s, transform 0.2s;
}

.footer-shop-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.copyright {
    margin-top: 10px;
    font-size: 0.78rem;
    color: #64748b;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-filters {
        position: static;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .search-container {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .sync-actions-grid {
        grid-template-columns: 1fr;
    }
    .shop-cart-item {
        grid-template-columns: 40px 1fr auto;
        grid-template-rows: auto auto;
    }
}
