:root{
  --ink:#211f1c;
  --muted:#6b6558;
  --paper:#f1ecde;
  --paper-raised:#faf7ee;
  --line:#d9d2bf;
  --brand:#2e5339;
  --brand-light:#e4ece3;
  --brand-dark:#1c3a27;
  --clay:#b1502e;
  --clay-light:#f3e2d8;
  --shadow: 0 1px 2px rgba(33,31,28,.06), 0 8px 24px rgba(33,31,28,.06);
  --radius: 16px;
  --page-max: 1120px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ink:#ede8da;
    --muted:#a9a48f;
    --paper:#1b1d18;
    --paper-raised:#24261f;
    --line:#3a3b32;
    --brand:#8fb497;
    --brand-light:#26312a;
    --brand-dark:#c4dcc9;
    --clay:#e08659;
    --clay-light:#3a2a22;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"]{
  --ink:#ede8da; --muted:#a9a48f; --paper:#1b1d18; --paper-raised:#24261f;
  --line:#3a3b32; --brand:#8fb497; --brand-light:#26312a; --brand-dark:#c4dcc9;
  --clay:#e08659; --clay-light:#3a2a22;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:'Noto Sans KR', system-ui, sans-serif; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{ font-family:'Noto Serif KR', serif; text-wrap:balance; margin:0; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }
img{ max-width:100%; }
[hidden]{ display:none !important; }
:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; }

.wrap{ max-width:var(--page-max); margin:0 auto; padding:0 20px; }

/* ---- header ---- */
header.top{
  position:sticky; top:0; z-index:30;
  background:color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line);
}
.top-row{
  max-width:var(--page-max); margin:0 auto;
  display:flex; align-items:center; gap:22px; padding:14px 20px;
}
/* 로고는 이미지 에셋. 밝은/어두운 배경용 두 벌을 테마에 맞춰 바꾼다. */
.brand{ display:flex; align-items:center; flex:none; }
.brand .logo-img{ height:36px; width:auto; }
/* 표시 여부는 .light-only/.dark-only 가 단독으로 정한다 (다른 규칙이 display를 덮지 않도록) */
.light-only{ display:block; }
.dark-only{ display:none; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .light-only{ display:none; }
  :root:not([data-theme="light"]) .dark-only{ display:block; }
}
:root[data-theme="dark"] .light-only{ display:none; }
:root[data-theme="dark"] .dark-only{ display:block; }
.main-nav{ display:flex; gap:20px; flex:none; }
.main-nav a{ font-size:.9rem; font-weight:500; color:var(--muted); padding:4px 0; border-bottom:2px solid transparent; }
.main-nav a:hover{ color:var(--brand); }
.main-nav a.is-active{ color:var(--brand); font-weight:700; border-bottom-color:var(--brand); }

.search{ flex:1; display:flex; align-items:center; gap:6px; max-width:380px;
  background:var(--paper-raised); border:1px solid var(--line); border-radius:999px; padding:6px 6px 6px 16px; }
.search input{
  flex:1; min-width:0; border:none; background:none; color:var(--ink);
  font-family:inherit; font-size:.85rem; padding:4px 0;
}
.search input:focus{ outline:none; }
.search button{
  flex:none; border:none; background:var(--brand); color:var(--paper-raised);
  border-radius:999px; padding:7px 14px; font-size:.78rem; font-weight:600; cursor:pointer;
}
.top-actions{ display:flex; align-items:center; gap:14px; flex:none; }
.scrap-link{ font-size:.85rem; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.scrap-link:hover{ color:var(--clay); }
.auth-link{ font-size:.82rem; color:var(--muted); white-space:nowrap; }
.auth-link:hover{ color:var(--brand); }
.auth-btn{
  font-size:.82rem; font-weight:600; color:var(--paper-raised); background:var(--brand);
  border-radius:999px; padding:8px 16px; white-space:nowrap;
}
.auth-user{ font-size:.82rem; font-weight:600; color:var(--brand); white-space:nowrap; }
.auth-user:hover{ text-decoration:underline; }

@media (max-width:900px){
  .top-row{ flex-wrap:wrap; gap:12px 18px; padding:12px 16px; }
  .search{ order:3; max-width:none; flex-basis:100%; }
  .main-nav{ flex:1; gap:16px; }
  .main-nav a{ font-size:.85rem; }
}

/* ---- page shell ---- */
main{ display:block; }
.page{ max-width:var(--page-max); margin:0 auto; padding:26px 20px 70px; }
.page-head{ margin-bottom:22px; }
.page-head .eyebrow{ font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--clay); font-weight:600; }
.page-head h1{ font-size:1.5rem; margin-top:8px; }
.page-head p{ color:var(--muted); font-size:.9rem; margin:8px 0 0; max-width:60ch; }

