.page-products {
  --pr-gap: clamp(22px, 4.2vw, 60px);
  --pr-shadow: 0 18px 34px -26px rgba(28, 23, 19, 0.8);
  --pr-hair: 1px solid rgba(28, 23, 19, 0.16);
  --pr-wine-deep: #4b1120;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
}

.page-products h1,
.page-products h2,
.page-products h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0;
}

.page-products p {
  margin: 0;
}

.page-products a {
  color: inherit;
}

.page-products img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-products :focus-visible {
  outline: 3px solid var(--flag-yellow);
  outline-offset: 2px;
}

.page-products figure {
  margin: 0;
}

.page-products figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

/* ---------- hero ---------- */
.pr-hero {
  position: relative;
  padding: clamp(16px, 3vw, 28px) 0 clamp(34px, 6vw, 72px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 58%, var(--paper-2) 100%);
}

.pr-hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -20%;
  width: min(820px, 90vw);
  height: 118%;
  background: linear-gradient(140deg, rgba(208, 138, 58, 0.34), rgba(179, 38, 30, 0.12) 58%, transparent 82%);
  transform: skewX(-11deg);
  pointer-events: none;
}

.pr-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--flag-blue) 0 16.6%,
    var(--cream) 16.6% 33.2%,
    var(--chili) 33.2% 49.8%,
    var(--flag-green) 49.8% 66.4%,
    var(--flag-yellow) 66.4% 83%,
    var(--amber-deep) 83% 100%
  );
}

.pr-hero__inner {
  position: relative;
  z-index: 1;
}

.pr-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(18px, 3vw, 30px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.pr-crumbs a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--flag-blue);
  text-underline-offset: 4px;
}

.pr-crumbs a:hover {
  color: var(--chili);
}

.pr-hero__grid {
  display: grid;
  gap: var(--pr-gap);
}

.pr-kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--amber-deep);
  margin-bottom: 14px;
}

.pr-hero h1 {
  font-size: clamp(32px, 5.6vw, 64px);
  max-width: 15em;
}

.pr-hl {
  background: linear-gradient(transparent 64%, rgba(227, 178, 60, 0.6) 64%);
  padding: 0 0.08em;
}

.pr-lede {
  margin-top: 18px;
  max-width: 36em;
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  color: var(--ink-soft);
}

.pr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.pr-hero__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: var(--pr-hair);
}

.pr-hero__facts strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--amber-deep);
}

.pr-hero__facts span {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.pr-hero__figure {
  position: relative;
  padding: 10px;
  background: var(--cream);
  border: 1px solid var(--ink);
  box-shadow: var(--pr-shadow);
}

.pr-hero__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pr-hero__cap {
  margin-top: 10px;
}

/* ---------- section shell ---------- */
.pr-section {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0;
}

.pr-sec-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(22px, 4vw, 40px);
}

.pr-sec-num {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--chili);
}

.pr-sec-num::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.pr-sec-head h2 {
  font-size: clamp(24px, 3.8vw, 42px);
  max-width: 22em;
}

.pr-sec-lede {
  max-width: 46em;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.5vw, 16.5px);
}

/* ---------- catalog ---------- */
.pr-jump {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 20px;
}

.pr-jump a {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--ink);
  background: var(--cream);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.pr-jump a:hover,
.pr-jump a:focus-visible {
  background: var(--amber);
  transform: translateY(-2px);
}

.pr-cats {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.pr-cat {
  position: relative;
  padding: 20px 18px 22px 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--pr-shadow);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.pr-cat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--amber);
}

.pr-cat:nth-child(2)::before {
  background: var(--chili);
}

.pr-cat:nth-child(3)::before {
  background: var(--flag-blue);
}

.pr-cat:nth-child(4)::before {
  background: var(--jade);
}

.pr-cat:nth-child(5)::before {
  background: var(--flag-green);
}

.pr-cat h3 {
  font-size: 20px;
  margin: 10px 0 8px;
}

.pr-cat p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.pr-cat__use {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(28, 23, 19, 0.28);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--amber-deep);
}

