/* ==================================================
   Apex3D / Shaw Prints — Clean Light Thangs-Style Design
   Inspired by Thangs.com: Crisp Light Canvas & Premium Tiles
================================================== */

:root {
  /* Core Colors */
  --bg-color: #f8fafc;
  --bg-darker: #f1f5f9;
  --bg-subtle: #f8fafc;
  --surface-color: #ffffff;
  --surface-border: #e2e8f0;
  --surface-border-hover: #cbd5e1;
  
  --border-radius-xs: 6px;
  --border-radius-sm: 10px;
  --border-radius-md: 14px;
  --border-radius-lg: 18px;
  --border-radius-full: 9999px;
  
  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-dark: #020617;

  /* Accent & Action Colors */
  --primary-color: #0f172a;
  --primary-hover: #1e293b;
  --accent-color: #0284c7;
  --accent-hover: #0369a1;
  --accent-glow: rgba(2, 132, 199, 0.15);
  --accent-subtle: #f0f9ff;
  --accent-border: #bae6fd;
  
  --primary-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --brand-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --badge-bg: #e2e8f0;
  --badge-text: #334155;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 30px -6px rgba(15, 23, 42, 0.12), 0 8px 12px -4px rgba(15, 23, 42, 0.06);

  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --------------------------------------------------
   Reset & Base Styles
--------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* --------------------------------------------------
   Reusable Utilities
--------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-small {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------
   Buttons
--------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--surface-border-hover);
  transform: translateY(-1px);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* --------------------------------------------------
   Navigation Bar (Thangs Clean White Header)
--------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-border);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  background: transparent;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border-radius: var(--border-radius-sm);
  color: #fff;
}

.brand-logo > .material-symbols-outlined {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--primary-color);
  border-radius: var(--border-radius-sm);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.brand-logo:has(img),
.brand-logo:has(.brand-logo-img) {
  width: auto;
  height: auto;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.brand-name span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition-smooth);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.cart-btn:hover {
  background: #f8fafc;
  border-color: var(--surface-border-hover);
  transform: translateY(-1px);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
}

/* --------------------------------------------------
   Hero Section (Airy, Light & Subtle Geometric Mesh)
--------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 130px 0 70px;
  background: radial-gradient(circle at 50% 0%, #e0f2fe 0%, #f8fafc 65%);
  border-bottom: 1px solid var(--surface-border);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -15%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: #38bdf8;
  filter: blur(160px);
  opacity: 0.12;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content .hero-badge {
  margin-bottom: 18px;
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 14px;
}

.hero-preview {
  display: flex;
  justify-content: center;
  position: relative;
}

.preview-card-wrap {
  position: relative;
  padding: 6px;
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--surface-border);
}

.preview-card {
  overflow: hidden;
  border-radius: calc(var(--border-radius-lg) - 4px);
  background: var(--bg-darker);
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  position: relative;
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.preview-card:hover img {
  transform: scale(1.04);
}

.preview-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 30%, rgba(15, 23, 42, 0));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-card-info .tag {
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-card-info h3 {
  font-size: 1.18rem;
  color: #ffffff;
}

.preview-card-info p {
  color: #cbd5e1;
  font-size: 0.85rem;
}

/* --------------------------------------------------
   Catalog Toolbar (Thangs-Style Category Pills & Search)
--------------------------------------------------- */
.catalog-section {
  padding: 60px 0 100px;
  background: var(--bg-color);
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 580px;
  margin: 0 auto;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cat-pill {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.cat-pill:hover {
  background: #f1f5f9;
  color: var(--text-primary);
  border-color: var(--surface-border-hover);
}

.cat-pill.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.catalog-search-wrap {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 260px;
}

.catalog-search-wrap .search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 20px;
  pointer-events: none;
}

.catalog-search-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-full);
  padding: 8px 16px 8px 40px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.catalog-search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* --------------------------------------------------
   Product Card Tiles (Thangs-Style 3D Model Cards)
--------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 36px;
}

.product-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--surface-border-hover);
  box-shadow: var(--shadow-hover);
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--surface-border);
}

.product-img-wrap img,
.product-img-wrap .product-img-default {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-pos, var(--media-pos, 50% 20%));
  display: block;
  transition: transform var(--transition-smooth), opacity 0.3s ease;
}

