/*================================================
        МАГАЗИН: вкладки, наборы, неймплейты
        (/u/shop) — дополняет блок «МАГАЗИН» из app.css
================================================*/

.shop-game-filters {
    margin: 0;
}

.shop-grid-wide {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ---------- Карточки наборов ---------- */
.shop-set-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.shop-set-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--box);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.shop-set-card.is-owned {
    border-color: rgba(255, 213, 74, 0.35);
}

.shop-set-card.is-locked .shop-set-preview {
    filter: grayscale(0.7) brightness(0.7);
}

.shop-set-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 16px;
    text-align: center;
}

/* цена и кнопка всегда прижаты к низу карточки — в ряду карточек кнопки на одном уровне */
.shop-set-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 4px;
}

/* ---------- Превью набора: аватар с рамкой + мини-профиль ---------- */
.shop-set-preview {
    --av: 52px;   /* размер аватара; рамка-картинка ложится ровно по его краю (см. nameplate.css) */
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 170px;
    padding: 0 16px;
    background:
        radial-gradient(circle at 20% 30%, rgba(60, 151, 254, 0.18), transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(255, 213, 74, 0.1), transparent 50%),
        #12151b;
}

/* Колонка под аватар: запас по краям — для цветного кольца-рамки, которое рисуется чуть снаружи аватара. */
.shop-set-avatar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: calc(var(--av) + 16px);
    height: calc(var(--av) + 16px);
}

.shop-set-avatar .avatar-frame-wrap {
    width: var(--av);
    height: var(--av);
}

.shop-set-avatar .avatar-frame-wrap.has-ring-style::before {
    inset: -5px;
}

.shop-set-avatar-img {
    width: var(--av);
    height: var(--av);
    border-radius: 50%;
    object-fit: cover;
    background: #232730;
}

.shop-set-profile {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
}

.shop-set-banner {
    height: 54px;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
}

.shop-set-banner-empty {
    background: linear-gradient(135deg, #232730, #1a1d24);
}

.shop-set-banner.ring-animated {
    background-size: 200% 200%;
    animation: ring-gradient-shimmer 6s ease-in-out infinite;
}

.shop-set-nameline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    background: #0C0F14;
    border: 1px solid #22242c;
    border-radius: var(--radius);
}

.shop-set-name-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.shop-set-name-lines i {
    display: block;
    height: 6px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.55);
}

.shop-set-name-lines i:last-child {
    width: 55%;
    background: rgba(255, 255, 255, 0.22);
}

.shop-set-badge {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.shop-set-badge-dot {
    border-radius: 50%;
    background: var(--ring-style);
}

.shop-set-badge-dot.ring-animated {
    background-size: 200% 200%;
    animation: ring-gradient-shimmer 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .shop-set-banner.ring-animated,
    .shop-set-badge-dot.ring-animated {
        animation: none;
    }
}

@media (max-width: 480px) {
    .shop-set-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Управление: список наборов ---------- */
.shop-bundles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-bundle-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px;
    background: var(--box);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.shop-bundle-preview {
    flex-shrink: 0;
    width: 260px;
    overflow: hidden;
    border-radius: var(--radius);
}

.shop-bundle-preview .shop-set-preview {
    --av: 40px;
    height: 130px;
    padding: 0 10px;
    gap: 8px;
}

.shop-bundle-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

@media (max-width: 760px) {
    .shop-bundle-row {
        flex-wrap: wrap;
    }

    .shop-bundle-preview {
        width: 100%;
    }
}

/* .admin-main — прокручиваемая flex-колонка: без этого высокий список сжимается в полоску */
.admin-main > .shop-bundles-list {
    flex-shrink: 0;
}

/* ---------- Информационная плашка (магазин внутри игры) ---------- */
.settings-alert-info {
    background: rgba(60, 151, 254, 0.1);
    border: 1px solid rgba(60, 151, 254, 0.45);
    color: #8cc1ff;
}

/* ---------- возврат покупок ---------- */
.shop-returns-info {
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--line, rgba(209, 209, 209, 0.14));
    border-radius: var(--radius-sm, 4px);
    background: var(--box, #090b0f);
    color: var(--white-1, #959699);
    font-size: 13px;
    line-height: 1.5;
}

.shop-return {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
    margin: 0;
}

.shop-return-btn {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: var(--radius-sm, 4px);
    background: transparent;
    color: #f87171;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition, 0.25s), border-color var(--transition, 0.25s);
}

.shop-return-btn:hover {
    border-color: rgba(248, 113, 113, 0.7);
    background: rgba(248, 113, 113, 0.08);
}

.shop-return-note {
    display: block;
    width: 100%;
    color: var(--white-1, #959699);
    font-size: 11.5px;
    line-height: 1.4;
    text-align: center;
}