/* ---------- workbench ---------- */
.pr-work {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper-2) 100%);
  border-top: var(--pr-hair);
  border-bottom: var(--pr-hair);
}

.pr-work__grid {
  display: grid;
  gap: clamp(22px, 3vw, 38px);
}

.pr-aside-title,
.pr-main-title {
  font-size: clamp(16px, 1.8vw, 19px);
  margin-bottom: 14px;
}

.pr-scale {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-bottom: 16px;
}

.pr-scale__base {
  fill: var(--ink);
  opacity: 0.35;
}

.pr-scale__bar {
  fill: var(--amber);
}

.pr-scale__bar--hot {
  fill: var(--chili);
}

.pr-dims {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.pr-dim {
  position: relative;
  padding: 9px 11px 10px;
  background: var(--cream);
  border: 1px solid rgba(28, 23, 19, 0.22);
  font-size: 13.5px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pr-dim:hover,
.pr-dim:focus {
  background: #fff;
  border-color: var(--amber-deep);
}

.pr-dim__i {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--chili);
  margin-right: 7px;
}

.pr-dim__tip {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.pr-work__figure {
  margin-bottom: clamp(18px, 3vw, 28px);
  padding: 9px;
  background: var(--paper);
  border: 1px solid var(--ink);
}

.pr-work__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.pr-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ink);
  background: var(--cream);
  -webkit-overflow-scrolling: touch;
}

.pr-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
}

.pr-table caption {
  caption-side: top;
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border-bottom: var(--pr-hair);
}

.pr-table th,
.pr-table td {
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(28, 23, 19, 0.12);
}

.pr-table thead th {
  background: var(--jade);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 400;
  border-bottom: none;
}

.pr-table tbody tr:nth-child(even) {
  background: rgba(234, 217, 191, 0.55);
}

.pr-table tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.pr-table td {
  color: var(--ink-soft);
  font-size: 13.5px;
}

.pr-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: rgba(208, 138, 58, 0.18);
  border: 1px solid rgba(138, 75, 18, 0.35);
  padding: 2px 6px;
}

/* ---------- membership ---------- */
.pr-member {
  background: var(--wine);
  color: var(--cream);
  overflow: hidden;
}

.pr-member::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 82% at 86% 0%, rgba(227, 178, 60, 0.2), transparent 62%);
  pointer-events: none;
}

.pr-member .yb-container {
  position: relative;
  z-index: 1;
}

.pr-sec-head--dark .pr-sec-num {
  color: var(--flag-yellow);
}

.pr-sec-head--dark .pr-sec-lede {
  color: rgba(255, 247, 232, 0.82);
}

.pr-member__grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.pr-member__entries {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.pr-member__entries li {
  padding: 13px 14px;
  border: 1px solid rgba(255, 247, 232, 0.3);
  background: rgba(255, 247, 232, 0.06);
  font-size: 14px;
  color: rgba(255, 247, 232, 0.86);
}

.pr-member__entries strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--flag-yellow);
  margin-bottom: 5px;
}

.pr-member__note {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 247, 232, 0.78);
  border-left: 3px solid var(--amber);
  padding-left: 12px;
}

.pr-member__figure {
  padding: 9px;
  background: rgba(255, 247, 232, 0.1);
  border: 1px solid rgba(255, 247, 232, 0.34);
}

.pr-member__figure img {
  width: 100%;
  aspect-ratio: 12 / 7;
  object-fit: cover;
}

.pr-member__figure figcaption {
  color: rgba(255, 247, 232, 0.7);
}

.pr-benefits {
  display: grid;
  gap: 10px;
  margin-top: clamp(22px, 3.5vw, 36px);
}

.pr-benefit {
  background: rgba(255, 247, 232, 0.07);
  border: 1px solid rgba(255, 247, 232, 0.28);
}

.pr-benefit summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
}

.pr-benefit summary::-webkit-details-marker {
  display: none;
}

.pr-benefit summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--flag-yellow);
}

.pr-benefit[open] summary::after {
  content: "−";
}

.pr-benefit summary:hover {
  background: rgba(255, 247, 232, 0.08);
}

