/*
 * Shopify parity for the native TEST home-page blocks.
 * Scope: hero slider through the EB GEAR product block.
 */

body.home sr7-module[id^="SR7_"] {
    margin-bottom: 30px !important;
}

body.home .eb-home-products-section:not(.eb-home-gear-section) {
    padding-top: 92px !important;
}

body.home .eb-home-products-section .eb-home-products-header {
    min-height: 50px !important;
    gap: 25px !important;
    margin-bottom: 25px !important;
}

body.home .eb-home-products-section:not(.eb-home-gear-section) .eb-home-products-title {
    font-size: 20px !important;
    line-height: 25px !important;
}

body.home .eb-home-products-section .eb-home-products-view-all {
    font-size: 15px !important;
    line-height: 26px !important;
}

body.home .eb-home-products-section:not(.eb-home-gear-section) ul.products {
    width: calc(100% + 15px) !important;
    max-width: none !important;
    margin-left: -7.5px !important;
    margin-right: -7.5px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 0 !important;
    row-gap: 10px !important;
}

body.home .eb-home-products-section:not(.eb-home-gear-section) ul.products > li.product {
    padding-left: 22.5px !important;
    padding-right: 22.5px !important;
}

body.home .eb-home-products-section:not(.eb-home-gear-section) .product-image {
    box-sizing: content-box !important;
    height: auto !important;
    min-height: 216px !important;
    aspect-ratio: 1 / 1 !important;
    padding-top: 13px !important;
}

body.home .eb-home-products-section:not(.eb-home-gear-section) .product-image > .inner {
    top: 13px !important;
    bottom: auto !important;
    height: 100% !important;
}

body.home .eb-home-products-section:not(.eb-home-gear-section) .product-image > .inner img {
    height: 100% !important;
}

body.home .eb-home-products-section:not(.eb-home-gear-section) .price {
    margin-bottom: 0 !important;
}

body.home .eb-home-service-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 50px !important;
    margin-bottom: 30px !important;
}

body.home .eb-home-gear-section {
    padding-top: 40px !important;
    padding-bottom: 95px !important;
}

body.home .eb-home-gear-section .eb-home-products-header {
    min-height: 45px !important;
    align-items: flex-end !important;
    margin-bottom: 35px !important;
}

body.home .eb-home-gear-section ul.products {
    width: calc(100% + 30px) !important;
    max-width: none !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 0 !important;
    row-gap: 10px !important;
}

body.home .eb-home-gear-section ul.products > li.product {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

body.home .eb-home-gear-section .add-links-wrap {
    display: none !important;
}

@media (max-width: 767px) {
    body.home sr7-module[id^="SR7_"] {
        height: 540px !important;
        min-height: 540px !important;
        aspect-ratio: auto !important;
    }

    body.home .eb-home-products-section:not(.eb-home-gear-section) {
        padding-top: 55px !important;
    }

    body.home .eb-home-products-section:not(.eb-home-gear-section) .eb-home-products-header {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }

    body.home .eb-home-products-section:not(.eb-home-gear-section) ul.products {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 0 !important;
        row-gap: 10px !important;
    }

    body.home .eb-home-products-section:not(.eb-home-gear-section) ul.products > li.product {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.home .eb-home-service-section {
        margin-top: 40px !important;
        margin-bottom: 30px !important;
    }

    body.home .eb-home-service-list {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 15px !important;
        min-height: 175px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none;
    }

    body.home .eb-home-service-list::-webkit-scrollbar {
        display: none;
    }

    body.home .eb-home-service-item {
        flex: 0 0 83% !important;
        min-height: 175px !important;
    }

    body.home .eb-home-gear-section {
        padding-top: 20px !important;
        padding-bottom: 102px !important;
    }

    body.home .eb-home-gear-section .eb-home-products-header {
        min-height: 37.5px !important;
        margin-bottom: 0 !important;
        align-items: flex-end !important;
    }

    body.home .eb-home-gear-section ul.products {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.home .eb-home-gear-section ul.products > li.product:nth-child(n+3) {
        display: none !important;
    }
}

@media (max-width: 479px) {
    body.home .eb-home-service-item {
        flex-basis: calc(100% - 62px) !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    body.home sr7-module[id^="SR7_"] {
        height: 510px !important;
        min-height: 510px !important;
        aspect-ratio: auto !important;
    }

    body.home .eb-home-products-section:not(.eb-home-gear-section) ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.home .eb-home-service-section {
        margin-top: 40px !important;
        margin-bottom: 30px !important;
    }

    body.home .eb-home-service-list {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        min-height: 175px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none;
    }

    body.home .eb-home-service-item {
        flex: 0 0 64% !important;
        min-height: 175px !important;
    }

    body.home .eb-home-gear-section {
        padding-top: 20px !important;
        padding-bottom: 60px !important;
    }

    body.home .eb-home-gear-section .eb-home-products-header {
        min-height: 45px !important;
        margin-bottom: 25px !important;
    }

    body.home .eb-home-gear-section ul.products {
        width: calc(100% + 20px) !important;
        margin-left: -10px !important;
        margin-right: -10px !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.home .eb-home-gear-section ul.products > li.product:nth-child(n+4) {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    body.home .eb-home-products-section:not(.eb-home-gear-section) ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    body.home .eb-home-service-section {
        margin-top: 40px !important;
        margin-bottom: 30px !important;
    }

    body.home .eb-home-service-list {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        min-height: 175px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none;
    }

    body.home .eb-home-service-item {
        flex: 0 0 64% !important;
        min-height: 175px !important;
    }

    body.home .eb-home-gear-section {
        padding-top: 20px !important;
        padding-bottom: 60px !important;
    }

    body.home .eb-home-gear-section .eb-home-products-header {
        min-height: 45px !important;
        margin-bottom: 25px !important;
    }

    body.home .eb-home-gear-section ul.products {
        width: calc(100% + 20px) !important;
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
}

@media (min-width: 992px) and (max-width: 1024px) {
    body.home sr7-module[id^="SR7_"] {
        height: 510px !important;
        min-height: 510px !important;
        aspect-ratio: auto !important;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    body.home sr7-module[id^="SR7_"] {
        height: 394px !important;
        min-height: 394px !important;
        aspect-ratio: auto !important;
    }
}

@media (min-width: 1200px) {
    body.home sr7-module[id^="SR7_"],
    body.home .page-content > [class*="eb-home-"],
    body.home .page-content > .wpb-content-wrapper > [class*="eb-home-"] {
        width: calc(100vw - 60px) !important;
        max-width: none !important;
        margin-left: 30px !important;
        margin-right: 0 !important;
    }
}
