:root {
  --bg-main: #0b0f19;
  --bg-surface: #111827;
  --bg-card: #1f2937;
  --bg-card-hover: #283548;
  --border-color: #374151;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;
  --accent-glow: rgba(245, 158, 11, 0.25);
  --success: #10b981;
  --info: #06b6d4;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-anchor: none;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 140px; /* Space for mobile/desktop sticky action bar */
}

img, svg, picture, video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  text-decoration: none;
}

/* Container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
header {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent) 0%, #b45309 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent-glow);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text p {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-link svg {
  flex-shrink: 0;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: #4b5563;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #0f172a;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Announcement Banner */
.announcement-bar {
  background: linear-gradient(90deg, #1e293b 0%, #1e1b4b 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding: 8px 16px;
  font-size: 0.82rem;
  text-align: center;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.announcement-bar span.badge {
  background: var(--accent);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
}

/* Maker Story / About Section */
.maker-story-section {
  padding: 24px 0 16px;
}

.maker-story-card {
  background: radial-gradient(1100px 550px at 50% -15%, rgba(245, 158, 11, 0.11) 0%, transparent 75%), linear-gradient(150deg, #1a253a 0%, #111827 50%, #0d121d 100%);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: 
    0 20px 50px -10px rgba(0, 0, 0, 0.65),
    0 0 60px -8px rgba(245, 158, 11, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
  animation: storySubtleShine 6s ease-in-out infinite alternate;
}

@keyframes storySubtleShine {
  0% {
    border-color: rgba(245, 158, 11, 0.32);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.65), 0 0 40px -8px rgba(245, 158, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
  100% {
    border-color: rgba(245, 158, 11, 0.52);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.65), 0 0 65px -4px rgba(245, 158, 11, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

/* Subtle Top Luminous Edge Beam - Drawing gentle visitor attention */
.maker-story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.45) 20%, rgba(251, 191, 36, 0.95) 50%, rgba(245, 158, 11, 0.45) 80%, transparent 100%);
  box-shadow: 0 1px 16px 2px rgba(245, 158, 11, 0.45);
  pointer-events: none;
  z-index: 1;
}

.maker-story-card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.maker-story-header {
  margin-bottom: 22px;
}

.maker-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 0 16px -2px rgba(16, 185, 129, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #10b981; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.maker-story-title {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-shadow: 0 2px 24px rgba(245, 158, 11, 0.2);
}

.maker-story-subtitle {
  font-size: 0.98rem;
  color: var(--accent);
  font-weight: 500;
  line-height: 1.4;
}

.maker-story-subtitle strong {
  color: #fff;
}

.maker-story-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}

.maker-story-text {
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.68;
}

.maker-story-text p {
  margin-bottom: 14px;
}

.maker-story-text p strong {
  color: #ffffff;
}

.story-highlight-quote {
  color: #ffffff !important;
  font-weight: 600;
  font-style: italic;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.07) 0%, transparent 100%);
  padding: 8px 14px;
  border-radius: 0 6px 6px 0;
  margin: 16px 0 !important;
}

.maker-story-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Real Desk Photo Card */
.maker-photo-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-md);
  padding: 10px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px -5px rgba(245, 158, 11, 0.15);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.maker-photo-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 28px -4px rgba(245, 158, 11, 0.25);
}

.maker-photo-wrapper {
  position: relative;
  border-radius: calc(var(--radius-md) - 4px);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f172a;
  cursor: zoom-in;
}

.maker-desk-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.maker-photo-card:hover .maker-desk-img {
  transform: scale(1.035);
}

.maker-photo-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
}

.maker-photo-caption {
  padding: 12px 6px 4px;
}

.maker-photo-caption p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.maker-photo-caption strong {
  color: #ffffff;
}

.maker-story-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Catalog Section Header */
.catalog-section-header {
  margin: 44px 0 20px;
  text-align: center;
}

.section-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 8px;
  transition: border-color var(--transition-fast);
}

.section-pill:hover {
  border-color: rgba(148, 163, 184, 0.35);
}

.catalog-section-header .section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.catalog-section-header .section-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* Filter Bar */
.filter-section {
  margin: 20px 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.filter-section::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: #0f172a;
  border-color: var(--accent);
  font-weight: 700;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #64748b;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.4);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.03);
}

.badge-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-category {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-tagline {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

.btn-customize {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-customize:hover {
  background: var(--accent);
  color: #0f172a;
}

/* Modal / Drawer */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 10;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}

.btn-close:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
}

/* Customizer Two-Column Layout */
.customizer-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .customizer-layout {
    grid-template-columns: 1fr 1.15fr;
  }
}

/* Gallery inside customizer */
.gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
}

.thumb-item {
  width: 62px;
  flex: 1 1 0;
  min-width: 48px;
  max-width: 72px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  background: #0f172a;
  transition: all 0.2s ease;
}

.thumb-item.active {
  border-color: var(--accent);
  opacity: 1;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090d16;
}

.video-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.video-preview-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* Spec Chips */
.spec-box {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.spec-item span.label {
  color: var(--text-muted);
  display: block;
  font-size: 0.7rem;
}

/* Customizer Form Options */
.opt-group {
  margin-bottom: 20px;
}

.opt-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f3f4f6;
}

.opt-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* Material Chips */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.pill-option {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-option:hover {
  background: var(--bg-card-hover);
  border-color: #64748b;
}

.pill-option.active {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
}

.pill-title {
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pill-extra {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}

.pill-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Color Swatches */
.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.swatch-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #4b5563;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-swatch:hover .swatch-circle {
  transform: scale(1.08);
}

.color-swatch.active .swatch-circle {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  transform: scale(1.1);
}

.swatch-circle.selected::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.swatch-name {
  font-size: 0.68rem;
  color: var(--text-secondary);
  max-width: 60px;
  text-align: center;
  line-height: 1.1;
}

/* Size Chips */
.size-grid {
  display: flex;
  gap: 10px;
}

.size-btn {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s ease;
  color: var(--text-primary);
}

.size-btn:hover {
  background: var(--bg-card-hover);
  border-color: #64748b;
}

.size-btn.active {
  border: 2px solid var(--accent) !important;
  background: rgba(245, 158, 11, 0.16) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25) !important;
}

