/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.modal-open{
    overflow: hidden !important;
    touch-action: none;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

.hidden {
    display: none !important;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/*Ikony*/
element.style {
    color: white;
}
.fi-rs-cart-shopping-fast::before {
    content: "\f7f7";
}


.header {
    background-color: #fff;
    border-bottom: 3px solid #e74c3c;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    order: 1;
}

.logo:hover {
    color: #c0392b;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    flex: 1 1 auto;
    min-width: 250px;
    max-width: 500px;
    display: flex;
    gap: 0;
    order: 2;
}
.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: #e74c3c;
}

.search-btn {
    padding: 12px 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.search-btn:hover {
    background-color: #c0392b;
}

#searchDropdown {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

#searchDropdown::-webkit-scrollbar {
    width: 8px;
}

#searchDropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#searchDropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

#searchDropdown::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Sekce v dropdownu */
.search-section {
    border-bottom: 1px solid #ecf0f1;
    padding: 15px;
}

.search-section-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
    color: #7f8c8d;
    letter-spacing: 0.5px;
}

/* Položka produktu */
.search-product-item {
    padding: 12px 15px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.search-product-item:hover {
    background: #f9f9f9;
}

.search-product-icon {
    width: 50px;
    height: 50px;
    background: #ecf0f1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    overflow: hidden;
}

.search-product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.search-product-info {
    flex: 1;
    min-width: 0;
}

.search-product-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-product-price {
    font-size: 13px;
    color: #e74c3c;
    font-weight: 700;
    margin-top: 4px;
}

.search-product-stock {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-product-stock.available {
    background: #d4edda;
    color: #155724;
    font-weight: 600;
}

.search-product-stock.unavailable {
    background: #f8d7da;
    color: #721c24;
    font-weight: 600;
}

/* Kategorie */
.search-category-item {
    padding: 10px 15px;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.search-category-item:hover {
    background: #f9f9f9;
    padding-left: 20px;
}

.search-category-item::before {
    content: '📁';
    font-size: 16px;
}

/* Link zobrazit všechny */
.search-view-all {
    padding: 12px 15px;
    text-align: center;
    color: #e74c3c;
    font-weight: 600;
    cursor: pointer;
    background: #fff5f0;
    border-top: 1px solid #ecf0f1;
    transition: background 0.2s;
}

.search-view-all:hover {
    background: #ffe8d9;
}

/* Prázdný stav */
.search-empty {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
}

/* ===== CART INFO ===== */
.cart-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-info img{
    width: 40px !important;
    height: auto !important;
}

.cart-btn {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cart-btn:hover {
    transform: translateY(-2px);
}

.cart-count {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
}

/* ===== NAVIGATION ===== */
/* ===== NAVIGATION ===== */
.nav {
    background-color: #34495e;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    position: fixed;
    left: 15px;
    bottom: 1px;
    border: none;
    padding: 12px;
    gap: 6px;
    z-index: 1005;
    opacity: 1;
    transition: opacity 0.2s ease, visibility 0.1s ease, transform 0.2s ease;
    
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.25s ease;
    border-radius: 2px;
}


.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

#navHeaderRight{
    display: none !important;
}

.nav-menu li a {
    display: block;
    color: white;
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-menu li a:hover {
    background-color: #2c3e50;
    border-bottom-color: #e74c3c;
}
.mobile-sidebar-header,
.mobile-sidebar-footer{
    display: none;
}

.sidebar-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 1001;
}

.sidebar-overlay.active{
    opacity: 1;
    visibility: visible;
}
/* ===== BANNER ===== */
.banner {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-btn {
    display: inline-block;
    background-color: white;
    color: #e74c3c;
    padding: 14px 35px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border: 2px solid white;
}

.cta-btn:hover {
    background-color: transparent;
    color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header-cta-btn {
    display: inline-block;
    background-color: white;
    color: #e74c3c;
    padding: 14px 35px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border: 2px solid white;
}

.header-cta-btn:hover {
    background-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ===== FORMULAR SECTION ===== */
.formular {
    background-color: white;
    padding: 50px 20px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
}

#formular {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-top: 30px;
}

#formular h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 22px;
}



#formular select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    background-color: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

#formular select:focus {
    border-color: #e74c3c;
}

.form-produkty {
    width: 100%;
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.form-produkty:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* ===== PRODUKTY SECTION ===== */
.produkty {
    padding: 50px 20px;
    background-color: #f5f5f5;
}


.p-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.p-body h3 {
   font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    min-height: 38px;
    line-height: 1.3;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.price-unit{
    font-size: 13px;
    font-weight: normal;
    color: #666;
}

/* Cena bez DPH + Skladem badge */
.price-no-dph {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skladem-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.skladem-badge.skladem {
    background-color: #e8f5e9;
    color: #43a047;
}

.dodani{
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background-color: #ffebee;
    color: #dcb953;
}

.skladem-badge.nedostupne {
    background-color: #ffebee;
    color: #e53935;
}

/* Množství selector */
.qty-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    border: 2px solid #ecf0f1 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    width: fit-content !important;
    background: white !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    max-width: 120px !important;
    margin-top: auto  !important;
}

.qty-btnMinus,
.qty-btnPlus {
    width: 40px !important;
    height: 40px !important;
    border: none !important;
    background: white !important;
    cursor: pointer !important;
    font-size: 18px !important;
    color: #e74c3c !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
}

.qty-input {
    width: 50px !important;
    height: 40px !important;
    border: none !important;
    border-left: 2px solid #ecf0f1 !important;
    border-right: 2px solid #ecf0f1 !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    background: white !important;
    padding: 0 !important;
}

.qty-btnMinus:hover,
.qty-btnPlus:hover {
    background-color: #ecf0f1;
    color: #c0392b;
}

.qty-btnMinus:active,
.qty-btnPlus:active {
    background-color: #bdc3c7;
}


/* Skryj arrow v input[type=number] */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

.qty-input:focus {
    outline: none;
    background: #f8f9fa;
}

.btn-small  {
    background-color:#34495e;
    border-radius: 8px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    margin-right: 5px;
    
}
.btn-small:hover{
    
    background-color: #2c3e50;
    transform: translateY(-2px);
    
}

.btn-primary{
    background-color:#34495e;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    
    
}
.btn-primary:hover{
    
    background-color: #2c3e50;
    transform: translateY(-2px);
    
}

.btn-cart {
    position: static;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background:  #43a047;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}


.btn-cart-detail{

    width: 100%;
    max-width: 300px;
    padding: 14px 20px;
    background: #43a047 !important;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px ;
    margin-left: 15px;
}

.btn-cart:hover {
    background: #388e3c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 16px rgba(67, 160, 71, 0.3) !important;
}

.btn-cart:active {
    transform: translateY(0);
}

.btn-cart.btn-disabled{
    background-color: #bdbdbd;
    cursor: not-allowed;
}
.products-count {
    margin-left: 10px;
    color: #7f8c8d;
    font-size: 13px;
    white-space: nowrap;
}

.products-count strong {
    color: #2c3e50;
    font-size: 14px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}




/* ===== PRODUKTY - OPRAVENO ===== */


/* ===== PRODUCTS SECTION (Sekce Díly) ===== */
.products {
    padding: 50px 20px;
    background-color: #f5f5f5;
}


#productsSection .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 700;
}

/* ===== PRODUCT CARD ===== */
.product {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
    height: 100%;
    width: 100%; /* ⭐ ZMĚNA - ne fixní! */
    max-width: 320px;
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.product img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 6px;
    margin-bottom: 12px;
    cursor: pointer;
}




/* ===== CHOICES.JS CUSTOM STYLING ===== */
.choices {
    
    margin-bottom: 0;
}



.choices__inner {
    min-height: 48px;
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 15px;
}
.choices .is-open:hover{
    color: black;
}
.choices__inner:focus,
.is-focused .choices__inner {
    border-color: #e74c3c;
}


.choices__list--dropdown {
    max-height: 350px; /* ⭐ Maximální výška před scrollem */
    border: 2px solid #e74c3c;
    border-radius: 6px;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
   
}

.choices__item--selectable {
    padding: 12px 16px;
    font-size: 15px;
    color: #2c2c2c;
}

.choices__list .choices__item--choice:hover {
    background-color: #e74c3c;
    color: white;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #e74c3c !important;
    color: white !important;
}
.choices__item--selectable:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.choices__item--selectable.is-highlighted {
    background: #e74c3c;
    color: white;
}

.choices__placeholder {
    opacity: 1 !important; /* Zruší průhlednost */
    color: #2c3e50 !important; /* ⭐ BARVA PLACEHOLDERU */
}


.choices[data-type*=select-one] .choices__input {
    background: white;
    padding: 8px 12px;
    margin: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    
}

.choices__placeholder {
    opacity: 0.6;
}






.product:hover img {
    transform: scale(1.05);
}




#productStatus {
    text-align: center;
    padding: 30px;
    font-size: 18px;
    color: #7f8c8d;
}

.product-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* ⭐ Fixní max šířka */
    gap: 24px;
    justify-content: start; /* ⭐ Zarovná doleva */
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 500px;
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 20px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    
}

.product-detail img {
    width: 100%;
    border-radius: 8px;
}

.product-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.product-info p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.product-info .price {
    font-size: 32px;
    margin-bottom: 25px;
}

/* ===== INFO SECTION ===== */
.info-section {
    padding: 60px 20px;
    background-color: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    text-align: center;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.info-card:hover {
    border-color: #e74c3c;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.fi {
    font-size: 18px;
    color: #e63946; /* nebo bílá / šedá */
    vertical-align: middle;
}

.bi {
    font-size: 18px;
    color: #e63946; /* nebo bílá / šedá */
    vertical-align: middle;
}
.bi-exclamation-triangle-fill{
    color: orange;
    font-size: 80px; 
    margin-bottom: 15px;
}

.bi-box-arrow-right{
    font-size: 80px;

}


.empty-cart{
    background-color: #dadada;
}
.info-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.info-card p {
    color: #555;
    line-height: 1.7;
}

.info-icon img{
    width: 16px !important;
    height: auto !important;
    display: block;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background-color: #ecf0f1;
    padding: 12px 0;
    font-size: 14px;
    color: #7f8c8d;
    
}



.breadcrumb a {
    color: #e74c3c;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* ========== MODAL BACKDROP ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== MODAL CONTENT ========== */
.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========== MODAL HEADER ========== */
.modal-content h2 {
    margin: 0;
    padding: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close {
    

    
    background: none;
    border: none;
    font-size: 28px;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    
}

.close:hover {
    color: #e74c3c;
}

/* ========== POLOŽKY V KOŠÍKU ========== */
#cartItems {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.cart-item {
    display: grid !important;
    grid-template-columns: 90px 1fr 140px !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #ecf0f1 !important;
    transition: background-color 0.2s !important;
}
.cart-item:hover {
    background-color: #f8f9fa !important;
}


.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background: #ecf0f1;
}

.cart-item-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.cart-item-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.3;
}

.cart-item-price {
    color: #7f8c8d;
    font-size: 12px;
}

.cart-item-subtotal {
    font-weight: 700;
    color: #e74c3c;
    font-size: 13px;
}

.cart-item-controls {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    justify-content: flex-end !important;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    color: #2c3e50;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #ecf0f1;
    border-color: #bdc3c7;
}

.qty-display {
    width: 28px;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
}

.cart-item-remove {
    width: 35px;
    height: 35px;
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.cart-item-remove:hover {
    color: #c0392b;
}

/* ========== PRÁZDNÝ KOŠÍK ========== */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
    color: #7f8c8d;
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-empty h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.cart-empty p {
    margin: 0;
    font-size: 13px;
}

/* ========== FOOTER KOŠÍKU ========== */
.modal-footer {
    padding: 20px;
    border-top: 1px solid #ecf0f1;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.cart-total-label {
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
}

.cart-total-value {
    font-size: 22px;
    font-weight: 700;
    color: #e74c3c;
}

/* ========== CHECKOUT TLAČÍTKO ========== */
.cta-btn {
    width: 100%;
    padding: 14px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(231, 76, 60, 0.3);
}

.cta-btn:active {
    transform: translateY(0);
}

.cta-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* ========== CHECKOUT - PROFESIONÁLNÍ DESIGN ========== */

.checkout-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.checkout-main {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.checkout-header {
    margin-bottom: 40px;
}

.checkout-header h2 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

/* STEPS */
.steps {
    display: flex;
    gap: 20px;
    align-items: center;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bdc3c7;
}

.step.active {
    color: #e74c3c;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ecf0f1;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step.active .step-number {
    background: #e74c3c;
    color: white;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
}

/* SECTIONS */
.checkout-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #ecf0f1;
}

.checkout-section:last-of-type {
    border-bottom: none;
}

.checkout-section h3 {
    font-size: 18px;
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-weight: 700;
}

/* FORM */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #e74c3c;
    background: white;
}

.required {
    color: #e74c3c;
}

/* OPTIONS GRID */
.options-grid {
    display: grid;
    gap: 15px;
}

.option-card {
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.option-card:hover {
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.1);
}

.option-card input[type="radio"] {
    display: none;
}

.option-card input[type="radio"]:checked + .option-content {
    border-color: #e74c3c;
}

.option-card:has(input:checked) {
    border-color: #e74c3c;
    background: #fff5f5;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.option-info {
    flex: 1;
}

.option-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.option-desc {
    font-size: 13px;
    color: #7f8c8d;
}

.option-price {
    font-size: 15px;
    font-weight: 700;
    color: #e74c3c;
}

/* ZÁSILKOVNA BOX */
.btn-secondary {
    padding: 14px 28px;
    background: white;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover .zasilkovna-icon{
    
    color: white;
}
.btn-secondary:hover {
    background: #e74c3c;
    color: white;
}

.zasilkovna-icon{
    color: #e74c3c;
}



#zasilkovnaBox {
    margin-top: 15px;
}

#zasilkovnaBox > div {
    border: 2px solid #27ae60 !important;
    background: #eafaf1 !important;
}

/* GDPR */
.gdpr-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
}

.gdpr-label {
    display: flex;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    color: #856404;
}

.gdpr-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #ffc107;
}

