
/* ===== TA GRID FIX (плитки ровные, бейдж скидки справа по центру) ===== */
/* 1. Ряд тянем по высоте, карточки одинаковые, низ на одной линии */
.product-layout.product-grid { display: flex !important; }
.product-layout.product-grid > .product-thumb,
.product-layout.product-grid .product-thumb {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    align-self: stretch !important;
}
.product-layout.product-grid .product-thumb .caption { flex: 1 1 auto !important; }
.product-layout.product-grid .product-thumb .button-group { margin-top: auto !important; }

/* 2. Размер плитки не зависит от наличия скидки: резерв под старую цену */
.product-layout.product-grid .product-thumb .price { min-height: 44px !important; }
.product-layout.product-grid .product-thumb .price-old { display: inline-block; white-space: nowrap; }

/* 3. Бейдж скидки — компактная плашка справа, по центру фото, слегка на фото */
.product-layout.product-grid .product-thumb .sale,
.product-layout.product-grid .product-thumb .sticker-sale,
.product-layout.product-grid .product-thumb .badge-sale {
    position: absolute !important;
    top: 50% !important;
    right: 4px !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    rotate: none !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    text-align: center !important;
    white-space: nowrap !important;
    z-index: 3 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.18) !important;
}
.product-layout.product-grid .product-thumb .sale span,
.product-layout.product-grid .product-thumb .sticker-sale span { font-size: 13px !important; }

/* 4. Короткие подписи (1 Вт, 100 Вт) — одна строка без переносов */
.product-layout.product-grid .product-thumb .badge,
.product-layout.product-grid .product-thumb .spec-badge {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 96px !important;
}

/* ===== то же для мобильной ширины ===== */
@media (max-width: 767px) {
  .product-layout.product-grid .product-thumb { min-height: 0 !important; }
}