.size-btn.active::before {
  content: '✓ ';
  font-weight: 800;
  color: var(--accent);
}

.size-pill-price {
  display: block;
  font-size: 0.72rem;
  color: var(--accent);
  margin-top: 2px;
  font-weight: 700;
}

.panoris-upload-slot {
  transition: all 0.2s ease;
}

.panoris-upload-slot:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

@media (max-width: 390px) {
  .panoris-upload-slot {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .panoris-upload-slot > div:last-child {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
  .panoris-upload-slot > div:last-child button {
    width: 100%;
  }
}

.text-input-field {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s ease;
}

select.text-input-field {
  background-color: #111827;
  color: #f3f4f6;
}

select.text-input-field option {
  background-color: #111827;
  color: #f3f4f6;
  padding: 8px 12px;
}

.text-input-field:focus {
  border-color: var(--accent);
}

/* Price Estimate Card */
.estimate-card {
  background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

.estimate-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
}

.estimate-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.total-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.total-number {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--accent);
}

/* Mobile Sticky Bottom Action Bar */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 12px 16px;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.sticky-info {
  display: flex;
  flex-direction: column;
}

.sticky-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sticky-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent);
}

/* Modal Form Controls */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
}

.form-help {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-new {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-in_review {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-printing {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-ready {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-fulfilled {
  background: rgba(75, 85, 99, 0.25);
  color: #9ca3af;
  border: 1px solid rgba(75, 85, 99, 0.4);
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Tracking Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 28px;
  margin: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 10px;
  width: 2px;
  background: var(--border-color);
}

.timeline-step {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
}

.timeline-step.completed .timeline-dot {
  background: var(--success);
  border-color: var(--success);
}

.timeline-step.current .timeline-dot {
  background: var(--accent);
  border-color: #fff;
  box-shadow: 0 0 10px var(--accent);
}

.timeline-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.timeline-step.completed .timeline-title {
  color: #34d399;
}

.timeline-step.current .timeline-title {
  color: var(--accent);
}

.timeline-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #1f2937;
  color: #fff;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .maker-story-card {
    padding: 22px 18px;
  }
  .maker-story-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .maker-story-title {
    font-size: 1.45rem;
  }
  .maker-story-actions {
    flex-direction: column;
    width: 100%;
  }
  .maker-story-actions a,
  .maker-story-actions button {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 20px;
  }
  .sticky-bottom-bar {
    display: none;
  }
}

/* ===================================================
   STUDIO FILAMENT & MATERIAL LIBRARY
   =================================================== */
.filament-showcase-section {
  margin: 40px 0 50px 0;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.filament-showcase-section::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.filament-palette-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
}

.filament-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.palette-tier-group {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition: border-color var(--transition-fast);
}

.palette-tier-group:hover {
  border-color: rgba(148, 163, 184, 0.35);
}

.palette-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.palette-tier-badge-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.palette-tier-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 6px;
}

.palette-tier-pill.badge-core {
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.palette-tier-pill.badge-accent {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.palette-tier-pill.badge-fancy {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.palette-tier-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.01em;
}

.palette-tier-pricing-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 3px 10px;
  border-radius: 9999px;
}

.palette-tier-pricing-tag.tier-included {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.22);
}

.palette-tier-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  line-height: 1.45;
}

.filament-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.filament-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.filament-card:hover {
  transform: translateY(-2px);
  border-color: #64748b;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4);
}

.filament-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filament-swatch-circle {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  position: relative;
}

.filament-card-info {
  flex: 1;
  min-width: 0;
}

.filament-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filament-card-finish {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.filament-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.filament-pill-mat {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  text-transform: uppercase;
}

.filament-pill-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
  letter-spacing: 0.02em;
}

.filament-pill-badge.badge-core {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.28);
}

.filament-pill-badge.badge-accent {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.28);
}

.filament-pill-badge.badge-fancy,
.filament-pill-badge.badge-special {
  background: rgba(168, 85, 247, 0.12);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.3);
}

.filament-pill-price {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

/* Customizer swatch tier grouping */
.cust-swatch-tier-section {
  margin-bottom: 14px;
}

.cust-swatch-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-bottom: 3px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.cust-swatch-tier-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.cust-swatch-tier-price {
  font-size: 0.70rem;
  font-weight: 700;
  color: #fbbf24;
}

.cust-swatch-tier-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filament-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #10b981;
}

.filament-status-indicator .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* Customizer swatch enhancements */
.swatch-circle.glow {
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.4);
  animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 6px rgba(0, 229, 255, 0.4); }
  100% { box-shadow: 0 0 14px rgba(0, 229, 255, 0.85); }
}

.swatch-circle.marble {
  border: 2px dashed rgba(255, 255, 255, 0.4);
}

.swatch-badge-tag {
  font-size: 0.62rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 72px;
  line-height: 1.15;
}

.swatch-extra-price {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 600;
}

/* ===================================================
   ARTISAN MAKER LOOKBOOK STYLES
   =================================================== */

/* Masthead & Hero */
.lookbook-hero-section {
  margin: 20px 0 60px 0;
}

.lookbook-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 30px;
}

.masthead-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.masthead-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.lookbook-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.lookbook-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #f8fafc;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.lookbook-hero-title span {
  color: var(--accent);
}

.lookbook-lead-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.lookbook-quote-card {
  position: relative;
  background: rgba(30, 41, 59, 0.6);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px 14px 38px;
  margin-bottom: 20px;
}

.lookbook-quote-card .quote-mark {
  position: absolute;
  left: 12px;
  top: 8px;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.7;
  font-family: Georgia, serif;
}