.gdpr-label a {
    color: #856404;
    text-decoration: underline;
    font-weight: 600;
}

/* SUBMIT BUTTON */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* SIDEBAR */
.checkout-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.order-summary {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.order-summary h3 {
    font-size: 20px;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

#cartSummary {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

.cart-item-name {
    font-size: 14px;
    color: #2c3e50;
}

.cart-item-qty {
    font-size: 13px;
    color: #7f8c8d;
}

.cart-item-price {
    font-weight: 600;
    color: #e74c3c;
}

.summary-totals {
    padding-top: 20px;
    border-top: 2px solid #ecf0f1;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #2c3e50;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ecf0f1;
    color: #e74c3c;
}

/* TRUST BADGES */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.trust-text {
    font-size: 11px;
    color: #7f8c8d;
    line-height: 1.3;
}

/* RESPONSIVE */


.from-grid {
    display: grid;
    gap: 15px;
}

.from-grid input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.from-grid input:focus {
    border-color: #e74c3c;
}

.btn-confirm {
    width: 100%;
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-confirm:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

#zasilkovnaBox {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 2px solid #e74c3c;
}

/* ===== FOOTER ===== */
.footer {

    

    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}


.footer-section h3 {
    text-align: center;
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section ul {
    text-align: center;
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #e74c3c;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */


/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product {
    animation: fadeIn 0.5s ease-out;
}

.info-card {
    animation: fadeIn 0.6s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ===== COOKIES LIŠTA ===== */
.announcement-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease-out;
    
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.announcement-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.announcement-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
}



.announcement-close-btn{
    position: static;
    width: 70%;
    margin-top: 10px;
    padding: 8px;
    background:  #43a047;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s; 
    bottom: 0;
}

.announcement-close-btn:hover {
    background-color: #229954 !important;
}
/* ===== COOKIES LIŠTA ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-accept {
    position: static;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background:  #43a047;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s; 
}

.btn-accept:hover {
    background-color: #229954 !important;
}

.cookie-buttons a {
    color: #ecf0f1;
    text-decoration: underline;
}

.cookie-buttons a:hover {
    color: white;
}

/* Responsive */

/* ===== FILTRY - OPRAVENÁ VERZE ===== */
.filters-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 14px;
    row-gap: 10px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    white-space: nowrap;
}

.filter-group select,
.filter-group input[type="number"] {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background-color: white;
    flex: 1;
}

.filter-group select {
    min-width: 150px;
}

.filter-group input[type="number"] {
    width: 80px;
    flex: none;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: #e74c3c;
}



  


.right-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.availability-small {
    font-size: 13px;
}


/* ===== LOADING SPINNER ===== */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    margin-top: 20px;
    font-size: 16px;
    color: #555;
    font-weight: 600;
}

/* Loading overlay pro produkty */
.products-loading {
    position: relative;
    min-height: 200px;
}

.products-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Skeleton loading pro produkty */
.product-skeleton {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    animation: pulse 1.5s ease-in-out infinite;
}

.product-skeleton .skeleton-img {
    width: 100%;
    height: 180px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

.product-skeleton .skeleton-text {
    padding: 15px;
}

.product-skeleton .skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-skeleton .skeleton-line.short {
    width: 60%;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Na mobilech - 1 řádek na filtr */


/* ===== PRÁZDNÉ STAVY (EMPTY STATES) ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 500px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.empty-state-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.empty-state .btn {
    padding: 12px 30px;
    font-size: 15px;
}

/* Empty state v gridu produktů */
#products .empty-state,
#productGrid .empty-state {
    grid-column: 1 / -1;
    margin: 20px 0;
}

/* Prázdný košík v modalu */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-empty h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 18px;
}

.cart-empty p {
    color: #95a5a6;
    margin: 0;
    font-size: 14px;
}
/* ===== TOAST NOTIFIKACE ===== */
#toastContainer {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 320px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid #43a047;
}

.toast.success {
    border-left-color: #43a047;
}

.toast.error {
    border-left-color: #e53935;
}

.toast.info {
    border-left-color: #2196f3;
}

.toast-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 14px;
}

