/* Černá Pekárna – veřejná část */
.cp-app { --cp-bg:#0a0a0a; --cp-panel:#171717; --cp-line:#262626; --cp-gold:#f59e0b; --cp-text:#e7e5e4; --cp-muted:#78716c;
  color: var(--cp-text); background: var(--cp-bg); padding: 20px; border-radius: 14px; }
.cp-app * { box-sizing: border-box; }

.cp-wrap { max-width: 900px; margin: 0 auto; }
.cp-step { margin-bottom: 28px; }
.cp-h { font-size: 18px; margin: 0 0 10px; color: var(--cp-text); }
.cp-chosen { color: var(--cp-gold); font-size: 14px; margin: 8px 0 0; text-transform: capitalize; }
.cp-empty, .cp-empty-sm { color: var(--cp-muted); font-size: 14px; text-align: center; padding: 16px; }

/* kalendář */
.cp-cal-box { max-width: 360px; }
.cp-cal { background: var(--cp-panel); border: 1px solid var(--cp-line); border-radius: 12px; overflow: hidden; }
.cp-cal-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--cp-line); }
.cp-cal-title { text-transform: capitalize; font-size: 15px; }
.cp-cal-nav { background: none; border: none; color: var(--cp-text); font-size: 20px; cursor: pointer; padding: 0 8px; line-height: 1; }
.cp-cal-nav:hover { color: var(--cp-gold); }
.cp-cal-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cp-cal-table th { padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--cp-muted); border-bottom: 1px solid var(--cp-line); }
.cp-cal-table th.cp-cal-fri { color: var(--cp-gold); }
.cp-cal-table td { padding: 0; border-top: 1px solid var(--cp-line); border-left: 1px solid var(--cp-line); }
.cp-cal-wk { width: 34px; text-align: center; font-size: 10px; color: #57534e; background: #111; }
.cp-cal-empty { background: rgba(0,0,0,.4); }
.cp-day { width: 100%; aspect-ratio: 1; border: none; font-size: 14px; cursor: pointer; background: #0a0a0a; color: #57534e; }
.cp-day.cp-open { background: #292524; color: #f5f5f4; font-weight: 600; }
.cp-day.cp-open:hover { background: var(--cp-gold); color: #0a0a0a; }
.cp-day.cp-closed, .cp-day.cp-past { cursor: default; }
.cp-day.cp-past { color: #3f3f46; }
.cp-day.cp-selected { background: var(--cp-gold); color: #0a0a0a; font-weight: 700; }
.cp-cal-legend { display: flex; gap: 14px; padding: 8px 12px; border-top: 1px solid var(--cp-line); font-size: 11px; color: var(--cp-muted); }
.cp-sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; }
.cp-sw-open { background: #292524; border: 1px solid #44403c; }
.cp-sw-closed { background: #0a0a0a; border: 1px solid var(--cp-line); }

/* produkty */
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cp-card { background: var(--cp-panel); border: 1px solid var(--cp-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.cp-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.cp-card-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.cp-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cp-card-name { font-size: 15px; margin: 0; }
.cp-desc { font-size: 12px; color: var(--cp-muted); margin: 4px 0 10px; }
.cp-single { margin-top: auto; display: flex; justify-content: flex-end; }
.cp-variants { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.cp-variant { display: flex; align-items: center; justify-content: space-between; background: #0a0a0a; border-radius: 8px; padding: 5px 8px; }
.cp-variant-name { font-size: 13px; color: #d6d3d1; }

.cp-counter { display: inline-flex; align-items: center; background: #292524; border-radius: 8px; }
.cp-counter.cp-active { background: #44403c; }
.cp-btn-q { background: none; border: none; color: var(--cp-text); width: 30px; height: 30px; font-size: 16px; cursor: pointer; line-height: 1; }
.cp-btn-q:hover { color: var(--cp-gold); }
.cp-qty { min-width: 22px; text-align: center; font-size: 14px; }

/* souhrn a formulář */
.cp-summary { background: var(--cp-panel); border: 1px solid var(--cp-line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.cp-sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 3px 0; }

.cp-input { width: 100%; background: #0a0a0a; border: 1px solid var(--cp-line); border-radius: 8px;
  padding: 10px 12px; color: var(--cp-text); font-size: 14px; margin-bottom: 10px; font-family: inherit; }
.cp-input:focus { outline: none; border-color: var(--cp-gold); }
.cp-textarea { resize: vertical; }

.cp-send { width: 100%; background: var(--cp-gold); color: #0a0a0a; border: none; border-radius: 10px;
  padding: 13px; font-size: 15px; font-weight: 600; cursor: pointer; }
.cp-send:hover:not(:disabled) { background: #fbbf24; }
.cp-send:disabled { background: #292524; color: #57534e; cursor: not-allowed; }

.cp-msg { font-size: 13px; margin: 0 0 8px; min-height: 1px; }
.cp-msg.cp-err { color: #f87171; }

.cp-done { text-align: center; padding: 40px 20px; }
.cp-check { width: 60px; height: 60px; border-radius: 50%; background: var(--cp-gold); color: #0a0a0a;
  font-size: 30px; line-height: 60px; margin: 0 auto 16px; }
.cp-muted { color: var(--cp-muted); font-size: 14px; }

/* galerie */
.cp-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cp-gal-item { margin: 0; background: var(--cp-panel); border: 1px solid var(--cp-line); border-radius: 12px; overflow: hidden; }
.cp-gal-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.cp-gal-item figcaption { font-size: 12px; color: var(--cp-muted); padding: 8px 10px; }