.lookbook-quote-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #f1f5f9;
  margin: 0;
}

.lookbook-body-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Quick Index Pills */
.lookbook-nav-index {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.index-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.index-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.index-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.15s ease;
}

.index-pill:hover {
  background: var(--accent);
  color: #0f172a;
  border-color: var(--accent);
  font-weight: 700;
}

/* Framed Photo */
.framed-photo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.framed-photo-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #0f172a;
}

.framed-desk-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.framed-photo-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f8fafc;
}

.framed-caption {
  padding: 12px 6px 4px 6px;
}

.caption-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 2px;
}

.framed-caption p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Curated Lookbook Editions */
.lookbook-editions-section {
  margin: 50px 0;
}

.lookbook-edition-block {
  margin-bottom: 60px;
  scroll-margin-top: 80px;
}

.edition-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.edition-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.edition-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.edition-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  text-transform: uppercase;
}

.edition-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.edition-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.5;
  margin: 0;
}

/* Lookbook Card Grid */
.lookbook-edition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.lookbook-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lookbook-card:hover {
  transform: translateY(-3px);
  border-color: #64748b;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5);
}

.lookbook-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

.lookbook-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090d16;
  transition: transform 0.3s ease;
}

.lookbook-card:hover .lookbook-card-media img {
  transform: scale(1.04);
}

.lookbook-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lookbook-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.spec-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lookbook-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
  line-height: 1.3;
}

.lookbook-card-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 18px;
  flex: 1;
}

.lookbook-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.lookbook-price-col {
  display: flex;
  flex-direction: column;
}

.lookbook-price-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.lookbook-price-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

/* Material Archive */
.material-archive-section {
  margin: 60px 0;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  scroll-margin-top: 80px;
}

.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

/* Bespoke Commission Section */
.bespoke-commission-section {
  margin: 60px 0 80px 0;
  scroll-margin-top: 80px;
}

.bespoke-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

.bespoke-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 10px 0 8px 0;
  letter-spacing: -0.01em;
}

.bespoke-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.55;
  margin-bottom: 28px;
}

.bespoke-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.bespoke-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.step-num {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.bespoke-step-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
}

.bespoke-step-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.bespoke-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bespoke-cta-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .lookbook-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lookbook-hero-title {
    font-size: 1.85rem;
  }
  .bespoke-card {
    padding: 24px 18px;
  }
}