.product-img-wrap .product-hover-video,
.product-img-wrap .product-hover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--video-pos, var(--media-pos, 50% 20%));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform var(--transition-smooth);
  z-index: 2;
}

.product-img-wrap.video-only .product-hover-video,
.product-img-wrap:not(:has(.product-img-default)) .product-hover-video,
.product-img-wrap:not(:has(img:not(.product-hover-img))) .product-hover-video {
  opacity: 1;
  z-index: 1;
}

.product-card:hover .product-img-wrap img,
.product-card:hover .product-img-wrap .product-img-default,
.preview-card:hover .product-img-wrap img,
.preview-card:hover .product-img-wrap .product-img-default,
.hero-preview:hover .product-img-wrap img,
.hero-preview:hover .product-img-wrap .product-img-default {
  transform: scale(1.04);
}

.product-card:hover .product-hover-video,
.product-card:hover .product-hover-img,
.preview-card:hover .product-hover-video,
.preview-card:hover .product-hover-img,
.hero-preview:hover .product-hover-video,
.hero-preview:hover .product-hover-img {
  opacity: 1;
  transform: scale(1.04);
}

.media-indicator-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 5;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--border-radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.media-indicator-badge .material-symbols-outlined {
  font-size: 14px;
  color: #38bdf8;
}

.product-card:hover .media-indicator-badge,
.preview-card:hover .media-indicator-badge {
  opacity: 0.3;
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: var(--border-radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
  z-index: 4;
}

.product-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.product-details h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.customizer-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

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

.option-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 700;
}

/* Color Option Header & In-Stock vs Custom Toggle */
.option-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.color-mode-toggle {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--border-radius-full);
  padding: 2px;
  gap: 2px;
  border: 1px solid #e2e8f0;
}

.color-mode-btn {
  background: none;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  padding: 3px 8px;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.color-mode-btn:hover {
  color: var(--text-primary);
}

.color-mode-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.color-mode-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-color-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-color-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-xs);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-smooth);
}

.custom-color-input:focus {
  background: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.custom-color-hint {
  font-size: 0.72rem;
  color: #0284c7;
  font-weight: 600;
}

.selected-val-label {
  font-size: 0.82rem;
  color: #334155;
  font-weight: 600;
}

.color-picker {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Pick 4 Bundle Styles */
.bundle-selection-group {
  margin-bottom: 12px;
}

.bundle-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: block;
}

.bundle-slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.bundle-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-secondary, #f8fafc);
  border: 1px solid var(--surface-border, #e2e8f0);
  border-radius: var(--border-radius-xs, 6px);
  padding: 4px 8px;
  transition: var(--transition-fast, all 0.2s ease);
}

.bundle-slot:hover,
.bundle-slot:focus-within {
  border-color: var(--accent-color, #0284c7);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}

.slot-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-color, #0284c7);
  background: #e0f2fe;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bundle-toy-select {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
  outline: none;
  cursor: pointer;
  padding: 2px 0;
  width: 100%;
}

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ffffff;
  outline: 1px solid #cbd5e1;
  transition: var(--transition-smooth);
}

.color-dot:hover {
  transform: scale(1.15);
  outline-color: var(--text-primary);
}

.color-dot.active {
  transform: scale(1.18);
  outline: 2px solid var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.size-selector {
  display: flex;
  gap: 8px;
}

.size-chip {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  padding: 7px 10px;
  border-radius: var(--border-radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.size-chip:hover {
  background: #f1f5f9;
  color: var(--text-primary);
  border-color: var(--surface-border-hover);
}

.size-chip.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}

.product-price {
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
}

.price-symbol {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.price-val {
  font-size: 1.55rem;
  color: var(--text-primary);
}

.add-to-cart-btn {
  background: var(--primary-color);
  color: #ffffff;
  border-radius: var(--border-radius-sm);
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
  transition: var(--transition-smooth);
}

.add-to-cart-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.25);
}

/* --------------------------------------------------
   Features / Process Section
--------------------------------------------------- */
.features-section {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-item {
  background: #f8fafc;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-md);
  padding: 32px;
  text-align: center;
  transition: var(--transition-smooth);
}

.feature-item:hover {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  border-color: var(--surface-border-hover);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: #e0f2fe;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}

.feature-item h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* --------------------------------------------------
   Cart Drawer (Clean Slide-Over)
--------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #ffffff;
  z-index: 1001;
  transform: translateX(100%);
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--surface-border);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.12);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1.2rem;
}

.close-drawer-btn {
  background: #f1f5f9;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  padding: 6px;
  border-radius: var(--border-radius-xs);
  transition: var(--transition-smooth);
}

.close-drawer-btn:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.empty-cart-message {
  text-align: center;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.empty-cart-message span {
  font-size: 3.5rem;
  color: var(--text-muted);
}

.empty-cart-message p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--border-radius-xs);
  overflow: hidden;
  background: var(--bg-darker);
  border: 1px solid var(--surface-border);
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-details h4 {
  font-size: 0.92rem;
  font-weight: 600;
  padding-right: 22px;
}

.cart-item-spec {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.cart-item-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  margin-top: 4px;
}

.remove-item-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  transition: var(--transition-smooth);
}

