/* ===== ADVANCED 3D INDUSTRIAL SHOWROOM STYLESHEET ===== */
:root {
  --sr-accent: #35b6b2;
  --sr-accent-glow: #6edbd6;
  --sr-bg: #041015;
  --sr-bg-card: #081d24;
  --sr-panel: rgba(7, 26, 33, 0.85);
  --sr-border: rgba(110, 219, 214, 0.22);
  --sr-border-bright: rgba(110, 219, 214, 0.55);
  --sr-text: #eff8f9;
  --sr-muted: #8ea5af;
  --sr-radius: 18px;
}

.showroom-page {
  background: radial-gradient(circle at 80% 8%, rgba(53, 182, 178, 0.14), transparent 35%),
              radial-gradient(circle at 15% 40%, rgba(53, 182, 178, 0.08), transparent 30%),
              var(--sr-bg);
  color: var(--sr-text);
  margin: 0;
  min-height: 100vh;
}

/* Telemetry HUD Bar */
.sr-hud-bar {
  background: rgba(3, 13, 17, 0.95);
  border-block: 1px solid var(--sr-border);
  padding: 10px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.sr-hud-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sr-hud-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sr-muted);
}
.sr-hud-item b, .sr-hud-item span {
  color: var(--sr-accent-glow);
}
.sr-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: srPulse 2s infinite ease-in-out;
}
@keyframes srPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Main Showroom Section */
.sr-main-section {
  padding: 36px 0;
}
.sr-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