/* Rich Product Content & Dynamic Fields in Customizer */
.cust-short-summary {
  font-size: 0.88rem;
  font-weight: 500;
  color: #f1f5f9;
  line-height: 1.5;
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(217, 119, 6, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cust-full-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 12px;
}

.cust-full-desc p {
  margin-bottom: 8px;
}

.cust-section-subtitle {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 16px;
  margin-bottom: 8px;
}

.cust-bullets-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cust-bullets-list li {
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.cust-bullets-list .bullet-icon {
  color: var(--accent);
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.cust-dynamic-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.custom-field-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custom-field-row label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  justify-content: space-between;
}

.custom-field-row .char-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

.custom-field-row input {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Dualis Symbol Toolbar */
.dualis-symbol-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.symbol-toolbar-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

.symbol-pills-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-symbol-insert {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-symbol-insert:hover {
  background: var(--accent);
  color: #0f172a;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Dualis Length & Equality Checker Card */
.dualis-length-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.dualis-length-badge .badge-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dualis-length-badge .badge-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dualis-length-detail {
  font-size: 0.72rem;
  line-height: 1.4;
  margin-left: 16px;
  color: var(--text-secondary);
}

/* State: Neutral */
.dualis-length-badge.neutral {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}

.dualis-length-badge.neutral .badge-status-dot {
  background: #94a3b8;
  box-shadow: 0 0 6px rgba(148, 163, 184, 0.5);
}

/* State: Length Mismatch Warning */
.dualis-length-badge.warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
}

.dualis-length-badge.warning .badge-status-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.dualis-pad-helper-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: 16px;
}

.btn-quick-pad {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-pad:hover {
  background: var(--accent);
  color: #0f172a;
}

/* State: Matched Single Part */
.dualis-length-badge.single-part {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.dualis-length-badge.single-part .badge-status-dot {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* State: Matched Multi Part (9-14 chars) */
.dualis-length-badge.multi-part {
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.45);
  color: #fbbf24;
}

.dualis-length-badge.multi-part .badge-status-dot {
  background: #d97706;
  box-shadow: 0 0 6px #d97706;
}

/* =========================================================
   STUDIO SPOOL INVENTORY & CAPACITY MANAGEMENT STYLES
   ========================================================= */

/* Spool Capacity Progress Meter */
.spool-meter-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.spool-meter-bar {
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
}

.meter-green {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.meter-amber {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.meter-red {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Inventory Filter Buttons */
.btn-inv-filter {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-inv-filter:hover {
  color: #f8fafc;
}

.btn-inv-filter.active {
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
}

/* Status Badges */
.badge-status-full {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-status-inuse {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-status-low {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-status-empty {
  display: inline-block;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Quick Weigh Action Button */
.btn-action-weigh {
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-action-weigh:hover {
  background: var(--accent);
  color: #0f172a;
}

/* Photo Snap & Order Screenshot Dropzone */
.photo-autofill-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(217, 119, 6, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.photo-autofill-box.dragover {
  border-color: var(--accent);
  background: rgba(217, 119, 6, 0.08);
}

.autofill-dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.autofill-dropzone-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.autofill-dropzone-content {
  flex: 1;
}

.autofill-dropzone-content strong {
  display: block;
  font-size: 0.85rem;
  color: #f8fafc;
  margin-bottom: 2px;
}

.autofill-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Small Spinner Animation */
.spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(217, 119, 6, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Preset Weight Buttons */
.btn-preset-weight {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preset-weight:hover {
  background: rgba(217, 119, 6, 0.2);
  border-color: var(--accent);
  color: #fde68a;
}

/* 360 Turntable Interactive Viewer */
.turntable-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.turntable-canvas-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.turntable-canvas-box:active {
  cursor: grabbing;
}

.turntable-canvas-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  display: block;
}


.turntable-badge svg {
  animation: pulseRotate 3s ease-in-out infinite;
}

@keyframes pulseRotate {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
}

.turntable-loader {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.turntable-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(245, 158, 11, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.turntable-loader-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.turntable-snap-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.btn-snap {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-snap:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(245, 158, 11, 0.4);
}

.btn-snap.active {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}

.btn-snap .snap-angle {
  font-size: 0.7rem;
  opacity: 0.75;
}

.turntable-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.btn-360-preview {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 100%);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.btn-360-preview:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent) 0%, #b45309 100%);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-360-preview:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
}

.dualis-360-msg {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
  min-height: 0;
}

.dualis-360-msg:empty {
  display: none !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
}

.dualis-360-msg.success {
  color: var(--success);
}

.dualis-360-msg.error {
  color: #ef4444;
}



/* ===================================================
   STANDALONE PRODUCT PAGE STYLES (/product/:slug)
   =================================================== */

.product-breadcrumb-bar {
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
  font-size: 0.84rem;
  backdrop-filter: blur(8px);
}

.breadcrumb-container {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
}

.breadcrumb-container a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb-container a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: #64748b;
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: #f8fafc;
  font-weight: 600;
}

.product-page-main {
  padding-top: 24px;
  padding-bottom: 110px;
}

.product-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.product-media-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.product-info-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Header Title & Price on Same Line (Price Right-Aligned) */
.product-title-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 0 0;
}

.product-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-title-price-row .product-page-title {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.product-page-subtitle {
  margin: 4px 0 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.4;
  letter-spacing: -0.01em;
  width: 100%;
  display: block;
}

@media (max-width: 480px) {
  .product-page-subtitle {
    font-size: 0.88rem;
    line-height: 1.35;
    margin-top: 6px;
  }
}

.product-header-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
  padding-top: 4px;
}

.product-header-price .price-from-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-header-price .product-base-price-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

/* Currys-Style Feature Tags (Max 4 Tags, No Headings, 1 Row Laptop / 2 Rows Mobile) */
.product-currys-tags {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 18px 0;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.currys-tag-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.35;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.currys-tag-cell:last-child {
  border-right: none;
}

@media (max-width: 900px) {
  .product-currys-tags {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
  }
  .currys-tag-cell {
    border-right: none;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 8px 6px;
    font-size: 0.78rem;
  }
}

/* Modular PDP Card Styles */
.product-customizer-card,
.product-description-card,
.product-options-card,
.product-order-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

#product-customizer-card {
  padding: 20px 24px 18px 24px;
}

#product-customizer-card .opt-group:last-child {
  margin-bottom: 0;
}

#product-customizer-card .card-section-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
}

#cust-dualis-360-group {
  margin-top: 12px;
}



.card-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.card-section-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
  text-transform: uppercase;
}

.card-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.card-section-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

/* 7th Thumbnail - 360° Preview Item */
.thumb-item.thumb-360-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px dashed rgba(245, 158, 11, 0.45);
  color: #f8fafc;
  cursor: pointer;
  text-align: center;
  padding: 4px 6px;
  transition: all 0.2s ease;
}

.thumb-item.thumb-360-preview:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.thumb-item.thumb-360-preview.active {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, #2a1f10 0%, #151108 100%);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

.thumb-360-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 3px;
}

.thumb-360-text {
  font-size: 0.62rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
  white-space: nowrap;
}

/* Viewport Card (Clean Responsive Container with Zero Layout Shift) */
.product-viewport-card {
  background: #090d16;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  max-height: 440px;
  box-sizing: border-box;
}

@media (min-width: 901px) {
  .product-viewport-card {
    height: 476px;
    max-height: none;
    aspect-ratio: auto;
  }
}

.product-main-image-wrap,
.product-turntable-container,
.product-localis-preview-container {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
  background: #090d16;
  border-radius: inherit;
  overflow: hidden;
  box-sizing: border-box;
}

.product-main-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-main-image-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Turntable Container */
.product-turntable-container {
  display: flex;
  flex-direction: column;
}

.turntable-box {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #1a2333 0%, #090d16 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  overflow: hidden;
  transition: background 0.4s ease;
}

/* Floating Lamp Illumination Switch */
.turntable-light-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  pointer-events: auto;
}

.btn-lamp-light-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  user-select: none;
}

.btn-lamp-light-switch:hover {
  border-color: rgba(245, 158, 11, 0.45);
  color: #f8fafc;
  transform: translateY(-1px);
}

.btn-lamp-light-switch.active {
  background: rgba(26, 21, 13, 0.92);
  border-color: rgba(245, 158, 11, 0.7);
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3), 0 4px 16px rgba(0, 0, 0, 0.5);
}

.btn-lamp-light-switch .light-switch-icon {
  font-size: 0.95rem;
  line-height: 1;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.btn-lamp-light-switch.active .light-switch-icon {
  filter: none;
  transform: scale(1.15);
}

/* Dynamic Studio Luminescence for Panoris Lithophane (Light ON vs OFF) */
.turntable-img.lamp-lit {
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.35));
  transition: filter 0.3s ease;
}

.turntable-img.lamp-unlit {
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.35));
  transition: filter 0.3s ease;
}

.turntable-box {
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
  transition: background 0.4s ease;
}

.turntable-box.lamp-lit-bg {
  /* Studio dark background preserved - no light bleed around or below the opaque base */
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%) !important;
}

.turntable-box:active {
  cursor: grabbing;
}

/* Turntable Empty Placeholder (Prevents broken image before preview) */
.turntable-empty-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
  gap: 12px;
  user-select: none;
  z-index: 2;
}

.placeholder-360-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.placeholder-360-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.01em;
}

