/* One shared collection component for Home and product pages. */
body:is(.home, .single-product) .sunday-home-featured {
  padding-right: clamp(22px, 3.2vw, 58px) !important;
  padding-left: clamp(22px, 3.2vw, 58px) !important;
}

body:is(.home, .single-product) .sunday-home-featured__inner {
  width: min(100%, 1660px) !important;
}

body:is(.home, .single-product) .sunday-home-featured__header {
  grid-template-columns: minmax(430px, 1.1fr) minmax(360px, .72fr) auto !important;
  gap: clamp(42px, 6vw, 108px) !important;
  margin-bottom: clamp(58px, 5vw, 78px) !important;
}

body:is(.home, .single-product) .sunday-home-featured__header h2 {
  max-width: 660px !important;
  font-size: clamp(50px, 4.35vw, 72px) !important;
  font-weight: 430 !important;
  line-height: .98 !important;
}

body:is(.home, .single-product) .sunday-home-featured__header p {
  max-width: 470px !important;
  font-size: clamp(15px, 1.05vw, 18px) !important;
  line-height: 1.38 !important;
}

body:is(.home, .single-product) .sunday-home-featured__header > a {
  font-size: 15px !important;
}

body:is(.home, .single-product) .sunday-home-featured__grid {
  gap: clamp(16px, 1.35vw, 24px) !important;
}

body:is(.home, .single-product) .sunday-home-featured__card,
body:is(.home, .single-product) .sunday-home-featured__card--2,
body:is(.home, .single-product) .sunday-home-featured__card--3,
body:is(.home, .single-product) .sunday-home-featured__card--4 {
  min-height: 600px !important;
  padding: 22px 22px 26px !important;
  border-radius: 20px !important;
}

body:is(.home, .single-product) .sunday-home-featured__meta {
  top: 16px !important;
  left: 16px !important;
}

body:is(.home, .single-product) .sunday-home-featured__meta span {
  min-height: 28px !important;
  padding: 5px 11px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body:is(.home, .single-product) .sunday-home-featured__identity {
  min-height: 106px !important;
  padding-top: 20px !important;
  gap: 11px !important;
}

body:is(.home, .single-product) .sunday-home-featured__identity > span {
  min-height: 28px !important;
  padding: 4px 11px !important;
  font-size: 14px !important;
}

body:is(.home, .single-product) .sunday-home-featured__card h3 {
  font-size: clamp(27px, 1.75vw, 34px) !important;
  font-weight: 450 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}

body:is(.home, .single-product) .sunday-home-featured__image {
  margin: 8px 0 14px !important;
  flex-basis: 330px !important;
}

body:is(.home, .single-product) .sunday-home-featured__image img {
  height: clamp(300px, 20vw, 354px) !important;
  max-width: 94% !important;
}

/* All featured cutouts now share the same canvas and alpha bounds. */
body:is(.home, .single-product) .sunday-home-featured__card--2 .sunday-home-featured__image img {
  transform: none !important;
  transform-origin: center center;
}

body:is(.home, .single-product) .sunday-home-featured__footer {
  min-height: 94px !important;
  gap: 13px !important;
}

body:is(.home, .single-product) .sunday-home-featured__cta {
  min-height: 50px !important;
  padding: 13px 28px !important;
  font-size: 16px !important;
  font-weight: 650 !important;
}

body:is(.home, .single-product) .sunday-home-featured__footer small {
  font-size: 13px !important;
  font-weight: 560 !important;
}

/* The behavior below was previously restricted to Home. It is now component-owned. */
.sunday-home-featured__card {
  position: relative !important;
  overflow: hidden !important;
  border: 0 !important;
  background: #42623c !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .3s ease !important;
}

.sunday-home-featured__meta {
  position: absolute !important;
  z-index: 4 !important;
  min-height: 24px !important;
}

.sunday-home-featured__meta span {
  border-radius: 999px !important;
  background: #d3fa99 !important;
  color: #1c3a13 !important;
  font-family: var(--sunday-ui-font) !important;
  letter-spacing: 0 !important;
}

.sunday-home-featured__identity {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 62px !important;
  flex-direction: column !important;
  transform: translateY(0) !important;
  transition: transform .3s ease !important;
}

.sunday-home-featured__identity > span {
  border: 1px solid rgba(255,255,255,.82) !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-family: var(--sunday-ui-font) !important;
  font-weight: 500 !important;
}

.sunday-home-featured__card h3 {
  margin: 0 !important;
  color: #fff !important;
  font-family: var(--sunday-ui-font) !important;
}

.sunday-home-featured__image {
  display: flex !important;
  min-height: 264px !important;
  height: 264px !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 264px !important;
  overflow: visible !important;
}

.sunday-home-featured__image img {
  display: block !important;
  width: auto !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  transform: scale(1) !important;
  transition: transform .3s ease !important;
}

.sunday-home-featured__footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 75px !important;
  flex-direction: column !important;
  transform: translateY(0) !important;
  transition: transform .3s ease !important;
}

