/* --- Základní nastavení a proměnné --- */
:root {
    --primary-color: #ffcc00;
    --secondary-color: #1a1a1a;
    --text-light: #ffffff;
    --text-dark: #000000;
    --transition-speed: 0.4s;
}

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

/* Důležité: HTML a BODY musí mít 100% výšku */
html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: var(--secondary-color);
    /* Flexbox pro rozložení celé stránky (Hlavička - Střed - Patička) */
    display: flex;
    flex-direction: column;
}

/* --- Hlavička --- */
.site-header {
    background-color: #222; /* Tmavé pozadí */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between; /* DŮLEŽITÉ: Logo vlevo, zbytek vpravo */
    align-items: center;
    flex-wrap: wrap; /* Povolit zalomení na mobilu */
}

.header-cart {
    background-color: #ffcc00; /* Žluté pozadí */
    color: #000;              /* Černý text */
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: background-color 0.3s;
}

.header-cart:hover {
    background-color: #e6b800;
}
/* Červená bublina s číslem */
.cart-badge {
    background: #dc3545; /* Červená bublina */
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Mobilní úprava košíku */
@media (max-width: 600px) {
    .cart-text {
        display: none; /* Na mobilu skryjeme nápis "Košík", necháme jen ikonu */
    }
    .header-cart {
        right: 10px;
        padding: 5px;
    }
    .site-header {
        padding: 10px;
    }
    .logo h1 {
        font-size: 1.4rem; /* Trochu zmenšíme logo, aby se to tam vešlo */
    }
}

/* Logo */
.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
}
.logo span {
    color: #ffcc00; /* Žlutá barva pro SERVIS */
}
.logo-link {
    text-decoration: none;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px; /* Mezera mezi jménem a tlačítkem */
}

/* Uživatelské menu (Login) */
.user-menu a {
    color: #fff;       /* Bílá barva textu */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px; /* Mezera mezi ikonkou a textem */
    transition: color 0.3s;
}

.user-menu a:hover {
    color: #ffcc00; /* Při najetí zežloutne */
}

/* --- Mobilní lišta pro E-shop --- */
.eshop-mobile-bar {
    display: none;
    background: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    align-items: center;
    flex-shrink: 0;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle span {
    font-size: 1rem;
    font-weight: bold;
}

/* --- Přepínač (Velká tlačítka) --- */
.main-switcher {
    display: flex;
    width: 100%;
    transition: all var(--transition-speed) ease;
    background: #333;
    /* Flex vlastnosti se mění podle režimu (viz níže) */
}

.switch-btn {
    flex: 1; /* Tlačítka se vždy dělí o místo půl na půl */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-light);
    background-color: #333;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-content {
    text-align: center;
    padding: 20px;
    z-index: 2;
}