.placeholder-360-text {
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 330px;
  margin: 0;
  line-height: 1.5;
}

.turntable-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  transform: scale(1.14);
  will-change: transform;
  transition: transform 0.2s ease-out;
}

@media (min-width: 901px) {
  .turntable-img {
    transform: scale(1.04);
  }
}

.product-caution-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}

.caution-card-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

.caution-card-text strong {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 640px) {
  .product-caution-card {
    padding: 13px 16px;
  }
  .caution-card-text {
    font-size: 0.82rem;
    line-height: 1.45;
  }
}

.size-pill-price {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  white-space: nowrap;
}

.turntable-badge {
  position: absolute;
  top: 14px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  z-index: 4;
}

@media (max-width: 640px) {
  .turntable-badge {
    top: 8px;
    font-size: 0.68rem;
    padding: 3px 10px;
    max-width: 85%;
  }
}

.turntable-icon {
  font-size: 1rem;
  line-height: 1;
}

.turntable-loader {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5;
}

.turntable-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(245, 158, 11, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.turntable-loader-text {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.turntable-snap-bar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 10;
  max-width: 95%;
  white-space: nowrap;
}

.turntable-snap-bar .btn-snap {
  min-width: 0;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.turntable-snap-bar .btn-snap:hover {
  background: rgba(51, 65, 85, 0.95);
  color: #fff;
  border-color: var(--accent);
}

.turntable-snap-bar .btn-snap.active {
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  border-color: var(--accent);
}

.turntable-snap-bar .btn-snap.btn-exit-snap {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.turntable-snap-bar .btn-snap.btn-exit-snap:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
}

/* Thumbnail Strip */
.product-thumbs-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 4px 8px 4px;
  scrollbar-width: thin;
}

.product-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.product-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.product-thumb.thumb-360 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  gap: 4px;
}

/* Specs & Story */
.product-specs-card, .product-story-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
}

.product-short-summary {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.product-full-desc {
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.65;
  white-space: pre-line;
}

.product-bullets-wrapper {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.product-section-subtitle {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 10px;
}

.product-bullets-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-bullets-list li {
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.product-bullets-list .bullet-icon {
  color: var(--accent);
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Product QR Code Card */
.product-qr-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .product-qr-card {
    flex-direction: column-reverse;
    text-align: center;
    gap: 16px;
  }
}

.qr-card-left {
  flex: 1;
}

.qr-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.qr-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
}

.qr-card-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 14px;
}

.qr-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .qr-action-row {
    justify-content: center;
  }
}

.qr-card-right {
  flex-shrink: 0;
}

.qr-image-wrapper {
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image-wrapper img {
  width: 120px;
  height: 120px;
  display: block;
}

/* Customizer Panel Right */
.customizer-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.product-header-block {
  margin-bottom: 16px;
}

.product-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.product-category-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.product-status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.product-page-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-from-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-base-price-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

/* Dualis 2-word input layout */
.dualis-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

@media (max-width: 500px) {
  .dualis-fields-grid {
    grid-template-columns: 1fr;
  }
}

.dualis-field-col label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.dualis-symbol-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-symbol-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-symbol-pill:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}


/* 360 Preview Visual Feedback Cues */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

.dualis-360-msg.loading {
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.viewport-focus-pulse {
  animation: viewportPulse 2.5s ease-out;
}

@keyframes viewportPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.8), var(--shadow-md);
  }
  35% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.35), 0 0 25px rgba(245, 158, 11, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(245, 158, 11, 0.15), 0 0 15px rgba(245, 158, 11, 0.2);
  }
  100% {
    box-shadow: var(--shadow-md);
  }
}


/* ===================================================
   MOBILE OVERFLOW PROTECTION & RESPONSIVE POLISH
   =================================================== */

.product-page-body,
.product-page-main,
.product-page-layout,
.product-media-column,
.product-info-column,
.product-viewport-card,
.product-turntable-container,
.product-customizer-card,
.product-description-card,
.product-options-card,
.product-order-card,
.product-caution-card,
#cust-dualis-360-group {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-anchor: none !important;
}

.product-qr-card {
  width: 100%;
}

@media (max-width: 900px) {
  .product-page-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .product-media-column,
  .product-info-column {
    display: contents;
  }

  /* Strict Top-to-Bottom Mobile Flow:
     1. Images & Thumbnails
     2. Caution / Guidance Notice (directly under image carousel)
     3. Description section
     4. Customisation / Preview Box
     5. QR Code Section
     6. Persistent Bottom Action Bar
  */
  #product-viewport-card {
    order: 1;
  }
  #product-gallery-thumbs {
    order: 2;
  }
  #product-video-btn {
    order: 2;
  }
  #product-caution-card {
    order: 3;
  }
  #product-description-card {
    order: 4;
  }
  #product-customizer-card {
    order: 5;
  }
  .product-qr-card {
    order: 6;
  }
  #product-options-card {
    order: 7;
  }
  #product-order-card {
    order: 8;
  }
}

/* ===================================================
   ITEM 1: PERSISTENT BOTTOM PROCEED ACTION BAR
   =================================================== */
.pdp-sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 17, 33, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(245, 158, 11, 0.35);
  padding: 12px 24px env(safe-area-inset-bottom, 12px);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
}

