/* Bloominds — Počítadlo kusů: pruh na kartě ve výpisu.
 * Pruh přes celou spodní hranu fotky (plugin Panely: .card > .photo je position:relative, overflow:hidden).
 * Text vlevo, tenká linka zbývajícího podílu po celé šířce dole. Bronz = klid, červená = poslední kusy.
 */
.bp-root .card .photo .badge.blmsc-badge, .blmsc-badge { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: flex-start; gap: 9px; padding: 11px 16px 13px; font: 700 13px/1.2 Arimo, sans-serif; letter-spacing: .2px; border-radius: 0; text-transform: none; white-space: nowrap; pointer-events: none; overflow: hidden; }
.blmsc-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.blmsc-badge::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--blmsc-left, 100%); background: rgba(255, 255, 255, .55); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.bp-root .card .photo .badge.blmsc-badge--quiet, .blmsc-badge--quiet { background: var(--badge-sale, #8b6342); color: #fff; }
.blmsc-badge--quiet::before { background: #f3e6d2; }
.bp-root .card .photo .badge.blmsc-badge--low, .blmsc-badge--low { background: #d8281d; color: #fff; }
.blmsc-badge--low::before { background: #ffb35c; animation: blmsc-badge-breathe 2.4s ease-in-out infinite; }
.blmsc-badge--low::after { background: rgba(255, 179, 92, .85); }
.card:has(> .photo > .blmsc-badge) .compare-btn { bottom: 58px; }

/* Klasická karta tématu (/eshop/, karusely): pruh sedí na spodní hraně obrázku (.image-wrapper je position:relative) */
.image-wrapper > .blmsc-badge { border-radius: 0; }
/* Poslední záchrana bez obrázkového obalu — pruh stojí v toku nad cenou */
li.product > .blmsc-badge, .product > .blmsc-badge, .woocommerce-LoopProduct-link > .blmsc-badge { position: static; margin: 0 0 10px; }

@keyframes blmsc-badge-breathe { 0%, 100% { box-shadow: 0 0 0 2px rgba(255, 179, 92, .3), 0 0 6px 2px rgba(255, 120, 80, .6); } 50% { box-shadow: 0 0 0 3px rgba(255, 179, 92, .4), 0 0 14px 5px rgba(255, 120, 80, .9); } }
@media (prefers-reduced-motion: reduce) { .blmsc-badge--low::before { animation: none; } .blmsc-badge::after { transition: none; } }

/* ---------- Vzhled „pilulka na fotce": malý zaoblený štítek vlevo dole, bez linky ---------- */
.bp-root .card .photo .badge.blmsc-badge--v-pill, .blmsc-badge--v-pill { left: 12px; right: auto; bottom: 12px; padding: 8px 14px 8px 12px; border-radius: 999px; font-size: 12px; box-shadow: 0 3px 10px rgba(31, 24, 40, .16); }
.blmsc-badge--v-pill::after { display: none; }
.card:has(> .photo > .blmsc-badge--v-pill) .compare-btn { bottom: 14px; }

/* ---------- Vzhled „řádek pod cenou": text v barvě bronzu a tenká linka zbytku, nic přes fotku ---------- */
.bp-root .card .badge.blmsc-badge--v-row, .blmsc-badge--v-row { position: relative; left: auto; right: auto; bottom: auto; display: flex; justify-content: center; margin: 8px 0 0; padding: 0 0 9px; background: transparent; color: #805b3a; font-size: 12px; letter-spacing: .2px; border-radius: 0; overflow: visible; }
.blmsc-badge--v-row::before { background: #805b3a; }
.blmsc-badge--v-row::after { left: 0; right: 0; bottom: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #805b3a var(--blmsc-left, 100%), #e6dfd6 0); border-radius: 2px; }
.bp-root .card .badge.blmsc-badge--v-row.blmsc-badge--low, .blmsc-badge--v-row.blmsc-badge--low { color: #d8281d; background: transparent; }
.blmsc-badge--v-row.blmsc-badge--low::before { background: #ff3b2f; }
.blmsc-badge--v-row.blmsc-badge--low::after { background: linear-gradient(90deg, #d8281d var(--blmsc-left, 100%), #f3d6d2 0); }
/* Klasická karta: obecné pravidlo výše dává štítku position:static (pruh v toku) — řádek musí zůstat positioned, jinak jeho linka spadne na hranu karty. */
li.product > .blmsc-badge--v-row, .product > .blmsc-badge--v-row, .woocommerce-LoopProduct-link > .blmsc-badge--v-row { position: relative; margin: 6px 0 4px; }
