
/* ISTORZ GAMING V17 — Cinematic Store */

body.ig-preview-page .ig-home {
    background:#fff!important;
    color:#25282d!important;
    --ig-v17-blue:#0068bd;
    --ig-v17-gap:18px;
}

/* Cinematic hero */

body.ig-preview-page .ig-home #ig-slider {
    width:100%!important;
    max-width:none!important;
    margin:0 0 42px!important;
    padding:0!important;
}

body.ig-preview-page .ig-home #mainHeroSlider {
    height:clamp(460px,38vw,650px)!important;
    min-height:0!important;
    border-radius:0!important;
    background:#10141b!important;
    overflow:hidden!important;
}

body.ig-preview-page .ig-home
#mainHeroSlider .slide {
    height:100%!important;
    min-height:0!important;
    background-size:cover!important;
    background-position:center!important;
}

body.ig-preview-page .ig-home
#mainHeroSlider .slide::after {
    background:
        linear-gradient(270deg,
            rgba(0,0,0,.86) 0%,
            rgba(0,0,0,.48) 35%,
            transparent 76%),
        linear-gradient(0deg,
            rgba(0,0,0,.28),
            transparent 42%)!important;
}

body.ig-preview-page .ig-home
#mainHeroSlider .banner-content {
    min-height:0!important;
    width:min(48%,660px)!important;
    padding:48px clamp(28px,5vw,84px)!important;
    box-sizing:border-box!important;
}

body.ig-preview-page .ig-home
#mainHeroSlider .banner-content h2 {
    color:#fff!important;
    font-size:clamp(34px,4vw,64px)!important;
    font-weight:800!important;
    line-height:1.25!important;
    letter-spacing:-1px!important;
}

body.ig-preview-page .ig-home
#mainHeroSlider .banner-content p {
    color:#f1f3f5!important;
    font-size:17px!important;
    line-height:1.9!important;
}

body.ig-preview-page .ig-home
#mainHeroSlider a.banner-btn {
    background:#fff!important;
    color:#151820!important;
    border:2px solid #fff!important;
    border-radius:999px!important;
    padding:12px 32px!important;
    font-weight:800!important;
    box-shadow:none!important;
}

body.ig-preview-page .ig-home
#ig-slider .ig-thumbnails {
    display:flex!important;
    justify-content:center!important;
    gap:12px!important;
    padding:18px 20px!important;
    background:#fff!important;
}

body.ig-preview-page .ig-home
#ig-slider .ig-thumbnails .dot {
    width:clamp(90px,11vw,160px)!important;
    height:auto!important;
    aspect-ratio:16/9!important;
    border-radius:8px!important;
    flex-shrink:0!important;
    opacity:.72!important;
}

body.ig-preview-page .ig-home
#ig-slider .ig-thumbnails .dot.active {
    opacity:1!important;
    outline:3px solid var(--ig-v17-blue)!important;
    outline-offset:3px!important;
}

/* Square artwork collections */

body.ig-preview-page .ig-home
:is(#ig-square_games,#ig-most_wanted) {
    padding:12px clamp(16px,4vw,64px)!important;
    margin:0 auto 40px!important;
    max-width:1600px!important;
    box-sizing:border-box!important;
}

body.ig-preview-page .ig-home
:is(#ig-square_games,#ig-most_wanted)
:is(.sq-container,.mw-section) {
    max-width:none!important;
    width:100%!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
}

body.ig-preview-page .ig-home
#ig-square_games .sq-grid,
body.ig-preview-page .ig-home
#ig-most_wanted .mw-slider {
    display:grid!important;
    grid-template-columns:none!important;
    grid-auto-flow:column!important;
    grid-auto-columns:calc((100% - 72px)/5)!important;
    gap:18px!important;
    overflow-x:auto!important;
    scroll-snap-type:x mandatory!important;
    padding:6px 4px 18px!important;
    scrollbar-width:thin!important;
}

