/* ------------------------------------------------------ */
/* SHOP.4MEAND — WOO PRODUCT CARD OVERRIDES               */
/* Pixel-perfect match to custom design                   */
/* ------------------------------------------------------ */


/* ------------------------------ */
/* PRODUCT GRID                   */
/* ------------------------------ */

ul.products {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

ul.products li.product {
  position: relative;
  cursor: pointer;
  text-align: left;
}


/* ------------------------------ */
/* PRODUCT IMAGE                  */
/* ------------------------------ */

ul.products li.product a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  border-radius: 4px;
  background: var(--blush);
  transition: transform .5s var(--ease);
}

ul.products li.product:hover a img {
  transform: scale(1.06);
}


/* ------------------------------ */
/* IMAGE WRAPPER                  */
/* ------------------------------ */

ul.products li.product a {
  display: block;
  position: relative;
}


/* ------------------------------ */
/* BADGES (SALE, NEW, ETC.)       */
/* ------------------------------ */

ul.products li.product .onsale {
  position: absolute;
  top: .8rem;
  left: .8rem;
  background: var(--moss);
  color: #fff;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 2px;
  z-index: 3;
  margin: 0;
}


/* ------------------------------ */
/* QUICK ADD BUTTON               */
/* ------------------------------ */

ul.products li.product .button {
  position: absolute;
  bottom: .8rem;
  left: .8rem;
  right: .8rem;
  background: rgba(250,246,238,.95);
  color: var(--moss);
  text-align: center;
  padding: .65rem;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s;
  font-weight: 500;
  z-index: 3;

  /* Remove default Woo styles */
  border: none !important;
  box-shadow: none !important;
}

ul.products li.product:hover .button {
  opacity: 1;
  transform: translateY(0);
}


/* ------------------------------ */
/* PRODUCT TITLE                  */
/* ------------------------------ */

ul.products li.product .woocommerce-loop-product__title {
  font-size: .88rem;
  font-weight: 400;
  color: var(--ink);
  margin: .8rem 0 .25rem;
  line-height: 1.4;
  padding: 0;
}


/* ------------------------------ */
/* PRICE                          */
/* ------------------------------ */

ul.products li.product .price {
  font-size: .85rem !important;
  color: var(--terracotta) !important;
  font-weight: 500;
}

ul.products li.product .price del {
  color: #aaa !important;
  margin-right: .4rem;
  font-weight: 300;
}


/* ------------------------------ */
/* REMOVE DEFAULT BUTTONS         */
/* ------------------------------ */

ul.products li.product .button.add_to_cart_button,
ul.products li.product .button.product_type_simple {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}


/* ------------------------------ */
/* RESPONSIVE                     */
/* ------------------------------ */

@media (max-width: 1100px) {
  ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
  }
}
