/* IMPACT TCS — layout polish 1.7.5.
   No source product images are replaced or cropped destructively. */

/* 1. Main navigation — all menu labels share a common centreline.
   The legacy underline used to act as a flex child, shifting labels vertically. */
@media(min-width:960px){
  .header__container[layout="left_logo_center_menu"] .header__container-top-wrap{
    grid-template-columns:minmax(140px,1fr) minmax(0,max-content) minmax(105px,1fr)!important;
    align-items:center!important;
    column-gap:clamp(12px,1.4vw,22px)!important
  }
  .header-nav{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important}
  .header-nav__menu{
    display:flex!important;align-items:center!important;justify-content:center!important;
    flex-wrap:nowrap!important;gap:clamp(9px,1vw,18px)!important;
    margin:0!important;padding:0!important;list-style:none!important
  }
  .header-nav__menu-item{
    display:flex!important;align-items:center!important;justify-content:center!important;
    margin:0!important;padding:0!important;min-height:48px!important;
    line-height:1.2!important;position:relative!important
  }
  .header-nav__menu-item>a.header-nav__underline,
  .header-nav__menu-item>.impact-nav-details,
  .header-nav__menu-item>.impact-nav-details>summary{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    flex-direction:row!important;flex-wrap:nowrap!important;
    height:48px!important;min-height:48px!important;width:auto!important;
    margin:0!important;padding:0!important;
    font-family:Manrope,Arial,sans-serif!important;
    font-size:clamp(10px,.9vw,12px)!important;font-weight:800!important;
    line-height:1.2!important;letter-spacing:0!important;white-space:nowrap!important;
    vertical-align:middle!important
  }
  .header-nav__menu-item .header-nav__ellipsis{
    display:block!important;
    width:auto!important;max-width:none!important;
    margin:0!important;padding:0!important;
    white-space:nowrap!important;overflow:visible!important;
    text-overflow:clip!important;line-height:1.2!important;
    -webkit-line-clamp:unset!important;
  }
  .header-nav__menu-item>a.header-nav__underline>span{
    padding:0!important
  }
  .header-nav__menu-item .header-nav__underline{
    position:relative!important;
    box-sizing:border-box!important;
  }
  .header-nav__menu-item .header-nav__underline::after{
    position:absolute!important;left:0!important;right:auto!important;bottom:5px!important;
    height:2px!important;display:block!important;margin:0!important
  }
  .header-nav__menu-item .impact-nav-details{
    position:relative!important;align-self:center!important;
    min-width:0!important;display:flex!important;align-items:center!important
  }
  .header-nav__menu-item .impact-nav-details>summary{
    gap:9px!important;list-style:none!important;cursor:pointer!important
  }
  .header-nav__menu-item .impact-nav-details>summary::-webkit-details-marker{display:none!important}
  .header-nav__menu-item .impact-nav-chevron{
    width:7px!important;height:7px!important;
    display:block!important;flex:0 0 7px!important;
    border-right:1.8px solid currentColor!important;
    border-bottom:1.8px solid currentColor!important;
    border-top:0!important;border-left:0!important;
    font-size:0!important;line-height:0!important;
    position:relative!important;top:-2px!important;left:0!important;
    margin:0!important;align-self:center!important;
    transform:rotate(45deg)!important;
    transition:transform .2s ease!important
  }
  .header-nav__menu-item .impact-nav-details[open] .impact-nav-chevron{
    transform:rotate(225deg)!important;top:2px!important
  }
  .header__logo,.header__action-bar.right{align-self:center!important}
}
@media(min-width:960px) and (max-width:1170px){
  .header-nav__menu{gap:8px!important}
  .header-nav__menu-item>a.header-nav__underline,
  .header-nav__menu-item>.impact-nav-details>summary{font-size:10px!important}
  .header-nav__menu-item .impact-nav-details>summary{gap:6px!important}
}

/* 2. Shop brands — all seven brands distribute evenly; no giant empty tail.
   On tablet/mobile, the track scrolls naturally and never hides a brand. */
