.fm-list {
  padding-top: 40px;
}
.fm-stack {
  display: grid;
  gap: 20px;
  align-content: start;
}
.fm-wholesale {
  background: var(--surface);
  padding: 56px 0;
}
.fm-wholesale .wrap {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.fm-narrow {
  max-width: 768px;
}
.fm-narrow h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}
.fm-cover {
  margin: 48px auto;
}
.fm-featured {
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-bottom: 72px;
}
.fm-featured:hover h2 {
  color: var(--accent);
}
.prose {
  overflow-wrap: anywhere;
}
.prose h3 {
  font-size: 1.3rem;
}
.pager {
  align-items: center;
}
.card:active,
.chip:active,
.pager a:active {
  opacity: 0.7;
}
@media (max-width: 860px) {
  .fm-featured {
    grid-template-columns: 1fr;
  }
}

/* Product pages: Mineral Wash (dark). Articles keep the light inner-page look. */
body:has(.fm-products) {
  background: var(--ink);
}
.fm-products {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
}
.fm-products .muted,
.fm-products .page-hero p,
.fm-products .crumbs {
  color: var(--stone);
}
.fm-products .crumbs a:hover {
  color: var(--brass);
}
.fm-products h1,
.fm-products h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.fm-products .page-hero {
  border-bottom-color: var(--ink-line);
}
.fm-products .page-hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
}
.fm-products .eyebrow {
  color: var(--brass);
  letter-spacing: 0.26em;
}
.fm-products .chip {
  border-color: var(--ink-line);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.fm-products .chip:hover {
  border-color: var(--bone);
}
.fm-products .chip[aria-current="true"] {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}
.fm-products .pager a {
  border-color: var(--ink-line);
}
.fm-products .card-media {
  border: 0;
  border-radius: 0;
}
.fm-products .ph {
  position: relative;
  border-radius: 0;
  background: var(--ink-raised);
}
.fm-products .card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0;
}
.fm-products .card:hover h3 {
  color: var(--brass);
}
.fm-products .card-meta {
  color: var(--stone);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* Second image fades in on hover. */
.ph .ph-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover .ph .ph-alt {
  opacity: 1;
}
/* Touch screens can't hover, so the two images trade places every 1.5s. */
@media (hover: none) {
  .ph .ph-alt {
    animation: ph-swap 3s infinite;
  }
}
@keyframes ph-swap {
  0%, 37% { opacity: 0; }
  50%, 87% { opacity: 1; }
  100% { opacity: 0; }
}

/* Product detail: images lead, specs beside them. */
.fm-pd {
  padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 9vw, 112px);
}
.fm-pd .crumbs {
  margin-bottom: 24px;
}
/* Desktop: images left, specs right (spanning both image rows). Phone: main image, specs, then gallery. */
.fm-pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  grid-template-areas: "main info" "gallery info";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 10px;
  align-items: start;
}
.fm-pd-main {
  grid-area: main;
  display: block;
}
.fm-pd-gallery {
  grid-area: gallery;
}
.fm-pd-info {
  grid-area: info;
}
.fm-pd-main img {
  width: 100%;
  height: auto;
  background: var(--ink-raised);
}
.fm-pd-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.fm-pd-shot {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-raised);
}
/* An odd last image runs full width so the grid never ends on a gap. */
.fm-pd-shot:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.fm-pd-shot img,
.fm-pd-main img {
  transition: opacity 0.2s;
}
.fm-pd-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fm-pd-shot:hover img,
.fm-pd-main:hover img {
  opacity: 0.88;
}
.fm-pd-info {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 22px;
}
.fm-pd-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
.fm-pd-info h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.02;
}
.fm-pd-summary {
  color: var(--bone-dim);
  line-height: 1.7;
}
.fm-pd-specs {
  margin: 0;
  border-bottom: 1px solid var(--ink-line);
}
.fm-pd-specs div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--ink-line);
  font-size: 0.92rem;
}
.fm-pd-specs dt {
  color: var(--stone);
}
.fm-pd-specs dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.fm-pd-actions {
  display: grid;
  gap: 10px;
}
.fm-pd-actions .btn {
  height: 52px;
  padding: 0 24px;
}
.fm-btn-outline {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.fm-btn-outline:hover {
  background: var(--bone);
  color: var(--ink);
}
.fm-pd-body {
  padding-top: 8px;
  color: var(--bone-dim);
  font-size: 0.95rem;
}
.fm-products .prose a {
  color: var(--brass);
}
.fm-products .fm-wholesale {
  background: var(--ink-raised);
}
.fm-products .link-arrow {
  color: var(--brass);
}
@media (max-width: 860px) {
  .fm-pd-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "info" "gallery";
    grid-template-rows: auto;
    row-gap: 28px;
  }
  .fm-pd-info {
    position: static;
  }
}

