:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e3ddd6;
  --text: #3a332c;
  --text-muted: #8a8175;
  --accent: #c98a6b;
  --accent-hover: #b3735a;
  --warning-bg: #fff6e5;
  --warning-border: #eeda9c;
  --warning-text: #7a5b00;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.app {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.shop-branding {
  display: flex;
  justify-content: center;
  margin: 0 0 28px;
  min-height: 22px;
}

.shop-branding img {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.85;
}

.shop-branding .shop-naam {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.app-header h1 {
  font-size: 1.6rem;
  margin: 0 0 4px;
}

.subtitle {
  color: var(--text-muted);
  margin: 0 0 32px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.step h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin: 0 0 18px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.field-group {
  margin-bottom: 18px;
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.choice-btn:hover {
  border-color: var(--accent);
}

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

.dropzones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.dropzone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fdfcfb;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: #fbf3ee;
}

.dropzone.filled {
  border-style: solid;
  padding: 8px;
}

.dropzone-label {
  font-weight: 600;
  font-size: 0.85rem;
}

.dropzone-hint {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.dropzone-thumb {
  max-width: 100%;
  max-height: 110px;
  border-radius: 4px;
  object-fit: contain;
  background:
    linear-gradient(45deg, #eee 25%, transparent 25%) -6px 0/ 12px 12px,
    linear-gradient(-45deg, #eee 25%, transparent 25%) -6px 0/ 12px 12px,
    linear-gradient(45deg, transparent 75%, #eee 75%) -6px 0/ 12px 12px,
    linear-gradient(-45deg, transparent 75%, #eee 75%) -6px 0/ 12px 12px;
}

.dropzone input[type="file"] {
  display: none;
}

.dropzone-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.swap-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin: -4px 0;
}

.swap-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
}

.swap-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.warnings {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
}

.preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: repeating-conic-gradient(#f2efe c 0% 25%, transparent 0% 50%) 0 0/16px 16px;
  background-color: #f4f1ec;
  border-radius: var(--radius);
  padding: 16px;
}

#preview-canvas {
  max-width: 100%;
  max-height: 60vh;
  display: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#preview-canvas.visible {
  display: block;
}

.preview-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

input[type="text"] {
  width: 100%;
  max-width: 320px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

input[type="text"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}

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

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  background: #d9cfc4;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.app-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 24px;
}
