/* ============================================================
   RJS EXPORTS — Product page & catalogue additions
   ============================================================ */

.product-page {
  padding-top: clamp(26px, 4vw, 48px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold-700);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.02em;
}

.product-loading {
  padding: 60px 0;
  color: var(--ink-muted);
}

.product-unavailable {
  max-width: 620px;
  padding: 40px 0 80px;
}

.product-unavailable h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.product-unavailable p {
  margin-bottom: 20px;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ---------- layout ---------- */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(22px, 3vw, 52px);
  align-items: start;
}

/* ---------- gallery ---------- */
.product-gallery {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 96px;
}

.product-gallery__stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--ivory-200);
  aspect-ratio: 4 / 3;
}

.product-gallery__stage img,
.product-gallery__stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery__empty {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}

.product-thumb {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--ivory-100);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb.is-active {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.35);
}

.product-thumb__video {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  color: #fff;
  font-size: 0.9rem;
  background: rgba(7, 20, 38, 0.45);
}

/* ---------- info ---------- */
.product-info__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.product-info h1 {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.14;
  font-weight: 600;
}

.product-info__code {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.product-info__short {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.product-specs {
  margin: 20px 0;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  display: grid;
  gap: 9px;
  font-size: 0.88rem;
}

.product-specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.product-specs dt {
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.product-specs dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.product-description p {
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--ink-muted);
}

.product-description p + p {
  margin-top: 12px;
}

.product-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--gold-500);
  background: var(--ivory-100);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.product-info__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- catalogue additions ---------- */
.product-card__media {
  display: block;
}

.product-card__placeholder {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, var(--ivory-100), var(--ivory-100) 12px, var(--ivory-200) 12px, var(--ivory-200) 24px);
}

.badge--featured {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--gold-500);
  color: #12233d;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.product-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card__body h3 a:hover {
  color: var(--gold-700);
}

/* ---------- enquiry form ---------- */
.product-enquiry .form {
  max-width: 900px;
}

.upload-hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.upload-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-xs);
  background: var(--ivory-50);
}

.upload-box.is-dragover {
  border-color: var(--gold-500);
  background: var(--ivory-100);
}

.upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.upload-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.78rem;
}

.upload-chip__meta {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.upload-chip__remove {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.upload-chip__remove:hover {
  color: #b3261e;
}

.enquiry-success {
  padding: 26px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius-sm);
  background: var(--ivory-50);
}

.enquiry-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.enquiry-success p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.enquiry-success p + p {
  margin-top: 10px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .product-specs div {
    flex-direction: column;
    gap: 2px;
  }

  .product-specs dd {
    text-align: left;
  }
}
