/* ==========================================================================
   Custom Apparel & Embroidery Studio - Studio Workspace & Canvas CSS
   ========================================================================== */

/* Center Stage Viewport */
.studio-stage {
  position: relative;
  background: var(--bg-canvas-stage);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

body.light-theme .studio-stage {
  background: var(--bg-canvas-light);
}

/* Stage Floating Top Bar (Zoom, Center, Lighting, View Controls) */
.stage-floating-toolbar {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 24, 32, 0.85);
  backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  z-index: 30;
}

.stage-tool-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.stage-tool-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.stage-tool-btn.active {
  background: var(--accent-primary);
  color: white;
}

.stage-divider {
  width: 1px;
  height: 18px;
  background: var(--border-medium);
}

.zoom-level-indicator {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  min-width: 44px;
  text-align: center;
}

/* Canvas Viewport & Container */
.canvas-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.canvas-viewport.panning {
  cursor: grabbing;
}

.garment-stage-wrapper {
  position: relative;
  width: 680px;
  height: 680px;
  transform-origin: center center;
  transition: transform 0.08s linear;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Garment Layer Stack */
.garment-render-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Garment Base Color Filter & Realistic Shadows */
.garment-svg-base {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
  transition: filter 0.3s ease;
}

/* Printable Safe Zone Boundary Box */
.printable-zone-overlay {
  position: absolute;
  border: 1.5px dashed rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.03);
  pointer-events: all;
  border-radius: var(--radius-xs);
  box-sizing: border-box;
  transition: border-color 0.2s, background-color 0.2s;
  overflow: visible;
}

.printable-zone-overlay.embroidery-zone {
  border-color: rgba(245, 158, 11, 0.7);
  background: rgba(245, 158, 11, 0.03);
}

.printable-zone-overlay.warning-out-of-bounds {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

.zone-dimension-tag {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.zone-title-tag {
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 0.5px;
  pointer-events: none;
}

.printable-zone-overlay.embroidery-zone .zone-title-tag {
  color: var(--accent-embroidery);
}

/* Interactive Design Element Container */
.interactive-artwork-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Clean Export Mode (Hides gizmos, handles, and guides during export) */
.exporting-clean-stage .zone-title-tag,
.exporting-clean-stage .zone-dimension-tag,
.exporting-clean-stage .transform-handle,
.exporting-clean-stage .element-dimension-badge,
.exporting-clean-stage .element-quick-bar {
  display: none !important;
}
.exporting-clean-stage .printable-zone-overlay {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.exporting-clean-stage .design-element-wrapper.selected {
  outline: none !important;
}

/* Active Transform Gizmo & Handles */
.design-element-wrapper {
  position: absolute;
  pointer-events: all;
  cursor: move;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.design-element-wrapper.selected {
  outline: 1.5px solid var(--accent-primary);
  outline-offset: 3px;
}

.design-element-wrapper.embroidery-mode.selected {
  outline-color: var(--accent-embroidery);
}

/* Transform Control Handles */
.transform-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 10;
}

.design-element-wrapper.selected .transform-handle {
  display: block;
}

.transform-handle.nw { top: -8px; left: -8px; cursor: nwse-resize; }
.transform-handle.ne { top: -8px; right: -8px; cursor: nesw-resize; }
.transform-handle.se { bottom: -8px; right: -8px; cursor: nwse-resize; }
.transform-handle.sw { bottom: -8px; left: -8px; cursor: nesw-resize; }

.transform-handle.rotator {
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-color: #ffffff;
  border-radius: 50%;
  cursor: grab;
}

.transform-handle.rotator::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 4px;
  width: 2px;
  height: 14px;
  background: var(--accent-primary);
}

/* Quick Action floating buttons on selected element */
.element-quick-bar {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.95);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  z-index: 25;
}

.design-element-wrapper.selected .element-quick-bar {
  display: flex;
}

/* Floating Real-World Physical Dimension Measurement Badge */
.element-dimension-badge {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  background: rgba(15, 23, 42, 0.95);
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  pointer-events: none;
  z-index: 25;
}

.design-element-wrapper.selected .element-dimension-badge {
  display: block;
}

.quick-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
}

.quick-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.quick-btn.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* ==========================================================================
   Technique Shaders & Visual Effects (Embroidery, 3D Puff, Screen Print, etc.)
   ========================================================================== */

/* Flat Embroidery Texture Shader */
.render-technique-embroidery {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.75)) drop-shadow(0 0.5px 0.5px rgba(255,255,255,0.3));
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  position: relative;
}

/* 3D Puff Embroidery Texture Shader */
.render-technique-puff-embroidery {
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.9)) drop-shadow(0 1px 2px rgba(0,0,0,0.95)) drop-shadow(0 -0.5px 1px rgba(255,255,255,0.5));
  transform: perspective(400px) translateZ(3px);
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

/* Screen Print (Plastisol) */
.render-technique-screen-print {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

/* DTG Direct-to-Garment */
.render-technique-dtg {
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45));
}