.toast-message {
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 10px;
}

.toast-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.toast-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.toast-btn.primary {
    background-color: #e74c3c;
    color: white;
}

.toast-btn.primary:hover {
    background-color: #c0392b;
}

.toast-btn.secondary {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.toast-btn.secondary:hover {
    background-color: #d5dbdb;
}

.toast-close {
    font-size: 20px;
    color: #bdc3c7;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #7f8c8d;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* Animace pro počet v košíku */
.cart-count.bounce {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
}

/* Responsive */

/* GDPR Checkbox Animace */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.gdpr-consent-box {
    transition: all 0.3s ease;
}

.gdpr-consent-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* SCROLL TO TOP BUTTON */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.scroll-top-btn:active {
    transform: translateY(-2px);
}

/* ========== PRODUCT DETAIL MODAL ========== */

.product-detail-modal {
    max-width: 100vh;
    width: 95%;
    max-height: 90dvh;
    overflow-y: auto;
    padding: 0;
}
.product-detail-modal .close {
    position: sticky;
    top: max(50px, env(safe-area-inset-top)); /* max() = ať to není nikdy 0 nebo příliš málo */
    left: 10px;
    margin: 10px;
    z-index: 9999; /* zvýšeno, ať to nic nepřekryje */
    background: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
}


.force-hidden{
    display: none !important;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

/* LEVÁ STRANA - OBRÁZEK */
.product-detail-image {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.detail-main-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.detail-main-image:hover {
    transform: scale(1.05);
}

.zoom-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-detail-image:hover .zoom-hint {
    opacity: 1;
}

/* PRAVÁ STRANA - INFO */
.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-header {
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 15px;
}

.detail-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 28px;
}

.product-code {
    background: #ecf0f1;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #7f8c8d;
    font-family: monospace;
}
.for-center-div_cena{
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    
}

/* CENA */
.detail-price-box {
    max-width: 500px;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 350px;
    /*background-color:#620000; */
    background-color:#e74c3c;
    padding: 20px;
    border-radius: 12px;
    color: white;
}

.price-main {
    
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.price-no-vat {

    font-size: 14px;
    opacity: 0.9;
}
/* TOP PRODUKTY - Profesionální design */
/* TOP PRODUKTY - Stejná velikost jako normální produkty */
.top-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
}

.top-product-btn:hover:not(:disabled) {
    background: #388e3c !important;
    transform: scale(1.02);
}

/* Responsive */


/* DOSTUPNOST */
.availability-badge {
    display: inline-flex;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.availability-badge.available {
    background: #d4edda;
    color: #155724;
}

.availability-badge.unavailable {
    background: #f8d7da;
    color: #721c24;
}

/* POPIS */
.detail-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.detail-description h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
}

.detail-description p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* SPECIFIKACE */
.detail-specs {
    background: #fff;
    border: 2px solid #ecf0f1;
    padding: 20px;
    border-radius: 12px;
}

.detail-specs h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

.detail-specs table {
    width: 100%;
    border-collapse: collapse;
}

.detail-specs td {
    padding: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.detail-specs td:first-child {
    width: 40%;
    color: #7f8c8d;
}

/* AKCE - MNOŽSTVÍ A KOŠÍK */
.detail-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}



/* Animace pro varování */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shipping-warning {
    animation: slideDown 0.3s ease;
}

.qty-wrapper .qty-btn {
    width: 40px;
    height: 40px;
    background: #ecf0f1;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
/* Přidej do <style> sekce */

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    order: 3;
    transition: all 0.6s ease !important;
}
.user-icon-container {
    position: relative;
}

.user-icon {
   width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.login-user-icon-container {
    position: relative;
}

.login-user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-user-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Dropdown menu */
.user-dropdown {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 10000;
    overflow: hidden;
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px 20px;
    background-color: #34495e;
    border-color: red;
    color: white;
    font-size: 14px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
}

.dropdown-item:hover {
    background: #eff1f4;
    
}

.dropdown-item span {
    font-size: 18px;
    width: 24px;
}

.dropdown-divider {
    height: 1px;
    background: #ecf0f1;
    margin: 8px 0;
}

/* Zavři dropdown při kliku mimo */

.qty-wrapper
 {
    background: #bdc3c7;
}

.qty-wrapper .qty-input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 18px;
    font-weight: bold;
}



.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-cart:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* SOUVISEJÍCÍ PRODUKTY */
.related-products {
    padding: 40px;
    border-top: 1px solid #ecf0f1;
}

.related-products h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 22px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* RESPONZIVITA */
 
/* ========== TLAČÍTKA +/- V KOŠÍKU (renderCart) ========== */

/* Kontejner pro tlačítka */
#cartItems .btn {
    width: 35px;
    height: 35px;
    padding: 0;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* MÍNUS TLAČÍTKO - Červená */
#cartItems .btn[onclick*="-1"] {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    margin-right: 6px;
}

#cartItems .btn[onclick*="-1"]:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: scale(1.01);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
}

#cartItems .btn[onclick*="-1"]:active {
    transform: scale(0.95);
}

