/* ============================================================
   Shared product-card styles for archive-derived routes.
   Used by catalog archives, hot-deals, and related product grids.
   ============================================================ */

.steed-product-archive,
.supei-hot-deals-page,
.steed-related-products {
  --steed-card-min-height: 320px;
  --steed-card-gap: 16px;
}

.steed-product-archive .product-grid,
.supei-hot-deals-page .product-grid,
.steed-related-products .product-grid {
  min-height: 300px;
}

.steed-product-archive #product-grid-view,
.supei-hot-deals-page #product-grid-view {
  display: grid;
  min-height: 200px;
  gap: var(--steed-card-gap, 16px);
}

.steed-product-archive .product-card,
.supei-hot-deals-page .product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  isolation: isolate;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.steed-product-archive .product-card:hover,
.steed-product-archive .product-card:focus-within,
.supei-hot-deals-page .product-card:hover,
.supei-hot-deals-page .product-card:focus-within {
  border-color: rgba(191, 219, 254, 0.9);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  transform: translateY(-5px);
}

.steed-product-archive .product-card__quick-actions,
.supei-hot-deals-page .product-card__quick-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.3s ease, visibility 0s linear 0.3s, transform 0.3s ease;
}

.steed-product-archive .product-card:hover .product-card__quick-actions,
.steed-product-archive .product-card:focus-within .product-card__quick-actions,
.supei-hot-deals-page .product-card:hover .product-card__quick-actions,
.supei-hot-deals-page .product-card:focus-within .product-card__quick-actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.steed-product-archive .product-card__quick-action,
.supei-hot-deals-page .product-card__quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--color-text-secondary, #475569);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.steed-product-archive .product-card__quick-action:hover,
.steed-product-archive .product-card__quick-action:focus-visible,
.supei-hot-deals-page .product-card__quick-action:hover,
.supei-hot-deals-page .product-card__quick-action:focus-visible {
  color: var(--color-primary, #1a56db);
  background: var(--color-primary-light, #eff6ff);
  border-color: rgba(26, 86, 219, 0.24);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(26, 86, 219, 0.12);
}

.steed-product-archive .product-card__quick-action svg,
.supei-hot-deals-page .product-card__quick-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.steed-product-archive .product-card__quick-action--wishlist.is-active,
.supei-hot-deals-page .product-card__quick-action--wishlist.is-active {
  color: #dc2626;
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.22);
}

.steed-product-archive .product-card__quick-action--wishlist.is-active svg,
.supei-hot-deals-page .product-card__quick-action--wishlist.is-active svg {
  fill: currentColor;
}

.steed-product-archive .product-card__quick-action--share.is-active,
.steed-product-archive .product-card__quick-action--cart.added,
.supei-hot-deals-page .product-card__quick-action--share.is-active,
.supei-hot-deals-page .product-card__quick-action--cart.added {
  color: #166534;
  background: #dcfce7;
  border-color: rgba(22, 101, 52, 0.2);
}

.steed-product-archive .product-card__quick-action.adding,
.supei-hot-deals-page .product-card__quick-action.adding {
  transform: none;
}

.steed-product-archive .product-card__figure,
.supei-hot-deals-page .product-card__figure {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 240px;
}

.steed-product-archive .product-card__backdrop,
.supei-hot-deals-page .product-card__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(15, 23, 42, 0.03);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0, 0, 0.44, 1.18);
  pointer-events: none;
}

.steed-product-archive .product-card:hover .product-card__backdrop,
.supei-hot-deals-page .product-card:hover .product-card__backdrop {
  opacity: 1;
  transform: scale(1);
}

.steed-product-archive .product-card__img,
.supei-hot-deals-page .product-card__img {
  pointer-events: none;
  color: transparent;
  font-size: 0;
}

.steed-product-archive .product-card__img--main,
.supei-hot-deals-page .product-card__img--main {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  transition: opacity 0.5s ease, transform 2s cubic-bezier(0, 0, 0.44, 1.18);
}

.steed-product-archive .product-card__img--hover,
.supei-hot-deals-page .product-card__img--hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 2s cubic-bezier(0, 0, 0.44, 1.18);
}

.steed-product-archive .product-card--has-hover-image:hover .product-card__img--main,
.steed-product-archive .product-card--has-hover-image:focus-within .product-card__img--main,
.supei-hot-deals-page .product-card--has-hover-image:hover .product-card__img--main,
.supei-hot-deals-page .product-card--has-hover-image:focus-within .product-card__img--main {
  opacity: 0;
  transform: scale(1.02);
}