.impact-home .impact-brand-index{
  display:grid!important;
  grid-template-columns:clamp(120px,12vw,175px) minmax(0,1fr)!important;
  align-items:stretch!important;
  width:100%!important;min-height:74px!important;height:74px!important;
  overflow:hidden!important;background:#fff!important;
  border-bottom:1px solid #e0e6f2!important
}
.impact-home .impact-brand-index__label{
  flex:none!important;width:auto!important;height:100%!important;
  padding:0 14px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;white-space:nowrap!important;
  color:#263da4!important;background:#f1f4ff!important;
  font:850 11px/1.3 Manrope,Arial,sans-serif!important;
  letter-spacing:.11em!important
}
.impact-home .impact-brand-index__track{
  display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;
  grid-auto-flow:column!important;align-items:stretch!important;
  width:100%!important;min-width:0!important;height:100%!important;
  overflow-x:hidden!important;overflow-y:hidden!important;
  scrollbar-width:none!important
}
.impact-home .impact-brand-index__track a{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:0!important;height:100%!important;
  margin:0!important;padding:9px 10px!important;
  box-sizing:border-box!important;
  text-align:center!important;white-space:nowrap!important;
  font:800 clamp(11px,.9vw,14px)/1.2 Manrope,Arial,sans-serif!important;
  letter-spacing:0!important;
  border-right:1px solid #e3e8f3!important;color:#192647!important;
  transition:background .2s ease,color .2s ease!important
}
.impact-home .impact-brand-index__track a:last-child{border-right:0!important}
.impact-home .impact-brand-index__track a:hover,
.impact-home .impact-brand-index__track a:focus-visible{
  background:#ebf0ff!important;color:#233ca7!important;
  outline-offset:-3px!important
}
@media(min-width:760px) and (max-width:1120px){
  .impact-home .impact-brand-index{
    grid-template-columns:118px minmax(0,1fr)!important;height:69px!important;min-height:69px!important
  }
  .impact-home .impact-brand-index__track{
    display:flex!important;grid-template-columns:none!important;
    overflow-x:auto!important;overscroll-behavior-inline:contain!important
  }
  .impact-home .impact-brand-index__track a{
    flex:1 0 112px!important;min-width:112px!important
  }
}
@media(max-width:759px){
  .impact-home .impact-brand-index{
    grid-template-columns:96px minmax(0,1fr)!important;height:61px!important;min-height:61px!important
  }
  .impact-home .impact-brand-index__label{
    font-size:9px!important;letter-spacing:.055em!important;padding:0 6px!important
  }
  .impact-home .impact-brand-index__track{
    display:flex!important;grid-template-columns:none!important;
    overflow-x:auto!important;overscroll-behavior-inline:contain!important
  }
  .impact-home .impact-brand-index__track a{
    flex:0 0 111px!important;min-width:111px!important;
    font-size:11px!important;padding-inline:8px!important
  }
}

/* 3. Consistent product-photo balance across homepage, brands, search, and
   recommendations. Native source images stay intact; resizing is CSS-only. */
.block-product-card__content{
  border-radius:15px!important;box-sizing:border-box!important
}
.block-product-card__layer-image-wrapper{
  padding:5px!important;
  background:#f8f9fd!important;
  margin-bottom:9px!important
}
.block-product-card__image-wrapper{
  aspect-ratio:1/1!important;min-width:0!important;
  border-radius:10px!important;background:#fff!important
}
.block-product-card__image-wrapper>.block-product-card__image{
  padding:2px!important;width:100%!important;height:100%!important;
  object-fit:contain!important;object-position:center!important
}
.block-product-card__title{
  min-height:2.8em!important;max-height:2.8em!important;
  line-height:1.4!important;margin-bottom:7px!important
}
.block-product-card__price{margin-top:0!important}
.block-product-card__content:has(.block-product-card__quick-add),
.block-product-card__content:has(.impact-card-action){
  padding-bottom:68px!important
}
.block-product-card__content .impact-card-action{
  bottom:12px!important
}
/* Offers use the same square visual proportions, not a short letterboxed 5:4
   box with large empty side margins around square marketing artwork. */