/* PLUS TLAČÍTKO - Zelená */
#cartItems .btn[onclick*=",1"] {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

#cartItems .btn[onclick*=",1"]:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: scale(1.01);
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.4);
}

#cartItems .btn[onclick*=",1"]:active {
    transform: scale(0.95);
}

/* ========== RECENZE PRODUKTŮ ========== */

.reviews-summary {
    
    margin-bottom: 30px;
}

.reviews-center {
    display: flex;
    flex-direction: column;
    align-items: center;   /* vodorovně */
    text-align: center;
}


.reviews-summary h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 22px;
}

.reviews-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.rating-big {
    display: inline-block;
}

.rating-number {
    font-size: 48px;
    font-weight: bold;
    color: #f39c12;
    display: block;
}

.rating-stars {
    font-size: 24px;
    margin: 10px 0;
}

.rating-count {
    color: #7f8c8d;
    font-size: 14px;
}

/* SEZNAM RECENZÍ */
.reviews-list {
    margin-top: 30px;
}

.review-item {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.review-item:hover {
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-header strong {
    color: #2c3e50;
    font-size: 16px;
}

.review-date {
    color: #95a5a6;
    font-size: 13px;
}

.review-rating {
    font-size: 18px;
    margin-bottom: 10px;
}

.review-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 15px;
}

.review-comment {
    color: #555;
    line-height: 1.6;
}

.verified-badge {
    background: #d4edda;
    color: #155724;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.no-reviews {
    text-align: center;
    padding: 40px;
    color: #95a5a6;
}

/* FORMULÁŘ RECENZE */
/* ===== FORMULÁŘ RECENZE ===== */

.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating label i {
    color: inherit;
    /* ⭐ DŮLEŽITÉ - odstraň outline z Bootstrap ikon */
    -webkit-text-stroke: 0;
    
}

/* ⭐ VYBRANÉ HVĚZDY - rozsvítí hvězdu a všechny PŘED NÍ */
.star-rating input#star1:checked ~ label[for="star1"],
.star-rating input#star2:checked ~ label[for="star2"],
.star-rating input#star2:checked ~ label[for="star1"],
.star-rating input#star3:checked ~ label[for="star3"],
.star-rating input#star3:checked ~ label[for="star2"],
.star-rating input#star3:checked ~ label[for="star1"],
.star-rating input#star4:checked ~ label[for="star4"],
.star-rating input#star4:checked ~ label[for="star3"],
.star-rating input#star4:checked ~ label[for="star2"],
.star-rating input#star4:checked ~ label[for="star1"],
.star-rating input#star5:checked ~ label[for="star5"],
.star-rating input#star5:checked ~ label[for="star4"],
.star-rating input#star5:checked ~ label[for="star3"],
.star-rating input#star5:checked ~ label[for="star2"],
.star-rating input#star5:checked ~ label[for="star1"] {
    color: #f39c12 !important;
}

/* ⭐ HOVER efekt */
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f39c12 !important;
}

/* ===== ZOBRAZENÉ HODNOCENÍ ===== */
.rating-stars {
    display: flex;
    gap: 4px;
    color: #f39c12;
}

.rating-stars.small {
    font-size: 18px;
}

.rating-stars.big {
    font-size: 32px;
}

