/* CATALOG STYLES */
.catalog-page {
    background: #FFFFFF;
    padding: 0 20px;
    padding-bottom: 120px;
}

.catalog-page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
    margin-bottom: 20px;
}

.catalog-page-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.catalog-page-title {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: #000000;
    line-height: normal;
}

.hero-slider-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.hero-slider {
    width: 100%;
}

.hero-track-viewport {
    width: 100%;
    overflow: hidden;
}

.hero-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: visible;
    /* mandatory + scroll-snap-stop: always = always land on a slide
       and never jump past the next one in a single flick. Without
       `stop: always`, a fast horizontal swipe could fly through 2-3
       slides; users complained that scrolling felt "shitty/random". */
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    /* iOS native momentum scroll. Without this, fingers-up means
       scrolling stops dead — feels sticky. The `auto` deceleration
       gives the natural rubber-band feel. */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Contain horizontal overscroll so a rubber-band fling on one
       slider doesn't cascade into another section or the page. */
    overscroll-behavior-x: contain;
    /* Let the browser know horizontal scroll is intentional — blocks
       Telegram WebView from interpreting fast swipes as page gestures. */
    touch-action: pan-x;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hero-track::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f3f3f3;
    scroll-snap-align: center;
    /* Pair with .hero-track's scroll-snap-stop: always so each
       slide is a hard stop — no skipping past on a fast flick. */
    scroll-snap-stop: always;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(102, 102, 102, 0) 48.56%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.hero-slide-badges {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    z-index: 2;
}

.hero-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: normal;
    white-space: nowrap;
}

.hero-badge--sale {
    background: linear-gradient(180deg, #FFB200 0%, #F7D917 100%);
    color: #000;
}

.hero-badge--ps {
    background: #FFFFFF;
    border: 1px solid #FFB200;
    color: #000;
}

/* Hero-slider COLLECTION cards (Sale / PS Plus Deluxe / Extra / EA Play) */
.hero-slide--collection .hero-slide-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.75) 100%);
}

.hero-slide-title {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.15;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 2;
    pointer-events: none;
}

.hero-slide-count {
    position: absolute;
    left: 24px;
    bottom: 62px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    z-index: 2;
    pointer-events: none;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E6E6E6;
    transition: all 0.2s ease;
}

.scroll-dot.active {
    width: 20px;
    height: 10px;
    border-radius: 50px;
    background: linear-gradient(180deg, #FFB200 0%, #F7D917 100%);
}

.catalog-section {
    margin-top: 28px;
}

.catalog-section-title {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000000;
    line-height: normal;
}

.catalog-row::-webkit-scrollbar {
    display: none;
}

.catalog-row {
    -ms-overflow-style: none;
    scrollbar-width: none;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    /* proximity (not mandatory) — snaps only near a card, so short
       flicks don't catapult through 3 games at once. */
    scroll-snap-type: x proximity;
    /* iOS momentum scroll — without this the row stops dead the
       moment the finger leaves the screen, which is what made the
       sale row feel "stuck". */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    /* Padding so the first card doesn't snap flush against the edge
       on snap (otherwise the snap looks like the row jumps). */
    scroll-padding-left: 0;
}

.catalog-row .game-card {
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
    min-width: 0;
}

.catalog-viewport {
    width: 100%;
}

.empty-state {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #808080;
}
