/* ==========================================================================
   Product 2026 — poster-style cards for the main "Product Games" tab grid.
   Same visual family as populer.css (poster art, bottom gradient, hover
   lift + shine) so the Main and Populer sections read as one design
   language instead of two different card styles.

   Difference from Populer: no rank badge, and title/vendor are always
   visible (not hover-revealed), since this grid is browsed/scanned rather
   than a "top picks" rail.
   ========================================================================== */

.product2026-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 768px) {
    .product2026-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 992px) {
    .product2026-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1400px) {
    .product2026-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

.card-product2026 {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--dark-grey);
    border-radius: 16px;
    padding: 10px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] .card-product2026 {
    background: var(--light-blue);
    border-color: hsla(0, 0%, 100%, 0.12);
}

.card-product2026:hover {
    transform: translateY(-3px);
}

.card-product2026-imgwrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--dark-grey);
    margin-bottom: 10px;
}

.card-product2026-content {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transition: transform 0.35s ease;
}

.card-product2026:hover .card-product2026-content {
    transform: scale(1.08);
}

.card-product2026-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-product2026-text h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

[data-theme="dark"] .card-product2026-text h3 {
    color: var(--white);
}

.card-product2026:hover .card-product2026-text h3 {
    color: var(--accent-blue-2026);
}

.card-product2026-text span {
    font-size: 11px;
    color: var(--black-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-product2026.is-hidden {
    display: none;
}

/* -------- Jump nav (quick links to each category section) -------- */
.product2026-jumpnav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 1.75rem;
    /* overflow-x:auto implicitly forces overflow-y to "auto" as well, which
       clips anything that pokes past the row's own box — the hover
       translateY(-2px) lift and the active/hover border both got their tops
       cut off with no top padding to give them room. */
    padding: 8px 2px 6px;
    cursor: grab;
    user-select: none;
}

.product2026-jumpnav.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.product2026-jumpnav::-webkit-scrollbar {
    display: none;
}

.product2026-jumpnav a {
    text-decoration: none;
    flex: none;
}

.product2026-jumpnav .btnNavTabs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 76px;
    padding: 12px 6px 10px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--dark-grey);
    scroll-snap-align: start;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

[data-theme="dark"] .product2026-jumpnav .btnNavTabs {
    background: var(--light-blue);
    border-color: hsla(0, 0%, 100%, 0.12);
}

.product2026-jumpnav {
    scroll-snap-type: x proximity;
}

.product2026-jumpnav .btnNavTabs:hover {
    transform: translateY(-2px);
    border-color: var(--yellow-primary);
}

.product2026-jumpnav .btnNavTabs.active {
    border-color: var(--yellow-primary);
    background: color-mix(in srgb, var(--yellow-primary) 10%, var(--white));
}

[data-theme="dark"] .product2026-jumpnav .btnNavTabs.active {
    background: color-mix(in srgb, var(--yellow-primary) 18%, var(--light-blue));
}

.product2026-jumpnav .btnNavTabs .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 19px;
    color: var(--yellow-primary);
    background: color-mix(in srgb, var(--yellow-primary) 12%, var(--white));
}

[data-theme="dark"] .product2026-jumpnav .btnNavTabs .icon {
    background: color-mix(in srgb, var(--yellow-primary) 22%, var(--light-blue));
}

.product2026-jumpnav .btnNavTabs.active .icon {
    color: #fff;
    background: var(--yellow-primary);
}

.product2026-jumpnav .btnNavTabs .text {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    color: var(--black-text);
    height: 28px;
    display: -webkit-box;
    -webkit-box-align: center;
    align-items: center;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product2026-jumpnav .btnNavTabs.active .text {
    color: var(--yellow-primary);
}

@media (max-width: 576px) {
    .product2026-jumpnav .btnNavTabs {
        width: 68px;
        padding: 10px 4px 8px;
        border-radius: 14px;
        gap: 6px;
    }

    .product2026-jumpnav .btnNavTabs .icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .product2026-jumpnav .btnNavTabs .text {
        font-size: 10px;
        height: 25px;
    }
}

/* -------- Per-category section -------- */
.product2026-section {
    margin-bottom: 2rem;
    /* .navbar2026 is position:sticky, so scrollIntoView({block:'start'})
       from a jumpnav pill click landed the section heading right behind
       it — visually looked like the click "did nothing" / didn't switch
       category. scroll-margin-top leaves room for the sticky navbar. */
    scroll-margin-top: 90px;
}

.product2026-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, color-mix(in srgb, var(--yellow-primary) 10%, #fff) 0%, #fff 100%);
    border: 1px solid color-mix(in srgb, var(--yellow-primary) 22%, #fff);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 1rem;
}

[data-theme="dark"] .product2026-section-head {
    background: linear-gradient(135deg, color-mix(in srgb, var(--yellow-primary) 14%, var(--light-blue)) 0%, var(--light-blue) 100%);
    border-color: hsla(0, 0%, 100%, 0.12);
}

.product2026-section-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product2026-section-icon {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--yellow-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--yellow-primary) 60%, transparent);
}

.product2026-section-title {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.2;
    margin: 0;
    color: #1e1b4b;
}

[data-theme="dark"] .product2026-section-title {
    color: #fff;
}

.product2026-section-count {
    font-size: 12px;
    color: #4c4a6e;
    margin-top: 1px;
}

[data-theme="dark"] .product2026-section-count {
    color: rgba(255, 255, 255, 0.65);
}

