:root {
  --ink: #0a0807; --paper: #efe6d3; --paper-2: rgba(239, 230, 211, .66); --line: rgba(239, 230, 211, .14);
  --claret: #6d1426; --gold: #d4a94e; --glass: rgba(16, 12, 10, .62);
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif; --text: "Barlow", system-ui, sans-serif;
  --spring: cubic-bezier(.22, 1.2, .36, 1); --out: cubic-bezier(.16, 1, .3, 1); --io: cubic-bezier(.65, 0, .35, 1);
  --pw: min(400px, 30vw); --gut: clamp(16px, 2.4vw, 32px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); color: var(--paper); font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body { touch-action: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { opacity: .35; cursor: default; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--paper); color: var(--ink); border-radius: 8px; text-decoration: none; transition: top .3s var(--out); }
.skip:focus { top: 12px; }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; opacity: 0; transition: opacity 1.2s ease; }
#stage.is-grabbing { cursor: grabbing; }
.is-loaded #stage { opacity: 1; }
.vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%); }

/* loader: the crest fills from the bottom like a glass */
#loader { position: fixed; inset: 0; display: grid; place-items: center; z-index: 40; background: var(--ink); transition: opacity .7s ease .2s, visibility 0s linear 1s; }
#loader img { width: 72px; height: 72px; filter: grayscale(1) brightness(.5); }
#loader span { position: absolute; width: 120px; height: 2px; margin-top: 110px; background: var(--line); overflow: hidden; }
#loader span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .4s var(--out); }
.is-loaded #loader { opacity: 0; visibility: hidden; }

/* the page chrome arrives after the doors open */
.top, .panel, .dock, .hint { opacity: 0; }
.is-in .top { opacity: 1; transition: opacity .8s ease .1s; }
.is-in .dock { opacity: 1; transition: opacity .8s ease .35s; }
.is-in .panel { opacity: 1; transition: opacity .6s ease .2s; }
.no-anim * { transition: none !important; animation: none !important; }

.top { position: fixed; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(var(--gut), env(safe-area-inset-top)) var(--gut) 0; pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand b { display: block; font: 800 22px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.brand small { display: block; margin-top: 3px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-2); }
.top__act { display: flex; gap: 8px; align-items: center; }
.ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); transition: transform .5s var(--spring), background .3s; font-size: 22px; line-height: 1; }
.ico svg, .cart svg, .btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico:active { transform: scale(.92); }
@media (hover: hover) { .ico:hover { background: rgba(40, 30, 24, .8); } }
[data-act="sound"] .w1, [data-act="sound"] .w2 { opacity: .25; transition: opacity .3s; }
[data-act="sound"][aria-pressed="true"] .w1 { opacity: 1; }
[data-act="sound"][aria-pressed="true"] .w2 { opacity: 1; transition-delay: .1s; }
.cart { position: relative; height: 44px; padding: 0 16px 0 14px; display: flex; align-items: center; gap: 8px; border-radius: 22px; background: var(--paper); color: var(--ink); font-weight: 600; transition: transform .5s var(--spring); }
.cart:active { transform: scale(.94); }
.cart span { min-width: 1ch; font-variant-numeric: tabular-nums; }
.cart.is-bump { animation: bump .7s var(--spring); }
.cart.is-bump span { animation: count .5s var(--out); }
@keyframes bump { 30% { transform: scale(1.16) rotate(-4deg); } 60% { transform: scale(.96) rotate(2deg); } }
@keyframes count { from { transform: translateY(-70%); opacity: 0; } }

