:root {
  --blue: #2A42DE;
  --ink: rgba(0, 0, 0, .85);
  --muted: rgba(0, 0, 0, .5);
  --line: rgba(0, 0, 0, .12);
  --soft: rgba(0, 0, 0, .06);
  --bg: #fff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 "Geist", -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.01em;
}
a { color: inherit; }
button { font: inherit; color: inherit; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; max-width: 760px; margin: 0 auto;
}
.logo img { height: 56px; width: auto; display: block; }
.back { color: var(--blue); text-decoration: none; font-size: 14px; }
.back:hover { text-decoration: underline; }

.wrap { max-width: 640px; margin: 0 auto; padding: 8px 16px 64px; }
h1 { color: var(--blue); font-weight: 600; font-size: 30px; letter-spacing: -0.03em; margin: 8px 0 24px; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.note { padding: 12px 0; }
.error { color: #b3261e; margin: 0 0 12px; }

.pill {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  padding: .7em 1.4em; text-decoration: none; background: var(--soft); color: var(--ink);
}
.pill:hover { background: rgba(0, 0, 0, .1); }
.pill.primary { background: var(--blue); color: #fff; width: 100%; font-weight: 500; padding: .9em 1.4em; }
.pill.primary:hover { filter: brightness(1.1); }
.pill.primary:disabled { opacity: .6; cursor: wait; }
.pill.ghost { background: transparent; border: 1px solid var(--line); padding: .5em 1.1em; }
.pill.ghost:hover { border-color: var(--blue); color: var(--blue); }

/* položky */
.items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.item img { width: 84px; height: 84px; object-fit: cover; background: #f5f5f5; display: block; }
.info { min-width: 0; }
.name { display: block; color: var(--blue); text-decoration: none; font-weight: 600; }
.name:hover { text-decoration: underline; }
.variant { color: var(--muted); font-size: 13px; margin-top: 2px; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.qty button { width: 28px; height: 28px; border: 0; background: none; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; }
.qty button:hover:not(:disabled) { background: var(--soft); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty span { min-width: 1ch; text-align: center; font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.remove { border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 0; margin-top: 8px; }
.remove:hover { color: var(--ink); text-decoration: underline; }

/* doprava */
.block { margin-top: 32px; }
.ship { display: grid; gap: 8px; }
.ship-opt {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer;
}
.ship-opt:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.ship-opt input { accent-color: var(--blue); margin: 0; width: 16px; height: 16px; }
.ship-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.point {
  margin-top: 8px; padding: 14px 16px; background: var(--soft); border-radius: 14px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.point-text { flex: 1 1 220px; }

/* součet */
.totals { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 24px; }
.row { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.row.total { font-weight: 600; font-size: 18px; padding-top: 10px; }

/* poděkování */
.thanks p { max-width: 46ch; }

@media (max-width: 480px) {
  .item { grid-template-columns: 64px 1fr; }
  .item img { width: 64px; height: 64px; }
  .right { grid-column: 2; text-align: left; display: flex; gap: 16px; align-items: baseline; }
  .remove { margin-top: 0; }
  h1 { font-size: 26px; }
}
