/* Local Merch Studio – layout & designer */

.mb-lc-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: flex-start;
}

@media (max-width: 880px) {
  .mb-lc-layout {
    display: block;
  }
}

/* Designer panel */

.mb-lc-designer-card {
  background: #050505;
  border-radius: 32px;
  padding: 24px 24px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

@media (max-width: 880px) {
  .mb-lc-designer-card {
    margin-bottom: 24px;
  }
}

.mb-lc-designer-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 18px;
}

.mb-lc-designer-header h2 {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

/* view toggle */

.mb-lc-view-toggle {
  display: inline-flex;
  border-radius: 999px;
  background: #0c0c0c;
  padding: 3px;
}

.mb-lc-view-toggle button {
  border: none;
  background: transparent;
  color: #aaa;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.mb-lc-view-toggle button.is-active {
  background: #f44;
  color: #fff;
}

/* form row */

.mb-lc-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.mb-lc-form-row label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  display: block;
  margin-bottom: 6px;
}

.mb-lc-select {
  background: #111;
  color: #f5f5f5;
  border-radius: 999px;
  border: 1px solid #222;
  padding: 6px 26px 6px 12px;
  font-size: 0.9rem;
}

/* Canvas wrapper */

.mb-lc-canvas-wrap {
  margin-top: 18px;
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}

.mb-lc-canvas-frame {
  width: 100%;
  max-width: 420px;
  border-radius: 32px;
  padding: 18px;
  background: radial-gradient(circle at top, #121212 0, #050505 55%, #000 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

@media (max-width: 880px) {
  .mb-lc-canvas-frame {
    max-width: 340px;
    margin: 0 auto;
  }
}

/* THIS is the actual canvas box */

#mb-lc-designCanvas {
  width: 100%;
  aspect-ratio: 9 / 10; /* tuned for 1200 x 1330 mockup */
  display: block;
  border-radius: 26px;
  background: radial-gradient(circle at top, #141414 0, #050505 60%, #000 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

@media (max-width: 880px) {
  #mb-lc-designCanvas {
    aspect-ratio: 9 / 10;
  }
}

/* Upload button row */

.mb-lc-upload-row {
  margin-bottom: 12px;
}

.mb-lc-primary-btn {
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  background: #ff2b5d;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 43, 93, 0.45);
}

.mb-lc-primary-btn:hover {
  background: #ff3c6c;
}

/* Sliders */

.mb-lc-slider-row {
  margin-bottom: 10px;
}

.mb-lc-slider-row label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mb-lc-slider-row label span:last-child {
  font-size: 0.75rem;
  color: #777;
}

.mb-lc-slider-row input[type="range"] {
  width: 100%;
  margin-top: 4px;
}

/* Resolution note */

.mb-lc-design-note {
  margin-top: 6px;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-block;
}

.mb-lc-design-note-good {
  background: rgba(46, 204, 113, 0.08);
  color: #2ecc71;
}

.mb-lc-design-note-ok {
  background: rgba(241, 196, 15, 0.08);
  color: #f1c40f;
}

.mb-lc-design-note-warn {
  background: rgba(231, 76, 60, 0.12);
  color: #ff6b6b;
}

/* Placement + controls */

.mb-lc-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-top: 8px;
}

@media (max-width: 880px) {
  .mb-lc-controls-grid {
    grid-template-columns: 1fr;
  }
}

.mb-lc-controls-grid select,
.mb-lc-controls-grid input[type="number"] {
  width: 100%;
  background: #111;
  border: 1px solid #222;
  border-radius: 999px;
  color: #eee;
  padding: 6px 10px;
  font-size: 0.9rem;
}

/* Footer buttons */

.mb-lc-designer-footer {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mb-lc-secondary-btn,
.mb-lc-ghost-btn {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
}

.mb-lc-secondary-btn {
  border: none;
  background: #222;
  color: #f5f5f5;
}

.mb-lc-ghost-btn {
  border: 1px solid #333;
  background: transparent;
  color: #ccc;
}

/* shops card */

.mb-lc-shops-card {
  background: #050505;
  border-radius: 32px;
  padding: 22px 22px 26px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.mb-lc-shops-card h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

/* shops list */

#mb-lc-shopsContainer {
  margin-top: 8px;
}

.mb-lc-shop {
  border-radius: 22px;
  padding: 12px 14px;
  background: #0e0e0e;
  border: 1px solid transparent;
  margin-bottom: 10px;
  cursor: pointer;
}

.mb-lc-shop.is-selected {
  border-color: #ff2b5d;
  box-shadow: 0 0 0 1px rgba(255, 43, 93, 0.35);
}

.mb-lc-shop-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.mb-lc-shop-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.mb-lc-shop-meta {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}

.mb-lc-shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.mb-lc-chip {
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 0.7rem;
}

.mb-lc-chip-distance {
  background: rgba(255, 255, 255, 0.05);
  color: #ddd;
}

.mb-lc-chip-type {
  background: rgba(255, 43, 93, 0.14);
  color: #ff2b5d;
}

.mb-lc-shop-body {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #ccc;
}

.mb-lc-shop-price {
  color: #ffb347;
}

/* shops helper states */

.mb-lc-loading,
.mb-lc-error,
.mb-lc-empty {
  font-size: 0.8rem;
  color: #aaa;
  padding: 10px;
}

/* order / cart */

.mb-lc-order-card {
  background: #050505;
  border-radius: 32px;
  padding: 18px 22px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.mb-lc-order-card h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

#mb-lc-itemsList {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

#mb-lc-itemsList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #111;
}

.mb-lc-items-meta {
  font-size: 0.82rem;
}

.mb-lc-items-views {
  font-size: 0.75rem;
  color: #999;
}

.mb-lc-items-price {
  font-size: 0.86rem;
}

.mb-lc-items-remove {
  border: none;
  background: transparent;
  color: #777;
  cursor: pointer;
  font-size: 1rem;
}

/* totals */

.mb-lc-totals {
  font-size: 0.82rem;
  margin-top: 8px;
}

.mb-lc-totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.mb-lc-totals-row strong {
  font-weight: 600;
}

/* flow summary text */

.mb-lc-flow-summary-row {
  font-size: 0.8rem;
  margin-top: 4px;
}

.mb-lc-flow-summary-row span:first-child {
  color: #999;
  margin-right: 4px;
}

/* mobile overlap protection */

@media (max-width: 880px) {
  .mb-lc-page {
    padding-bottom: 90px; /* keep it above bottom chat bar etc */
  }
}