/* Tag filters (e.g. Garment Dye) sit after the category chips. */
.chip-sep {
  align-self: center;
  width: 1px;
  height: 24px;
  margin: 0 6px;
  background: var(--line);
}
.chip-tag {
  border-color: var(--accent);
  color: var(--accent);
}
.chip-tag[aria-current="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.fm-products .chip-sep {
  background: var(--ink-line);
}
.fm-products .chip-tag {
  border-color: var(--brass);
  color: var(--brass);
}
.fm-products .chip-tag:hover {
  border-color: var(--brass);
  background: rgba(201, 168, 119, 0.12);
}
.fm-products .chip-tag[aria-current="true"] {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}

/* Wash Library: numbered tests on the dark product ground. */
.fm-wash em {
  font-style: italic;
}
.fm-wash-hero .wrap {
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px;
  align-items: end;
}
.fm-wash-intro {
  display: grid;
  gap: 20px;
}
.fm-wash-intro h1 {
  line-height: 0.95;
}
.fm-wash-intro p {
  max-width: 620px;
  color: var(--bone-dim);
  line-height: 1.7;
}
.fm-wash-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink-line);
}
.fm-wash-stats div {
  display: grid;
  gap: 6px;
  padding: 16px 0 0 16px;
  border-left: 1px solid var(--ink-line);
}
.fm-wash-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}
.fm-wash-stats strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.75rem;
  line-height: 1;
}
.fm-wash-stats span,
.fm-wash-flabel {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}
.fm-wash-filters {
  padding: 32px 0;
  border-bottom: 1px solid var(--ink-line);
}
.fm-wash-filters .wrap {
  display: grid;
  gap: 14px;
}
.fm-wash-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fm-wash-filter .fm-wash-flabel {
  width: 110px;
  flex: 0 0 auto;
}
.fm-wash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fm-wash .chip {
  padding: 8px 16px;
}
.fm-wash-code {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 8px;
  background: var(--bone);
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.fm-wash-code.is-large {
  position: static;
  padding: 7px 12px;
  font-size: 1.1rem;
}
.fm-wash-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.fm-wash-card h3 {
  margin-top: 4px;
}
.fm-wash-wear {
  color: var(--brass);
  white-space: nowrap;
}
/* Detail: before / after pair, more photos two per row, specs beside. */
.fm-wash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
/* The info column reuses .fm-pd-info, which names a grid area on product pages. */
.fm-wash-grid .fm-pd-info {
  grid-area: auto;
}
.fm-wash-media {
  display: grid;
  gap: 10px;
}
.fm-wash-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.fm-wash-shot {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-raised);
}
.fm-wash-shot a {
  display: block;
  height: 100%;
}
.fm-wash-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.fm-wash-shot a:hover img {
  opacity: 0.88;
}
.fm-wash-shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  background: rgba(22, 23, 20, 0.85);
  color: var(--bone);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.fm-wash-missing {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--stone);
  font-size: 0.9rem;
  border: 1px dashed var(--ink-line);
  box-sizing: border-box;
}
.fm-wash-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.fm-wash-note {
  font-size: 0.82rem;
  line-height: 1.6;
}
.fm-wash-related {
  padding-top: 0;
}
.fm-wash-related .section-head {
  padding-top: 48px;
  border-top: 1px solid var(--ink-line);
  margin-bottom: 28px;
}
.fm-wash-related h2 {
  font-size: clamp(2rem, 3.4vw, 2.5rem);
}
.fm-wash-cta .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px 48px;
  padding: 56px clamp(20px, 4vw, 64px);
  background: var(--ink-raised);
}
.fm-wash-cta {
  padding-bottom: clamp(64px, 8vw, 96px);
}
.fm-wash-cta .wrap > div {
  display: grid;
  gap: 12px;
  max-width: 720px;
}
.fm-wash-cta h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.02;
}
.fm-wash-cta p {
  color: var(--bone-dim);
  line-height: 1.7;
}
.fm-wash-cta .btn {
  white-space: nowrap;
}
@media (max-width: 960px) {
  .fm-wash-hero .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 860px) {
  .fm-wash-grid {
    grid-template-columns: 1fr;
  }
  .fm-wash-cta .wrap {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Phone: each filter group scrolls sideways on one line, as in the mobile design. */
@media (max-width: 600px) {
  .fm-wash-filters {
    padding: 20px 0;
  }
  .fm-wash-filter {
    display: grid;
    gap: 8px;
  }
  .fm-wash-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -16px;
    padding-right: 16px;
    scrollbar-width: none;
  }
  .fm-wash-chips .chip {
    flex: 0 0 auto;
    font-size: 0.8rem;
    padding: 8px 14px;
  }
  .fm-wash-card h3 {
    font-size: 1.2rem;
  }
  .fm-wash-meta {
    font-size: 0.65rem;
  }
  .fm-wash-cta .wrap {
    padding: 28px 20px;
    margin: 0 16px;
  }
}
