.z-product-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--z-color-border);
  border-radius: var(--z-radius-card);
  background: var(--z-color-surface);
  box-shadow: var(--z-shadow-card);
  color: var(--z-color-text);
  cursor: default;
  font-family: var(--z-font-body);
  transition:
    transform var(--z-motion-base) var(--z-ease-standard),
    border-color var(--z-motion-base) var(--z-ease-standard),
    box-shadow var(--z-motion-base) var(--z-ease-standard);
}
.z-product-card:hover,
.z-product-card:focus-within {
  border-color: var(--z-color-border-strong);
  box-shadow: var(--z-shadow-card-hover);
  transform: translateY(-4px);
}
.z-product-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(
    145deg,
    var(--z-color-blush),
    var(--z-color-cream)
  );
}
.z-product-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}
.z-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--z-motion-slow) var(--z-ease-standard);
}
.z-product-card:hover .z-product-card__media img,
.z-product-card:focus-within .z-product-card__media img {
  transform: scale(1.035);
}
.z-product-card__image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--z-color-accent);
  font: 600 clamp(42px, 7vw, 64px)/1 var(--z-font-heading);
}
.z-product-card__image-fallback[hidden] {
  display: none;
}
.z-product-card__badges {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: flex;
  max-width: calc(100% - 64px);
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.z-product-card__badge {
  padding: 5px 9px;
  border-radius: var(--z-radius-pill);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
.z-product-card__badge--sale {
  background: var(--z-color-accent-strong);
}
.z-product-card__badge--out {
  background: #51484b;
}
.z-product-card__badge--low {
  background: var(--z-color-warning);
}
.z-product-card__wishlist {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(234, 221, 225, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #8d7e83;
  cursor: pointer;
  opacity: 0.95;
  transition:
    color var(--z-motion-fast) var(--z-ease-standard),
    background var(--z-motion-fast) var(--z-ease-standard),
    transform var(--z-motion-fast) var(--z-ease-standard);
}
.z-product-card__wishlist svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 28px;
}
.z-product-card__wishlist:hover:not(:disabled) {
  background: var(--z-color-blush);
  color: var(--z-color-accent-strong);
  transform: scale(1.04);
}
.z-product-card__wishlist.is-active {
  background: var(--z-color-blush);
  color: var(--z-color-accent-strong);
}
.z-product-card__wishlist.is-active svg {
  fill: currentColor;
}
.z-product-card__wishlist:disabled {
  cursor: wait;
  opacity: 0.7;
}
.z-product-card__body {
  display: flex;
  min-height: 238px;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}
.z-product-card__category {
  min-height: 18px;
  margin: 0 0 6px;
  color: #6f6266;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.z-product-card__title {
  margin: 0;
  color: var(--z-color-brand);
  font-family: var(--z-font-heading);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}
.z-product-card__title a {
  color: inherit;
  text-decoration: none;
}
.z-product-card__title a:hover {
  color: var(--z-color-accent-strong);
}
.z-product-card__price {
  display: flex;
  min-height: 27px;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}
.z-product-card__current-price {
  color: var(--z-color-text);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.z-product-card__original-price {
  color: #74676b;
  font-size: 13px;
  text-decoration: line-through;
}
.z-product-card__stock {
  display: flex;
  min-height: 20px;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 700;
}
.z-product-card__stock::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.z-product-card__stock--in {
  color: var(--z-color-success);
}
.z-product-card__stock--low {
  color: var(--z-color-warning);
}
.z-product-card__stock--out {
  color: var(--z-color-error);
}
.z-product-card__low-stock-warning {
  margin: 2px 0 0 13px;
  color: var(--z-color-warning);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}
.z-product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: auto;
  padding-top: 16px;
}
.z-product-card__add,
.z-product-card__view {
  display: grid;
  min-width: 0;
  min-height: 43px;
  padding: 8px 10px;
  place-items: center;
  border-radius: var(--z-radius-control);
  font-family: var(--z-font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background var(--z-motion-fast) var(--z-ease-standard),
    border-color var(--z-motion-fast) var(--z-ease-standard),
    color var(--z-motion-fast) var(--z-ease-standard);
}
.z-product-card__add {
  border: 1px solid var(--z-color-accent);
  background: var(--z-color-surface);
  color: var(--z-color-accent-strong);
  cursor: pointer;
}
.z-product-card__add:hover:not(:disabled) {
  background: var(--z-color-blush);
}
.z-product-card__view {
  border: 1px solid var(--z-color-brand);
  background: var(--z-color-brand);
  color: #fff;
}
.z-product-card__view:hover {
  background: var(--z-color-brand-strong);
}
.z-product-card__add:disabled {
  border-color: #d8ced1;
  background: #f2eff0;
  color: #8d8386;
  cursor: not-allowed;
}
.z-product-card__add.is-loading {
  cursor: wait;
}
.z-product-card__add.is-success:disabled {
  border-color: var(--z-color-success);
  background: var(--z-color-success);
  color: #fff;
}
.z-product-card a:focus-visible,
.z-product-card button:focus-visible {
  outline: var(--z-focus-ring);
  outline-offset: var(--z-focus-offset);
}

.z-product-card-skeleton {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--z-radius-card);
  background: linear-gradient(#eee7e9 0 52%, #fff 52%);
  box-shadow: var(--z-shadow-card);
}
.z-product-card-skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.76),
    transparent
  );
  content: "";
  transform: translateX(-100%);
  animation: z-product-card-shimmer 1.35s infinite;
}
@keyframes z-product-card-shimmer {
  to {
    transform: translateX(100%);
  }
}

.best-strip .z-product-card,
.best-strip .z-product-card-skeleton {
  flex: 0 0 min(285px, 82vw);
}

@media (max-width: 600px) {
  .z-product-card__badges {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 58px);
    gap: 4px;
  }
  .z-product-card__badge {
    padding: 5px 8px;
    font-size: 10px;
  }
  .z-product-card__wishlist {
    top: 6px;
    right: 6px;
    width: 44px;
    height: 44px;
  }
  .z-product-card__wishlist svg {
    width: 16px;
    height: 16px;
  }
  .z-product-card__body {
    min-height: 220px;
    padding: 16px 14px;
  }
  .z-product-card__category {
    margin-bottom: 4px;
    font-size: 10px;
  }
  .z-product-card__title {
    font-size: 16px;
    line-height: 1.35;
  }
  .z-product-card__price {
    gap: 6px;
    margin-top: 9px;
  }
  .z-product-card__current-price {
    font-size: 18px;
  }
  .z-product-card__original-price {
    font-size: 12px;
  }
  .z-product-card__stock {
    font-size: 11px;
  }
  .z-product-card__actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 14px;
  }
  .z-product-card__add,
  .z-product-card__view {
    min-height: 44px;
    padding: 8px 6px;
    font-size: 11px;
  }
  .z-product-card-skeleton {
    min-height: 400px;
  }
}

@media (max-width: 340px) {
  .z-product-card__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .z-product-card,
  .z-product-card__media img,
  .z-product-card-skeleton::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
