/* Our products. Page-specific pieces only; rhythm, cards and heads come from components.css. */

/* ---------- Hero ---------- */
.cat-hero { grid-template-columns: minmax(0, 1fr) 728px; align-items: stretch; }
.cat-hero__copy { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-40); }
.cat-hero__media { height: 480px; }

/* ---------- Catalogue ---------- */
.catalogue__filter { margin-bottom: var(--sp-24); }
.chip__count { margin-left: var(--sp-4); color: var(--ink-60); }
.chip[aria-pressed="true"] .chip__count { color: var(--on-dark-dim); }
.catalogue__count { margin-bottom: var(--sp-24); color: var(--forest); }
.catalogue__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
.catalogue__grid > li[hidden] { display: none; }

/* Product card: studio photo on its own white ground, code + name + material below. */
.product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--white); }
.product__img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.product__body { flex: 1; padding: var(--sp-16) var(--sp-16) var(--sp-24); border-top: 1px solid var(--hairline); }
.product__code { font-size: 12px; font-weight: 600; line-height: 20px; letter-spacing: var(--tracking); color: var(--gold-text); }
.product__name { margin-top: var(--sp-4); font-size: 16px; font-weight: 400; line-height: 24px; color: var(--ink); }
.product__meta { margin-top: var(--sp-4); font-size: 12px; line-height: 20px; color: var(--ink-60); }

.catalogue__more { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-16); margin-top: var(--block-gap); }
.catalogue__more[hidden] { display: none; }

/* ---------- Make it yours: a spec sheet ----------
 * The client bag as a tech-pack drawing: numbered pins on the photo match the numbered
 * spec rows beside it, so the visitor sees exactly what each choice changes. */
.techpack { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--col-gap); align-items: center; }
.sheet { padding: var(--sp-16); border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--cream); }
.sheet__head { display: flex; justify-content: space-between; gap: var(--sp-16); padding: 0 var(--sp-4) var(--sp-12); color: var(--gold-text); }
.sheet__frame { position: relative; overflow: hidden; border-radius: var(--radius-control); outline: 1.5px dashed var(--ink-40); outline-offset: 4px; }
.sheet__img { width: 100%; height: auto; aspect-ratio: 1184 / 864; }
.sheet__caption { padding: var(--sp-16) var(--sp-4) 0; font-size: 12px; line-height: 20px; color: var(--ink-60); }

.pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--clay);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: lining-nums;
}
.sheet__frame .pin { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(245, 242, 234, .85), 0 4px 12px rgba(33, 36, 30, .3); }
.pin--1 { left: 50%; top: 47%; }   /* print: the artwork */
.pin--2 { left: 31%; top: 6%; }    /* handles */
.pin--3 { left: 16%; top: 66%; }   /* fabric: the jute weave */
.pin--4 { left: 89%; top: 34%; }   /* details: side seam and gusset */

.spec { margin-top: var(--sp-32); border-top: 1px solid var(--hairline); }
.spec__row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--sp-16); padding: var(--sp-24) 0; border-bottom: 1px solid var(--hairline); }
.spec__title { font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 32px; color: var(--ink); }
.spec__text { margin-top: var(--sp-4); font-size: 14px; line-height: 22px; color: var(--ink-80); }
.spec__options { display: flex; flex-wrap: wrap; gap: var(--sp-8) var(--sp-16); margin-top: var(--sp-12); color: var(--forest); }
.spec__options li { display: inline-flex; align-items: center; gap: var(--sp-8); }
.spec__options li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* ---------- Also from Genova (cow dung) ---------- */
.extra { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.extra__img { height: auto; aspect-ratio: 3 / 2; }
.extra__forms { display: flex; flex-wrap: wrap; gap: var(--sp-8) var(--sp-24); margin-top: var(--sp-24); color: var(--forest); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .cat-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .catalogue__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .cat-hero { grid-template-columns: 1fr; }
  .cat-hero__media { height: 384px; }
  .techpack { grid-template-columns: 1fr; }
  .extra { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cat-hero__media { height: 280px; }
  .catalogue__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* One swipeable row of categories instead of five wrapped rows. */
  .catalogue__filter .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .catalogue__filter .chip { flex: none; white-space: nowrap; }
  .product__body { padding: var(--sp-12) var(--sp-12) var(--sp-16); }
  .product__name { font-size: 14px; line-height: 20px; }
  .catalogue__more .btn { flex: 1 1 auto; }
  .sheet__head span + span { display: none; }
}