.remove-item-btn:hover {
  color: #ef4444;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--surface-border);
  background: #f8fafc;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.cart-subtotal .subtotal-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 800;
}

.shipping-info {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* --------------------------------------------------
   Checkout Modal
--------------------------------------------------- */
.checkout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  padding: 20px;
}

.checkout-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.checkout-modal {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.checkout-modal .close-modal-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  background: #f1f5f9;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 10;
}

.checkout-modal .close-modal-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.checkout-modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--surface-border);
}

.checkout-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.checkout-header-badge .material-symbols-outlined {
  font-size: 15px;
}

.checkout-modal-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.checkout-modal-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 24px 28px;
  align-items: start;
}

@media (max-width: 680px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px 20px;
  }
}

.checkout-summary-section {
  background: #f8fafc;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-md);
  padding: 18px;
}

.checkout-summary-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
}

.summary-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-item-name {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text-primary);
  display: block;
}

.summary-item-spec {
  font-size: 0.75rem;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

.summary-item-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.summary-totals {
  border-top: 1px solid var(--surface-border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.summary-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  border-top: 1px solid var(--surface-border);
  padding-top: 10px;
  margin-top: 4px;
}

.summary-total-amount {
  color: #0284c7;
}

.free-shipping-tag {
  color: #16a34a;
  font-weight: 700;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
.fulfillment-selector-group {
  margin-bottom: 16px;
}

.fulfillment-group-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
}

.fulfillment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fulfillment-card {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--surface-border);
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #ffffff;
}

.fulfillment-card input[type="radio"] {
  display: none;
}

.fulfillment-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.fulfillment-card.active {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.fulfillment-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fulfillment-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fulfillment-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text-primary);
}

.fulfillment-name .material-symbols-outlined {
  font-size: 17px;
  color: #0284c7;
}

.fulfillment-cost {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text-primary);
}

.fulfillment-cost.free {
  color: #16a34a;
  font-weight: 800;
  background: #dcfce7;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.72rem;
}

.fulfillment-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-left: 23px;
}

.highlight-free {
  color: #0284c7;
}

.checkout-features-callout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.callout-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #166534;
}

.callout-item .material-symbols-outlined {
  font-size: 16px;
  color: #16a34a;
}

.label-optional {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 400;
}

.checkout-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  background: #ffffff;
  color: var(--text-primary);
  outline: none;
  transition: all 0.15s ease;
  font-family: inherit;
  margin-top: 6px;
}

.checkout-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.checkout-pay-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--border-radius-sm);
  margin-top: 12px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.checkout-pay-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.checkout-guarantee-note {
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

/* --------------------------------------------------
   Footer
--------------------------------------------------- */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--surface-border);
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* --------------------------------------------------
   Toast Notification
--------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-bounce);
}

.toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------
   Visual Editor Toolbar & Modals (Clean Thangs Theme)
--------------------------------------------------- */
.visual-editor-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid #cbd5e1;
  padding: 6px 10px;
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-lg);
}

.editor-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.editor-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.editor-btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.editor-btn-primary:hover {
  background: var(--primary-hover);
}