.sunday-home-featured__cta,
.sunday-home-featured__card:last-child .sunday-home-featured__cta {
  display: inline-flex !important;
  width: auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #1c3a13 !important;
  color: #fcfcf7 !important;
  font-family: var(--sunday-ui-font) !important;
  transition: color .3s ease, background-color .3s ease, padding .3s ease !important;
}

.sunday-home-featured__cta-icon {
  display: inline-block !important;
  width: 0 !important;
  margin-left: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transform: translateX(-8px) !important;
  transition: width .3s ease, margin-left .3s ease, opacity .3s ease, transform .3s ease !important;
}

.sunday-home-featured__footer small {
  color: rgba(255,255,255,.72) !important;
  font-family: var(--sunday-ui-font) !important;
}

@media (hover: hover) and (pointer: fine) {
  .sunday-home-featured__card:hover,
  .sunday-home-featured__card:focus-within {
    background: #42623c !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .sunday-home-featured__card:hover .sunday-home-featured__identity,
  .sunday-home-featured__card:focus-within .sunday-home-featured__identity {
    transform: translateY(-20px) !important;
  }

  .sunday-home-featured__card:hover .sunday-home-featured__image img,
  .sunday-home-featured__card:focus-within .sunday-home-featured__image img {
    filter: none !important;
    transform: scale(1.25) !important;
  }

  body:is(.home, .single-product) .sunday-home-featured__card--2:hover .sunday-home-featured__image img,
  body:is(.home, .single-product) .sunday-home-featured__card--2:focus-within .sunday-home-featured__image img {
    transform: scale(1.25) !important;
  }

  .sunday-home-featured__card:hover .sunday-home-featured__footer,
  .sunday-home-featured__card:focus-within .sunday-home-featured__footer {
    transform: translateY(20px) !important;
  }

  .sunday-home-featured__card:hover .sunday-home-featured__cta,
  .sunday-home-featured__card:focus-within .sunday-home-featured__cta {
    padding-inline: 20px !important;
    background: #fcfcf7 !important;
    color: #1c3a13 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .sunday-home-featured__card:hover .sunday-home-featured__cta-icon,
  .sunday-home-featured__card:focus-within .sunday-home-featured__cta-icon {
    width: 13px !important;
    margin-left: 7px !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
}

@media (max-width: 1180px) {
  body:is(.home, .single-product) .sunday-home-featured__header {
    grid-template-columns: minmax(0,1fr) minmax(300px,.72fr) !important;
  }
  body:is(.home, .single-product) .sunday-home-featured__header > a { grid-column: 2 !important; }
  body:is(.home, .single-product) .sunday-home-featured__grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body:is(.home, .single-product) .sunday-home-featured__image img { height: 330px !important; }
}

@media (max-width: 680px) {
  body:is(.home, .single-product) .sunday-home-featured__header { grid-template-columns: 1fr !important; }
  body:is(.home, .single-product) .sunday-home-featured__header > a { grid-column: auto !important; }
  body:is(.home, .single-product) .sunday-home-featured__card { min-height: 540px !important; }
  body:is(.home, .single-product) .sunday-home-featured__card h3 { font-size: 27px !important; }
  body:is(.home, .single-product) .sunday-home-featured__image { min-height: 250px !important; height: 250px !important; }
  body:is(.home, .single-product) .sunday-home-featured__image img { height: 286px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .sunday-home-featured__identity,
  .sunday-home-featured__image img,
  .sunday-home-featured__footer,
  .sunday-home-featured__cta,
  .sunday-home-featured__cta-icon {
    transition-duration: .01ms !important;
  }
  .sunday-home-featured__card:hover :is(.sunday-home-featured__identity, .sunday-home-featured__footer),
  .sunday-home-featured__card:hover .sunday-home-featured__image img {
    transform: none !important;
  }
  body:is(.home, .single-product) .sunday-home-featured__card--2:hover .sunday-home-featured__image img {
    transform: none !important;
  }
}

/* Home mobile alignment: one symmetric gutter for copy and product grid. */
@media (max-width: 680px) {
  html body.home .sunday-home-featured {
    box-sizing: border-box !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  html body.home .sunday-home-featured__inner {
    box-sizing: border-box !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin-right: 0 !important;
    margin-left: calc(50% - 50vw + 16px) !important;
  }

  html body.home .sunday-home-featured__header h2,
  html body.home .sunday-home-featured__header p {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  html body.home .sunday-home-featured__grid {
    box-sizing: border-box !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    justify-content: center !important;
  }

  html body.home .sunday-home-featured__image img {
    height: 252px !important;
    max-height: 252px !important;
  }

  html body.home .sunday-home-featured__card--2 .sunday-home-featured__image img {
    transform: none !important;
  }

  html body.home .sunday-home-featured__cta,
  html body.home .sunday-home-featured__card:last-child .sunday-home-featured__cta {
    min-width: 132px !important;
    min-height: 46px !important;
    padding: 11px 20px !important;
    font-size: 14px !important;
  }
}
