/* Models page */
.page-head .eyebrow { display: block; margin-bottom: 28px; }
.page-head .display em { color: var(--accent); font-style: italic; }

.filter-bar { background: var(--bg); position: sticky; top: 68px; z-index: 40; }
.filter-row {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: 16px; }
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 999px;
}
.seg button {
  padding: 8px 16px;
  border: 0;
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg);
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.seg button.is-active {
  background: var(--fg);
  color: var(--bg);
}

.model-list { display: flex; flex-direction: column; gap: clamp(80px, 10vw, 140px); }

.model-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.model-row.alt {
  grid-template-columns: 1fr 1.1fr;
}
.model-row.alt .model-media { order: 2; }
.model-row.alt .model-info { order: 1; }

.model-media { display: flex; flex-direction: column; gap: 14px; }
.model-img { aspect-ratio: 5 / 4; width: 100%; }
.model-img.real { overflow: hidden; background: var(--surface-2); }
.model-img.real img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s ease, filter .6s ease;
  filter: saturate(0.78) contrast(0.96) brightness(0.98) sepia(0.06);
}
.model-row:hover .model-img.real img { transform: scale(1.02); }
.model-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.model-thumbs .thumb { aspect-ratio: 1 / 1; }
.model-thumbs button.thumb.real {
  padding: 0;
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  transition: border-color .2s ease, opacity .2s ease;
  opacity: .78;
}
.model-thumbs button.thumb.real:hover { opacity: 1; }
.model-thumbs button.thumb.real.is-active {
  border-color: var(--fg);
  opacity: 1;
}
.model-thumbs .thumb.real { overflow: hidden; background: var(--surface-2); }
.model-thumbs .thumb.real img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.78) contrast(0.96) brightness(0.98) sepia(0.06);
}
[data-theme="dark"] .model-img.real img,
[data-theme="dark"] .model-thumbs .thumb.real img {
  filter: saturate(0.7) contrast(0.95) brightness(0.86) sepia(0.04);
}

.model-info { padding-top: 0; }
.model-num { margin-bottom: 16px; opacity: .65; }
.model-info .h-xl { margin-bottom: 10px; }
.model-info .lead { margin-bottom: 28px; }
.model-desc {
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 520px;
  opacity: .88;
  margin-bottom: 36px;
}

.model-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0 0 36px;
  padding: 0;
}
.model-specs > div {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: center;
}
.model-specs > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
.model-specs dt { opacity: .7; }
.model-specs dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
}

.model-swatches {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}
.swatches { display: flex; gap: 10px; }
.sw {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  position: relative;
  border: 1px solid var(--rule);
  display: inline-block;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.sw:hover { transform: translateY(-1px); }
.sw.is-active {
  border-color: var(--fg);
  box-shadow: 0 0 0 1px var(--fg);
}
.sw span {
  position: absolute;
  inset: 4px;
  border-radius: 999px;
}
.swatch-name { opacity: .7; margin-left: 4px; }
.sw-natural span {
  background: linear-gradient(135deg, #c89567, #a06c3e);
}
.sw-black span {
  background: linear-gradient(135deg, #2a2520, #0d0b09);
}

.model-footer .btn { padding: 14px 22px; }
.model-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--fg);
  flex-wrap: wrap;
}
.model-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.model-price .price-num {
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1;
}
.model-price .price-num + .small { margin-top: 8px; }
.model-price .small { opacity: .7; }

@media (max-width: 1100px) {
  .model-row, .model-row.alt { grid-template-columns: 1fr; }
  .model-row.alt .model-media { order: 0; }
  .model-row.alt .model-info { order: 1; }
  .filter-bar { position: relative; top: auto; }
  .filter-row { gap: 24px; }
}
@media (max-width: 560px) {
  .model-specs { grid-template-columns: 1fr; }
  .model-specs > div:nth-last-child(-n+2) { border-bottom: 0; }
  .model-specs > div:last-child { border-bottom: 1px solid var(--rule); }
}
