/* =============== ENHANCED PRODUCT CARDS (Jumia-style) =============== */

/* Badge livraison gratuite */
.delivery-badge {
    background: #f68b1e;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    display: inline-block;
    margin: 8px 0;
    text-transform: uppercase;
}

.delivery-badge.free {
    background: #28a745;
}

/* Product actions buttons container */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-buy-now {
    background: #ff6600;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85em;
}

.btn-buy-now:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.3);
}

.add-to-cart {
    background: #fff;
    color: #ff6600;
    border: 2px solid #ff6600;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85em;
}

.add-to-cart:hover {
    background: #ff6600;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.3);
}

/* Product description truncate */
.product-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    color: #666;
    font-size: 0.9em;
    margin: 10px 0;
    min-height: 4.5em;
}

/* Enhanced product card layout */
.product-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 1em;
    margin: 10px 0;
    color: #333;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card p strong {
    font-size: 1.2em;
    color: #ff6600;
}

/* Price and discount */
.product-price-section {
    margin: 10px 0;
}

.current-price {
    font-size: 1.3em;
    font-weight: bold;
    color: #ff6600;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-left: 8px;
}

.discount-badge {
    background: #ff6600;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75em;
    margin-left: 8px;
}

/* Delivery info section */
.delivery-info {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 0.85em;
}

.delivery-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 3px 0;
    color: #28a745;
}

.delivery-info-item.paid {
    color: #666;
}

/* Flash sale badge */
.flash-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75em;
    z-index: 2;
}

/* Stock indicator */
.stock-indicator {
    font-size: 0.8em;
    margin: 5px 0;
}

.stock-indicator.in-stock {
    color: #28a745;
}

.stock-indicator.low-stock {
    color: #ffc107;
}

.stock-indicator.out-of-stock {
    color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }
    
    .btn-buy-now,
    .add-to-cart {
        width: 100%;
    }
    
    .product-card img {
        height: 150px;
    }
}
