/* =========================================================
   TECNICHKOS PRODUCTS V8.4.6
   REAL TOP .product-grid ONLY
   ========================================================= */


/* GRID */

body.products-v84
main .product-grid {

    display:
        grid !important;

    grid-template-columns:
        repeat(4,minmax(0,1fr)) !important;

    gap:
        18px !important;
}


/* ALL 8 DIRECT PRODUCT TILES */

body.products-v84
main .product-grid > * {

    position:
        relative !important;

    isolation:
        isolate !important;

    display:
        flex !important;

    flex-direction:
        column !important;

    justify-content:
        flex-end !important;

    min-height:
        285px !important;

    padding:
        26px 24px !important;

    overflow:
        hidden !important;

    border:
        1px solid
        rgba(255,255,255,.12) !important;

    border-radius:
        22px !important;

    background-color:
        #071827 !important;

    background-size:
        cover !important;

    background-position:
        center !important;

    background-repeat:
        no-repeat !important;

    box-shadow:
        0 16px 42px
        rgba(7,24,39,.11);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease,
        background-size .45s ease;
}


/* =========================================================
   IMAGE + OVERLAY DIRECTLY ON CARD BACKGROUND
   This avoids every old ::before conflict.
   ========================================================= */


/* 43 Computer */

body.products-v84
main .product-grid > *:nth-child(1) {

    background-image:
        linear-gradient(
            180deg,
            rgba(2,11,20,.05) 0%,
            rgba(2,11,20,.14) 38%,
            rgba(2,11,20,.72) 72%,
            rgba(2,11,20,.95) 100%
        ),
        var(--product-slot-43) !important;
}


/* 44 Server */

body.products-v84
main .product-grid > *:nth-child(2) {

    background-image:
        linear-gradient(
            180deg,
            rgba(2,11,20,.05) 0%,
            rgba(2,11,20,.14) 38%,
            rgba(2,11,20,.72) 72%,
            rgba(2,11,20,.95) 100%
        ),
        var(--product-slot-44) !important;
}


/* 45 Networking */

body.products-v84
main .product-grid > *:nth-child(3) {

    background-image:
        linear-gradient(
            180deg,
            rgba(2,11,20,.05) 0%,
            rgba(2,11,20,.14) 38%,
            rgba(2,11,20,.72) 72%,
            rgba(2,11,20,.95) 100%
        ),
        var(--product-slot-45) !important;
}


/* 46 CCTV */

body.products-v84
main .product-grid > *:nth-child(4) {

    background-image:
        linear-gradient(
            180deg,
            rgba(2,11,20,.05) 0%,
            rgba(2,11,20,.14) 38%,
            rgba(2,11,20,.72) 72%,
            rgba(2,11,20,.95) 100%
        ),
        var(--product-slot-46) !important;
}


/* 47 Audio Video */

body.products-v84
main .product-grid > *:nth-child(5) {

    background-image:
        linear-gradient(
            180deg,
            rgba(2,11,20,.05) 0%,
            rgba(2,11,20,.14) 38%,
            rgba(2,11,20,.72) 72%,
            rgba(2,11,20,.95) 100%
        ),
        var(--product-slot-47) !important;
}


/* 48 Smart Home */

body.products-v84
main .product-grid > *:nth-child(6) {

    background-image:
        linear-gradient(
            180deg,
            rgba(2,11,20,.05) 0%,
            rgba(2,11,20,.14) 38%,
            rgba(2,11,20,.72) 72%,
            rgba(2,11,20,.95) 100%
        ),
        var(--product-slot-48) !important;
}


/* 49 UPS */

body.products-v84
main .product-grid > *:nth-child(7) {

    background-image:
        linear-gradient(
            180deg,
            rgba(2,11,20,.05) 0%,
            rgba(2,11,20,.14) 38%,
            rgba(2,11,20,.72) 72%,
            rgba(2,11,20,.95) 100%
        ),
        var(--product-slot-49) !important;
}


/* 50 Accessories */

body.products-v84
main .product-grid > *:nth-child(8) {

    background-image:
        linear-gradient(
            180deg,
            rgba(2,11,20,.05) 0%,
            rgba(2,11,20,.14) 38%,
            rgba(2,11,20,.72) 72%,
            rgba(2,11,20,.95) 100%
        ),
        var(--product-slot-50) !important;
}


/* =========================================================
   REMOVE OLD DARK PSEUDO LAYERS FROM TOP GRID ONLY
   ========================================================= */

body.products-v84
main .product-grid > *::before,

body.products-v84
main .product-grid > *::after {

    display:
        none !important;

    content:
        none !important;
}


/* =========================================================
   TEXT
   ========================================================= */

body.products-v84
main .product-grid > * {

    color:
        #ffffff !important;
}


body.products-v84
main .product-grid h2,

body.products-v84
main .product-grid h3,

body.products-v84
main .product-grid strong {

    color:
        #ffffff !important;

    text-shadow:
        0 2px 18px
        rgba(0,0,0,.65);
}


body.products-v84
main .product-grid h3 {

    margin:
        0 0 12px !important;

    font-size:
        clamp(20px,1.45vw,24px);

    line-height:
        1.15;
}


body.products-v84
main .product-grid p {

    color:
        rgba(255,255,255,.84) !important;
}


/* TecnichKos label */

body.products-v84
main .product-grid small {

    color:
        #ff7a1a !important;

    font-weight:
        800 !important;

    letter-spacing:
        .08em;
}


/* CTA */

body.products-v84
main .product-grid a {

    color:
        #ff7a1a !important;

    font-weight:
        800 !important;

    text-decoration:
        none !important;
}


/* =========================================================
   HOVER
   ========================================================= */

@media (hover:hover) {

    body.products-v84
    main .product-grid > *:hover {

        transform:
            translateY(-7px);

        border-color:
            rgba(244,122,32,.45) !important;

        box-shadow:
            0 30px 68px
            rgba(7,24,39,.23);
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:1050px) {

    body.products-v84
    main .product-grid {

        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:620px) {

    body.products-v84
    main .product-grid {

        grid-template-columns:
            1fr !important;

        gap:
            15px !important;
    }


    body.products-v84
    main .product-grid > * {

        min-height:
            280px !important;

        padding:
            24px 22px !important;

        border-radius:
            18px !important;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

    body.products-v84
    main .product-grid > * {

        transition:
            none !important;
    }
}