/* Left Machine Selector Rail */
.sr-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sr-rail-head {
  padding: 14px 18px;
  background: var(--sr-bg-card);
  border: 1px solid var(--sr-border);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sr-rail-head span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sr-accent-glow);
}
.sr-rail-head small {
  color: var(--sr-muted);
  font-family: monospace;
}
.sr-machine-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sr-machine-card {
  width: 100%;
  display: block;
  text-align: left;
  border: 1px solid var(--sr-border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(8, 29, 36, 0.7), rgba(4, 16, 21, 0.9));
  color: var(--sr-text);
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.sr-machine-card:hover {
  border-color: var(--sr-accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.sr-machine-card.active {
  border-color: var(--sr-accent-glow);
  background: linear-gradient(145deg, rgba(14, 46, 56, 0.95), rgba(7, 24, 31, 0.98));
  box-shadow: 0 0 0 1px var(--sr-accent-glow), 0 16px 40px rgba(53, 182, 178, 0.15);
}
.sr-card-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(53, 182, 178, 0.18);
  border: 1px solid rgba(110, 219, 214, 0.3);
  color: var(--sr-accent-glow);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.sr-card-thumb-wrap {
  width: 100%;
  height: 130px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(2, 11, 15, 0.85);
  margin-bottom: 10px;
  position: relative;
}
.sr-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.sr-machine-card:hover .sr-card-thumb-wrap img {
  transform: scale(1.05);
}
.sr-machine-card h3 {
  font-size: 17px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.sr-machine-card p {
  font-size: 12px;
  color: var(--sr-muted);
  line-height: 1.5;
  margin: 0 0 10px;
}
.sr-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
}
.sr-card-footer span {
  color: var(--sr-muted);
  font-family: monospace;
}
.sr-card-footer b {
  color: var(--sr-accent-glow);
}

/* Other factory machine cards */
.sr-card-external {
  opacity: 0.88;
}
.sr-card-external:hover {
  opacity: 1;
}

/* Right Stage Container */
.sr-viewer-panel {
  border: 1px solid var(--sr-border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(8, 29, 36, 0.8), rgba(4, 16, 21, 0.95));
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}
.sr-stage-topbar {
  padding: 18px 24px;
  border-bottom: 1px solid var(--sr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sr-stage-title-wrap h2 {
  font-size: 24px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.sr-stage-title-wrap p {
  margin: 0;
  color: var(--sr-muted);
  font-size: 13px;
}
.sr-stage-top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.sr-btn-primary {
  background: linear-gradient(135deg, var(--sr-accent), #45cbc5);
  color: #021115 !important;
  border-color: var(--sr-accent-glow);
}
.sr-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(53, 182, 178, 0.35);
}
.sr-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--sr-border);
  color: var(--sr-text) !important;
}
.sr-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--sr-accent-glow);
}

/* Camera Angle Presets */
.sr-presets-bar {
  padding: 10px 20px;
  background: rgba(3, 15, 20, 0.85);
  border-bottom: 1px solid rgba(110, 219, 214, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}
.sr-presets-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--sr-muted);
  margin-right: 6px;
  white-space: nowrap;
}
.sr-preset-btn {
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--sr-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}
.sr-preset-btn:hover {
  border-color: var(--sr-accent-glow);
  color: var(--sr-text);
}
.sr-preset-btn.active {
  background: rgba(53, 182, 178, 0.2);
  border-color: var(--sr-accent-glow);
  color: #fff;
}

/* 3D Viewport Stage */
.sr-stage-wrapper {
  position: relative;
  height: clamp(480px, 64vh, 650px);
  background: radial-gradient(circle at center, rgba(53, 182, 178, 0.08), transparent 55%),
              linear-gradient(rgba(110, 219, 214, 0.04) 1px, transparent 1px),
              linear-gradient(90deg, rgba(110, 219, 214, 0.04) 1px, transparent 1px),
              #030f14;
  background-size: auto, 36px 36px, 36px 36px, auto;
  overflow: hidden;
}
.sr-stage-wrapper model-viewer {
  width: 100%;
  height: 100%;
  --progress-bar-color: var(--sr-accent-glow);
  --progress-bar-height: 3px;
}

/* Poster Overlay */
.sr-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(circle at center, rgba(8, 29, 36, 0.88), rgba(2, 11, 15, 0.98) 75%);
  z-index: 10;
  padding: 30px;
  text-align: center;
  transition: opacity 0.35s ease;
}
.sr-poster.hidden {
  opacity: 0;
  pointer-events: none;
}
.sr-poster-img {
  width: min(520px, 75%);
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.65));
  transition: transform 0.4s ease;
}
.sr-poster:hover .sr-poster-img {
  transform: scale(1.03);
}
.sr-poster-info h3 {
  font-size: 22px;
  margin: 0 0 6px;
}
.sr-poster-info p {
  color: var(--sr-muted);
  font-size: 13px;
  max-width: 440px;
  margin: 0 auto;
}
.sr-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sr-accent), #4fd2cc);
  color: #021013;
  font-size: 14px;
  font-weight: 900;
  border: 1px solid var(--sr-accent-glow);
  cursor: pointer;
  box-shadow: 0 0 25px rgba(53, 182, 178, 0.35);
  transition: all 0.25s ease;
}
.sr-launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(53, 182, 178, 0.55);
}
.sr-poster-hint {
  font-size: 11px;
  color: var(--sr-muted);
  font-family: monospace;
}

/* Loading Progress Bar */
.sr-progress-track {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  height: 34px;
  border: 1px solid var(--sr-border-bright);
  background: rgba(3, 14, 18, 0.92);
  border-radius: 8px;
  overflow: hidden;
  z-index: 12;
  display: none;
}
.sr-progress-track.active {
  display: block;
}
.sr-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(53, 182, 178, 0.25), var(--sr-accent));
  transition: width 0.15s ease;
}
.sr-progress-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
  color: var(--sr-accent-glow);
  letter-spacing: 0.1em;
}

/* Hotspots on 3D model */
.showroom-hotspot {
  background: rgba(3, 15, 20, 0.88);
  border: 1px solid var(--sr-accent-glow);
  border-radius: 20px;
  padding: 5px 11px;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}
.showroom-hotspot:hover {
  background: var(--sr-accent);
  color: #031013;
  transform: scale(1.08);
}
.hotspot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sr-accent-glow);
}
.showroom-hotspot:hover .hotspot-dot {
  background: #031013;
}

