/* 
  FilamentForge Stylesheet
  Theme: Sleek Dark / Glassmorphic Cyberpunk
  Colors: 
    - Background: Space Dark (#07070a)
    - Accents: Neon Cyan (#00f0ff), Silk Gold (#ffd700), Neon Purple (#bc34fa)
*/

/* --- CSS Variables & Custom Properties --- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-card: rgba(15, 15, 20, 0.7);
  --bg-glow: rgba(255, 215, 0, 0.12);
  
  --border-color: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(255, 215, 0, 0.25);
  
  --text-primary: #f5f5f7;
  --text-secondary: #9a9ab0;
  --text-muted: #62627a;
  
  --accent-cyan: #ffd700; /* Zlatna boja logotipa kao primarni akcent */
  --accent-gold: #ffd700;
  --accent-purple: #f5c400; /* Svjetlija zlatna kao sekundarni akcent */
  --accent-green: #39ff14;
  --accent-red: #ff3b30;
  
  --font-headings: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --glow-shadow-cyan: 0 0 15px rgba(255, 215, 0, 0.3);
  --glow-shadow-purple: 0 0 15px rgba(245, 196, 0, 0.3);
  --glass-effect: backdrop-filter: blur(12px) saturate(160%);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Base & Resets --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #202030;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: var(--glow-shadow-cyan);
}

/* Ambient Ambient Grid Overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-headings);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #000;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-shadow-cyan);
  color: var(--accent-cyan);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-large {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(30deg);
  transition: var(--transition-smooth);
  animation: shine 6s infinite linear;
  pointer-events: none;
}

@keyframes shine {
  0% { transform: translate(-100%, -100%) rotate(30deg); }
  20%, 100% { transform: translate(100%, 100%) rotate(30deg); }
}

/* --- Header & Navigation --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
  background: rgba(7, 7, 10, 0.4);
  border-bottom: 1px solid transparent;
}

.main-header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid var(--border-color);
  var(--glass-effect);
  height: 70px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.4));
}

.logo-img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  object-fit: cover;
}

.logo .highlight {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-headings);
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.cart-toggle-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-shadow-cyan);
  color: var(--accent-cyan);
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(188, 52, 250, 0.4);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 70vh;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
  margin-bottom: 40px;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  font-family: var(--font-headings);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite alternate;
}

@keyframes pulse-dot {
  0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px 3px rgba(0, 240, 255, 0.4); }
}

.hero-title {
  font-family: var(--font-headings);
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.25));
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-unit {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: var(--font-headings);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* --- Product Catalog --- */
.catalog-section {
  padding: 100px 0;
  position: relative;
  background: transparent;
}

/* Category Filter Bar */
.category-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  position: relative;
  z-index: 5;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-headings);
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
}

.filter-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(188, 52, 250, 0.15));
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
  var(--glass-effect);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.12);
}

