/* ══════════════════════════════════════════════════════════
   Customization Wizard Styles
   Metal Mono — Minimal, glassmorphic, Inter font
   ══════════════════════════════════════════════════════════ */

/* ── Modal Overlay Container ── */
.mm-cust-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.mm-cust-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mm-cust-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mm-cust-modal__container {
  position: relative;
  width: 92%;
  max-width: 960px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  z-index: 10;
  transform: translateY(20px) scale(0.98);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mm-cust-modal.is-open .mm-cust-modal__container {
  transform: translateY(0) scale(1);
}

.mm-cust-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f3;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: background 200ms ease;
  color: #111111;
}

.mm-cust-modal__close:hover {
  background: #e4e4e4;
}

body.mm-cust-modal-open {
  overflow: hidden !important;
}

/* ── Layout ── */
.mm-cust-wizard {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  font-family: var(--font-body, 'Inter', system-ui, -apple-system, sans-serif);
  color: #111111;
}

/* ── Progress Stepper ── */
.mm-wizard-progress {
  margin-bottom: 48px;
}

.mm-wizard-progress__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
}

.mm-wizard-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mm-wizard-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid #ddd;
  transition: all 300ms ease;
}

.mm-wizard-step-dot.active {
  background: #111111;
  border-color: #111111;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.12);
}

.mm-wizard-step-dot.done {
  background: #4C7A54;
  border-color: #4C7A54;
}

.mm-wizard-step-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #8A8A85;
  transition: color 300ms ease;
}

.mm-wizard-step-indicator[data-step].active .mm-wizard-step-label {
  color: #111111;
}

.mm-wizard-step-connector {
  flex: 1;
  height: 2px;
  background: #eee;
  margin: 0 12px;
  margin-bottom: 20px;
  transition: background 300ms ease;
}

.mm-wizard-step-connector.done {
  background: #4C7A54;
}

/* ── Section Titles ── */
.mm-wizard-title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.mm-wizard-subtitle {
  color: #8A8A85;
  font-size: 0.95rem;
  margin: 0 0 32px;
  line-height: 1.5;
}

/* ── Back Button ── */
.mm-wizard-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #8A8A85;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 24px;
  transition: color 200ms;
  font-family: inherit;
}

.mm-wizard-back:hover {
  color: #111111;
}

/* ── Section Animation ── */
.mm-wizard-section {
  animation: mmFadeIn 400ms ease;
}

.mm-wizard-section__inner {
  max-width: 100%;
}

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

/* ═══════════════════════════════════════════════════
   STEP 1 — Plan Cards
   ═══════════════════════════════════════════════════ */

.mm-plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mm-plan-card {
  position: relative;
  background: #FAFAF8;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: left;
  cursor: pointer;
  transition: all 300ms ease;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  color: inherit;
}

.mm-plan-card:hover {
  border-color: #111111;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.mm-plan-card__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  align-self: flex-start;
}

