/* ====== MUG CUSTOMIZER - STYLE PRO ====== */
:root {
  --mc-accent: #6366f1;
  --mc-radius: 10px;
}

.mug-customizer-wrap {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 20px auto;
  background: #1a1a2e;
  padding: 20px;
  border-radius: var(--mc-radius);
  color: white;
  box-sizing: border-box;
}

.mc-toolbar {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

.mc-toolbar-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  background: rgba(0,0,0,0.2);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
}

.mc-toolbar-label {
  font-size: 10px;
  font-weight: bold;
  color: #888;
  margin-right: 5px;
  text-transform: uppercase;
}

.mc-btn {
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.mc-btn:hover { background: rgba(255,255,255,0.2); }
.mc-btn--primary { background: var(--mc-accent); border: none; }
.mc-btn--danger { background: #ef4444; border: none; }

.mc-canvas-wrap {
  width: 100% !important;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  margin: 20px 0;
  min-height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mc-panel {
  display: none;
  background: #252545;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.mc-panel.is-open { 
  display: block !important; 
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mc-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mc-x {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.mc-lib-grid, .mc-emoji-grid, .mc-shape-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  max-height: 400px;
  overflow-y: auto;
}

.mc-emoji-grid {
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
}

.mc-shape-grid {
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}

.mc-emoji-item, .mc-shape-item {
  font-size: 40px;
  text-align: center;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-emoji-item:hover, .mc-shape-item:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,0.1);
}

.mc-shape-svg {
  width: 40px;
  height: 40px;
  fill: white;
}

.mc-qr-wrap {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.mc-input:focus {
  outline: none;
  border-color: var(--mc-accent) !important;
}

.mc-lib-item img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  cursor: pointer;
}

.mc-select {
  height: 40px;
  border-radius: 4px;
  border: none;
  padding: 0 10px;
}

.mc-color {
  height: 40px !important;
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  flex: none !important;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 2px;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  box-sizing: border-box;
}
