/* Complete outfit photographs, shared by native WooCommerce and the lookbook. */

/* Reset WooCommerce's percentage-width/float cards inside the theme's grid. */
.sata-flagship ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.sata-flagship ul.products::before,
.sata-flagship ul.products::after {
  display: none;
}

.sata-flagship ul.products li.product {
  float: none !important;
  clear: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}

.sata-flagship ul.products li.product > .woocommerce-LoopProduct-link {
  display: block;
  min-width: 0;
}

.sata-flagship ul.products li.product a img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center top;
  margin: 0 0 12px;
  background: #fff;
}

/* A matching frame makes two-column mobile cards orderly without image crops. */
.sata-flagship .demo-card-image,
.sata-flagship .minimal-home .demo-card-image {
  aspect-ratio: 3 / 4;
  background: #fff;
}

.sata-flagship .demo-card-image > a:first-child {
  display: block;
  width: 100%;
  height: 100%;
}

.sata-flagship .demo-card-image img,
.sata-flagship .minimal-edit-card > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
}

.sata-flagship .demo-card:hover .demo-card-image img,
.sata-flagship .minimal-edit-card:hover > img {
  transform: none;
}

/* Preserve the original aspect ratio on both native and lookbook detail pages. */
.sata-flagship .woocommerce-product-gallery__image > a > img,
.sata-flagship .gallery-frame > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
}

@media (max-width: 1000px) and (min-width: 701px) {
  .sata-flagship ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 16px;
  }
}

@media (max-width: 700px) {
  .sata-flagship ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 12px;
  }

  .sata-flagship ul.products li.product a img {
    margin-bottom: 10px;
  }
}

/* Empty-cart recommendations and other native server-rendered product blocks. */
.sata-flagship .wc-block-grid .wc-block-grid__products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.sata-flagship .wc-block-grid .wc-block-grid__products > .wc-block-grid__product {
  display: flex;
  flex-direction: column;
  flex: none;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
}

.sata-flagship .wc-block-grid__product-link {
  display: block;
  color: #171717;
  text-decoration: none;
}

.sata-flagship .wc-block-grid__product-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 12px;
  background: #fff;
}

.sata-flagship .wc-block-grid__product-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center top;
}

/* Cart and checkout item thumbnails use the uncropped Store API source. */
.sata-flagship .wc-block-cart-item__image img,
.sata-flagship .wc-block-components-order-summary-item__image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
}

.sata-flagship .wc-block-grid__product-title {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  color: #171717;
}

.sata-flagship .wc-block-grid__product-price {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #171717;
}

.sata-flagship .wc-block-grid__product-price del {
  font-size: 14px;
  font-weight: 400;
  color: #585858;
  opacity: 1;
}

.sata-flagship .wc-block-grid__product-price ins {
  background: transparent;
  text-decoration: none;
}

.sata-flagship .wc-block-grid__product-add-to-cart {
  margin: auto 0 0;
  text-align: left;
}

.sata-flagship .wc-block-grid__product-add-to-cart .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #171717;
  border-radius: 5px;
  background: #171717;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
}

@media (max-width: 1000px) and (min-width: 701px) {
  .sata-flagship .wc-block-grid .wc-block-grid__products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 16px;
  }
}

@media (max-width: 700px) {
  .sata-flagship .wc-block-grid .wc-block-grid__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 12px;
  }

  .sata-flagship .wc-block-grid__product-title {
    font-size: 15px;
  }
}