/* Control Deck Bar */
.sr-control-deck {
  padding: 14px 20px;
  background: rgba(4, 18, 23, 0.95);
  border-top: 1px solid var(--sr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sr-deck-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sr-ctrl-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--sr-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--sr-text);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.2s;
}
.sr-ctrl-btn:hover {
  border-color: var(--sr-accent-glow);
  background: rgba(53, 182, 178, 0.12);
  color: #fff;
}
.sr-ctrl-btn.active {
  background: rgba(53, 182, 178, 0.25);
  border-color: var(--sr-accent-glow);
  color: #fff;
}

/* Toast component info */
.sr-hotspot-toast {
  position: absolute;
  top: 18px;
  right: 18px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--sr-border-bright);
  background: rgba(4, 18, 23, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 15;
  display: none;
}
.sr-hotspot-toast.show {
  display: block;
  animation: toastFade 0.25s ease;
}
@keyframes toastFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.sr-toast-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.sr-toast-head strong {
  color: var(--sr-accent-glow);
  font-size: 13px;
}
.sr-toast-close {
  background: transparent;
  border: 0;
  color: var(--sr-muted);
  cursor: pointer;
  font-size: 14px;
}
.sr-hotspot-toast p {
  margin: 0;
  font-size: 12px;
  color: var(--sr-muted);
  line-height: 1.55;
}

/* Specifications Table Section */
.sr-specs-section {
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sr-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.sr-spec-item {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--sr-border);
  background: var(--sr-bg-card);
}
.sr-spec-item span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--sr-muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.sr-spec-item strong {
  display: block;
  font-size: 16px;
  color: var(--sr-accent-glow);
  line-height: 1.4;
}

/* Component Breakdown Gallery */
.sr-components-section {
  padding: 36px 0;
  background: rgba(3, 14, 18, 0.65);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}
