/* The Pop Up – objednávkový formulář
   Barvy upravíte v proměnných níže. */
.tpuo {
	--tpuo-ink: #2b1d27;
	--tpuo-muted: #85707d;
	--tpuo-line: #f1e1e8;
	--tpuo-bg: #ffffff;
	--tpuo-soft: #fcf0f4;
	--tpuo-pink: #e79cb6;
	--tpuo-accent: #7a4361;
	--tpuo-accent-ink: #ffffff;
	--tpuo-radius: 14px;

	color: var(--tpuo-ink);
	font-size: 16px;
	line-height: 1.45;
	max-width: 1100px;
	margin: 0 auto;
	box-sizing: border-box;
}
.tpuo *, .tpuo *::before, .tpuo *::after { box-sizing: inherit; }
.tpuo [hidden] { display: none !important; }

.tpuo-head { margin-bottom: 20px; }
.tpuo-title { color: var(--tpuo-accent); margin: 0 0 6px; font-size: 1.75em; font-weight: 600; letter-spacing: -0.01em; }
.tpuo-intro { margin: 0; color: var(--tpuo-muted); max-width: 60ch; }

/* Category chips */
.tpuo-cats {
	display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 8px;
	position: sticky; top: 0; z-index: 5; background: var(--tpuo-bg);
	scrollbar-width: none;
}
.tpuo-cats::-webkit-scrollbar { display: none; }
.tpuo-chip {
	flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--tpuo-line);
	color: var(--tpuo-ink); text-decoration: none; font-size: 14px; background: var(--tpuo-bg);
	transition: border-color .15s, background .15s;
}
.tpuo-chip:hover { border-color: var(--tpuo-pink); background: var(--tpuo-soft); color: var(--tpuo-ink); }

/* Layout */
.tpuo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.tpuo-side { position: sticky; top: 64px; scroll-margin-top: 64px; }