.mm-plan-card__badge--affordable { background: #4C7A54; }
.mm-plan-card__badge--premium { background: #B5654A; }
.mm-plan-card__badge--single { background: #111111; }

.mm-plan-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}

.mm-plan-card__desc {
  font-size: 0.85rem;
  color: #8A8A85;
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}

.mm-plan-card__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 8px;
}

.mm-plan-card__arrow {
  font-size: 1.25rem;
  color: #ccc;
  transition: color 200ms, transform 200ms;
}

.mm-plan-card:hover .mm-plan-card__arrow {
  color: #111111;
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════
   STEP 2 — Product Type Grid
   ═══════════════════════════════════════════════════ */

.mm-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mm-type-card {
  background: #FAFAF8;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 300ms ease;
  font-family: inherit;
  color: inherit;
}

.mm-type-card:hover {
  border-color: #111111;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.mm-type-card__icon {
  margin-bottom: 16px;
  color: #8A8A85;
  transition: color 200ms;
}

.mm-type-card:hover .mm-type-card__icon {
  color: #111111;
}

.mm-type-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.mm-type-card p {
  font-size: 0.82rem;
  color: #8A8A85;
  margin: 0;
}

/* ═══════════════════════════════════════════════════
   STEP 3 — Product Grid (Affordable & Premium)
   ═══════════════════════════════════════════════════ */

.mm-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.mm-product-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.mm-product-item {
  background: #fff;
  border: 2px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 200ms ease;
}

.mm-product-item:hover,
.mm-product-item.selected {
  border-color: #111111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.mm-product-item.selected {
  border-width: 3px;
}

.mm-product-item__thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #f5f5f3;
}

.mm-product-item__info {
  padding: 10px 12px;
}

.mm-product-item__name {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mm-product-item__price {
  font-size: 0.78rem;
  color: #8A8A85;
}

/* ═══════════════════════════════════════════════════
   STEP 3 — Artwork Grid (Premium)
   ═══════════════════════════════════════════════════ */

.mm-artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.mm-artwork-item {
  background: #fff;
  border: 2px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 200ms ease;
  text-align: center;
}

.mm-artwork-item:hover,
.mm-artwork-item.selected {
  border-color: #111111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.mm-artwork-item.selected {
  border-width: 3px;
}

.mm-artwork-item__thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  background: #f5f5f3;
  padding: 12px;
}

.mm-artwork-item__title {
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   Selected Product / Artwork Header
   ═══════════════════════════════════════════════════ */

.mm-cust-form__selected {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #FAFAF8;
  border-radius: 8px;
  margin-bottom: 24px;
}

.mm-cust-form__selected img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: #eee;
}

.mm-cust-form__selected h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 2px;
}

.mm-cust-form__selected span {
  font-size: 0.85rem;
  color: #8A8A85;
}

/* ═══════════════════════════════════════════════════
   Variant Picker
   ═══════════════════════════════════════════════════ */

.mm-cust-variants {
  margin-bottom: 24px;
}

.mm-cust-variant-group {
  margin-bottom: 16px;
}

.mm-cust-variant-group__label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: #111111;
}

.mm-cust-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-cust-variant-btn {
  padding: 6px 16px;
  border: 2px solid #eee;
  border-radius: 6px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms;
  font-family: inherit;
  color: #111111;
}

.mm-cust-variant-btn:hover {
  border-color: #111111;
}

.mm-cust-variant-btn.selected {
  background: #111111;
  border-color: #111111;
  color: #fff;
}

.mm-cust-variant-btn.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ═══════════════════════════════════════════════════
   Upload Zone (Affordable)
   ═══════════════════════════════════════════════════ */

.mm-cust-upload {
  margin-bottom: 24px;
}

.mm-cust-upload__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.mm-cust-upload__label small {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #8A8A85;
}

.mm-cust-dropzone {
  border: 2px dashed #ddd;
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 200ms;
  color: #8A8A85;
}

.mm-cust-dropzone:hover,
.mm-cust-dropzone.dragover {
  border-color: #111111;
  background: #FAFAF8;
  color: #111111;
}

.mm-cust-dropzone p {
  margin: 8px 0 0;
  font-size: 0.85rem;
}

.mm-cust-preview-list {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.mm-cust-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #eee;
}

.mm-cust-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-cust-preview__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════
   Form Fields
   ═══════════════════════════════════════════════════ */

.mm-cust-field {
  margin-bottom: 24px;
}

.mm-cust-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.mm-cust-field label small {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #8A8A85;
}

.mm-cust-field textarea {
  width: 100%;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 200ms;
  color: #111111;
  box-sizing: border-box;
}

.mm-cust-field textarea:focus {
  outline: none;
  border-color: #111111;
}

/* ═══════════════════════════════════════════════════
   Submit / Add to Cart Button
   ═══════════════════════════════════════════════════ */

.mm-cust-submit-btn {
  display: block;
  width: 100%;
  padding: 14px 32px;
  background: #111111;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 200ms;
  font-family: inherit;
}

