/* Override Bootstrap grid for products */
#products-grid-area .item-card,
#product-listing .item-card,
.item-card-group-section .item-card {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
    /* Ensure consistent height */
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Bypass fixed 300px min-width from webshop to allow responsive columns */
    min-width: 0 !important;
}

/* Make pricing bigger and bold */
#products-grid-area .item-price,
#product-listing .item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 8px;
}

/* Ensure card contents are consistent */
#products-grid-area .card,
#product-listing .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Premium Expiring This Month Banner */
.expiring-banner {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #FF6B6B, #E17A6E);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(225, 122, 110, 0.35);
    z-index: 10;
    pointer-events: none;
    font-family: 'Outfit', 'Inter', sans-serif;
    transition: all 0.3s ease;
}

@media (max-width: 576px) {
    .expiring-banner {
        font-size: 0.65rem;
        padding: 4px 8px;
        top: 8px;
        left: 8px;
    }
}

#products-grid-area .card-body,
#product-listing .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Custom premium loading spinner for infinite scroll */
.yene-spinner {
    display: inline-block;
    width: 1.75rem;
    height: 1.75rem;
    vertical-align: middle;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: yene-spinner-border .75s linear infinite;
    color: #E17A6E; /* YeneHealth coral/primary color */
}

@keyframes yene-spinner-border {
    to { transform: rotate(360deg); }
}

.infinite-scroll-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 0;
}