.switch-btn h2 { font-size: 1.5rem; margin: 10px 0; text-transform: uppercase; font-weight: bold; }
.switch-btn i { font-size: 2rem; margin-bottom: 10px; }
.switch-btn:hover { background-color: #444; }
.switch-btn.active { background-color: var(--primary-color); color: var(--text-dark); }
.switch-btn.servis { border-right: 1px solid #555; }
.switch-btn.eshop { border-left: 1px solid #555; }

/* --- HLAVNÍ OBAL OBSAHU --- */
.main-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    background-color: #f4f4f4;
    /* Flex vlastnosti se mění podle režimu */
}

/* --- LOGIKA ZOBRAZENÍ (INTRO vs CONTENT) --- */

/* 1. Režim INTRO (Úvodní obrazovka) */
body.intro-mode .main-switcher {
    flex: 1; /* Tady je oprava: Přepínač vyplní VEŠKERÉ zbývající místo */
    flex-direction: column; /* Mobil: pod sebou */
}

body.intro-mode .main-wrapper {
    display: none; /* Tady je oprava: Skryjeme obsah, aby nezabíral místo (to bílé dole) */
}

@media (min-width: 768px) {
    body.intro-mode .main-switcher { flex-direction: row; } /* PC: vedle sebe */
}

/* 2. Režim CONTENT (E-shop / Servis) */
body.content-mode .main-switcher {
    height: 60px; /* Pevná výška lišty */
    flex-direction: row;
    flex-shrink: 0; /* Nesmí se roztahovat */
}

body.content-mode .switch-btn h2 { font-size: 1rem; margin: 0; }
body.content-mode .switch-btn p, body.content-mode .switch-btn i { display: none; }

body.content-mode .main-wrapper {
    flex: 1; /* Tady je oprava patičky: Obsah se roztáhne a odtlačí patičku dolů */
}

/* --- Sidebar a zbytek --- */
.sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #ddd;
    padding: 20px;
    flex-shrink: 0;
}

.nav-menu ul, .nav-menu li { list-style: none; padding: 0; margin: 0; }
.menu-item-wrap { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.menu-item-wrap a { text-decoration: none; color: #333; font-weight: 500; flex: 1; }
.menu-item-wrap a:hover { color: var(--accent-eshop); }
.toggle-submenu { cursor: pointer; padding: 5px 10px; color: #888; }
.submenu { display: none; padding-left: 20px; background-color: #f9f9f9; }
.submenu.open { display: block; }

.content-area {
    flex: 1;
    padding: 30px;
    width: 100%;
}

/* --- Patička --- */
.site-footer {
    background-color: #222;
    color: #777;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: auto; /* Pojistka pro "Sticky Footer" */
    border-top: 1px solid #333;
}

/* --- RESPONZIVITA --- */
@media (max-width: 768px) {
    body.intro-mode .switch-btn h2 { font-size: 2rem; }
    
    .eshop-mobile-bar { display: flex; }
    .main-wrapper { flex-direction: column; }
    
    .sidebar {
        position: fixed;
        top: 0; left: -280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.5);
        overflow-y: auto;
    }
    .sidebar.mobile-open { left: 0; }

    .menu-overlay {
        display: none;
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    .menu-overlay.active { display: block; }
    .content-area { padding: 20px; }
}

/* --- DETAIL PRODUKTU --- */
.product-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Drobečková navigace (Breadcrumbs) */
.detail-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}
.detail-breadcrumb a {
    color: #333;
    text-decoration: none;
}
.detail-breadcrumb a:hover { text-decoration: underline; }
.detail-breadcrumb i { font-size: 0.7rem; margin: 0 5px; color: #999; }
.detail-breadcrumb span { color: var(--primary-color); font-weight: bold; }

/* Grid detailu */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Půl na půl */
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Levá strana - Obrázek */
.img-placeholder-large {
    width: 100%;
    aspect-ratio: 4/3; /* Poměr stran */
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.img-placeholder-large i { font-size: 5rem; color: #ccc; }

/* Pravá strana - Info */
.product-title { margin-top: 0; font-size: 2rem; }
.product-sku { color: #888; font-family: monospace; }

.product-price-box {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.product-price-box .price {
    display: block;
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--secondary-color);
}
.product-price-box .tax-info { color: #888; font-size: 0.8rem; }

/* Stav skladu */
.stock-status { margin-bottom: 20px; font-weight: 500; }
.stock-status.in-stock { color: #28a745; }
.stock-status.out-of-stock { color: #dc3545; }

/* Sekce nákupu */
.add-to-cart-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.qty-input {
    width: 60px;
    padding: 10px;
    font-size: 1.1rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-buy {
    flex: 1;
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}
.btn-buy:hover { background-color: #e6b800; }

.product-description { line-height: 1.6; color: #444; }

/* --- ÚPRAVA KARET V SEZNAMU (GRID) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

/* Odkaz přes celou kartu */
.card-link { text-decoration: none; color: inherit; display: block; height: 100%; }

.card-img-placeholder {
    height: 180px;
    background-color: #f9f9f9;
    display: flex; align-items: center; justify-content: center;
}
.card-img-placeholder i { font-size: 3rem; color: #ddd; }

.card-body { padding: 15px; }
.card-body .sku { font-size: 0.75rem; color: #999; }
.card-body h3 { font-size: 1.1rem; margin: 5px 0 15px 0; color: #333; }

.card-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto;
}
.card-footer .price { font-weight: bold; font-size: 1.2rem; color: var(--secondary-color); }
.card-footer .btn-detail {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
    color: #666;
}
.product-card:hover .btn-detail { color: var(--primary-color); }

/* Responsivita detailu */
@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; } /* Pod sebou na mobilu */
}

/* --- KOŠÍK --- */
.cart-table-wrap {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow-x: auto;
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th, .cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cart-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product-info a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.cart-product-info a:hover { color: var(--primary-color); }

.cart-img {
    width: 60px; height: 60px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-img i { color: #ccc; }

.qty-input-small {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-remove { color: #dc3545; }
.btn-remove:hover { color: #a71d2a; }

/* Souhrn košíku */
.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.cart-actions { display: flex; gap: 10px; }
.btn-update {
    background: #ddd; border: none; padding: 10px 15px;
    cursor: pointer; border-radius: 4px; font-weight: 500;
}
.btn-update:hover { background: #ccc; }
.btn-back {
    text-decoration: none; padding: 10px 15px;
    color: #555; border: 1px solid #ddd; border-radius: 4px;
}

.cart-totals {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 300px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.final-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.btn-checkout {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-dark);
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.2s;
}
.btn-checkout:hover { background-color: #e6b800; }

@media (max-width: 768px) {
    .cart-summary { flex-direction: column; }
    .cart-totals { width: 100%; }
}

/* --- ŘAZENÍ A HLAVIČKA VÝPISU --- */
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.listing-header h1 { margin: 0; font-size: 1.8rem; }
.listing-header h1 small { font-size: 1rem; color: #888; font-weight: normal; }

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-controls span { color: #666; font-size: 0.9rem; }

.sort-btn {
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sort-btn:hover { background: #eee; }

.sort-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    font-weight: 500;
}

/* Mobilní úprava řazení */
@media (max-width: 768px) {
    .listing-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .sort-controls { width: 100%; overflow-x: auto; padding-bottom: 5px; }
    .sort-btn { white-space: nowrap; }
}


/* --- STRÁNKOVÁNÍ (PAGINATION) --- */
.pagination {
    display: flex;
    justify-content: flex-end; /* Vpravo dole */
    align-items: center;
    margin-top: 40px;
    gap: 5px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 5px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

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

.page-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    font-weight: bold;
}

.dots {
    color: #999;
    padding: 0 5px;
    letter-spacing: 2px;
}

/* Zvýraznění aktivní kategorie v menu */
.menu-item-wrap a.active-link {
    color: var(--primary-color); /* Žlutá */
    font-weight: bold;
}

/* Pokud je menu otevřené, zajistíme jeho zobrazení */
.submenu.open {
    display: block !important;
}

/* --- MODÁLNÍ OKNO KOŠÍKU --- */
.cart-modal-overlay {
    display: none; /* Ve výchozím stavu skryté */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Ztmavení pozadí */
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.cart-modal {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cart-modal h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

.cart-modal i.success-icon {
    font-size: 3rem;
    color: #28a745; /* Zelená fajfka */
    margin-bottom: 15px;
}

.cart-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-modal-continue {
    padding: 10px 20px;
    background: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}
.btn-modal-continue:hover { background: #ddd; }

.btn-modal-cart {
    padding: 10px 20px;
    background: var(--primary-color);
    color: black;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}
.btn-modal-cart:hover { background: #e6b800; }



.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
    .input-field { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; margin-top: 5px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .form-group { margin-bottom: 15px; }
    
    .checkout-summary { background: white; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); height: fit-content; }
    .summary-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 0.9rem; }
    .summary-total { display: flex; justify-content: space-between; font-weight: bold; font-size: 1.3rem; margin-top: 20px; color: var(--primary-color); border-top: 2px solid #eee; padding-top: 20px; }

    .radio-option { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #eee; margin-bottom: 5px; border-radius: 4px; cursor: pointer; }
    .radio-option:hover { background: #f9f9f9; }
    
    @media (max-width: 768px) { .checkout-grid { grid-template-columns: 1fr; } }
/* --- Styl pro výběr dopravy a platby --- */
.radio-option {
    display: flex;
    justify-content: space-between; /* Název vlevo, cena vpravo */
    align-items: center;
    padding: 12px;
    border: 1px solid #eee;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
    background: white;
    transition: border-color 0.2s;
}

.radio-option:hover {
    border-color: #ccc;
    background: #fdfdfd;
}

/* Oranžový kroužek (moderní prohlížeče) */
.radio-option input[type="radio"] {
    accent-color: var(--primary-color); /* Naše žlutá/oranžová */
    transform: scale(1.2); /* Trochu větší */
    margin-right: 10px;
}

/* Obal pro název a ikonu */
.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cena vpravo */
.option-price {
    font-weight: bold;
    color: #555;
}

/* Zakázaná možnost (když nejde vybrat) */
.radio-option.disabled {
    opacity: 0.5;
    background: #eee;
    cursor: not-allowed;
    color: #999;
}


/* --- PATIČKA (FOOTER) --- */
.site-footer {
    background-color: #222;
    color: #bbb;
    padding: 40px 20px 20px;
    margin-top: auto;
    font-size: 0.9rem;
    border-top: 3px solid var(--primary-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-col strong { color: white; }

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

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Spodní copyright lišta */
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* --- INFORMAČNÍ MODÁLNÍ OKNO (Pro texty) --- */
.info-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000; /* Vyšší než košík */
    justify-content: center;
    align-items: center;
    padding: 20px; /* Aby se na mobilu nelepilo na okraje */
}

.info-modal {
    background: white;
    width: 100%;
    max-width: 800px; /* Širší než košík */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    max-height: 90vh; /* Aby nepřeteklo výšku okna */
    position: relative;
    color: #333;
}

.info-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-modal-header h2 { margin: 0; font-size: 1.5rem; }

.close-modal-btn {
    background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #666;
}
.close-modal-btn:hover { color: red; }

.info-modal-content {
    padding: 30px;
    overflow-y: auto; /* Scrollování uvnitř okna */
    line-height: 1.6;
}

.info-modal-content h3 { margin-top: 20px; }


/* --- COOKIE LIŠTA --- */
.cookie-bar {
    position: fixed;
    bottom: -100%; /* Schované pod okrajem */
    left: 0;
    width: 100%;
    background-color: #222;
    color: #fff;
    padding: 15px 20px;
    z-index: 9999; /* Musí být úplně nahoře */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    transition: bottom 0.5s ease-in-out; /* Animace vysunutí */
}

/* Třída, která lištu vysune nahoru */
.cookie-bar.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ccc;
}

.cookie-content strong {
    color: #fff;
}

.btn-cookie {
    background-color: var(--primary-color); /* Žlutá */
    color: var(--text-dark);
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap; /* Aby se text nezalamoval */
    transition: background 0.2s;
}

.btn-cookie:hover {
    background-color: #e6b800;
}

/* Mobilní zobrazení - pod sebe */
@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .btn-cookie {
        width: 100%;
    }
}


/* Základní styl štítku */
.quality-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Barvy pro jednotlivé typy */
.badge-economy {
    background-color: #e0e0e0;
    color: #555;
    border: 1px solid #ccc;
}

.badge-standard {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

.badge-premium {
    background-color: #fff8e1; /* Světle zlatá */
    color: #f57f17;            /* Sytá zlatá/oranžová */
    border: 1px solid #ffe082; /* Zlatý rámeček */
}

.badge-original {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.badge-heavyduty {
    background-color: #37474f;
    color: #fff;
    border: 1px solid #263238;
}

.badge-performance {
    background-color: #ffebee;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

/* Styl vyhledávání */
.search { 
	 display: flex;
    justify-content: flex-end;
    position: relative;
    top: -10px;
 }

.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    max-width: 300px; /* Šířka hledání */
}

.search-form input {
    border: none;
    padding: 8px 12px;
    outline: none;
    flex: 1; /* Roztáhne se */
    font-size: 0.95rem;
}

.search-form button {
    background: #333;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #555;
}

/* --- MOBILNÍ ZOBRAZENÍ (RESPONZIVITA) --- */
@media (max-width: 768px) {
    
    /* 1. Logo zabere celý horní řádek a bude uprostřed */
    .logo-link {
        width: 100%;
        text-align: center;
        margin-bottom: 15px; /* Odstup od loginu/košíku */
        border-bottom: 1px solid #444; /* Volitelné: linka pod logem */
        padding-bottom: 15px;
    }

    /* 2. Pravá sekce se roztáhne na celou šířku pod logem */
    .header-right {
        width: 100%;
        justify-content: space-between; /* Login úplně vlevo, Košík úplně vpravo */
        gap: 0; /* Mezeru už řeší space-between */
    }

    /* Volitelné: Zvětšení prvků na mobilu pro lepší klikání */
    .user-menu a, .header-cart {
        font-size: 1rem;
        padding: 10px;
    }
}


/* --- STYLY PRO PŘIHLÁŠENÍ A REGISTRACI --- */

.auth-container {
    max-width: 600px; /* Širší pro registraci */
    margin: 40px auto;
    padding: 0 20px;
}

.auth-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.auth-box h2 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
    font-size: 1.8rem;
}

/* Formulářové prvky */
.auth-form .form-group {
    margin-bottom: 15px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; /* Aby padding nerozbil šířku */
    transition: border-color 0.3s;
}

.auth-form input:focus {
    border-color: #333;
    outline: none;
}

/* Dvousloupcový layout pro jméno/telefon a hesla */
.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group {
    flex: 1; /* Roztáhne se rovnoměrně */
}

/* Tlačítko */
.btn-auth {
    width: 100%;
    padding: 14px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-auth:hover {
    background-color: #555;
}

/* Odkazy pod formulářem */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    color: #666;
}

.auth-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Hlášky (chyba / úspěch) */
.msg-box {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}
.msg-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.msg-box.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responzivita pro mobily */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column; /* Na mobilu pod sebe */
        gap: 0;
    }
}


/* STYLY PRO PROFIL */
    .profile-layout { display: flex; gap: 30px; align-items: flex-start; }
    .profile-sidebar { flex: 0 0 250px; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
    .profile-content { flex: 1; background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

    .user-card { text-align: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
    .avatar-circle { width: 80px; height: 80px; background: #eee; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 2rem; color: #aaa; }
    .user-card h3 { margin: 0; font-size: 1.2rem; }
    .user-card p { margin: 5px 0 0; color: #666; font-size: 0.9rem; }

    .nav-btn { display: block; width: 100%; text-align: left; padding: 12px 15px; background: none; border: none; font-size: 1rem; cursor: pointer; border-radius: 4px; color: #333; margin-bottom: 5px; transition: 0.3s; }
    .nav-btn:hover { background: #f4f4f4; }
    .nav-btn.active { background: #333; color: white; }
    .nav-btn.logout { color: #dc3545; margin-top: 20px; border-top: 1px solid #eee; border-radius: 0; }
    .nav-btn.logout:hover { background: #fce8e6; color: #dc3545; }
    .nav-btn i { width: 25px; text-align: center; margin-right: 5px; }

    .tab-content { display: none; }
    .tab-content.active { display: block; }

    .form-section { margin-top: 30px; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 5px; font-size: 1.1rem; color: #555; }
    .profile-form .form-group { margin-bottom: 15px; }
    .profile-form label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }
    .profile-form input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
    
    .btn-save { background: #28a745; color: white; border: none; padding: 12px 25px; border-radius: 4px; cursor: pointer; font-size: 1rem; margin-top: 20px; }
    .btn-save:hover { background: #218838; }

    .orders-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
    .orders-table th, .orders-table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
    .orders-table th { background: #f9f9f9; font-weight: 600; }
    .status-badge { padding: 4px 8px; border-radius: 4px; color: white; font-size: 0.85rem; }

    @media (max-width: 768px) {
        .profile-layout { flex-direction: column; }
        .profile-sidebar { width: 100%; box-sizing: border-box; }
    }	
    
/* --- DOSTUPNOST V KOŠÍKU --- */
.cart-product-name {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.stock-info-cart {
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Styl pro "Skladem" */
.stock-info-cart.ok {
    color: #1e7e34; /* Zelená */
}

/* Styl pro "U dodavatele" */
.stock-info-cart.delayed {
    color: #e67e22; /* Oranžová */
}

.stock-info-cart.delayed .sub-info {
    display: block; /* Hodí "Dodání..." na nový řádek */
    color: #333;
    font-size: 0.8rem;
    margin-top: 2px;
    background-color: #fff3cd; /* Jemně žluté pozadí pro zvýraznění */
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-block;
}    
    
    
    
    
    