/* Sweet Elevations resources grid - load-order proof */
.ec-store .grid__products[data-cols] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 430px)) !important;
  justify-content: center !important;
  gap: 32px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
}

/* Kill Ecwid's inline per-tile width math at every breakpoint */
.ec-store .grid__products[data-cols] .grid-product,
.ec-store .grid__products[data-cols="2"] .grid-product:nth-child(n+1),
.ec-store .grid__products[data-cols="3"] .grid-product:nth-child(n+1),
.ec-store .grid__products[data-cols="4"] .grid-product:nth-child(n+1) {
  width: 100% !important;
  max-width: 430px !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.ec-store .grid-product__wrap {
  padding: 24px !important;
}

/* Mobile: always one column */
@media (max-width: 767px) {
  .ec-store .grid__products[data-cols] {
    grid-template-columns: minmax(0, 430px) !important;
    gap: 24px !important;
    padding: 0 16px !important;
  }
  .ec-store .grid-product__wrap {
    padding: 18px !important;
  }
}
