/* Styli-inspired product cards */

a.group.block.h-full:has(.product-card) {
  text-decoration: none;
  color: inherit;
}

.product-card {
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 10px !important;
  overflow: visible !important;
  transform: none !important;
  transition: none !important;
}

.product-card:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.product-card > .relative {
  background: #f4f4f4 !important;
  border-radius: 10px 10px 0 0 !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1;
}

.product-card > .relative img {
  object-fit: contain !important;
  transform: none !important;
  background: #f4f4f4;
}

.product-card:hover > .relative img {
  transform: none !important;
}

/* Hide old discount pill on image — shown next to price instead */
.product-card > .relative > span.absolute {
  display: none !important;
}

/* Wishlist: small, always visible */
.product-card > .relative > button:first-of-type {
  top: 8px !important;
  right: 8px !important;
  width: 28px !important;
  height: 28px !important;
  opacity: 1 !important;
  background: #fff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

/* Add to cart → bag icon, bottom-right of image */
.product-card > .relative > button:last-of-type {
  left: auto !important;
  right: 8px !important;
  bottom: 10px !important;
  width: auto !important;
  min-width: 32px;
  height: auto !important;
  padding: 5px 6px 4px !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
  opacity: 1 !important;
  transform: none !important;
  font-size: 0 !important;
  gap: 0 !important;
  line-height: 0 !important;
}

.product-card > .relative > button:last-of-type svg {
  display: none !important;
}

.product-card > .relative > button:last-of-type .zs-bag-icon {
  display: block !important;
  width: 15px;
  height: 17px;
}

.product-card > .relative > button:last-of-type:disabled {
  opacity: 0.4 !important;
}

/* Promo strip under image */
.zs-plp-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  background: #1f612c;
  color: #fff;
  border-radius: 0 0 10px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.32px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card:has(.zs-plp-strip) > .relative {
  border-radius: 10px 10px 0 0 !important;
}

/* Info block */
.product-card > div.flex.flex-col.flex-1 {
  padding: 8px 2px 10px !important;
}

.zs-plp-brand-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 6px;
}

.zs-plp-brand {
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  color: #000;
  letter-spacing: 0.32px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}

.zs-plp-original {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  color: #fff;
  background: #000;
  border-radius: 4px;
  padding: 0 6px;
  height: 16px;
  display: inline-flex;
  align-items: center;
}

.product-card h3 {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  color: #5d5e5c !important;
  letter-spacing: 0.32px;
  margin: 4px 0 6px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zs-plp-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
}

.zs-plp-price,
.product-card .zs-plp-price-row > span:not(.zs-plp-off):not(del) {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.48px;
  color: #2d2d2d !important;
}

.zs-plp-was,
.product-card .zs-plp-price-row del,
.product-card .zs-plp-price-row .line-through {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: rgba(0, 0, 0, 0.5) !important;
  text-decoration: line-through;
}

.zs-plp-off {
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 18px;
  letter-spacing: 0.4px;
  color: #d64045 !important;
  text-transform: uppercase;
}

/* Tighter product rails / grids */
.max-w-\[1400px\] .flex.gap-3,
.max-w-\[1400px\] .flex.gap-4 {
  gap: 8px;
}
