/* =============================================================================
   Shop and the product page — the 2026 Terrace boards 7 and 8 (#61). A
   CATALOGUE, not a storefront: the chips are links (?kind=…), the sizes are a
   plain list, and the only action is an enquiry. Measured at 1440 (the 1280
   column), 768 and 390.
   ========================================================================== */

/* --- The picture: a placeholder render, or a coloured word panel --------- */
.ntc-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-ink-raised);
}
.ntc-tile--secondary { background: var(--color-secondary); }
.ntc-tile--ink       { background: var(--color-ink-raised); }
.ntc-tile--accent    { background: var(--color-accent-base); }
.ntc-tile--gray      { background: var(--color-gray-600); }
.ntc-tile__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ntc-tile__word {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-white);
}
.ntc-tile--secondary .ntc-tile__word { color: var(--color-accent-base); }
.ntc-tile--accent .ntc-tile__word    { color: var(--color-ink); }

/* --- The filter bar ------------------------------------------------------- */
.ntc-sec--products .ntc-sec__inner { padding-block: 64px; display: flex; flex-direction: column; gap: 64px; }
.ntc-shopbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ntc-shopbar .ntc-chiprow { margin: 0; }
.ntc-shopbar__note { margin: 0; font-size: 16px; color: var(--color-text); }

/* --- Product cards -------------------------------------------------------- */
.ntc-pgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ntc-pgrid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ntc-pgrid--three .ntc-tile { aspect-ratio: 410 / 302; }
.ntc-pgrid__card { min-width: 0; }
.ntc-pgrid__link, .ntc-pgrid__link:hover { display: flex; flex-direction: column; gap: 16px; color: inherit; text-decoration: none; }
.ntc-pgrid__name {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-white);
}
.ntc-pgrid__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ntc-pgrid__price { font-weight: 600; font-size: 20px; color: var(--color-accent); }
.ntc-pgrid__range { font-size: 16px; color: var(--color-text); }

/* --- Ordering, on gold ---------------------------------------------------- */
.ntc-sec--ordering .ntc-sec__inner { padding-block: 120px; display: flex; flex-direction: column; gap: 64px; }
.ntc-sec--ordering .ntc-lhead__title { display: flex; flex-direction: column; gap: 64px; }
.ntc-sec--ordering .ntc-kicker,
html .ntc-sec--ordering .ntc-ltitle { color: var(--color-ink); margin: 0; }
.ntc-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ntc-steps__item { display: flex; flex-direction: column; gap: 12px; }
.ntc-steps__num { font-family: var(--font-display); font-size: 96px; line-height: 1.5; color: var(--color-secondary); }
html .ntc-steps__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-ink);
}
.ntc-steps__body { margin: 0; font-size: 20px; line-height: 1.5; color: var(--color-ink); }

/* --- Product detail ------------------------------------------------------- */
.ntc-sec--product .ntc-sec__inner { padding-block: 64px; display: flex; flex-direction: column; gap: 64px; }
.ntc-crumbs { min-height: 44px; display: flex; align-items: center; }
.ntc-crumbs__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: 16px; color: var(--color-text); }
.ntc-crumbs__list li + li::before { content: "/"; margin-right: 8px; }
.ntc-crumbs__list a { color: var(--color-text); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.ntc-crumbs__list a:hover { color: var(--color-white); text-decoration: underline; }
.ntc-crumbs__list [aria-current] { color: var(--color-white); display: inline-flex; align-items: center; }
.ntc-crumbs__back { display: none; }

.ntc-pdetail {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(0, 540px);
  justify-content: space-between;
  align-items: start;
  gap: 80px;
}
.ntc-pdetail__tile .ntc-tile__word { font-size: 160px; }
.ntc-pdetail__copy { display: flex; flex-direction: column; gap: 24px; }
.ntc-pdetail__copy > p,
.ntc-pdetail__desc > p { margin: 0; }
.ntc-pdetail__badge {
  align-self: flex-start;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 16px;
  background: var(--color-accent-base);
  color: var(--color-ink);
}
html .ntc-pdetail__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 96px;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--color-white);
}
.ntc-pdetail__price { font-family: var(--font-display); font-size: 56px; line-height: 1.5; text-transform: uppercase; color: var(--color-accent); }
.ntc-pdetail__desc { font-size: 20px; line-height: 1.55; color: var(--color-text); }
.ntc-pdetail__sizes { display: flex; flex-direction: column; gap: 24px; }
.ntc-pdetail__label { margin: 0; font-weight: 600; font-size: 16px; letter-spacing: 0.08em; color: var(--color-white); }
.ntc-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ntc-sizes__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 56px;
  padding: 0 12px;
  font-weight: 600;
  font-size: 16px;
  background: var(--color-ink-raised);
  border: 1px solid var(--color-white);
  color: var(--color-white);
}
/* Sold out: no fill, a dashed muted edge and the size struck through, so it
   reads as gone without colour alone. */
