body, .mugdesigner-root {
  background: #212734 !important;
  color: #fff;
}
.mugdesigner-root {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  min-height: 100vh;
}
.mugdesigner-panel {
  width: 340px;
  background: #151a24;
  border-radius: 24px;
  margin: 40px 24px 40px 40px;
  padding: 24px 18px 24px 18px;
  box-shadow: 0 4px 40px rgb(0 0 0 / 26%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.designer-section {
  background: #182131;
  border-radius: 16px;
  margin-bottom: 16px;
  padding: 18px 14px 14px 14px;
  box-shadow: 0 2px 18px rgb(0 0 0 / 10%);
}
.designer-section h3 { color: #1abfff; font-size: 1.15em; margin-top: 0; }
.designer-input, .designer-select {
  width: 100%;
  margin-bottom: 10px;
  margin-right: 8px;
  border-radius: 7px;
  border: none;
  padding: 8px 10px;
  font-size: 1em;
  background: #232b3d;
  color: #fff;
}
.designer-input.small { width: 60px; display: inline-block; }
.designer-input.color { width: 40px; display: inline-block; padding: 0; height: 34px;}
.text-controls { display: flex; gap: 5px; margin-bottom: 9px;}
.designer-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  margin-right: 4px;
  background: #26324b;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s;
  font-size: 1em;
}
.main-btn { background: #1abfff; color: #fff; }
.main-btn:hover { background: #16a9e0; }
.secondary-btn { background: #36436a; }
.secondary-btn.active, .category-btn.active { background: #1abfff; color: #fff; }
.add-text-btn {
  width: 100%; margin-top: 10px; background: #1abfff; color: #fff;
  font-size: 1.07em; padding: 10px 0;
}
.add-text-btn:hover { background: #0099d6; }
.drop-zone {
  border: 2px dashed #1abfff;
  border-radius: 10px;
  padding: 18px 0;
  text-align: center;
  color: #6aa9d7;
  background: #222b3a;
  margin-bottom: 10px;
}
.drop-zone.drag-over { background: #193648; color: #fff; border-color: #53e6ff; }
.gallery-grid {
  display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 8px;
}
.gallery-item {
  display: flex; flex-direction: column; align-items: center;
  background: #232b3d;
  border-radius: 8px; padding: 7px 13px;
  color: #fff; cursor: pointer; border: 2px solid #232b3d;
  transition: border .15s, background .15s;
}
.gallery-item:hover { border: 2px solid #1abfff; background: #1a2331;}
.gallery-item .name { font-size: .85em; color: #6aa9d7; }
.elements-list { margin-top: 7px; }
.element-item { padding: 7px 0 5px 0; border-bottom: 1px solid #26324b; color: #fff; font-size: .98em; }
.element-item.selected { background: #223c56; }
.element-controls button { margin: 0 2px; background: #1abfff; color: #fff; border-radius: 4px; border:none; font-size: .9em; }
.cart-items { margin-top: 7px;}
.cart-item { background: #182131; border-radius: 7px; display: flex; align-items: center; margin-bottom: 6px; padding: 7px;}
.cart-item img { width: 56px; height: 40px; border-radius: 4px; margin-right: 10px; background: #fff;}
.cart-item-info { flex: 1; }
.canvas-card {
  background: #262d3e;
  border-radius: 24px;
  margin-top: 38px;
  margin-bottom: 16px;
  box-shadow: 0 4px 40px rgb(0 0 0 / 26%);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 940px;
}
#design-canvas { border-radius: 12px; background: #fff; border: 2px dashed #1abfff;}
.canvas-label { color: #ffd700; text-align: center; margin-top: 8px; font-size:1.07em;}
.mugdesigner-main { flex: 1; display: flex; flex-direction: column; align-items: center;}
.mug3d-card {
  background: #262d3e;
  border-radius: 24px;
  padding: 22px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 2px 18px rgb(0 0 0 / 10%);
  min-width: 420px;
}
#mug-3d-canvas { background: #00b6ff; border-radius: 12px;}
.mug-label { color: #6aa9d7; text-align: center; margin-top: 8px; font-size:1.06em;}
@media (max-width: 1200px) {
  .mugdesigner-root { flex-direction: column; }
  .mugdesigner-panel { margin: 30px auto 0 auto; }
  .mugdesigner-main { margin: 0; }
  .canvas-card, .mug3d-card { min-width: initial; }
}
/* Pour cibler vraiment tout, même les attributs HTML */
.panier-global img,
.cart-table img,
#panier-global img,
#cart-table img,
tr td img,
table img {
    width: 180px !important;
    height: auto !important;
    max-height: 120px !important;
    object-fit: contain !important;
    display: block !important;
}