/* One product card for search (js/app.js, js/ad-slot.js: .product-card) and /ofertas
   (routers/seo_templates.py deal_card: .seo-deal). Two templates, one compact look: each rule names
   the same part in both. Only Ofertas adds lines (its badges and reference); the corner stays free
   for the heart. */
.product-card, .seo-deal {
    display: block; margin: 0 0 6px; padding: 8px 10px 4px; cursor: default;
    background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
    box-shadow: none;
}
.product-card:hover, .seo-deal:hover { border-color: var(--border-strong); box-shadow: none; transform: none; }
.product-card-main, .seo-deal-link { display: flex; gap: 10px; align-items: flex-start; }
.product-card .product-image, .seo-deal-img {
    flex: none; width: 48px; height: 48px; margin: 0; object-fit: contain;
    background: #fff; border-radius: 6px;
}
.product-card .product-details, .seo-deal-body { display: block; flex: 1; min-width: 0; }
.product-card .product-name, .seo-deal-name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin: 0; font-size: 0.9rem; font-weight: 600; line-height: 1.25; color: var(--text-strong); text-align: left;
}
.product-card .product-price-center, .seo-deal-price { display: block; margin-top: 2px; line-height: 1.3; text-align: left; }
.product-card .product-price { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }
.product-price-amount, .seo-deal-amount { font-size: 1rem; font-weight: 700; color: var(--success-text); }
/* green-500 on a white card is below AA; #047857 is 5.5:1 (as css/seo.css's light --seo-price) */
[data-theme="light"] :is(.product-price-amount, .seo-deal-amount) { color: #047857; }
.product-card .product-price-chain, .seo-deal-chain { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }
/* 📈 · Ver Precios · + : one short row under the text on phones, beside it on wider screens */
.product-card-more, .seo-deal-more {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px;
    margin: 0; padding: 2px 0; font-size: 0.8rem;
}
:is(.product-card-more, .seo-deal-more) .price-history-btn { margin: 0; min-height: 28px; }
:is(.product-card-more, .seo-deal-more) .ver-mas-btn { min-height: 28px; margin: 0; }
:is(.product-card-more, .seo-deal-more) .product-actions { margin: 0; padding: 2px; }

@media (min-width: 560px) {
    .product-card, .seo-deal { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; padding-bottom: 8px; }
    :is(.product-card-main, .seo-deal-link) { flex: 1 1 0; min-width: 0; }
    :is(.product-card-more, .seo-deal-more) { flex: none; }
    /* Ver Precios' list, the sponsored label: a line of their own */
    :is(.product-card, .seo-deal) > :not(.product-card-main, .seo-deal-link, .product-card-more, .seo-deal-more) { flex-basis: 100%; }
    .product-card .product-image, .seo-deal-img { width: 56px; height: 56px; }
}
