:root {
    /* Colors are dynamic via WordPress Customizer */
    --text-gray: #9ca3af;
    --text-dark: #0b3e27;
    --orange: #fd7e14;
    --radius: 12px;
}

.product-card {
    width: 280px;
    background: #f9fafb;
    border-radius: var(--radius);
    padding: 15px;
    position: relative;
    /* box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); */
    font-family: 'Inter', sans-serif;
    border: 1px solid #f3f4f6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--orange);
    color: white;
    padding: 8px 15px;
    font-size: 11px;
    font-weight: 700;
    border-top-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    z-index: 10;
}

/* Image Styling */
.product-img-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.product-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Product Details */
.card.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-green);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 50px;
    /* Fixed height for 2 lines */
}

.product-name a {
    text-decoration: none;
    color: inherit;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.unit-text {
    color: var(--text-gray);
    font-size: 13px;
}

.rating-mini {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #374151;
}

.rating-mini i {
    color: var(--orange);
}

/* Footer: Price & Add Button */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-group {
    display: flex;
    align-items: flex-end;
    gap: 0;
}

.product-card .price-group del {
    order: 2;
    color: #ccc !important;
    font-size: 15px;
    font-weight: 500;
}

ins {
    text-decoration: none !important;
}

.product-card .price-group ins bdi,
.product-card .price-group {
    font-size: 18px;
    font-weight: 700;
    color: #0b3e27;
}

.current-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-green);
}

.old-price {
    font-size: 16px;
    color: var(--text-gray);
    text-decoration: line-through;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between icon and text */
    background-color: var(--primary-green);
    /* Light mint green background */
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.add-to-cart-btn:hover {
    background-color: #fd7e14;
    /* Slightly darker mint on hover */
    transform: translateY(-1px);
    color: #ffffff;
}

.add-to-cart-btn i {
    font-size: 14px;
}

/* Link Wrapper */
.product-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Responsive */
@media (max-width: 600px) {
    .product-card {
        width: 100%;
    }

    .product-footer {
        flex-direction: column;
    }

    .product-footer .add-to-cart-btn {
        width: 100%;
        justify-content: center;
    }
}