/* ===== ZOBRAZENÉ HODNOCENÍ ===== */

/* ===== ZOBRAZENÉ HODNOCENÍ V RECENZÍCH ===== */
.rating-stars {
    display: flex;
    gap: 4px;
    color: #f39c12; /* Zlatá barva */
}

.rating-stars i {
    color: #f39c12 !important; /* ⭐ PŘIDÁNO - přepíše Bootstrap */
    -webkit-text-stroke: 0 !important; /* ⭐ Odstraní červený outline */
    
}

.rating-stars.small {
    font-size: 18px;

}

.rating-stars.big {
    font-size: 32px;
}

/* ⭐ NOVÉ - pro průměrné hodnocení nahoře */
.rating-big {
    text-align: center;
}

.rating-big .rating-stars i {
    color: #f39c12 !important;
    -webkit-text-stroke: 0 !important;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
}

.rating-count {
    margin-top: 8px;
    color: #7f8c8d;
    font-size: 14px;
}
/* ========== NOVINKA BADGE ========== */

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-new {
    position: absolute;
    top: 10px;
    left: 5px;  /* ⭐ ZMĚNA z right na left */
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 2px;  /* ⭐ ZMĚNA z 20px na 6px */
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
    z-index: 2;
}



/* Ujisti se že product karta má position: relative */
.product {
    position: relative; /* ⭐ DŮLEŽITÉ */
}


.recenze-btn {
    width: 100%;
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}
/* ========== HVĚZDIČKY ========== */
.rating-stars {
    font-size: 32px;
    letter-spacing: 4px;
    line-height: 1;
}

.rating-stars span {
    display: inline-block;
    transition: all 0.3s;
}

.review-rating {
    font-size: 20px;
    letter-spacing: 2px;
    margin: 10px 0;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 5px;
    font-size: 40px;
    margin: 20px 0;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f39c12;
}

.star-rating label:hover {
    transform: scale(1.2);
}

.btn-emptycart{
    
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: block;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
    margin: 0 auto;
}
/* ========== SLEVA / PŮVODNÍ CENA ========== */

.product-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 10px 0;
}

.old-price {
    font-size: 14px;
    color: #95a5a6;
    text-decoration: line-through;
    font-weight: 500;
}

.new-price {
    font-size: 22px;
    font-weight: 700;
    color: #e74c3c;
}

.discount {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
}

/* Badge SLEVA */
.badge-sale {
    top: 15px;
    background: #e74c3c;
    color: white;
    padding: 7px 13px;
    border-radius: 6px;  /* ⭐ STEJNÝ jako skladem badge */
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* ⭐ Mezera od ceny */
    vertical-align: middle;
    position: absolute;
}

/* Product image wrapper pro badges */
.product-image {
    position: relative;
}

.product-badges {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

/* Detail modal - price */
.modal-body .product-price {
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.modal-body .old-price {
    font-size: 18px;
}

.modal-body .new-price {
    font-size: 32px;
}

.modal-body .discount {
    font-size: 14px;
    padding: 5px 12px;
}

/* Wishlist tlačítko na produktech */
.product {
    position: relative;
}

.btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: 2px solid #e74c3c;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 2;
}

.btn-wishlist:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-wishlist.active {
    background: #e74c3c;
}

.wishlist-icon {
    transition: all 0.3s;
    
    
}

.btn-wishlist.active .wishlist-icon {
    filter: brightness(0) invert(1);
}

/* ===== OPRAVENÁ RESPONZIVITA PRO HEADER ===== */

/* ===== HEADER - ZÁKLADNÍ STRUKTURA ===== */
.header {
    background-color: #fff;
    border-bottom: 3px solid #e74c3c;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    order: 1;
}

/* ===== SEARCH BAR - OPRAVENO ===== */
.search-bar {
    position: relative;
    flex: 1 1 auto;
    min-width: 250px;
    max-width: 500px;
    display: flex;
    gap: 0;
    order: 2;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-btn {
    padding: 12px 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

/* ===== HEADER RIGHT - CART + USER ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    order: 3;
    transition: all 0.6s ease !important;
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-info img {
    width: 40px !important;
    height: auto !important;
}

.cart-btn {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

/* USER ICONS */
.user-icon,
.login-user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}


/* ========Znacky, modely, kategorie */

/* Navigační mřížka */

.nav-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* ⭐ CENTROVÁNÍ */
    gap: 15px;
    margin: 0 auto 40px auto;
    max-width: 1000px;  /* ⭐ MAX ŠÍŘKA */
    padding: 0 20px;
}

/* Navigační tlačítka */
/* Navigační tlačítka - FIXNÍ ŠÍŘKA */
.nav-btn {
    width: 220px;  /* ⭐ FIXNÍ ŠÍŘKA */
    padding: 25px 20px;  /* ⭐ VĚTŠÍ PADDING */
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.nav-btn:hover {
    border-color: #e74c3c;
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
}

.nav-btn.selected {
    border-color: #e74c3c;
    background: #e74c3c;
    color: white;
}

/* Popis pod tlačítkem */
.nav-btn-subtitle {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
    font-weight: 400;
}

.selected .nav-btn-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Sekce nadpisy - centrované */
#category-navigation h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 28px;
}

/* Breadcrumbs - centrované */
#breadcrumbs {
    text-align: center;
    margin-bottom: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

/* Tlačítko zpět - centrované */
#btn-back {
    display: block;
    margin: 0 auto 30px auto;
    padding: 12px 24px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    max-width: 200px;
}

#btn-back:hover {
    background: #7f8c8d;
}

#UpozorneniModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Ztemnění pozadí */
    z-index: 9999;
    cursor: pointer;
    
    
    display: none; 
    justify-content: center;
    align-items: center;
}

.btn-Upozorneni{
  background-color:  #27ae60;;
  bottom: 20px;
  width: 80%;
  height: 50px;
  font-size: 20px;
  border-radius: 10px;
  box-shadow: none;
  color: white;
  transition: transform 0.3s ease;
  margin-top: 20px;
}
.input-Upozorneni{
    height: 10%;
    width: 50%;
    font-size: large;
    padding-left: 10px;
    
}
.checkbox-Upozorneni{
    width: 5%;
    height: 5%;
    

}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.Info-Upozorneni{
    background-color: #f8f9fa;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    width: 80%;
    height: 80%;
    align-items: left;
    justify-content: center;
    padding-bottom: 10px;
    padding-left: 30px;
    gap: 30px;
    position: relative;
    
}

