/* Canonical product grids. Home and collection use distinct responsive
 * column rules; the collection's vertical-layout wrapper changes at 1299/1100. */
:is(
  body.home .storefront-home-products-section:not(.storefront-home-gear-section) ul.products,
  body.storefront-product-archive ul.products.storefront-category-products
) {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  column-gap: 0;
  row-gap: 0;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  list-style: none;
}
:is(
  body.home .storefront-home-products-section:not(.storefront-home-gear-section) ul.products,
  body.storefront-product-archive ul.products.storefront-category-products
)::before,
:is(
  body.home .storefront-home-products-section:not(.storefront-home-gear-section) ul.products,
  body.storefront-product-archive ul.products.storefront-category-products
)::after { content: none; }
:is(
  body.home .storefront-home-products-section:not(.storefront-home-gear-section) ul.products,
  body.storefront-product-archive ul.products.storefront-category-products
) > li.storefront-product-card {
  box-sizing: border-box;
  align-self: start;
  flex: none;
  float: none;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
body.home .storefront-home-products-section:not(.storefront-home-gear-section) ul.products > li.storefront-product-card {
  margin-bottom: 12px;
  padding-left: 6px;
  padding-right: 6px;
}
@media (min-width: 768px) and (max-width: 1024px) {
  body.home .storefront-home-products-section:not(.storefront-home-gear-section) ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 321px) and (max-width: 767px) {
  body.home .storefront-home-products-section:not(.storefront-home-gear-section) ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 551px) {
  body.home .storefront-home-products-section:not(.storefront-home-gear-section) ul.products > li.storefront-product-card { margin-bottom: 0; }
}
@media (max-width: 320px) {
  body.home .storefront-home-products-section:not(.storefront-home-gear-section) ul.products { grid-template-columns: minmax(0, 1fr); }
}

body.storefront-product-archive ul.products.storefront-category-products {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  column-gap: 0 !important;
  row-gap: 60px !important;
  max-width: none !important;
  margin-left: -15px !important;
  width: calc(100% + 30px) !important;
}
body.storefront-product-archive ul.products.storefront-category-products > li.storefront-category-card {
  padding: 0 15px !important;
}
body.storefront-product-archive ul.products.storefront-category-products > li.storefront-category-card > .storefront-category-card__inner {
  padding: 1px !important;
}
body.storefront-product-archive ul.products.storefront-category-products .storefront-category-card__title {
  margin: 15px 0 10px !important;
}
body.storefront-product-archive ul.products.storefront-category-products .storefront-category-card__price {
  margin-bottom: 13px !important;
}
@media (max-width: 1299px) {
  body.storefront-product-archive ul.products.storefront-category-products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 1100px) {
  body.storefront-product-archive ul.products.storefront-category-products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 1024px) {
  body.storefront-product-archive ul.products.storefront-category-products {
    row-gap: 30px !important;
    margin-left: -8px !important;
    width: calc(100% + 16px) !important;
  }
  body.storefront-product-archive ul.products.storefront-category-products > li.storefront-category-card {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}
