

.shop-page {
    max-width: 600px;
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.shop-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: -6px 0 24px;
    min-height: auto;
    background: none;
    box-shadow: none;
    padding: 0;
}

.shop-hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: contain;
    display: block;
    border-radius: inherit;
}

.shop-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 32px;
    gap: 6px;
    background: linear-gradient(180deg, transparent, rgba(5, 9, 15, 0.85));
}

.shop-hero-badge {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.shop-hero-title {
    font-size: 20px;
    font-weight: 700;
}

.shop-hero-subtitle {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.shop-section-header {
    text-align: center;
    margin: 12px 0 16px;
}

.shop-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.shop-section-caption {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.market-card {
    position: relative;
    padding: 16px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
}

.market-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-lg) - 4px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    pointer-events: none;
    z-index: 0;
}

.market-card-glow {
    position: absolute;
    inset: 0;
    filter: blur(32px);
    opacity: 0.75;
    z-index: 0;
}

.market-card-image {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.market-card-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}

.market-card-body {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.market-card-name {
    font-size: 15px;
    font-weight: 600;
    min-height: 40px;
    display: flex;
    align-items: center;
    text-align: center;
}

.market-card-price {
    font-family: var(--font-accent);
    font-size: 16px;
    color: var(--color-text-secondary);
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.market-card-price-value {
    color: var(--color-primary);
}

.market-coin-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.market-card-btn {
    width: 100%;
    margin-top: auto;
}

.market-card .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile adaptation for shop page */
@media (max-width: 480px) {
    .market-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .shop-hero {
        margin-bottom: 20px;
    }

    .shop-hero-overlay {
        padding: 20px 24px;
    }

    .market-card {
        padding: 14px;
    }

    .market-card-name {
        font-size: 14px;
        min-height: 36px;
    }

    .market-card-price {
        font-size: 15px;
    }
}

@media (max-width: 375px) {
    .market-grid {
        gap: 10px;
    }

    .shop-hero {
        margin-bottom: 16px;
    }

    .shop-hero-overlay {
        padding: 16px 20px;
    }

    .shop-hero-title {
        font-size: 18px;
    }

    .shop-hero-subtitle {
        font-size: 13px;
    }

    .shop-section-title {
        font-size: 16px;
    }

    .shop-section-caption {
        font-size: 13px;
    }

    .market-card {
        padding: 12px;
    }

    .market-card-body {
        margin-top: 10px;
        gap: 6px;
    }

    .market-card-name {
        font-size: 13px;
        min-height: 32px;
    }

    .market-card-price {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .market-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .shop-hero {
        margin-bottom: 12px;
    }

    .shop-hero-overlay {
        padding: 12px 16px;
    }

    .shop-hero-badge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .shop-hero-title {
        font-size: 16px;
    }

    .shop-hero-subtitle {
        font-size: 12px;
    }

    .shop-section-header {
        margin: 10px 0 12px;
    }

    .shop-section-title {
        font-size: 15px;
    }

    .shop-section-caption {
        font-size: 12px;
    }

    .market-card {
        padding: 12px;
    }

    .market-card-image {
        border-radius: var(--radius-sm);
    }

    .market-card-name {
        font-size: 13px;
        min-height: 28px;
    }

    .market-card-price {
        font-size: 13px;
    }
}

/* Landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
    .shop-hero {
        margin-bottom: 12px;
    }

    .shop-hero-overlay {
        padding: 12px 16px;
        gap: 4px;
    }

    .shop-section-header {
        margin: 8px 0 12px;
    }

    .market-grid {
        gap: 10px;
    }
}