body.ig-preview-page .ig-home
:is(#ig-square_games,#ig-most_wanted)
:is(.sq-card,.mw-card,.sq-link) {
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    border:0!important;
    box-shadow:none!important;
    background:transparent!important;
    border-radius:9px!important;
    scroll-snap-align:start!important;
}

body.ig-preview-page .ig-home
:is(#ig-square_games,#ig-most_wanted)
:is(.sq-imgbox,.mw-img-wrap,.mw-img-inner) {
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:1/1!important;
    border-radius:9px!important;
    border:0!important;
    padding:0!important;
    overflow:hidden!important;
    clip-path:none!important;
    mask:none!important;
    -webkit-mask:none!important;
    box-shadow:none!important;
}

body.ig-preview-page .ig-home
:is(#ig-square_games,#ig-most_wanted)
:is(img.sq-img,img.mw-img) {
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    object-fit:cover!important;
    border-radius:9px!important;
    clip-path:none!important;
    mask:none!important;
    -webkit-mask:none!important;
    transform:none!important;
}

body.ig-preview-page .ig-home
:is(.sq-title,.mw-title) {
    font-size:clamp(24px,2.5vw,34px)!important;
    font-weight:800!important;
    color:#25282d!important;
}

@media (hover:hover) {
    body.ig-preview-page .ig-home
    :is(#ig-square_games,#ig-most_wanted)
    :is(.sq-card,.mw-card):hover {
        outline:3px solid #0068bd!important;
        outline-offset:3px!important;
        transform:none!important;
    }
}

@media(max-width:767px) {

    body.ig-preview-page .ig-home #mainHeroSlider {
        height:460px!important;
    }

    body.ig-preview-page .ig-home
    #mainHeroSlider .slide::after {
        background:linear-gradient(
            0deg,
            rgba(0,0,0,.92),
            rgba(0,0,0,.4) 45%,
            transparent 82%
        )!important;
    }

    body.ig-preview-page .ig-home
    #mainHeroSlider .banner-content {
        width:100%!important;
        height:100%!important;
        justify-content:flex-end!important;
        align-items:center!important;
        text-align:center!important;
        padding:24px 20px 30px!important;
    }

    body.ig-preview-page .ig-home
    #mainHeroSlider .banner-content h2 {
        font-size:32px!important;
    }

    body.ig-preview-page .ig-home
    #mainHeroSlider .banner-content p {
        font-size:14px!important;
    }

    body.ig-preview-page .ig-home
    #ig-slider .ig-thumbnails {
        justify-content:flex-start!important;
        overflow-x:auto!important;
        gap:10px!important;
        padding:14px 16px!important;
    }

    body.ig-preview-page .ig-home
    #ig-slider .ig-thumbnails .dot {
        width:84px!important;
    }

    body.ig-preview-page .ig-home
    #ig-square_games .sq-grid,
    body.ig-preview-page .ig-home
    #ig-most_wanted .mw-slider {
        grid-auto-columns:42%!important;
        gap:12px!important;
    }
}

@media(prefers-reduced-motion:reduce) {
    body.ig-preview-page .ig-home
    :is(.sq-card,.mw-card) {
        transition:none!important;
    }
}


/* ISTORZ GAMING V18 — Clean Store Rhythm */

body.ig-preview-page .ig-home
#mainHeroSlider .slide::after {
    background:linear-gradient(
        270deg,
        rgba(0,0,0,.78),
        rgba(0,0,0,.28) 38%,
        transparent 78%
    )!important;
}

body.ig-preview-page .ig-home
#mainHeroSlider .banner-content {
    margin:0!important;
    margin-inline-end:auto!important;
    text-align:start!important;
    align-items:flex-start!important;
}

body.ig-preview-page .ig-home
#mainHeroSlider .banner-content h2 {
    text-shadow:0 2px 18px rgba(0,0,0,.45)!important;
}

/* Hide visual scrollbars, preserve scrolling */

body.ig-preview-page .ig-home
:is(
    .sq-grid,
    .mw-slider,
    .ig-top-track,
    .ig-catalog-track,
    .ig-rw-track
) {
    scrollbar-width:none!important;
    -ms-overflow-style:none;
}

body.ig-preview-page .ig-home
:is(
    .sq-grid,
    .mw-slider,
    .ig-top-track,
    .ig-catalog-track,
    .ig-rw-track
)::-webkit-scrollbar {
    display:none!important;
}

/* Consistent section headings */

body.ig-preview-page .ig-home
:is(
    .ig-top-heading h2,
    .ig-catalog-head h2,
    .ig-explore-heading h2,
    .mw-title,
    .sq-title
) {
    font-size:clamp(25px,2.2vw,34px)!important;
    font-weight:800!important;
    line-height:1.45!important;
    color:#25282d!important;
    letter-spacing:0!important;
}

/* Best sellers */

body.ig-preview-page .ig-home .ig-top-card {
    flex:0 0 clamp(230px,22vw,330px)!important;
}

body.ig-preview-page .ig-home .ig-top-rank {
    font-family:Arial,sans-serif!important;
    font-size:clamp(78px,8vw,130px)!important;
    font-weight:900!important;
    line-height:.9!important;
    color:#25282d!important;
    letter-spacing:-5px!important;
}

body.ig-preview-page .ig-home .ig-top-cover {
    border-radius:10px!important;
}

body.ig-preview-page .ig-home
:is(.ig-top-card,.ig-catalog-card) h3 {
    font-size:15px!important;
    line-height:1.65!important;
    font-weight:700!important;
    min-height:48px!important;
}