.btn-Upozorneni:hover{
    transform:translateY(-5px);
    background-color: #229954;
    
}
.Upozorneni-modal-content{
    
    display:flex;
    flex-direction: column;
    background-color: white;
    width: 50% !important;
    height: 80% !important;
    color: black !important;
    border-radius: 8px;
    padding-bottom: 20px;
    justify-content: space-between;
    align-items: center;
    position: relative;
    

}

.upozorneni-close{
    top: 15px;
    left: 15px;
    border-radius:100%;
    font-size: 26px;
    color: #95a5a6;
    cursor: pointer;
    padding-bottom: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    position: absolute;
    box-shadow: 0 5px 15px rgba(5, 5, 5, 0.4);
    transition: all 0.3s ease;
    
}

.upozorneni-close:hover{
    color: red;
}

.btn-detail-upozorneni{
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    color:#e74c3c;
    border: none;
    box-shadow: none;
    
      
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* ========== DESKTOP LARGE - 1400px+ ========== */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    #topProductsContainer {
        grid-template-columns: repeat(6, 1fr);
    }

    
}

/* ========== DESKTOP - 1200px+ ========== */
@media (min-width: 1201px) {
    .search-bar {
        max-width: 600px;
    }
    
    .filters-container {
        flex-wrap: wrap;
    }
    
}

