/* ==============================================
   ВЫБОР ЦВЕТА ПОКРАСКИ — карточка товара
   ============================================== */

/* Бейдж «Цвет на выбор» над заголовком */
.product-paint-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 90, 31, 0.14);
    color: var(--accent, #ff5a1f);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

/* Блок селектора */
.paint-selector {
    margin: 22px 0;
    padding: 20px;
    background: var(--bg-card, rgba(24, 24, 24, 0.92));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: 18px;
}

.ps-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.ps-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.ps-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent, #ff5a1f);
    background: rgba(255, 90, 31, 0.12);
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ps-sub {
    color: var(--text-tertiary, #8a8a8a);
    font-size: 13px;
    margin-bottom: 16px;
}

.ps-current {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ps-current-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.ps-current-name {
    font-size: 15px;
    font-weight: 700;
}

.ps-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ps-swatch {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
    padding: 0;
    transition: transform 0.15s;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.ps-swatch:hover {
    transform: scale(1.08);
}

.ps-swatch.sel {
    box-shadow: 0 0 0 3px var(--bg-primary, #090909), 0 0 0 5px var(--accent, #ff5a1f);
}

.ps-swatch.sel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 16px no-repeat;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9));
}

/* На мобильных крупнее для удобства касания (>=44px) */
@media (max-width: 640px) {
    .ps-swatch {
        width: 44px;
        height: 44px;
    }
    .ps-swatch.sel::after {
        background-size: 18px;
    }
}