.product2026-more {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: none;
    background: var(--yellow-primary);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.product2026-more:hover {
    background: color-mix(in srgb, var(--yellow-primary) 82%, #000);
}

.product2026-more i {
    font-size: 12px;
}

@media (max-width: 576px) {
    .product2026-section-head {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .product2026-section-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
    }

    .product2026-section-title {
        font-size: 14.5px;
    }

    .product2026-section-count {
        font-size: 11px;
    }

    .product2026-more {
        height: 34px;
        padding: 0 12px;
        font-size: 11.5px;
    }
}

@media (max-width: 756px) {
    .card-product2026-text h3 {
        font-size: 12px;
    }

    .card-product2026-text span {
        font-size: 10px;
    }

    .card-product2026-text {
        padding: 10px 10px 9px;
    }
}

@media (max-width: 576px) {
    .card-product2026-text h3 {
        font-size: 11px;
    }

    .card-product2026-text span {
        font-size: 9px;
    }
}
/* -------------------------------------------------------------------- */
/* 2026-07 redesign accent overrides (sky/blue, matches new homepage)   */
/* -------------------------------------------------------------------- */
body.site2026 .card-product2026:hover {
    border-color: var(--accent-blue-2026);
    box-shadow: 0 14px 28px -14px rgba(2, 132, 199, 0.45);
}

body.site2026 .product2026-jumpnav .btnNavTabs:hover {
    border-color: var(--accent-blue-2026);
}

body.site2026 .product2026-jumpnav .btnNavTabs.active {
    border-color: var(--accent-blue-2026);
    background: color-mix(in srgb, var(--accent-blue-2026) 10%, var(--white));
}

[data-theme="dark"] body.site2026 .product2026-jumpnav .btnNavTabs.active {
    background: color-mix(in srgb, var(--accent-blue-2026) 18%, var(--light-blue));
}

body.site2026 .product2026-jumpnav .btnNavTabs .icon {
    color: var(--accent-blue-2026);
    background: color-mix(in srgb, var(--accent-blue-2026) 12%, var(--white));
}

[data-theme="dark"] body.site2026 .product2026-jumpnav .btnNavTabs .icon {
    background: color-mix(in srgb, var(--accent-blue-2026) 22%, var(--light-blue));
}

body.site2026 .product2026-jumpnav .btnNavTabs.active .icon {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-blue-2026), var(--accent-blue-2026-dark));
}

body.site2026 .product2026-jumpnav .btnNavTabs.active .text {
    color: var(--accent-blue-2026);
}

body.site2026 .product2026-section-head {
    background: linear-gradient(135deg, #F0F9FF 0%, #fff 100%);
    border-color: #E0F2FE;
}

[data-theme="dark"] body.site2026 .product2026-section-head {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-blue-2026) 14%, var(--light-blue)) 0%, var(--light-blue) 100%);
    border-color: hsla(0, 0%, 100%, 0.12);
}

body.site2026 .product2026-section-icon {
    background: linear-gradient(135deg, var(--accent-blue-2026), var(--accent-blue-2026-dark));
    box-shadow: 0 6px 14px -6px rgba(2, 132, 199, 0.5);
}

body.site2026 .product2026-more {
    background: linear-gradient(90deg, var(--accent-blue-2026), var(--accent-blue-2026-dark));
}

body.site2026 .product2026-more:hover {
    filter: brightness(0.92);
}

/* Card visual redesign (light card + square thumb) needs no extra
   body.site2026 scoping — .card-product2026 base rules above already
   carry the new look site-wide. */

/* -------------------------------------------------------------------- */
/* 2026-07 "Pilih Game / Layanan" toolbar — heading + subtitle on the   */
/* left, category pills on the right (single scrollable row), replacing */
/* the old stacked icon-over-text jumnav cards.                         */
/* -------------------------------------------------------------------- */
.product2026-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.product2026-toolbar-text h2 {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 21px;
    color: var(--black);
}

[data-theme="dark"] .product2026-toolbar-text h2 {
    color: var(--white);
}

.product2026-toolbar-text p {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--black-text);
    opacity: .65;
}

body.site2026 .product2026-jumpnav {
    margin-bottom: 0;
    flex: 1 1 auto;
    /* flex-end here was the actual bug: on an overflowing scrollable flex
       row, flex-end anchors the content to the right so the leftmost pills
       sit past the scrollport's left edge at scrollLeft:0 — and scrollLeft
       can't go negative, so those pills were permanently clipped and
       unreachable no matter how you tried to scroll/drag. flex-start keeps
       scrollLeft:0 aligned with the first pill, like a normal scroll list. */
    justify-content: flex-start;
}

@media (max-width: 900px) {
    body.site2026 .product2026-jumpnav {
        justify-content: flex-start;
        width: 100%;
    }
}

body.site2026 .product2026-jumpnav .btnNavTabs {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 7px;
    padding: 10px 18px 10px 12px;
    border-radius: 999px;
}

body.site2026 .product2026-jumpnav .btnNavTabs .icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
    background: transparent;
    color: var(--black-text);
}

[data-theme="dark"] body.site2026 .product2026-jumpnav .btnNavTabs .icon {
    background: transparent;
}

body.site2026 .product2026-jumpnav .btnNavTabs .text {
    height: auto;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    -webkit-line-clamp: 1;
    color: var(--black-text);
}

body.site2026 .product2026-jumpnav .btnNavTabs.active {
    border-color: var(--accent-blue-2026);
    background: linear-gradient(135deg, var(--accent-blue-2026), var(--accent-blue-2026-dark));
}

body.site2026 .product2026-jumpnav .btnNavTabs.active .icon,
body.site2026 .product2026-jumpnav .btnNavTabs.active .text {
    color: #fff;
}

@media (max-width: 576px) {
    body.site2026 .product2026-jumpnav .btnNavTabs {
        padding: 8px 14px 8px 10px;
    }

    body.site2026 .product2026-jumpnav .btnNavTabs .icon {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    body.site2026 .product2026-jumpnav .btnNavTabs .text {
        font-size: 11.5px;
    }
}