/*
==================================================
06-product-card.css
Reusable product card styles
==================================================
*/

.product-grid {
    grid-template-columns: repeat(3, 1fr);
}

.product-card {
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(67, 45, 25, 0.12);
}

.product-image-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
    background-color: #f7efe3;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.08);
}

.discount-badge,
.availability-badge {
    position: absolute;
    top: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.discount-badge {
    left: 14px;
    background-color: #c99a3d;
    color: #24211f;
}

.availability-badge {
    right: 14px;
    background-color: rgba(255, 250, 243, 0.92);
    color: #5b351d;
}

.product-content {
    padding: 18px;
}

.product-content h3 {
    font-size: 19px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.product-tags span,
.color-pill {
    padding: 5px 9px;
    border-radius: 999px;
    background-color: #f7efe3;
    color: #8a5a35;
    font-size: 12px;
    font-weight: 800;
}

.product-rating {
    color: #b47a14;
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 9px;
}

.price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 9px;
    margin: 12px 0;
}

.current-price {
    color: #5b351d;
    font-size: 21px;
    font-weight: 900;
}

.old-price {
    color: #9a8d80;
    text-decoration: line-through;
    font-size: 14px;
}

.product-actions .primary-button,
.product-actions .secondary-button {
    flex: 1;
    min-width: 130px;
    padding: 10px 12px;
    font-size: 14px;
}
