/* BALLOP: shared tokens + catalog showroom + SKU view. Light theme, glass and solid cards. */
:root {
  --bg: #f5f6f8;
  --bg-2: #ffffff;
  --ink: #111318;
  --ink-2: #3a3f4a;
  --muted: #6b7280;
  --line: rgba(17, 19, 24, .08);
  --blue: #2f7fd3;
  --orange: #e8552b;
  --c: #5b9bd5;
  --a: #e8552b;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(17, 19, 24, .05), 0 4px 12px -4px rgba(17, 19, 24, .08);
  --shadow: 0 1px 2px rgba(17, 19, 24, .04), 0 14px 34px -14px rgba(17, 19, 24, .18);
  --shadow-lg: 0 2px 6px rgba(17, 19, 24, .05), 0 30px 60px -24px rgba(17, 19, 24, .28);
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.45, .5, 1);
  --gutter: clamp(16px, 4vw, 64px);
  font-family: 'Noto Sans KR', system-ui, sans-serif;
  color: var(--ink);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; -webkit-user-drag: none; user-select: none; }
[data-t] { white-space: pre-line; }

/* ---------- surfaces ---------- */
/* glass: like an iOS notification, translucent white over a soft colour field */
.glass {
  background: rgba(255, 255, 255, .58);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 30px -14px rgba(17, 19, 24, .22);
}
/* solid: plain white with a soft layered shadow */
.solid { background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 99px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink);
  transition: transform .35s var(--spring), background .3s, box-shadow .3s, color .3s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(17, 19, 24, .55); }
.btn.primary:hover { box-shadow: 0 16px 30px -12px rgba(17, 19, 24, .6); }
.btn.ghost-btn { background: rgba(255, 255, 255, .7); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn.ghost-btn:hover { background: #fff; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  transition: background .5s, box-shadow .5s;
}
body.sku-open .top { background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; pointer-events: none; }
body.sku-open .links, body.sku-open .burger { opacity: 0; transform: translateY(-20px); }
body.sku-open .cart { pointer-events: auto; }
.links, .burger { transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.cart {
  display: flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 99px; font-weight: 700; font-size: 13px;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.cart svg { width: 18px; height: 18px; }
.cart.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.18); } }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .22em; color: var(--muted); margin: 0 0 12px; text-transform: uppercase; }
.hint { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* ---------- showroom / catalog ---------- */
.showroom {
  position: relative; overflow: hidden;
  padding: clamp(80px, 12vw, 140px) var(--gutter) clamp(80px, 10vw, 140px);
  background:
    radial-gradient(50% 40% at 15% 10%, rgba(91, 155, 213, .16), transparent 70%),
    radial-gradient(45% 40% at 90% 30%, rgba(232, 85, 43, .1), transparent 70%),
    linear-gradient(180deg, #f2f3f6 0%, #e9ebef 100%);
}
.intro { max-width: 1400px; margin: 0 auto clamp(40px, 6vw, 70px); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 22px; }
.filters button, .chips button {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 99px; color: var(--ink-2);
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: color .3s, background .3s, transform .3s var(--spring);
}
.filters button:hover, .chips button:hover { transform: translateY(-1px); }
.filters button.on, .chips button.on { color: #fff; background: var(--ink); border-color: var(--ink); }

.shelves {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  column-gap: clamp(12px, 2.5vw, 40px); row-gap: 70px;
}
.slot { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0; text-align: center; outline: none; transition: opacity .45s var(--ease-out); }
.shelves.hovering .slot:not(.hot) { opacity: .5; }
.slot.hidden { display: none; }
.slot:focus-visible .tag b { text-decoration: underline; }

.slot .shoe { width: 100%; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; justify-content: center; padding: 0 6% 6px; }
.slot .shoe img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; transform-origin: 50% 100%;
  transition: transform .6s var(--spring);
  filter: var(--hue) drop-shadow(0 12px 12px rgba(17, 19, 24, .18));
}
.slot.hot .shoe img { transform: translateY(-14px) scale(1.06) rotate(-3deg); }

/* acrylic ledge the shoe stands on */
.ledge {
  position: relative; width: 82%; height: 14px; border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 45%, rgba(220, 225, 232, .7));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 1px 0 rgba(17, 19, 24, .06), 0 14px 18px -6px rgba(17, 19, 24, .22);
}
/* LED strip under the ledge: off by default, lights up on hover */
.led {
  width: 70%; height: 4px; margin-top: 3px; border-radius: 4px; background: var(--a);
  opacity: 0; transform: scaleX(.4);
  box-shadow: 0 0 6px 1px var(--a), 0 0 18px 3px var(--a), 0 0 46px 10px color-mix(in srgb, var(--a) 45%, transparent);
  transition: opacity .35s var(--ease-out), transform .6s var(--ease-out);
}
/* light spilling onto the wall below the LED */
.spill {
  position: absolute; left: 50%; top: calc(100% - 64px); width: 120%; height: 140px;
  transform: translateX(-50%); pointer-events: none; opacity: 0;
  background: radial-gradient(50% 45% at 50% 0%, color-mix(in srgb, var(--a) 32%, transparent), transparent 70%);
  transition: opacity .45s var(--ease-out);
}
.slot.hot .led, .slot.flick .led { opacity: 1; transform: scaleX(1); }
.slot.hot .spill { opacity: 1; }
.slot.idle .spill { opacity: .6; }
.slot.idle .shoe img { transform: translateY(-8px) rotate(-2deg); }

.tag { position: relative; margin-top: 18px; display: grid; gap: 2px; transition: transform .5s var(--ease-out); }
.slot.hot .tag { transform: translateY(4px); }
.tag b { font-size: 14px; font-weight: 900; letter-spacing: .04em; }
.tag span { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--muted); }
.tag em { font-style: normal; font-size: 13px; font-weight: 700; margin-top: 4px; }

