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

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

    .vice-shop-container .news-page-top-row {
        width: 100%;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .vice-shop-container .nw-share-row,
    .vice-shop-container .share-buttons-container {
        display: none !important;
    }

    .vice-shop-container .stats-grid {
        justify-content: center !important;
    }

    .vice-shop-container .stats-header-container.news-page-hero-floating {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 0 clamp(8px, 1.4vw, 14px) !important;
    }

    .vice-shop-container .stats-header-container.news-page-hero-floating::before,
    .vice-shop-container .stats-header-container.news-page-hero-floating::after {
        display: none !important;
    }

    .vice-shop-container .stats-header-content.news-page-hero-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        gap: clamp(14px, 2vw, 20px) !important;
    }

    .vice-shop-container .news-page-hero-grid .stats-header-right {
        margin-left: 0 !important;
        width: 100%;
        max-width: none;
    }

    .vice-shop-container .news-page-top-row .stats-title {
        font-size: clamp(30px, 3.55vw, 44px);
    }

    .vice-shop-page-header {
        display: none !important;
    }

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

    /* 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 — redesigned mobile/tablet */
    .vice-shop-content .shop-item-card {
        border-radius: 14px;
        padding: 12px 10px;
        border: 1px solid rgba(148, 163, 184, 0.35);
        background:
            radial-gradient(130% 120% at 50% -20%, rgba(99, 102, 241, 0.09), transparent 56%),
            linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        display: grid;
        grid-template-rows: auto auto auto 1fr auto;
        justify-items: center;
        text-align: center;
        gap: 6px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
    }

    .vice-shop-content .shop-item-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, rgba(99, 102, 241, 0.65), rgba(139, 92, 246, 0.65));
    }

    .vice-shop-content .shop-item-card:not(.coming-soon-card):hover {
        transform: none;
        border-color: rgba(99, 102, 241, 0.42);
    }

    .vice-shop-content .shop-item-icon-new {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        margin-bottom: 0;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75), 0 4px 10px rgba(15,23,42,0.08);
    }

    .vice-shop-content .shop-item-icon-new [data-lucide] {
        width: 18px;
        height: 18px;
    }

    .vice-shop-content .shop-item-name {
        font-size: 12.5px;
        line-height: 1.25;
        margin: 0;
    }

    .vice-shop-content .shop-item-purchase-btn {
        width: auto;
        min-width: 82px;
        font-size: 11px;
        padding: 0 12px;
        border-radius: 999px;
        min-height: 30px;
        margin-top: 2px;
        background: #eef2ff;
        border: 1px solid rgba(99, 102, 241, 0.26);
        color: #4f46e5;
        box-shadow: none;
    }

    .vice-shop-content .shop-item-info {
        font-size: 11px;
        margin: 0;
        text-align: center;
    }

    .vice-shop-content .coming-soon-card {
        opacity: 0.9;
        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,
    .vice-shop-content .limits-grid,
    .vice-shop-content .xp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