.mm-cust-submit-btn:hover:not(:disabled) {
  background: #333;
}

.mm-cust-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mm-cust-submit-btn.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════
   Calendly Embed (Single Edition)
   ═══════════════════════════════════════════════════ */

.mm-cust-calendly {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #eee;
}

.mm-cust-calendly iframe {
  display: block;
}

.mm-cust-calendly-placeholder {
  padding: 32px;
  background: #FAFAF8;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 24px;
  color: #8A8A85;
}

/* ═══════════════════════════════════════════════════
   Confirmation Screen
   ═══════════════════════════════════════════════════ */

.mm-cust-confirmation {
  text-align: center;
  padding: 40px 20px;
}

.mm-cust-confirmation__icon {
  margin-bottom: 20px;
}

.mm-cust-confirmation__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.mm-cust-confirmation__actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 200ms;
}

.mm-cust-confirmation__actions a:hover {
  opacity: 0.85;
}

.mm-cust-confirm-cart {
  background: #111111;
  color: #fff !important;
}

.mm-cust-confirm-whatsapp {
  background: #25D366;
  color: #fff !important;
}

.mm-cust-confirm-account {
  background: #f5f5f3;
  color: #111 !important;
}

/* ═══════════════════════════════════════════════════
   Loading State
   ═══════════════════════════════════════════════════ */

