/* ============================================
   NAKUPOVAT.CSS - Stránka pro nakupování
   Používá stejné třídy jako kategorie.css
   ============================================ */

/* KONTEJNER */
.cat-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* BREADCRUMB */
.cat-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
}

.cat-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.cat-breadcrumb a:hover {
    color: #FF6B00;
}

.cat-breadcrumb svg {
    width: 16px;
    height: 16px;
    stroke: #999;
}

/* FILTRY - DESKTOP */
.cat-filters {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.cat-filters-title {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.cat-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-filter-link {
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cat-filter-link:hover {
    border-color: #FF6B00;
    color: #FF6B00;
}

.cat-filter-link.active {
    background: #FF6B00;
    border-color: #FF6B00;
    color: #fff;
}

.cat-filter-count {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 12px;
}

/* MOBILNÍ FILTRY */
.cat-filters-mobile {
    display: none;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
}

.cat-filters-mobile-header {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.cat-filter-dropdown {
    position: relative;
}

.cat-filter-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.cat-filter-selected:hover {
    border-color: #FF6B00;
}

.cat-filter-selected.active {
    border-color: #FF6B00;
    background: #fff;
}

.cat-filter-selected-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-filter-selected-value {
    color: #FF6B00;
    font-weight: 700;
}

.cat-filter-arrow {
    width: 20px;
    height: 20px;
    stroke: #666;
    stroke-width: 2;
    transition: transform 0.3s;
}

.cat-filter-selected.active .cat-filter-arrow {
    transform: rotate(180deg);
}

.cat-filter-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.cat-filter-dropdown-menu.show {
    max-height: 300px;
    opacity: 1;
    overflow-y: auto;
}

.cat-filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    font-weight: 600;
}

.cat-filter-option:last-child {
    border-bottom: none;
}

.cat-filter-option:hover {
    background: #f9f9f9;
    color: #FF6B00;
}

.cat-filter-option.active {
    background: #fff3e6;
    color: #FF6B00;
}

.cat-filter-option.active::before {
    content: '✓';
    margin-right: 8px;
    color: #FF6B00;
    font-weight: 700;
}

.cat-filter-option-count {
    padding: 2px 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 12px;
}

/* PRODUKTY - GRID */
.cat-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.cat-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.cat-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* OBRÁZEK PRODUKTU */
.cat-product-image {
    width: 100%;
    height: 220px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    padding: 10px;
}

.cat-product-image:hover {
    opacity: 0.9;
}

.cat-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cat-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    background: #4CAF50;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.cat-product-badge.na-poptavku {
    background: #FF9800;
}

.cat-product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* NÁZEV PRODUKTU */
.cat-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
    cursor: pointer;
}

.cat-product-name:hover {
    color: #FF6B00;
}

.cat-product-dimensions {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
    flex: 1;
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 6px;
}

/* CENA */
.cat-product-price {
    margin-bottom: 8px;
}

.cat-product-price-czk {
    font-size: 22px;
    font-weight: 700;
    color: #FF6B00;
    line-height: 1.2;
}

.cat-product-price-label {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    margin-left: 5px;
}

.cat-product-price-eur {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* TLAČÍTKA */
.cat-product-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: stretch;
}

.cat-btn-detail {
    padding: 12px 15px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    background: #f0f0f0;
    color: #333;
    flex: 0 0 80px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    height: 44px;
    box-sizing: border-box;
}

.cat-btn-detail:hover {
    background: #e0e0e0;
}

.cat-cart-wrapper {
    flex: 1;
}

.cat-btn-cart {
    width: 100%;
    padding: 12px 15px;
    background: #FF6B00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    height: 44px;
    box-sizing: border-box;
}

.cat-btn-cart:hover {
    background: #e55a00;
    transform: translateY(-2px);
}

.cat-btn-cart.hidden {
    display: none;
}

/* KONTROLY MNOŽSTVÍ */
.cat-quantity-controls {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    overflow: hidden;
    height: 44px;
    box-sizing: border-box;
}

.cat-quantity-controls.hidden {
    display: none;
}

.cat-qty-btn {
    width: 40px;
    height: 100%;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.cat-qty-btn:hover {
    background: #f5f5f5;
    color: #FF6B00;
}

.cat-qty-value {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    background: #f9fff9;
    padding: 0 10px;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    min-width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

/* Zvýraznění při focusu */
.cat-qty-value:focus {
    background: #fffbf0;
}

/* Odstranit šipky u number inputu */
.cat-qty-value::-webkit-inner-spin-button,
.cat-qty-value::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cat-qty-value[type=number] {
    -moz-appearance: textfield;
}

/* MODAL */
.cat-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.cat-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-modal {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
    text-align: center;
}

.cat-modal-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 8px 25px rgba(76,175,80,0.3);
}

.cat-modal-success-icon svg {
    width: 40px;
    height: 40px;
    stroke: #fff;
    stroke-width: 3;
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% {
        stroke-dasharray: 0 100;
    }
    100% {
        stroke-dasharray: 100 0;
    }
}

.cat-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.cat-modal-product-name {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.4;
}

.cat-modal-buttons {
    display: flex;
    gap: 12px;
}

.cat-modal-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cat-modal-btn-continue {
    background: #f0f0f0;
    color: #333;
}

.cat-modal-btn-continue:hover {
    background: #e0e0e0;
}

.cat-modal-btn-checkout {
    background: linear-gradient(135deg, #FF6B00 0%, #ff8533 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255,107,0,0.3);
}

.cat-modal-btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,107,0,0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* PRÁZDNÝ STAV */
.cat-empty {
    text-align: center;
    padding: 60px 20px;
}

.cat-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-empty-icon svg {
    width: 40px;
    height: 40px;
    stroke: #ccc;
}

.cat-empty-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.cat-empty-text {
    color: #666;
    margin-bottom: 30px;
}

.cat-btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: #FF6B00;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.cat-btn-back:hover {
    background: #e55a00;
}

/* STRÁNKOVÁNÍ */
.cat-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cat-page-btn {
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cat-page-btn:hover {
    border-color: #FF6B00;
    color: #FF6B00;
}

.cat-page-numbers {
    display: flex;
    gap: 8px;
}

.cat-page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.cat-page-num:hover {
    border-color: #FF6B00;
    color: #FF6B00;
}

.cat-page-num.active {
    background: #FF6B00;
    border-color: #FF6B00;
    color: #fff;
}

.cat-page-dots {
    display: flex;
    align-items: center;
    padding: 0 5px;
    color: #999;
}

/* MEDIA QUERIES - TABLET */
@media (max-width: 1024px) {
    .cat-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* MEDIA QUERIES - MOBIL */
@media (max-width: 768px) {
    .cat-container {
        padding: 20px 15px;
    }
    
    /* Skrýt desktopové filtry */
    .cat-filters {
        display: none !important;
    }
    
    /* Zobrazit mobilní filtry */
    .cat-filters-mobile {
        display: block;
    }
    
    .cat-products {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cat-product-image {
        height: 200px;
    }
    
    .cat-product-content {
        padding: 15px;
    }
    
    .cat-product-name {
        font-size: 15px;
    }
    
    .cat-product-price-czk {
        font-size: 20px;
    }
    
    .cat-modal {
        padding: 25px 20px;
    }
    
    .cat-modal-buttons {
        flex-direction: column;
    }
    
    .cat-pagination {
        gap: 8px;
    }
    
    .cat-page-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .cat-page-num {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cat-breadcrumb {
        font-size: 13px;
    }
    
    .cat-filter-link {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .cat-product-price-czk {
        font-size: 18px;
    }
    
    .cat-page-numbers {
        gap: 6px;
    }
}