body.ig-preview-page .ig-home
:is(.ig-top-price,.ig-catalog-price) strong {
    font-size:17px!important;
    color:#25282d!important;
    font-weight:800!important;
}

body.ig-preview-page .ig-home
:is(.ig-top-controls,.ig-catalog-arrows) button {
    width:40px!important;
    height:40px!important;
    border-radius:50%!important;
    background:#fff!important;
    border:1px solid #dce1e6!important;
    color:#25282d!important;
}

@media(hover:hover) {
    body.ig-preview-page .ig-home
    :is(.ig-top-controls,.ig-catalog-arrows) button:hover {
        background:#0068bd!important;
        border-color:#0068bd!important;
        color:#fff!important;
    }
}

@media(max-width:767px) {

    body.ig-preview-page .ig-home
    #mainHeroSlider .slide::after {
        background:linear-gradient(
            0deg,
            rgba(0,0,0,.90),
            rgba(0,0,0,.22) 60%,
            transparent 85%
        )!important;
    }

    body.ig-preview-page .ig-home
    #mainHeroSlider .banner-content {
        align-items:center!important;
        text-align:center!important;
    }

    body.ig-preview-page .ig-home .ig-top-card {
        flex-basis:65%!important;
    }

    body.ig-preview-page .ig-home .ig-top-rank {
        font-size:78px!important;
    }

    body.ig-preview-page .ig-home
    :is(.ig-top-card,.ig-catalog-card) h3 {
        font-size:13px!important;
    }
}


/* ISTORZ GAMING V19 - Independent Artwork Grid */

body.ig-preview-page .ig-home
#ig-most_wanted {
    width:100%!important;
    max-width:1600px!important;
    margin:0 auto 48px!important;
    padding:16px clamp(16px,4vw,64px)!important;
    box-sizing:border-box!important;
    background:#fff!important;
}

.ig19-wanted {
    width:100%;
    direction:rtl;
    background:#fff;
}

.ig19-heading {
    margin-bottom:22px;
}

.ig19-heading h2 {
    margin:0;
    font-family:inherit;
    font-size:clamp(25px,2.5vw,34px);
    line-height:1.5;
    font-weight:800;
    color:#25282d;
}

.ig19-grid {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:28px 18px;
}

body.ig-preview-page .ig-home .ig19-card {
    display:block!important;
    min-width:0;
    width:100%;
    color:#25282d;
    text-decoration:none;
    background:transparent;
    border:0;
    box-shadow:none;
}

body.ig-preview-page .ig-home .ig19-cover {
    position:relative;
    width:100%;
    aspect-ratio:1/1;
    overflow:hidden;
    border-radius:9px!important;
    background:#f1f3f5;
    transition:outline-color .18s ease;
}

body.ig-preview-page .ig-home
.ig19-cover img {
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    border-radius:0!important;
    opacity:1!important;
    filter:none!important;
    transform:none!important;
    clip-path:none!important;
    mask:none!important;
    -webkit-mask:none!important;
}

.ig19-card h3 {
    font-family:inherit;
    color:#25282d;
    font-size:15px;
    font-weight:700;
    line-height:1.7;
    margin:10px 2px 0;
    overflow-wrap:anywhere;
}

.ig19-discount {
    position:absolute;
    inset-block-start:10px;
    inset-inline-start:10px;
    border-radius:4px;
    background:#0068bd;
    color:#fff;
    font-size:12px;
    font-weight:800;
    padding:5px 9px;
    z-index:2;
}

.ig19-card:focus-visible .ig19-cover {
    outline:3px solid #0068bd;
    outline-offset:3px;
}

@media(hover:hover) {
    .ig19-card:hover .ig19-cover {
        outline:3px solid #0068bd;
        outline-offset:3px;
    }
}