/* Metallic Gold Foil */
.render-technique-foil-gold {
  background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

/* Metallic Silver Foil */
.render-technique-foil-silver {
  background: linear-gradient(135deg, #d1d5db 0%, #ffffff 30%, #9ca3af 55%, #f3f4f6 80%, #6b7280 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

/* Embossed Leather Patch */
.render-technique-leather-patch {
  border-radius: 8px;
  background: linear-gradient(145deg, #8b5a2b, #5c3a1e);
  box-shadow: inset 1px 1px 2px rgba(255,255,255,0.2), inset -1px -1px 3px rgba(0,0,0,0.6), 0 3px 6px rgba(0,0,0,0.4);
  padding: 12px;
  border: 1.5px dashed #d4a373;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

/* Technique Selection Cards (Right Panel) */
.technique-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.technique-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.technique-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.technique-card.active {
  border-color: var(--accent-embroidery);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 12px var(--accent-embroidery-glow);
}

.technique-card.print-active {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 12px var(--accent-glow);
}

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

.technique-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.technique-tag {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 2px;
}

.tag-embroidery {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-embroidery);
}

.tag-print {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-print);
}

.tag-specialty {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.technique-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.technique-desc {
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.25;
}

/* Tab navigation in Right Panel (Upload vs Text vs Badges vs QR Code) */
.tool-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-surface-elevated);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.tool-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.tool-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tool-tab-btn.active {
  background: var(--bg-surface-card);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

.tool-tab-btn[data-tab="tab-qrcode"] {
  color: #38bdf8;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
}

.tool-tab-btn[data-tab="tab-qrcode"]:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
}

.tool-tab-btn[data-tab="tab-qrcode"].active {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

/* Text Input & Typography Panel */
.text-editor-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-styled {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  width: 100%;
}

.input-styled:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* Font Category Pills */
.font-cat-pills {
  display: flex;
  gap: 3px;
}

.font-cat-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.font-cat-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.font-cat-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* AI Style Generator Recipe Chips */
.style-recipe-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.style-recipe-chip:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #818cf8;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Format & Weight Buttons */
.format-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  padding: 4px 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.format-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.format-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
}

.font-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.font-option-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.font-option-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.font-option-btn.active {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.18);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.25);
}

.font-option-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.font-option-sample {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Range Sliders */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 600;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: var(--bg-surface-elevated);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 0 6px var(--accent-glow);
}

/* Thread / Madeira Swatches Grid */
.thread-swatch-list {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.thread-swatch-item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  border: 2px solid var(--border-subtle);
  transition: transform var(--transition-fast);
}

.thread-swatch-item:hover {
  transform: scale(1.25);
  z-index: 5;
  border-color: white;
}

.thread-swatch-item.active {
  border-color: var(--accent-embroidery);
  box-shadow: 0 0 8px var(--accent-embroidery-glow);
  transform: scale(1.15);
}

/* Asset Library Grid */
.preset-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.preset-asset-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-asset-item:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.preset-asset-item svg {
  width: 38px;
  height: 38px;
  fill: var(--text-primary);
}

.preset-asset-item span {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed var(--border-medium);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
}

.upload-dropzone .dropzone-icon {
  font-size: 24px;
  color: var(--accent-primary);
}

.upload-dropzone p {
  font-size: 11px;
  color: var(--text-secondary);
}

.upload-dropzone span {
  font-size: 9px;
  color: var(--text-muted);
}

/* Global Drag & Drop Overlay */
.global-drag-drop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-drag-drop-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.global-drag-drop-overlay .dropzone-card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px dashed #38bdf8;
  border-radius: var(--radius-lg);
  padding: 40px 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-drag-drop-overlay.visible .dropzone-card {
  transform: scale(1);
}

.dropzone-pulsing-icon {
  font-size: 48px;
  animation: bouncePulse 1.2s infinite ease-in-out;
}

@keyframes bouncePulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.1); }
}

.dropzone-main-text {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.dropzone-sub-text {
  font-size: 12px;
  color: #94a3b8;
  max-width: 320px;
  line-height: 1.4;
}

/* Garment Sizing Pills & Measurement Specs */
.size-pill-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.size-pill-btn {
  flex: 1;
  min-width: 44px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  padding: 8px 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.size-pill-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.size-pill-btn.active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.size-pill-btn .size-upcharge {
  font-size: 8px;
  font-weight: 600;
  color: #f59e0b;
}

.size-measurement-card {
  transition: all 0.2s ease;
}

/* Sizing Matrix & Quantity Stepper Controls in Order Modal */
.order-sizing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.order-preset-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.order-preset-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 9px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.order-preset-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.order-preset-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-primary);
  color: #818cf8;
}

.order-matrix-table {
  width: 100%;
  border-collapse: collapse;
  background: #1e293b;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid #334155;
  font-size: 11.5px;
}

.order-matrix-table th {
  background: #0f172a;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #334155;
}

.order-matrix-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  color: #f1f5f9;
  vertical-align: middle;
}

.order-matrix-table tr.row-active {
  background: rgba(56, 189, 248, 0.08);
}

.order-matrix-table tr.row-active td {
  color: #ffffff;
}

.order-size-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #38bdf8;
  cursor: pointer;
}

.order-size-badge {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
  border-radius: 4px;
  font-weight: 800;
  font-size: 10.5px;
  margin-right: 6px;
}

.order-stepper-control {
  display: inline-flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  overflow: hidden;
}

.order-stepper-btn {
  width: 28px;
  height: 28px;
  background: #1e293b;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}

.order-stepper-btn:hover {
  background: #334155;
  color: #ffffff;
}

.order-stepper-btn:active {
  background: #475569;
}

.order-qty-input-stepped {
  width: 50px;
  height: 28px;
  background: transparent;
  border: none;
  color: #f8fafc;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  outline: none;
}

.order-qty-input-stepped::-webkit-inner-spin-button,
.order-qty-input-stepped::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}