.ntc-sizes__item.is-unavailable {
  background: transparent;
  border-style: dashed;
  border-color: var(--color-text);
  color: var(--color-text);
  text-decoration: line-through;
}
.ntc-pdetail__note { font-size: 16px; color: var(--color-text); }
.ntc-pdetail__actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }

/* --- 1024 to 1199 -------------------------------------------------------- */
@media (max-width: 1199px) {
  .ntc-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ntc-pdetail { gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html .ntc-pdetail__title { font-size: 72px; }
  .ntc-pgrid__name { font-size: 28px; }
}

/* --- Below 1024: one centred column -------------------------------------- */
@media (max-width: 1023px) {
  .ntc-sec--products .ntc-sec__inner { padding-block: 40px; gap: 32px; }
  .ntc-shopbar { flex-direction: column; gap: 12px; }
  .ntc-shopbar .ntc-chiprow { justify-content: center; }
  .ntc-shopbar__note { font-size: 15px; text-align: center; }
  .ntc-pgrid, .ntc-pgrid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .ntc-pgrid__link { gap: 8px; }
  .ntc-pgrid__name { font-size: 24px; }
  .ntc-pgrid__price { font-size: 15px; }
  .ntc-pgrid__range { font-size: 13px; }

  .ntc-sec--ordering .ntc-sec__inner { padding-block: 64px; gap: 32px; text-align: center; }
  .ntc-sec--ordering .ntc-lhead__title { gap: 16px; align-items: center; }
  html .ntc-sec--ordering .ntc-ltitle { font-size: 40px; }
  .ntc-steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ntc-steps__item { align-items: center; gap: 4px; }
  .ntc-steps__num { font-size: 64px; line-height: 1.2; }
  html .ntc-steps__title { font-size: 28px; line-height: 1.2; }
  .ntc-steps__body { font-size: 17px; max-width: 420px; }

  .ntc-sec--product .ntc-sec__inner { padding-block: 32px; gap: 32px; }
  .ntc-crumbs__list { display: none; }
  .ntc-crumbs__back, .ntc-crumbs__back:hover { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--color-white); text-decoration: none; }
  .ntc-pdetail { display: flex; flex-direction: column; gap: 32px; }
  .ntc-pdetail__tile { width: 100%; }
  .ntc-pdetail__tile .ntc-tile__word { font-size: 96px; }
  /* Product copy and cards stay left-aligned on a phone, as the board draws them. */
  .ntc-pdetail__copy { gap: 20px; width: 100%; text-align: left; align-items: stretch; }
  .ntc-pgrid { text-align: left; }
  .ntc-sizes, .ntc-pdetail__actions { justify-content: flex-start; }
  html .ntc-pdetail__title { font-size: 56px; }
  .ntc-pdetail__price { font-size: 40px; }
  .ntc-pdetail__desc { font-size: 17px; }
  .ntc-pdetail__label { font-size: 13px; }
  .ntc-sizes__item { min-width: 56px; height: 48px; font-size: 15px; }
  .ntc-pdetail__note { font-size: 15px; }
}

@media (max-width: 767px) {
  .ntc-pgrid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
}