.mm-loading {
  text-align: center;
  padding: 40px;
  color: #8A8A85;
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .mm-cust-wizard {
    padding: 24px 16px 60px;
  }

  .mm-wizard-title {
    font-size: 1.35rem;
  }

  .mm-plan-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mm-type-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mm-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .mm-artwork-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ══════════════════════════════════════════════════════════
   Inline Design Studio (Fabric.js editor inside wizard)
   ══════════════════════════════════════════════════════════ */

.mm-studio-mode {
  max-width: none !important;
  padding: 0 !important;
}

.mm-studio-mode .mm-wizard-progress { display: none; }

.mm-wizard-section--studio {
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* ── 3-Column Editor Layout ── */
.mm-studio-editor {
  display: grid;
  grid-template-columns: 260px 1fr 100px;
  grid-template-rows: 1fr;
  height: calc(100vh - 60px);
  width: 100%;
  overflow: hidden;
}

/* ── Left Sidebar ── */
.mm-studio-sidebar {
  background: #1a1a1a;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.mm-studio-sidebar__header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mm-studio-back-btn {
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 13px; cursor: pointer; padding: 4px 0;
  font-family: var(--mm-font-primary, 'Inter', sans-serif);
}
.mm-studio-back-btn:hover { color: #fff; }

/* Tool Navigation */
.mm-studio-tools {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.mm-studio-tool {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 6px;
  background: none; border: none; color: rgba(255,255,255,0.4);
  font-size: 10px; cursor: pointer;
  transition: color 0.15s, background 0.15s;
  font-family: var(--mm-font-primary, 'Inter', sans-serif);
}
.mm-studio-tool:hover { color: rgba(255,255,255,0.7); }
.mm-studio-tool.is-active {
  color: #fff; background: rgba(255,255,255,0.06);
  border-bottom: 2px solid #fff;
}

/* Tool Panels */
.mm-studio-panels { flex: 1; overflow-y: auto; }
.mm-studio-panel { display: none; padding: 16px; }
.mm-studio-panel.is-active { display: block; }
.mm-studio-panel__title {
  font-size: 16px; font-weight: 600; margin: 0 0 16px;
  font-family: var(--mm-font-primary, 'Inter', sans-serif);
}

.mm-studio-start-options {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-bottom: 20px;
}
.mm-studio-start-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  color: rgba(255,255,255,0.7); cursor: pointer;
  font-family: var(--mm-font-primary, 'Inter', sans-serif);
  font-size: 12px; transition: all 0.15s;
}
.mm-studio-start-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

.mm-studio-upload-info {
  padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.06);
}
.mm-studio-upload-info h4 {
  font-size: 13px; font-weight: 600; margin: 0 0 8px;
  font-family: var(--mm-font-primary, 'Inter', sans-serif);
}
.mm-studio-upload-info p {
  font-size: 12px; color: rgba(255,255,255,0.5); margin: 4px 0; line-height: 1.5;
}

/* Text Panel */
.mm-studio-input {
  width: 100%; padding: 10px 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; color: #fff; font-size: 14px; margin-bottom: 10px;
  font-family: var(--mm-font-primary, 'Inter', sans-serif);
}
.mm-studio-input::placeholder { color: rgba(255,255,255,0.3); }
.mm-studio-btn-primary {
  width: 100%; padding: 10px; background: #fff; color: #111;
  border: none; border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; margin-bottom: 16px;
  font-family: var(--mm-font-primary, 'Inter', sans-serif);
}
.mm-studio-btn-primary:hover { opacity: 0.9; }
.mm-studio-label {
  display: block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5); margin: 12px 0 6px;
}
.mm-studio-select {
  width: 100%; padding: 8px 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; color: #fff; font-size: 13px;
}
.mm-studio-range { width: 100%; margin: 4px 0; accent-color: #fff; }
.mm-studio-colors { display: flex; gap: 6px; flex-wrap: wrap; }
.mm-studio-swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s;
}
.mm-studio-swatch.is-selected { border-color: #fff; transform: scale(1.15); }
.mm-studio-color-input { width: 28px; height: 28px; border: none; cursor: pointer; border-radius: 50%; }
.mm-studio-style-btns { display: flex; gap: 6px; margin-top: 10px; }
.mm-studio-style-btn {
  padding: 6px 12px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
  color: rgba(255,255,255,0.7); cursor: pointer; font-size: 14px;
}
.mm-studio-style-btn.is-active { background: rgba(255,255,255,0.15); color: #fff; }

/* Art Grid */
.mm-studio-art-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}

/* Layers */
.mm-studio-layer-list { min-height: 40px; }
.mm-studio-layer {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 6px; cursor: pointer; font-size: 12px;
  color: rgba(255,255,255,0.6); transition: background 0.15s;
}
.mm-studio-layer:hover { background: rgba(255,255,255,0.06); }
.mm-studio-layer.is-active { background: rgba(255,255,255,0.1); color: #fff; }
.mm-studio-empty { color: rgba(255,255,255,0.3); font-size: 12px; text-align: center; padding: 20px 0; }
.mm-studio-layer-actions { display: flex; gap: 6px; margin-top: 10px; }
.mm-studio-btn-sm {
  padding: 6px 12px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
  color: rgba(255,255,255,0.6); cursor: pointer; font-size: 14px;
}
.mm-studio-btn-sm:hover { background: rgba(255,255,255,0.1); color: #fff; }
.mm-studio-btn-danger:hover { background: rgba(193,68,60,0.3); color: #C1443C; }

/* ── Center Canvas Area ── */
.mm-studio-canvas-area {
  background: #E8E4DF;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
}

.mm-studio-undo-redo {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  display: flex; flex-direction: column; gap: 4px;
}
.mm-studio-ur-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px; background: #fff; border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px; cursor: pointer; color: #666; font-size: 10px;
  transition: all 0.15s; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.mm-studio-ur-btn:hover:not(:disabled) { color: #111; }
.mm-studio-ur-btn:disabled { opacity: 0.3; cursor: default; }

.mm-studio-canvas-wrap { position: relative; }

/* Enable smooth touch scrolling over canvas area on mobile when not dragging active design elements */
.mm-studio-canvas-area,
.mm-studio-canvas-wrap,
.mm-studio-canvas-wrap .canvas-container,
.mm-studio-canvas-wrap .upper-canvas,
.mm-studio-canvas-wrap .lower-canvas {
  touch-action: pan-y pinch-zoom !important;
}

.mm-studio-canvas-wrap.is-transforming,
.mm-studio-canvas-wrap.is-transforming .canvas-container,
.mm-studio-canvas-wrap.is-transforming .upper-canvas {
  touch-action: none !important;
}

.mm-studio-msg {
  display: none; position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%); padding: 8px 16px;
  border-radius: 6px; font-size: 12px; font-weight: 500; z-index: 10;
  font-family: var(--mm-font-primary, 'Inter', sans-serif);
}
.mm-studio-msg--info { background: #1a1a1a; color: #fff; }
.mm-studio-msg--success { background: #4C7A54; color: #fff; }
.mm-studio-msg--error { background: #C1443C; color: #fff; }

/* ── Right Views Sidebar ── */
.mm-studio-views {
  background: #fff; border-left: 1px solid rgba(0,0,0,0.06);
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 8px; gap: 10px;
}
.mm-studio-view {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 2px solid transparent; border-radius: 8px;
  cursor: pointer; padding: 4px; font-size: 10px; color: #666;
  font-family: var(--mm-font-primary, 'Inter', sans-serif);
  transition: border-color 0.15s;
}
.mm-studio-view.is-active { border-color: #111; }
.mm-studio-view__thumb {
  width: 60px; height: 80px; background: #f0f0f0;
  border-radius: 4px; overflow: hidden;
}
.mm-studio-view__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mm-studio-view-divider { width: 40px; height: 1px; background: #e5e5e5; margin: 4px 0; }
.mm-studio-zoom {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10px; color: #666; margin-top: auto;
}
.mm-studio-zoom input[type="range"] { width: 60px; accent-color: #111; }
.mm-studio-zoom label {
  font-family: var(--mm-font-primary, 'Inter', sans-serif);
  font-size: 10px; font-weight: 600; text-transform: uppercase;
}

/* ── Bottom Bar ── */
.mm-studio-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  position: sticky; bottom: 0; z-index: 20;
}
.mm-studio-bottom__product {
  display: flex; align-items: center; gap: 12px;
}
.mm-studio-bottom__img {
  width: 40px; height: 40px; border-radius: 4px; object-fit: cover;
}
.mm-studio-bottom__name {
  font-family: var(--mm-font-primary, 'Inter', sans-serif);
  font-size: 13px; font-weight: 600; color: #111;
}
.mm-studio-bottom__change {
  font-size: 11px; color: #4A90D9; text-decoration: none;
  font-family: var(--mm-font-primary, 'Inter', sans-serif);
}
.mm-studio-bottom__change:hover { text-decoration: underline; }
.mm-studio-cart-btn {
  padding: 10px 28px; background: #111; color: #fff;
  border: none; border-radius: 6px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer;
  font-family: var(--mm-font-primary, 'Inter', sans-serif);
  transition: opacity 0.2s;
}
.mm-studio-cart-btn:hover:not(:disabled) { opacity: 0.85; }
.mm-studio-cart-btn:disabled { opacity: 0.4; cursor: default; }

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .mm-studio-editor {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: calc(100vh - 120px);
  }

  .mm-studio-sidebar {
    order: 2; border-right: none; border-top: 1px solid rgba(255,255,255,0.06);
    max-height: 280px;
  }

  .mm-studio-sidebar__header { display: none; }

  .mm-studio-canvas-area { order: 1; }

  .mm-studio-views {
    position: absolute; right: 8px; top: 8px; z-index: 10;
    background: rgba(255,255,255,0.95); border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08); padding: 6px;
    flex-direction: column;
    backdrop-filter: blur(8px);
  }

  .mm-studio-view__thumb { width: 40px; height: 52px; }

  .mm-studio-zoom { display: none; }

  .mm-studio-bottom {
    flex-direction: column; gap: 8px;
    padding: 10px 12px;
  }
  .mm-studio-bottom__product { width: 100%; }
  .mm-studio-cart-btn { width: 100%; }
}