/* Menu */
.tpuo-group { margin-bottom: 28px; scroll-margin-top: 64px; }
.tpuo-group-title {
	margin: 0 0 8px; font-size: 13px; font-weight: 600; text-transform: uppercase;
	letter-spacing: .08em; color: var(--tpuo-muted);
}
.tpuo-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tpuo-line); }
.tpuo-item {
	display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
	padding: 14px 10px; margin: 0; border-bottom: 1px solid var(--tpuo-line);
	transition: background .15s;
}
.tpuo-item.is-picked { background: var(--tpuo-soft); }
.tpuo-item-text { display: flex; flex-direction: column; min-width: 0; }
.tpuo-item-name { font-weight: 500; }
.tpuo-item-desc { color: var(--tpuo-muted); font-size: 14px; }
.tpuo-item-price { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.tpuo-unit { display: block; color: var(--tpuo-muted); font-size: 12px; }

/* Stepper */
.tpuo-stepper {
	display: inline-flex; align-items: center; border: 1px solid var(--tpuo-line);
	border-radius: 999px; background: var(--tpuo-bg); overflow: hidden;
}
.tpuo-stepper button {
	appearance: none; border: 0; background: transparent; color: var(--tpuo-ink);
	width: 36px; height: 36px; font-size: 18px; line-height: 1; cursor: pointer; padding: 0;
	border-radius: 0; box-shadow: none; min-height: 0;
}
.tpuo-stepper button:hover { background: var(--tpuo-soft); color: var(--tpuo-accent); }
.tpuo-item.is-picked .tpuo-plus { background: var(--tpuo-pink); color: #fff; }
.tpuo-stepper input {
	width: 40px; height: 36px; border: 0; text-align: center; font: inherit; padding: 0; margin: 0;
	background: transparent; color: var(--tpuo-ink); -moz-appearance: textfield; box-shadow: none;
	font-variant-numeric: tabular-nums;
}
.tpuo-stepper input::-webkit-outer-spin-button,
.tpuo-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tpuo-item.is-picked .tpuo-stepper { border-color: var(--tpuo-pink); }
.tpuo-item.is-picked .tpuo-stepper input { font-weight: 600; }

/* Cart */
.tpuo-cart {
	background: var(--tpuo-bg); border: 1px solid var(--tpuo-line); border-top: 4px solid var(--tpuo-pink); border-radius: var(--tpuo-radius);
	padding: 22px; margin: 0;
}
.tpuo-cart-title { color: var(--tpuo-accent); margin: 0 0 12px; font-size: 1.15em; font-weight: 600; }
.tpuo-cart-lines { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.tpuo-cart-lines li {
	display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; gap: 8px; align-items: baseline;
	padding: 6px 0; margin: 0; font-size: 14px; border-bottom: 1px dashed var(--tpuo-line);
}
.tpuo-line-sum { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tpuo-line-rm {
	appearance: none; border: 0; background: none; color: var(--tpuo-muted); cursor: pointer;
	font-size: 16px; padding: 0; line-height: 1; min-height: 0; box-shadow: none;
}
.tpuo-line-rm:hover { color: var(--tpuo-accent); background: none; }
.tpuo-empty { margin: 0; color: var(--tpuo-muted); font-size: 14px; }
.tpuo-total {
	display: flex; justify-content: space-between; align-items: baseline;
	margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--tpuo-line);
}
.tpuo-total strong { color: var(--tpuo-accent); font-size: 1.4em; font-weight: 600; font-variant-numeric: tabular-nums; }
.tpuo-note { margin: 6px 0 0; font-size: 13px; color: var(--tpuo-muted); }

/* Fields */
.tpuo-fields { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.tpuo-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--tpuo-muted); margin: 0; }
.tpuo-fields input, .tpuo-fields textarea {
	width: 100%; font: inherit; font-size: 15px; color: var(--tpuo-ink); background: var(--tpuo-bg);
	border: 1px solid var(--tpuo-line); border-radius: 10px; padding: 10px 12px; margin: 0; box-shadow: none;
}
.tpuo-fields input:focus, .tpuo-fields textarea:focus { outline: none; border-color: var(--tpuo-accent); box-shadow: 0 0 0 3px var(--tpuo-soft); }
.tpuo-fields textarea { resize: vertical; }
.tpuo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tpuo-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.tpuo-error { margin: 14px 0 0; color: #b3261e; font-size: 14px; }
.tpuo-submit, .tpuo-bar-btn {
	appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600;
	background: var(--tpuo-accent); color: var(--tpuo-accent-ink); border-radius: 999px;
	transition: filter .15s;
}
.tpuo-submit { width: 100%; margin-top: 16px; padding: 14px 20px; font-size: 16px; }
.tpuo-submit:hover, .tpuo-bar-btn:hover { filter: brightness(.94); }
.tpuo-submit:disabled { opacity: .6; cursor: wait; }

/* Mobile bottom bar */
.tpuo-bar {
	display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
	align-items: center; justify-content: space-between; gap: 12px;
	background: var(--tpuo-accent); color: #fff; border-radius: 999px; padding: 8px 8px 8px 20px;
	box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.tpuo-bar-info { font-size: 14px; white-space: nowrap; }
.tpuo-bar-btn { padding: 10px 18px; font-size: 14px; background: var(--tpuo-pink); color: var(--tpuo-ink); }

/* Success */
.tpuo-done {
	text-align: center; padding: 48px 20px; border: 1px solid var(--tpuo-line);
	border-radius: var(--tpuo-radius); background: var(--tpuo-soft); border-color: var(--tpuo-pink);
}
.tpuo-done h3 { color: var(--tpuo-accent); margin: 0 0 8px; font-size: 1.4em; font-weight: 600; }
.tpuo-done p { margin: 0; color: var(--tpuo-muted); }

@media (max-width: 860px) {
	.tpuo-layout { grid-template-columns: 1fr; gap: 8px; }
	.tpuo-side { position: static; }
	.tpuo-bar { display: flex; }
	.tpuo { padding-bottom: 72px; }
}
@media (max-width: 520px) {
	.tpuo-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text text" "price step"; gap: 8px; padding: 12px 4px; }
	.tpuo-item-text { grid-area: text; }
	.tpuo-item-price { grid-area: price; text-align: left; }
	.tpuo-unit { display: inline; margin-left: 4px; }
	.tpuo-stepper { grid-area: step; }
	.tpuo-row { grid-template-columns: 1fr; }
	.tpuo-cart { padding: 18px; }
}