.editor-btn-active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.editor-btn-success {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.editor-btn-success:hover {
  background: #059669;
}

.editor-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  display: none !important;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 20px;
}

.editor-modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.editor-modal-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 18px;
}

.editor-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--surface-border);
}

.editor-modal-header h3 {
  font-size: 1.25rem;
}

.editor-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-border);
}

.editor-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.editor-media-panel {
  background: #f8fafc;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editor-panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.editor-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--border-radius-sm);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
  transition: var(--transition-smooth);
}

.editor-dropzone:hover, .editor-dropzone.dragover {
  border-color: var(--accent-color);
  background: var(--accent-subtle);
}

.editor-dropzone-icon {
  font-size: 26px;
  color: var(--accent-color);
}

.editor-dropzone-text {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 4px;
}

.editor-dropzone-text strong {
  color: var(--text-primary);
}

.editor-file-input {
  display: none;
}

.editor-input-group label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
  display: block;
}

.editor-text-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-xs);
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--text-primary);
  outline: none;
}

.editor-text-input:focus {
  border-color: var(--accent-color);
}

.editor-library-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.editor-library-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 80px;
  overflow-y: auto;
}

.editor-lib-chip {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  padding: 3px 8px;
  border-radius: var(--border-radius-xs);
  font-size: 0.72rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.editor-lib-chip:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.editor-test-box-wrap {
  background: #f8fafc;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editor-test-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editor-test-box-title {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.editor-test-preview-container {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-md);
}

.editor-test-preview-container .test-img,
.editor-test-preview-container .test-hover-img,
.editor-test-preview-container .test-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-mode-tabs {
  display: flex;
  gap: 6px;
}

.preview-tab-btn {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--border-radius-xs);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.preview-tab-btn.active.photo {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
}

.preview-tab-btn.active.video {
  background: #fdf2f8;
  border-color: #db2777;
  color: #db2777;
}

/* Mini Focal Controls inside Panels */
.media-sub-focal {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.framing-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.framing-preset-btn {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.framing-preset-btn:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.framing-preset-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.framing-preset-btn.pink.active {
  background: #db2777;
  border-color: #db2777;
  color: #ffffff;
}

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

.editor-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0284c7;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(2, 132, 199, 0.5);
}

.editor-slider.pink::-webkit-slider-thumb {
  background: #db2777;
  box-shadow: 0 0 4px rgba(219, 39, 119, 0.5);
}

/* Edit Mode Overlay Badges on Cards */
.img-edit-badge, .color-edit-badge, .card-delete-badge {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--border-radius-xs);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.img-edit-badge {
  bottom: 12px;
  left: 12px;
  background: #0284c7;
  color: #ffffff;
}

.img-edit-badge:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.color-edit-badge {
  background: #f8fafc;
  color: var(--text-primary);
  border-color: #cbd5e1;
  padding: 2px 8px;
  font-size: 0.7rem;
}

.color-edit-badge:hover {
  background: #f1f5f9;
  border-color: var(--text-primary);
}

.card-delete-badge {
  top: 12px;
  right: 12px;
  background: #ef4444;
  color: #ffffff;
  padding: 4px 8px;
}

.card-delete-badge:hover {
  background: #dc2626;
}

.card-focal-nudge-bar {
  position: absolute;
  top: 12px;
  right: 48px;
  z-index: 10;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: var(--border-radius-xs);
  box-shadow: var(--shadow-sm);
}

.card-focal-nudge-btn {
  background: none;
  border: none;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 3px;
}

.card-focal-nudge-btn:hover {
  background: #f1f5f9;
  color: #0284c7;
}

.editable-element {
  outline: 1.5px dashed rgba(2, 132, 199, 0.45);
  outline-offset: 3px;
  cursor: text !important;
  transition: outline-color 0.2s ease, background-color 0.2s ease;
  border-radius: 2px;
}

.editable-element:hover {
  outline: 1.5px dashed #0284c7;
  background-color: rgba(2, 132, 199, 0.04);
}

.editable-element:focus {
  outline: 2px solid #0284c7;
  outline-offset: 3px;
  background-color: rgba(2, 132, 199, 0.08);
}

/* Color Manager Modal */
.color-presets-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.color-preset-btn {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius-xs);
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.color-preset-btn:hover {
  transform: scale(1.05);
}

.editor-current-colors-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* --------------------------------------------------
   Responsive Breakpoints
--------------------------------------------------- */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   Logo & Text Box Management Styles (In-Browser Editor)
=================================================== */

/* Text Deletion Badges */
.editable-element {
  position: relative;
}

.text-delete-badge {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 105;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
  padding: 0;
}

.text-delete-badge .material-symbols-outlined {
  font-size: 13px;
  line-height: 1;
}

.text-delete-badge:hover {
  background: #b91c1c;
  transform: scale(1.2);
}

.editable-element:hover > .text-delete-badge,
.editable-element:focus-within > .text-delete-badge,
.editable-element.is-focused > .text-delete-badge {
  display: flex;
}

/* Custom Logo Containers & Images */
.custom-logo-wrap {
  position: relative;
  display: flex;
  margin: 12px 0;
  max-width: 100%;
  transition: transform 0.2s ease;
}

.custom-logo-wrap.align-left {
  justify-content: flex-start;
  text-align: left;
}

.custom-logo-wrap.align-center {
  justify-content: center;
  text-align: center;
}

.custom-logo-wrap.align-right {
  justify-content: flex-end;
  text-align: right;
}

.custom-logo-wrap.align-inline {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 10px;
}

.custom-logo-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  border-radius: var(--border-radius-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo-img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  vertical-align: middle;
  background: transparent !important;
  border-radius: 4px;
}

/* Logo Floating Action Bar (In Edit Mode) */
.logo-action-bar {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 4px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 3px 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  z-index: 120;
  white-space: nowrap;
}

.custom-logo-wrap:hover .logo-action-bar,
.custom-logo-wrap:focus-within .logo-action-bar,
.custom-logo-wrap.is-active .logo-action-bar {
  display: flex;
}

.logo-action-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: background 0.15s ease, color 0.15s ease;
}

.logo-action-btn:hover {
  background: #0284c7;
  color: #ffffff;
}

.logo-action-btn.btn-danger:hover {
  background: #ef4444;
}

.logo-action-btn .material-symbols-outlined {
  font-size: 13px;
}

/* Brand Logo Edit Badge */
.brand-logo-edit-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 3px;
  z-index: 130;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.brand:hover .brand-logo-edit-badge,
.brand:focus-within .brand-logo-edit-badge {
  display: inline-flex;
}

/* Placement Highlighter (Click-To-Place Mode) */
body.click-place-active {
  cursor: crosshair !important;
}

body.click-place-active * {
  cursor: crosshair !important;
}

.editor-placement-highlight {
  outline: 2.5px dashed #0284c7 !important;
  outline-offset: 4px !important;
  background-color: rgba(2, 132, 199, 0.08) !important;
  transition: background-color 0.15s ease;
}

/* Custom Text Callout Box */
.custom-callout-box {
  background: rgba(2, 132, 199, 0.06);
  border-left: 4px solid var(--accent-color);
  border-radius: var(--border-radius-xs);
  padding: 14px 18px;
  margin: 16px 0;
}

/* Placement Selector Grid in Modals */
.placement-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.placement-card-btn {
  background: #f8fafc;
  border: 1.5px solid var(--surface-border);
  border-radius: var(--border-radius-xs);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.placement-card-btn .material-symbols-outlined {
  font-size: 22px;
  color: #64748b;
}

.placement-card-btn:hover {
  border-color: var(--accent-color);
  background: var(--accent-subtle);
}

.placement-card-btn.active {
  border-color: var(--accent-color);
  background: var(--accent-subtle);
  color: var(--accent-color);
}

.placement-card-btn.active .material-symbols-outlined {
  color: var(--accent-color);
}

/* Size Preset Pills */
.size-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.size-preset-pill {
  background: #f1f5f9;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: #475569;
  transition: all 0.15s ease;
}

.size-preset-pill:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.size-preset-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.editor-preview-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  background: #f8fafc;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  overflow: hidden;
  transition: background 0.2s ease;
}

.editor-preview-frame.dark-bg {
  background: #0f172a;
}

/* ==================================================
   Live 3D Print Workshop Camera & Telemetry System
================================================== */
.live-cam-section {
  padding: 24px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  border-radius: var(--border-radius-full);
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.12);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: livePulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    transform: scale(0.95);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    transform: scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    transform: scale(0.95);
  }
}

