:root {
  --page-background: #ffffff;
}

body {
  min-height: 100vh;
  isolation: isolate;
  background: var(--page-background);
}

/* Decorative backdrop stays separate from content, forms and navigation. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("images/branding/wetroc-resale.webp") center / cover no-repeat;
  opacity: .12;
}

@media (max-width: 600px) {
  body::before {
    background-image: url("images/branding/wetroc-resale-mobile.webp");
    background-position: left center;
    opacity: .08;
  }
}

@media print {
  body::before {
    display: none;
  }
}

.site-header,
footer {
  background: white;
}

.product-card {
  display: block;
  padding: 10px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 3px 12px rgba(21, 25, 29, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
  border-color: var(--line);
  box-shadow: 0 12px 28px rgba(21, 25, 29, .11);
  transform: translateY(-3px);
}

.product-card:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 3px;
}

.product-card .product-image {
  border-radius: 12px;
}

.product-card .product-meta,
.product-card h3,
.product-card > strong {
  margin-inline: 4px;
}

.seller-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--pale);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.seller-type-badge.professional {
  background: var(--pale);
  color: var(--green);
}

.seller-type-badge svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.detail-copy dd.seller-type-badge {
  display: inline-flex;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .product-card {
    transition: none;
  }

  .product-card:hover {
    transform: none;
  }
}
