/* 
 * ST PRO ALUMINIUM: GALLERY PAGE SPECIFIC STYLES
 * Redesigned Horizontal Scroll-Pinned Product Customizer
 */

/* ---------------------------------------------------- */
/* 1. Main Canvas & Intro Header                        */
/* ---------------------------------------------------- */
.gallery-main-canvas {
  margin-top: var(--header-height);
  position: relative;
  overflow-x: hidden;
}

.gallery-hero-intro {
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: center;
  padding-block: var(--space-xl);
  position: relative;
  background-image:
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 40px 40px;
  border-bottom: 1px solid var(--border-color);
}

.gallery-hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.hero-text-block {
  flex: 1 1 min(600px, 100%);
  max-width: 750px;
  min-width: 0;
}





.catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* ---------------------------------------------------- */
/* 2. Pinned Customizer Showcase Layout                 */
/* ---------------------------------------------------- */
.gallery-pinned-showcase {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 50px 50px;
}

[data-theme="light"] .gallery-pinned-showcase {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

.customizer-stage-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding-inline: var(--space-md);
  gap: var(--space-xl);
  align-items: center;
}

.customizer-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
}

/* Left Specs Panel */
.panel-left {
  grid-column: span 3;
  z-index: 10;
}

.spec-hud-box {
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: var(--space-xl);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.spec-hud-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brushed-texture);
  opacity: 0.15;
  pointer-events: none;
}

.hud-tag {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-action);
  text-transform: uppercase;
  display: block;
}

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-sm);
}

.hud-profile-index {
  font-family: var(--font-label);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.hud-active-category {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hud-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hud-profile-name {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  height: 2.5em;
  /* fixed height to avoid page shift on text swap */
  display: flex;
  align-items: center;
}

.hud-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-action) 0%, transparent 100%);
  opacity: 0.8;
}

.spec-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.spec-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: var(--space-xs);
}

[data-theme="light"] .spec-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.spec-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.spec-val {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hud-actions {
  margin-top: var(--space-xs);
}

.rfq-prefill-btn {
  width: 100%;
  justify-content: center;
  background-color: var(--accent-action);
  color: #FFFFFF;
}

.rfq-prefill-btn:hover {
  background-color: var(--accent-action-hover);
  box-shadow: 0 0 15px rgba(77, 159, 255, 0.35);
}

/* Center Slider Panel */
.panel-center {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.horizontal-track-viewport {
  width: 100%;
  overflow: visible;
  /* Allows blurred side cards to display outside the container boundaries */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.horizontal-slide-track {
  display: flex;
  width: 100%;
  will-change: transform;
}

.customizer-slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.15;
  filter: blur(5px);
  scale: 0.78;
  transition: opacity 0.5s ease, filter 0.5s ease, scale 0.5s ease;
  pointer-events: none;
}

.customizer-slide.active {
  opacity: 1;
  filter: blur(0);
  scale: 1.15;
  pointer-events: auto;
}

.product-render-wrapper {
  width: clamp(250px, 28vw, 360px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.floating-render-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Floating render shadows */
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.65)) brightness(1.05);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Make the render layer look fully integrated */
  mix-blend-mode: normal;
}

.customizer-slide.active .floating-render-img:hover {
  transform: translateY(-10px) scale(1.02);
}

/* Indicator dots */
.customizer-indicator-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  z-index: 10;
}

.indicator-label {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.indicator-dots {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  border: 2px solid transparent;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
}

.indicator-dot:hover {
  background-color: var(--text-muted);
}

.indicator-dot.active {
  background-color: var(--accent-action);
  transform: scale(1.35);
  box-shadow: 0 0 10px var(--accent-action);
}

/* Right CAD Blueprint Panel */
.panel-right {
  grid-column: span 3;
  z-index: 10;
}

.cad-blueprint-box {
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: var(--space-xl);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.cad-blueprint-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brushed-texture);
  opacity: 0.15;
  pointer-events: none;
}

