:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: a showroom drenched in the chosen jacket's colour, inflated SOFO letters behind it, then a gapless colour-block wall. One committed look. */
:root {
  --ground: #ffb3a6;
  --on: #000000;
  --puff-hi: #ffffff;
  --puff-mid: #fff0ed;
  --puff-low: #f0998b;
  --puff-seam: #b9695d;
  --paper: #ffffff;
  --black: #000000;
  --soft: #eceef3;
  --quiet: #555b68;
  --danger: #b00020;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Onest", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px)); }
body { background: var(--paper); color: var(--black); font: 400 1.0625rem/1.5 var(--body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ground); }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; box-shadow: 0 0 0 2px var(--paper); }
.gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .7rem 1.4rem; border: 2px solid currentColor; border-radius: 99px; background: transparent; color: inherit; font-weight: 600; line-height: 1.15; text-align: center; text-decoration: none; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn-fill { border-color: var(--black); background: var(--black); color: var(--paper); }
.btn-light { border-color: var(--paper); background: var(--paper); color: var(--black); }
.btn-danger { color: var(--danger); }
.btn-danger.sure { border-color: var(--danger); background: var(--danger); color: var(--paper); }

/* Header */
#top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--ground); color: var(--on); transition: background-color .45s; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; min-height: 4.5rem; }
.home { min-height: 48px; padding: 0; border: 0; background: none; font: 800 1.3rem/1 var(--display); }
.nav { display: flex; align-items: center; gap: .4rem; }
.nav a { padding: .75rem .8rem; color: inherit; font-weight: 600; text-decoration: none; border-radius: 99px; }
.nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.cart { min-height: 46px; padding-block: .5rem; }
.cart b { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; padding-inline: .4rem; border-radius: 99px; background: var(--paper); color: var(--black); font-size: .95rem; font-variant-numeric: tabular-nums; }
.cart.bump { animation: bump .35s; }
@keyframes bump { 45% { transform: scale(1.12); } }

