.edit-header { position: sticky; top: 0; }

.edit-intro {
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem) clamp(3rem, 6vw, 6rem);
  border-bottom: 1px solid var(--ink);
  background: var(--acid);
}
.edit-intro h1 {
  max-width: 12ch;
  margin: clamp(2rem, 6vw, 5rem) 0;
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 14rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.72;
}
.edit-intro__bottom {
  display: grid;
  grid-template-columns: 1fr minmax(18rem, 0.65fr);
  gap: 2rem;
  align-items: end;
}
.edit-deck { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 4.5rem); line-height: 0.95; }
.edit-note { max-width: 36rem; margin: 0; font-size: clamp(1rem, 1.6vw, 1.25rem); }

.product-edit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--ink);
}
.product-card { min-width: 0; padding: clamp(1rem, 2.5vw, 2.5rem); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.product-card:nth-child(3n) { border-right: 0; }
.product-card:nth-last-child(-n+3) { border-bottom: 0; }
.product-card > a { display: flex; height: 100%; flex-direction: column; text-decoration: none; }
.product-card__image { overflow: hidden; aspect-ratio: 4 / 4.6; margin-bottom: 1rem; background: #f0f1f3; }
.product-card__image img { height: 100%; object-fit: cover; transition: transform 400ms ease; }
.product-card:hover .product-card__image img { transform: scale(1.025); }
.product-card__meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; }
.product-card__brand { margin: 0 0 0.35rem; font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; }
.product-card h2 { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 3.6rem); font-weight: 400; letter-spacing: -0.045em; line-height: 0.9; }
.product-card__take { margin: 0 0 1.8rem; max-width: 35rem; font-size: clamp(0.95rem, 1.2vw, 1.08rem); }
.product-card__link { margin-top: auto; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.product-card:hover .product-card__link { text-decoration: underline; text-underline-offset: 0.25rem; }

.affiliate-note {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  background: var(--blue);
}
.affiliate-note p { max-width: 48rem; margin: 0; font-size: 0.78rem; }
.affiliate-note a { flex: 0 0 auto; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

@media (max-width: 900px) {
  .product-edit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card:nth-child(3n) { border-right: 1px solid var(--ink); }
  .product-card:nth-child(2n) { border-right: 0; }
  .product-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--ink); }
  .product-card:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 600px) {
  .edit-intro h1 { margin: 3rem 0; font-size: clamp(4.7rem, 25vw, 7.4rem); line-height: 0.78; }
  .edit-intro__bottom { grid-template-columns: 1fr; }
  .edit-note { max-width: 30rem; }
  .product-edit { grid-template-columns: 1fr; }
  .product-card, .product-card:nth-child(2n), .product-card:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--ink); }
  .product-card:last-child { border-bottom: 0; }
  .product-card__image { aspect-ratio: 4 / 4.7; }
  .product-card h2 { font-size: 2.7rem; }
  .affiliate-note { display: block; }
  .affiliate-note p { margin-bottom: 1rem; }
}

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