/* Epoxywereld Custom Styling v4.60.66 — alleen SALE-etalage en Google-reviews.
 * De shop/homepage, menu, banners en overige WooCommerce-kaarten blijven ongewijzigd.
 * Fallback op viewport; container-query vangt ook smalle parent-content of
 * Edge desktopsite/zoom op wanneer de viewport groter lijkt dan het kaartvlak. */
body.ew-boutique-shop #primary .ew-bt-sale {
  container-type:inline-size;
  container-name:ew-sale-products;
}

/* Voor normale desktopbreedte houden we de bestaande vier SALE-kaarten. */
@media (min-width:1200px) {
  body.ew-boutique-shop #primary .ew-bt-sale ul.products {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}

/* Middelgrote vensters: ruimte voor leesbare namen, prijzen en CTA's. */
@media (max-width:1199px) {
  body.ew-boutique-shop #primary .ew-bt-sale ul.products {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px!important;
  }
}
/* Extra smalle telefoons: één leesbare SALE-kaart per rij. */
@media (max-width:600px) {
  body.ew-boutique-shop #primary .ew-bt-sale ul.products {
    grid-template-columns:minmax(0,1fr)!important;
    gap:15px!important;
  }
}

/* Ook bij een smalle container binnen een breder browservenster. */
@container ew-sale-products (max-width:980px) {
  body.ew-boutique-shop #primary .ew-bt-sale ul.products {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px!important;
  }
}
@container ew-sale-products (max-width:600px) {
  body.ew-boutique-shop #primary .ew-bt-sale ul.products {
    grid-template-columns:minmax(0,1fr)!important;
    gap:15px!important;
  }
}

/* Gelijke kaarthoogte per rij en uitlijning van prijs/knop; behoud
 * afbeeldingen, voorraadlabels, WooCommerce-prijsweergave en productlink. */
@media (max-width:1199px) {
  body.ew-boutique-shop #primary .ew-bt-sale ul.products li.product {
    height:100%!important;
    align-self:stretch!important;
    min-width:0!important;
  }
  body.ew-boutique-shop #primary .ew-bt-sale ul.products li.product .astra-shop-summary-wrap {
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-width:0!important;
    width:100%!important;
  }
  body.ew-boutique-shop #primary .ew-bt-sale ul.products li.product .woocommerce-loop-product__title {
    overflow-wrap:break-word!important;
    hyphens:auto;
    line-height:1.45!important;
  }
  body.ew-boutique-shop #primary .ew-bt-sale ul.products li.product .price {
    margin-top:auto!important;
  }
  body.ew-boutique-shop #primary .ew-bt-sale ul.products li.product .button {
    min-height:44px!important;
    line-height:1.35!important;
    white-space:normal!important;
    overflow-wrap:break-word;
    max-width:calc(100% - 24px)!important;
  }
}
/* Dezelfde kolomuitlijning wanneer uitsluitend de container-query actief is. */
@container ew-sale-products (max-width:980px) {
  body.ew-boutique-shop #primary .ew-bt-sale ul.products li.product {
    height:100%!important;align-self:stretch!important;min-width:0!important;
  }
  body.ew-boutique-shop #primary .ew-bt-sale ul.products li.product .astra-shop-summary-wrap {
    display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-width:0!important;width:100%!important;
  }
  body.ew-boutique-shop #primary .ew-bt-sale ul.products li.product .woocommerce-loop-product__title {
    overflow-wrap:break-word!important;hyphens:auto;line-height:1.45!important;
  }
  body.ew-boutique-shop #primary .ew-bt-sale ul.products li.product .price {margin-top:auto!important;}
  body.ew-boutique-shop #primary .ew-bt-sale ul.products li.product .button {
    min-height:44px!important;line-height:1.35!important;white-space:normal!important;
    max-width:calc(100% - 24px)!important;
  }
}

/* Trustindex beheert zelf de slider en het aantal getoonde reviews.
 * Geef de externe widget bij compactere vensters een reële, gecentreerde
 * beschikbare breedte; wijzig GEEN slides, transform, knoppen of JS. */
@media (max-width:1199px) {
  .ew-reviews-standalone__inner {
    box-sizing:border-box!important;
    width:min(calc(100% - 40px),780px)!important;
    max-width:100%!important;
    min-width:0!important;
    margin-inline:auto!important;
  }
  .ew-reviews-standalone__inner > .widget,
  .ew-reviews-standalone__inner .ti-widget {
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
}
@media (max-width:900px) {
  .ew-reviews-standalone__inner {
    width:min(calc(100% - 32px),640px)!important;
  }
}
@media (max-width:600px) {
  .ew-reviews-standalone__inner {
    width:calc(100% - 28px)!important;
  }
}
