.shop-page {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    padding: 32px 24px 64px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
    overflow-x: hidden;
}

.shop-deco {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.shop-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}

.shop-circle--1 {
    top: -50px;
    right: -50px;
    width: 380px;
    height: 380px;
    background: #fb923c;
}

.shop-circle--2 {
    top: 40%;
    left: -100px;
    width: 440px;
    height: 440px;
    background: #f472b6;
}

.shop-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

/* Промо-баннер для гостей */
.guest-hero-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    margin-bottom: 40px;
    padding: 36px 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 243, 199, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid #f59e0b;
    border-radius: 28px;
    box-shadow: 0 16px 44px rgba(245, 158, 11, 0.18);
    position: relative;
    overflow: hidden;
}

.guest-hero-banner__content {
    max-width: 620px;
    z-index: 2;
}

.guest-hero-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.guest-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 12px;
    line-height: 1.25;
}

.guest-hero-subtitle {
    font-size: 15px;
    color: #475569;
    margin: 0 0 24px;
    line-height: 1.6;
}

.guest-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-guest-register {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-guest-register svg {
    width: 18px;
    height: 18px;
}

.btn-guest-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.45);
    color: #ffffff;
}

.btn-guest-login {
    display: inline-flex;
    align-items: center;
    padding: 14px 22px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    border-radius: 16px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-guest-login:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.guest-hero-banner__mascots {
    position: relative;
    width: 260px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-cat-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-cat {
    position: absolute;
    bottom: 0;
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hero-cat--left {
    left: 0;
    transform: rotate(-10deg) scale(0.9);
    z-index: 1;
}

.hero-cat--center {
    left: 70px;
    top: 10px;
    transform: scale(1.15);
    z-index: 3;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.15));
}

.hero-cat--right {
    right: 0;
    transform: rotate(10deg) scale(0.9);
    z-index: 2;
}

.guest-hero-banner:hover .hero-cat--left {
    transform: rotate(-16deg) scale(0.95);
}

.guest-hero-banner:hover .hero-cat--center {
    transform: translateY(-8px) scale(1.2);
}

.guest-hero-banner:hover .hero-cat--right {
    transform: rotate(16deg) scale(0.95);
}

/* Шапка */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(251, 146, 60, 0.12);
}

.shop-header__tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ea580c;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.shop-header__title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.2;
}

.shop-header__subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    max-width: 600px;
    line-height: 1.5;
}

.shop-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.shop-balance-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 18px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: 16px;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.12);
}

.shop-balance-card__label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #9a3412;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.shop-balance-card__val-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.shop-balance-card__value {
    font-size: 22px;
    font-weight: 800;
    color: #ea580c;
    line-height: 1.1;
}

.btn-editor-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-editor-link svg {
    width: 18px;
    height: 18px;
}

.btn-editor-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.4);
    color: #ffffff;
}

/* Баннер стартового подарка */
.starter-gift-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    margin-bottom: 36px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.2);
}

.starter-gift-banner__icon {
    flex-shrink: 0;
}

.starter-gift-banner__text h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #78350f;
}

.starter-gift-banner__text p {
    margin: 0;
    font-size: 14px;
    color: #92400e;
}

/* Секции наборов */
.sets-wrapper {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.set-section {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.set-section--dev {
    border-style: dashed;
    border-color: #cbd5e1;
    background: rgba(255, 255, 255, 0.4);
}

.set-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.set-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}

.set-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.set-badge {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.set-badge--starter {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.set-badge--active {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.set-badge--dev {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.set-badge--archived {
    background: #f3f4f6;
    color: #9ca3af;
}

/* Сетка карточек */
.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.skin-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.skin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(234, 88, 12, 0.12);
    border-color: #fdba74;
}

.skin-card--equipped {
    border: 2px solid #22c55e;
}

.skin-card--placeholder {
    opacity: 0.75;
    background: rgba(248, 250, 252, 0.8);
    border: 1px dashed #cbd5e1;
}

.skin-card--placeholder:hover {
    transform: none;
    box-shadow: none;
    border-color: #cbd5e1;
}

.skin-card__preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 16px;
    background: radial-gradient(circle at center, #fff7ed 0%, #ffedd5 100%);
    min-height: 180px;
}

.skin-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.skin-badge--active {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.skin-badge--owned {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
}

.skin-badge--free {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.skin-badge--secret {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.skin-svg-wrapper {
    width: 140px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.cat-preview-img,
.placeholder-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.skin-card:hover .skin-svg-wrapper {
    transform: scale(1.06);
}

.skin-card__body {
    display: flex;
    flex-direction: column;
    padding: 16px;
    flex-grow: 1;
}

.skin-card__header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.skin-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.skin-card__lore-wrap {
    margin: 6px 0 16px;
    background: #fffaf5;
    border: 1px solid #ffedd5;
    border-radius: 12px;
    padding: 10px 12px;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.skin-card__lore-wrap:hover {
    background: #fff7ed;
    border-color: #fed7aa;
}

.skin-card__lore-wrap.is-open {
    background: #ffffff;
    border-color: #fdba74;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.08);
}

.skin-card__desc {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.45;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.25s ease;
}

.skin-card__lore-wrap.is-open .skin-card__desc {
    -webkit-line-clamp: unset;
    color: #1e293b;
}

.skin-card__desc--secret {
    color: #94a3b8;
    font-style: italic;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: #ea580c;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s ease, gap 0.15s ease;
}

.btn-read-more:hover {
    color: #c2410c;
    gap: 6px;
}

.read-more-arrow {
    width: 13px;
    height: 13px;
    transition: transform 0.25s ease;
}

.skin-card__lore-wrap.is-open .read-more-arrow {
    transform: rotate(180deg);
}

.skin-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    gap: 10px;
    min-height: 42px;
}

/* Иконки монетки Мурлика */
.coin-icon {
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    flex-shrink: 0;
}

.coin-icon--header {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(234, 88, 12, 0.25));
}

.coin-icon--price {
    width: 24px;
    height: 24px;
    opacity: 0.9;
    filter: drop-shadow(0 1px 3px rgba(234, 88, 12, 0.2));
}

.coin-icon--xs {
    width: 13px;
    height: 13px;
}

.coin-icon--old {
    opacity: 0.65;
    filter: grayscale(30%);
}

.price-active-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.skin-card__price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 4px;
}

.price-old {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
}

.price-free {
    font-size: 12px;
    font-weight: 800;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.price-value {
    font-size: 19px;
    font-weight: 800;
    color: #ea580c;
    line-height: 1;
}

.price-unit {
    font-size: 11px;
    color: #64748b;
}

.price-placeholder {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.skin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.2;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.skin-btn--claim {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.skin-btn--claim:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
    color: #ffffff;
}

.skin-btn--buy {
    background: #ea580c;
    color: #ffffff;
}

.skin-btn--buy:hover {
    background: #c2410c;
    transform: translateY(-1px);
}

.skin-btn--equip {
    background: #0284c7;
    color: #ffffff;
}

.skin-btn--equip:hover {
    background: #0369a1;
    transform: translateY(-1px);
}

.skin-btn--equipped {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    cursor: default;
}

.skin-btn--locked {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Toast */
.shop-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    padding: 14px 24px;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    animation: toastSlideUp 0.3s ease;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .shop-header {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-header__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .starter-gift-banner {
        flex-direction: column;
        text-align: center;
    }
}