/* ============================================================
   싸유 라이브 샵 · SSAU LIVE SHOP
   Design system & UI stylesheet
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root{
  --bg-page:#eceef2;
  --surface:#ffffff;
  --surface-soft:#f7f8fa;
  --surface-soft-2:#f1f3f7;

  --ink:#0b1220;
  --ink-2:#1c2534;
  --muted:#6b7280;
  --muted-2:#98a1ae;

  --line:rgba(11,18,32,.075);
  --line-strong:rgba(11,18,32,.14);

  --navy:#0d1b2e;
  --navy-2:#16263d;
  --accent:#0a4f8e;
  --accent-soft:#eef5fc;

  --live-1:#ff5e77;
  --live-2:#ff9f43;
  --live-3:#7c3aed;

  --danger:#d8342a;
  --danger-soft:#fff1ef;

  --sh-xs:0 1px 2px rgba(11,18,32,.05);
  --sh-sm:0 2px 8px rgba(11,18,32,.05), 0 1px 2px rgba(11,18,32,.04);
  --sh-md:0 12px 30px -8px rgba(11,18,32,.12), 0 4px 10px -4px rgba(11,18,32,.06);
  --sh-lg:0 30px 70px -20px rgba(11,18,32,.24), 0 8px 24px -12px rgba(11,18,32,.12);
  --sh-nav:0 -8px 30px -12px rgba(11,18,32,.14);

  --r-xs:10px;
  --r-sm:14px;
  --r-md:18px;
  --r-lg:24px;
  --r-xl:32px;

  --ease:cubic-bezier(.32,.72,0,1);
  --ease-out:cubic-bezier(.22,.8,.28,1);

  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);

  --shell-w:660px;
  --topbar-h:64px;
  --nav-h:66px;
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
  color:var(--ink);
  background:var(--bg-page);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-feature-settings:"ss01" on;
  line-height:1.5;
  letter-spacing:-.01em;
}
body.is-locked{overflow:hidden}
h1,h2,h3,h4,p,dl,dd,dt{margin:0}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
input{font:inherit;color:inherit}
img{display:block;max-width:100%}
svg{display:block}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
[hidden]{display:none !important}
.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" on}

/* ---------- 3. Stage / shell ---------- */
.stage{
  position:relative;
  min-height:100vh;
  min-height:100dvh;
  padding:0;
}
.stage-glow{
  position:fixed;
  border-radius:50%;
  filter:blur(90px);
  pointer-events:none;
  z-index:0;
  opacity:.55;
}
.stage-glow-a{
  width:520px;height:520px;
  top:-180px;left:calc(50% - 460px);
  background:radial-gradient(circle,rgba(124,58,237,.18),transparent 68%);
}
.stage-glow-b{
  width:560px;height:560px;
  bottom:-220px;right:calc(50% - 500px);
  background:radial-gradient(circle,rgba(255,94,119,.16),transparent 68%);
}
.shell{
  position:relative;
  z-index:1;
  width:100%;
  max-width:var(--shell-w);
  margin:0 auto;
  background:var(--surface);
  min-height:calc(100vh - 22px);
  min-height:calc(100dvh - 22px);
  padding-bottom:calc(var(--nav-h) + var(--safe-bottom) + 16px);
}
@media (min-width:760px){
  .stage{padding:30px 0}
  .shell{
    border-radius:var(--r-xl);
    box-shadow:0 40px 100px -40px rgba(11,18,32,.35), 0 0 0 1px rgba(11,18,32,.05);
    min-height:calc(100vh - 60px);
    padding-bottom:calc(var(--nav-h) + 34px);
  }
  .site-foot{border-radius:0 0 var(--r-xl) var(--r-xl)}
}

