
/* Keep prices and the two purchase actions together on one line. */
.product-card .product-purchase-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.product-card .product-purchase-row .product-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    white-space: nowrap;
}

.product-card .product-purchase-row .price-old {
    margin: 0;
    font-size: .78rem;
}

.product-card .product-quick-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    margin: 0;
}

.product-card .product-quick-actions form {
    margin: 0;
}

.product-card .quick-action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 9px;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.product-card .quick-action-cart {
    background: #fff;
    color: var(--text);
}

.product-card .quick-action-cart:hover:not(:disabled) {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -8px rgba(79,70,229,.55);
}

.product-card .quick-action-buy {
    background: linear-gradient(135deg, var(--brand), #7c3aed);
    color: #fff;
    border-color: transparent;
}

.product-card .quick-action-buy:hover:not(:disabled) {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -8px rgba(79,70,229,.75);
}

.product-card .quick-action-btn:focus-visible {
    outline: 3px solid rgba(79,70,229,.22);
    outline-offset: 2px;
}

.product-card .quick-action-btn:disabled {
    opacity: .38;
    cursor: not-allowed;
}

/* Give the complete row enough room instead of wrapping prices or shrinking icons. */
@media (max-width: 575.98px) {
    .site-main .row > [class*="col-"]:has(> .product-card) { width: 100%; }
    .product-card .product-img-wrap { aspect-ratio: auto; height: 240px; }
    .product-card .product-img-wrap img { object-fit: contain; }
    .product-card .quick-action-btn { width: 40px; height: 40px; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .site-main .row > [class*="col-"]:has(> .product-card) { width: 50%; }
    .product-card .product-purchase-row .product-price { font-size: .95rem; }
    .product-card .quick-action-btn { width: 34px; height: 34px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-main .row > [class*="col-"]:has(> .product-card) { width: 33.333333%; }
}
