/* Product Card Styles */
.product-card {
    border: none;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    width: 200px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

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

.product-card .card-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.2;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-image-container {
    width: 100%;
    height: 140px;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ee5253);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(238, 82, 83, 0.3);
    z-index: 1;
    animation: pulse-light 2s infinite;
}

@keyframes pulse-light {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Price Container */
.price-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00796b;
    display: flex;
    align-items: baseline;
}

.product-price .currency {
    color: #00796b;
}

.product-price .unit {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 2px;
}

/* Stock Status */
.stock-status {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    margin-left: auto;
}

/* Price Container */
.price-info-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.price-info-inline .current-price {
    color: #00796b;
    font-weight: 600;
    white-space: nowrap;
}

.price-info-inline .current-price .unit {
    font-size: 0.75em;
    color: #00796b;
    font-weight: 500;
}

.price-info-inline .original-price {
    color: #666;
    text-decoration: line-through;
    font-size: 0.9rem;
    white-space: nowrap;
}

.price-info-inline .stock-status {
    margin: 0;
    padding: 2px 8px;
    white-space: nowrap;
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.delivery-info i {
    color: #00796b;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-card {
        width: 160px;
    }
    
    .product-card .card-title {
        font-size: 0.85rem;
        height: 2.4em;
    }

    .product-image-container {
        height: 120px;
    }
    
    .price-info-inline {
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .price-info-inline .current-price,
    .price-info-inline .original-price {
        font-size: 0.8rem;
    }
    
    .price-info-inline .stock-status {
        padding: 2px 4px;
        font-size: 0.75rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .original-price {
        font-size: 0.8rem;
    }
    
    .discount-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .delivery-info {
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .delivery-info i {
        font-size: 0.8rem;
    }
} 