.steed-product-archive .product-card--has-hover-image:hover .product-card__img--hover,
.steed-product-archive .product-card--has-hover-image:focus-within .product-card__img--hover,
.supei-hot-deals-page .product-card--has-hover-image:hover .product-card__img--hover,
.supei-hot-deals-page .product-card--has-hover-image:focus-within .product-card__img--hover {
  opacity: 1;
  transform: scale(1.09);
}

.steed-product-archive .product-card__img--fallback,
.supei-hot-deals-page .product-card__img--fallback {
  object-fit: contain;
  padding: 22%;
  background: #f8fafc;
}

.steed-product-archive .product-card__info,
.supei-hot-deals-page .product-card__info {
  position: relative;
  z-index: 4;
  flex: 1 0 auto;
  padding: 10px 12px 6px;
  background: #fff;
}

.steed-product-archive .product-card__brand,
.supei-hot-deals-page .product-card__brand {
  display: block;
  min-height: 14px;
  margin-bottom: 2px;
  font-size: 10.5px;
  color: var(--color-text-secondary, #475569);
}

.steed-product-archive .product-card__name,
.supei-hot-deals-page .product-card__name {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.62em;
  color: var(--color-text-primary, #1e293b);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.31;
  text-decoration: none;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.steed-product-archive .product-card__name:hover,
.supei-hot-deals-page .product-card__name:hover {
  color: var(--color-primary, #1a56db);
}

.steed-product-archive .product-card__price,
.supei-hot-deals-page .product-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-height: 22px;
  margin-top: 5px;
}

.steed-product-archive .product-card__price-current,
.supei-hot-deals-page .product-card__price-current {
  color: var(--color-error, #dc2626);
  font-size: 15.5px;
  font-weight: 700;
}

.steed-product-archive .product-card__price-unit,
.steed-product-archive .product-card__price-tier,
.supei-hot-deals-page .product-card__price-unit,
.supei-hot-deals-page .product-card__price-tier {
  font-size: 11px;
  color: var(--color-text-muted, #64748b);
}

.steed-product-archive .product-card__price-tier,
.supei-hot-deals-page .product-card__price-tier {
  margin-left: auto;
}

.steed-product-archive .product-card__actions,
.supei-hot-deals-page .product-card__actions {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  min-height: 56px;
  padding: 0 12px 12px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.3s ease, visibility 0s linear 0.3s, transform 0.3s ease;
}

.steed-product-archive .product-card:hover .product-card__actions,
.steed-product-archive .product-card:focus-within .product-card__actions,
.supei-hot-deals-page .product-card:hover .product-card__actions,
.supei-hot-deals-page .product-card:focus-within .product-card__actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.steed-product-archive .product-card__moq,
.supei-hot-deals-page .product-card__moq {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 2px 7px;
  color: var(--color-primary, #1a56db);
  font-size: 10.5px;
  font-weight: 500;
  background: var(--color-primary-light, #eff6ff);
  border-radius: 10px;
}

.steed-product-archive .product-card__meta-row,
.supei-hot-deals-page .product-card__meta-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--color-text-secondary, #475569);
}

.steed-product-archive .product-card__meta-row--empty,
.supei-hot-deals-page .product-card__meta-row--empty {
  display: none;
}

.steed-product-archive .product-card__meta-label,
.supei-hot-deals-page .product-card__meta-label {
  flex: 0 0 auto;
  color: var(--color-text-muted, #64748b);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.steed-product-archive .product-card__meta-value,
.supei-hot-deals-page .product-card__meta-value {
  min-width: 0;
  color: var(--color-text-primary, #1e293b);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steed-product-archive .product-card__add-btn,
.supei-hot-deals-page .product-card__add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-width: 76px;
  height: 32px;
  padding: 0 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  background: var(--color-primary, #1a56db);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.steed-product-archive .product-card__add-btn:hover,
.steed-product-archive .product-card__add-btn:focus-visible,
.supei-hot-deals-page .product-card__add-btn:hover,
.supei-hot-deals-page .product-card__add-btn:focus-visible {
  color: #fff;
  background: var(--color-primary, #1a56db);
  transform: scale(0.95);
}

.steed-product-archive .product-card__add-btn.adding,
.steed-product-archive .add_to_cart_button.adding,
.steed-product-archive .product-card__icon-btn.adding,
.supei-hot-deals-page .product-card__add-btn.adding,
.supei-hot-deals-page .add_to_cart_button.adding,
.supei-hot-deals-page .product-card__icon-btn.adding {
  opacity: 0.72;
  pointer-events: none;
}

@keyframes steed-card-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.steed-product-archive .product-grid .product-card,
.supei-hot-deals-page .product-grid .product-card {
  animation: steed-card-reveal 0.22s ease backwards;
}

.steed-product-archive .product-grid .product-card:nth-child(1),
.supei-hot-deals-page .product-grid .product-card:nth-child(1) { animation-delay: 0.01s; }
.steed-product-archive .product-grid .product-card:nth-child(2),
.supei-hot-deals-page .product-grid .product-card:nth-child(2) { animation-delay: 0.02s; }
.steed-product-archive .product-grid .product-card:nth-child(3),
.supei-hot-deals-page .product-grid .product-card:nth-child(3) { animation-delay: 0.03s; }
.steed-product-archive .product-grid .product-card:nth-child(4),
.supei-hot-deals-page .product-grid .product-card:nth-child(4) { animation-delay: 0.04s; }
.steed-product-archive .product-grid .product-card:nth-child(5),
.supei-hot-deals-page .product-grid .product-card:nth-child(5) { animation-delay: 0.05s; }
.steed-product-archive .product-grid .product-card:nth-child(6),
.supei-hot-deals-page .product-grid .product-card:nth-child(6) { animation-delay: 0.06s; }
.steed-product-archive .product-grid .product-card:nth-child(7),
.supei-hot-deals-page .product-grid .product-card:nth-child(7) { animation-delay: 0.07s; }
.steed-product-archive .product-grid .product-card:nth-child(8),
.supei-hot-deals-page .product-grid .product-card:nth-child(8) { animation-delay: 0.08s; }
.steed-product-archive .product-grid .product-card:nth-child(9),
.supei-hot-deals-page .product-grid .product-card:nth-child(9) { animation-delay: 0.09s; }
.steed-product-archive .product-grid .product-card:nth-child(10),
.supei-hot-deals-page .product-grid .product-card:nth-child(10) { animation-delay: 0.10s; }
.steed-product-archive .product-grid .product-card:nth-child(11),
.supei-hot-deals-page .product-grid .product-card:nth-child(11) { animation-delay: 0.11s; }
.steed-product-archive .product-grid .product-card:nth-child(12),
.supei-hot-deals-page .product-grid .product-card:nth-child(12) { animation-delay: 0.12s; }

.steed-product-archive #product-grid-view.product-grid--2,
.supei-hot-deals-page #product-grid-view.product-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.steed-product-archive #product-grid-view.product-grid--3,
.supei-hot-deals-page #product-grid-view.product-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steed-product-archive #product-grid-view.product-grid--4,
.supei-hot-deals-page #product-grid-view.product-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steed-product-archive .catalog-empty-state,
.supei-hot-deals-page .catalog-empty-state {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 34px;
  color: var(--color-text-secondary, #475569);
  background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-top: 4px solid var(--color-primary, #1a56db);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.steed-product-archive .catalog-empty-state__eyebrow,
.supei-hot-deals-page .catalog-empty-state__eyebrow {
  margin: 0 0 8px;
  color: var(--color-primary, #1a56db);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steed-product-archive .catalog-empty-state h2,
.supei-hot-deals-page .catalog-empty-state h2 {
  margin: 0 0 12px;
  color: var(--color-text-primary, #1e293b);
  font-size: 26px;
  line-height: 1.2;
}

.steed-product-archive .catalog-empty-state p,
.supei-hot-deals-page .catalog-empty-state p {
  max-width: 640px;
  margin: 0 0 18px;
  line-height: 1.65;
}

.steed-product-archive .catalog-empty-state p.catalog-empty-state__eyebrow,
.supei-hot-deals-page .catalog-empty-state p.catalog-empty-state__eyebrow {
  margin-bottom: 8px;
  line-height: 1.3;
}

.steed-product-archive .catalog-empty-state__description,
.supei-hot-deals-page .catalog-empty-state__description {
  max-width: 640px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
}

.steed-product-archive .catalog-empty-state__links,
.steed-product-archive .catalog-empty-state__actions,
.supei-hot-deals-page .catalog-empty-state__links,
.supei-hot-deals-page .catalog-empty-state__actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.steed-product-archive .catalog-empty-state__links a,
.supei-hot-deals-page .catalog-empty-state__links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  color: var(--color-text-primary, #1e293b);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 999px;
}

.steed-product-archive .catalog-empty-state__links a:hover,
.supei-hot-deals-page .catalog-empty-state__links a:hover {
  color: var(--color-primary, #1a56db);
  background: var(--color-primary-light, #eff6ff);
}

.steed-product-archive .catalog-empty-state__search form,
.supei-hot-deals-page .catalog-empty-state__search form {
  margin-left: 0 !important;
}

.steed-product-archive .woocommerce-pagination,
.supei-hot-deals-page .woocommerce-pagination {
  padding: 32px 0 16px;
  text-align: center;
}

.steed-product-archive .woocommerce-pagination ul,
.supei-hot-deals-page .woocommerce-pagination ul {
  display: inline-flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steed-product-archive .woocommerce-pagination ul li,
.supei-hot-deals-page .woocommerce-pagination ul li {
  display: inline-block;
}

.steed-product-archive .woocommerce-pagination ul li a,
.steed-product-archive .woocommerce-pagination ul li span,
.supei-hot-deals-page .woocommerce-pagination ul li a,
.supei-hot-deals-page .woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  color: var(--color-text-secondary, #475569);
  font-size: 13px;
  text-decoration: none;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.steed-product-archive .woocommerce-pagination ul li a:hover,
.supei-hot-deals-page .woocommerce-pagination ul li a:hover {
  color: var(--color-primary, #1a56db);
  border-color: var(--color-primary, #1a56db);
}

.steed-product-archive .woocommerce-pagination ul li span.current,
.supei-hot-deals-page .woocommerce-pagination ul li span.current {
  color: #fff;
  background: var(--color-primary, #1a56db);
  border-color: var(--color-primary, #1a56db);
}

.steed-product-archive .woocommerce-pagination ul li .dots,
.supei-hot-deals-page .woocommerce-pagination ul li .dots {
  border-color: transparent;
}

.steed-product-archive :focus-visible,
.supei-hot-deals-page :focus-visible {
  outline: 2px solid var(--color-primary, #1a56db);
  outline-offset: 2px;
  border-radius: 2px;
}

.steed-product-archive .product-card:has(:focus-visible),
.supei-hot-deals-page .product-card:has(:focus-visible) {
  box-shadow: 0 0 0 2px var(--color-primary, #1a56db), 0 8px 32px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1180px) and (min-width: 769px) {
  .steed-product-archive #product-grid-view.product-grid--4,
  .supei-hot-deals-page #product-grid-view.product-grid--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .steed-product-archive #product-grid-view.product-grid--3,
  .steed-product-archive #product-grid-view.product-grid--4,
  .supei-hot-deals-page #product-grid-view.product-grid--3,
  .supei-hot-deals-page #product-grid-view.product-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .steed-product-archive .product-card__actions,
  .supei-hot-deals-page .product-card__actions {
    gap: 8px 10px;
    padding: 0 12px 12px;
  }

  .steed-product-archive .product-card__meta-row,
  .supei-hot-deals-page .product-card__meta-row {
    font-size: 10px;
  }

  .steed-product-archive .product-card__icon-btn,
  .steed-product-archive .product-card__add-btn,
  .supei-hot-deals-page .product-card__icon-btn,
  .supei-hot-deals-page .product-card__add-btn {
    height: 32px;
  }

  .steed-product-archive .product-card__add-btn,
  .supei-hot-deals-page .product-card__add-btn {
    min-width: 82px;
    padding: 0 16px;
  }
}

@media (max-width: 640px) {
  .steed-product-archive .catalog-empty-state,
  .supei-hot-deals-page .catalog-empty-state {
    margin-top: 12px;
    padding: 24px 18px;
    border-radius: 8px;
  }

  .steed-product-archive .catalog-empty-state h2,
  .supei-hot-deals-page .catalog-empty-state h2 {
    font-size: 22px;
  }
}

@media (hover: none) {
  .steed-product-archive .product-card__img--hover,
  .supei-hot-deals-page .product-card__img--hover {
    display: none;
  }

  .steed-product-archive .product-card--has-hover-image:hover .product-card__img--main,
  .steed-product-archive .product-card--has-hover-image:focus-within .product-card__img--main,
  .supei-hot-deals-page .product-card--has-hover-image:hover .product-card__img--main,
  .supei-hot-deals-page .product-card--has-hover-image:focus-within .product-card__img--main {
    opacity: 1;
    transform: none;
  }

  .steed-product-archive .product-card__actions,
  .supei-hot-deals-page .product-card__actions {
    opacity: 1;
    visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steed-product-archive .product-grid .product-card,
  .supei-hot-deals-page .product-grid .product-card {
    animation: none;
  }

  .steed-product-archive .product-card,
  .supei-hot-deals-page .product-card {
    transition: none;
  }
}

.steed-related-products .product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4, 16px);
}

@media (max-width: 1024px) and (min-width: 769px) {
  .steed-related-products .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .steed-related-products .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .steed-related-products .product-grid > .product-card:nth-child(n+5) {
    display: none;
  }
}

@media (max-width: 480px) {
  .steed-related-products .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