.sr-comp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.sr-comp-card {
  border-radius: 16px;
  border: 1px solid var(--sr-border);
  background: var(--sr-bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.sr-comp-card:hover {
  transform: translateY(-4px);
  border-color: var(--sr-accent-glow);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
.sr-comp-media {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #02090c;
  position: relative;
}
.sr-comp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.sr-comp-card:hover .sr-comp-media img {
  transform: scale(1.06);
}
.sr-comp-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sr-comp-body small {
  color: var(--sr-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.sr-comp-body h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.sr-comp-body p {
  font-size: 12.5px;
  color: var(--sr-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}
.sr-comp-focus-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--sr-border);
  background: rgba(53, 182, 178, 0.1);
  color: var(--sr-accent-glow);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}
.sr-comp-focus-btn:hover {
  background: var(--sr-accent);
  color: #021115;
}

/* Virtual Tour Banner */
.sr-tour-banner {
  margin: 28px 0;
  padding: 42px 48px;
  border-radius: 24px;
  border: 1px solid var(--sr-border-bright);
  background: linear-gradient(135deg, rgba(8, 33, 41, 0.95), rgba(4, 18, 23, 0.98)),
              radial-gradient(circle at 10% 50%, rgba(53, 182, 178, 0.2), transparent 45%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.sr-tour-copy h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  margin: 8px 0 12px;
  letter-spacing: -0.03em;
}
.sr-tour-copy p {
  color: var(--sr-muted);
  max-width: 650px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}
.sr-tour-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
}
.sr-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  background: #25d366;
  color: #032410 !important;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  transition: 0.2s;
}
.sr-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* Showroom FAQ */
.sr-faq-section {
  padding: 36px 0;
}
.sr-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.sr-faq-card {
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--sr-border);
  background: var(--sr-bg-card);
}
.sr-faq-card h4 {
  font-size: 16px;
  margin: 0 0 10px;
  color: #fff;
}
.sr-faq-card p {
  font-size: 13px;
  color: var(--sr-muted);
  line-height: 1.7;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1080px) {
  .sr-grid {
    grid-template-columns: 1fr;
  }
  .sr-rail {
    order: 2;
  }
  .sr-machine-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .sr-comp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sr-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sr-tour-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .sr-machine-list {
    grid-template-columns: 1fr;
  }
  .sr-comp-grid {
    grid-template-columns: 1fr;
  }
  .sr-specs-grid {
    grid-template-columns: 1fr;
  }
  .sr-faq-grid {
    grid-template-columns: 1fr;
  }
  .sr-stage-wrapper {
    height: 420px;
  }
  .sr-stage-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .sr-control-deck {
    flex-direction: column;
    align-items: stretch;
  }
  .sr-deck-group {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Focused showroom: two model choices, a larger stage and clear controls. */
.showroom-page .client-hero { padding: 36px 0 32px; }
.showroom-page .client-hero h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -.035em; }
.showroom-page .client-hero .client-lead { font-size: 16px; line-height: 1.75; max-width: 650px; }
.sr-visit-guide { padding: 24px; border: 1px solid #47665f; border-radius: 16px; background: #0b242b; }
.sr-visit-guide > span { font-size: 10px; color: #b7d6c5; letter-spacing: .12em; font-weight: 700; }
.sr-visit-guide ol { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 14px; }
.sr-visit-guide li { display: flex; gap: 14px; align-items: center; font-size: 14px; color: #edf5f0; }
.sr-visit-guide b { font-size: 11px; color: #a5ccaf; }
.sr-visit-guide p { font-size: 12px; line-height: 1.7; color: #b2c5c9; margin: 0; }
.showroom-page .sr-main-section { padding: 32px 0; }
.showroom-page .sr-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 22px; }
.showroom-page .sr-rail-head { flex-wrap: wrap; gap: 8px; }
.showroom-page .sr-machine-card { border-radius: 14px; }
.showroom-page .sr-machine-card.active { border-color: #a4c88a; box-shadow: inset 3px 0 #a4c88a; background: #123137; }
.showroom-page .sr-card-thumb-wrap { border: 1px solid #3b565c; border-radius: 10px; background: #071b21; }
.showroom-page .sr-stage-topbar { gap: 18px; flex-wrap: wrap; }
.showroom-page .sr-stage-wrapper { height: clamp(390px, 58vh, 580px); }
.showroom-page .sr-presets-bar { flex-wrap: wrap; gap: 8px; }
.showroom-page .sr-preset-btn, .showroom-page .sr-ctrl-btn { min-height: 44px; }
.showroom-page .sr-control-deck { gap: 12px; }
.showroom-page .sr-specs-section, .showroom-page .sr-components-section, .showroom-page .sr-faq-section { padding: 32px 0; }
.showroom-page .section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; }
.showroom-page .section-head p { font-size: 15px; line-height: 1.75; }
.showroom-page .footer .footer-grid { margin-top: 0 !important; padding-top: 0 !important; border-top: 0; }
.showroom-page :is(.sr-machine-card, .sr-ctrl-btn, .sr-preset-btn, .sr-launch-btn):focus-visible { outline: 2px solid #c6f36b; outline-offset: 3px; }
@media (max-width: 1100px) {
  .showroom-page .sr-grid { grid-template-columns: 1fr; }
  .showroom-page .sr-machine-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .showroom-page .client-hero { padding: 30px 0; }
  .showroom-page .sr-main-section,
  .showroom-page .sr-specs-section,
  .showroom-page .sr-components-section,
  .showroom-page .sr-faq-section { padding: 24px 0; }
  .sr-tour-banner { margin: 20px 0; padding: 24px 20px; }

  .showroom-page .sr-machine-list { grid-template-columns: 1fr; }
  .showroom-page .sr-stage-wrapper { height: 380px; }
  .showroom-page .sr-stage-top-actions { flex-wrap: wrap; }
}