.slot.enter { animation: rise .9s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ---------- SKU view ---------- */
.sku { position: fixed; inset: 0; z-index: 20; visibility: hidden; pointer-events: none; overflow: hidden auto; --c: #5b9bd5; --a: #e8552b; }
.sku.open { visibility: visible; pointer-events: auto; }
.sku-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 50% at 52% 50%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%),
    radial-gradient(40% 40% at 90% 90%, color-mix(in srgb, var(--a) 12%, transparent), transparent 70%),
    linear-gradient(180deg, #f7f8fa, #eceef2);
}
.stripes { position: absolute; left: 50%; top: 0; height: 74%; display: flex; gap: clamp(10px, 1.6vw, 26px); transform: translateX(-50%); }
.stripes i {
  display: block; width: clamp(34px, 5vw, 80px); height: 100%; background: var(--c); transform-origin: 50% 0;
  box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--c) 70%, transparent);
  transition: background-color .7s var(--ease);
}
.stripes i:nth-child(2) { transition-delay: .08s; }
.stripes i:nth-child(3) { transition-delay: .16s; }
.ghost {
  position: absolute; left: 50%; bottom: 2vh; transform: translateX(-50%); pointer-events: none;
  font-size: clamp(70px, 15vw, 260px); font-weight: 900; line-height: .8; letter-spacing: -.03em; white-space: nowrap;
  color: rgba(17, 19, 24, .055);
}
.back {
  position: absolute; top: 18px; left: var(--gutter); z-index: 3; display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; padding: 10px 18px 10px 12px; border-radius: 99px;
  transition: transform .35s var(--spring);
}
.back:hover { transform: translateX(-3px); }
.back svg { width: 16px; height: 16px; }

.sku-grid {
  position: relative; z-index: 2; min-height: 100%;
  display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.6fr) auto; align-items: center;
  gap: clamp(16px, 3vw, 48px); padding: 90px var(--gutter) 60px;
}
.info { max-width: 430px; padding: clamp(20px, 2.4vw, 32px); border-radius: 28px; }
.info h2 { font-size: clamp(34px, 4.4vw, 68px); font-weight: 900; line-height: .95; letter-spacing: -.02em; margin: 0 0 18px; }
.price { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; }
.price b { font-size: 22px; font-weight: 900; }
.price s { color: var(--muted); font-size: 14px; }
.desc { color: var(--ink-2); font-size: 14px; line-height: 1.65; margin: 0 0 20px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sizes button {
  min-width: 46px; padding: 9px 10px; border-radius: 12px; font-size: 13px; font-weight: 700;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: background .25s, color .25s, transform .3s var(--spring);
}
.sizes button:hover { transform: translateY(-2px); }
.sizes button.on { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.sizes.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sku .btn.primary { background: var(--c); color: #fff; box-shadow: 0 12px 28px -12px var(--c); transition: background-color .7s var(--ease), transform .35s var(--spring); text-shadow: 0 1px 1px rgba(0, 0, 0, .15); }
.features { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.features li { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 6px 10px; border-radius: 99px; background: rgba(17, 19, 24, .05); }

.stage { position: relative; height: min(64vh, 620px); display: flex; align-items: center; justify-content: center; }
.hero-img {
  position: relative; z-index: 2; max-width: 100%; max-height: 78%; width: auto; height: auto;
  filter: var(--hue) drop-shadow(0 34px 30px rgba(17, 19, 24, .28)); transform: rotate(-8deg);
}
.floor { position: absolute; left: 15%; right: 15%; bottom: 10%; height: 40px; z-index: 1; background: radial-gradient(50% 50% at 50% 50%, rgba(17, 19, 24, .22), transparent 70%); }
.angles { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; padding: 6px; border-radius: 16px; }
.angles button { width: 54px; height: 40px; border-radius: 10px; padding: 4px; border: 1px solid transparent; transition: border-color .3s, background .3s, transform .3s var(--spring); }
.angles button:hover { transform: translateY(-3px); }
.angles button.on { border-color: var(--c); background: #fff; }
.angles img { width: 100%; height: 100%; object-fit: contain; filter: var(--hue); }
.picker { display: grid; grid-template-columns: repeat(2, 76px); gap: 10px; align-content: center; max-height: 80vh; overflow: auto; padding: 10px; border-radius: 22px; }
.picker button {
  position: relative; height: 62px; border-radius: 14px; padding: 6px; background: rgba(255, 255, 255, .65); border: 1.5px solid transparent;
  transition: border-color .3s, background .3s, transform .35s var(--spring);
}
.picker button::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--sw); }
.picker button:hover { transform: translateY(-3px); background: #fff; }
.picker button.on { border-color: var(--ink); background: #fff; }
.picker img { width: 100%; height: 100%; object-fit: contain; }

/* the element that flies between catalog and SKU view */
.flyer { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; transform-origin: 0 0; will-change: transform; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 30px); opacity: 0;
  background: rgba(17, 19, 24, .92); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 20px; border-radius: 99px;
  box-shadow: var(--shadow-lg); transition: opacity .35s var(--ease-out), transform .45s var(--spring); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .sku-grid { grid-template-columns: 1fr; padding-top: 76px; align-items: start; }
  .stage { order: -1; height: 44vh; }
  .info { max-width: none; }
  .picker { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76px; justify-content: start; overflow-x: auto; max-height: none; }
  .stripes { height: 50%; }
  .ghost { bottom: auto; top: 38vh; }
}
@media (max-width: 640px) {
  .shelves { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .tag b { font-size: 12px; }
  .angles button { width: 44px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