.pdp-sticky-action-inner {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pdp-sticky-action-inner .btn-proceed-checkout {
  width: 100%;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.pdp-sticky-action-inner .flow-cta-hint {
  font-size: 0.82rem;
  color: #94a3b8;
  text-align: center;
  font-weight: 600;
  transition: color 0.2s ease;
  white-space: nowrap;
  width: max-content;
  max-width: 100vw;
}

@media (max-width: 640px) {
  .pdp-sticky-action-bar {
    padding: 10px 16px env(safe-area-inset-bottom, 10px);
  }
  .pdp-sticky-action-inner .btn-proceed-checkout {
    padding: 13px 20px;
    font-size: 0.96rem;
  }
  .pdp-sticky-action-inner .flow-cta-hint {
    font-size: 0.76rem;
    white-space: normal;
    width: 100%;
  }
}

.product-viewport-card,
.product-turntable-container,
.turntable-box {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}


@media (max-width: 580px) {
  .turntable-snap-bar {
    bottom: 10px;
    padding: 4px 8px;
    gap: 4px;
    max-width: 96%;
  }
  .turntable-snap-bar .btn-snap {
    padding: 5px 8px;
    font-size: 0.68rem;
  }
}

.product-thumbs-strip {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 4px 8px 4px;
}

.product-qr-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.qr-action-row {
  max-width: 100%;
  flex-wrap: wrap;
  gap: 8px;
}

.qr-action-row .btn-secondary {
  max-width: 100%;
  white-space: normal;
}

.symbol-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}

/* ===================================================
   CHECKOUT FLOW A/B/C TESTING & STYLES
   =================================================== */

/* Flow Testing Banner removed - standardized Accordion checkout active */

/* Flow CTA Groups (Flow B & Flow C) */
.flow-cta-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-proceed-checkout {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  cursor: pointer;
}

.btn-proceed-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.flow-cta-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  white-space: nowrap;
}

/* Dedicated Checkout Page Layout (Flow B) */
.checkout-main {
  padding-top: 24px;
  padding-bottom: 60px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.chk-item-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.chk-thumb-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #ffffe5;
}

.chk-item-info {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chk-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.chk-words-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  width: fit-content;
}

.chk-size-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.chk-size-badge .badge-price {
  color: var(--accent);
  font-weight: 800;
  margin-left: 4px;
}

.btn-edit-words {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 12px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  transition: all 0.2s ease;
}

.btn-edit-words:hover {
  background: rgba(245, 158, 11, 0.2);
}

.chk-palette-tier {
  margin-bottom: 24px;
}

.chk-tier-header {
  margin-bottom: 12px;
}

.chk-tier-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chk-tier-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.chk-tier-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.chk-tier-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 2px 0 0;
}

.chk-price-breakdown {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.breakdown-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4px;
}

.breakdown-total-row strong {
  color: var(--accent);
  font-size: 1.25rem;
}

.chk-no-payment-notice {
  font-size: 0.78rem;
  color: #94a3b8;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
  line-height: 1.4;
}

/* Flow C: Multi-Step Wizard Modal */
.flow-c-wizard-container {
  max-width: 620px;
  width: 95%;
}

.wizard-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.step-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-dot.active {
  color: #0f172a;
  background: var(--accent);
  border-color: var(--accent);
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.step-line.active {
  background: var(--accent);
}

.wizard-step-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wizard-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.wizard-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
}

.wizard-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.wizard-filaments-box {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Checkout Swatches & Palette Grid (Matching Homepage Studio Palette) */
#f2-filaments-container {
  display: grid;
  gap: 20px;
}

#f2-filaments-container .palette-tier-group {
  margin-bottom: 0;
}

.chk-swatch {
  display: block !important;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  text-align: left !important;
  width: auto !important;
}

.chk-swatch:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.chk-swatch.active {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3) !important;
}

.chk-swatch .filament-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chk-swatch .filament-swatch-circle,
.chk-swatch .swatch-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chk-swatch.active .filament-swatch-circle,
.chk-swatch.active .swatch-circle {
  border-color: #ffffff;
}

.chk-swatch .filament-card-info,
.chk-swatch .swatch-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chk-swatch .filament-card-name,
.chk-swatch .swatch-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
  margin: 0 0 4px 0;
  max-width: 100% !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.chk-swatch .filament-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chk-swatch .filament-pill-mat {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* ==========================================================================
   Modern Checkout Form Sections & Controls (Card 2)
   ========================================================================== */
.chk-form-section {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.chk-form-section:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.65);
}

.chk-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chk-section-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.chk-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.chk-section-badge {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  margin-left: auto;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .form-grid-2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
}

.req-star {
  color: var(--accent, #f59e0b);
  font-weight: 900;
  font-size: 0.9rem;
}

.form-help {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.35;
}

/* Modern Input Controls with SVG Icons */
.input-with-icon {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.input-with-icon .field-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 2;
}

.input-with-icon .form-control {
  padding-left: 42px !important;
}

.input-with-icon:focus-within .field-icon {
  color: var(--accent, #f59e0b);
}

.form-control {
  width: 100%;
  background: #090e1a !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  color: #f8fafc !important;
  font-size: 0.9rem !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.form-control::placeholder {
  color: #475569 !important;
  font-weight: 400 !important;
}

.form-control:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.form-control:focus {
  background: #0d1527 !important;
  border-color: var(--accent, #f59e0b) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18), inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.45;
}

/* Modernized Delivery Radio Cards */
.delivery-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .delivery-radio-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.delivery-radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.delivery-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.delivery-radio-card:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.delivery-radio-custom-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.04);
}

.delivery-radio-custom-indicator .radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s ease;
}

/* Checked state for Studio Collection */
.delivery-radio-card.collection-card.selected,
.delivery-radio-card.collection-card:has(input:checked) {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.18) !important;
}

.delivery-radio-card.collection-card.selected .delivery-radio-custom-indicator,
.delivery-radio-card.collection-card:has(input:checked) .delivery-radio-custom-indicator {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.2) !important;
}

.delivery-radio-card.collection-card.selected .radio-dot,
.delivery-radio-card.collection-card:has(input:checked) .radio-dot {
  background: #10b981 !important;
}