/* Showroom */
#hero { position: relative; overflow: hidden; background: var(--ground); color: var(--on); transition: background-color .45s; }
#word { position: relative; max-width: 88rem; margin-inline: auto; }
#word svg { display: block; width: 100%; height: auto; overflow: visible; }
.letter { cursor: pointer; transform-box: fill-box; transform-origin: 50% 60%; transition: transform .25s cubic-bezier(.3, 1.8, .5, 1); }
.letter:hover { transform: translateY(-6px) rotate(-1.5deg); }
.letter:active { transform: scale(.9, .84); }
#word.enter .letter { animation: inflate .75s cubic-bezier(.25, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 80ms); }
@keyframes inflate { from { transform: scale(.95, .92); } to { transform: none; } }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 1rem 2rem; max-width: 88rem; margin: -11.5vw auto 0; padding-bottom: 1.5rem; pointer-events: none; }
.stage > * { pointer-events: auto; }
.pitch { display: grid; justify-items: start; gap: 1.2rem; padding-bottom: 2.2rem; }
.pitch h1 { font-size: clamp(1.75rem, 2.9vw, 3rem); }
.pitch p { max-width: 34ch; font-size: 1.15rem; white-space: pre-line; overflow-wrap: anywhere; }
.star { position: relative; justify-self: center; width: min(100%, 35rem); padding: 0; border: 0; background: none; touch-action: pan-y; }
.star > svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 22px rgb(0 0 0 / .26)); transition: transform .2s ease-out; transform: rotate(calc(var(--tilt, 0) * 1deg)); }
.star img { display: block; width: auto; max-width: 88%; max-height: 35rem; margin-inline: auto; border-radius: 28px; transition: transform .2s ease-out; transform: rotate(calc(var(--tilt, 0) * 1deg)); }
.swap .star { animation: swap .42s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes swap { from { transform: translateX(calc(var(--dir, 1) * 90px)) rotate(calc(var(--dir, 1) * 8deg)) scale(.92); } }
.about { display: grid; justify-items: start; gap: .8rem; padding-bottom: 2.2rem; min-width: 0; }
.about h2 { font-size: clamp(1.35rem, 1.9vw, 1.9rem); }
.about .btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.arrows { display: flex; gap: .5rem; }
.round { display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 2px solid currentColor; border-radius: 50%; background: transparent; color: inherit; }
.round:hover { background: var(--black); border-color: var(--black); color: var(--paper); }
.round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.thumbs { position: relative; display: flex; overflow-x: auto; scrollbar-width: none; }
.thumb { position: relative; flex: 1 0 112px; height: 128px; padding: 8px; border: 0; background: var(--g); color: var(--o); }
.thumb svg, .thumb img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.thumb:hover svg, .thumb:hover img { transform: scale(1.1); }
.thumb[aria-pressed="true"]::after { content: ""; position: absolute; inset: auto 0 0; height: 7px; background: var(--black); }
.thumb:focus-visible { outline-offset: -5px; box-shadow: none; }
.faded > svg, .faded > img, .faded > .shot { filter: grayscale(1); opacity: .5; }

/* Shared product pieces */
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.price small { font-size: 1rem; font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: .25rem .8rem .25rem .6rem; border: 0; border-radius: 99px; background: var(--paper); color: var(--black); font-weight: 600; font-size: .98rem; }
.status::before { content: ""; width: .75rem; height: .75rem; border: 2px solid #087a42; border-radius: 50%; background: #087a42; }
.status-order::before { background: none; border-color: #2438c9; }
.status-none::before { height: 0; border-width: 1px; border-color: var(--quiet); border-radius: 0; background: none; }
.sizes { display: flex; flex-wrap: wrap; gap: .4rem; }
.size { position: relative; min-width: 46px; min-height: 46px; padding: .2rem .55rem; border: 2px solid currentColor; border-radius: 14px; background: transparent; color: inherit; font-weight: 600; font-variant-numeric: tabular-nums; }
.size:hover { background: var(--black); border-color: var(--black); color: var(--paper); }
.size.off { border-style: dashed; text-decoration: line-through; font-weight: 400; }
.size em { position: absolute; right: -6px; top: -9px; min-width: 22px; padding: 0 5px; border-radius: 99px; background: var(--black); color: var(--paper); font: 600 .9rem/22px var(--body); }
.editing #modeli .size[aria-pressed="true"] { border-color: var(--black); background: var(--black); color: var(--paper); }

/* Catalogue */
.head { display: grid; gap: 1.3rem; padding-block: 3.2rem 1.6rem; }
.head h2, .band h2 { font-size: clamp(1.9rem, 4.6vw, 3.9rem); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 46px; padding: .45rem 1.05rem; border: 2px solid transparent; border-radius: 99px; background: var(--soft); font-weight: 600; }
.chip:hover { border-color: var(--black); }
.chip[aria-pressed="true"] { background: var(--black); color: var(--paper); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.tile { display: flex; flex-direction: column; min-width: 0; background: var(--g); color: var(--o); cursor: pointer; }
.shot { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; overflow: hidden; background: none; color: inherit; }
.shot svg, .shot img { display: block; width: 100%; height: 100%; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.shot svg { padding: 7% 7% 0; }
.shot img { object-fit: cover; }
.tile:hover .shot svg { transform: scale(1.06) rotate(-2.5deg); }
.tile:hover .shot img { transform: scale(1.04); }
.shot:focus-visible { outline-offset: -5px; box-shadow: none; }
.tag { position: absolute; left: 16px; top: 16px; padding: .2rem .75rem; border-radius: 99px; background: var(--black); color: var(--paper); font-weight: 600; font-size: .95rem; }
.tile-text { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1rem 1.25rem 1.6rem; min-width: 0; }
.tile h3 { font: 600 1.2rem/1.25 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; width: 100%; }
.tile .price { font-size: 1.2rem; }
.tile .btn { width: 100%; margin-top: auto; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; padding: 4px; border-radius: 18px; background: var(--paper); color: var(--black); }
.seg button { min-height: 48px; padding: .25rem; border: 0; border-radius: 14px; background: none; font-weight: 600; font-size: .95rem; line-height: 1.1; }
.seg button[aria-pressed="true"] { background: var(--black); color: var(--paper); }
.add { display: grid; place-content: center; justify-items: center; gap: .8rem; min-height: 16rem; border: 0; background: var(--black); color: var(--paper); font: 600 1.2rem/1.2 var(--display); }
.add b { font-size: 4rem; line-height: 1; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding-block: 1.1rem; background: var(--soft); }
.tools p { flex: 1 1 20rem; }
.none { display: grid; justify-items: start; gap: 1rem; padding: 2.5rem 16px 4rem; }

/* How to order, terms, contacts */
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem 4rem; max-width: 88rem; margin-inline: auto; padding-block: 4rem; }
.steps { display: grid; gap: .6rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps button { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.1rem; width: 100%; padding: 1.1rem 1.3rem; border: 0; border-radius: 26px; background: var(--soft); text-align: left; font-size: 1.15rem; font-weight: 600; transition: background-color .2s; }
.steps button::before { content: counter(step); font: 800 2rem/1 var(--display); }
.steps button:hover { background: var(--ground); color: var(--on); }
.terms { display: grid; align-content: start; }
.terms details { border-bottom: 2px solid var(--black); }
.terms summary { padding-block: 1.1rem; font-size: 1.25rem; font-weight: 600; }
.terms details p, .terms > p { padding-bottom: 1.2rem; max-width: 60ch; overflow-wrap: anywhere; }
#kontakty { background: var(--black); color: var(--paper); margin-bottom: calc(-1 * env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); }
#kontakty :focus-visible { outline-color: var(--paper); box-shadow: none; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .6rem; }
.way { display: grid; gap: .15rem; padding: 1.1rem 1.3rem; border: 0; border-radius: 26px; background: var(--ground); color: var(--on); text-align: left; text-decoration: none; font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; transition: transform .2s; }
.way:hover { transform: translateY(-3px); }
.way small { font-size: .98rem; font-weight: 400; }
.editing #kontakty { padding-bottom: 9rem; }

#owner { padding-block: 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); background: var(--black); color: var(--paper); }
#owner button { min-height: 44px; padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: .25em; }
#owner :focus-visible { outline-color: var(--paper); box-shadow: none; }
.form a { color: inherit; font-weight: 600; text-underline-offset: .25em; }

/* Dialogs */
dialog { width: min(76rem, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 30px; background: var(--paper); color: var(--black); overflow: auto; }
dialog::backdrop { background: rgb(0 0 0 / .6); }
dialog[open] { animation: rise .25s ease-out; }
@keyframes rise { from { transform: translateY(24px); } }
.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: min(44rem, calc(100dvh - 24px)); }
.gallery { display: grid; align-content: center; gap: .8rem; padding: 1rem; background: var(--g); color: var(--o); min-width: 0; }
.zoom { display: block; width: 100%; padding: 0; border: 0; border-radius: 20px; background: none; overflow: hidden; cursor: zoom-in; }
.zoom svg, .zoom img { display: block; width: 100%; max-height: 72dvh; height: auto; object-fit: contain; transition: transform .3s; transform-origin: var(--x, 50%) var(--y, 50%); }
.zoom.in { cursor: zoom-out; }
.zoom.in svg, .zoom.in img { transform: scale(2); }
.minis { display: flex; gap: .5rem; overflow-x: auto; padding: 4px; }
.minis button { flex: 0 0 68px; height: 84px; padding: 0; border: 3px solid transparent; border-radius: 14px; overflow: hidden; background: none; }
.minis button[aria-pressed="true"] { border-color: var(--o); }
.minis img { display: block; width: 100%; height: 100%; object-fit: cover; }
.info { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.3rem 1.6rem 1.8rem; min-width: 0; }
.info h2, .sheet h2 { font-size: clamp(1.5rem, 2.8vw, 2.4rem); }
.info > .price { font-size: 1.5rem; }
.info p { white-space: pre-line; overflow-wrap: anywhere; }
.qtys { display: grid; width: 100%; }
.qty { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding-block: .4rem; border-bottom: 1px solid var(--soft); font-weight: 600; }
.qty.off { color: var(--quiet); font-weight: 400; }
.qty.off > span:first-child { text-decoration: line-through; }
.step { display: grid; grid-template-columns: 46px 4.2rem 46px; align-items: center; }
.step button { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); font-size: 1.5rem; line-height: 1; }
.step button:hover { background: var(--black); color: var(--paper); }
.step button:disabled { opacity: .4; background: var(--soft); color: inherit; cursor: default; }
.step input { width: 100%; min-height: 46px; padding: 0; border: 0; background: none; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; appearance: textfield; }
.warn { width: 100%; padding: .8rem 1rem; border-radius: 16px; background: #ffe9a8; color: var(--black); }
.sheet, .form { display: grid; gap: 1.2rem; max-width: 50rem; margin-inline: auto; padding: 1.4rem 1.6rem 1.8rem; }
.line { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 1rem; padding-bottom: 1.2rem; border-bottom: 2px solid var(--black); }
.line-pic { align-self: start; height: 116px; padding: 6px; border: 0; border-radius: 18px; background: var(--g); overflow: hidden; }
.line-pic svg, .line-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.line-body { display: grid; gap: .5rem; min-width: 0; }
.line h3 { font-size: 1.15rem; overflow-wrap: anywhere; }
.total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; font: 700 clamp(1.2rem, 2.6vw, 1.8rem)/1.2 var(--display); }
.form h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.field { display: grid; gap: .35rem; min-width: 0; font-weight: 600; }
.field small, .hint { font-size: .97rem; font-weight: 400; color: var(--quiet); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .65rem .9rem; border: 2px solid transparent; border-radius: 16px; background: var(--soft); font-weight: 400; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); }
.field textarea { min-height: 7rem; resize: vertical; }
.field input[type="color"] { padding: .3rem; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.2rem; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .8rem; }
.photo { display: grid; align-content: start; gap: .3rem; min-width: 0; }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: var(--soft); }
.photo button { min-height: 44px; border: 0; background: none; text-decoration: underline; text-underline-offset: .2em; }
.pick { position: relative; display: grid; place-items: center; min-height: 5.5rem; padding: 1rem; border: 2px dashed var(--black); border-radius: 20px; font-weight: 600; text-align: center; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pick:focus-within { outline: 3px solid var(--black); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.actions .btn-danger { margin-left: auto; }
.error { color: var(--danger); font-weight: 600; }

.bar { position: fixed; inset: auto 0 0; z-index: 20; padding-block: .75rem calc(.75rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--paper); background: var(--black); color: var(--paper); }
.bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.bar :focus-visible { outline-color: var(--paper); box-shadow: none; }
#toast { position: fixed; z-index: 30; inset: auto auto calc(1.5rem + env(safe-area-inset-bottom, 0px)) 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0; padding: .9rem 1.4rem; border: 2px solid var(--paper); border-radius: 26px; background: var(--black); color: var(--paper); font-weight: 600; overflow-wrap: anywhere; }
.editing #toast { bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 56rem) {
  .stage { grid-template-columns: minmax(0, 1fr); justify-items: center; margin-top: -5vw; gap: .6rem; }
  .star { order: -1; width: min(78%, 25rem); }
  .star img { max-height: 24rem; }
  .about { order: 0; justify-self: stretch; padding-bottom: 1rem; }
  .pitch { order: 1; justify-self: stretch; padding-block: 1rem; }
  .band, .detail { grid-template-columns: minmax(0, 1fr); }
  .band { padding-block: 3rem; }
  .zoom svg, .zoom img { max-height: 46dvh; }
  .detail { min-height: 0; }
}
@media (max-width: 40rem) {
  .nav a { display: none; }
  .top-in { min-height: 4.1rem; }
  .top-in { gap: .4rem; }
  .home { font-size: 1.1rem; }
  .cart { padding-inline: .75rem; font-size: 1rem; gap: .35rem; }
  .nav { gap: .3rem; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 4px 16px; scrollbar-width: none; }
  .chip { flex: none; }
  .actions .btn { flex: 1 1 auto; }
  .actions .btn-danger { margin-left: 0; }
  .sheet, .form, .info { padding-inline: 1rem; }
  .line { grid-template-columns: 72px minmax(0, 1fr); gap: .8rem; }
  .line-pic { height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
