/*
 * Presentation adapters for native home-page blocks.
 */

/* Slider Revolution owns its canvas size, responsive heights, initialized
 * layers, timing, backgrounds, actions and transitions.  Hide only layer
 * nodes that have not received any runtime style yet; this prevents the
 * browser's default H2/H3/custom-element styles flashing at page load. */
body.home sr7-module {
    margin-bottom: 0 !important;
}

body.home sr7-module .sr7-layer:not([style]),
body.home sr7-module .sr7-layer[style=""] {
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Home hero layout uses stable Slider Revolution element names and classes
 * independently of generated module, slide and layer identifiers. */
body.home sr7-module {
  aspect-ratio: 3 / 1 !important;
  height: auto !important;
}

body.home sr7-module > sr7-adjuster,
body.home sr7-module > sr7-content,
body.home sr7-module sr7-slide,
body.home sr7-module sr7-mask,
body.home sr7-module sr7-bg,
body.home sr7-module sr7-bg > canvas {
  height: 100% !important;
}

body.home sr7-module > sr7-content {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
}

body.home sr7-module sr7-slide,
body.home sr7-module sr7-mask,
body.home sr7-module sr7-bg,
body.home sr7-module sr7-bg > canvas {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
}

body.home sr7-module sr7-slide:not(.sr7-staticslide) > h2.sr7-layer,
body.home sr7-module sr7-slide:not(.sr7-staticslide) > h3.sr7-layer,
body.home sr7-module sr7-slide:not(.sr7-staticslide) > sr7-btn.sr7-layer {
  left: calc(25% - 162.5px) !important;
  font-family: Montserrat, sans-serif !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

body.home sr7-module sr7-slide:not(.sr7-staticslide) > h2.sr7-layer {
  top: calc(75% - 162.5px) !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  padding: 10px !important;
  font-size: 45px !important;
  font-weight: 700 !important;
  line-height: 40px !important;
  color: #232323 !important;
  background: #ff672d !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body.home sr7-module sr7-slide:not(.sr7-staticslide) > h2.sr7-layer:not(:first-of-type) {
  display: none !important;
}

body.home sr7-module sr7-slide:not(.sr7-staticslide) > h3.sr7-layer {
  top: calc(75% - 96px) !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  padding: 10px !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 22px !important;
  color: #232323 !important;
  background: #ff672d !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body.home sr7-module sr7-slide:not(.sr7-staticslide) > sr7-btn.sr7-layer {
  top: calc(75% - 21.5px) !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  width: 195px !important;
  min-width: 195px !important;
  height: 44px !important;
  padding: 10px 15px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 22px !important;
  letter-spacing: .01em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  color: #fff !important;
  background: #6e0087 !important;
  border: 1px solid #6e0087 !important;
  border-radius: 0 !important;
  transition: color 0.5s cubic-bezier(.25, .46, .45, .94), background-color 0.5s cubic-bezier(.25, .46, .45, .94), background 0.5s cubic-bezier(.25, .46, .45, .94), border 0.5s cubic-bezier(.25, .46, .45, .94) !important;
}

body.home sr7-module sr7-slide:not(.sr7-staticslide) > sr7-btn.sr7-layer:hover {
  color: #232323 !important;
  background: #ff672d !important;
  border-color: #ff672d !important;
}

body.home sr7-module sr7-slide:not(.sr7-staticslide) > sr7-btn.sr7-layer:focus,
body.home sr7-module sr7-slide:not(.sr7-staticslide) > sr7-btn.sr7-layer:focus-visible,
body.home sr7-module sr7-slide:not(.sr7-staticslide) > sr7-btn.sr7-layer:active {
  color: #232323 !important;
  background: #ff672d !important;
  border-color: #ff672d !important;
  outline: 0 !important;
  box-shadow: none !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
  body.home sr7-module sr7-slide:not(.sr7-staticslide) > h2.sr7-layer,
  body.home sr7-module sr7-slide:not(.sr7-staticslide) > h3.sr7-layer,
  body.home sr7-module sr7-slide:not(.sr7-staticslide) > sr7-btn.sr7-layer {
    left: clamp(36.5px, calc(7vw - 16px), 54.5px) !important;
  }

  body.home sr7-module sr7-slide:not(.sr7-staticslide) > h2.sr7-layer {
    top: calc(50% - 70px) !important;
    font-size: 24px !important;
    line-height: 24px !important;
  }

  body.home sr7-module sr7-slide:not(.sr7-staticslide) > h3.sr7-layer {
    top: calc(50% - 36.5px) !important;
  }

  body.home sr7-module sr7-slide:not(.sr7-staticslide) > sr7-btn.sr7-layer {
    top: calc(50% + 27px) !important;
  }
}

@media (max-width: 767px) {
  body.home sr7-module {
    aspect-ratio: 15 / 22 !important;
  }

  body.home sr7-module sr7-slide:not(.sr7-staticslide) > sr7-img.sr7-layer {
    left: 0 !important;
    top: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  body.home sr7-module sr7-slide:not(.sr7-staticslide) > h2.sr7-layer,
  body.home sr7-module sr7-slide:not(.sr7-staticslide) > h3.sr7-layer,
  body.home sr7-module sr7-slide:not(.sr7-staticslide) > sr7-btn.sr7-layer {
    left: 25px !important;
  }

  body.home sr7-module sr7-slide:not(.sr7-staticslide) > h2.sr7-layer {
    top: calc(50% - 78px) !important;
    padding: 10px !important;
    font-size: 24px !important;
    line-height: 24px !important;
  }

  body.home sr7-module sr7-slide:not(.sr7-staticslide) > h2.sr7-layer:not(:last-of-type) {
    display: none !important;
  }

  body.home sr7-module sr7-slide:not(.sr7-staticslide) > h2.sr7-layer:last-of-type {
    display: inline-block !important;
  }

  body.home sr7-module sr7-slide:not(.sr7-staticslide) > h3.sr7-layer {
    top: calc(50% - 21px) !important;
    font-size: 16px !important;
    line-height: 22px !important;
  }

  body.home sr7-module sr7-slide:not(.sr7-staticslide) > sr7-btn.sr7-layer {
    top: calc(50% + 36px) !important;
  }
}

@media (max-width: 551px) {
  body.home sr7-module sr7-slide:not(.sr7-staticslide) > h2.sr7-layer {
    top: calc(50% - 75px) !important;
  }

  body.home sr7-module sr7-slide:not(.sr7-staticslide) > h3.sr7-layer {
    top: calc(50% - 18px) !important;
  }

  body.home sr7-module sr7-slide:not(.sr7-staticslide) > sr7-btn.sr7-layer {
    top: calc(50% + 39px) !important;
    height: 38px !important;
    padding: 7px 15px !important;
  }
}

body.home .storefront-home-products-section:not(.storefront-home-gear-section) {
    padding-top: 21px !important;
}

body.home .storefront-home-gear-section .storefront-home-products-header {
    min-height: 50px !important;
    gap: 25px !important;
    margin-bottom: 25px !important;
}

body.home .storefront-home-products-section:not(.storefront-home-gear-section) .storefront-home-products-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 22px !important;
    text-transform: uppercase !important;
}

body.home .storefront-home-gear-section .storefront-home-products-view-all {
    font-size: 15px !important;
    line-height: 26px !important;
}

/* Product-card and product-grid internals are owned by the shared assets. */


body.home .storefront-home-gear-section {
    padding-top: 40px !important;
    padding-bottom: 95px !important;
}

body.home .storefront-home-gear-section .storefront-home-products-header {
    min-height: 45px !important;
    align-items: flex-end !important;
    margin-bottom: 35px !important;
}

body.home .storefront-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 .storefront-home-gear-section ul.products > li.product {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

body.home .storefront-home-gear-section .add-links-wrap {
    display: none !important;
}

@media (max-width: 767px) {
    body.home {
        --storefront-page-gutter: 15px;
    }

    body.home .storefront-home-products-section:not(.storefront-home-gear-section) {
        padding-top: 16px !important;
    }

    body.home .storefront-home-products-section:not(.storefront-home-gear-section) .storefront-home-products-header {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }


    body.home .storefront-home-gear-section {
        padding-top: 20px !important;
        padding-bottom: 102px !important;
    }

    body.home .storefront-home-gear-section .storefront-home-products-header {
        min-height: 37.5px !important;
        margin-bottom: 0 !important;
        align-items: flex-end !important;
    }

    body.home .storefront-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 .storefront-home-gear-section ul.products > li.product:nth-child(n+3) {
        display: none !important;
    }
}


@media (min-width: 768px) and (max-width: 991px) {

    body.home .storefront-home-gear-section {
        padding-top: 20px !important;
        padding-bottom: 60px !important;
    }

    body.home .storefront-home-gear-section .storefront-home-products-header {
        min-height: 45px !important;
        margin-bottom: 25px !important;
    }

    body.home .storefront-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 .storefront-home-gear-section ul.products > li.product:nth-child(n+4) {
        display: none !important;
    }
}

@media (max-width: 551px) {
    body.home {
        --storefront-page-gutter: 10px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {

    body.home .storefront-home-gear-section {
        padding-top: 20px !important;
        padding-bottom: 60px !important;
    }

    body.home .storefront-home-gear-section .storefront-home-products-header {
        min-height: 45px !important;
        margin-bottom: 25px !important;
    }

    body.home .storefront-home-gear-section ul.products {
        width: calc(100% + 20px) !important;
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
}

@media (min-width: 1200px) {
    body.home .page-content > [class*="storefront-home-"]:not(.storefront-home-service-section),
    body.home .page-content > .wpb-content-wrapper > [class*="storefront-home-"]:not(.storefront-home-service-section) {
        width: calc(100vw - 60px) !important;
        max-width: none !important;
        margin-left: 30px !important;
        margin-right: 0 !important;
    }
}

/* Keep the primary product section inside the page-content box on wide screens. */
@media (min-width: 1200px) {
    body.home .page-content > .storefront-home-products-section:not(.storefront-home-gear-section),
    body.home .page-content > .wpb-content-wrapper > .storefront-home-products-section:not(.storefront-home-gear-section) {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