/* ---------- 4. Topbar ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.82);
  -webkit-backdrop-filter:blur(22px) saturate(180%);
  backdrop-filter:blur(22px) saturate(180%);
  border-bottom:1px solid transparent;
  transition:border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.topbar.is-stuck{
  border-bottom-color:var(--line);
  box-shadow:0 6px 24px -18px rgba(11,18,32,.35);
}
@media (min-width:760px){
  .topbar{border-radius:var(--r-xl) var(--r-xl) 0 0}
}
.topbar-inner{
  height:var(--topbar-h);
  padding:0 16px 0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{display:flex;align-items:center;gap:10px}
.brand-mark{
  width:36px;height:36px;
  color:var(--navy);
  display:grid;place-items:center;
  flex:none;
}
.brand-mark svg{width:100%;height:100%}
.brand-copy{display:flex;flex-direction:column;line-height:1}
.brand-wordmark{
  font-size:19px;
  font-weight:800;
  letter-spacing:-.055em;
  color:var(--ink);
}
.brand-subline{
  margin-top:4px;
  font-size:8.5px;
  font-weight:700;
  letter-spacing:.24em;
  color:var(--muted-2);
}
.top-actions{display:flex;align-items:center;gap:4px}
.icon-box{
  position:relative;
  width:40px;height:40px;
  border-radius:50%;
  display:grid;place-items:center;
  color:var(--ink-2);
  transition:background .2s var(--ease), transform .2s var(--ease);
}
.icon-box svg{width:21px;height:21px}
.icon-box:hover{background:var(--surface-soft)}
.icon-box:active{transform:scale(.92)}
.notice-unread-dot{
  position:absolute;top:9px;right:9px;
  width:6px;height:6px;border-radius:50%;
  background:var(--live-1);
  box-shadow:0 0 0 2px #fff;
  animation:dotPulse 2.6s ease-in-out infinite;
}
.count-badge{
  position:absolute;top:4px;right:3px;
  min-width:17px;height:17px;
  padding:0 4px;
  border-radius:9px;
  background:var(--navy);
  color:#fff;
  font-size:10px;font-weight:800;
  display:grid;place-items:center;
  font-variant-numeric:tabular-nums;
  box-shadow:0 0 0 2px #fff;
  transform:scale(0);
  transition:transform .28s var(--ease);
}
.count-badge.is-on{transform:scale(1)}

/* ---------- 5. Hero ---------- */
.hero{
  position:relative;
  padding:30px 22px 26px;
  text-align:center;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:-40% -20% auto;
  height:420px;
  background:
    radial-gradient(ellipse 42% 52% at 50% 34%, rgba(255,159,67,.14), transparent 70%),
    radial-gradient(ellipse 38% 48% at 26% 22%, rgba(255,94,119,.14), transparent 72%),
    radial-gradient(ellipse 44% 50% at 76% 26%, rgba(124,58,237,.13), transparent 72%);
  pointer-events:none;
}
.hero-badge{
  position:relative;
  width:172px;height:172px;
  margin:0 auto;
  display:block;
  border-radius:50%;
  transition:transform .5s var(--ease);
}
.hero-badge:hover{transform:scale(1.025)}
.hero-badge:active{transform:scale(.97)}
.hero-halo{
  position:absolute;inset:-16px;
  border-radius:50%;
  background:conic-gradient(from 0deg,rgba(255,94,119,.55),rgba(255,159,67,.55),rgba(124,58,237,.5),rgba(255,94,119,.55));
  filter:blur(22px);
  opacity:.5;
  animation:spin 14s linear infinite;
  z-index:0;
}
.hero-ring{
  position:absolute;inset:0;
  border-radius:50%;
  padding:3px;
  background:conic-gradient(from 0deg,var(--live-1),var(--live-2),var(--live-3),var(--live-1));
  animation:spin 9s linear infinite;
  box-shadow:0 14px 40px -14px rgba(255,94,119,.55);
}
.hero-inner{
  display:block;
  width:100%;height:100%;
  border-radius:50%;
  background:#fff;
  padding:5px;
}
.hero-inner img{
  width:100%;height:100%;
  border-radius:50%;
  object-fit:cover;
  animation:spin 9s linear infinite reverse;
}
.live-pill{
  position:absolute;
  right:2px;bottom:12px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  height:26px;
  padding:0 11px 0 9px;
  border-radius:99px;
  background:#fff;
  color:#e0233c;
  font-size:11px;
  font-weight:900;
  letter-spacing:.06em;
  box-shadow:0 6px 18px -6px rgba(11,18,32,.35), 0 0 0 1px rgba(11,18,32,.05);
  z-index:2;
}
.live-dot{
  width:6px;height:6px;
  border-radius:50%;
  background:#f2273f;
  box-shadow:0 0 0 0 rgba(242,39,63,.6);
  animation:livePulse 1.9s ease-out infinite;
}
.hero-title{
  position:relative;
  margin:26px 0 0;
  font-size:26px;
  line-height:1.34;
  font-weight:800;
  letter-spacing:-.045em;
  color:var(--ink);
}
.hero-title em{
  font-style:normal;
  background:linear-gradient(100deg,var(--live-1),var(--live-2) 55%,var(--live-3));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-copy{
  position:relative;
  margin-top:9px;
  font-size:13px;
  color:var(--muted);
  letter-spacing:-.015em;
}
.social-row{
  position:relative;
  margin-top:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.social-btn{
  display:inline-flex;
  align-items:center;
  gap:7px;
  height:38px;
  padding:0 14px 0 11px;
  border-radius:99px;
  background:rgba(255,255,255,.9);
  border:1px solid var(--line);
  font-size:12px;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--ink-2);
  box-shadow:var(--sh-xs);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.social-btn svg{width:19px;height:19px}
.social-btn:hover{transform:translateY(-1px);box-shadow:var(--sh-sm);border-color:var(--line-strong)}
.social-btn:active{transform:scale(.97)}
.social-btn.youtube{color:#e0233c}
.social-btn.youtube .yt-inner{fill:#ee2b3f}
.social-btn.youtube .yt-play{fill:#fff}
.social-btn.tiktok{color:var(--ink)}
.social-btn.tiktok .tt-note{fill:var(--ink)}
.social-btn span{color:var(--ink-2)}
.hero-divider{
  width:1px;height:16px;
  background:var(--line-strong);
  margin:0 4px;
}
.hero-meta{
  font-size:11.5px;
  color:var(--muted);
  letter-spacing:-.01em;
}
.hero-meta strong{
  color:var(--live-1);
  font-weight:800;
  letter-spacing:.04em;
  font-size:10.5px;
}

/* ---------- 6. Search ---------- */
.search-card{
  padding:0 18px 4px;
}
.search-row{display:flex;align-items:center;gap:8px}
.search-shell{
  flex:1;
  display:flex;
  align-items:center;
  gap:9px;
  height:46px;
  padding:0 12px 0 14px;
  border-radius:var(--r-sm);
  background:var(--surface-soft);
  border:1px solid transparent;
  transition:border-color .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
}
.search-shell:focus-within{
  background:#fff;
  border-color:var(--navy);
  box-shadow:0 0 0 3px rgba(13,27,46,.07);
}
.search-shell svg{width:18px;height:18px;color:var(--muted-2);flex:none}
.search-shell input{
  flex:1;min-width:0;
  border:0;background:none;outline:none;
  font-size:14px;
  letter-spacing:-.015em;
}
.search-shell input::placeholder{color:var(--muted-2)}
.search-shell input::-webkit-search-cancel-button{-webkit-appearance:none}
.search-clear{
  width:22px;height:22px;
  border-radius:50%;
  background:rgba(11,18,32,.12);
  color:#fff;
  display:grid;place-items:center;
  flex:none;
}
.search-clear svg{width:13px;height:13px;color:#fff}

.filter-row{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:14px 0 12px;
  margin:0 -18px;
  padding-left:18px;
  padding-right:18px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
  mask-image:linear-gradient(90deg,transparent 0,#000 16px,#000 calc(100% - 16px),transparent 100%);
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16px,#000 calc(100% - 16px),transparent 100%);
}
.filter-row::-webkit-scrollbar{display:none}
.chip{
  flex:none;
  scroll-snap-align:center;
  height:34px;
  padding:0 15px;
  border-radius:99px;
  border:1px solid var(--line);
  background:#fff;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:-.015em;
  color:var(--muted);
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:all .24s var(--ease);
}
.chip:hover{border-color:var(--line-strong);color:var(--ink)}
.chip .chip-count{
  font-size:10.5px;
  font-weight:700;
  color:var(--muted-2);
  font-variant-numeric:tabular-nums;
}
.chip.is-active{
  background:var(--navy);
  border-color:var(--navy);
  color:#fff;
  font-weight:700;
  box-shadow:0 6px 16px -8px rgba(13,27,46,.7);
}
.chip.is-active .chip-count{color:rgba(255,255,255,.62)}

/* ---------- 7. Grid head ---------- */
.grid-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:16px 20px 12px;
}
.grid-title{
  font-size:17px;
  font-weight:800;
  letter-spacing:-.04em;
}
.grid-sub{
  margin-top:2px;
  font-size:11.5px;
  color:var(--muted-2);
  font-variant-numeric:tabular-nums;
}
.grid-sort{position:relative}
.sort-btn{
  display:inline-flex;align-items:center;gap:4px;
  height:30px;padding:0 9px 0 11px;
  border-radius:8px;
  font-size:12px;font-weight:600;
  color:var(--ink-2);
  transition:background .2s var(--ease);
}
.sort-btn:hover{background:var(--surface-soft)}
.sort-btn svg{width:14px;height:14px;color:var(--muted-2);transition:transform .25s var(--ease)}
.sort-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.sort-menu{
  position:absolute;right:0;top:calc(100% + 6px);
  z-index:30;
  min-width:136px;
  padding:5px;
  border-radius:var(--r-sm);
  background:#fff;
  box-shadow:var(--sh-md), 0 0 0 1px var(--line);
  opacity:0;visibility:hidden;
  transform:translateY(-6px) scale(.97);
  transform-origin:top right;
  transition:all .22s var(--ease);
}
.sort-menu.is-open{opacity:1;visibility:visible;transform:none}
.sort-menu button{
  display:block;width:100%;
  padding:9px 10px;
  border-radius:8px;
  text-align:left;
  font-size:12.5px;
  color:var(--ink-2);
  transition:background .15s;
}
.sort-menu button:hover{background:var(--surface-soft)}
.sort-menu button.is-active{font-weight:700;background:var(--surface-soft);color:var(--ink)}

/* ---------- 8. Product grid ---------- */
.product-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  padding:0 16px;
}
@media (min-width:520px){
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 18px}
}
.product-card{
  position:relative;
  border-radius:var(--r-md);
  background:#fff;
  border:1px solid var(--line);
  overflow:hidden;
  text-align:left;
  display:flex;
  flex-direction:column;
  opacity:0;
  transform:translateY(14px);
  transition:opacity .55s var(--ease-out), transform .55s var(--ease-out), box-shadow .35s var(--ease), border-color .35s var(--ease);
  will-change:transform,opacity;
}
.product-card.is-in{opacity:1;transform:none}
.product-card:hover{
  box-shadow:var(--sh-md);
  border-color:transparent;
  transform:translateY(-3px);
}
.product-thumb{
  position:relative;
  aspect-ratio:4/5;
  background:var(--surface-soft-2);
  overflow:hidden;
}
.product-thumb img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .75s var(--ease), opacity .5s;
  opacity:0;
}
.product-thumb img.is-loaded{opacity:1}
.product-card:hover .product-thumb img{transform:scale(1.045)}
.thumb-skeleton{
  position:absolute;inset:0;
  background:linear-gradient(100deg,#eef0f4 20%,#f7f8fa 40%,#eef0f4 60%);
  background-size:220% 100%;
  animation:shimmer 1.5s linear infinite;
}
.product-tag{
  position:absolute;
  top:9px;left:9px;
  display:inline-flex;align-items:center;gap:4px;
  height:21px;
  padding:0 8px;
  border-radius:99px;
  font-size:9.5px;
  font-weight:900;
  letter-spacing:.09em;
  color:#fff;
  background:rgba(11,18,32,.82);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.product-tag.is-live{
  background:linear-gradient(100deg,var(--live-1),var(--live-2) 60%,var(--live-3));
  letter-spacing:.1em;
  box-shadow:0 4px 14px -4px rgba(255,94,119,.65);
}
.product-tag i{
  width:4px;height:4px;border-radius:50%;background:#fff;
  animation:livePulse 1.9s ease-out infinite;
}
.product-body{
  padding:9px 11px 12px;
  display:flex;
  flex-direction:column;
  gap:5px;
  flex:1;
}
.product-code{
  font-size:10px;
  font-weight:700;
  letter-spacing:.05em;
  color:var(--muted-2);
  font-variant-numeric:tabular-nums;
}
.product-name{
  font-size:12.5px;
  line-height:1.42;
  font-weight:600;
  letter-spacing:-.02em;
  color:var(--ink-2);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.84em;
}
.product-price-row{
  margin-top:auto;
  padding-top:4px;
  display:flex;
  align-items:baseline;
  gap:5px;
}
.product-price{
  font-size:15px;
  font-weight:800;
  letter-spacing:-.035em;
  font-variant-numeric:tabular-nums;
}
.product-price .won{font-size:11.5px;font-weight:700;margin-left:1px}
.product-ship{
  display:inline-flex;align-items:center;gap:3px;
  font-size:10px;
  font-weight:600;
  color:var(--accent);
  background:var(--accent-soft);
  padding:2px 6px;
  border-radius:5px;
  letter-spacing:-.01em;
  align-self:flex-start;
}

/* empty */
.empty-state{
  padding:52px 24px 60px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
}
.empty-state-sm{padding:34px 20px 42px}
.empty-icon{
  width:52px;height:52px;
  border-radius:50%;
  background:var(--surface-soft);
  display:grid;place-items:center;
  margin-bottom:6px;
}
.empty-icon svg{width:24px;height:24px;color:var(--muted-2)}
.empty-state strong{font-size:14px;font-weight:700;letter-spacing:-.02em}
.empty-state p{font-size:12.5px;color:var(--muted);margin-bottom:6px}

/* footer */
.site-foot{
  margin-top:38px;
  padding:26px 22px 30px;
  border-top:1px solid var(--line);
  background:var(--surface-soft);
}
.foot-brand{
  font-size:15px;font-weight:800;letter-spacing:-.05em;
}
.foot-brand span{
  font-size:9px;font-weight:700;letter-spacing:.2em;color:var(--muted-2);margin-left:5px;
}
.foot-info{
  margin-top:14px;
  display:grid;
  gap:5px;
}
.foot-info div{display:flex;gap:10px;font-size:11.5px;line-height:1.55}
.foot-info dt{color:var(--muted-2);min-width:56px;flex:none}
.foot-info dd{color:var(--muted)}
.foot-copy{
  margin-top:16px;
  font-size:10.5px;
  color:var(--muted-2);
  letter-spacing:.01em;
}

/* ---------- 9. Bottom nav ---------- */
.bottom-nav{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:100%;
  max-width:var(--shell-w);
  z-index:55;
  padding:0 0 var(--safe-bottom);
  background:rgba(255,255,255,.9);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  backdrop-filter:blur(24px) saturate(180%);
  border-top:1px solid var(--line);
  box-shadow:var(--sh-nav);
}
.bottom-nav-inner{
  height:var(--nav-h);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  align-items:center;
  padding:0 4px;
}
.nav-btn{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  height:100%;
  color:var(--muted-2);
  transition:color .22s var(--ease);
}
.nav-icon{display:grid;place-items:center;width:26px;height:26px}
.nav-icon svg{width:23px;height:23px}
.nav-label{
  font-size:10px;
  font-weight:600;
  letter-spacing:-.02em;
  transition:font-weight .2s;
}
.nav-btn:hover{color:var(--ink-2)}
.nav-btn.is-active{color:var(--navy)}
.nav-btn.is-active .nav-label{font-weight:800}
.nav-btn.is-active::after{
  content:"";
  position:absolute;
  bottom:8px;
  width:3px;height:3px;
  border-radius:50%;
  background:var(--navy);
}
.nav-btn.is-primary{color:var(--ink-2);overflow:visible}
.nav-btn.is-primary .nav-icon-primary{
  width:46px;height:46px;
  border-radius:50%;
  background:linear-gradient(160deg,var(--navy-2),var(--navy));
  color:#fff;
  margin-top:-20px;
  box-shadow:0 10px 24px -8px rgba(13,27,46,.65), 0 0 0 4px #fff;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-btn.is-primary .nav-icon-primary svg{width:26px;height:26px}
.nav-btn.is-primary:hover .nav-icon-primary{transform:translateY(-2px)}
.nav-btn.is-primary:active .nav-icon-primary{transform:scale(.94)}
.nav-btn.is-primary .nav-label{font-weight:700;color:var(--ink)}
.nav-btn.is-primary.is-active::after{display:none}

@media (min-width:760px){
  .bottom-nav{
    bottom:18px;
    width:calc(var(--shell-w) - 36px);
    border-radius:22px;
    border:1px solid var(--line);
    box-shadow:0 20px 50px -18px rgba(11,18,32,.3), 0 0 0 1px rgba(255,255,255,.6);
    overflow:visible;
  }
  .bottom-nav-inner{height:64px}
  .nav-btn.is-primary .nav-icon-primary{margin-top:-18px;box-shadow:0 12px 26px -10px rgba(13,27,46,.6), 0 0 0 4px rgba(255,255,255,.9)}
}

/* ---------- 10. Buttons ---------- */
.btn{
  flex:1;
  height:52px;
  border-radius:var(--r-sm);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:14.5px;
  font-weight:700;
  letter-spacing:-.025em;
  transition:transform .18s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), opacity .2s;
}
.btn:active{transform:scale(.985)}
.btn.primary{
  background:var(--navy);
  color:#fff;
  box-shadow:0 10px 24px -14px rgba(13,27,46,.9);
}
.btn.primary:hover{background:var(--navy-2)}
.btn.secondary{
  background:#fff;
  color:var(--ink);
  border:1px solid var(--line-strong);
}
.btn.secondary:hover{background:var(--surface-soft)}
.btn.danger{background:var(--danger);color:#fff}
.btn.ghost-sm{
  height:36px;flex:none;padding:0 16px;
  border:1px solid var(--line-strong);
  border-radius:99px;
  font-size:12.5px;font-weight:600;
  background:#fff;
}
.btn-sm{height:42px;flex:none;padding:0 18px;font-size:13px;border-radius:var(--r-xs)}
.btn[disabled]{opacity:.42;pointer-events:none}
.small-btn{
  height:30px;
  padding:0 11px;
  border-radius:8px;
  font-size:11.5px;
  font-weight:700;
  color:var(--accent);
  background:var(--accent-soft);
  transition:background .2s;
}
.small-btn:hover{background:#e2effb}

/* ---------- 11. Sheets ---------- */
.backdrop{
  position:fixed;
  inset:0;
  z-index:60;
  background:rgba(9,14,24,.42);
  -webkit-backdrop-filter:blur(4px);
  backdrop-filter:blur(4px);
  opacity:0;
  transition:opacity .35s var(--ease);
}
.backdrop.is-open{opacity:1}
.sheet{
  position:fixed;
  inset:0;
  z-index:65;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  pointer-events:none;
}
.sheet-panel{
  pointer-events:auto;
  width:100%;
  max-width:var(--shell-w);
  max-height:92vh;
  max-height:92dvh;
  display:flex;
  flex-direction:column;
  background:#fff;
  border-radius:var(--r-lg) var(--r-lg) 0 0;
  box-shadow:0 -24px 70px -20px rgba(11,18,32,.3);
  transform:translateY(105vh);
  transition:transform .5s var(--ease);
  will-change:transform;
}
.sheet.is-open .sheet-panel{transform:translateY(0)}
@media (min-width:760px){
  .sheet-panel{max-height:86vh;border-radius:var(--r-lg)}
  .sheet{align-items:center;padding:24px 0}
}
.sheet-grabber{
  width:38px;height:4px;
  border-radius:99px;
  background:rgba(11,18,32,.14);
  margin:9px auto 0;
  flex:none;
}
.sheet-head{
  position:relative;
  padding:12px 20px 14px 22px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex:none;
}
.sheet-title{
  font-size:18px;
  font-weight:800;
  letter-spacing:-.045em;
  line-height:1.3;
}
.sheet-subcopy{
  display:block;
  margin-top:4px;
  font-size:11.5px;
  font-weight:500;
  letter-spacing:-.015em;
  color:var(--muted);
}
.sheet-close{
  width:34px;height:34px;
  border-radius:50%;
  background:var(--surface-soft);
  color:var(--muted);
  display:grid;place-items:center;
  flex:none;
  transition:background .2s, color .2s, transform .2s;
}
.sheet-close svg{width:17px;height:17px}
.sheet-close:hover{background:var(--surface-soft-2);color:var(--ink)}
.sheet-close:active{transform:scale(.9)}
.sheet-body{
  flex:1;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:2px 20px 22px;
  -webkit-overflow-scrolling:touch;
}
.sheet-body::-webkit-scrollbar{width:0}
.sheet-foot{
  flex:none;
  padding:12px 20px calc(14px + var(--safe-bottom));
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.sheet-actions{display:flex;gap:9px}
.action-shipping-note{
  font-size:10.5px;
  color:var(--muted-2);
  text-align:center;
  margin-bottom:9px;
  letter-spacing:-.01em;
}

/* ---------- 12. Detail sheet ---------- */
.detail-visual{
  position:relative;
  border-radius:var(--r-md);
  overflow:hidden;
  background:var(--surface-soft-2);
  aspect-ratio:4/5;
  width:100%;
  max-width:330px;
  margin:0 auto;
}
.detail-visual img{width:100%;height:100%;object-fit:cover}
.detail-visual-tag{
  position:absolute;top:12px;left:12px;
  height:23px;padding:0 9px;
  display:inline-flex;align-items:center;
  border-radius:99px;
  font-size:10px;font-weight:900;letter-spacing:.1em;
  color:#fff;
  background:linear-gradient(100deg,var(--live-1),var(--live-2) 60%,var(--live-3));
}
.detail-zoom{
  position:absolute;right:12px;bottom:12px;
  width:38px;height:38px;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  color:var(--ink-2);
  display:grid;place-items:center;
  box-shadow:var(--sh-sm);
  transition:transform .2s var(--ease);
}
.detail-zoom svg{width:18px;height:18px}
.detail-zoom:active{transform:scale(.92)}
.detail-headline{padding:16px 2px 4px}
.detail-code{
  display:inline-block;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.1em;
  color:var(--muted-2);
}
.detail-name{
  margin-top:5px;
  font-size:17px;
  font-weight:700;
  line-height:1.4;
  letter-spacing:-.035em;
}
.detail-price-row{
  margin-top:10px;
  display:flex;
  align-items:baseline;
  gap:9px;
  flex-wrap:wrap;
}
.detail-price{
  font-size:23px;
  font-weight:800;
  letter-spacing:-.045em;
  font-variant-numeric:tabular-nums;
}
.discount-hint{
  font-size:11px;
  font-weight:600;
  color:var(--accent);
  background:var(--accent-soft);
  padding:3px 8px;
  border-radius:6px;
}
.option-card{
  margin-top:14px;
  padding:14px;
  border-radius:var(--r-sm);
  border:1px solid var(--line);
  background:#fff;
}
.option-card-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.option-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.option-title{
  font-size:12.5px;
  font-weight:700;
  letter-spacing:-.02em;
}
.option-value{
  font-size:11.5px;
  color:var(--muted-2);
  letter-spacing:-.01em;
}
.option-value.is-set{color:var(--ink-2);font-weight:600}
.chip-group{display:flex;flex-wrap:wrap;gap:6px}
.opt-chip{
  height:36px;
  min-width:52px;
  padding:0 13px;
  border-radius:9px;
  border:1px solid var(--line-strong);
  background:#fff;
  font-size:12.5px;
  font-weight:600;
  color:var(--ink-2);
  letter-spacing:-.01em;
  transition:all .2s var(--ease);
}
.opt-chip:hover{border-color:var(--ink-2)}
.opt-chip.is-active{
  background:var(--navy);
  border-color:var(--navy);
  color:#fff;
  box-shadow:0 6px 14px -8px rgba(13,27,46,.8);
}
.stepper{
  display:inline-flex;
  align-items:center;
  height:42px;
  border-radius:var(--r-xs);
  border:1px solid var(--line-strong);
  overflow:hidden;
}
.stepper button{
  width:42px;height:100%;
  font-size:18px;
  font-weight:500;
  color:var(--ink-2);
  display:grid;place-items:center;
  transition:background .18s;
}
.stepper button:hover{background:var(--surface-soft)}
.stepper button:active{background:var(--surface-soft-2)}
.stepper input{
  width:44px;
  height:100%;
  border:0;
  border-left:1px solid var(--line);
  border-right:1px solid var(--line);
  text-align:center;
  font-size:14px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  outline:none;
  background:none;
}
.selected-card{
  margin-top:14px;
  padding:15px;
  border-radius:var(--r-md);
  background:var(--surface-soft);
}
.selected-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.selected-summary{
  font-size:12.5px;
  color:var(--muted);
  letter-spacing:-.015em;
  line-height:1.5;
}
.selected-summary.is-set{color:var(--ink-2);font-weight:600}
.selected-inline-price{
  font-size:14px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.03em;
  flex:none;
}
.selected-shipping{
  margin-top:12px;
  display:flex;
  gap:8px;
  padding-top:12px;
  border-top:1px dashed rgba(11,18,32,.12);
}
.selected-shipping-icon{color:var(--muted-2);flex:none;margin-top:1px}
.selected-shipping-icon svg{width:17px;height:17px}
.shipping-copy{display:flex;flex-direction:column;gap:2px;font-size:11px;line-height:1.5;color:var(--ink-2)}
.shipping-copy .muted{color:var(--muted-2)}
.selected-divider{height:1px;background:rgba(11,18,32,.08);margin:13px 0 11px}
.selected-total-line{
  display:flex;align-items:center;justify-content:space-between;
  font-size:12.5px;color:var(--muted);
}
.selected-total-line strong{
  font-size:17px;font-weight:800;color:var(--ink);
  letter-spacing:-.04em;font-variant-numeric:tabular-nums;
}

/* ---------- 13. Cart ---------- */
.cart-item{
  display:flex;
  gap:12px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.cart-item:first-child{padding-top:4px}
.cart-thumb{
  width:78px;height:96px;
  border-radius:11px;
  overflow:hidden;
  background:var(--surface-soft-2);
  flex:none;
}
.cart-thumb img{width:100%;height:100%;object-fit:cover}
.cart-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.cart-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.cart-name{
  font-size:13px;font-weight:600;line-height:1.42;letter-spacing:-.02em;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.cart-remove{
  width:24px;height:24px;border-radius:50%;
  display:grid;place-items:center;color:var(--muted-2);flex:none;
  transition:background .2s,color .2s;
}
.cart-remove svg{width:14px;height:14px}
.cart-remove:hover{background:var(--danger-soft);color:var(--danger)}
.cart-option{
  font-size:11px;color:var(--muted);letter-spacing:-.01em;
}
.cart-bottom{
  margin-top:auto;
  display:flex;align-items:center;justify-content:space-between;gap:8px;
}
.cart-price{
  font-size:14.5px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.03em;
}
.qty-mini{
  display:inline-flex;align-items:center;
  height:30px;
  border-radius:8px;
  border:1px solid var(--line-strong);
  overflow:hidden;
}
.qty-mini button{
  width:28px;height:100%;
  display:grid;place-items:center;
  font-size:14px;color:var(--ink-2);
}
.qty-mini button:hover{background:var(--surface-soft)}
.qty-mini span{
  width:30px;text-align:center;font-size:12px;font-weight:700;
  font-variant-numeric:tabular-nums;
  border-left:1px solid var(--line);border-right:1px solid var(--line);
  line-height:28px;
}
.cart-footer{
  display:flex;
  align-items:center;
  gap:14px;
}
.footer-total{
  display:flex;
  flex-direction:column;
  gap:1px;
  flex:1;
  min-width:0;
}
.footer-total span{font-size:11px;color:var(--muted);letter-spacing:-.01em}
.footer-total strong{
  font-size:19px;font-weight:800;letter-spacing:-.045em;
  font-variant-numeric:tabular-nums;
}
.footer-total small{font-size:10.5px;color:var(--muted-2)}
.cart-footer .btn{flex:none;min-width:140px}

/* ---------- 14. Section cards ---------- */
.section-card{
  margin-bottom:10px;
  padding:15px;
  border-radius:var(--r-md);
  border:1px solid var(--line);
  background:#fff;
}
.section-card:first-child{margin-top:2px}
.section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.section-title-sm{
  font-size:13px;
  font-weight:800;
  letter-spacing:-.03em;
}
.section-sub{
  margin-top:3px;
  font-size:11.5px;
  color:var(--muted);
  letter-spacing:-.01em;
  line-height:1.5;
}
.summary-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:6px 0;
  font-size:12.5px;color:var(--muted);
}
.summary-row strong{
  font-size:13px;font-weight:700;color:var(--ink);
  font-variant-numeric:tabular-nums;letter-spacing:-.02em;
}
.summary-row.total{
  margin-top:5px;padding-top:12px;
  border-top:1px solid var(--line);
  color:var(--ink-2);font-weight:700;
}
.summary-row.total strong{
  font-size:17px;font-weight:800;letter-spacing:-.04em;
}
.customer-summary{display:grid;gap:4px;font-size:12.5px;line-height:1.55}
.customer-summary .cs-row{display:flex;gap:8px}
.customer-summary .cs-label{color:var(--muted-2);min-width:44px;flex:none;font-size:11.5px}
.customer-summary .cs-value{color:var(--ink-2);letter-spacing:-.01em}
.customer-empty{font-size:12px;color:var(--muted);line-height:1.6}
.checkout-item{
  display:flex;gap:10px;align-items:center;
  padding:9px 0;
  border-bottom:1px dashed var(--line);
}
.checkout-item:last-child{border-bottom:0;padding-bottom:0}
.checkout-item-thumb{
  width:46px;height:56px;border-radius:8px;overflow:hidden;
  background:var(--surface-soft-2);flex:none;
}
.checkout-item-thumb img{width:100%;height:100%;object-fit:cover}
.checkout-item-info{flex:1;min-width:0}
.checkout-item-name{
  font-size:12px;font-weight:600;line-height:1.4;letter-spacing:-.015em;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.checkout-item-opt{font-size:10.5px;color:var(--muted-2);margin-top:2px}
.checkout-item-price{
  font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums;flex:none;
}
.account-guide-line{
  display:flex;gap:6px;align-items:flex-start;
  margin-top:8px;
  font-size:11px;color:var(--accent);line-height:1.5;
}
.guide-icon{
  width:14px;height:14px;border-radius:50%;
  background:var(--accent);color:#fff;
  font-size:9px;font-weight:800;
  display:grid;place-items:center;flex:none;margin-top:1px;
  font-style:normal;
}
.checkout-privacy-note{
  font-size:10.5px;
  color:var(--muted-2);
  margin-bottom:10px;
  letter-spacing:-.01em;
}
.account-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  border-radius:var(--r-sm);
  background:var(--surface-soft);
}
.account-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.account-copy strong{font-size:11px;color:var(--muted-2);font-weight:600;letter-spacing:.01em}
.account-copy span{
  font-size:13.5px;font-weight:700;letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;
}
.copy-btn{
  height:32px;padding:0 12px;
  border-radius:8px;
  background:var(--navy);color:#fff;
  font-size:11.5px;font-weight:700;
  flex:none;
  transition:background .2s, transform .2s;
}
.copy-btn:hover{background:var(--navy-2)}
.copy-btn:active{transform:scale(.95)}

/* ---------- 15. Success ---------- */
.success-hero{
  padding:8px 0 18px;
  text-align:center;
}
.success-check{
  width:62px;height:62px;
  margin:0 auto 14px;
  border-radius:50%;
  background:linear-gradient(150deg,var(--navy-2),var(--navy));
  color:#fff;
  display:grid;place-items:center;
  box-shadow:0 16px 34px -14px rgba(13,27,46,.75);
  animation:popIn .5s var(--ease) both;
}
.success-check svg{width:28px;height:28px}
.success-hero h3{font-size:17px;font-weight:800;letter-spacing:-.04em}
.success-hero p{margin-top:5px;font-size:12px;color:var(--muted)}
.success-info-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
  font-size:12px;
}
.success-info-grid .si-row{display:flex;justify-content:space-between;gap:12px;line-height:1.5}
.success-info-grid .si-row span{color:var(--muted-2);flex:none}
.success-info-grid .si-row strong{font-weight:600;text-align:right;letter-spacing:-.01em}
.success-info-grid .si-row strong.num{font-variant-numeric:tabular-nums}

/* ---------- 16. Orders ---------- */
.orders-lookup{
  padding:14px;
  border-radius:var(--r-md);
  background:var(--surface-soft);
  margin-bottom:12px;
}
.orders-lookup label{
  display:block;
  font-size:11.5px;
  font-weight:600;
  color:var(--muted);
  margin-bottom:7px;
}
.orders-lookup-row{display:flex;gap:8px}
.orders-lookup-row input{
  flex:1;min-width:0;
  height:42px;
  padding:0 12px;
  border-radius:var(--r-xs);
  border:1px solid var(--line-strong);
  background:#fff;
  font-size:13.5px;
  font-variant-numeric:tabular-nums;
  outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.orders-lookup-row input:focus{border-color:var(--navy);box-shadow:0 0 0 3px rgba(13,27,46,.07)}
.orders-lookup-help{margin-top:7px;font-size:10.5px;color:var(--muted-2)}
.order-card{
  padding:14px;
  border-radius:var(--r-md);
  border:1px solid var(--line);
  margin-bottom:10px;
}
.order-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding-bottom:10px;
  border-bottom:1px dashed var(--line);
}
.order-date{font-size:11px;color:var(--muted-2);font-variant-numeric:tabular-nums;letter-spacing:.01em}
.order-no{font-size:11px;font-weight:700;letter-spacing:.03em;font-variant-numeric:tabular-nums}
.order-status{
  margin-left:auto;
  height:22px;padding:0 8px;
  border-radius:6px;
  display:inline-flex;align-items:center;
  font-size:10.5px;font-weight:800;
  background:var(--accent-soft);color:var(--accent);
  letter-spacing:-.01em;
}
.order-status.is-done{background:#eefaf1;color:#0f7a3d}
.order-items{display:grid;gap:8px;padding:10px 0}
.order-foot{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding-top:9px;
  border-top:1px dashed var(--line);
}
.order-total{font-size:12px;color:var(--muted)}
.order-total strong{font-size:14px;color:var(--ink);font-weight:800;font-variant-numeric:tabular-nums;margin-left:5px}
.order-actions{display:flex;gap:6px}
.order-actions button{
  height:29px;padding:0 10px;
  border-radius:7px;
  border:1px solid var(--line-strong);
  font-size:11px;font-weight:600;
  color:var(--ink-2);
  background:#fff;
  transition:background .2s;
}
.order-actions button:hover{background:var(--surface-soft)}
.orders-window-note{font-size:10.5px;color:var(--muted-2);text-align:center;margin-bottom:9px}

/* ---------- 17. Profile ---------- */
.profile-summary-card{
  padding:16px;
  border-radius:var(--r-md);
  background:linear-gradient(155deg,#f7f8fa,#eef1f6);
  border:1px solid var(--line);
  margin-bottom:12px;
}
.profile-summary-name{
  display:flex;align-items:center;gap:9px;
  margin-bottom:11px;
}
.profile-avatar{
  width:40px;height:40px;border-radius:50%;
  background:linear-gradient(150deg,var(--navy-2),var(--navy));
  color:#fff;
  display:grid;place-items:center;
  font-size:14px;font-weight:800;
  flex:none;
}
.profile-summary-name strong{font-size:14.5px;font-weight:800;letter-spacing:-.03em}
.profile-summary-name span{font-size:11px;color:var(--muted);display:block;margin-top:1px}
.profile-rows{display:grid;gap:6px}
.profile-row{display:flex;gap:10px;font-size:12px;line-height:1.55}
.profile-row span{color:var(--muted-2);min-width:52px;flex:none;font-size:11.5px}
.profile-row strong{font-weight:600;color:var(--ink-2);letter-spacing:-.01em}
.profile-empty{font-size:12.5px;color:var(--muted);line-height:1.6}
.field-group{display:grid;gap:12px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:11.5px;font-weight:600;color:var(--muted)}
.field input{
  height:46px;
  padding:0 13px;
  border-radius:var(--r-xs);
  border:1px solid var(--line-strong);
  background:#fff;
  font-size:13.5px;
  letter-spacing:-.01em;
  outline:none;
  transition:border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder{color:var(--muted-2)}
.field input:focus{border-color:var(--navy);box-shadow:0 0 0 3px rgba(13,27,46,.07)}
.field input[readonly]{background:var(--surface-soft);color:var(--ink-2)}
.address-row{display:flex;gap:8px}
.address-row input{flex:1;min-width:0}
.address-row .small-btn{height:46px;border-radius:var(--r-xs);padding:0 13px;flex:none}

/* ---------- 18. Deposit ---------- */
.deposit-guide{display:grid;gap:13px}
.deposit-guide-row{display:flex;gap:10px;align-items:flex-start}
.step-num{
  width:20px;height:20px;border-radius:50%;
  background:var(--navy);color:#fff;
  font-size:10.5px;font-weight:800;
  display:grid;place-items:center;flex:none;margin-top:1px;
  font-variant-numeric:tabular-nums;
}
.deposit-guide-row p{font-size:12.5px;line-height:1.55;color:var(--ink-2);letter-spacing:-.015em}
.deposit-guide-row strong{font-weight:700}
.notice-inline strong{font-size:12.5px;font-weight:800;display:block;margin-bottom:5px}
.notice-inline p{font-size:11.5px;color:var(--muted);line-height:1.6}

/* ---------- 19. Modals ---------- */
.modal-backdrop{
  position:fixed;inset:0;z-index:70;
  background:rgba(9,14,24,.46);
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
  opacity:0;
  transition:opacity .3s var(--ease);
}
.modal-backdrop.is-open{opacity:1}
.modal{
  position:fixed;
  left:50%;top:50%;
  z-index:75;
  width:calc(100% - 36px);
  max-width:410px;
  max-height:86vh;
  display:flex;
  flex-direction:column;
  border-radius:var(--r-lg);
  background:#fff;
  box-shadow:var(--sh-lg);
  opacity:0;
  visibility:hidden;
  transform:translate(-50%,-50%) scale(.94);
  transition:opacity .3s var(--ease), transform .38s var(--ease), visibility .3s;
}
.modal.is-open{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1)}
.modal-head{
  padding:18px 20px 12px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  flex:none;
}
.modal-title{font-size:16px;font-weight:800;letter-spacing:-.04em}
.modal-close{
  width:32px;height:32px;border-radius:50%;
  background:var(--surface-soft);
  color:var(--muted);
  display:grid;place-items:center;flex:none;
  transition:background .2s,color .2s,transform .2s;
}
.modal-close svg{width:16px;height:16px}
.modal-close:hover{background:var(--surface-soft-2);color:var(--ink)}
.modal-close:active{transform:scale(.9)}
.modal-foot{
  padding:12px 20px 18px;
  display:flex;gap:9px;
  flex:none;
}
.modal-foot .btn{height:46px}

/* broadcast */
.broadcast-body{
  padding:0 20px 20px;
  overflow-y:auto;
}
.broadcast-live-card{
  position:relative;
  display:flex;align-items:center;gap:12px;
  padding:15px;
  border-radius:var(--r-md);
  background:linear-gradient(140deg,#13213a,#0b1220);
  color:#fff;
  overflow:hidden;
}
.broadcast-live-card::after{
  content:"";
  position:absolute;inset:auto -30% -70% auto;
  width:220px;height:220px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,94,119,.45),transparent 65%);
  filter:blur(12px);
}
.live-pill-sm{position:static;box-shadow:none;height:22px;font-size:10px;padding:0 9px 0 7px}
.broadcast-live-copy{display:flex;flex-direction:column;gap:2px;z-index:1}
.broadcast-live-copy strong{font-size:13px;font-weight:700;letter-spacing:-.02em}
.broadcast-live-copy span{font-size:11px;color:rgba(255,255,255,.6)}
.broadcast-wave{
  margin-left:auto;display:flex;align-items:flex-end;gap:3px;height:22px;z-index:1;
}
.broadcast-wave i{
  width:3px;border-radius:2px;
  background:linear-gradient(180deg,var(--live-1),var(--live-2));
  animation:wave 1.1s ease-in-out infinite;
}
.broadcast-wave i:nth-child(1){height:40%;animation-delay:0s}
.broadcast-wave i:nth-child(2){height:90%;animation-delay:.16s}
.broadcast-wave i:nth-child(3){height:60%;animation-delay:.32s}
.broadcast-wave i:nth-child(4){height:100%;animation-delay:.48s}
.broadcast-desc{margin:16px 0 10px;font-size:12px;color:var(--muted)}
.broadcast-actions{display:grid;gap:8px}
.broadcast-btn{
  display:flex;align-items:center;gap:12px;
  padding:13px 14px;
  border-radius:var(--r-sm);
  border:1px solid var(--line);
  background:#fff;
  text-align:left;
  transition:border-color .22s, background .22s, transform .22s;
}
.broadcast-btn:hover{border-color:var(--line-strong);background:var(--surface-soft);transform:translateX(2px)}
.broadcast-btn:active{transform:scale(.99)}
.broadcast-icon{
  width:40px;height:40px;border-radius:12px;
  display:grid;place-items:center;flex:none;
}
.broadcast-icon svg{width:26px;height:26px}
.broadcast-icon.youtube{background:#fff0f2}
.broadcast-icon.youtube .yt-inner{fill:#ee2b3f}
.broadcast-icon.youtube .yt-play{fill:#fff}
.broadcast-icon.tiktok{background:#f2f3f5}
.broadcast-icon.tiktok .tt-note{fill:#0b1220}
.broadcast-btn-copy{display:flex;flex-direction:column;gap:1px;flex:1}
.broadcast-btn-copy strong{font-size:13px;font-weight:700;letter-spacing:-.02em}
.broadcast-btn-copy small{font-size:11px;color:var(--muted-2)}
.broadcast-btn .chev{width:16px;height:16px;color:var(--muted-2);flex:none}
.broadcast-guide{
  margin-top:14px;
  font-size:10.5px;
  color:var(--muted-2);
  text-align:center;
}

/* notice */
.notice-body{padding:0 20px 8px;overflow-y:auto;display:grid;gap:16px}
.notice-section h3{
  font-size:12px;font-weight:800;letter-spacing:-.02em;
  color:var(--accent);
  margin-bottom:7px;
}
.notice-copy{display:grid;gap:7px}
.notice-copy p{font-size:12px;line-height:1.68;color:var(--ink-2);letter-spacing:-.015em}
.notice-copy strong{font-weight:700}

/* talk */
.talk-body{padding:0 20px 6px}
.talk-desc{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:14px}
.talk-actions{display:grid;gap:8px}
.talk-btn{
  display:flex;align-items:center;gap:12px;
  padding:12px 14px;
  border-radius:var(--r-sm);
  border:1px solid var(--line);
  text-align:left;
  transition:background .2s, border-color .2s;
}
.talk-btn:hover{background:var(--surface-soft);border-color:var(--line-strong)}
.talk-icon{
  width:38px;height:38px;border-radius:11px;
  display:grid;place-items:center;
  font-size:9.5px;font-weight:900;letter-spacing:.02em;
  flex:none;
}
.talk-icon.kakao{background:#fee500;color:#3c1e1e}
.talk-icon.insta{background:linear-gradient(135deg,#f58529,#dd2a7b 55%,#8134af);color:#fff}
.talk-btn span:last-child{display:flex;flex-direction:column;gap:1px}
.talk-btn strong{font-size:12.5px;font-weight:700;letter-spacing:-.02em}
.talk-btn small{font-size:11px;color:var(--muted-2)}

/* zoom */
.zoom-layer{
  position:fixed;inset:0;z-index:90;
  background:rgba(6,10,18,.94);
  display:grid;place-items:center;
  padding:20px;
  opacity:0;
  transition:opacity .3s var(--ease);
}
.zoom-layer.is-open{opacity:1}
.zoom-layer img{
  max-width:100%;max-height:84vh;
  border-radius:12px;
  object-fit:contain;
  transform:scale(.96);
  transition:transform .4s var(--ease);
}
.zoom-layer.is-open img{transform:scale(1)}
.zoom-close{
  position:absolute;top:calc(18px + var(--safe-top));right:18px;
  width:40px;height:40px;border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  display:grid;place-items:center;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.zoom-close svg{width:18px;height:18px}

/* address */
.address-body{padding:0 20px 20px;overflow-y:auto}
.address-help{font-size:11.5px;color:var(--muted-2);margin-bottom:9px}
.address-search-row{display:flex;gap:8px;margin-bottom:12px}
.address-search-row input{
  flex:1;min-width:0;height:44px;
  padding:0 12px;
  border-radius:var(--r-xs);
  border:1px solid var(--line-strong);
  font-size:13px;outline:none;
}
.address-search-row input:focus{border-color:var(--navy);box-shadow:0 0 0 3px rgba(13,27,46,.07)}
.address-search-row .btn{height:44px}
.address-results{display:grid;gap:6px;max-height:300px;overflow-y:auto}
.address-item{
  padding:11px 12px;
  border-radius:var(--r-xs);
  border:1px solid var(--line);
  text-align:left;
  transition:background .18s, border-color .18s;
}
.address-item:hover{background:var(--surface-soft);border-color:var(--line-strong)}
.address-item strong{display:block;font-size:12.5px;font-weight:700;letter-spacing:-.02em}
.address-item span{display:block;font-size:11px;color:var(--muted-2);margin-top:2px}
.address-empty{font-size:11.5px;color:var(--muted-2);text-align:center;padding:26px 0}
.address-or{display:flex;align-items:center;gap:10px;font-size:11.5px;color:var(--muted-2);margin:14px 0 10px}
.address-or::before,.address-or::after{content:"";flex:1;height:1px;background:var(--line)}
.btn-block{width:100%;justify-content:center}

/* confirm */
.confirm-modal{
  position:fixed;left:50%;top:50%;z-index:85;
  width:calc(100% - 56px);max-width:330px;
  padding:22px 20px 18px;
  border-radius:20px;
  background:#fff;
  box-shadow:var(--sh-lg);
  opacity:0;visibility:hidden;
  transform:translate(-50%,-50%) scale(.92);
  transition:all .3s var(--ease);
}
.confirm-modal.is-open{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1)}
.confirm-title{font-size:15px;font-weight:800;letter-spacing:-.03em;text-align:center}
.confirm-text{
  margin-top:7px;
  font-size:12.5px;line-height:1.6;color:var(--muted);text-align:center;
}
.confirm-actions{display:flex;gap:8px;margin-top:18px}
.confirm-actions .btn{height:44px;font-size:13.5px;border-radius:12px}

/* ---------- 20. Cart banner ---------- */
.cart-banner{
  position:fixed;
  left:50%;
  bottom:calc(var(--nav-h) + var(--safe-bottom) + 14px);
  z-index:58;
  width:calc(100% - 28px);
  max-width:calc(var(--shell-w) - 28px);
  display:flex;
  align-items:center;
  gap:11px;
  padding:10px 13px 10px 10px;
  border-radius:16px;
  background:rgba(255,255,255,.97);
  -webkit-backdrop-filter:blur(20px);
  backdrop-filter:blur(20px);
  box-shadow:0 18px 44px -16px rgba(11,18,32,.4), 0 0 0 1px rgba(11,18,32,.05);
  transform:translate(-50%,calc(100% + 30px));
  opacity:0;
  pointer-events:none;
  transition:transform .5s var(--ease), opacity .4s var(--ease);
  text-align:left;
}
.cart-banner.is-on{transform:translate(-50%,0);opacity:1;pointer-events:auto}
.cart-banner-thumb{
  width:42px;height:52px;border-radius:9px;overflow:hidden;
  background:var(--surface-soft-2);flex:none;
}
.cart-banner-thumb img{width:100%;height:100%;object-fit:cover}
.cart-banner-text{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.cart-banner-text strong{font-size:12.5px;font-weight:700;letter-spacing:-.02em}
.cart-banner-text span{font-size:11px;color:var(--muted-2)}
.cart-banner-link{
  display:inline-flex;align-items:center;gap:1px;
  font-size:11.5px;font-weight:700;color:var(--accent);flex:none;
}
.cart-banner-link svg{width:13px;height:13px}
@media (min-width:760px){
  .cart-banner{bottom:calc(var(--nav-h) + 32px)}
}

/* ---------- 21. Toast ---------- */
.toast{
  position:fixed;
  left:50%;top:calc(18px + var(--safe-top));
  z-index:95;
  padding:11px 16px;
  border-radius:99px;
  background:rgba(13,27,46,.94);
  color:#fff;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:-.015em;
  white-space:nowrap;
  max-width:calc(100% - 40px);
  overflow:hidden;
  text-overflow:ellipsis;
  box-shadow:0 14px 34px -12px rgba(11,18,32,.7);
  opacity:0;
  transform:translate(-50%,-14px);
  pointer-events:none;
  transition:opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-on{opacity:1;transform:translate(-50%,0)}

/* ---------- 22. Skeleton ---------- */
.skeleton-layer{
  position:absolute;inset:0;z-index:40;
  background:#fff;
  padding:0 16px;
}
.sk-hero{height:172px;width:172px;border-radius:50%;margin:32px auto 24px;background:var(--surface-soft-2);animation:shimmer 1.5s linear infinite}
.sk-line{height:14px;border-radius:7px;background:var(--surface-soft-2);margin-bottom:9px;animation:shimmer 1.5s linear infinite}
.sk-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:26px}
.sk-card{aspect-ratio:4/5;border-radius:var(--r-md);background:var(--surface-soft-2);animation:shimmer 1.5s linear infinite}

/* ---------- 23. Animations ---------- */
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes shimmer{0%{background-position:120% 0}100%{background-position:-120% 0}}
@keyframes livePulse{
  0%{box-shadow:0 0 0 0 rgba(242,39,63,.55)}
  70%{box-shadow:0 0 0 6px rgba(242,39,63,0)}
  100%{box-shadow:0 0 0 0 rgba(242,39,63,0)}
}
@keyframes dotPulse{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.45;transform:scale(.8)}
}
@keyframes popIn{
  0%{transform:scale(.6);opacity:0}
  60%{transform:scale(1.06)}
  100%{transform:scale(1);opacity:1}
}
@keyframes wave{
  0%,100%{transform:scaleY(.5)}
  50%{transform:scaleY(1)}
}
@keyframes fadeUp{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .product-card{opacity:1;transform:none}
}

/* ---------- 24. Small screens ---------- */
@media (max-width:380px){
  .hero-title{font-size:23px}
  .hero-badge{width:152px;height:152px}
  .brand-wordmark{font-size:17.5px}
  .icon-box{width:36px;height:36px}
  .topbar-inner{padding:0 12px 0 14px}
  .product-body{padding:8px 9px 10px}
  .product-name{font-size:11.5px}
  .product-price{font-size:14px}
}

/* ---------- 25. 라이브 특가 (라이브가격 노출) ---------- */
.product-price-origin{
  display:inline-block;
  margin-left:6px;
  font-size:12px;
  font-weight:500;
  color:var(--muted-2,#9aa3ad);
  text-decoration:line-through;
}
.product-price-row .product-price.is-live{
  color:#ff3b5c;
}
.detail-price-row{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:8px;
}
.detail-price{font-size:22px;font-weight:800;color:#0d1b2e}
.detail-price-origin{
  font-size:14px;
  font-weight:500;
  color:var(--muted-2,#9aa3ad);
  text-decoration:line-through;
}
.detail-live-note{
  margin:8px 0 0;
  font-size:12.5px;
  font-weight:700;
  color:#ff3b5c;
}
.broadcast-sub-on{color:#ff5e77}