/* product panel */
.panel { position: fixed; z-index: 9; right: var(--gut); top: 50%; width: var(--pw); transform: translateY(-50%); padding: 28px 28px 24px; border-radius: 22px; background: linear-gradient(180deg, rgba(22, 16, 13, .78), rgba(14, 10, 9, .86)); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); outline: none; }
.panel__grip { display: none; }
.panel__kicker { margin: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.panel__name { margin: 10px 0 0; padding-top: .08em; font: 800 clamp(36px, 3.4vw, 54px)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.panel__price { margin: 14px 0 0; font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.panel__price small { display: block; margin-top: 6px; font: 400 13px/1.3 var(--text); color: var(--paper-2); letter-spacing: 0; }
.panel__text { margin: 14px 0 0; color: var(--paper-2); font-size: 15px; line-height: 1.55; }
.lbl { margin: 20px 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-2); }
.sizes { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.sizes::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--mw, 0); transform: translateX(var(--mx, 0)); border-radius: 10px; background: var(--paper); transition: transform .5s var(--spring), width .5s var(--spring); }
.sizes.is-jump::before { transition: none; }
.sizes button { position: relative; flex: 1; min-height: 40px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: color .3s; }
.sizes button[aria-checked="true"] { color: var(--ink); }
.print__row { display: grid; grid-template-columns: 1fr 72px; gap: 8px; }
.print input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--paper); font: 800 22px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; transition: border-color .3s, background .3s; }
.print input::placeholder { color: rgba(239, 230, 211, .28); }
.print input:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, .08); }
.print .num input { text-align: center; }
.panel__cta { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 22px; }
.panel__cta > [hidden] { display: none; }
.btn--icon { width: 54px; padding: 0; }
.is-zoom .btn--icon { background: var(--paper); color: var(--ink); }
.btn { position: relative; height: 54px; padding: 0 20px; border-radius: 16px; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; transition: transform .45s var(--spring), background .3s; }
.btn:active { transform: scale(.96); }
.btn--main { background: var(--paper); color: var(--ink); }
.btn--main .t1, .btn--main .t2 { transition: transform .5s var(--spring), opacity .3s; }
.btn--main .t2 { position: absolute; transform: translateY(140%); }
.btn--main.is-done .t1 { animation: t1 1.6s var(--out); }
.btn--main.is-done .t2 { animation: t2 1.6s var(--out); }
@keyframes t1 { 15%, 75% { transform: translateY(-140%); opacity: 0; } }
@keyframes t2 { 15%, 75% { transform: none; } }
.btn--ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
@media (hover: hover) { .btn--ghost:hover { background: rgba(255, 255, 255, .09); } .btn--main:hover { background: #fff7e6; } }
#flipBtn svg { transition: transform .7s var(--spring); }
#flipBtn[aria-pressed="true"] svg { transform: rotate(180deg); }
.btn--back { width: 100%; margin-top: 8px; }
.goods { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.goods button { width: 100%; min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 14px; border-radius: 12px; text-align: left; transition: background .25s, transform .4s var(--spring); }
.goods button b { font: 800 20px/1 var(--display); }
@media (hover: hover) { .goods button:hover { background: rgba(255, 255, 255, .07); transform: translateX(4px); } }

/* quantity */
.buyqty { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.buyqty .lbl { margin: 0; }
.qty { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.qty button { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; line-height: 1; transition: background .25s, transform .35s var(--spring); }
.qty button:active { transform: scale(.9); }
@media (hover: hover) { .qty button:hover:not(:disabled) { background: rgba(255, 255, 255, .08); } }
.qty output { min-width: 28px; text-align: center; font: 800 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.qty--s button { width: 32px; height: 32px; font-size: 17px; }
.qty--s output { min-width: 20px; font-size: 17px; }
[data-mode="zone"] .buyqty { display: none; }
/* text swaps in a stagger, never all at once */
.panel.is-swap .s1, .panel.is-swap .s2, .panel.is-swap .s3, .panel.is-swap .s4, .panel.is-swap .s5, .panel.is-swap .s6 { animation: rise .7s var(--out) both; }
.panel.is-swap .s2 { animation-delay: .04s; } .panel.is-swap .s3 { animation-delay: .08s; } .panel.is-swap .s4 { animation-delay: .12s; } .panel.is-swap .s5 { animation-delay: .16s; } .panel.is-swap .s6 { animation-delay: .2s; }
.panel.is-swap .s2 { animation-name: riseClip; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes riseClip { from { opacity: 0; transform: translateY(18px); clip-path: inset(-40% 0 100% 0); } to { clip-path: inset(-40% 0 -20% 0); } }

/* the way back to the whole wardrobe, on every view but the main one */
.home { height: 52px; padding: 0 18px 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: 28px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .45s var(--spring), opacity .3s, width .3s; }
.home svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home:active { transform: scale(.95); }
[data-zone="rail"]:not(.is-holding):not(.is-zoom) .home { display: none; }
[data-zone="rail"].is-holding .rail-ctl, [data-zone="drawer"] .rail-ctl, [data-zone="shelf"] .rail-ctl { display: none; }
/* dock */
.dock { position: fixed; z-index: 9; left: 50%; bottom: max(var(--gut), env(safe-area-inset-bottom)); transform: translateX(calc(-50% - var(--pw) / 2 - 16px)); display: flex; gap: 10px; align-items: center; }
.rail-ctl { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 28px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); transition: opacity .4s, transform .5s var(--spring); }
.rail-ctl .ico { background: none; border: 0; backdrop-filter: none; }
.rail-ctl span { min-width: 44px; text-align: center; font: 800 16px/1 var(--display); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
[data-zone="shelf"] .rail-ctl span, [data-zone="drawer"] .rail-ctl span { visibility: hidden; width: 0; min-width: 0; }
.zones { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 28px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); }
.zones__mark { position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--zw, 0); transform: translateX(var(--zx, 0)); border-radius: 22px; background: var(--paper); transition: transform .6s var(--spring), width .6s var(--spring); }
.zones button { position: relative; height: 44px; padding: 0 16px; border-radius: 22px; font-weight: 500; font-size: 15px; white-space: nowrap; transition: color .35s; }
.zones button[aria-current="true"] { color: var(--ink); }

.hint { position: fixed; z-index: 8; left: calc(50% - var(--pw) / 2 - 16px); top: 55%; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 22px; background: var(--glass); backdrop-filter: blur(12px); font-size: 14px; pointer-events: none; }
.is-in .hint { opacity: 1; transition: opacity .8s ease 1.4s; }
.is-touched .hint, .is-zoom .hint, .is-holding .hint, [data-zone="drawer"] .hint, [data-zone="shelf"] .hint { opacity: 0 !important; transition: opacity .4s ease !important; }
.hint__hand { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--paper); animation: swipe 2.2s var(--io) infinite; }
@keyframes swipe { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(10px); } }

/* sheets */
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(5, 4, 3, .5); opacity: 0; transition: opacity .4s ease; }
.scrim.is-open { opacity: 1; }
.sheet { position: fixed; z-index: 21; top: var(--gut); right: var(--gut); bottom: var(--gut); width: min(440px, calc(100vw - 2 * var(--gut))); display: flex; flex-direction: column; padding: 24px; border-radius: 24px; background: #15100d; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); transform: translateX(calc(100% + 40px)); transition: transform .62s var(--spring); overscroll-behavior: contain; touch-action: pan-y; }
.sheet.is-open { transform: none; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; }
.sheet h2 { margin: 0; font: 800 36px/1 var(--display); text-transform: uppercase; }
.cartlist { list-style: none; margin: 18px 0 0; padding: 0; flex: 1; overflow: auto; }
.cartlist li { position: relative; padding: 4px 0; border-bottom: 1px solid var(--line); animation: rise .5s var(--out) both; touch-action: pan-y; }
.cartlist li.is-gone { animation: none; transition: opacity .3s ease, transform .4s var(--spring); opacity: 0; transform: translateX(-30px); }
/* the line is a card that slides; Odobrať waits behind it as a separate rounded button with a gap */
.cartlist .row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 14px; background: #15100d; cursor: grab; user-select: none; transition: background .3s; }
.cartlist li.is-open .row { background: #1d1612; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.cartlist .what { min-width: 0; }
.cartlist .what b { display: block; font-weight: 600; }
.cartlist .what span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--paper-2); }
.cartlist em { min-width: 3.2em; text-align: right; font: 800 20px/1 var(--display); font-style: normal; }
.cartlist .del { position: absolute; z-index: 0; top: 10px; right: 0; bottom: 10px; width: 92px; border-radius: 12px; background: #8e2232; color: var(--paper); font-weight: 600; font-size: 14px; opacity: 0; transform: scale(.9); transition: opacity .25s ease, transform .4s var(--spring); }
.cartlist li.is-peek .del, .cartlist li.is-open .del { opacity: 1; transform: none; }
.cartlist .del:focus-visible { outline-offset: 2px; }
/* the part that slides past the left edge fades out instead of being cut */
.cartlist { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px); mask-image: linear-gradient(to right, transparent 0, #000 14px); padding-left: 12px; margin-left: -12px; }
.cartlist .empty { display: block; padding: 14px 0; color: var(--paper-2); border: 0; animation: none; }
.swipehint { margin: 10px 0 0; font-size: 12px; color: var(--paper-2); }
.ship { margin: 14px 0 0; }
.ship i { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.ship i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--k, 0)); transition: transform .8s var(--out); }
.ship p { margin: 8px 0 0; font-size: 14px; color: var(--paper-2); }
.sheet__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.sheet__foot p { margin: 0; } .sheet__foot b { font: 800 26px/1 var(--display); margin-left: 6px; }
.listbody { flex: 1; overflow: auto; margin-top: 8px; }
.listbody h3 { margin: 22px 0 6px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.listbody ul { list-style: none; margin: 0; padding: 0; }
.listbody button { width: 100%; min-height: 52px; display: grid; grid-template-columns: 1fr auto; text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }
.listbody button small { grid-column: 1; color: var(--paper-2); font-size: 13px; }
.listbody button b { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 800 20px/1 var(--display); }
.fine { margin: 16px 0 0; font-size: 13px; color: var(--paper-2); }
.toast { visibility: hidden; position: fixed; z-index: 30; left: 50%; top: max(var(--gut), env(safe-area-inset-top)); transform: translate(-50%, -140%); max-width: min(440px, calc(100vw - 32px)); padding: 14px 18px; border-radius: 16px; background: var(--paper); color: var(--ink); font-weight: 500; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); transition: transform .6s var(--spring); }
.toast.is-on { visibility: visible; transform: translate(-50%, 0); }
.tip { position: fixed; z-index: 12; left: 0; top: 0; pointer-events: none; display: grid; gap: 1px; padding: 8px 12px; border-radius: 12px; background: rgba(239, 230, 211, .94); color: var(--ink); font-size: 13px; line-height: 1.2; white-space: nowrap; opacity: 0; scale: .9; transform-origin: 0 0; transition: opacity .2s ease, scale .35s var(--spring); }
.tip.is-on { opacity: 1; scale: 1; }
.tip b { font: 800 17px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.tip span { color: rgba(10, 8, 7, .62); }
@media (hover: none) { .tip { display: none; } }
.noscript { position: fixed; inset: auto 16px 16px; padding: 16px; background: var(--paper); color: var(--ink); border-radius: 12px; }
.is-fallback #stage, .is-fallback .panel, .is-fallback .dock, .is-fallback .hint, .is-fallback .top__act .ico { display: none; }
.is-fallback .sheet--list { left: var(--gut); right: auto; width: min(560px, calc(100vw - 2 * var(--gut))); top: 96px; }

/* phones and tall windows: the shop above, a sheet below */
@media (max-aspect-ratio: 23/20) {
  :root { --pw: 0px; }
  .brand b { font-size: 19px; } .brand small { font-size: 11px; }
  .panel { left: 8px; right: 8px; top: auto; bottom: calc(max(8px, env(safe-area-inset-bottom)) + 100px); width: auto; transform: none; padding: 18px 18px 16px; border-radius: 22px; max-height: 62svh; overflow: auto; }
  .panel__grip { display: block; position: absolute; left: 50%; top: 6px; width: 44px; height: 18px; transform: translateX(-50%); }
  .panel__grip::before { content: ""; position: absolute; left: 8px; right: 8px; top: 6px; height: 4px; border-radius: 2px; background: var(--line); }
  .panel__name { font-size: 34px; padding-right: 92px; }
  .panel__price { position: absolute; right: 18px; top: 34px; margin: 0; font-size: 28px; text-align: right; }
  .panel__price small { display: none; }
  .panel__text, .panel__opts .print, .panel .lbl { display: none; }
  .panel.is-open .panel__text, .panel.is-open .panel__opts .print, .panel.is-open .lbl { display: block; }
  .panel .sizes { margin-top: 12px; }
  .panel__cta { margin-top: 12px; }
  .btn { height: 50px; }
  .dock { left: 8px; right: 8px; transform: none; bottom: calc(max(8px, env(safe-area-inset-bottom)) + 40px); }
  .top::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; background: linear-gradient(rgba(10, 8, 7, .85), rgba(10, 8, 7, 0)); pointer-events: none; }
  .rail-ctl { display: none; }
  .home { height: 52px; padding: 0 14px 0 10px; font-size: 14px; }
  .home { font-size: 0; gap: 0; width: 52px; justify-content: center; padding: 0; }
  .home svg { width: 22px; height: 22px; }
  .zones { flex: 1; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .zones::-webkit-scrollbar { display: none; }
  .zones button { padding: 0 14px; flex: none; }
  .hint { left: 50%; top: 57%; }
  .sheet { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 82svh; transform: translateY(calc(100% + 30px)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