.impact-offers .impact-offers__main>.page-width{
  max-width:1360px!important
}
.impact-offers__grid{
  grid-template-columns:repeat(var(--impact-offers-columns,4),minmax(0,1fr))!important;
  gap:var(--impact-offers-card-gap,14px)!important
}
.impact-offers .block-product-card__content{
  padding-bottom:66px!important
}
.impact-offers .block-product-card__layer-image-wrapper{
  padding:5px!important;margin:0 0 10px!important;
  background:#f8fafd!important
}
.impact-offers .block-product-card__image-wrapper{
  aspect-ratio:1/1!important;border-radius:9px!important;
  background:#fff!important
}
.impact-offers .block-product-card__image-wrapper>.block-product-card__image{
  width:100%!important;height:100%!important;
  padding:0!important;object-fit:contain!important;object-position:center!important
}
.impact-offers .block-product-card__title{
  margin:1px 12px 8px!important;font-size:12px!important;
  min-height:2.85em!important;max-height:2.85em!important
}
.impact-offers .block-product-card__price{
  margin:0 12px!important
}
.impact-offers .block-product-card__price .product-price{
  font-size:15px!important;row-gap:2px!important
}
.impact-offers .block-product-card__quick-add{
  left:10px!important;right:10px!important;bottom:10px!important;
  width:calc(100% - 20px)!important;
  min-height:40px!important;height:40px!important
}
.impact-offers .block-product-card__content .impact-card-action{
  left:10px!important;right:10px!important;bottom:10px!important;
  height:40px!important;min-height:40px!important
}
.impact-offers .block-product-card__discount-tag,
.impact-offers .block-product-card__sold-out{
  left:12px!important;top:12px!important
}
@media(max-width:1100px){
  .impact-offers__grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:720px){
  .impact-offers__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .impact-offers .block-product-card__layer-image-wrapper{padding:3px!important;margin-bottom:7px!important}
  .impact-offers .block-product-card__title{margin:0 9px 6px!important;font-size:10.5px!important}
  .impact-offers .block-product-card__price{margin-inline:9px!important}
  .impact-offers .block-product-card__price .product-price{font-size:13px!important}
  .impact-offers .block-product-card__content{padding-bottom:58px!important}
  .impact-offers .block-product-card__quick-add{
    left:8px!important;right:8px!important;bottom:8px!important;
    width:calc(100% - 16px)!important;height:38px!important;min-height:38px!important
  }
  .impact-offers .block-product-card__content .impact-card-action{
    left:8px!important;right:8px!important;bottom:8px!important;
    height:38px!important;min-height:38px!important
  }
}

/* 1.7.5 QA correction: this merchant has two brand blocks disabled in
   the editor. Do NOT reserve seven empty grid tracks for five visible links.
   Flex divides the entire strip among whichever blocks are enabled. */
@media(min-width:1121px){
  .impact-home .impact-brand-index__track{
    display:flex!important;
    grid-template-columns:none!important;
    grid-auto-flow:unset!important;
    align-items:stretch!important;
    justify-content:center!important;
    overflow-x:hidden!important
  }
  .impact-home .impact-brand-index__track>a{
    flex:1 1 0%!important;
    min-width:0!important;
    max-width:none!important
  }
}

/* QA fix: auto-fit collapses unused tracks and also covers editor-inserted
   wrappers around individual brand blocks. */
@media(min-width:1121px){
  .impact-home .impact-brand-index__track{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(125px,1fr))!important;
    grid-auto-flow:row!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    overflow:hidden!important
  }
  .impact-home .impact-brand-index__track>*{
    flex:none!important;
    min-width:0!important;max-width:none!important;
    width:100%!important;height:100%!important
  }
  .impact-home .impact-brand-index__track a{
    display:flex!important;
    flex:1 1 auto!important;
    min-width:0!important;max-width:none!important;
    width:100%!important;height:100%!important
  }
}

/* Narrow-screen safety: neither fixed-width cards nor long display headings
   may expand the page beyond the available mobile viewport. */
@media(max-width:759px){
  .impact-offers,
  .impact-offers__main,
  .impact-offers__main>.page-width{
    min-width:0!important;max-width:100%!important;
    box-sizing:border-box!important
  }
  .impact-offers__section-heading,
  .impact-offers__section-heading>div{
    display:block!important;
    width:100%!important;min-width:0!important;
    max-width:100%!important;box-sizing:border-box!important
  }
  .impact-offers__section-heading h2{
    max-width:100%!important;
    white-space:normal!important;overflow-wrap:normal!important;
    font-size:clamp(29px,8.5vw,40px)!important;
    line-height:1.07!important
  }
  .impact-offers__toolbar{max-width:100%!important;width:100%!important;box-sizing:border-box!important}
  .impact-offers__toolbar label{
    min-width:0!important;flex:1 1 125px!important;
    max-width:100%!important
  }
  .impact-offers__toolbar select{width:100%!important;min-width:0!important}
  .impact-offers__grid{
    width:100%!important;max-width:100%!important;min-width:0!important;
    box-sizing:border-box!important;
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important
  }
  .impact-offers__product,
  .impact-offers__product .block-product-card,
  .impact-offers__product .block-product-card__content{
    min-width:0!important;max-width:100%!important;width:100%!important;
    box-sizing:border-box!important
  }
  .impact-offers__product .block-product-card__layer-image-wrapper,
  .impact-offers__product .block-product-card__image-wrapper{
    width:100%!important;min-width:0!important;
    max-width:100%!important;box-sizing:border-box!important
  }
}
