/* ============================================================
   ChinaRoom — catalog grid extras + product detail page
   Loaded on catalog.html and product.html. Extends css/style.css.
   ============================================================ */

/* Make the catalog grid show 3 across with a calmer rhythm */
.catalog .products-grid { grid-template-columns: repeat(3, 1fr); }

/* Product card title becomes a link — keep it looking like the title */
.product-card__title a { color: inherit; transition: color 0.3s; }
.product-card__title a:hover { color: var(--gold-soft); }
.product-card__media { display: block; }

/* ============ Product detail ============ */
.product-page { padding-top: 92px; }
.product-detail { padding-top: 40px; padding-bottom: 60px; }
.product-detail__loading { color: var(--text-muted); padding: 60px 0; }

.pd {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  margin-top: 26px;
  align-items: start;
}
.pd__gallery { position: sticky; top: 100px; }
.pd__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  aspect-ratio: 9 / 7;
}
.pd__main img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pd__thumb {
  width: 84px; height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.3s, border-color 0.3s;
}
.pd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumb.is-active, .pd__thumb:hover { opacity: 1; border-color: var(--gold); }

.pd__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  text-transform: uppercase;
  line-height: 1.08;
  margin: 8px 0 18px;
}
.pd__price-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pd__price { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--gold-soft); line-height: 1; }
.pd__save {
  background: var(--red);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 30px;
  letter-spacing: 0.04em;
}
.pd__desc { color: var(--text-muted); margin-bottom: 8px; max-width: 560px; }
.pd__specs { margin-bottom: 28px; }
.pd__specs li { justify-content: space-between; }
.pd__specs li span { color: var(--text-muted); }
.pd__specs li b { color: var(--text); font-weight: 600; }
.pd__note { font-size: 12.5px; color: var(--text-faint); margin-top: 16px; }

.related { padding-top: 20px; }

@media (max-width: 1180px) {
  .catalog .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; gap: 32px; }
  .pd__gallery { position: static; }
}
@media (max-width: 560px) {
  .catalog .products-grid { grid-template-columns: 1fr; }
  .pd__price { font-size: 32px; }
}
