:root {
	--bg: #f6f5f1;
	--surface: #ffffff;
	--ink: #14171c;
	--muted: #6b7280;
	--line: #e7e5df;
	--accent: #ffd400;
	--accent-ink: #14171c;
	--ok: #1f9d55;
	--warn: #c77700;
	--bad: #d64545;
	--radius: 20px;
	--shadow: 0 1px 2px rgba(20, 23, 28, .04), 0 8px 24px rgba(20, 23, 28, .06);
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
	min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; padding-top: 28px; padding-bottom: 64px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
a { color: inherit; }
h1, h2 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.muted { color: var(--muted); font-size: .9rem; }
.r { text-align: right; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246,245,241,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; text-decoration: none; }
.brand__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,212,0,.28); }
.top__nav { display: flex; align-items: center; gap: 8px; }
.top__nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.top__nav a:hover, .top__nav a.is-on { background: rgba(20,23,28,.07); }
.top__tel { color: var(--muted); }
.cartbtn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; }
.cartbtn:hover { background: #000 !important; }
.cartbtn__n, .badge { background: var(--accent); color: var(--accent-ink); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: .78rem; font-weight: 800; display: inline-grid; place-items: center; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 32px; max-width: 720px; }
.hero__kicker { display: inline-block; margin: 0 0 14px; padding: 6px 12px; background: var(--accent); border-radius: 999px; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
.hero__lead { margin: 16px 0 0; font-size: 1.15rem; color: var(--muted); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,23,28,.05), 0 16px 36px rgba(20,23,28,.10); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #fff3a6, #ffd400 60%, #ffb800); display: grid; place-items: center; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__ph { font-size: 3.4rem; font-weight: 900; letter-spacing: -.04em; color: rgba(20,23,28,.85); }
.card.is-out .card__media { filter: grayscale(1); opacity: .6; }
.pill { position: absolute; left: 14px; top: 14px; padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.pill::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--ok); }
.pill--low::before { background: var(--warn); }
.pill--out::before { background: var(--bad); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h2 { font-size: 1.25rem; font-weight: 750; }
.card__desc { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.card__buy { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.card__in { margin: 0; font-size: .85rem; font-weight: 600; color: var(--ok); }
.buy { display: flex; gap: 10px; align-items: stretch; }
.buy .btn { flex: 1; }

/* ---------- qty ---------- */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 38px; height: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: #f1efe8; }
.qty input { width: 44px; text-align: center; border: 0; font: inherit; font-weight: 700; background: none; -moz-appearance: textfield; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .1s, filter .15s, background .15s; white-space: nowrap; }
.btn:hover { filter: brightness(.95); }
.btn:active { transform: scale(.98); }
.btn:disabled { background: #e7e5df; color: var(--muted); cursor: not-allowed; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: #fff; filter: none; }
.btn--danger { background: #fde8e8; color: #a02424; }
.btn--lg { padding: 15px 26px; font-size: 1.05rem; width: 100%; }
.row .btn--lg { width: auto; }
.btn--sm { padding: 8px 14px; font-size: .85rem; }

/* ---------- flash ---------- */
.flash { padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; background: #fff; box-shadow: var(--shadow); border-left: 5px solid var(--ok); transition: opacity .5s, transform .5s; }
.flash--error { border-color: var(--bad); }
.flash--warning { border-color: var(--warn); }

/* ---------- page bits ---------- */
.page-title { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 22px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.row .page-title { margin-bottom: 0; }
.row { margin-bottom: 4px; }
.empty { background: #fff; border-radius: var(--radius); padding: 40px; text-align: center; box-shadow: var(--shadow); color: var(--muted); }
.empty .btn { margin-top: 8px; }

/* ---------- cart ---------- */
.cartgrid { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
.lines { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 22px 22px; }
.line { display: grid; grid-template-columns: 64px 1fr auto 110px 28px; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line__thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #fff3a6, #ffd400); display: grid; place-items: center; font-weight: 900; }
.line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.line__main { display: flex; flex-direction: column; min-width: 0; }
.line__sum { text-align: right; font-weight: 800; white-space: nowrap; }
.line__rm { text-decoration: none; color: var(--muted); font-size: 1rem; text-align: center; }
.line__rm:hover { color: var(--bad); }
.lines__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.total { font-size: 1.3rem; }
.total strong { font-weight: 850; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 6px; }
.panel--narrow { max-width: 440px; margin: 40px auto; }
.panel--narrow h1 { font-size: 1.6rem; margin-bottom: 18px; }
.cartgrid .panel { position: sticky; top: 84px; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.form--wide { max-width: 760px; margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 650; font-size: .9rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=password], .form input[type=number], .form input:not([type]), .form textarea, .form input[type=file] {
	width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; background: #fbfaf7; transition: border-color .15s, box-shadow .15s, background .15s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(255,212,0,.35); }
.form textarea { resize: vertical; }
.check { display: flex !important; flex-direction: row !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: .88rem !important; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.err, .errors { color: var(--bad); font-size: .85rem; font-weight: 600; margin: 0; padding: 0; list-style: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.curimg img { max-width: 160px; border-radius: 12px; display: block; margin-bottom: 8px; }

/* ---------- done ---------- */
.done { text-align: center; max-width: 560px; margin: 60px auto; }
.done h1 { font-size: 2rem; margin: 20px 0 12px; }
.done p { color: var(--muted); margin: 0 0 24px; }
.done__icon { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); display: inline-grid; place-items: center; font-size: 2.4rem; font-weight: 900; }
.done__icon--err { background: #fde8e8; color: var(--bad); font-size: 1.6rem; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: .88rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- admin ---------- */
.admin .brand__dot { background: var(--ink); box-shadow: 0 0 0 4px rgba(20,23,28,.12); }
.orders { display: flex; flex-direction: column; gap: 18px; }
.order { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; border-left: 6px solid var(--accent); }
.order--done { border-color: var(--ok); }
.order--cancelled { border-color: #c9c5b8; opacity: .7; }
.order__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.order__head .muted { margin-left: 10px; }
.order__cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; }
.order__cols p { margin: 0 0 4px; }
.note { color: var(--muted); font-style: italic; margin-top: 10px !important; }
.items { width: 100%; border-collapse: collapse; font-size: .95rem; }
.items td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.items td:first-child { width: 40px; font-weight: 700; }
.items__total td { font-weight: 800; border-bottom: 0; padding-top: 10px; }
.order__actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.status { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 750; }
.status--new { background: var(--accent); }
.status--done { background: #dcf5e6; color: #14663a; }
.status--cancelled { background: #eee; color: #555; }
.tablewrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; margin-top: 18px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table th.r { text-align: right; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td .btn { margin-left: 4px; }
.thumb { width: 64px; }
.thumb img, .thumb span { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, #fff3a6, #ffd400); font-weight: 900; font-size: .85rem; }
.stockn { font-weight: 800; }
.stockn--out { color: var(--bad); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.cartgrid { grid-template-columns: 1fr; }
	.cartgrid .panel { position: static; }
	.order__cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.top__tel { display: none; }
	.top__nav a { padding: 8px 10px; font-size: .88rem; }
	.line { grid-template-columns: 56px 1fr 28px; grid-template-areas: "t m x" "q q s"; row-gap: 12px; }
	.line__thumb { grid-area: t; width: 56px; height: 56px; }
	.line__main { grid-area: m; }
	.line__rm { grid-area: x; }
	.line .qty { grid-area: q; justify-self: start; }
	.line__sum { grid-area: s; align-self: center; }
	.three { grid-template-columns: 1fr; }
	.hero { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.center { text-align: center; margin: 0; }
.foot__admin { color: var(--muted); opacity: .6; text-decoration: none; }
.foot__admin:hover { opacity: 1; text-decoration: underline; }
.table a { text-decoration: none; }

/* ---------- stav zboží a slevy ---------- */
.tag { align-self: flex-start; display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #eceae3; color: #444; margin-top: -2px; }
.tag--packed { background: #dcf5e6; color: #14663a; }
.tag--unpacked { background: #fff1cc; color: #7a5200; }
.tag--used { background: #e8e8ef; color: #3b3b55; }
.pricebox { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.oldprice { color: var(--muted); font-size: .9rem; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.oldprice s { text-decoration-thickness: 1.5px; }
.sale { background: var(--bad); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.sale-badge { position: absolute; right: 14px; top: 14px; background: var(--bad); color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: .9rem; box-shadow: 0 2px 8px rgba(214,69,69,.4); }
small.oldprice { display: flex; font-size: .78rem; margin-top: 2px; justify-content: flex-end; }
.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form select { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; background: #fbfaf7; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }

/* ---------- logo ---------- */
.brand__logo { height: 36px; width: auto; display: block; margin: -4px 0; }
.hero { max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.hero__text { max-width: 640px; }
.hero__logo { width: min(380px, 38%); height: auto; flex: none; filter: drop-shadow(0 10px 18px rgba(20,23,28,.08)); }
@media (max-width: 760px) {
	.hero { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
	.hero__logo { width: 200px; align-self: center; }
}

.top__in .top__nav { margin-left: auto; }

/* ---------- přehled / dashboard ---------- */
.dash__top { align-items: baseline; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); background: #fff; }
.stat__icon { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: .95rem; background: rgba(255,255,255,.22); }
.stat__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; opacity: .8; padding-right: 48px; }
.stat__value { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 850; letter-spacing: -.02em; white-space: nowrap; }
.stat__sub { font-size: .84rem; font-weight: 650; opacity: .8; }
.stat--profit { background: linear-gradient(135deg, #16a34a, #0f766e); color: #fff; box-shadow: 0 10px 28px rgba(22,163,74,.28); }
.stat--profit.stat--loss { background: linear-gradient(135deg, #e11d48, #b91c1c); box-shadow: 0 10px 28px rgba(225,29,72,.28); }
.stat--profit .stat__sub { opacity: 1; background: rgba(255,255,255,.2); align-self: flex-start; padding: 2px 10px; border-radius: 999px; margin-top: 4px; }
.stat--margin { background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
.stat--margin .stat__icon { background: #6366f1; color: #fff; }
.stat--margin .stat__value { color: #4338ca; }
.stat--cost { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.stat--cost .stat__icon { background: #f97316; color: #fff; }
.stat--cost .stat__value { color: #c2410c; }
.stat--revenue { background: linear-gradient(135deg, #ecfeff, #cffafe); }
.stat--revenue .stat__icon { background: #06b6d4; color: #fff; }
.stat--revenue .stat__value { color: #0e7490; }

.split { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; margin-bottom: 18px; }
.split__bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: #eee; }
.split__cost { background: linear-gradient(90deg, #fb923c, #f97316); transition: width .35s ease; }
.split__profit { background: linear-gradient(90deg, #22c55e, #16a34a); transition: width .35s ease; }
.split__legend { display: flex; gap: 28px; margin-top: 12px; flex-wrap: wrap; font-size: .92rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot--cost { background: #f97316; }
.dot--profit { background: #16a34a; }

.dash__head { align-items: flex-end; margin: 26px 0 12px; }
.dash__head h2 { font-size: 1.3rem; }
.dash__head p { margin: 0; }
.dash__table { font-size: .95rem; }
.dash__table td { white-space: nowrap; }
.dash__table tbody tr { transition: background .15s; }
.dash__table tbody tr:hover td { background: #fafaf6; }
.dash__table tr.is-changed td { background: #fffbe0; }
.prod { display: flex; align-items: center; gap: 12px; }
.prod__txt { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.prod__txt a { text-decoration: none; }
.prod .tag { margin: 0; }
.avatar { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #fff3a6, #ffd400); display: grid; place-items: center; flex: none; font-size: .85rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.stockchip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #eef2f7; font-weight: 700; font-size: .85rem; }
.missing { color: var(--warn); background: #fff4dc; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.pos { color: #15803d; }
.neg { color: var(--bad); }
.profit { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.profit strong { font-weight: 800; }
.bar { display: block; height: 8px; border-radius: 999px; background: #edece6; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4ade80, #16a34a); transition: width .35s ease; }
.bar i.bar--neg { background: linear-gradient(90deg, #fb7185, #e11d48); }
.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; font-weight: 800; font-size: .82rem; }
.chip--good { background: #dcfce7; color: #166534; }
.chip--mid { background: #fef3c7; color: #92400e; }
.chip--bad { background: #fee2e2; color: #991b1b; }
.legend { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: .85rem; flex-wrap: wrap; }
.priceinput { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.priceinput input { width: 108px; padding: 9px 11px; border: 1.5px solid #c7d2fe; border-radius: 10px; font: inherit; font-weight: 800; text-align: right; background: #f5f7ff; color: #312e81; }
.priceinput input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99,102,241,.2); background: #fff; }
.is-changed .priceinput input { border-color: #f59e0b; background: #fffbeb; }
.dash__actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.dirty { color: #b45309; font-weight: 700; font-size: .9rem; }
.btn--save { background: #16a34a; color: #fff; }
.btn--save:disabled { background: #e7e5df; color: var(--muted); }
.stat__sub.pos, .stat__sub.neg { color: inherit; }
@media (max-width: 640px) { .dash__head p { display: none; } }

/* ---------- vysvětlení stavu zboží ---------- */
.hero__lead a { color: var(--ink); font-weight: 650; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.tag { text-decoration: none; }
a.tag:hover { filter: brightness(.95); }
.condinfo { margin-top: 56px; scroll-margin-top: 84px; }
.condinfo h2 { font-size: 1.6rem; margin-bottom: 6px; }
.condinfo > .muted { margin: 0 0 18px; }
.condinfo__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.condcard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; border-top: 5px solid #ddd; }
.condcard p { margin: 12px 0 0; color: #3b4048; }
.condcard .tag { margin: 0; font-size: .85rem; }
.condcard--packed { border-color: #22c55e; }
.condcard--unpacked { border-color: #f59e0b; }
.condcard--used { border-color: #6366f1; }
.cond-hint { margin: 6px 0 0; }

/* ---------- stavy objednávek ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab { text-decoration: none; padding: 9px 16px; border-radius: 999px; background: #fff; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line); display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tab.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.tab__n { background: rgba(20,23,28,.1); border-radius: 999px; padding: 1px 8px; font-size: .8rem; }
.tab.is-on .tab__n { background: rgba(255,255,255,.22); }
.tab--new .tab__n { background: var(--accent); color: var(--accent-ink); }
.tab--sold .tab__n { background: #dcf5e6; color: #14663a; }
.order--sold { border-color: var(--ok); }
.status--sold { background: #dcf5e6; color: #14663a; }
.order__actions { align-items: center; }
.seg { display: inline-flex; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; }
.seg__btn { text-decoration: none; padding: 9px 18px; font-weight: 750; font-size: .9rem; color: #555; transition: background .15s, color .15s; }
.seg__btn:hover { background: #f3f1ea; }
.seg__btn.is-on { cursor: default; }
.seg__btn--new.is-on { background: var(--accent); color: var(--accent-ink); }
.seg__btn--sold.is-on { background: #16a34a; color: #fff; }
.seg__btn--cancelled.is-on { background: #6b7280; color: #fff; }
.seg__btn + .seg__btn { border-left: 1.5px solid var(--line); }

/* ---------- přehled: sekce ---------- */
.sect { font-size: 1.35rem; }
.sect__head { margin: 6px 0 14px; align-items: baseline; }
.sect__head--stock { margin-top: 36px; }
.sold { margin-bottom: 8px; }
.dash__table tfoot td { background: #fafaf6; border-top: 2px solid var(--line); border-bottom: 0; }

/* ---------- jednotné karty produktů ---------- */
.card__media { aspect-ratio: 6 / 5; overflow: hidden; display: block; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.card__media.has-img { background: #fff; border-bottom: 1px solid var(--line); }
.card__media .card__ph { position: absolute; inset: 0; display: grid; place-items: center; }
.card__text { flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.card__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__text.is-open .card__desc { -webkit-line-clamp: unset; display: block; }
.card__more { border: 0; background: none; padding: 0; font: inherit; font-size: .85rem; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; cursor: pointer; }
.card__body { gap: 8px; }
.card h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .tag { margin-top: 0; }
.card__buy { margin-top: auto; }
.card__text:not(:has(.card__desc)) { flex: 0; }

.hero__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 750; text-decoration: none; }
.hero__link:hover { filter: brightness(.95); }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }

/* Cookie lišta */
.cookiebar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(20,23,28,.2); }
.cookiebar[hidden] { display: none; }
.cookiebar p { margin: 0; flex: 1 1 320px; font-size: .92rem; line-height: 1.45; color: var(--ink); }
.cookiebar__btns { display: flex; gap: 10px; flex: 0 0 auto; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { background: var(--bg); }
.foot__cookies { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; opacity: .8; }

/* Stránka Ochrana údajů */
.legal { max-width: 760px; margin: 40px auto 60px; line-height: 1.6; }
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 12px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.legal h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.legal__lead { color: var(--muted); font-size: 1.05rem; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal code { background: var(--line); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.legal__tag { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--muted); vertical-align: middle; }
.legal__btn { font: inherit; font-weight: 700; padding: 2px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; }
.legal__btn:hover { background: var(--bg); }
.legal .btn { margin-top: 24px; }
.foot__link { color: inherit; text-decoration: underline; opacity: .8; }

/* Admin: nastavení */
.status-line { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #c4c7cd; flex: 0 0 auto; }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 4px #dcf5e6; }
.howto { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.howto summary { cursor: pointer; font-weight: 700; }
.howto ol { margin: 12px 0 0; padding-left: 20px; line-height: 1.6; }

/* Admin: návštěvnost */
.ga-meta { margin: -8px 0 16px; }
.ga-note { margin-top: 18px; font-size: .88rem; }
.ga-funnel, .ga-chart { margin-bottom: 18px; }
.funnel { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.funnel__step { flex: 1 1 140px; background: var(--bg); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; }
.funnel__step strong { font-size: 1.7rem; font-weight: 850; letter-spacing: -.02em; }
.funnel__step span { color: var(--muted); font-size: .85rem; font-weight: 650; }
.funnel__step--ok { background: #dcf5e6; }
.funnel__step--ok strong { color: #14663a; }
.funnel__arrow { font-weight: 800; color: var(--muted); white-space: nowrap; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; margin-top: 14px; }
.bars__col { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 2px; }
.bars__col i { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; }
.bars__col:hover i { background: #e6bd00; }
.bars__axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; margin-top: 6px; }
.ga-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.ga-two .tablewrap { margin-top: 0; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 26px 0 20px; }
.howto--inline { margin-top: 8px; padding-top: 8px; border-top: 0; }
.ga-seg { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.ga-seg a { padding: 7px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--ink); }
.ga-seg a.is-on { background: var(--ink); color: #fff; }