/* ========== LAPTOP - 992px ========== */
@media (max-width: 992px) {
    /* Header */
    .logo {
        font-size: 24px;
    }
    
    .search-bar {
        min-width: 200px;
        max-width: 400px;
    }
    
    .cart-info img {
        width: 36px !important;
    }
    
    .user-icon,
    .login-user-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
    
    /* Products */
    
    
    
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .filter-group select,
    .filter-group input {
        flex: 1;
    }
    
    .products-count {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
    }
    
    /* Checkout */
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-sidebar {
        position: static;
        order: -1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Info cards */
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    
}

/* ========== TABLET - 768px ========== */
@media (max-width: 768px) {
    /* Container */
    /* --- TYHLE ŘÁDKY VLOŽ HNED NA ZAČÁTEK MOBILNÍHO @MEDIA --- */
    .product-grid {
            grid-template-columns: repeat(3, 1fr) !important;
            gap: 16px !important;
        }


    .hamburger {
        display: flex;
        position: absolute;
       
        left: 15px;
        z-index: 1005;
    }
    .hamburger.active{
        opacity: 0;               
        visibility: hidden;       
        transform: scale(0.8);
        pointer-events: none;
    }

    .nav .container {
        justify-content: flex-start;
        height: 45px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100dvh !important;
        background-color: #2c3e50 !important; /* Natvrdo tmavé pozadí sidebaru */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding-top: 0 !important;
        z-index: 1002 ;
        transition: left 0.3s ease-in-out;
        box-shadow: 4px 0 15px rgba(0,0,0,0.3);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu li a {
        display: block;
        width: 100%;
        color: #ffffff !important; 
        padding: 16px 24px;
        font-size: 15px;
        text-align: left;
        border-bottom: none !important; 
        box-sizing: border-box;
    }

    .nav-menu li a:hover {
        background-color: #34495e !important;
        color: #e74c3c !important;
    }

    .mobile-sidebar-header{
        display: flex !important;
        flex-direction: row !important; /* Zpět na řádek: Logo vlevo, křížek vpravo */
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        height: auto !important; /* ZRUŠENO 100dvh - hlavička má mít jen přirozenou výšku! */
        padding: 15px 20px !important;
        margin: 0 !important;
        background-color: rgba(0,0,0,0.15);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        box-sizing: border-box;
    }

    .mobile-sidebar-footer {
        display: block !important;
        margin-top: auto;                 
        padding: 12px 16px !important; 
        border-top: 1px solid rgba(255, 255, 255, 0.1); 
        background-color: rgba(0, 0, 0, 0.15);         
        list-style: none;
    }


    .mobile-sidebar-footer p {
        display: flex !important;
        align-items: center !important;  
        margin: 8px 0 !important;
        font-size: 12px !important;
        font-weight: 500;
        line-height: 1.2;
    }

    /* Odkazy (telefon a email) */
    .mobile-sidebar-footer p a {
        color: #e2e8f0 !important;      
        text-decoration: none !important;
        font-size: 15px !important;

        transition: color 0.2s ease, transform 0.2s ease;
    }


    .mobile-sidebar-footer p a:hover {
        color: #c0392b !important;
        transition: all 0.3s ease;      
    }


    .mobile-sidebar-footer i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        font-size: 12px !important;
        margin-right: 10px;
        background: rgba(255, 255, 255, 0.08); 
        border-radius: 6px;              
        color: #94a3b8 !important;      
        
        transition: all 0.2s ease;
    }


    .mobile-sidebar-footer p:hover i {
        background: rgba(59, 130, 246, 0.2);
        color: #c0392b !important;
    }
    

   

    

    .menu-logo {
        font-size: 18px !important;
        font-weight: bold !important;
        color: #ffffff !important;
        letter-spacing: 1px !important;
    }

    /* Křížek na zavření v pravém rohu sidebaru */
    .close-menu {
        position: relative;
        width: 44px;
        height: 44px;
        border: none;
        background: transparent;
        cursor: pointer;
        flex-shrink: 0;
    }

    .close-menu span {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 26px;
        height: 3px;
        border-radius: 3px;
        background: white;
        transform-origin: center;
        transition:
            transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.2s ease;
    }

    .close-menu span:first-child {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .close-menu span:last-child {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    
    .close-menu:hover span:first-child {
        transform: translate(-50%, -50%) rotate(135deg);
        background-color: #e53935;
        
    }

    .close-menu:hover span:last-child {
        transform: translate(-50%, -50%) rotate(45deg);
        background-color: #e53935;
        
    }
       
    .container {
        padding: 0 15px;
    }
    
    /* Top bar */
    .top-bar {
        font-size: 12px;
    }
    
    .top-bar .container {
        justify-content: center;
        text-align: center;
    }
    
    /* Header */
    .header {
        padding: 12px 0;
    }
    
    .header .container {
        gap: 10px;
        justify-content: flex-start;
    }
    
    .logo {
        order: 1;
        font-size: 22px;
        flex: 0 0 auto;
    }
    
    .header-right {
        display: none !important;
    }

    
    
    #searchDropdown {
        max-height: 500px;
    }
    
    .search-product-item {
        padding: 10px 12px;
    }
    
    .search-product-icon {
        width: 45px;
        height: 45px;
    }
    .search-bar {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 100%;
        margin-top: 10px;
    }
    
    .cart-info {
        gap: 5px;
    }
    
    .cart-info img {
        width: 32px !important;
    }

    #navHeaderRight{
        display: flex !important;
        position: absolute !important;
        right: 15px !important;
        align-items: center !important;
        gap: 8px !important;
        z-index: 1004 !important;
        
         
    }

    
    
    #navHeaderRight .cart-btn {

        padding: 8px 12px;
        font-size: 11px;
        white-space: nowrap;
        transition: all 0.3s ease !important;
    }
    #navHeaderRight .cart-btn:hover {

        
        transform: translateY(-2px);
    }

    #navHeaderRight .cart-info{
        display: flex !important;
    }

    #navHeaderRight .user-icon-container{
        display: flex !important;
    }
    
    #navHeaderRight .user-icon,
    #navHeaderRight .login-user-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #navHeaderRight .user-dropdown-menu{
        right: 0 !important;
        top: 100% !important;
    }
    
    .user-dropdown-menu {
        right: 0;
        min-width: 200px;
    }
    
    
    /* Banner */
    .banner {
        padding: 40px 20px;
    }
    
    .banner h1 {
        font-size: 32px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .cta-btn,
    .header-cta-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    /* Form */
    .formular {
        padding: 40px 15px;
    }
    
    #formular {
        padding: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    /* Products */
    .produkt{
        padding:12px;
    }
    
    
    
    .product img {
        height: 140px;
    }
    
    
    /* Top products */
    
    .top-products-section {
        padding: 60px 15px;
    }
    
    /* Filters */
    .filters-container {
        padding: 12px;
        gap: 10px;
    }
    
    .filter-group {
        flex: 1 1 calc(50% - 5px);
    }
    
    .filter-group label {
        display: none; /* Skryj labely na mobilu */
    }
    
    .filter-group select,
    .filter-group input[type="number"] {
        flex: 1;
    }
    
   

    
    
    /* Info section */
    .info-section {
        padding: 40px 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Checkout */
    .checkout-main {
        padding: 30px 20px;
    }
    
    .order-summary {
        padding: 20px;
    }
    
    /* Modal */
    .modal-content {
        max-width: 90%;
        max-height: 80vh;
    }

    .cart-item {
        grid-template-columns: 60px 1fr 100px;
        gap: 10px;
        padding: 12px 16px;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    
    /* Product detail */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .detail-price-box {
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 40px 15px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Cookie banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    /* Toast */
    #toastContainer 
    {
        top: 85px;
        right: 15px;
        left: auto;
        max-width: calc(100% - 30px);
        gap: 8px;
    }

    .toast {
        width: 100%;
        min-width: auto;
        max-width: 380px;
        padding: 14px 16px;
        gap: 12px;
    }

    .toast-icon {
        font-size: 22px;
    }

    .toast-title {
        font-size: 13px;
    }

    .toast-message {
        font-size: 12px;
    }

    .toast-actions {
        flex-wrap: wrap;
    }

    .toast-btn {
        padding: 6px 12px;
        font-size: 11px;
        flex: 1;
        min-width: 100px;
    }
    
    /* Scroll button */
    .scroll-top-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .price{
        font-size: 16px;
    }

    .p-body h3{
        font-size: 13px;
        min-height: 32px;
    }
    
    .Upozorneni-modal-content {
        width: 92% !important;
        height: 85% !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    
    .Info-Upozorneni {
        width: 90%;
        padding-left: 15px;
        gap: 15px; 
    }

    
    .input-Upozorneni {
        width: 85%;
    }

    
    .btn-Upozorneni {
        width: 90%;
    }

    .upozorneni-close{
        font-size: 20px;
        top: 5px;
        left: 5px;
        
    }
    .h1-upoorneni{
        font-size: 20px;
    }

}



/* ========== MOBILE - 576px ========== */
@media (max-width: 576px) {

    

    .cart-item-remove{
        size: 30px;
    }
    .mobile-sidebar-footer {
        padding: 10px 14px !important; /* Kompaktnější odsazení na malé obrazovce */
    }

    .mobile-sidebar-footer p {
        margin: 6px 0 !important;
        font-size: 11px !important;   /* Zmenšení textu, aby se dlouhý e-mail nezanášel na 2 řádky */
    }

    .mobile-sidebar-footer i {
        width: 22px;
        height: 22px;
        font-size: 11px !important;
        margin-right: 6px;
        border-radius: 4px;
    }

    /*toast*/
    
    #toastContainer {
        top: 70px;
        right: 10px;
        left: auto;
        gap: 6px;
        max-width: calc(100% - 20px);
    }

    .toast {
        width: 100%;
        max-width: 340px;
        padding: 12px 14px;
        gap: 10px;
        border-radius: 6px;
    }

    .toast-icon {
        font-size: 20px;
    }

    .toast-title {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .toast-message {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .toast-actions {
        gap: 6px;
    }

    .toast-btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    .toast-close {
        font-size: 18px;
    }

    /* Container */

    #navHeaderRight{
        right: 12px !important;
        
        gap: 6px !important;
    }
    .nav .container{
        display: flex;
        align-items: center;
        position: relative;
    }
    .container {
        padding: 0 10px;
    }
    
    /* Logo */
    .logo {
        font-size: 20px;
    }
    
    /* Search */
    .search-bar input {
        padding: 10px 12px;
        font-size: 13px;
    }
    #searchDropdown {
        max-height: 400px;
    }
    
    .search-product-item {
        padding: 8px 10px;
    }
    
    .search-product-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .search-product-name {
        font-size: 13px;
    }
    
    .search-product-price {
        font-size: 12px;
    }
    
    .search-product-stock {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .search-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Cart */
    .cart-info img {
        width: 28px !important;
    }
    
    #navHeaderRight .cart-btn {
        padding: 6px 6px;
        font-size: 10px;
        
    }
    .btn-cart {
        padding: 11px;
        font-size: 13px;
    }
    
    .cart-count {
        padding: 2px 6px;
        font-size: 10px;
    }
    
    /* User icon */
    #navHeaderRight .user-icon,
    #navHeaderRight .login-user-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    
    /* Navigation */
    .hamburger {
        padding: 10px;
    }
    
    .hamburger span {
        width: 22px;
        height: 2.5px;
    }
    
    .nav-menu {
        left: -250px;
        width: 250px;
        
    }
    
    .nav-menu a {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    /* Banner */
    .banner h1 {
        font-size: 26px;
    }
    
    .banner p {
        font-size: 14px;
    }
    
    /* Section title */
    .section-title {
        font-size: 24px;
    }
    
    /* Form */
    #formular h3 {
        font-size: 18px;
    }
    
    #formular select {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .form-produkty {
        font-size: 14px;
        padding: 12px;
    }
    
    /* Products */
    
    
    .product img {
        height: 130px;
    }
    .product{
        padding: 12px !important;;
    }
    .p-body {
        padding: 12px;
    }
    
    .p-body h3 {
        font-size: 12px;
        min-height: 30px;
    }
    
    .price {
        font-size: 16px;
    }
    
    .price-no-dph {
        font-size: 12px;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    .qty-wrapper {
        width: 100%;
        margin-bottom: 10px;
    }
    .qty-btnMinus,
    .qty-btnPlus {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .qty-input {
        width: 45px;
        height: 36px;
        font-size: 15px;
    }

    .btn-cart{
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .btn-cart {
        padding: 11px;
        font-size: 13px;
    }
    
    /* Wishlist button */
    .btn-wishlist {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    /* Top products */
    
    
    /* Checkout */
    .checkout-header h2 {
        font-size: 22px;
    }
    
    .steps {
        gap: 10px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .checkout-section h3 {
        font-size: 16px;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn-submit {
        padding: 16px;
        font-size: 16px;
    }
    
    /* Order summary */
    .order-summary h3 {
        font-size: 18px;
    }
    
    .cart-item-name,
    .cart-item-price {
        font-size: 13px;
    }
    
    .summary-row {
        font-size: 14px;
    }
    
    .summary-row.total {
        font-size: 18px;
    }
    
    .trust-badges {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Footer */
    .footer-section h3 {
        font-size: 16px;
    }
    
    .footer-section li {
        font-size: 14px;
    }
    
    .footer-bottom {
        font-size: 12px;
    }

    .filters-container {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }
    
    .filter-group {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .filter-group label {
        font-size: 12px;
    }
    
    .filter-group select,
    .filter-group input {
        font-size: 13px;
        padding: 7px 10px;
    }

    .products-count {
        flex: 1 1 100%;
        text-align: center;
        margin-top: 8px;
    }
    .p-body h3 {
        font-size: 12px;
        min-height: 30px;
    }
}
.modal {
        align-items: flex-end;
    }

    .modal-content {
        max-width: 100%;
        width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 90vh;
    }

    .modal-content h2 {
        padding: 16px;
        font-size: 18px;
    }

    .cart-item {
        grid-template-columns: 50px 1fr 80px;
        gap: 8px;
        padding: 10px 12px;
    }

    

    .cart-item-name {
        font-size: 13px;
    }

    .cart-item-price {
        font-size: 11px;
    }

    

    .qty-btn,
    .qty-display{
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .modal-footer {
        padding: 16px;
    }

    .cta-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .cart-empty {
        padding: 40px 20px;
    }

    .cart-empty-icon {
        font-size: 48px;
    }

/* ========== SMALL MOBILE - 480px ========== */
@media (max-width: 480px) {
    /* Logo */
    .logo {
        font-size: 18px;
    }
    
    /* Navigation */
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-menu li a {
        text-align: center;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Banner */
    .banner {
        padding: 30px 15px;
    }
    
    .banner h1 {
        font-size: 22px;
    }
    
    .banner p {
        font-size: 13px;
    }
    
    /* Products */
    
    .product{
        padding: 10px;
    }
    
    .product img {
        height: 120px;
    }

    .p-body h3{
        font-size:12px ;
        min-height: 28px;
    }
    .product-grid {
            grid-template-columns: repeat(3, 1fr) !important;
            gap: 10px !important;
        }
    .price{
        font-size: 15px;
    }
    
    /* Top products */
    
    
    /* Info cards */
    .info-card {
        padding: 20px 15px;
    }
    
    .info-card h3 {
        font-size: 18px;
    }
    
    /* Product detail */
    .detail-header h2 {
        font-size: 22px;
    }
    
    .price-main {
        font-size: 28px;
    }
    
    /* Scroll button */
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
    .qty-wrapper {
        margin-bottom: 10px;
    }
    
    .qty-btn, .qty-btnPlus, .qty-btnMinus {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .btn-cart {
        padding: 10px;
        font-size: 12px;
    }
    
    #topProductsContainer { 
        grid-template-columns: repeat(2, 1fr);
         gap: 10px; 
    }
    
    
    .filters-container {
        flex-direction: column;
    }
    
    .filter-group {
        flex: 1 1 100%;
    }
}

/* ========== EXTRA SMALL - 400px ========== */
@media (max-width: 400px) {
    /* Logo */
    .logo {
        font-size: 16px;
    }
    
    /* Header right */
    .header-right {
        gap: 6px;
        transition: all 0.3s ease !important;
    }
    
    /* Cart */
    .cart-info img {
        display: none;
    }
    
    .cart-btn {
        padding: 7px 10px;
        font-size: 10px;
    }
    
    /* User icon */
    .user-icon,
    .login-user-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    /* Top products */
    #topProductsContainer {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}

/* ========== EXTRA EXTRA SMALL - 360px ========== */
@media (max-width: 360px) {
    /* Logo */
    .logo {
        font-size: 15px;
    }
    
    /* Search */
    .search-bar input {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .search-btn {
        padding: 8px 12px;
    }
    
    /* Cart */
    .cart-btn {
        font-size: 9px;
        padding: 6px 8px;
    }
    
    /* User icon */
    .user-icon,
    .login-user-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    /* Banner */
    .banner h1 {
        font-size: 20px;
    }
    
    /* Products */
    #topProductsContainer {
        grid-template-columns: 1fr  !important;
    }
}

/* ===== UTILITY & ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cart-count.bounce {
    animation: bounce 0.5s ease;
}

.cookie-banner {
    animation: slideUp 0.5s ease-out;
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .nav,
    .footer,
    .cookie-banner,
    .scroll-top-btn,
    #toastContainer {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .product {
        break-inside: avoid;
    }
}
/* ===== FINÁLNÍ OPRAVA GRIDU - VŽDY NA KONEC SOUBORU ===== */

/* Mobil (výchozí, do 576px) */
#products, #productGrid, #topProductsContainer {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    align-items: stretch;
    
}

@media (max-width: 576px){
    .badge-sale{
        font-size: 8px;
        padding: 4px 10px;
    }
}


/* Malý tablet (577px - 768px) */
@media (min-width: 577px) {
    #products, #productGrid, #topProductsContainer {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
        align-items: stretch;
    }

    
}

/* Od 768px výš */
@media (min-width: 768px) {
    #products, #productGrid, #topProductsContainer {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
    
}

/* Desktop malý (993px - 1200px) */
@media (min-width: 993px) {
    #products, #productGrid, #topProductsContainer {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
    }
}

/* Desktop velký (1201px+) */
@media (min-width: 1201px) {
    #products, #productGrid {
        grid-template-columns: repeat(5, 1fr) !important;
        justify-content: center;
        
    }
    #topProductsContainer {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 20px !important;
    }
}