.product-image-container {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #09090e;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(13, 13, 20, 0.85);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  color: var(--accent-cyan);
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-buttons {
  display: flex;
  gap: 8px;
}

/* --- 3D Studio & Configurator --- */
.configurator-section {
  padding: 100px 0;
  background: transparent;
}

.configurator-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.canvas-panel {
  display: flex;
  flex-direction: column;
  background: rgba(7, 7, 10, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  background: radial-gradient(circle at center, #18182a, #08080f);
}

.canvas-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 240, 255, 0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.canvas-instructions {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  pointer-events: none;
  z-index: 5;
}

.instruction-tag {
  background: rgba(13, 13, 20, 0.8);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 20px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  var(--glass-effect);
}

#configurator-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.printer-stats-overlay {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px 24px;
  background: rgba(13, 13, 20, 0.9);
  border-top: 1px solid var(--border-color);
}

.printer-stats-overlay .stat-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.printer-stats-overlay .stat-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.printer-stats-overlay .stat-value {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}

.control-panel {
  background: rgba(20, 20, 30, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  var(--glass-effect);
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-height: 620px;
  overflow-y: auto;
}

.panel-section-title {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-section-title i {
  color: var(--accent-cyan);
}

.model-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.model-select-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 12px;
  border-radius: 8px;
  font-family: var(--font-headings);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.model-select-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.model-select-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(188, 52, 250, 0.1));
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.material-select-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.material-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.material-btn .material-name {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
}

.material-btn .material-desc {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
  text-align: center;
}

.material-btn:hover {
  border-color: var(--accent-cyan);
}

.material-btn.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.color-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.color-dot-wrapper {
  position: relative;
}

.color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  background-clip: content-box;
}

.color-dot:hover {
  transform: scale(1.15);
}

.color-dot.active {
  border-color: var(--accent-cyan);
  transform: scale(1.15);
  box-shadow: var(--glow-shadow-cyan);
}

.selected-color-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Slider style defaults */
.parameter-group {
  margin-bottom: 16px;
}

.param-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #181824;
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: var(--glow-shadow-cyan);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.param-ranges {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.parameter-row {
  display: flex;
  gap: 16px;
}

.parameter-group.half {
  width: 50%;
}

.select-input {
  width: 100%;
  background: #181824;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.select-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-shadow-cyan);
}

.price-summary-panel {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: auto;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.calc-row strong {
  color: var(--text-primary);
}

.calc-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 12px 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.total-row span {
  font-family: var(--font-headings);
  font-weight: 500;
  color: var(--text-secondary);
}

.total-row .price-val {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* --- STL Price Estimator --- */
.estimator-section {
  padding: 100px 0;
  background: transparent;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.upload-panel {
  display: flex;
}

.upload-dropzone {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 2px dashed #303046;
  border-radius: 16px;
  background: rgba(20, 20, 30, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.03);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.08);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  font-size: 3.5rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.upload-dropzone:hover .upload-icon {
  color: var(--accent-cyan);
  transform: translateY(-4px);
}

.upload-dropzone h3 {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.upload-dropzone p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.file-spec {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Upload Success View (overlay) */
.upload-success-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.upload-success-panel.visible {
  opacity: 1;
  pointer-events: auto;
}

.success-file-icon {
  font-size: 4rem;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
}

.upload-success-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  word-break: break-all;
}

.file-size {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.model-check-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.25);
  color: var(--accent-green);
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.remove-file-btn {
  background: transparent;
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: var(--accent-red);
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.remove-file-btn:hover {
  background: rgba(255, 59, 48, 0.08);
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.15);
}

.estimator-calc-panel {
  background: rgba(20, 20, 30, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  var(--glass-effect);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.estimator-calc-panel.disabled {
  overflow: hidden;
}

.disabled-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 7, 10, 0.85);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  font-family: var(--font-headings);
  font-size: 1.05rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.disabled-overlay i {
  color: var(--accent-cyan);
  display: block;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.estimator-calc-panel.disabled .disabled-overlay {
  opacity: 1;
  pointer-events: auto;
}

.estimator-calc-panel:not(.disabled) .disabled-overlay {
  opacity: 0;
  pointer-events: none;
}

.estimator-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.estimation-results {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 10px;
}

.results-header {
  font-family: var(--font-headings);
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.result-box {
  background: #181824;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.result-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.result-value {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
  display: block;
}

.cost-breakdown-details {
  background: rgba(13, 13, 20, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.cost-breakdown-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cost-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}

.total-quote-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.total-quote-row span {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.total-quote-row .quote-value {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-green);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

/* Disclaimer text below the estimator */
.estimator-disclaimer {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(20, 20, 30, 0.4);
  border: 1px solid rgba(255, 170, 0, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.estimator-disclaimer:hover {
  border-color: rgba(255, 170, 0, 0.45);
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.08);
}

.disclaimer-icon {
  color: #ffaa00;
  font-size: 1.2rem;
  margin-top: 3px;
  filter: drop-shadow(0 0 5px rgba(255, 170, 0, 0.3));
}

.estimator-disclaimer p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.estimator-disclaimer strong {
  color: var(--text-primary);
  font-family: var(--font-headings);
  font-weight: 600;
}

/* --- Timeline: How It Works --- */
.how-it-works-section {
  padding: 100px 0;
  background: transparent;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

/* Horizontal line behind timeline steps */
.timeline::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 5%;
  width: 90%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-color) 0px, var(--border-color) 8px, transparent 8px, transparent 16px);
  z-index: 1;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.timeline-icon {
  width: 70px;
  height: 70px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.timeline-item:hover .timeline-icon {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-shadow-cyan);
  color: #000;
  background: var(--accent-cyan);
  transform: scale(1.08);
}

.timeline-content {
  display: flex;
  flex-direction: column;
}

.timeline-step {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.timeline-content h3 {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Shopping Cart Drawer --- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  z-index: 150;
  visibility: hidden;
  transition: visibility 0.4s ease;
}

.cart-drawer[aria-hidden="false"] {
  visibility: visible;
}

.cart-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cart-drawer[aria-hidden="false"] .cart-drawer-overlay {
  opacity: 1;
}

.cart-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 5;
}

.cart-drawer[aria-hidden="false"] .cart-drawer-content {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.cart-drawer-header h2 {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 600;
}

.close-cart-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-cart-btn:hover {
  color: var(--accent-cyan);
}

.cart-items-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Empty State */
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 3.5rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cart-empty-state p {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.close-cart-btn-nav {
  font-size: 0.85rem;
  padding: 10px 20px;
}

/* Cart item row card */
.cart-item {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
  background: #09090e;
  border: 1px solid var(--border-color);
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.cart-item-specs {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.qty-control {
  display: flex;
  align-items: center;
  background: #181824;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
}

.qty-val {
  font-size: 0.8rem;
  width: 24px;
  text-align: center;
  font-weight: 600;
}

.cart-item-price {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.remove-item-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-left: 12px;
}

.remove-item-btn:hover {
  color: var(--accent-red);
}

.cart-drawer-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.cart-summary-line.tax {
  margin-bottom: 12px;
}

.cart-footer-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 10px 0;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-summary-total span {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--text-secondary);
}

.cart-summary-total #cart-total {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* --- Checkout Modal --- */
.checkout-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  background: var(--bg-primary);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.checkout-modal-wrapper[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.checkout-modal-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.checkout-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.close-checkout-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-checkout-btn:hover {
  color: var(--accent-cyan);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section h3 {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 600;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 12px;
  margin-bottom: 4px;
}

.form-section h3 i {
  margin-right: 4px;
  color: var(--accent-cyan);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.span-2 {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group label .required {
  color: var(--accent-red);
}

.form-group input {
  background: #0d0d14;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-group input:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-shadow-cyan);
}

.form-row {
  display: flex;
  gap: 16px;
}

.half-group {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.half-group input {
  width: 100%;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper .input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
}

.input-icon-wrapper input {
  padding-left: 44px;
  width: 100%;
}

/* Invalid / validation states */
.form-group.invalid input {
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.15);
}

.error-msg {
  font-size: 0.75rem;
  color: var(--accent-red);
  margin-top: 2px;
  display: none;
}

.form-group.invalid .error-msg {
  display: block;
}

/* Credit Card Visualizer */
.payment-card-visual {
  width: 100%;
  max-width: 380px;
  height: 220px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1b0a3a, #07070a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 10px 0 20px 0;
  overflow: hidden;
}

.payment-card-visual::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.card-chip {
  width: 42px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-gold), #b8860b);
  border-radius: 6px;
}

.card-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.8rem;
  color: var(--text-muted);
}

.card-number-display {
  font-family: var(--font-headings);
  font-size: 1.45rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin: 16px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-holder-row {
  display: flex;
  justify-content: space-between;
}

.card-holder-col {
  display: flex;
  flex-direction: column;
}

.card-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.card-name-display, .card-expiry-display {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
  text-transform: uppercase;
}

/* Submit order button loading states */
.submit-order-btn {
  height: 56px;
}

.btn-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.spinner-white {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
}

/* Order Summary Column */
.checkout-summary-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  var(--glass-effect);
  align-self: start;
}

.checkout-summary-panel h3 {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 6px;
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.summary-item-info {
  display: flex;
  flex-direction: column;
}

.summary-item-name {
  font-weight: 600;
}

.summary-item-spec {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.summary-item-price {
  font-weight: 700;
}

.summary-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 16px 0;
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.summary-total-row span {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--text-secondary);
}

.summary-total-row span:last-child {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* Success Screen Tracking Panel */
.checkout-success {
  display: none;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon-badge {
  width: 80px;
  height: 80px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.3);
  color: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.15);
}

.checkout-success h2 {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.order-id-highlight {
  color: var(--accent-cyan);
  font-family: var(--font-headings);
  font-weight: 700;
}

.success-note {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.production-tracker {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 40px;
  position: relative;
}

/* Tracker vertical lines */
.production-tracker::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 48px;
  width: 2px;
  height: calc(100% - 96px);
  background: #202030;
  z-index: 1;
}

.tracker-step {
  display: flex;
  gap: 24px;
  position: relative;
  z-index: 2;
  opacity: 0.4;
  transition: opacity 0.5s ease;
}

.tracker-step.completed, .tracker-step.active {
  opacity: 1;
}

.tracker-bullet {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #181824;
  border: 2px solid #28283a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.tracker-step.completed .tracker-bullet {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #000;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.tracker-step.active .tracker-bullet {
  background: #10101c;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-shadow-cyan);
}

.spinner-slow {
  animation: spin 2s infinite linear;
}

.tracker-info h4 {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.tracker-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.tracker-step.completed .tracker-time {
  color: var(--accent-green);
}

.tracker-step:not(.active):not(.completed) .tracker-time {
  color: var(--text-muted);
}

.tracker-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.success-actions {
  display: flex;
  gap: 16px;
}

/* --- Dialog: Product Details --- */
.product-details-dialog {
  border: none;
  background: transparent;
  outline: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--text-primary);
}

.product-details-dialog[open] {
  display: flex;
}

.product-details-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.dialog-content {
  background: #0d0d14;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  var(--glass-effect);
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: zoomIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: var(--text-primary);
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.details-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(13, 13, 20, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.details-close-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-shadow-cyan);
}

.details-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
}

.details-image-panel {
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #09090e;
}

.details-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.details-header-section h2 {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.details-price-badge {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: block;
}

.details-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.details-specs {
  background: rgba(13, 13, 20, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.details-specs h4 {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.details-specs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.details-specs-row {
  display: flex;
  justify-content: space-between;
}

.details-specs-row span:first-child {
  color: var(--text-secondary);
}

.details-specs-row span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

.details-footer-actions {
  display: flex;
  gap: 12px;
}

/* Product details customization panel */
.details-customization {
  background: rgba(13, 13, 20, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.details-customization h4 {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.details-customization .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.details-customization .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.details-customization label {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.details-customization input[type="text"] {
  background: #0d0d14;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.details-customization input[type="text"]:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
  outline: none;
}

/* Details image gallery slider */
.details-image-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.gallery-viewport {
  position: relative;
  width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(13, 13, 20, 0.3);
}

.gallery-img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.gallery-img.active {
  position: relative;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13, 13, 20, 0.7);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.gallery-nav:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #0d0d14;
}

.gallery-nav.prev {
  left: 12px;
}

.gallery-nav.next {
  right: 12px;
}

.gallery-dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  z-index: 5;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.gallery-dot.active {
  background: var(--accent-cyan);
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* --- Footer --- */
.main-footer {
  background: transparent;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 0 0;
  position: relative;
  z-index: 2;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-shadow-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links h4 {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  width: fit-content;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 30px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
}

.designed-by {
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Responsive Adaptations --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .configurator-container {
    grid-template-columns: 1fr;
  }
  .estimator-grid {
    grid-template-columns: 1fr;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Mobile navigation could trigger slide-in menu */
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .timeline {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .details-layout {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .details-image-panel {
    height: 260px;
  }
  .footer-bottom-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* --- Ambient Blurred Background Logo --- */
.blurred-bg-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(85vw, 900px);
  height: min(85vw, 900px);
  background-image: url('assets/logo.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(160px) opacity(0.08);
  pointer-events: none;
  z-index: 0;
}

/* --- Inquiry Modal --- */
.inquiry-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 210;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.inquiry-modal-wrapper[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.inquiry-modal-content {
  width: 100%;
  max-width: 600px;
  background: #09090e;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.15);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.inquiry-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.inquiry-modal-header h3 {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  color: var(--accent-cyan);
}

.close-inquiry-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-inquiry-btn:hover {
  color: var(--accent-cyan);
}

/* File upload input style customization */
.file-upload-wrapper {
  position: relative;
  width: 100%;
  height: 50px;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
}

.file-upload-wrapper:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.02);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-design {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

.file-upload-design i {
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

.inquiry-form textarea {
  width: 100%;
  background: #0d0d14;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: vertical;
  transition: var(--transition-smooth);
}

.inquiry-form textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
}

/* --- Delivery Coverage Map Section --- */
.delivery-map-section {
  padding: 100px 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.delivery-map-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.delivery-map-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.delivery-text-content {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.delivery-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.del-stat-card {
  background: rgba(20, 20, 30, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.del-stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 5px 20px rgba(0, 240, 255, 0.15);
}

.del-stat-icon {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.del-stat-num {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.del-stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.map-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at center, rgba(24, 24, 42, 0.5), rgba(8, 8, 15, 0.8));
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 0 40px rgba(188, 52, 250, 0.05), inset 0 0 20px rgba(0, 240, 255, 0.05);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.map-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.8;
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.15));
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
}

.marker-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-purple);
  border-radius: 50%;
  opacity: 0;
  animation: marker-pulse-glow 2s infinite ease-out;
  pointer-events: none;
}

.marker-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: rgba(13, 13, 20, 0.85);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
  backdrop-filter: blur(5px);
}

/* Hover effects */
.map-marker:hover {
  z-index: 15;
}

.map-marker:hover .marker-dot {
  background-color: #ffffff;
  transform: scale(1.3);
  box-shadow: 0 0 12px #ffffff;
}

.map-marker:hover .marker-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px) scale(1.05);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
}

@keyframes marker-pulse-glow {
  0% {
    width: 8px;
    height: 8px;
    opacity: 0.8;
  }
  100% {
    width: 28px;
    height: 28px;
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .delivery-map-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .delivery-map-info {
    text-align: center;
    align-items: center;
  }
  
  .delivery-stats-grid {
    justify-content: center;
    max-width: 500px;
    width: 100%;
  }
}

/* --- About Us Section --- */
.about-section {
  padding: 100px 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.about-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-image-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-logo-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 8px;
  background: rgba(20, 20, 30, 0.4);
  border: 1px solid var(--border-color);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.about-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
}

.about-logo-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  opacity: 0.3;
  z-index: -1;
  filter: blur(10px);
  animation: pulse-purple 4s infinite alternate ease-in-out;
}

@keyframes pulse-purple {
  0% { transform: scale(0.95); opacity: 0.2; }
  100% { transform: scale(1.05); opacity: 0.4; }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-text p strong {
  color: var(--text-primary);
}

.about-slogan {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  margin-top: 10px;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 16px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .about-logo-wrapper {
    width: 220px;
    height: 220px;
  }
  
  .about-content {
    align-items: center;
  }
  
  .about-slogan {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    width: 100%;
  }
}

/* ==========================================================================
   Futuristic Laser Print Preloader Styles
   ========================================================================== */
.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #08080c 0%, #030305 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s ease;
  font-family: 'Space Grotesk', var(--font-body);
  overflow: hidden;
}

.preloader-content {
  width: min(90vw, 440px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.preloader-scan-stage {
  position: relative;
  width: min(85vw, 420px);
  height: min(85vw, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hologram circular rings */
.hologram-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 215, 0, 0.15);
  pointer-events: none;
}

.hologram-ring.outer {
  width: 100%;
  height: 100%;
  animation: rotateClockwise 20s linear infinite;
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.03), 0 0 20px rgba(255, 215, 0, 0.03);
}

.hologram-ring.inner {
  width: 90%;
  height: 90%;
  border: 1px solid rgba(255, 215, 0, 0.08);
  border-style: double;
  animation: rotateCounterClockwise 15s linear infinite;
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Logo container & Image */
.preloader-logo-container {
  position: relative;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(4, 4, 6, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: inset(100% 0 0 0); /* Revealing from top to bottom */
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(0.95);
}

.preloader-logo.completed {
  transform: scale(1.03);
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

/* Horizontal Laser Sweep Line */
.laser-line {
  position: absolute;
  left: 9%;
  width: 82%;
  height: 2px;
  background: linear-gradient(90deg, transparent 10%, #ffd700 50%, transparent 90%);
  z-index: 10;
  pointer-events: none;
  top: 9%; /* Controlled by JS from 9% to 91% */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.laser-glow {
  position: absolute;
  top: -6px;
  left: 0;
  width: 100%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.8) 0%, rgba(255, 215, 0, 0) 70%);
  filter: blur(2px);
}

.laser-sparkle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 15px 5px #ffd700, 0 0 30px 10px #ffffff;
  animation: sparkleMove 1s ease-in-out infinite alternate;
}

@keyframes sparkleMove {
  0% { transform: translate(-50%, -50%) scale(0.8); }
  100% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Laser sparkles (spawned dynamically in JS) */
.preloader-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #ffd700;
  border-radius: 50%;
  pointer-events: none;
  z-index: 11;
  box-shadow: 0 0 6px #ffd700;
}

/* Shockwave animation at 100% */
.preloader-shockwave {
  position: absolute;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  opacity: 0;
  pointer-events: none;
  z-index: 15;
  transform: scale(0.9);
}

.preloader-shockwave.trigger {
  animation: shockwavePulse 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes shockwavePulse {
  0% {
    transform: scale(0.95);
    opacity: 1;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0);
  }
}

/* Progress bar & G-code status */
.preloader-info {
  width: 100%;
}

.preloader-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
  border: 1px solid rgba(255, 215, 0, 0.05);
  overflow: hidden;
  margin-bottom: 12px;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  border-radius: 3px;
  transition: width 0.05s linear;
}

.preloader-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.status-gcode {
  color: var(--text-muted);
  font-family: monospace;
}

.status-percent {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* --- Cart Drawer Promo Newsletter Box --- */
.cart-promo-box {
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-inner {
  display: flex;
  gap: 12px;
  align-items: center;
}

.promo-icon {
  font-size: 1.5rem;
  color: var(--accent-cyan);
}

.promo-text-wrapper h4 {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.promo-text-wrapper p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.promo-form {
  display: flex;
  gap: 8px;
}

.promo-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  outline: none;
  transition: var(--transition-smooth);
}

.promo-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

#cart-promo-submit {
  font-size: 0.8rem;
  padding: 8px 14px;
}

/* --- Leaflet Custom Styles to match Gold Theme --- */
.leaflet-container {
  font-family: var(--font-body) !important;
  background-color: #07070a !important;
}

.leaflet-popup-content-wrapper {
  background: rgba(15, 15, 20, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 215, 0, 0.2) !important;
  color: var(--text-primary) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  padding: 6px !important;
}

.leaflet-popup-tip {
  background: rgba(15, 15, 20, 0.95) !important;
  border-left: 1px solid rgba(255, 215, 0, 0.2) !important;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2) !important;
}

.map-popup-title {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.map-popup-address {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.map-popup-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan) !important;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none !important;
  transition: var(--transition-smooth);
}

.map-popup-link:hover {
  text-shadow: var(--glow-shadow-cyan);
  transform: translateY(-1px);
}

/* Custom Leaflet HQ Marker CSS */
.custom-hq-marker {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hq-marker-dot {
  width: 12px;
  height: 12px;
  background-color: var(--accent-cyan);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  z-index: 2;
}

.hq-marker-pulse {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  opacity: 0;
  animation: marker-pulse-glow 2s infinite ease-out;
  z-index: 1;
}

.map-city-tooltip {
  background: rgba(15, 15, 20, 0.9) !important;
  border: 1px solid rgba(255, 215, 0, 0.15) !important;
  color: var(--text-primary) !important;
  border-radius: 4px !important;
  font-size: 0.75rem !important;
  padding: 4px 8px !important;
  font-family: var(--font-body) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-tooltip-top:before {
  border-top-color: rgba(15, 15, 20, 0.9) !important;
}

/* --- Material Guide Section --- */
.material-guide-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 15, 20, 0.98) 100%);
  position: relative;
}

.material-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 0, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  background: rgba(15, 15, 20, 0.5);
  backdrop-filter: blur(10px);
  margin-top: 20px;
}

.material-guide-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.material-guide-table th {
  background: rgba(255, 215, 0, 0.05);
  color: var(--accent-cyan);
  font-family: var(--font-headings);
  font-weight: 600;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.material-guide-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.05);
  color: var(--text-secondary);
  line-height: 1.5;
  vertical-align: middle;
}

.material-guide-table tr:last-child td {
  border-bottom: none;
}

.material-guide-table tr {
  transition: var(--transition-smooth);
}

.material-guide-table tr:hover {
  background: rgba(255, 215, 0, 0.02);
}

.material-guide-table tr.highlighted-mat {
  background: rgba(255, 215, 0, 0.15) !important;
  box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.15);
}

.mat-name {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.rating {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.rating.star-4 {
  background: rgba(255, 215, 0, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.rating.star-5 {
  background: rgba(255, 215, 0, 0.2);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.rating.star-6 {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(245, 196, 0, 0.3));
  color: #ffffff;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.rating.temp-low {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.rating.temp-mid {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.rating.temp-high {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.rating.uv-low {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.rating.uv-mid {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.rating.uv-high {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}