.cad-tag {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-action);
  text-transform: uppercase;
  display: block;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-sm);
}

.cad-drawing-viewport {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-action);
  padding: var(--space-md);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background-color: rgba(10, 12, 15, 0.5);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

[data-theme="light"] .cad-drawing-viewport {
  border: 1px dashed rgba(0, 0, 0, 0.08);
  background-color: rgba(248, 249, 250, 0.6);
}

.cad-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cad-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------- */
/* 3. Closing CTA Section                               */
/* ---------------------------------------------------- */
.gallery-cta-section {
  padding-block: var(--space-3xl);
  background-color: var(--bg-surface);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  z-index: 10;
}

.gallery-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brushed-texture);
  opacity: 0.05;
  pointer-events: none;
}

.gallery-cta-container {
  max-width: 750px;
  margin: 0 auto;
  padding-inline: var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.cta-subtitle {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-action);
  text-transform: uppercase;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.cta-description {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: var(--space-xs);
}

/* ---------------------------------------------------- */
/* 4. Light Mode overrides                              */
/* ---------------------------------------------------- */
[data-theme="light"] .spec-hud-box,
[data-theme="light"] .cad-blueprint-box {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .floating-render-img {
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.15)) brightness(1.0);
}

/* ---------------------------------------------------- */
/* 5. Responsive Media Breakpoints                      */
/* ---------------------------------------------------- */

@media (max-width: 1199px) {
  .customizer-stage-container {
    max-width: 960px;
    gap: var(--space-md);
  }

  .panel-left,
  .panel-right {
    grid-column: span 4;
  }

  .panel-center {
    grid-column: span 4;
  }

  .spec-hud-box,
  .cad-blueprint-box {
    padding: var(--space-md);
  }

  .product-render-wrapper {
    width: 200px;
  }
}

@media (max-width: 767px) {
  .gallery-hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .hero-action-block {
    width: 100%;
  }

  .catalog-btn {
    width: 100%;
    justify-content: center;
  }

  .gallery-pinned-showcase {
    height: auto;
    padding-block: var(--space-2xl);
  }

  .customizer-stage-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding-inline: var(--space-md);
  }

  .panel-left,
  .panel-center,
  .panel-right {
    width: 100%;
  }

  /* Left HUD layout is rendered statically */
  .spec-hud-box {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  /* Slide track becomes a horizontal scrollable view natively on mobile */
  .horizontal-track-viewport {
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
  }

  .horizontal-track-viewport::-webkit-scrollbar {
    display: none;
  }

  .horizontal-slide-track {
    width: auto;
  }

  .customizer-slide {
    flex: 0 0 260px;
    width: 260px;
    opacity: 1 !important;
    filter: none !important;
    scale: 1 !important;
    margin-right: var(--space-md);
  }

  .product-render-wrapper {
    width: 180px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--space-sm);
  }

  .floating-render-img {
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.25));
  }

  .customizer-indicator-bar {
    display: none;
    /* Hide indicator dots on mobile scroll */
  }

  .cad-blueprint-box {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
}

/* ---------------------------------------------------- */
/* 6. Smart Space Product Showcase Section (Concept 1)  */
/* ---------------------------------------------------- */
.space-showcase-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-color: #0A0C0F;
  padding-block: var(--space-3xl);
  box-sizing: border-box;
  border-top: 1px solid var(--border-color);
}

.space-showcase-bg {
  position: absolute;
  inset: 0;
  background-image: url('Assets/Pictures/space-showcase-bg.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
  transition: background-image 0.4s ease;
}

/* Light theme support */
[data-theme="light"] .space-showcase-section {
  background-color: #F8F9FA;
}

[data-theme="light"] .space-showcase-bg {
  background-image: url('Assets/Pictures/space-showcase-bg-white.png');
}

/* Darkening overlay for contrast */
.space-showcase-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 12, 15, 0.45) 0%, rgba(10, 12, 15, 0.85) 100%);
  z-index: 2;
}

