/*
 * 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: "Jost", Arial, sans-serif !important;
  letter-spacing: .05em !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: #ffc107 !important;
  background: #000 !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: #ffc107 !important;
  background: #000 !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-family: var(--storefront-font-ui, "Montserrat", Arial, sans-serif) !important;
  font-weight: 700 !important;
  line-height: 22px !important;
  letter-spacing: .05em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  color: #000 !important;
  background: #ffc107 !important;
  border: 1px solid #000 !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: #ffc107 !important;
  background: #000 !important;
  border-color: #000 !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: #ffc107 !important;
  background: #000 !important;
  border-color: #000 !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: 44px !important;
    padding: 10px 15px !important;
  }
}

/* Product-card and product-grid internals are owned by the shared assets. */

@media (max-width: 767px) {
    body.home {
        --storefront-page-gutter: 15px;
    }

}

@media (max-width: 551px) {
    body.home {
        --storefront-page-gutter: 10px;
    }
}

/* Keep the primary product section inside the page-content box on wide screens. */

