.pg {
  --pg-ink: #111;
  --pg-muted: #6b6b70;
  --pg-line: #ececee;
  --pg-surface: #f4f4f5;
  --pg-red: #C4132A;
  --pg-red-dark: #a81023;
  --pg-ease: cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--pg-ink);
}

/* HEADER */
.pg-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.pg-title {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pg-lede {
  margin: 0;
  font-size: 16px;
  color: var(--pg-muted);
}

.pg-asof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--pg-muted);
}

.pg-asof::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fa36b;
}

/* SORT */
.pg-sort {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 999px;
  background: var(--pg-surface);
}

.pg-sort-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: left 0.45s var(--pg-ease), width 0.45s var(--pg-ease);
}

.pg-sort-btn {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--pg-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.pg-sort-btn:hover,
.pg-sort-btn.is-active {
  color: var(--pg-ink);
}

.pg-sort:not(.has-thumb) .pg-sort-btn.is-active {
  background: #fff;
}

.pg-sort-btn:focus-visible {
  outline: 2px solid var(--pg-ink);
  outline-offset: 2px;
}

/* GRID */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* CARD */
.pg-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--pg-line);
  border-radius: 16px;
  background: #fff;
  transition:
    opacity 0.7s ease var(--pg-delay, 0ms),
    translate 0.7s var(--pg-ease) var(--pg-delay, 0ms),
    transform 0.5s var(--pg-ease),
    box-shadow 0.5s var(--pg-ease),
    border-color 0.3s ease;
}

.pg-card.is-pending {
  opacity: 0;
  translate: 0 16px;
}

.pg-card:hover {
  transform: translateY(-4px);
  border-color: #e0e0e3;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.22);
}

.pg-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: radial-gradient(ellipse at 50% 85%, #fff 0%, var(--pg-surface) 70%);
}

.pg-card-img {
  position: absolute;
  inset: 20px 24px;
  width: calc(100% - 48px);
  height: calc(100% - 40px);
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.7s var(--pg-ease);
}

.pg-card:hover .pg-card-img {
  transform: translateX(6px) scale(1.02);
}

.pg-card-placeholder {
  font-size: 56px;
  color: #c4c4c8;
}

.pg-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.pg-card-name {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pg-card-nameplate {
  max-width: 70%;
  max-height: 36px;
  width: auto;
  height: auto;
}

/* PRICE */
.pg-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pg-price-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pg-muted);
}

.pg-price-amount {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.pg-price-discount {
  font-size: 13px;
  font-weight: 600;
  color: var(--pg-red);
}

/* SPECS */
.pg-specs {
  display: flex;
  flex-wrap: wrap;
  margin: 16px 0 24px;
  padding: 14px 0 0;
  border-top: 1px solid var(--pg-line);
  list-style: none;
  font-size: 13px;
  color: var(--pg-muted);
}

.pg-specs li + li::before {
  content: "·";
  margin: 0 8px;
}

/* ACTIONS */
.pg-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.pg-btn {
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--pg-red);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s var(--pg-ease);
}

.pg-btn:hover {
  background: var(--pg-red-dark);
  color: #fff;
  text-decoration: none;
}

.pg-btn:active {
  transform: scale(0.97);
}

.pg-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pg-ink);
  text-decoration: none;
  transition: gap 0.3s var(--pg-ease);
}

.pg-link:hover {
  gap: 10px;
  color: var(--pg-ink);
  text-decoration: none;
}

.pg-btn:focus-visible,
.pg-link:focus-visible {
  outline: 2px solid var(--pg-ink);
  outline-offset: 3px;
}

.pg-disclaimer {
  margin: 40px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--pg-muted);
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .pg-card,
  .pg-card-img,
  .pg-sort-thumb,
  .pg-link {
    transition: none;
  }

  .pg-card:hover,
  .pg-card:hover .pg-card-img {
    transform: none;
  }
}

/* RESPONSIVE */
@media screen and (max-width: 991px) {
  .pg-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .pg {
    padding: 36px 16px 56px;
  }

  .pg-title {
    font-size: 30px;
  }

  .pg-lede {
    font-size: 15px;
  }

  .pg-sort {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pg-sort::-webkit-scrollbar {
    display: none;
  }

  .pg-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pg-price-amount {
    font-size: 28px;
  }
}