[data-theme="light"] .space-showcase-bg::after {
  background: radial-gradient(circle at center, rgba(250, 250, 250, 0.3) 0%, rgba(250, 250, 250, 0.7) 100%);
}

.space-showcase-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-inline: var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-2xl);
  box-sizing: border-box;
}


/* Left Focal Column */
.space-focal-column {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.focal-display-circle {
  width: min(340px, 28vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5), 
    inset 0 1px 2px rgba(255, 255, 255, 0.15);
  position: relative;
  animation: floatCircle 6s ease-in-out infinite;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

[data-theme="light"] .focal-display-circle {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08), 
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

@keyframes floatCircle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

.focal-render-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"] .focal-render-img {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

/* Center Text Column */
.space-text-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}

.space-product-index {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-action);
  text-transform: uppercase;
}

.space-product-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  background: var(--metallic-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin: 0;
  text-transform: uppercase;
}

.space-product-title span {
  font-weight: 500;
  background: var(--metallic-silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.space-product-desc {
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 440px;
  margin: var(--space-xs) 0 0 0;
  opacity: 0.9;
  text-align: left;
}

@media (max-width: 1023px) {
  .space-product-desc {
    text-align: center;
    margin-inline: auto;
  }
}

/* Right Specs Column */



/* Bottom Thumbnail Carousel Overlay */
.space-carousel-overlay {
  position: relative;
  z-index: 10;
  margin: var(--space-xl) auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  max-width: 600px;
  padding-top: 10px;
  overflow: visible;
}

.carousel-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 15, 0.4);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .carousel-arrow {
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.6);
}

.carousel-track-wrapper {
  overflow: visible;
  max-width: 480px;
}

.carousel-thumbs-track {
  display: flex;
  gap: var(--space-md);
  transition: transform 0.4s ease;
}

.carousel-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  opacity: 0.45;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
  width: 100px;
}

.carousel-thumb.active {
  opacity: 1;
}

@media (hover: hover) {
  .carousel-arrow:hover {
    background: var(--accent-action);
    border-color: var(--accent-action);
    color: #FFFFFF;
    transform: scale(1.05);
  }

  .carousel-thumb:hover {
    opacity: 1;
  }
}

.thumb-circle-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"] .thumb-circle-img {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}

.carousel-thumb.active .thumb-circle-img {
  border-color: var(--accent-action);
  box-shadow: 0 0 15px rgba(77, 159, 255, 0.4);
  transform: scale(1.1);
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
}

.carousel-thumb.active .thumb-label {
  color: var(--text-primary);
}



/* ---------------------------------------------------- */
/* Media Breakpoints for Space Showcase                 */
/* ---------------------------------------------------- */
@media (max-width: 1023px) {
  .space-showcase-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  
  .space-focal-column {
    grid-row: 2;
  }
  
  .space-text-column {
    grid-row: 1;
    align-items: center;
  }

}

