:root { --bg: #f4f5fb; --card: #fff; --ink: #17172b; --muted: #7b7d93; --v: #5b3df5; --v-l: #ece8ff; --pink: #ff6f91; --r: 22px; --f: 'Sora', system-ui, sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 400 14.5px/1.55 var(--f); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 10px; top: 10px; z-index: 99; background: #fff; padding: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--v); outline-offset: 2px; }
.pbtn { display: inline-flex; align-items: center; justify-content: center; background: var(--v); color: #fff; border: 0; border-radius: 14px; padding: 13px 22px; font-weight: 600; cursor: pointer; transition: transform .15s, background .2s; }
.pbtn:active { transform: scale(.96); }
.pbtn--sm { padding: 10px 16px; font-size: 13.5px; }
.h { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.h a { font-size: 13px; color: var(--v); font-weight: 600; }

.side { position: fixed; inset: 0 auto 0 0; width: 236px; background: var(--card); border-right: 1px solid #ebecf3; padding: 22px 16px; display: flex; flex-direction: column; z-index: 20; }
.side__logo img { height: 64px; margin: 0 8px 26px; }
.side__nav { display: flex; flex-direction: column; gap: 4px; }
.side__nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--muted); font-weight: 500; position: relative; }
.side__nav a:hover { background: var(--bg); color: var(--ink); }
.side__nav a.is-on { background: var(--v-l); color: var(--v); }
.side__nav svg { width: 21px; height: 21px; }
.side__nav b { margin-left: auto; background: var(--pink); color: #fff; font-size: 11px; border-radius: 9px; padding: 1px 7px; display: none; } .side__nav b.has { display: inline-block; }
.side__help { margin-top: auto; background: linear-gradient(135deg, var(--v), #8f6dff); color: #fff; border-radius: 18px; padding: 18px; }
.side__help p { font-weight: 600; margin-bottom: 10px; }
.side__help a { display: inline-block; background: #fff; color: var(--v); border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 600; }

.app { margin-left: 236px; max-width: 1180px; padding: 0 36px 40px; }
.top { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 20px; padding: 18px 0; background: var(--bg); }
.top__hi small { display: block; color: var(--muted); }
.top__hi b { font-size: 20px; font-weight: 600; }
.top__search { flex: 1; max-width: 460px; margin-left: auto; display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; padding: 0 16px; border: 1px solid #ebecf3; }
.top__search svg { width: 19px; color: var(--muted); }
.top__search input { border: 0; background: none; padding: 13px 0; width: 100%; min-width: 0; }
.top__search input:focus { outline: none; }
.top__cart { position: relative; width: 50px; height: 50px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.top__cart svg { width: 22px; }
.top__cart b { position: absolute; top: -5px; right: -5px; background: var(--pink); font-size: 11px; min-width: 20px; height: 20px; border-radius: 10px; display: none; place-items: center; border: 2px solid var(--bg); }
.top__cart b.has { display: grid; }

.stories { margin-top: 6px; }
.stories__row { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.story { flex: none; width: 84px; border: 0; background: none; text-align: center; cursor: pointer; font-size: 12px; font-weight: 500; line-height: 1.3; }
.story__ring { display: block; width: 76px; height: 76px; margin: 0 auto 7px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--v), var(--pink), #ffb648, var(--v)); }
.story__ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.story.is-on .story__ring { background: var(--ink); }
.story.seen .story__ring { background: #d6d7e2; }

.banner { margin-top: 22px; position: relative; }
.banner__slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; scrollbar-width: none; border-radius: 26px; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; border-radius: 26px; overflow: hidden; min-height: 300px; }
.slide > div { padding: 36px 40px; }
.slide img { height: 100%; width: 100%; object-fit: cover; max-height: 340px; }
.slide--a { background: linear-gradient(135deg, #5b3df5, #8b6cff); color: #fff; }
.slide--b { background: #ffe08a; } .slide--c { background: #d8f3ea; }
.chip { display: inline-block; background: rgba(255,255,255,.25); border-radius: 99px; padding: 5px 12px; font-size: 12px; font-weight: 600; }
.slide--b .chip, .slide--c .chip { background: rgba(23,23,43,.08); }
.slide h1, .slide__h { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; margin: 14px 0 8px; }
.slide p { opacity: .85; margin-bottom: 20px; }
.slide--a .pbtn { background: #fff; color: var(--v); }
.banner__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.banner__dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; background: #cfd0dd; cursor: pointer; transition: width .3s; padding: 0; }
.banner__dots button.is-on { width: 24px; background: var(--v); }

.quick { margin-top: 30px; }
.quick__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.qi { background: var(--card); border-radius: 18px; padding: 10px 8px 12px; text-align: center; font-size: 12px; font-weight: 500; line-height: 1.25; transition: transform .2s; }
.qi:hover { transform: translateY(-3px); }
.qi img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 13px; margin-bottom: 8px; }

.reorder { margin-top: 28px; display: flex; align-items: center; gap: 16px; background: var(--card); border-radius: var(--r); padding: 14px 18px 14px 14px; border: 1px dashed #c8bfff; }
.reorder img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; }
.reorder div { flex: 1; } .reorder p { color: var(--muted); font-size: 13px; }

.shelf { margin-top: 34px; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.pc { scroll-snap-align: start; background: var(--card); border-radius: var(--r); padding: 8px; cursor: pointer; text-align: left; border: 0; }
.pc__img { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; }
.pc__img img { width: 100%; height: 100%; object-fit: cover; }
.pc__wish { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; }
.pc__wish svg { width: 17px; }
.pc__wish.is-on { color: var(--pink); } .pc__wish.is-on svg { fill: var(--pink); }
.pc__rate { position: absolute; left: 8px; bottom: 8px; background: rgba(23,23,43,.75); color: #fff; font-size: 11px; border-radius: 8px; padding: 2px 7px; }
.pc h3 { font-size: 14px; font-weight: 600; margin: 10px 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc__row { display: flex; justify-content: space-between; align-items: center; margin: 6px 6px 4px; }
.pc__row b { font-size: 15px; } .pc__row s { color: var(--muted); font-size: 11.5px; margin-left: 4px; }
.pc__plus { width: 34px; height: 34px; border-radius: 11px; border: 0; background: var(--v); color: #fff; font-size: 20px; cursor: pointer; }

.kitlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kit { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: var(--r); padding: 10px; }
.kit img { width: 92px; height: 92px; border-radius: 16px; object-fit: cover; flex: none; }
.kit b { font-size: 15px; display: block; } .kit small { color: var(--muted); display: block; font-size: 12px; line-height: 1.4; }
.kit__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.kit__row s { color: var(--muted); font-size: 11.5px; margin-left: 4px; white-space: nowrap; } .kit__row > span { white-space: nowrap; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perks div { background: var(--card); border-radius: var(--r); padding: 18px; }
.perks span { font-size: 24px; width: 48px; height: 48px; border-radius: 14px; background: var(--v-l); display: grid; place-items: center; margin-bottom: 12px; }
.perks b { display: block; font-size: 14.5px; } .perks small { color: var(--muted); }

.hscroll--reels { grid-auto-columns: calc((100% - 42px) / 4); }
.reel { position: relative; aspect-ratio: 9/14; border-radius: var(--r); overflow: hidden; scroll-snap-align: start; }
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption { position: absolute; inset: auto 0 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: 13px; font-weight: 600; }
.reel small { font-weight: 400; opacity: .85; }
.reel::before { content: '▶'; position: absolute; top: 12px; right: 12px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.85); display: grid; place-items: center; font-size: 11px; color: var(--ink); }
.revlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.rv { background: var(--card); border-radius: var(--r); padding: 18px; }
.rv header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rv header i { width: 36px; height: 36px; border-radius: 50%; background: var(--v-l); color: var(--v); display: grid; place-items: center; font-style: normal; font-weight: 700; }
.rv header small { display: block; color: var(--muted); font-size: 12px; }
.rv header span { margin-left: auto; color: #ffb648; font-size: 13px; }
.rv p { font-size: 13.5px; color: #3b3c52; }
.creator-cta { display: inline-block; margin-top: 16px; color: var(--v); font-weight: 600; }

.wa { margin-top: 34px; display: flex; align-items: center; gap: 20px; background: #e2f7ea; border-radius: var(--r); padding: 20px 22px; flex-wrap: wrap; }
.wa > div { flex: 1; min-width: 200px; } .wa b { display: block; font-size: 16px; } .wa small { color: #4b6b57; }
.wa form { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.wa input { flex: 1; min-width: 0; border: 0; border-radius: 12px; padding: 0 14px; background: #fff; }

.ftr { margin-top: 40px; padding-top: 26px; border-top: 1px solid #e2e3ec; color: var(--muted); font-size: 13px; }
.ftr__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.ftr h3 { color: var(--ink); font-size: 14px; margin-bottom: 8px; }
.ftr a { display: block; padding: 2px 0; } .ftr a:hover { color: var(--v); }

.tabbar { display: none; }

.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(23,23,43,.45); opacity: 0; pointer-events: none; transition: opacity .25s; display: flex; align-items: flex-end; justify-content: center; }
.sheet.is-open { opacity: 1; pointer-events: auto; }
.sheet__panel { width: min(560px, 100%); background: var(--card); border-radius: 28px 28px 0 0; padding: 12px 22px 28px; transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); max-height: 90vh; overflow: auto; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: #d6d7e2; margin: 0 auto 16px; }
.sh__img { width: 100%; aspect-ratio: 16/11; object-fit: cover; border-radius: 18px; }
.sheet h3 { font-size: 20px; margin: 14px 0 2px; }
.sheet .muted { color: var(--muted); font-size: 13px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.sizes button { border: 1.5px solid #e2e3ec; background: none; border-radius: 12px; padding: 8px 14px; cursor: pointer; font-weight: 500; }
.sizes button.is-on { border-color: var(--v); background: var(--v-l); color: var(--v); }
.sh__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sh__row b { font-size: 22px; } .sh__row s { color: var(--muted); margin-left: 6px; }

.toast { position: fixed; left: 50%; top: 20px; transform: translate(-50%, -20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 16px; opacity: 0; pointer-events: none; transition: .25s; z-index: 70; font-size: 13.5px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .side { width: 84px; padding: 18px 10px; align-items: center; }
  .side__logo img { height: 50px; margin: 0 0 20px; }
  .side__nav a span, .side__help { display: none; }
  .side__nav a { padding: 12px; justify-content: center; }
  .side__nav b { position: absolute; top: 4px; right: 2px; }
  .app { margin-left: 84px; padding: 0 24px 40px; }
  .quick__grid { grid-template-columns: repeat(4, 1fr); }
  .kitlist, .revlist { grid-template-columns: 1fr 1fr; }
  .perks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .side { display: none; }
  .app { margin-left: 0; padding: 0 16px 110px; }
  .top { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .top__hi b { font-size: 17px; }
  .top__search { order: 3; flex-basis: 100%; max-width: none; }
  .top__cart { width: 44px; height: 44px; margin-left: auto; }
  .story { width: 70px; } .story__ring { width: 64px; height: 64px; }
  .slide { grid-template-columns: 1fr; min-height: 0; }
  .slide > div { padding: 24px 22px 18px; }
  .slide img { max-height: 220px; }
  .quick__grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .qi { padding: 6px 4px 8px; font-size: 11px; border-radius: 14px; }
  .hscroll { grid-auto-columns: 62%; }
  .hscroll--reels { grid-auto-columns: 46%; }
  .kitlist, .revlist, .perks { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr 1fr; }
  .wa form { min-width: 0; width: 100%; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; background: var(--card); border-radius: 24px; box-shadow: 0 10px 40px rgba(23,23,43,.15); padding: 8px 6px; justify-content: space-around; align-items: center; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); font-weight: 500; min-width: 54px; }
  .tabbar a.is-on { color: var(--v); }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar__fab { width: 54px; height: 54px; border-radius: 18px; background: var(--v); color: #fff !important; justify-content: center; margin-top: -26px; box-shadow: 0 8px 20px rgba(91,61,245,.4); min-width: 0 !important; }
  .toast { top: auto; bottom: 96px; }
}
