/* Product Card Styles - Reusable Globally */
.product-card {
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Product Image */
.product-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.product-badge.sale {
    background-color: #dc3545;
}

.product-badge.new {
    background-color: #28a745;
}

.product-badge.best-seller {
    background-color: var(--primary);
}

/* Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card:hover .product-overlay {
    opacity: 1;
    visibility: visible;
}

.btn-view {
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Product Info */
.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.7rem;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.product-category:hover {
    color: var(--primary);
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.3;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title:hover {
    color: var(--primary);
}

/* Availability */
.product-availability {
    margin: 5px 0;
}

.in-stock {
    color: #28a745;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.out-of-stock {
    color: #dc3545;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Price Styling */
.product-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.original-price {
    font-size: 0.8rem;
    color: #6c757d;
    text-decoration: line-through;
}

.discount-badge {
    background: #dc3545;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.btn-add-cart {
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-add-cart:hover {
    /* background-color: var(--primary-dark); */
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    color: white;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .product-info {
        padding: 12px;
    }
    
    .current-price {
        font-size: 1rem;
    }
    
    .btn-add-cart, .btn-whatsapp {
        padding: 8px 10px;
        font-size: 0.7rem;
    }
    
    .product-title {
        font-size: 0.8rem;
    }
}