@media (max-width: 767px) {
  /* Hero: full viewport height on mobile to push second section below the fold */
  .gallery-hero-intro {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(80px, 15vw, 120px);
    padding-bottom: var(--space-xl);
  }

  .gallery-hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .hero-text-block {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .gallery-hero-intro .hero-tagline {
    font-size: 0.95rem;
    letter-spacing: 0.22em;
  }

  .gallery-hero-intro .hero-title {
    font-size: clamp(3rem, 12vw, 4.5rem);
    line-height: 1.15;
  }

  .gallery-hero-intro .hero-actions {
    align-items: flex-start;
  }

  .catalog-btn {
    width: auto !important;
    display: inline-flex !important;
    padding-inline: var(--space-lg);
  }

  /* Showcase section */
  .space-showcase-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: clamp(70px, 12vw, 100px);
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }
  
  .space-showcase-container {
    gap: var(--space-lg);
    padding-inline: var(--space-sm);
  }

  /* Focal circle: use a fluid size that fills mobile nicely */
  .focal-display-circle {
    width: clamp(160px, 65vw, 260px);
  }
  
  .space-product-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }
  
  /* Carousel: full-width fluid layout */
  .space-carousel-overlay {
    max-width: 100%;
    padding-inline: var(--space-xs);
    box-sizing: border-box;
    margin-top: var(--space-xl);
    gap: var(--space-xs);
  }
  
  .carousel-track-wrapper {
    flex: 1;
    min-width: 0;
    max-width: none;
    overflow-x: auto;
    scrollbar-width: none;
    padding-block: 15px;
  }

  .carousel-track-wrapper::-webkit-scrollbar {
    display: none;
  }

  .carousel-thumbs-track {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-start;
    margin: 0 auto;
    width: max-content;
    padding-inline: var(--space-md);
  }
  
  .carousel-thumb {
    width: clamp(65px, 16vw, 85px);
  }
  
  .thumb-circle-img {
    width: clamp(48px, 12vw, 64px);
    height: clamp(48px, 12vw, 64px);
  }

  .thumb-label {
    font-size: 0.6rem;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
}

/* ---------------------------------------------------- */
/* Scroll-Driven Progress Bar for Pinned Showcase       */
/* ---------------------------------------------------- */
.showcase-scroll-progress {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  max-width: 520px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  z-index: 20;
  overflow: visible;
}

[data-theme="light"] .showcase-scroll-progress {
  background: rgba(0, 0, 0, 0.06);
}

.showcase-scroll-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-action), #6CB4FF);
  border-radius: 4px;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(77, 159, 255, 0.35);
}

.showcase-progress-step {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.progress-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: none;
}

[data-theme="light"] .progress-step-dot {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.showcase-progress-step.active .progress-step-dot {
  background: var(--accent-action);
  border-color: var(--accent-action);
  box-shadow: 0 0 10px rgba(77, 159, 255, 0.5), 0 0 20px rgba(77, 159, 255, 0.2);
  transform: scale(1.25);
}

.progress-step-label {
  font-family: var(--font-label);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.4;
  transition: all 0.35s ease;
  position: absolute;
  top: 18px;
}

.showcase-progress-step.active .progress-step-label {
  opacity: 1;
  color: var(--text-primary);
}

/* GPU performance hints for pinned scroll animations */
.space-showcase-section {
  will-change: transform;
}

.focal-display-circle,
.space-text-column {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.space-showcase-bg {
  will-change: transform;
  backface-visibility: hidden;
}

/* Smooth transition for product image changes */
.focal-render-img {
  will-change: opacity, transform;
}

@media (max-width: 767px) {
  .showcase-scroll-progress {
    bottom: 45px;
    width: 65%;
    max-width: 280px;
  }

  .progress-step-dot {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
  }

  [data-theme="light"] .progress-step-dot {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
  }

  .progress-step-label {
    display: none;
  }
}

/* Short Viewport Heights Layout Adjustments (Gallery Pinned Customizer & Space Showcase) */
@media (max-height: 820px) and (min-width: 768px) {
  .gallery-pinned-showcase {
    height: 100vh;
    padding-block: var(--space-xs);
  }
  .spec-hud-box,
  .cad-blueprint-box {
    padding: var(--space-md);
    gap: var(--space-md);
  }
  .hud-profile-name {
    font-size: 1.3rem;
    height: 2em;
  }
  .spec-grid {
    gap: var(--space-xs);
  }
  .product-render-wrapper {
    width: clamp(180px, 20vw, 240px);
  }
  .cad-drawing-viewport {
    padding: var(--space-sm);
  }
}

@media (max-height: 800px) and (min-width: 768px) {
  .space-showcase-section {
    padding-block: var(--space-xl);
  }
  .focal-display-circle {
    width: clamp(200px, 20vw, 260px);
  }
  .space-product-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
  }
  .space-carousel-overlay {
    margin-top: var(--space-md);
  }
  .thumb-circle-img {
    width: 48px;
    height: 48px;
  }
}