/* ═══════════════════════════════════════════════════
   Kitchen Orders — Main Styles
═══════════════════════════════════════════════════ */

:root {
  --color-primary: #2c3e50;
  --color-accent: #3498db;
  --color-success: #27ae60;
  --color-border: #dee2e6;
  --color-light: #f8f9fa;
}

/* Keep the project in view while entering a long composition on desktop. */
@media (min-width: 992px) {
  .composition-project {
    position: sticky;
    top: 0;
    z-index: 1010;
  }
}

body {
  background: #f0f2f5;
  color: #2c3e50;
}

/* ── Section headers ─────────────────────────────── */
.section-header {
  background: var(--color-primary) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

/* ── Order card (list) ───────────────────────────── */
.order-card-img {
  height: 180px;
  object-fit: cover;
}

.order-card-placeholder {
  height: 180px;
}

/* ── Color swatches ──────────────────────────────── */
.color-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.color-option:has(input:checked) {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
}

.color-swatch {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.split-swatch {
  display: inline-flex;
  flex-direction: column;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.split-swatch span {
  flex: 1;
  display: block;
}

/* ── Toggle yes/no buttons ───────────────────────── */
.toggle-btn {
  padding: 8px 28px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  background: #fff;
  user-select: none;
  min-width: 80px;
  text-align: center;
}

.toggle-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(52,152,219,0.35);
}

/* ── Product card (sink / mixer) ─────────────────── */
.product-card {
  display: block;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  background: #fff;
  text-align: center;
}

.product-card:hover {
  border-color: #adc8ea;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.product-card.selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(52,152,219,0.25);
}

.product-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.product-num {
  font-size: 0.8rem;
  color: #555;
  padding: 4px 0;
  font-weight: 600;
}

/* ── Detail view ─────────────────────────────────── */
.product-preview {
  max-height: 160px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  padding: 8px;
}

.w-40 {
  width: 40%;
}

/* ── Cards ───────────────────────────────────────── */
.card {
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card-header {
  border-radius: 12px 12px 0 0 !important;
}
