/**
 * Vice Shop — mobile & tablet.
 * Design: mobile-website-design/components/shop/*
 */

@media (max-width: 1024px) {
    .vice-shop-container {
        margin-left: 0 !important;
        padding: 0 10px calc(var(--bottom-bar-h, 64px) + env(safe-area-inset-bottom, 0px) + 48px) !important;
    }

    .vice-shop-header-bar {
        margin: 0 -10px clamp(18px, 2.6vw, 24px);
        padding: 12px 0 clamp(18px, 2.6vw, 24px);
    }

    .vice-shop-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: clamp(18px, 2.6vw, 28px);
    }

    .vice-shop-page-header .page-title {
        font-size: clamp(28px, 3.4vw, 40px);
    }

    .vice-shop-page-header .page-subtitle {
        font-size: clamp(14px, 1.4vw, 16px);
        margin-top: clamp(8px, 1.2vw, 12px);
    }

    /* Mobile: balance + horizontal categories at top */
    .vice-shop-mobile-top {
        display: flex;
        flex-direction: column;
        gap: clamp(12px, 1.5vw, 18px);
        margin-bottom: clamp(18px, 2.6vw, 24px);
    }

    /* Balance card — design ShopBalanceCard (gradient) */
    .vice-shop-balance-card-mobile {
        position: relative;
        overflow: hidden;
        border-radius: 16px;
        background: linear-gradient(135deg, #6366F1 0%, #7c3aed 100%);
        padding: clamp(14px, 1.2vw, 18px);
    }

    .vice-shop-balance-card-mobile::before {
        content: '';
        position: absolute;
        top: -24px;
        right: -24px;
        width: 112px;
        height: 112px;
        background: rgba(255,255,255,0.12);
        border-radius: 50%;
        filter: blur(24px);
    }

    .vice-shop-balance-card-mobile .balance-inner {
        position: relative;
        display: flex;
        align-items: center;
        gap: clamp(10px, 0.8vw, 14px);
    }

    .vice-shop-balance-card-mobile .balance-icon-wrap {
        width: clamp(36px, 2.8vw, 44px);
        height: clamp(36px, 2.8vw, 44px);
        border-radius: 12px;
        background: rgba(255,255,255,0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .vice-shop-balance-card-mobile .balance-icon-wrap [data-lucide] {
        width: clamp(18px, 1.3vw, 22px);
        height: clamp(18px, 1.3vw, 22px);
        color: #fff;
    }

    .vice-shop-balance-card-mobile .balance-text {
        flex: 1;
        min-width: 0;
    }

    .vice-shop-balance-card-mobile .balance-label {
        font-size: clamp(10px, 0.6vw, 12px);
        font-weight: 500;
        color: rgba(255,255,255,0.7);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin: 0;
    }

    .vice-shop-balance-card-mobile .balance-amount {
        font-size: clamp(20px, 1.4vw, 26px);
        font-weight: 800;
        color: #fff;
        line-height: 1;
        margin: 2px 0 0;
    }

    .vice-shop-balance-card-mobile .balance-unit {
        font-size: clamp(12px, 0.75vw, 14px);
        font-weight: 600;
        color: rgba(255,255,255,0.6);
    }

    /* Horizontal category chips — design ShopCategories variant=horizontal */
    .vice-shop-categories-horizontal {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .vice-shop-categories-horizontal::-webkit-scrollbar {
        display: none;
    }

    .vice-shop-category-chip {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        min-height: 44px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 500;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }

    .vice-shop-category-chip:not(.active) {
        background: #fff;
        color: var(--vc-gray-dark, #64748b);
        border: 1px solid rgba(0,0,0,0.06);
    }

    .vice-shop-category-chip:not(.active):hover {
        border-color: rgba(99, 102, 241, 0.3);
        color: #6366F1;
    }

    .vice-shop-category-chip.active {
        background: #6366F1;
        color: #fff;
        box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
    }

    .vice-shop-category-chip [data-lucide] {
        width: 16px;
        height: 16px;
    }

    .vice-shop-category-chip .chip-count {
        font-size: 11px;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 6px;
    }

    .vice-shop-category-chip:not(.active) .chip-count {
        background: rgba(0,0,0,0.05);
    }

    .vice-shop-category-chip.active .chip-count {
        background: rgba(255,255,255,0.2);
    }

    /* Hide sidebar on mobile */
    .vice-shop-sidebar {
        display: none !important;
    }

    .vice-shop-ad-sidebar {
        display: none !important;
    }

    /* Main layout */
    .vice-shop-main-layout {
        grid-template-columns: 1fr;
    }

    /* Content card — design white rounded */
    .vice-shop-content {
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        padding: clamp(14px, 1.2vw, 24px);
    }

    /* Section header */
    .vice-shop-content .shop-section-header {
        display: flex;
        align-items: center;
        gap: clamp(6px, 0.4vw, 10px);
        margin-bottom: clamp(14px, 1vw, 20px);
    }

    .vice-shop-content .shop-section-header [data-lucide] {
        width: clamp(18px, 1.1vw, 22px);
        height: clamp(18px, 1.1vw, 22px);
        color: #6366F1;
    }

    .vice-shop-content .shop-section-title {
        font-size: clamp(18px, 1.2vw, 22px);
    }

    /* Item grids — 2 cols mobile, 3 tablet */
    .vice-shop-content .shop-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(8px, 0.7vw, 14px);
    }

    /* Item card — design ShopItemCard */
    .vice-shop-content .shop-item-card {
        border-radius: 16px;
        padding: clamp(14px, 1vw, 18px);
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .vice-shop-content .shop-item-card:not(.coming-soon-card):hover {
        transform: none;
    }

    .vice-shop-content .shop-item-icon-new {
        width: clamp(40px, 2.8vw, 48px);
        height: clamp(40px, 2.8vw, 48px);
        border-radius: 12px;
        margin-bottom: clamp(8px, 0.6vw, 12px);
    }

    .vice-shop-content .shop-item-icon-new [data-lucide] {
        width: clamp(20px, 1.2vw, 24px);
        height: clamp(20px, 1.2vw, 24px);
    }

    .vice-shop-content .shop-item-name {
        font-size: clamp(13px, 0.85vw, 15px);
    }

    .vice-shop-content .shop-item-purchase-btn {
        font-size: clamp(12px, 0.72vw, 14px);
        padding: clamp(8px, 0.55vw, 10px);
        border-radius: 12px;
        min-height: 44px;
    }

    .vice-shop-content .shop-item-info {
        font-size: clamp(10px, 0.58vw, 12px);
    }

    .vice-shop-content .coming-soon-card {
        opacity: 0.5;
        border-style: dashed;
    }

    /* XP Best badge */
    .vice-shop-content .xp-best-badge {
        top: clamp(6px, 0.4vw, 8px);
        right: clamp(6px, 0.4vw, 8px);
        font-size: clamp(9px, 0.52vw, 11px);
        padding: 2px clamp(5px, 0.3vw, 7px);
        border-radius: 6px;
    }

    .vice-shop-content .xp-best-badge [data-lucide] {
        width: clamp(9px, 0.5vw, 11px);
        height: clamp(9px, 0.5vw, 11px);
    }

    /* Empty state */
    .vice-shop-content .shop-empty-state {
        padding: clamp(40px, 5vw, 80px);
    }

    .vice-shop-content .shop-empty-state-icon {
        width: clamp(56px, 4vw, 72px);
        height: clamp(56px, 4vw, 72px);
        margin-bottom: clamp(12px, 0.8vw, 16px);
    }

    .vice-shop-content .shop-empty-state-icon [data-lucide] {
        width: clamp(24px, 1.6vw, 32px);
        height: clamp(24px, 1.6vw, 32px);
    }

    .vice-shop-content .shop-empty-state h3 {
        font-size: clamp(16px, 1.1vw, 20px);
    }

    .vice-shop-content .shop-empty-state p {
        font-size: clamp(13px, 0.8vw, 15px);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .vice-shop-content .shop-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    .vice-shop-mobile-top {
        display: none !important;
    }
}

