
.lu-pcard {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    max-width: 520px;
    padding: var(--sp-3);
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lu-pcard--inline {
    margin: var(--sp-4) 0;
}

.lu-pcard--grid {
    flex-direction: column;
    align-items: flex-start;
    max-width: none;
    height: 100%;
}

@media (hover: hover) {
    .lu-pcard:hover {
        border-color: #00abda;
        box-shadow: 0 4px 16px rgba(0, 171, 218, 0.12);
    }
}

.lu-pcard__thumb {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.lu-pcard--grid .lu-pcard__thumb {
    width: 100%;
    height: 140px;
    border-radius: 4px;
}

.lu-pcard__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lu-pcard__thumb-stub {
    display: block;
    width: 100%;
    height: 100%;
}

.lu-pcard__body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    min-width: 0;
}

.lu-pcard--grid .lu-pcard__body {
    margin-top: var(--sp-2);
}

.lu-pcard__sku {
    font-size: var(--fs-label);
    line-height: var(--lh-small);
    color: #7a8794;
}

.lu-pcard__name {
    font-size: var(--fs-small);
    line-height: var(--lh-small);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lu-pcard__qty {
    font-size: var(--fs-label);
    line-height: var(--lh-small);
    color: #00abda;
    font-weight: 600;
}

@media (max-width: 390px) {
    .lu-pcard {
        max-width: 100%;
        gap: var(--sp-2);
    }
}

/* Переключатель вариантов серии (default_variants.php) */
.lu-variants {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.lu-variants__label {
    margin-bottom: 6px;
    color: #6b7785;
    font-size: 12px;
    line-height: 1.3;
}

.lu-variants__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lu-variants__chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid #d5dbe1;
    border-radius: 3px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

a.lu-variants__chip:hover,
a.lu-variants__chip:focus-visible {
    border-color: #00abda;
    color: #00abda;
}

.lu-variants__chip.is-active {
    border-color: #00abda;
    background: #e6f7fc;
    color: #0086ab;
    font-weight: 600;
}

.lu-variants__chip.is-dim {
    border-style: dashed;
    color: #9aa4ae;
}

.lu-variants__axis.is-changed .lu-variants__chip.is-active {
    animation: lu-variants-changed 1.6s ease-out;
}

@keyframes lu-variants-changed {
    0%, 40% {
        background: #ffe8b3;
        border-color: #f5a623;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lu-variants__axis.is-changed .lu-variants__chip.is-active {
        animation: none;
        border-color: #f5a623;
    }
}

/* Назначение товара из серии вариантов: плашка на фото вместо списка преимуществ */
.card-gallery__purpose {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-block;
    max-width: 60%;
    padding: 6px 12px;
    border-radius: 3px;
    background: #eceff1;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.3;
}

.card-gallery__purpose::first-letter {
    text-transform: uppercase;
}