.nav-live-badge-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: #dc2626 !important;
  font-weight: 700 !important;
}

.nav-live-badge-link:hover {
  color: #b91c1c !important;
}

.nav-live-pulse {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: livePulse 1.8s infinite;
}

.live-cam-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 12px;
}

.live-cam-player-card {
  width: 100%;
  max-width: 100%;
  background: #0b0f19;
  border: 1px solid #1e293b;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.live-cam-video-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 11;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.live-cam-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.live-cam-video-wrap:fullscreen,
.live-cam-video-wrap:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  aspect-ratio: auto !important;
  background: #000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.live-cam-video-wrap:fullscreen .live-cam-img,
.live-cam-video-wrap:-webkit-full-screen .live-cam-img {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain !important;
}

.live-cam-overlay-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
  z-index: 10;
}

.live-cam-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  pointer-events: auto;
  white-space: nowrap;
}

.live-cam-quick-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
}

.live-action-btn {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.live-action-btn:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  transform: scale(1.05);
}

.live-action-btn .material-symbols-outlined {
  font-size: 14px;
}

.live-cam-overlay-bottom {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
  z-index: 10;
}

.live-job-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  pointer-events: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.live-stream-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px;
  border-radius: 20px;
  pointer-events: auto;
}

.stream-mode-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.stream-mode-btn.active {
  background: #0284c7;
  color: #ffffff;
}