.section{ margin-top:44px; }
.section:first-child{ margin-top:0; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:16px; }
.section-head h2{ font-size:1.2rem; }
.section-sub{ font-size:.78rem; color:var(--muted); margin:4px 0 0; }
.more-link{ font-size:.82rem; color:var(--muted); flex:none; }
.more-link:hover{ color:var(--brand); text-decoration:underline; }

/* ---- home hero ---- */
.hero-grid{ display:grid; grid-template-columns:2.1fr 1fr; gap:16px; }
@media (max-width:820px){ .hero-grid{ grid-template-columns:1fr; } }

.feature-card{
  position:relative; overflow:hidden; border-radius:20px; min-height:340px;
  display:flex; align-items:flex-end; color:#fff8f3; text-align:left;
  background: var(--accent, var(--brand));
  border:none; padding:0; cursor:pointer; width:100%; font-family:inherit;
}
.feature-card .feature-emoji{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:4.5rem; opacity:.35;
}
.feature-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.feature-card .feature-scrim{
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(20,18,14,.78) 0%, rgba(20,18,14,.25) 45%, rgba(20,18,14,.05) 100%);
}
.feature-card .feature-text{ position:relative; padding:26px 24px; }
.feature-card .feature-cat{
  display:inline-block; font-size:.7rem; font-weight:600; letter-spacing:.04em;
  background:rgba(255,248,243,.2); border-radius:999px; padding:4px 10px; backdrop-filter:blur(4px);
}
.feature-card h2{ font-size:1.5rem; color:#fff8f3; margin-top:12px; line-height:1.35; }
.feature-card .feature-meta{ font-size:.76rem; opacity:.85; margin-top:10px; }
@media (max-width:520px){
  .feature-card{ min-height:260px; }
  .feature-card h2{ font-size:1.2rem; }
}

.promo-card{
  border-radius:20px; padding:26px 22px; background:var(--brand); color:var(--paper-raised);
  display:flex; flex-direction:column; justify-content:center; gap:10px; min-height:340px;
}
.promo-card .promo-eyebrow{ font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; opacity:.75; }
.promo-card h2{ color:var(--paper-raised); font-size:1.25rem; line-height:1.4; }
.promo-card p{ font-size:.85rem; margin:0; color:color-mix(in srgb, var(--paper-raised) 80%, transparent); }
.promo-card .btn{ margin-top:6px; align-self:flex-start; }
.promo-card .promo-profile{
  font-size:.78rem; background:rgba(250,247,238,.14); border-radius:10px; padding:10px 12px;
}
@media (max-width:820px){ .promo-card{ min-height:0; } }

/* ---- shortcut row ---- */
.shortcut-row{
  display:flex; gap:8px; margin-top:22px; overflow-x:auto; padding-bottom:4px;
  scrollbar-width:none;
}
.shortcut-row::-webkit-scrollbar{ display:none; }
.shortcut{
  flex:none; width:78px; display:flex; flex-direction:column; align-items:center; gap:8px;
  font-size:.74rem; color:var(--muted); text-align:center;
}
.shortcut .sc-icon{
  width:54px; height:54px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:1.4rem; background:var(--accent-light, var(--brand-light)); color:var(--accent, var(--brand));
  transition:transform .12s ease;
}
.shortcut:hover .sc-icon{ transform:translateY(-2px); }
.shortcut:hover{ color:var(--brand); }

/* ---- subnav (category tabs) ---- */
.subnav{
  display:flex; gap:6px; overflow-x:auto; scrollbar-width:none;
  border-bottom:1px solid var(--line); margin-bottom:20px;
}
.subnav::-webkit-scrollbar{ display:none; }
.subnav button{
  flex:none; background:none; border:none; cursor:pointer; color:var(--muted);
  font-size:.88rem; padding:10px 14px; border-bottom:2px solid transparent; margin-bottom:-1px;
}
.subnav button[aria-pressed="true"]{ color:var(--brand); font-weight:700; border-bottom-color:var(--brand); }
.shop-count{ font-size:.78rem; color:var(--muted); margin:0 0 14px; font-variant-numeric:tabular-nums; }

/* ---- community post cards ---- */
.post-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:860px){ .post-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .post-grid{ grid-template-columns:1fr; } }

