/* ZSG reusable WooCommerce product card.
 * Shared by the home page and future catalog/related/wishlist contexts.
 */
.zsg-product-card {
  --zsg-card-red: #e30014;
  --zsg-card-red-dark: #b90010;
  --zsg-card-ink: #121417;
  --zsg-card-line: #dfe3e7;
}

/* Product card */
.zsg-product-card {
  position: relative;
  height: 100%;
  min-height: 438px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--zsg-card-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(17, 20, 23, .045);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.zsg-product-card:hover {
  border-color: #cbd0d5;
  box-shadow: 0 14px 34px rgba(17, 20, 23, .075);
}

.zsg-product-card__media {
  position: relative;
  height: 218px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid #eceff1;
  background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}

.zsg-product-card__image-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.zsg-product-card__image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.zsg-product-card__wishlist {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e1e5e8;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #34393f;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(10,12,14,.06);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.zsg-product-card__wishlist svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.zsg-product-card__wishlist:hover,
.zsg-product-card__wishlist.is-active,
.zsg-product-card__wishlist.active,
.zsg-product-card__wishlist[aria-pressed="true"] {
  border-color: rgba(227,0,20,.34);
  color: var(--zsg-card-red);
  background: #fff6f7;
}

.zsg-product-card__wishlist.is-active svg path,
.zsg-product-card__wishlist.active svg path,
.zsg-product-card__wishlist[aria-pressed="true"] svg path {
  fill: currentColor;
}

.zsg-product-card__badge {
  position: absolute;
  left: 13px;
  top: 13px;
  z-index: 2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--zsg-card-red);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.zsg-product-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 17px 17px 16px;
}

.zsg-product-card__sku {
  min-height: 18px;
  margin: 0 0 7px;
  color: #7b828a;
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zsg-product-card__sku span {
  margin-right: 4px;
  color: #a0a6ad;
}

.zsg-product-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: -.01em;
}

.zsg-product-card__title a {
  display: -webkit-box;
  overflow: hidden;
  color: #1a1d20;
  text-decoration: none;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.zsg-product-card__title a:hover {
  color: var(--zsg-card-red);
}

.zsg-product-card__meta {
  margin-top: 11px;
}

.zsg-product-card__stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5c646c;
  font-size: 11px;
  font-weight: 650;
}

.zsg-product-card__stock-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #1c9c57;
  box-shadow: 0 0 0 3px rgba(28,156,87,.11);
}

.zsg-product-card__stock.is-out-of-stock .zsg-product-card__stock-dot {
  background: #8c9298;
  box-shadow: 0 0 0 3px rgba(140,146,152,.12);
}

.zsg-product-card__footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding-top: 16px;
}

.zsg-product-card__price {
  min-width: 0;
  color: #16191c;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

.zsg-product-card__price--request {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.zsg-product-card__cart {
  min-width: 48px;
  height: 48px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--zsg-card-red) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.zsg-product-card__cart:hover,
.zsg-product-card__cart:focus-visible {
  background: var(--zsg-card-red-dark) !important;
}

.zsg-product-card__cart svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zsg-product-card__cart.added::after,
.zsg-product-card a.added_to_cart {
  display: none !important;
}


.zsg-product-card a:focus-visible,
.zsg-product-card button:focus-visible {
  outline: 3px solid rgba(227, 0, 20, .28);
  outline-offset: 3px;
}

.zsg-product-card__title {
  min-height: 63px;
}

.zsg-product-card__wishlist-slot {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 3;
}

.zsg-product-card__wishlist-slot .zsg-product-card__wishlist {
  position: static;
}

.zsg-product-card__stock.is-on-backorder .zsg-product-card__stock-dot {
  background: #d08700;
  box-shadow: 0 0 0 3px rgba(208, 135, 0, .13);
}

.zsg-product-card__sku--empty {
  visibility: hidden;
}

@media (max-width: 767px) {
  .zsg-product-card {
    min-height: 402px;
    border-radius: 15px;
  }

  .zsg-product-card__media {
    height: 188px;
    padding: 0;
  }

  .zsg-product-card__image-link {
    height: 100%;
  }

  .zsg-product-card__body {
    padding: 14px;
  }

  .zsg-product-card__title {
    min-height: 59px;
    font-size: 14px;
  }

  .zsg-product-card__footer {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .zsg-product-card__cart {
    width: 48px;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .zsg-product-card__cart svg {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 390px) {
  .zsg-product-card {
    min-height: 384px;
  }

  .zsg-product-card__media {
    height: 176px;
  }

  .zsg-product-card__image-link {
    height: 100%;
  }

  .zsg-product-card__wishlist-slot {
    top: 10px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zsg-product-card,
  .zsg-product-card * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