.stream-mode-btn:hover:not(.active) {
  color: #f1f5f9;
}

/* Telemetry Dashboard Panel */
.live-cam-telemetry-panel {
  padding: 10px 14px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.telemetry-progress-row {
  margin-bottom: 8px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.progress-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
}

.progress-val {
  color: #38bdf8;
  font-family: monospace;
  font-size: 0.78rem;
}

.telemetry-progress-bar-bg {
  width: 100%;
  height: 5px;
  background: #1e293b;
  border-radius: 3px;
  overflow: hidden;
}

.telemetry-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #818cf8);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.telemetry-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 540px) {
  .telemetry-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

.telemetry-stat-card {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--border-radius-sm);
  padding: 5px 8px;
  min-width: 0;
  box-sizing: border-box;
}

.stat-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nozzle-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.bed-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.time-icon {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.spool-icon {
  width: 24px;
  height: 24px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.stat-icon .material-symbols-outlined {
  font-size: 13px;
}

.stat-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.stat-label {
  font-size: 0.6rem;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Floating Mini Player Widget (PiP) */
.floating-cam-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 300px;
  background: #0b0f19;
  border: 1px solid #334155;
  border-radius: var(--border-radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  z-index: 990;
  overflow: hidden;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.floating-cam-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}

.floating-cam-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f8fafc;
}

.floating-cam-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.floating-cam-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cam-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.floating-cam-btn .material-symbols-outlined {
  font-size: 15px;
}

.floating-cam-body {
  position: relative;
  background: #020617;
}

.floating-cam-stream {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  display: block;
  background: #020617;
}

.floating-cam-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #f1f5f9;
}

/* Direct Color Dot Editor Badges */
.color-dot {
  position: relative !important;
}

.dot-delete-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 14px;
  height: 14px;
  background: #ef4444;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: all 0.15s ease;
  z-index: 10;
  user-select: none;
}

.dot-delete-btn:hover {
  background: #dc2626;
  transform: scale(1.25);
}

.add-color-dot-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px dashed #0284c7;
  background: #f0f9ff;
  color: #0284c7;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  font-size: 14px;
  font-weight: 800;
  margin-left: 6px;
  transition: all 0.15s ease;
  vertical-align: middle;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 50 !important;
}

.add-color-dot-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-style: solid;
  transform: scale(1.15);
}

.color-edit-badge {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  pointer-events: auto !important;
  z-index: 50 !important;
}

.color-edit-badge:hover {
  background: #0284c7;
  color: #ffffff;
}