.post-card{
  background:var(--paper-raised); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.post-card:hover{ border-color:var(--brand); box-shadow:var(--shadow); }
.post-open{
  display:flex; flex-direction:column; text-align:left; background:none; border:none;
  padding:0; cursor:pointer; color:inherit; font-family:inherit; flex:1;
}
.post-thumb{
  position:relative; overflow:hidden; aspect-ratio:16/10; display:block;
  background:var(--accent-light, var(--brand-light)); color:var(--accent, var(--brand)); font-size:2rem;
}
.post-thumb .thumb-emoji{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.post-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.post-body{ display:block; padding:16px 16px 4px; }
.post-cat{ display:block; font-size:.7rem; font-weight:600; color:var(--accent, var(--clay)); }
.post-title{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  font-family:'Noto Serif KR',serif; font-weight:600; font-size:1rem; margin-top:6px; line-height:1.45;
}
.post-summary{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  font-size:.82rem; color:var(--muted); margin-top:8px;
}
.post-meta{ display:block; font-size:.72rem; color:var(--muted); margin-top:10px; }
.post-proof{ display:flex; gap:16px; padding:12px 16px; margin-top:12px; border-top:1px solid var(--line); }
.proof-btn{
  background:none; border:none; color:var(--muted); font-size:.8rem; cursor:pointer;
  display:flex; align-items:center; gap:5px; padding:2px;
}
.proof-btn[aria-pressed="true"]{ color:var(--clay); font-weight:700; }
.proof-btn.static{ cursor:default; }

/* 홈에서 쓰는 가로형 리스트 변형 */
.post-list{ display:flex; flex-direction:column; gap:12px; }
.post-list .post-card{ flex-direction:column; }
.post-list .post-open{ flex-direction:row; gap:14px; align-items:stretch; }
.post-list .post-thumb{ flex:none; width:132px; aspect-ratio:1/1; }
.post-list .post-body{ padding:14px 16px 0 0; }
.post-list .post-proof{ margin-top:0; }
@media (max-width:520px){
  .post-list .post-thumb{ width:96px; }
}

/* ---- buttons ---- */
.btn{ border:none; border-radius:999px; padding:12px 24px; font-size:.88rem; font-weight:600; cursor:pointer;
  transition:transform .1s ease, opacity .15s ease; display:inline-block; text-align:center; }
.btn:active{ transform:scale(.97); }
.btn.primary{ background:var(--brand); color:var(--paper-raised); }
.btn.primary:disabled{ opacity:.4; cursor:not-allowed; }
.btn.ghost{ background:transparent; color:var(--muted); text-decoration:underline; padding:11px 4px; }
.btn.clay{ background:var(--clay); color:#fff8f3; }
.btn.light{ background:var(--paper-raised); color:var(--brand); }

/* ---- shop grid ---- */
.filter-row{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.filter-chip{
  border:1px solid var(--line); background:var(--paper-raised); color:var(--muted);
  border-radius:999px; padding:7px 14px; font-size:.8rem; cursor:pointer;
}
.filter-chip[aria-pressed="true"]{ background:var(--brand-light); border-color:var(--brand); color:var(--brand); font-weight:600; }

.shop-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
@media (max-width:1000px){ .shop-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px){ .shop-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:420px){ .shop-grid{ grid-template-columns:1fr; } }
.shop-grid.cols-3{ grid-template-columns:repeat(3,1fr); }
@media (max-width:760px){ .shop-grid.cols-3{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:420px){ .shop-grid.cols-3{ grid-template-columns:1fr; } }

.tea-card{
  background:var(--paper-raised); border:1px solid var(--line); border-radius:var(--radius);
  padding:0; cursor:pointer; text-align:left; display:flex; flex-direction:column; overflow:hidden;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.tea-card:hover{ border-color:var(--brand); box-shadow:var(--shadow); }
.tea-thumb{
  aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; font-size:2.4rem;
  background: var(--accent-light, var(--brand-light)); color: var(--accent, var(--brand));
  position:relative; overflow:hidden;
}
.tea-thumb .thumb-emoji{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.tea-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.tea-thumb .match-badge{ position:absolute; top:8px; right:8px; z-index:1; }
.tea-body{ padding:14px; display:flex; flex-direction:column; gap:6px; }
.tea-card .name{ font-family:'Noto Serif KR',serif; font-weight:600; font-size:.96rem; }
.tea-card .origin{ font-size:.72rem; color:var(--muted); }
.tag-row{ display:flex; flex-wrap:wrap; gap:6px; margin-top:2px; }
.tag{ font-size:.68rem; border:1px solid var(--line); border-radius:6px; padding:2px 7px; color:var(--muted); }
.tea-price{ font-weight:700; font-size:.92rem; margin-top:2px; font-variant-numeric:tabular-nums; }
.tea-price .price-from{ font-weight:500; font-size:.78rem; color:var(--muted); }
.match-badge{
  flex:none; background:var(--brand-light); color:var(--brand); font-weight:700;
  font-size:.7rem; padding:4px 9px; border-radius:999px; font-variant-numeric:tabular-nums;
}
.empty-note{ padding:40px 0; text-align:center; color:var(--muted); font-size:.88rem; }

/* ---- curator page ---- */
.quiz-head{ max-width:680px; margin:0 auto 18px; }
.quiz-progress{
  height:4px; border-radius:999px; background:var(--line); margin-top:14px; overflow:hidden;
}
.quiz-bar{ height:100%; width:0; background:var(--brand); border-radius:999px; transition:width .3s ease; }
.quiz-count{ font-size:.74rem; color:var(--muted); margin:8px 0 0; font-variant-numeric:tabular-nums; }
.quiz-card{
  background:var(--paper-raised); border:1px solid var(--line); border-radius:20px;
  padding:32px 26px 26px; box-shadow:var(--shadow); max-width:680px; margin:0 auto;
}
.quiz-q{ font-size:1.35rem; line-height:1.45; }
.quiz-help{ font-size:.84rem; color:var(--muted); margin:12px 0 0; }
.quiz-card .chip-grid{ margin-top:22px; }
.quiz-nav{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:30px; }
.quiz-nav .btn.primary{ margin-left:auto; }
@media (prefers-reduced-motion: reduce){ .quiz-bar{ transition:none; } }

/* 추천 근거 */
.pick-item{ display:flex; flex-direction:column; gap:10px; }
.reason-row{ display:flex; flex-wrap:wrap; gap:6px; }
.reason-chip{
  font-size:.7rem; color:var(--brand); background:var(--brand-light);
  border-radius:999px; padding:4px 10px;
}
.step-label{ font-size:.76rem; color:var(--muted); letter-spacing:.03em; }
.chip-grid{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.chip{
  border:1px solid var(--line); background:var(--paper); color:var(--ink);
  border-radius:999px; padding:10px 18px; font-size:.88rem; cursor:pointer; transition:all .15s ease;
}
.chip:hover{ border-color:var(--brand); }
.chip[aria-pressed="true"]{ background:var(--brand); border-color:var(--brand); color:var(--paper-raised); }

.result-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap;
  background:var(--brand); color:var(--paper-raised); border-radius:20px; padding:24px 22px;
}
.result-head h2{ color:var(--paper-raised); font-size:1.25rem; }
.result-head .rh-sub{ font-size:.8rem; color:color-mix(in srgb, var(--paper-raised) 80%, transparent); margin-top:6px; }
.result-head .retake{
  background:rgba(250,247,238,.16); border:none; color:var(--paper-raised); font-size:.8rem;
  border-radius:999px; padding:9px 16px; cursor:pointer; flex:none;
}
.top-pick-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:20px; }
@media (max-width:760px){ .top-pick-row{ grid-template-columns:1fr; } }

/* ---- 로그인 · 회원가입 ---- */
.auth-page{ max-width:var(--page-max); margin:0 auto; padding:48px 20px 80px; display:flex; justify-content:center; }
.auth-card{
  width:100%; max-width:420px; background:var(--paper-raised); border:1px solid var(--line);
  border-radius:20px; padding:34px 28px 28px; box-shadow:var(--shadow);
}
.auth-lockup img{ width:118px; height:auto; margin:0 auto; }
.auth-tabs{
  display:flex; gap:4px; margin-top:26px; padding:4px;
  background:var(--paper); border:1px solid var(--line); border-radius:999px;
}
.auth-tabs button{
  flex:1; border:none; background:none; cursor:pointer; color:var(--muted);
  font-size:.86rem; padding:9px 0; border-radius:999px;
}
.auth-tabs button[aria-pressed="true"]{ background:var(--brand); color:var(--paper-raised); font-weight:700; }
.auth-form{ display:flex; flex-direction:column; margin-top:22px; }
.auth-label{ font-size:.76rem; color:var(--muted); margin-bottom:8px; }
.auth-form input{
  font-family:inherit; font-size:.95rem; color:var(--ink);
  background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:13px 16px;
}
.auth-form input:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; }
.auth-msg{ font-size:.78rem; margin:8px 0 0; min-height:1.2em; color:var(--muted); }
.auth-msg.is-error{ color:var(--clay); }
.auth-submit{ margin-top:14px; }
.auth-note{
  font-size:.74rem; color:var(--muted); line-height:1.65; margin:20px 0 0;
  padding-top:16px; border-top:1px solid var(--line);
}
.auth-note strong{ color:var(--ink); font-weight:600; }

/* ---- 내 정보 ---- */
.profile-card{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  background:var(--brand); color:var(--paper-raised); border-radius:20px; padding:24px 22px;
}
.profile-avatar{
  width:56px; height:56px; border-radius:50%; flex:none;
  display:flex; align-items:center; justify-content:center;
  background:rgba(250,247,238,.18); font-family:'Noto Serif KR',serif; font-size:1.5rem;
}
.profile-body{ flex:1; min-width:0; }
.profile-body h1{ color:var(--paper-raised); font-size:1.35rem; }
.profile-meta{ font-size:.78rem; color:color-mix(in srgb, var(--paper-raised) 78%, transparent); margin:6px 0 0; }
.profile-logout{ flex:none; }
.empty-card{
  border:1px dashed var(--line); border-radius:16px; padding:28px 22px; text-align:center;
  background:var(--paper-raised);
}
.empty-card p{ color:var(--muted); font-size:.88rem; margin:0 0 16px; }

/* ---- product page ---- */
.wrap-product{ max-width:var(--page-max); margin:0 auto; padding:20px 20px 60px; }
.crumb{ font-size:.8rem; color:var(--muted); margin-bottom:18px; }
.crumb a:hover{ color:var(--brand); text-decoration:underline; }

.product-main{ display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:start; }
@media (max-width:800px){ .product-main{ grid-template-columns:1fr; gap:20px; } }

.gallery{ position:sticky; top:86px; }
@media (max-width:800px){ .gallery{ position:static; } }
.gallery-main{
  aspect-ratio:1/1; border-radius:var(--radius); overflow:hidden; position:relative;
  background: var(--accent-light, var(--brand-light)); color: var(--accent, var(--brand));
  display:flex; align-items:center; justify-content:center; font-size:4rem;
}
.gallery-main .thumb-emoji{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.gallery-main img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.gallery-thumbs{ display:flex; gap:10px; margin-top:10px; }
.gallery-thumb{
  width:64px; height:64px; border-radius:10px; overflow:hidden; position:relative; padding:0;
  border:2px solid transparent; cursor:pointer; flex:none;
  background: var(--accent-light, var(--brand-light)); color: var(--accent, var(--brand));
  display:flex; align-items:center; justify-content:center; font-size:1.4rem;
}
.gallery-thumb[aria-pressed="true"]{ border-color:var(--brand); }
.gallery-thumb .thumb-emoji{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.gallery-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

.buy-panel .buy-brand{ font-size:.8rem; color:var(--muted); }
.buy-panel .buy-title{ font-size:1.5rem; margin-top:6px; }
.buy-panel .buy-origin{ font-size:.84rem; color:var(--muted); margin-top:6px; }
.buy-panel .buy-match{ margin-top:12px; }
.buy-panel .buy-effect{
  font-size:.9rem; margin-top:16px; padding:12px 14px; background:var(--brand-light);
  border-radius:10px; color:var(--ink);
}
.option-block{ margin-top:22px; padding-top:20px; border-top:1px solid var(--line); }
.option-label{ display:block; font-size:.78rem; color:var(--muted); margin-bottom:8px; }
.option-select{
  width:100%; appearance:none; font-family:inherit; font-size:.9rem; color:var(--ink);
  background:var(--paper-raised); border:1px solid var(--line); border-radius:12px;
  padding:13px 40px 13px 16px; cursor:pointer;
  background-image:linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size:5px 5px, 5px 5px;
  background-repeat:no-repeat;
}
.buy-price-row{ display:flex; align-items:baseline; gap:10px; margin-top:16px; }
.buy-price{ font-family:'Noto Serif KR',serif; font-size:1.7rem; font-weight:700; font-variant-numeric:tabular-nums; }
.buy-weight{ font-size:.86rem; color:var(--muted); }
.buy-cta-row{ display:flex; gap:10px; margin-top:22px; }
.buy-cta-row .btn.clay{ flex:1; }
.scrap-toggle{
  border:1px solid var(--line); background:var(--paper-raised); color:var(--muted);
  border-radius:999px; padding:12px 18px; font-size:.88rem; cursor:pointer; flex:none;
}
.scrap-toggle[aria-pressed="true"]{ border-color:var(--clay); color:var(--clay); font-weight:700; }

.sticky-buy-bar{ display:none; }
@media (max-width:640px){
  .sticky-buy-bar{
    display:flex; gap:10px; position:fixed; left:0; right:0; bottom:0; z-index:40;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom));
    background:var(--paper-raised); border-top:1px solid var(--line);
  }
  .sticky-buy-bar .btn.clay{ flex:1; }
  .buy-cta-row{ display:none; }
  .wrap-product{ padding-bottom:96px; }
}

.spec-section{ margin-top:52px; }
.spec-section h2{ font-size:1.1rem; margin-bottom:6px; }
.related-section{ margin-top:52px; }
.related-section h2{ font-size:1.1rem; margin-bottom:16px; }

.kv-table{ width:100%; border-collapse:collapse; margin-top:18px; font-size:.85rem; }
.kv-table tr{ border-top:1px solid var(--line); }
.kv-table tr:first-child{ border-top:none; }
.kv-table td{ padding:11px 0; vertical-align:top; }
.kv-table td:first-child{ color:var(--muted); width:96px; white-space:nowrap; }

.story{ margin-top:18px; font-size:.88rem; color:var(--ink); background:var(--brand-light); border-radius:12px; padding:16px 18px; }
.mvp-note{ font-size:.72rem; color:var(--muted); margin-top:10px; }

/* ---- toast ---- */
.toast{
  position:fixed; left:50%; bottom:26px; transform:translateX(-50%);
  background:var(--brand); color:var(--paper-raised); padding:10px 18px; border-radius:999px;
  font-size:.82rem; box-shadow:var(--shadow); z-index:80; opacity:0; pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(-6px); }

/* ---- footer ---- */
footer.foot{ border-top:1px solid var(--line); margin-top:20px; padding:40px 0 52px; }
.foot-lockup img{ width:160px; height:auto; margin:0 auto; }
/* 브랜드 서명 한 줄에만 나눔손글씨 붓을 쓴다 */
.foot-signature{
  font-family:'Nanum Brush Script', 'Noto Serif KR', serif;
  font-size:1.5rem; color:var(--brand); text-align:center; margin:20px 0 0;
}
.foot-row{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
  font-size:.74rem; color:var(--muted); border-top:1px solid var(--line);
  padding-top:18px; margin-top:32px;
}
