/* ============================================================
   Obchod - obchod-bestsellers (extrahováno z obchod.php)
   ============================================================ */

    /* Bestsellers Products Styles */
    .bestsellers-products-wrapper {
        margin: 40px 0;
    }
    
    .bestsellers-title {
        text-align: center;
        font-size: 2rem;
        font-weight: 800;
        color: #1e293b;
        margin-bottom: 40px;
        position: relative;
        padding-bottom: 15px;
    }
    
    .bestsellers-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: linear-gradient(90deg, #FF6C00 0%, #00AEEF 100%);
        border-radius: 2px;
    }
    
    .bestsellers-products-grid {
        display: grid;
        gap: 30px;
        margin: 0 auto;
    }
    
    .bestsellers-products-grid.columns-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bestsellers-products-grid.columns-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .bestsellers-products-grid.columns-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .bestsellers-products-grid.columns-5 {
        grid-template-columns: repeat(5, 1fr);
    }
    
    /* Product Card */
    .bestseller-product-card {
        position: relative;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100%;
    }
    
    .bestseller-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 174, 239, 0.15);
    }
    
    .bestseller-product-link {
        display: flex;
        flex-direction: column;
        height: 100%;
        text-decoration: none;
        color: inherit;
    }
    
    /* Badges */
    .product-badge {
        position: absolute;
        top: 10px;
        z-index: 10;
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .product-badge.bestseller {
        left: 10px;
        background: #FFFF00;
        color: #000;
    }
    
    .product-badge.new {
        left: 10px;
        background: #FFFF00;
        color: #000;
    }
    
    .product-badge.sale {
        right: 10px;
        background: #FF6C00;
        color: white;
    }
    
    /* Product Image */
    .bestseller-product-image {
        position: relative;
        width: 100%;
        height: 250px;
        overflow: hidden;
        background: #f8f9fa;
    }
    
    .bestseller-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .bestseller-product-card:hover .bestseller-product-image img {
        transform: scale(1.1);
    }
    
    .product-image-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        color: #cbd5e1;
    }
    
    /* Quick Actions */
    .product-quick-actions {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .bestseller-product-card:hover .product-quick-actions {
        opacity: 1;
    }
    
    .quick-view-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: white;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }
    
    .quick-view-btn:hover {
        background: #00AEEF;
        transform: scale(1.1);
    }
    
    .quick-view-btn:hover svg {
        color: white;
    }
    
    /* Product Content */
    .bestseller-product-content {
        padding: 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .bestseller-product-title {
        font-size: 16px;
        font-weight: 600;
        color: #1e293b;
        margin: 0 0 8px;
        line-height: 1.4;
        transition: color 0.3s ease;
    }
    
    .bestseller-product-card:hover .bestseller-product-title {
        color: #00AEEF;
    }
    
    .bestseller-product-excerpt {
        font-size: 13px;
        color: #64748b;
        line-height: 1.5;
        margin: 0 0 12px;
    }
    
    /* Rating */
    .product-rating {
        display: flex;
        align-items: center;
        gap: 2px;
        margin-bottom: 12px;
    }
    
    .rating-count {
        font-size: 12px;
        color: #94a3b8;
        margin-left: 5px;
    }
    
    /* Price */
    .bestseller-product-price {
        margin: auto 0 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .price-regular {
        font-size: 20px;
        font-weight: 700;
        color: #00AEEF;
    }
    
    .price-regular.crossed {
        font-size: 16px;
        color: #94a3b8;
        text-decoration: line-through;
        font-weight: 400;
    }
    
    .price-sale {
        font-size: 20px;
        font-weight: 700;
        color: #FF6C00;
    }
    
    /* Actions */
    .bestseller-product-actions {
        margin-top: auto;
    }
    
    .add-to-cart-btn {
        width: 100%;
        padding: 12px 20px;
        background: linear-gradient(135deg, #00AEEF 0%, #00B4D8 100%);
        color: white;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.3s ease;
    }
    
    .add-to-cart-btn:hover {
        background: linear-gradient(135deg, #00B4D8 0%, #00AEEF 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 174, 239, 0.3);
    }
    
    .out-of-stock-btn {
        width: 100%;
        padding: 12px 20px;
        background: #e2e8f0;
        color: #94a3b8;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 14px;
        cursor: not-allowed;
    }
    
    /* Responsive Design */
    @media (max-width: 1200px) {
        .bestsellers-products-grid.columns-5 {
            grid-template-columns: repeat(4, 1fr);
        }
    }
    
    @media (max-width: 992px) {
        .bestsellers-products-grid.columns-4,
        .bestsellers-products-grid.columns-5 {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .bestseller-product-image {
            height: 220px;
        }
    }
    
    @media (max-width: 768px) {
        .bestsellers-products-grid.columns-3,
        .bestsellers-products-grid.columns-4,
        .bestsellers-products-grid.columns-5 {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .bestsellers-products-grid {
            gap: 20px;
        }
        
        .bestsellers-title {
            font-size: 1.5rem;
        }
    }
    
    @media (max-width: 480px) {
        .bestsellers-products-grid.columns-2,
        .bestsellers-products-grid.columns-3,
        .bestsellers-products-grid.columns-4,
        .bestsellers-products-grid.columns-5 {
            grid-template-columns: 1fr;
        }
        
        .bestseller-product-image {
            height: 200px;
        }
    }
    
    /* Loading state pro AJAX */
    .add-to-cart-btn.loading {
        opacity: 0.7;
        cursor: wait;
    }
    
    .add-to-cart-btn.loading span {
        display: none;
    }
    
    .add-to-cart-btn.loading::after {
        content: '';
        width: 16px;
        height: 16px;
        border: 2px solid white;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }
    
    /* Modal košíku */
    .cart-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999999;
        animation: fadeIn 0.3s ease;
    }
    
    .cart-modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cart-modal-content {
        background: white;
        border-radius: 16px;
        padding: 40px;
        width: 90%;
        max-width: 500px;
        position: relative;
        animation: slideUp 0.3s ease;
        text-align: center;
    }
    
    .cart-modal-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 20px;
        background: #E8F5E9;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: scaleIn 0.5s ease;
    }
    
    @keyframes scaleIn {
        0% {
            transform: scale(0);
            opacity: 0;
        }
        50% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
    
    .cart-modal-title {
        font-size: 24px;
        font-weight: 700;
        color: #1e293b;
        margin: 0 0 25px;
    }
    
    .cart-modal-product-info {
        display: flex;
        gap: 20px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 12px;
        margin-bottom: 30px;
        text-align: left;
    }
    
    .cart-modal-product-image {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .cart-modal-product-details {
        flex: 1;
    }
    
    .cart-modal-product-name {
        font-size: 16px;
        font-weight: 600;
        color: #1e293b;
        margin: 0 0 8px;
    }
    
    .cart-modal-product-price {
        font-size: 18px;
        font-weight: 700;
        color: #00AEEF;
        margin-bottom: 5px;
    }
    
    .cart-modal-product-quantity {
        font-size: 14px;
        color: #64748b;
    }
    
    .cart-modal-actions {
        display: flex;
        gap: 15px;
        flex-direction: column;
    }
    
    .cart-modal-btn {
        padding: 14px 24px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-decoration: none;
        border: none;
    }
    
    .cart-modal-btn.primary {
        background: linear-gradient(135deg, #00AEEF 0%, #00B4D8 100%);
        color: white;
    }
    
    .cart-modal-btn.primary:hover {
        background: linear-gradient(135deg, #00B4D8 0%, #00AEEF 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 174, 239, 0.3);
    }
    
    .cart-modal-btn.secondary {
        background: white;
        color: #1e293b;
        border: 2px solid #e2e8f0;
    }
    
    .cart-modal-btn.secondary:hover {
        background: #f8f9fa;
        border-color: #00AEEF;
        color: #00AEEF;
    }
    
    .cart-modal-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        border: none;
        background: #f8f9fa;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .cart-modal-close:hover {
        background: #FF6C00;
        transform: rotate(90deg);
    }
    
    .cart-modal-close:hover svg {
        color: white;
    }
    
    @media (max-width: 480px) {
        .cart-modal-content {
            padding: 30px 20px;
        }
        
        .cart-modal-product-info {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        
        .cart-modal-actions {
            gap: 10px;
        }
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