.pr-benefit p {
  padding: 0 14px 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255, 247, 232, 0.82);
}

/* ---------- season ---------- */
.pr-season {
  background: var(--paper);
}

.pr-season__grid {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
}

.pr-season__lead {
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 36em;
}

.pr-cadence {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}

.pr-cadence li {
  padding: 14px;
  background: var(--cream);
  border-top: 3px solid var(--amber);
  font-size: 14px;
  color: var(--ink-soft);
}

.pr-cadence li:nth-child(2) {
  border-top-color: var(--chili);
}

.pr-cadence li:nth-child(3) {
  border-top-color: var(--flag-green);
}

.pr-cadence strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber-deep);
  margin-bottom: 6px;
}

.pr-season__link {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.pr-season__link a {
  color: var(--chili);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pr-season__figure {
  padding: 10px;
  background: var(--cream);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(179, 38, 30, 0.14);
  transform: rotate(1.2deg);
}

.pr-season__figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- flow ---------- */
.pr-flow {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-top: var(--pr-hair);
}

.pr-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(26px, 4vw, 44px);
  display: grid;
  gap: 12px;
}

.pr-step {
  position: relative;
  padding: 16px 16px 18px;
  background: var(--cream);
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(138, 75, 18, 0.18);
}

.pr-step__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--chili);
}

.pr-step h3 {
  font-size: 17px;
  margin: 6px 0 8px;
}

.pr-step p {
  font-size: 14px;
  color: var(--ink-soft);
}

.pr-step__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--amber-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.pr-step__link:hover {
  color: var(--chili);
}

.pr-flow__grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
}

.pr-flow__figure {
  padding: 9px;
  background: var(--cream);
  border: 1px solid var(--ink);
}

.pr-flow__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.pr-combos ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.pr-combos li {
  padding: 11px 0 11px 14px;
  border-left: 4px solid var(--amber);
  font-size: 14px;
  color: var(--ink-soft);
}

.pr-combos li:nth-child(2) {
  border-left-color: var(--chili);
}

.pr-combos li:nth-child(3) {
  border-left-color: var(--flag-blue);
}

.pr-combos li:nth-child(4) {
  border-left-color: var(--jade);
}

.pr-combos strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 3px;
}

.pr-combos__hint {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.pr-combos__hint a {
  color: var(--chili);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pr-cta {
  margin-top: clamp(26px, 4vw, 44px);
  padding: 20px;
  background: var(--jade);
  color: var(--cream);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.pr-cta p {
  font-size: 15px;
  max-width: 30em;
  color: rgba(255, 247, 232, 0.9);
}

.pr-cta__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.pr-cta__alt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--flag-yellow);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pr-cta__alt:hover {
  color: var(--cream);
}

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
  .pr-hero__facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pr-cadence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 720px) {
  .pr-cats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .pr-cat {
    grid-column: span 3;
  }

  .pr-cat:nth-child(n + 3) {
    grid-column: span 2;
  }

  .pr-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .pr-step::after {
    content: "";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 9px solid var(--amber-deep);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
  }

  .pr-step:last-child::after {
    display: none;
  }
}

@media (min-width: 900px) {
  .pr-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: end;
  }

  .pr-hero__figure {
    margin-top: 34px;
  }

  .pr-member__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: start;
  }

  .pr-season__grid {
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  .pr-flow__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (min-width: 1040px) {
  .pr-work__grid {
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: start;
  }

  .pr-work__aside {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }

  .pr-dim {
    cursor: help;
  }

  .pr-dim__tip {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    width: 232px;
    margin-top: 0;
    padding: 10px 12px;
    background: var(--ink);
    color: rgba(255, 247, 232, 0.92);
    font-size: 12.5px;
    line-height: 1.65;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    box-shadow: 0 12px 24px -16px rgba(28, 23, 19, 0.9);
  }

  .pr-dim:hover .pr-dim__tip,
  .pr-dim:focus .pr-dim__tip,
  .pr-dim:focus-within .pr-dim__tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products *,
  .page-products *::before,
  .page-products *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .pr-season__figure {
    transform: none;
  }
}
