/* 싱크탱크 쇼핑몰 — 디자인 기준: 레페로 후보 R (Hers 영양제 전문몰) 흰 바탕 · 검정 글자 · 옅은 초록 띠 · 검정 둥근 단추 */
:root {
  --bg: #ffffff;
  --paper: #f6f6f3;
  --paper-2: #efefea;
  --line: #e5e5e0;
  --line-2: #d4d4cd;
  --ink: #121212;
  --ink-2: #4a4a46;
  --ink-3: #85857f;
  --mint: #e5f2e9;
  --mint-2: #d3e8da;
  --mint-ink: #2d5a3c;
  --clay: #a8532f;
  --danger: #c2352b;
  --ok: #2f6b45;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --gap: 10px;
  --wrap: 1240px;
  --sh: 0 1px 2px rgba(18, 18, 18, .04), 0 6px 20px rgba(18, 18, 18, .05);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.ui-lock { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; letter-spacing: 0; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--mint-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-3); }
.tbd { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 스크롤바 */
* { scrollbar-width: thin; scrollbar-color: #cfcfc8 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d3d3cc; border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: #b4b4ad; }
::-webkit-scrollbar-track { background: transparent; }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), border-color .2s var(--ease); }
.btn:hover { background: var(--paper); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #2b2b2b; }
.btn.ghost { border-color: var(--line-2); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn.lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.link { text-decoration: underline; text-underline-offset: 3px; }

/* 맨 위 혜택 띠 */
.benefits { background: var(--mint); color: var(--mint-ink); font-size: 13px; }
.benefits .wrap { display: flex; justify-content: center; gap: 28px; min-height: 36px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.benefits .wrap::-webkit-scrollbar { display: none; }
.benefits span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.benefits svg { flex: none; }

/* 머리말 */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hd.scrolled { border-bottom-color: var(--line); }
.hd .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 23px; letter-spacing: -.02em; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 8px; }
.logo small { font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 11px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover, .nav a.on { color: var(--ink); background: var(--paper); }
.hd-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); transition: background .15s; }
.icon-btn:hover { background: var(--paper); }
.icon-btn .count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.icon-btn .count:empty { display: none; }
.icon-btn .count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; }
.search-bar { border-top: 1px solid var(--line); background: #fff; overflow: hidden; max-height: 0; transition: max-height .25s var(--ease); }
.search-bar.open { max-height: 80px; }
.search-bar form { display: flex; gap: var(--gap); padding: 12px 0; }
.search-bar input { flex: 1; }

/* 모바일 메뉴 */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer .back { position: absolute; inset: 0; background: rgba(18, 18, 18, .3); opacity: 0; transition: opacity .25s; }
.drawer .panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(84vw, 320px); background: #fff; transform: translateX(-100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; padding: 18px; gap: 10px; overflow-y: auto; }
.drawer.open { pointer-events: auto; }
.drawer.open .back { opacity: 1; }
.drawer.open .panel { transform: none; }
.drawer .panel a { padding: 10px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer .panel .who { display: flex; gap: var(--gap); padding: 6px 0 10px; }

/* 입력칸 */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.field > label .req, .lbl .req { color: var(--clay); margin-left: 2px; }
.inp { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
textarea.inp { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.inp:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 18, 18, .06); }
.inp.bad { border-color: var(--danger); }
.inp[readonly] { background: var(--paper); }
.hint { font-size: 12px; color: var(--ink-3); }
.err-text { font-size: 12px; color: var(--danger); }
.row { display: flex; gap: var(--gap); }
.row > * { flex: 1; min-width: 0; }
.row > .none, .row.none > * { flex: none; }
input[type=number] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--line-2); border-radius: 6px; background: #fff; display: grid; place-content: center; transition: background .15s, border-color .15s; }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { opacity: 1; }
.check .more { margin-left: auto; font-size: 13px; color: var(--ink-3); text-decoration: underline; white-space: nowrap; border: 0; background: none; padding: 0; }

/* 화면 틀 */
main { min-height: 60vh; }
.view { animation: viewIn .38s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.page { padding-top: 34px; padding-bottom: 70px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.25; letter-spacing: -.03em; }
.page-head p { margin: 0; color: var(--ink-2); max-width: 520px; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a:hover { color: var(--ink); }
.ui-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px 0; color: var(--ink-3); font-size: 14px; }
.ui-spin { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ui-empty, .empty { text-align: center; padding: 56px 20px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty h2 { margin: 0; font-size: 20px; color: var(--ink); }
.empty p { margin: 0; }

/* 첫 화면 */
.hero { padding: 20px 0 10px; }
.hero-card { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--gap); align-items: stretch; }
.hero-text { padding: 48px 40px; border-radius: var(--r-lg); background: var(--paper); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.hero-text .tag { display: inline-flex; width: fit-content; padding: 5px 12px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.hero-text h1 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; }
.hero-text p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 420px; }
.hero-text .acts { display: flex; gap: var(--gap); flex-wrap: wrap; margin-top: 6px; }
.hero-shelf { position: relative; border-radius: var(--r-lg); background: var(--mint); overflow: hidden; min-height: 380px; }
.hero-shelf .item { position: absolute; width: 46%; aspect-ratio: 1; border-radius: var(--r); background: #fff; box-shadow: var(--sh); overflow: hidden; transition: transform .6s var(--ease); }
.hero-shelf .item img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.hero-shelf .i1 { left: 6%; top: 12%; transform: rotate(-4deg); }
.hero-shelf .i2 { right: 6%; top: 6%; width: 40%; transform: rotate(3deg); }
.hero-shelf .i3 { right: 16%; bottom: 7%; width: 42%; transform: rotate(-1deg); }
.hero-shelf:hover .i1 { transform: rotate(-4deg) translateY(-4px); }
.hero-shelf:hover .i2 { transform: rotate(3deg) translateY(-4px); }
.hero-shelf:hover .i3 { transform: rotate(-1deg) translateY(-4px); }
.hero-shelf .note { position: absolute; left: 18px; bottom: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .86); font-size: 13px; color: var(--ink-2); backdrop-filter: blur(6px); white-space: nowrap; }

.sec { padding: 34px 0 6px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.3; }
.sec-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.sec-head .more { font-size: 14px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }

.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.cat { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: transparent; }
.cat strong { font-size: 16px; white-space: nowrap; position: relative; z-index: 1; }
.cat span { font-size: 13px; color: var(--ink-3); position: relative; z-index: 1; white-space: nowrap; }
.cat img { position: absolute; right: -6px; bottom: -6px; width: 58%; aspect-ratio: 1; object-fit: contain; transition: transform .35s var(--ease); }

/* 상품 카드 */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: transparent; }
.card .thumb { position: relative; display: block; aspect-ratio: 1; background: var(--paper); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: transform .45s var(--ease); }
.card .badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 4px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.chip.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.mint { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); }
.chip.clay { background: #f6e7df; color: var(--clay); border-color: #f6e7df; }
.chip.gray { background: var(--paper-2); color: var(--ink-2); border-color: var(--paper-2); }
.card .body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.card .brand { font-size: 12px; color: var(--ink-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .name { font-size: 15px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 2px; font-variant-numeric: tabular-nums; }
.price-row .off { color: var(--clay); font-weight: 700; white-space: nowrap; }
.price-row .now { font-weight: 700; font-size: 16px; white-space: nowrap; }
.price-row .was { color: var(--ink-3); text-decoration: line-through; font-size: 13px; white-space: nowrap; }
.card .acts { display: flex; gap: 6px; margin-top: 10px; }
.card .acts .btn { flex: 1; min-height: 38px; padding: 0 10px; font-size: 13px; }
.card.soldout .thumb::after { content: "품절"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .6); font-weight: 700; color: var(--ink-2); }

/* 브랜드 묶음 */
.brands { display: flex; flex-direction: column; gap: 34px; }
.brand-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--gap); }
.brand-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; min-height: 330px; }
.brand-card h3 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.brand-card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.brand-card img { width: 78%; align-self: center; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.brand-card:hover img { transform: translateY(-4px); }
.brand-card .btn { align-self: flex-start; }
.brand-row .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.notice-band { margin-top: 40px; border-radius: var(--r-lg); background: var(--ink); color: #fff; padding: 30px 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.notice-band h3 { margin: 0 0 6px; font-size: 16px; }
.notice-band p { margin: 0; color: #c9c9c3; font-size: 14px; }

/* 목록 */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.filters button:hover { border-color: var(--ink); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.list-bar .total { color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.sorts { display: flex; gap: 2px; }
.sorts button { border: 0; background: none; padding: 6px 10px; font-size: 14px; color: var(--ink-3); border-radius: 999px; white-space: nowrap; }
.sorts button.on { color: var(--ink); font-weight: 700; background: var(--paper); }

/* 상세 */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: var(--gap); position: sticky; top: 86px; }
.gallery .main { aspect-ratio: 1; border-radius: var(--r-lg); background: var(--paper); overflow: hidden; display: grid; place-items: center; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 5%; mix-blend-mode: multiply; animation: fadeImg .35s var(--ease); }
@keyframes fadeImg { from { opacity: .3; } }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--paper); padding: 4px; transition: border-color .15s; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.buy { display: flex; flex-direction: column; gap: 14px; }
.buy .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.buy h1 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.3; letter-spacing: -.03em; }
.buy .brand { color: var(--ink-3); font-weight: 600; }
.buy .price-row .now { font-size: 26px; }
.buy .price-row .off { font-size: 22px; }
.buy .summary { margin: 0; color: var(--ink-2); }
.func { border-radius: var(--r); background: var(--mint); color: var(--mint-ink); padding: 14px 16px; font-size: 14px; }
.func b { display: block; margin-bottom: 4px; font-size: 13px; }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 12px; font-size: 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kv dt { color: var(--ink-3); white-space: nowrap; }
.kv dd { margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; height: 44px; background: #fff; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 18px; display: grid; place-items: center; transition: background .15s; }
.qty button:hover { background: var(--paper); }
.qty input { width: 48px; height: 100%; border: 0; text-align: center; font-weight: 700; font-size: 15px; }
.qty input:focus { outline: none; }
.qty.sm { height: 36px; }
.qty.sm button { width: 34px; font-size: 16px; }
.qty.sm input { width: 36px; font-size: 14px; }
.total-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--paper); }
.total-row strong { font-size: 22px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.buy-acts { display: flex; gap: var(--gap); }
.buy-acts .btn { flex: 1; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; font-weight: 700; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 10px; height: 10px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.acc details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.acc .acc-body { padding: 0 2px 18px; font-size: 14px; color: var(--ink-2); animation: viewIn .3s var(--ease); }
.notice-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.notice-table th, .notice-table td { border: 1px solid var(--line); padding: 9px 10px; vertical-align: top; text-align: left; }
.notice-table th { width: 34%; background: var(--paper); font-weight: 600; color: var(--ink-2); }
.detail { margin-top: 44px; }
.detail .tabs { position: sticky; top: 66px; z-index: 5; display: flex; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 0; margin-bottom: 20px; overflow-x: auto; }
.detail .tabs a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.detail .tabs a:hover { color: var(--ink); background: var(--paper); }
.detail-imgs { max-width: 860px; margin: 0 auto; }
.detail-imgs img { width: 100%; height: auto; }
.detail-note { max-width: 860px; margin: 24px auto 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.sticky-buy { display: none; }

/* 장바구니 · 주문서 */
.two { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.box { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.box-head h2 { margin: 0; font-size: 17px; white-space: nowrap; }
.box-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.lines { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 24px 80px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line.nocheck { grid-template-columns: 80px minmax(0, 1fr) auto; }
.line .img { width: 80px; height: 80px; border-radius: var(--r-sm); background: var(--paper); overflow: hidden; }
.line .img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.line .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line .info .b { font-size: 12px; color: var(--ink-3); }
.line .info .n { font-weight: 600; line-height: 1.4; }
.line .info .p { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.line .side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line .side strong { white-space: nowrap; }
.line .x { border: 0; background: none; color: var(--ink-3); font-size: 13px; text-decoration: underline; padding: 0; white-space: nowrap; }
.line.bad { background: #fff7f5; }
.line .why { color: var(--danger); font-size: 13px; }
.sum { position: sticky; top: 86px; display: flex; flex-direction: column; gap: var(--gap); }
.sum dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0; font-size: 15px; }
.sum dt { color: var(--ink-2); white-space: nowrap; }
.sum dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum .grand { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; }
.sum .grand dd { font-size: 22px; }
.sum .free-hint { font-size: 13px; color: var(--mint-ink); background: var(--mint); border-radius: var(--r-sm); padding: 8px 12px; }
.pay-pick { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: var(--r); }
.pay-pick b { white-space: nowrap; }
.agree { display: flex; flex-direction: column; gap: 10px; }
.agree .all { padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 700; }
.agree-text { max-height: 220px; overflow: auto; font-size: 13px; color: var(--ink-2); background: var(--paper); border-radius: var(--r-sm); padding: 12px 14px; }
.pay-fallback { border-radius: var(--r); background: var(--mint); color: var(--mint-ink); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.memo-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.memo-chips button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; white-space: nowrap; }
.memo-chips button:hover { border-color: var(--ink); }
.addr { display: flex; flex-direction: column; gap: var(--gap); }
.addr .zip { display: flex; gap: var(--gap); }
.addr .zip .inp { width: 140px; flex: none; }

/* 완료 · 주문 상세 */
.done-hero { text-align: center; padding: 30px 0 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; animation: pop .5s var(--ease) both; }
.done-mark path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .25s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-hero h1 { margin: 0; font-size: 28px; font-weight: 600; }
.done-hero p { margin: 0; color: var(--ink-2); }
.info-dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.info-dl dt, .info-dl dd { padding: 12px 4px; border-bottom: 1px solid var(--line); margin: 0; font-size: 14px; }
.info-dl dt { color: var(--ink-3); white-space: nowrap; }
.test-note { border-radius: var(--r); background: #fff6e8; color: #7a4b0b; padding: 12px 16px; font-size: 14px; }
.status-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.status-steps span { text-align: center; padding: 10px 4px; border-radius: var(--r-sm); background: var(--paper); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.status-steps span.on { background: var(--ink); color: #fff; font-weight: 700; }

/* 계정 */
.auth { max-width: 472px; margin: 0 auto; padding: 46px 16px 70px; display: flex; flex-direction: column; gap: 14px; }
.auth h1 { margin: 0 0 4px; font-size: 28px; font-weight: 600; text-align: center; }
.auth .sub { margin: 0 0 6px; text-align: center; color: var(--ink-2); }
.auth .links { display: flex; justify-content: center; gap: 14px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.auth .links a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs-line button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs-line button.on { color: var(--ink); border-bottom-color: var(--ink); }
.order-list { display: flex; flex-direction: column; gap: var(--gap); }
.order-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.order-item:hover { border-color: var(--ink); }
.order-item .t { font-weight: 600; }
.order-item .m { font-size: 13px; color: var(--ink-3); }
.order-item .r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* 문서 */
.doc { max-width: 860px; }
.doc h2 { font-size: 17px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 14px; }
.doc ol, .doc ul { padding-left: 20px; }
.doc .eff { margin-top: 28px; color: var(--ink-3); }
.doc .lead { font-size: 17px; color: var(--ink); }
.doc-sec { padding: 4px 0; }
.doc-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; padding: 16px 4px; font-weight: 600; cursor: pointer; display: flex; gap: 10px; }
.faq summary::before { content: "Q"; font-weight: 800; color: var(--mint-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq details > div { padding: 0 4px 16px 26px; color: var(--ink-2); font-size: 14px; }
.cs-card { border-radius: var(--r-lg); background: var(--paper); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.cs-card .tel { font-size: 28px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }

/* 바닥글 */
.ft { margin-top: 70px; background: #f4f4f1; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.ft .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: 1.1fr 1fr 2fr; gap: 30px; }
.ft h4 { margin: 0 0 10px; font-size: 14px; color: var(--ink); white-space: nowrap; }
.ft .tel { font-size: 22px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ft ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ft a:hover { color: var(--ink); text-decoration: underline; }
.ft .biz { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ft .wrap > * { min-width: 0; }
.ft .biz span { white-space: nowrap; }
.ft .biz span.long { white-space: normal; }
.ft .legal-links { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; font-weight: 600; color: var(--ink); }
.ft .copy { margin-top: 12px; color: var(--ink-3); }
.ft .hf { margin-top: 10px; color: var(--ink-3); }

/* 공통 부품: 창 · 알림 · 드롭다운 · 달력 · 업데이트 */
.ui-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.ui-modal-back { position: absolute; inset: 0; background: rgba(18, 18, 18, .38); opacity: 0; transition: opacity .2s; }
.ui-modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); box-shadow: 0 20px 60px rgba(0, 0, 0, .18); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .22s var(--ease), transform .22s var(--ease); }
.ui-modal-card.wide { width: min(860px, 100%); }
.ui-modal.on { pointer-events: auto; }
.ui-modal.on .ui-modal-back { opacity: 1; }
.ui-modal.on .ui-modal-card { opacity: 1; transform: none; }
.ui-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ui-modal-head h2 { margin: 0; font-size: 17px; }
.ui-x { width: 36px; height: 36px; border: 0; background: none; border-radius: 999px; display: grid; place-items: center; color: var(--ink-2); }
.ui-x:hover { background: var(--paper); }
.ui-modal-body { padding: 20px; overflow: auto; }
.ui-modal-foot { display: flex; justify-content: flex-end; gap: var(--gap); padding: 16px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ui-confirm-text { margin: 0; font-size: 15px; }
.ui-postcode-modal .ui-modal-card { width: min(560px, 100%); height: min(640px, calc(100vh - 40px)); }
.ui-postcode-modal .ui-modal-body { padding: 0; flex: 1; overflow: hidden; }
.ui-postcode { width: 100%; height: 100%; min-height: 460px; }
.ui-toasts { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.ui-toast { padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); opacity: 0; transform: translateY(10px); transition: opacity .25s var(--ease), transform .25s var(--ease); white-space: pre-line; text-align: center; }
.ui-toast.on { opacity: 1; transform: none; }
.ui-toast.error { background: var(--danger); }
.ui-update { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(255, 255, 255, .7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.ui-update.on { opacity: 1; }
.ui-update-card { text-align: center; padding: 34px 44px; border-radius: 22px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .15); }
.ui-update-title { margin: 0; font-size: 20px; font-weight: 700; }
.ui-update-num { margin: 6px 0; font-size: 92px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ui-update-num.tick { animation: tick .5s var(--ease); }
@keyframes tick { from { transform: scale(1.25); opacity: .4; } }
.ui-update-sub { margin: 0; color: var(--ink-3); font-size: 14px; }
.ui-dd { position: relative; display: inline-block; min-width: 0; }
.ui-dd-btn { width: 100%; height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; text-align: left; white-space: nowrap; }
.ui-dd-btn:hover { border-color: var(--ink-3); }
.ui-dd.empty .ui-dd-label { color: var(--ink-3); }
.ui-dd-label { overflow: hidden; text-overflow: ellipsis; }
.ui-dd-panel { position: fixed; z-index: 150; display: none; flex-direction: column; max-height: 340px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 14px 40px rgba(0, 0, 0, .12); overflow: hidden; }
.ui-dd-panel.open { display: flex; animation: viewIn .18s var(--ease); }
.ui-dd-search { padding: 8px; border-bottom: 1px solid var(--line); }
.ui-dd-search input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.ui-dd-list { overflow-y: auto; padding: 4px; }
.ui-dd-opt { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 0; background: none; border-radius: var(--r-sm); text-align: left; white-space: nowrap; }
.ui-dd-opt:hover { background: var(--paper); }
.ui-dd-opt.on { font-weight: 700; }
.ui-check { width: 18px; height: 18px; flex: none; border: 1.5px solid var(--line-2); border-radius: 5px; display: grid; place-content: center; }
.ui-dd-opt.on .ui-check { background: var(--ink); border-color: var(--ink); }
.ui-dd-opt.on .ui-check::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.ui-dd-none { margin: 0; padding: 14px; color: var(--ink-3); font-size: 13px; text-align: center; }
.ui-dd-foot { display: flex; border-top: 1px solid var(--line); }
.ui-dd-foot button { flex: 1; height: 38px; border: 0; background: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ui-dd-foot button + button { border-left: 1px solid var(--line); }
.ui-dd-foot button:hover { background: var(--paper); }
.ui-date { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.ui-date input { padding-right: 36px; }
.ui-date-btn { position: absolute; right: 6px; width: 28px; height: 28px; border: 0; background: none; color: var(--ink-3); display: grid; place-items: center; border-radius: 6px; }
.ui-cal { position: fixed; z-index: 150; display: none; width: 282px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 14px 40px rgba(0, 0, 0, .12); padding: 10px; }
.ui-cal.open { display: block; animation: viewIn .18s var(--ease); }
.ui-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ui-cal-head button { width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; font-size: 18px; }
.ui-cal-head button:hover { background: var(--paper); }
.ui-cal-week, .ui-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.ui-cal-week span { font-size: 12px; color: var(--ink-3); padding: 4px 0; }
.ui-cal-days button { height: 34px; border: 0; background: none; border-radius: 8px; font-size: 13px; }
.ui-cal-days button:hover { background: var(--paper); }
.ui-cal-days button.today { font-weight: 800; }
.ui-cal-days button.on { background: var(--ink); color: #fff; }
.ui-cal-foot { display: flex; justify-content: space-between; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.ui-cal-foot button { border: 0; background: none; font-size: 13px; font-weight: 600; padding: 6px 8px; border-radius: 6px; }
.ui-cal-foot button:hover { background: var(--paper); }

/* 반응형 */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid, .brand-row .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-row { grid-template-columns: 1fr; }
  .brand-card { min-height: 0; flex-direction: row; align-items: center; gap: 16px; }
  .brand-card img { width: 120px; }
  .two { grid-template-columns: 1fr; }
  .sum { position: static; }
  .ft .wrap { grid-template-columns: 1fr 1fr; }
  .ft .wrap > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  body { font-size: 14px; }
  .wrap { padding: 0 16px; }
  .hd .wrap { height: 56px; gap: 8px; }
  .logo { font-size: 20px; }
  .logo small { display: none; }
  .icon-btn { width: 38px; height: 38px; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-text { padding: 28px 22px; gap: 14px; }
  .hero-shelf { min-height: 250px; }
  .cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; }
  .cat { flex: 0 0 42%; min-height: 120px; scroll-snap-align: start; }
  .grid, .brand-row .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card .acts { flex-direction: column; }
  .notice-band { grid-template-columns: 1fr; padding: 22px; }
  .page { padding-top: 22px; padding-bottom: 50px; }
  .page-head h1 { font-size: 24px; }
  .pdp { grid-template-columns: 1fr; gap: 18px; }
  .gallery { position: static; }
  .buy h1 { font-size: 22px; }
  .buy-acts.desk { display: none; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: var(--gap); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .sticky-buy .btn { flex: 1; }
  body.has-sticky .ft { padding-bottom: 70px; }
  .detail .tabs { top: 56px; }
  .line { grid-template-columns: 22px 64px minmax(0, 1fr); padding: 12px; gap: 10px; }
  .line.nocheck { grid-template-columns: 64px minmax(0, 1fr); }
  .line .img { width: 64px; height: 64px; }
  .line .side { grid-column: 2 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .line.nocheck .side { grid-column: 1 / -1; }
  .info-dl { grid-template-columns: 100px minmax(0, 1fr); }
  .ft .wrap { grid-template-columns: 1fr; gap: 22px; }
  .status-steps span { font-size: 12px; }
  .ui-modal { padding: 0; align-items: end; }
  .ui-modal-card, .ui-modal-card.wide { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; transform: translateY(30px); }
  .ui-postcode-modal .ui-modal-card { height: 92vh; }
  .ui-update-card { padding: 26px 28px; margin: 0 16px; }
  .ui-update-num { font-size: 72px; }
  .benefits span + span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