@media(max-width:1024px) {
    .ig19-grid {
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
}

@media(max-width:767px) {
    .ig19-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:20px 12px;
    }

    .ig19-card h3 {
        font-size:13px;
    }

    .ig19-heading {
        margin-bottom:16px;
    }

    .ig19-discount {
        font-size:10px;
        padding:4px 6px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .ig19-cover {
        transition:none;
    }
}


/* ISTORZ GAMING V20 — Discover ISTORZ */

body.ig-preview-page .ig-home .ig-explore {
    width:100%!important;
    max-width:1600px!important;
    margin:0 auto 40px!important;
    padding:42px clamp(16px,4vw,64px)!important;
    background:#fff!important;
    box-sizing:border-box!important;
}

body.ig-preview-page .ig-home
.ig-explore-heading {
    text-align:center!important;
    margin:0 0 30px!important;
}

body.ig-preview-page .ig-home
.ig-explore-heading > span {
    color:#024F6D!important;
    font-size:11px!important;
    letter-spacing:3px!important;
    font-weight:800!important;
}

body.ig-preview-page .ig-home
.ig-explore-heading h2 {
    font-size:clamp(27px,3vw,40px)!important;
    font-weight:800!important;
    color:#25282d!important;
}

body.ig-preview-page .ig-home
.ig-explore-heading p {
    color:#727780!important;
    font-size:15px!important;
}

body.ig-preview-page .ig-home
.ig-explore-grid {
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:20px!important;
}

body.ig-preview-page .ig-home
.ig-explore-card {
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-end!important;
    align-items:center!important;
    aspect-ratio:16/9!important;
    min-height:120px!important;
    padding:22px 14px!important;
    border-radius:10px!important;
    border:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    isolation:isolate!important;
    box-sizing:border-box!important;
    background:linear-gradient(
        135deg,
        var(--ig20-start,#052d63),
        var(--ig20-end,#0073d1)
    )!important;
    transition:transform .22s ease,
        box-shadow .22s ease!important;
}

.ig-explore-card:nth-child(6n+1) {
    --ig20-start:#052d63;
    --ig20-end:#0073d1;
}

.ig-explore-card:nth-child(6n+2) {
    --ig20-start:#192339;
    --ig20-end:#465b81;
}

.ig-explore-card:nth-child(6n+3) {
    --ig20-start:#002e40;
    --ig20-end:#087c9c;
}

.ig-explore-card:nth-child(6n+4) {
    --ig20-start:#39205e;
    --ig20-end:#7651b3;
}

.ig-explore-card:nth-child(6n+5) {
    --ig20-start:#134034;
    --ig20-end:#21856c;
}

.ig-explore-card:nth-child(6n+6) {
    --ig20-start:#732641;
    --ig20-end:#c04b64;
}

body.ig-preview-page .ig-home
.ig-explore-decoration {
    position:absolute!important;
    inset:auto!important;
    top:-65%!important;
    left:-20%!important;
    width:100%!important;
    aspect-ratio:1/1!important;
    border:22px solid rgba(255,255,255,.05)!important;
    border-radius:24%!important;
    transform:rotate(35deg)!important;
    background:rgba(255,255,255,.03)!important;
    pointer-events:none!important;
}

body.ig-preview-page .ig-home
.ig-explore-card i {
    position:absolute!important;
    top:8%!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    font-size:clamp(36px,5vw,76px)!important;
    opacity:.45!important;
    color:#fff!important;
    line-height:1!important;
    transition:transform .25s ease!important;
    pointer-events:none!important;
}

body.ig-preview-page .ig-home
.ig-explore-card > span {
    position:relative!important;
    z-index:2!important;
    color:#fff!important;
    font-size:clamp(15px,1.6vw,24px)!important;
    font-weight:800!important;
    line-height:1.5!important;
    text-align:center!important;
    text-shadow:0 2px 8px rgba(0,0,0,.3)!important;
}

body.ig-preview-page .ig-home
.ig-explore-card:focus-visible {
    outline:3px solid #0068bd!important;
    outline-offset:4px!important;
}

@media(hover:hover) {

    body.ig-preview-page .ig-home
    .ig-explore-card:hover {
        transform:translateY(-4px)!important;
        outline:3px solid #0068bd!important;
        outline-offset:4px!important;
        box-shadow:0 12px 24px rgba(0,0,0,.13)!important;
    }

    body.ig-preview-page .ig-home
    .ig-explore-card:hover i {
        transform:translateX(-50%) scale(1.08)!important;
    }
}

@media(max-width:1024px) {

    body.ig-preview-page .ig-home
    .ig-explore-grid {
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        gap:16px!important;
    }
}

@media(max-width:767px) {

    body.ig-preview-page .ig-home
    .ig-explore {
        padding:28px 16px!important;
    }

    body.ig-preview-page .ig-home
    .ig-explore-grid {
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:12px!important;
    }

    body.ig-preview-page .ig-home
    .ig-explore-card {
        min-height:106px!important;
        padding:12px 8px!important;
        border-radius:8px!important;
    }

    body.ig-preview-page .ig-home
    .ig-explore-card i {
        font-size:38px!important;
        top:12%!important;
    }

    body.ig-preview-page .ig-home
    .ig-explore-card > span {
        font-size:14px!important;
    }
}

@media(prefers-reduced-motion:reduce) {

    body.ig-preview-page .ig-home
    .ig-explore-card,
    body.ig-preview-page .ig-home
    .ig-explore-card i {
        transition:none!important;
    }
}