/* Checked state for UK Tracked Delivery */
.delivery-radio-card.delivery-card.selected,
.delivery-radio-card.delivery-card:has(input:checked) {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: var(--accent, #f59e0b) !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.18) !important;
}

.delivery-radio-card.delivery-card.selected .delivery-radio-custom-indicator,
.delivery-radio-card.delivery-card:has(input:checked) .delivery-radio-custom-indicator {
  border-color: var(--accent, #f59e0b) !important;
  background: rgba(245, 158, 11, 0.2) !important;
}

.delivery-radio-card.delivery-card.selected .radio-dot,
.delivery-radio-card.delivery-card:has(input:checked) .radio-dot {
  background: var(--accent, #f59e0b) !important;
}

.delivery-radio-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.delivery-radio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.delivery-radio-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.delivery-radio-desc {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.35;
}

.delivery-fee-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.delivery-fee-badge.free-badge {
  color: #34d399;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.delivery-fee-badge.tracked-badge {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Address Lookup & Suggestions Dropdown */
.address-lookup-wrapper {
  position: relative;
  width: 100%;
}

.address-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0d1527;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
  max-height: 240px;
  overflow-y: auto;
  z-index: 120;
}

.address-suggestion-item {
  padding: 11px 15px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.address-suggestion-item:last-child {
  border-bottom: none;
}

.address-suggestion-item:hover,
.address-suggestion-item.active {
  background: rgba(245, 158, 11, 0.18);
}

.address-suggestion-main {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
}

.address-suggestion-sub {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.3;
}

.address-suggestion-loading,
.address-suggestion-empty {
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 640px) {
  .address-grid-row {
    grid-template-columns: 1fr !important;
  }
}

/* Disabled primary button style matching PDP */
.btn-primary:disabled,
button.btn-primary:disabled,
.btn-proceed-checkout:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.5) !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Responsive Checkout */
@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


.chk-summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}

.chk-summary-strip-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chk-strip-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chk-strip-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px 0;
}

.chk-strip-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chk-selected-chip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 4px;
}

.chip-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chip-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.chip-val-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.btn-step-next, .btn-submit-request {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

/* ===================================================
   FLOW 2: ACCORDION FULL-PAGE CHECKOUT
   =================================================== */
.checkout-accordion-view {
  max-width: 820px;
  margin: 0 auto;
}

.checkout-accordion-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.checkout-accordion-card.open {
  border-color: rgba(245, 158, 11, 0.4);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.accordion-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.checkout-accordion-card.open .accordion-step-num {
  background: var(--accent);
  color: #0f172a;
}

.accordion-step-num.completed {
  background: #10b981 !important;
  color: #fff !important;
}

.accordion-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.accordion-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.accordion-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 3px 10px;
  border-radius: 9999px;
}

.btn-acc-toggle {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.checkout-accordion-card.open .btn-acc-toggle svg {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 22px;
  border-top: 1px solid var(--border-color);
}

.accordion-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 640px) {
  .chk-summary-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ====================================================================
   LOCALIS - 3D Map Studio Customizer Styles
   ==================================================================== */
.localis-studio-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.localis-search-row {
  display: flex;
  gap: 8px;
}

.localis-map-wrapper {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  contain: paint;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  background: #090d16;
  z-index: 1;
}

.localis-map-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  border: 2px dashed #38bdf8;
  border-radius: 6px;
  box-shadow: 0 0 0 9999px rgba(11, 15, 25, 0.45);
  pointer-events: none;
  z-index: 400;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 6px;
}

.reticle-top-badge, .reticle-bottom-badge {
  background: rgba(15, 23, 42, 0.9);
  color: #38bdf8;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  text-align: center;
}

.reticle-center-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
  animation: pulseReticlePin 2s infinite ease-in-out;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75));
}

.pin-svg-3d {
  display: block;
  width: 18px;
  height: 18px;
  overflow: visible;
}

@keyframes pulseReticlePin {
  0%, 100% { transform: scale(1) translateZ(0); }
  50% { transform: scale(1.18) translateZ(0); }
}

.localis-zoom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.localis-marker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.marker-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.marker-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.marker-pill-btn.active {
  background: rgba(220, 38, 38, 0.16);
  border-color: #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.25);
}

.marker-pill-btn .marker-icon {
  font-size: 1.1rem;
}

.localis-stand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stand-pill-card {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stand-pill-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.stand-pill-card.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--accent);
}

.stand-pill-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.stand-pill-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stand-pill-card.active .stand-pill-title {
  color: var(--accent);
}

/* Interactive Localis Live Frame Viewport */
.product-localis-preview-container {
  background: 
    linear-gradient(180deg, transparent 0%, transparent 68%, rgba(22, 15, 10, 0.9) 68%, #1c130d 100%),
    radial-gradient(circle at 50% 32%, #2c3a4e 0%, #17202c 55%, #0b0f17 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.85);
}

.localis-stage-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
}

.localis-stage-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.localis-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
}

.localis-live-indicator .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.viewport-frame-color-tag {
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 600;
}

.localis-stage-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0 16px;
}

.localis-3d-frame-outer {
  position: relative;
  width: 290px;
  height: 290px;
  background-color: #4b5563;
  background-image: 
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 4px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.22) 100%);
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-bottom: 3px solid rgba(0, 0, 0, 0.45);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.85), inset 0 2px 3px rgba(255, 255, 255, 0.22), inset 0 -4px 8px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  box-sizing: border-box;
  z-index: 2;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.localis-frame-inscription {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  color: #e2e8f0;
  letter-spacing: 1.5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  min-height: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 -1px 0 rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
}

.localis-frame-inscription.light-frame-text {
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 -1px 1px rgba(0, 0, 0, 0.2);
}

.localis-frame-window-box {
  position: relative;
  width: 220px;
  height: 220px;
  background: #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.localis-frame-window-box::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 3px);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.25);
  z-index: 450;
}

.localis-viewport-leaf-map {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.localis-viewport-leaf-map .leaflet-tile-pane,
#localis-inline-leaf-map .leaflet-tile-pane {
  filter: grayscale(100%) contrast(180%) brightness(102%);
}

.localis-viewport-center-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.85));
  transition: transform 0.2s ease;
}

