/* machine.css */

.machine-detail-section { padding: 64px 0; background: var(--off-white); }
.machine-detail-container { max-width: 1140px; margin: 0 auto; padding: 0 36px; }

/* ── TWO COLUMN LAYOUT ─────────────────────────── */
.machine-detail-section > .machine-detail-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 52px; align-items: start;
}

/* ── IMAGE COLUMN ──────────────────────────────── */
.machine-img-wrap {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
  box-shadow: var(--shadow-xs);
}
.machine-img-wrap img {
  max-width: 100%; max-height: 300px;
  object-fit: contain;
}
.machine-cta-box {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow-xs);
}
.machine-cta-box p {
  font-size: 0.82rem; color: var(--slate-light);
  margin-bottom: 12px; font-weight: 500;
}

/* ── INFO COLUMN ───────────────────────────────── */
.machine-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700; color: var(--navy);
  letter-spacing: -0.01em; line-height: 1.2;
  margin: 10px 0 14px;
}
.machine-overview {
  font-size: 0.86rem; color: var(--slate-light);
  line-height: 1.78; margin-bottom: 28px;
  border-left: 3px solid var(--amber);
  padding-left: 14px;
}

/* ── SPECS TABLE ───────────────────────────────── */
.machine-specs,
.machine-features,
.machine-applications { margin-bottom: 26px; }

.machine-specs h4,
.machine-features h4,
.machine-applications h4 {
  font-size: 0.78rem; font-weight: 700;
  color: var(--navy); text-transform: uppercase;
  letter-spacing: 1.2px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 7px;
}
.machine-specs h4 i,
.machine-features h4 i,
.machine-applications h4 i { color: var(--amber); }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--light-grey); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td {
  padding: 9px 14px; font-size: 0.80rem;
}
.spec-table td:first-child {
  color: var(--slate-light); font-weight: 500;
  width: 42%; background: var(--off-white);
}
.spec-table td:last-child { color: var(--navy); font-weight: 600; }

/* ── FEATURES LIST ─────────────────────────────── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.81rem; color: var(--slate); line-height: 1.55;
}
.feature-list li i { color: var(--success); font-size: 0.76rem; margin-top: 3px; flex-shrink: 0; }

/* ── APPLICATION TAGS ──────────────────────────── */
.app-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.app-tags span {
  background: var(--amber-glow);
  border: 1px solid var(--border-amber);
  color: var(--amber-dim);
  font-size: 0.74rem; font-weight: 600;
  padding: 4px 12px; border-radius: 4px;
}

/* ── RELATED MACHINES ──────────────────────────── */
.related-machines-section {
  padding: 56px 0; background: var(--white);
  border-top: 1px solid var(--light-grey);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.related-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  background: var(--white);
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-amber); }
.related-img {
  height: 160px; background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.related-img img { max-height: 130px; max-width: 90%; object-fit: contain; transition: transform 0.4s ease; }
.related-card:hover .related-img img { transform: scale(1.06); }
.related-body {
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--light-grey);
}
.related-body h4 { font-size: 0.82rem; font-weight: 700; color: var(--navy); }
.related-body span { font-size: 0.74rem; color: var(--amber); font-weight: 600; }

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 900px) {
  .machine-detail-section > .machine-detail-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .machine-img-wrap { min-height: 240px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .machine-detail-container { padding: 0 24px; }
}
@media (max-width: 560px) {
  .related-grid { grid-template-columns: 1fr; }
  .machine-detail-section { padding: 44px 0; }
}