/* Přepsání Tailwind CSS pro h3 */
    .h3,
    h3 {
        padding-bottom: 0 !important;
    }

    /* Product Item Specific Styles */
    .product-item {
        background: #ffffff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        border: 1px solid rgba(226, 232, 240, 0.5);
        list-style: none;
        margin: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .product-item:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-color: #33d5f3;
    }



    /* Product Image Container */
    .product-image-container {
        position: relative;
        height: 220px;
        background: #fafbfc;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .product-image-link {
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
    }

    .product-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        max-width: none !important;
        max-height: none !important;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .product-item:hover .product-image,
    .product-item:hover .attachment-woocommerce_thumbnail,
    .product-item:hover .size-woocommerce_thumbnail,
    .product-item:hover img {
        transform: scale(1.05);
    }

    .product-image-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f1f5f9;
    }

    /* Override WooCommerce thumbnail styles */
    .attachment-woocommerce_thumbnail,
    .size-woocommerce_thumbnail,
    .attachment-medium,
    .size-medium {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        max-width: none !important;
        max-height: none !important;
    }

    /* Hide duplicate images from WooCommerce hooks */
    .product-image-container .woocommerce-loop-product__link img:not(.product-image),
    .product-image-container a:not(.product-image-link) img {
        display: none !important;
    }

    /* Product Labels Grid */
    .product-labels-grid {
        position: absolute;
        top: 1rem;
        left: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        z-index: 10;
    }

    .product-label {
        padding: 0.25rem 0.75rem;
        border-radius: 10px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: inline-block;
        white-space: nowrap;
        width: auto !important;
        min-width: fit-content !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        box-sizing: border-box !important;
    }

    /* Zajistit flexibilní šířku pro všechny štítky */
    .product-labels .product-label,
    .product-labels-grid .product-label {
        width: auto !important;
        min-width: fit-content !important;
        max-width: none !important;
        flex: 0 0 auto !important;
    }

    /* Default štítky */
    .product-label.top {
        background: #fce7f3;
        color: #be185d;
    }

    .product-label.sale {
        background: #fef3c7;
        color: #d97706;
    }

    .product-label.new {
        background: #dcfce7;
        color: #059669;
    }

    /* Dynamické štítky produktů */
    .product-label.top-produkt {
        background: #fce7f3;
        color: #be185d;
    }

    .product-label.novinka {
        background: #dcfce7;
        color: #059669;
    }

    .product-label.akce {
        background: #fef3c7;
        color: #d97706;
    }

    .product-label.bestseller {
        background: #fef3c7;
        color: #d97706;
    }

    .product-label.doporučujeme {
        background: #dbeafe;
        color: #1d4ed8;
    }



    /* Sale Badge */
    .onsale {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        color: #ffffff;
        padding: 0.75rem;
        border-radius: 25%;
        font-size: 0.8rem;
        font-weight: 600;
        text-align: center;
        z-index: 10;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
        min-width: 60px;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
    }

    /* Product Info */
    .product-info {
        padding: 1.25rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-title {
        font-family: 'Nippo', sans-serif;
        font-size: 1.1rem;
        font-weight: 600;
        color: #0f172a;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        transition: color 0.3s ease;
    }

    .product-title a {
        color: inherit;
        text-decoration: none;
    }

    .product-title a::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .product-item:hover .product-title {
        color: #ebc039;
    }

    .product-price {
        font-family: 'Nippo', sans-serif;
        font-size: 1.2rem;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .product-price .amount {
        background: linear-gradient(135deg, #33d5f3 0%, #2bc4e0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .product-price del {
        color: #94a3b8;
        font-size: 1rem;
        font-weight: 400;
    }

    .product-price ins {
        text-decoration: none;
    }

    .price-per-unit {
        color: #64748b;
        font-size: 1rem;
        font-weight: 400;
    }

    .product-availability-grid {
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 0.5rem;
    }

    .product-availability-grid.in-stock {
        color: #059669;
    }

    .product-availability-grid.out-of-stock {
        color: #dc2626;
    }

    .price-without-vat-grid {
        font-size: 0.8rem;
        color: #64748b;
        margin-bottom: 1rem;
    }

    /* Add to Cart Container */
    .add-to-cart-container {
        padding: 0 1.25rem 1.25rem 1.25rem;
        margin-top: auto;
        position: relative;
        z-index: 2;
    }

    .quantity-selector {
        display: flex;
        align-items: center;
        border-radius: 6px;
        overflow: hidden;
        max-width: 120px;
        background: #ffffff;
        border: 2px solid #e2e8f0;
        margin-bottom: 1rem;
    }

    .quantity-btn {
        width: 40px;
        height: 40px;
        border: none;
        background: #f8fafc;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1.2rem;
        font-weight: 600;
        color: #64748b;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .quantity-btn:hover {
        background: linear-gradient(135deg, #33d5f3 0%, #2bc4e0 100%);
        color: #ffffff;
    }

    .quantity-input {
        flex: 1;
        text-align: center;
        border: none !important;
        padding: 0.5rem;
        font-size: 1rem;
        font-weight: 600;
        background: #ffffff;
        color: #0f172a;
        margin: 0 !important;
        min-width: 40px;
    }

    .add-to-cart-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        color: #ffffff;
        border: none;
        border-radius: 6px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: relative;
        overflow: hidden;
    }

    .add-to-cart-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .add-to-cart-btn:hover::before {
        left: 100%;
    }

    .add-to-cart-btn:hover {
        background: linear-gradient(135deg, #33d5f3 0%, #2bc4e0 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(51, 213, 243, 0.3);
    }

    .detail-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        background: linear-gradient(135deg, #33d5f3 0%, #2bc4e0 100%);
        color: #ffffff;
        border: none;
        border-radius: 6px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-decoration: none;
    }

    .detail-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(51, 213, 243, 0.3);
        color: #ffffff;
    }

    .cart-icon {
        width: 18px;
        height: 18px;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .product-image-container {
            height: 180px;
        }

        .product-title {
            font-size: 1.2rem;
        }

        .product-price {
            font-size: 1.3rem;
        }

        .product-labels-grid {
            top: 0.5rem;
            left: 0.5rem;
            gap: 0.25rem;
        }

        .product-label {
            padding: 0.2rem 0.5rem;
            font-size: 0.7rem;
        }

        .onsale {
            top: 0.5rem;
            right: 0.5rem;
            min-width: 50px;
            min-height: 50px;
            font-size: 0.7rem;
            padding: 0.5rem;
        }
    }

    @media (max-width: 480px) {
        .product-image-container {
            height: 200px;
        }

        .product-title {
            font-size: 1.1rem;
        }

        .product-price {
            font-size: 1.2rem;
        }

        .add-to-cart-btn,
        .detail-btn {
            padding: 0.875rem 1.25rem;
            font-size: 0.9rem;
        }

        .quantity-selector {
            max-width: 100px;
        }

        .quantity-btn {
            width: 35px;
            height: 35px;
            font-size: 1rem;
        }
    }

    /* Loading Animation */
    .add-to-cart-btn.loading {
        opacity: 0.7;
        pointer-events: none;
    }

    .add-to-cart-btn.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid #33d5f3;
        border-top: 2px solid transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }