/* --- Стили для плашки на главном экране --- */
.t-store__card__imgwrapper {
    position: relative;
}

.stock-quantity-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #000000;
    padding: 6px 10px;
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    z-index: 10;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

/* --- Стили для блока остатков в поп-апе --- */
.variant-stock-container {
    width: 100%;
    margin: 15px 0;
}

.variant-stock-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variant-stock-item {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    color: #333;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2c5aa0;
}

.stock-available {
    color: #28a745;
    font-weight: 600;
}

.stock-unavailable {
    color: #dc3545;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
    .stock-quantity-badge {
        font-size: 11px;
        padding: 4px 8px;
        bottom: 8px;
        left: 8px;
    }

    .variant-stock-item {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* Убедимся, что плашка видна поверх изображения */
.t-store__card__img {
    position: relative;
    z-index: 1;
}

.stock-quantity-badge {
    z-index: 2;
}