/* ========================================
   RESPONSIVE PRODUCT CARDS - ALL DEVICES
   Tablet: 5 per row | Mobile: 2 per row
   ======================================== */

/* Tablet Product Cards - 5 per row (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-container {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 12px !important;
        padding: 15px !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .product-card {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        border: 1px solid #e8e8e8 !important;
        border-radius: 12px !important;
        overflow: visible !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
        height: auto !important;
        min-height: 280px !important;
    }
    
    .product-card:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
    }
    
    .product-card img {
        width: 100% !important;
        height: 140px !important;
        object-fit: contain !important;
        padding: 12px !important;
        background: #fafafa !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .product-card .product-title {
        padding: 10px 12px 8px 12px !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        color: #2c3e50 !important;
        overflow: hidden !important;
        line-height: 1.35 !important;
        height: auto !important;
        min-height: 34px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        text-align: left !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .product-card .price-section {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 12px !important;
        position: relative !important;
        z-index: 1 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .product-card .discounted-price {
        font-size: 14.5px !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .product-card .original-price {
        font-size: 11px !important;
        color: #95a5a6 !important;
        text-decoration: line-through !important;
        font-weight: 500 !important;
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .product-card .discount-percent {
        font-size: 9px !important;
        font-weight: 600 !important;
        color: #fff !important;
        background: #28a745 !important;
        padding: 2px 5px !important;
        border-radius: 3px !important;
        white-space: nowrap !important;
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .product-card .add-button,
    .product-card .go-to-cart-button {
        margin: 8px 12px 12px 12px !important;
        margin-top: auto !important;
        padding: 9px 14px !important;
        border: none !important;
        border-radius: 8px !important;
        background: linear-gradient(135deg, #28a745 0%, #20a03a 100%) !important;
        color: #fff !important;
        text-align: center !important;
        cursor: pointer !important;
        font-weight: 600 !important;
        font-size: 11.5px !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
        min-height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 1 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .product-card .add-button:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 12px rgba(40, 167, 69, 0.4) !important;
        background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
    }

    .product-card .go-to-cart-button:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 12px rgba(139, 195, 74, 0.4) !important;
    }

    .product-card .go-to-cart-button {
        background: linear-gradient(135deg, #8BC34A 0%, #7CB342 100%) !important;
        box-shadow: 0 3px 8px rgba(139, 195, 74, 0.3) !important;
    }

    .product-card .go-to-cart-button:hover {
        background: linear-gradient(135deg, #7CB342 0%, #689F38 100%) !important;
        box-shadow: 0 5px 12px rgba(139, 195, 74, 0.4) !important;
    }
}

/* Mobile Product Cards - 2 per row (up to 767px) */
@media (max-width: 767px) {
    .product-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 8px !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .slider-arrow {
        display: none !important;
    }
    
    .product-card {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        border: 1px solid #e8e8e8 !important;
        border-radius: 10px !important;
        overflow: visible !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
        transition: box-shadow 0.2s ease !important;
        min-width: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 260px !important;
    }
    
    .product-card:active {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
    }
    
    .product-card img {
        width: 100% !important;
        height: 130px !important;
        object-fit: contain !important;
        padding: 10px !important;
        background: #fafafa !important;
        border-radius: 10px 10px 0 0 !important;
    }

    .product-card .product-title {
        padding: 8px 10px 6px 10px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #2c3e50 !important;
        overflow: hidden !important;
        line-height: 1.35 !important;
        height: auto !important;
        min-height: 30px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        text-align: left !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .product-card .price-section {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 5px !important;
        padding: 4px 10px !important;
        position: relative !important;
        z-index: 1 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .product-card .discounted-price {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .product-card .original-price {
        font-size: 10px !important;
        color: #95a5a6 !important;
        text-decoration: line-through !important;
        font-weight: 500 !important;
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .product-card .discount-percent {
        font-size: 9px !important;
        font-weight: 600 !important;
        color: #fff !important;
        background: #28a745 !important;
        padding: 2px 4px !important;
        border-radius: 3px !important;
        white-space: nowrap !important;
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .product-card .add-button,
    .product-card .go-to-cart-button {
        margin: 6px 10px 10px 10px !important;
        margin-top: auto !important;
        padding: 8px 12px !important;
        border: none !important;
        border-radius: 8px !important;
        background: linear-gradient(135deg, #28a745 0%, #20a03a 100%) !important;
        color: #fff !important;
        text-align: center !important;
        cursor: pointer !important;
        font-weight: 600 !important;
        font-size: 10px !important;
        transition: all 0.2s ease-in-out !important;
        box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
        min-height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 1 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .product-card .add-button span {
        margin-left: 3px !important;
    }

    .product-card .add-button:active {
        transform: scale(0.97) !important;
        box-shadow: 0 1px 3px rgba(40, 167, 69, 0.4) !important;
        background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
    }

    .product-card .go-to-cart-button:active {
        transform: scale(0.97) !important;
        box-shadow: 0 1px 3px rgba(139, 195, 74, 0.4) !important;
    }

    .product-card .go-to-cart-button {
        background: linear-gradient(135deg, #8BC34A 0%, #7CB342 100%) !important;
        box-shadow: 0 2px 6px rgba(139, 195, 74, 0.3) !important;
    }

    .product-card .go-to-cart-button:active {
        background: linear-gradient(135deg, #7CB342 0%, #689F38 100%) !important;
        box-shadow: 0 1px 3px rgba(139, 195, 74, 0.4) !important;
    }
}