/* Desk Cradle Stand Mockup underneath frame */
.localis-desk-cradle-mockup {
  position: absolute;
  bottom: -6px;
  width: 250px;
  height: 22px;
  background: linear-gradient(180deg, #2b3442 0%, #111827 45%, #030712 100%);
  border-radius: 2px 2px 6px 6px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.95), 0 4px 10px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 2px solid #000000;
  z-index: 1;
}

.localis-stage-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  z-index: 10;
}

.btn-return-photos {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-return-photos:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}


@media (max-width: 640px) {
  .localis-stand-grid {
    grid-template-columns: 1fr;
  }
  .localis-marker-grid {
    grid-template-columns: 1fr;
  }
  .localis-3d-frame-outer {
    width: 260px;
    height: 260px;
  }
  .localis-frame-window-box {
    width: 195px;
    height: 195px;
  }
}




/* ==========================================================================
   Checkout Color Selection Alert & Success Modal Modernization
   ========================================================================== */
.f2-alert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 500;
  animation: f2Shake 0.4s ease-in-out;
}

@keyframes f2Shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.modal-success-box {
  background: linear-gradient(180deg, #161f30 0%, #0d131f 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 20px;
  padding: 36px 28px 30px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(245, 158, 11, 0.12);
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 60;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.success-icon-wrap {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.success-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.success-text {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 22px;
}

.success-ref-card {
  background: rgba(8, 14, 26, 0.7);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  padding: 16px 20px 18px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.success-ref-card .ref-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  font-weight: 700;
}

.success-ref-card .ref-code-val {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fbbf24;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  line-height: 1.2;
}

.btn-copy-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 18px;
  margin-top: 4px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 9999px;
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  font-family: inherit;
}

.btn-copy-ref:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.65);
  color: #fef3c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-copy-ref:active {
  transform: translateY(0);
}

.btn-copy-ref.copied {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.55) !important;
  color: #34d399 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3) !important;
}

.btn-copy-ref svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}


/* ==========================================================================
   Future Products Card Styling
   ========================================================================== */
.future-media-placeholder {
  background: radial-gradient(circle at 50% 40%, rgba(30, 41, 59, 0.9), #080d18) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.future-blueprint-bg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #64748b;
  opacity: 0.85;
  transition: transform 0.3s ease, color 0.3s ease;
}

.lookbook-card-future:hover .future-blueprint-bg {
  transform: scale(1.08);
  color: #f59e0b;
}

.future-watermark {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
}

.badge-future {
  background: rgba(59, 130, 246, 0.18) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
}

.btn-future-inquiry {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #cbd5e1 !important;
}

.btn-future-inquiry:hover {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #fbbf24 !important;
}

/* Bespoke 3D Upload & Interest Modal Modern Styles */
.bespoke-upload-dropzone:hover {
  border-color: rgba(245, 158, 11, 0.6) !important;
  background: rgba(245, 158, 11, 0.05) !important;
}
.bespoke-card-future-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ==========================================================================
   Mobile Browser View Optimizations (@media max-width: 768px)
   Strictly scoped to mobile; does NOT alter or regress desktop layout (>= 769px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Item 1: Eliminate wasted whitespace around footer on pages without bottom sticky bar */
  body:not(.product-page-body) {
    padding-bottom: 24px !important;
  }
  .bespoke-commission-section {
    margin: 32px 0 20px 0 !important;
  }
  footer {
    margin-top: 20px !important;
    padding: 24px 0 24px 0 !important;
  }

  /* Item 2: Eliminate wasted horizontal padding in PDP description / story card */
  .product-description-card {
    padding: 16px 12px !important;
  }
  .product-story-card {
    padding: 12px 10px !important;
  }

  /* Item 3: Customiser header badge & symbol pad wrapping */
  #product-customizer-card .card-section-header,
  .card-section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .symbol-pills-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 4px !important;
    width: 100% !important;
  }
  .btn-symbol-insert {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 32px !important;
    height: 30px !important;
    padding: 0 !important;
  }

  /* Item 5: Card 3 review breakdown vertical word splitting */
  #f2-acc-body-3 .breakdown-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
    padding: 9px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  #f2-acc-body-3 .breakdown-row > span:first-child {
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #94a3b8 !important;
  }
  #f2-acc-body-3 .breakdown-row > strong,
  #f2-acc-body-3 .breakdown-row > span:last-child {
    font-size: 0.92rem !important;
    color: #f8fafc !important;
    text-align: left !important;
    width: 100% !important;
    word-break: break-word !important;
  }
  #f2-acc-body-3 .breakdown-total-row {
    margin-top: 10px !important;
    padding-top: 12px !important;
  }

  /* Item 6: Card 2 navigation buttons on mobile */
  #f2-acc-body-2 .accordion-actions,
  #f2-acc-body-3 .accordion-actions {
    flex-direction: column-reverse !important;
    gap: 10px !important;
    width: 100% !important;
  }
  #f2-acc-body-2 .accordion-actions .btn-primary,
  #f2-acc-body-2 .accordion-actions .btn-secondary,
  #f2-acc-body-3 .accordion-actions .btn-primary,
  #f2-acc-body-3 .accordion-actions .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
  #f2-acc-body-2 .accordion-actions .btn-primary,
  #f2-acc-body-3 .accordion-actions .btn-primary {
    padding: 13px 18px !important;
    font-size: 0.95rem !important;
  }
  #f2-acc-body-2 .accordion-actions .btn-secondary,
  #f2-acc-body-3 .accordion-actions .btn-secondary {
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    opacity: 0.85 !important;
  }

  /* Item 7: Header Action Icons Sizing */
  .nav-actions {
    gap: 6px !important;
  }
  .nav-actions .btn-secondary,
  .nav-actions button,
  .nav-actions a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .nav-actions .btn-secondary svg,
  .nav-actions button svg,
  .nav-actions a svg {
    flex-shrink: 0 !important;
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    display: inline-block !important;
  }
}
