/* shop.css - 商城场景 */

.scene--shop {
    width: 100%; height: 100dvh; overflow: auto;
    background: linear-gradient(135deg, #0a1024, #0f1a30);
}

.shop {
    max-width: 1000px; margin: 0 auto;
    padding: 20px 24px 40px;
}

.shop__header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding-bottom: 14px;
    border-bottom: 1px solid rgba(240, 192, 64, 0.2);
    margin-bottom: 16px;
    position: sticky; top: 0;
    background: linear-gradient(135deg, #0a1024, #0f1a30);
    z-index: 5;
}

.shop__title {
    margin: 0; font-size: 22px; color: #f0c040;
    letter-spacing: 4px; font-weight: 900;
}

.shop__res {
    display: flex; gap: 16px; font-size: 13px; color: #e8eaf0;
    font-weight: 600;
}
.shop__res span {
    padding: 6px 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 999px;
}

.shop__tabs {
    display: flex; gap: 8px; margin-bottom: 20px;
    flex-wrap: wrap;
}
.shop__tab {
    flex: 1; min-width: 130px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #8892a4;
    border-radius: 8px;
    font-size: 14px; font-weight: 700; letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
}
.shop__tab:hover { background: rgba(240, 192, 64, 0.08); color: #e8eaf0; }
.shop__tab--active {
    background: rgba(240, 192, 64, 0.15);
    border-color: rgba(240, 192, 64, 0.5);
    color: #f0c040;
}

.shop__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.shop-item {
    display: flex; gap: 12px;
    align-items: center;
    padding: 14px;
    background: linear-gradient(145deg, rgba(30,40,60,0.6), rgba(15,20,35,0.6));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    transition: all 0.2s;
}
.shop-item:not(.shop-item--disabled):hover {
    border-color: rgba(240, 192, 64, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.shop-item--disabled { opacity: 0.55; }

.shop-item__icon {
    font-size: 32px; flex-shrink: 0;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.35);
    border-radius: 10px;
}

.shop-item__body { flex: 1; min-width: 0; }
.shop-item__name { font-size: 15px; font-weight: 700; color: #e8eaf0; margin-bottom: 3px; }
.shop-item__desc { font-size: 12px; color: #8892a4; line-height: 1.4; margin-bottom: 6px; }
.shop-item__meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px;
}
.shop-item__cost { color: #f0c040; font-weight: 600; }
.shop-item__limit { color: #6d7a8c; }
.shop-item__limit--free { color: #7dd3c0; opacity: 0.75; }

.shop-item__buy { flex-shrink: 0; min-width: 80px; }

.shop__empty {
    grid-column: 1 / -1;
    text-align: center; padding: 40px;
    color: #6d7a8c; font-size: 14px;
}

@media (max-width: 640px) {
    .shop__header { flex-wrap: wrap; }
    .shop__res { font-size: 11px; gap: 8px; }
    .shop__res span { padding: 4px 8px; }
    .shop__grid { grid-template-columns: 1fr; }
}
