/* MatanVerse Shop: direction 1 "Market" (founder's pick 2026-10-30), Waegook's colours.
   Tokens mirror style/main.css (light + the Slate dark palette) so the shop reads as family. */
:root {
  --wg-color: #14ad4b; --wg-color-dark: #0b8f3e; --wg-color-ink: #0a7a3d; --wg-on-brand: #fff;
  --wg-accent-red: #f6272a; --wg-accent-yellow: #fcc00c;
  --wg-bg: #fff; --wg-raised: #fff; --wg-surface: #f6f8f7; --wg-surface-2: #eef1f0; --wg-tint: #f4fbf7;
  --wg-text: #1a1a1a; --wg-muted: #666; --wg-faint: #8a99a8; --wg-border: #e4e4e4; --wg-border-soft: #e6efe9;
  --wg-danger-ink: #b3261e; --wg-danger-tint: #fdecec; --wg-warn-ink: #8a5a00; --wg-warn-tint: #fff8e6;
  --wg-info-ink: #22458f; --wg-info-tint: #eaf0f5;
  --wg-radius: 10px; --wg-radius-card: 14px;
  --wg-shadow-card: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --wg-shadow-pop: 0 10px 34px rgba(16,24,40,.16);
  --wg-focus-ring: 0 0 0 3px rgba(14,175,76,.22);
  --wg-ease-out: cubic-bezier(.2,.6,.2,1);
}
:root[data-theme="dark"] {
  --wg-color: #31da79; --wg-color-dark: #22c468; --wg-color-ink: #5fe598; --wg-on-brand: #06180d;
  --wg-bg: #0f1422; --wg-raised: #171e30; --wg-surface: #171e30; --wg-surface-2: #1f2840; --wg-tint: #16271f;
  --wg-text: #e8ecf5; --wg-muted: #a6b0c3; --wg-faint: #6f7a90; --wg-border: #2c3854; --wg-border-soft: #2c3854;
  --wg-danger-ink: #ff8a80; --wg-danger-tint: #3a1f22; --wg-warn-ink: #ffd27a; --wg-warn-tint: #3a2f12;
  --wg-info-ink: #9ab6ff; --wg-info-tint: #1c2744;
  --wg-shadow-card: 0 1px 2px rgba(0,0,0,.4); --wg-shadow-pop: 0 10px 34px rgba(0,0,0,.5);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--wg-text); background: var(--wg-bg); line-height: 1.5; -webkit-tap-highlight-color: transparent; accent-color: var(--wg-color); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--wg-focus-ring); border-radius: 8px; }
.sh-ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sh-ico-sm { font-size: 12px; }
.sh-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sh-main { min-height: 60vh; }
.sh-muted { color: var(--wg-muted); }
.sh-faint { color: var(--wg-faint); }
.sh-price { font-weight: 800; letter-spacing: -0.02em; }
/* buttons, pills */
.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--wg-color); color: var(--wg-on-brand); font-weight: 700; border-radius: 12px; padding: 14px 20px;
  font-size: 16px; line-height: 1.2; transition: transform .16s var(--wg-ease-out), filter .16s; }
.sh-btn:hover { filter: brightness(1.04); }
.sh-btn:active { transform: translateY(1px); }
.sh-btn:disabled, .sh-btn.is-busy { opacity: .55; cursor: default; }
.sh-btn.ghost { background: var(--wg-surface-2); color: var(--wg-text); }
.sh-btn.line { background: transparent; color: var(--wg-text); border: 1px solid var(--wg-border); }
.sh-btn.lg { width: 100%; padding: 16px 20px; font-size: 17px; }
.sh-btn.sh-btn-sm { padding: 8px 12px; font-size: 14px; border-radius: 9px; }
.sh-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; background: var(--wg-tint); color: var(--wg-color-ink); line-height: 1.4; }
.sh-pill.warn { background: var(--wg-warn-tint); color: var(--wg-warn-ink); }
.sh-pill.info { background: var(--wg-info-tint); color: var(--wg-info-ink); }
.sh-pill.neutral { background: var(--wg-surface-2); color: var(--wg-muted); }
.sh-pill.danger { background: var(--wg-danger-tint); color: var(--wg-danger-ink); }
.sh-pill-float { position: absolute; left: 8px; top: 8px; background: var(--wg-raised); color: var(--wg-text); box-shadow: var(--wg-shadow-card); }
.sh-pill-float.info { background: var(--wg-info-tint); color: var(--wg-info-ink); }
/* header */
.sh-head { position: sticky; top: 0; z-index: 5; background: var(--wg-raised); border-bottom: 1px solid var(--wg-border); }
.sh-head .sh-wrap { display: flex; align-items: center; gap: 12px; height: 56px; }
.sh-back { width: 36px; height: 36px; display: grid; place-items: center; font-size: 22px; border-radius: 10px; margin-left: -8px; flex: none; }
.sh-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; white-space: nowrap; flex: none; }
.sh-logo i { width: 26px; height: 26px; border-radius: 8px; background: var(--wg-color); display: grid; place-items: center; color: var(--wg-on-brand); font-style: normal; }
.sh-logo i .sh-ico { width: 15px; height: 15px; }
.sh-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 2px solid var(--wg-color); border-radius: 10px; color: var(--wg-faint); font-size: 14px; }
.sh-search .sh-ico { color: var(--wg-color-ink); font-size: 18px; }
.sh-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 0; color: var(--wg-text); }
.sh-search input::placeholder { color: var(--wg-faint); }
.sh-search input::-webkit-search-decoration { -webkit-appearance: none; }
.sh-icons { display: flex; gap: 4px; flex: none; margin-left: auto; align-items: center; }
.sh-icons a { height: 36px; min-width: 36px; display: grid; place-items: center; border-radius: 10px; font-size: 22px; color: var(--wg-text); }
.sh-icons a.sh-signin { font-size: 14px; font-weight: 700; padding: 0 12px; background: var(--wg-surface-2); }
@media (max-width: 419.98px) { .sh-logo span { display: none; } }
/* category chips */
.sh-cats { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; max-width: 1112px; margin: 0 auto; }
.sh-cats::-webkit-scrollbar { display: none; }
.sh-cats a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--wg-surface-2); font-size: 14px; font-weight: 600; }
.sh-cats a.on { background: var(--wg-text); color: var(--wg-bg); }
.sh-cats a .sh-ico { font-size: 16px; }
/* home sections + product grid */
.sh-sec { padding: 0 16px; max-width: 1112px; margin: 0 auto; }
.sh-sec h2 { font-size: 17px; margin: 8px 0 12px; display: flex; justify-content: space-between; align-items: baseline; }
.sh-sec h2 a { font-size: 13px; color: var(--wg-color-ink); font-weight: 600; }
.sh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; margin-bottom: 24px; }
.sh-card { display: grid; gap: 6px; align-content: start; }
.sh-card-img { aspect-ratio: 1; border-radius: 12px; position: relative; overflow: hidden; background: var(--wg-surface-2); }
.sh-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--wg-ease-out); }
.sh-card:hover .sh-card-img img { transform: scale(1.03); }
.sh-card-art { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; color: var(--wg-color-ink); background: var(--wg-tint); }
.sh-card-tint-g .sh-card-art { background: var(--wg-tint); color: var(--wg-color-ink); }
.sh-card-tint-b .sh-card-art { background: var(--wg-info-tint); color: var(--wg-info-ink); }
.sh-card-tint-y .sh-card-art { background: var(--wg-warn-tint); color: var(--wg-warn-ink); }
.sh-card-tint-n .sh-card-art { background: var(--wg-surface-2); color: var(--wg-muted); }
.sh-card-t { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-card-p { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.sh-card-p small { font-size: 12px; font-weight: 500; color: var(--wg-muted); margin-left: 4px; }
.sh-card-m { font-size: 12px; color: var(--wg-muted); display: flex; gap: 6px; align-items: flex-start; line-height: 1.4; }
.sh-card-m .sh-ico { color: var(--wg-color-ink); margin-top: 2px; }
.sh-empty { padding: 28px 16px; text-align: center; color: var(--wg-muted); background: var(--wg-surface); border-radius: 14px; margin-bottom: 24px; }
/* product page */
.sh-product { display: grid; }
.sh-hero { aspect-ratio: 4/3; background: var(--wg-surface-2); overflow: hidden; position: relative; }
.sh-hero img { width: 100%; height: 100%; object-fit: cover; }
.sh-hero .sh-card-art { font-size: 80px; }
.sh-body { padding: 16px; display: grid; gap: 14px; }
.sh-body h1 { font-size: 21px; }
.sh-pricebox { display: grid; gap: 2px; }
.sh-pricebox .big { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.sh-pricebox .big small { font-size: 14px; font-weight: 600; color: var(--wg-muted); margin-left: 6px; }
.sh-pricebox .sub { font-size: 13px; color: var(--wg-muted); }
.sh-rows { display: grid; border-top: 1px solid var(--wg-border); }
.sh-rows > div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--wg-border); font-size: 14px; }
.sh-rows > div > span:first-child { color: var(--wg-muted); }
.sh-rows a { color: var(--wg-color-ink); font-weight: 600; }
.sh-types { display: grid; gap: 8px; }
.sh-type { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--wg-border); border-radius: 10px; font-size: 14px; align-items: center; }
.sh-type small { display: block; color: var(--wg-muted); font-size: 12px; }
.sh-type .sh-price { font-size: 15px; }
.sh-type.is-off { opacity: .55; }
.sh-seller { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--wg-border); border-radius: 12px; font-size: 14px; }
.sh-seller i { width: 40px; height: 40px; border-radius: 10px; background: var(--wg-color); color: var(--wg-on-brand); display: grid; place-items: center; font-weight: 800; font-style: normal; flex: none; }
.sh-desc { font-size: 15px; display: grid; gap: 8px; }
.sh-desc h2 { font-size: 16px; }
.sh-desc p { white-space: pre-line; }
.sh-buybar { position: sticky; bottom: 0; z-index: 4; background: var(--wg-raised); border-top: 1px solid var(--wg-border); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
.sh-buybar .sh-btn { flex: 1; }
.sh-buybar .sh-note { flex: 1; font-size: 14px; color: var(--wg-muted); }
.sh-have { padding: 12px 14px; border-radius: 12px; background: var(--wg-tint); color: var(--wg-color-ink); font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sh-have a { color: var(--wg-color-ink); text-decoration: underline; }
/* order sheet + simple pages */
.sh-order { background: var(--wg-surface); }
.sh-order-wrap { display: grid; }
.sh-steps { display: flex; gap: 6px; font-size: 13px; color: var(--wg-faint); font-weight: 700; padding: 12px 16px 0; background: var(--wg-raised); }
.sh-steps b { color: var(--wg-text); }
.sh-sect { background: var(--wg-raised); padding: 16px; border-bottom: 8px solid var(--wg-surface); display: grid; gap: 12px; }
.sh-sect h2 { font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.sh-sect h2 a { font-size: 13px; color: var(--wg-color-ink); font-weight: 600; }
.sh-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.sh-item .sh-item-img { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--wg-surface-2); display: grid; place-items: center; font-size: 28px; color: var(--wg-color-ink); }
.sh-item .sh-item-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-item .t { font-size: 14px; font-weight: 600; line-height: 1.3; }
.sh-item .s { font-size: 13px; color: var(--wg-muted); margin-top: 4px; }
.sh-kv { display: grid; gap: 8px; font-size: 14px; }
.sh-kv > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sh-kv > div > span:first-child { color: var(--wg-muted); }
.sh-stepper { display: inline-flex; align-items: center; border: 1px solid var(--wg-border); border-radius: 10px; overflow: hidden; }
.sh-stepper output { min-width: 40px; text-align: center; font-weight: 700; }
.sh-stepper button { width: 40px; height: 40px; border: 0; background: var(--wg-surface); font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.sh-stepper button:disabled { color: var(--wg-faint); cursor: default; }
.sh-ttype { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--wg-border); }
.sh-ttype:last-child { border-bottom: 0; }
.sh-ttype b { font-size: 14px; display: block; }
.sh-ttype small { font-size: 12px; color: var(--wg-muted); display: block; }
.sh-ttype.is-off { opacity: .55; }
.sh-ttype.is-picked b { color: var(--wg-color-ink); }
.sh-pay { display: grid; gap: 10px; }
.sh-pay label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--wg-color); background: var(--wg-tint); border-radius: 12px; font-size: 15px; font-weight: 600; }
.sh-pay label i { width: 20px; height: 20px; border-radius: 50%; border: 6px solid var(--wg-color); flex: none; }
.sh-pay label .sh-ico { font-size: 20px; color: var(--wg-color-ink); margin-left: auto; }
.sh-trust { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--wg-muted); }
.sh-trust .sh-ico { color: var(--wg-color-ink); font-size: 18px; }
.sh-sum { display: grid; gap: 8px; font-size: 14px; }
.sh-sum > div { display: flex; justify-content: space-between; }
.sh-sum > div.total { font-size: 18px; font-weight: 800; padding-top: 10px; border-top: 1px solid var(--wg-border); }
.sh-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.sh-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.sh-check a { color: var(--wg-color-ink); font-weight: 600; }
.sh-agree { display: grid; gap: 8px; font-size: 13px; color: var(--wg-muted); }
.sh-page { max-width: 720px; margin: 0 auto; padding: 20px 16px 40px; display: grid; gap: 16px; }
.sh-page h1 { font-size: 24px; }
.sh-page h2 { font-size: 17px; margin-top: 8px; }
.sh-page p, .sh-page li { font-size: 15px; }
.sh-page ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.sh-form { display: grid; gap: 12px; }
.sh-field { display: grid; gap: 6px; font-size: 14px; }
.sh-field span { color: var(--wg-muted); font-weight: 600; }
.sh-field input, .sh-field select { height: 46px; border: 1px solid var(--wg-border); border-radius: 10px; padding: 0 12px; background: var(--wg-raised); width: 100%; }
.sh-field input:focus { border-color: var(--wg-color); box-shadow: var(--wg-focus-ring); outline: none; }
.sh-err { color: var(--wg-danger-ink); background: var(--wg-danger-tint); padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.sh-ok { color: var(--wg-color-ink); background: var(--wg-tint); padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.sh-card-box { border: 1px solid var(--wg-border); border-radius: 14px; background: var(--wg-raised); padding: 16px; display: grid; gap: 10px; box-shadow: var(--wg-shadow-card); }
.sh-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; }
.sh-row b { font-size: 15px; }
.sh-row small { color: var(--wg-muted); display: block; font-size: 13px; }
/* payment result */
.sh-result { max-width: 560px; margin: 24px auto; padding: 0 16px; }
.sh-result-card { border: 1px solid var(--wg-border); border-radius: 18px; padding: 24px 18px; text-align: center; display: grid; gap: 14px; background: var(--wg-raised); box-shadow: var(--wg-shadow-card); }
.sh-result-ico { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font-size: 28px; background: var(--wg-tint); color: var(--wg-color-ink); }
.sh-result.is-fail .sh-result-ico { background: var(--wg-danger-tint); color: var(--wg-danger-ink); }
.sh-result h1 { font-size: 22px; }
.sh-result dl { margin: 0; display: grid; gap: 6px; text-align: left; font-size: 14px; }
.sh-result dl div { display: flex; justify-content: space-between; gap: 10px; }
.sh-result dt { color: var(--wg-muted); }
.sh-result dd { margin: 0; font-weight: 600; }
.sh-result .sh-actions { display: grid; gap: 8px; }
.sh-test { font-size: 13px; color: var(--wg-warn-ink); background: var(--wg-warn-tint); padding: 8px 10px; border-radius: 8px; }
/* promote form */
.sh-opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--wg-border); border-radius: 12px; cursor: pointer; }
.sh-opt input { margin: 3px 0 0; }
.sh-opt b { display: block; font-size: 15px; }
.sh-opt small { color: var(--wg-muted); font-size: 13px; }
.sh-opt:has(input:checked) { border-color: var(--wg-color); background: var(--wg-tint); }
.sh-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sh-plan { position: relative; }
.sh-plan input { position: absolute; opacity: 0; inset: 0; }
.sh-plan span { display: grid; text-align: center; padding: 10px 6px; border: 1.5px solid var(--wg-border); border-radius: 12px; font-size: 13px; cursor: pointer; }
.sh-plan span b { font-size: 15px; }
.sh-plan input:checked + span { border-color: var(--wg-color); background: var(--wg-tint); color: var(--wg-color-ink); }
fieldset.sh-fs { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
fieldset.sh-fs legend { font-weight: 700; font-size: 15px; margin-bottom: 6px; padding: 0; }
.sh-pricetable { width: 100%; border-collapse: collapse; font-size: 14px; }
.sh-pricetable th, .sh-pricetable td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--wg-border); }
.sh-pricetable th { color: var(--wg-muted); font-weight: 600; }
.sh-pricetable td:last-child { text-align: right; font-weight: 800; }
/* toast + modal */
.sh-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: var(--wg-text); color: var(--wg-bg); padding: 12px 16px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 32px); box-shadow: var(--wg-shadow-pop); }
.sh-toast.is-error { background: var(--wg-danger-ink); color: #fff; }
.sh-modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
.sh-modal-card { background: var(--wg-raised); border-radius: 18px; padding: 20px; max-width: 420px; width: 100%; display: grid; gap: 14px; box-shadow: var(--wg-shadow-pop); }
.sh-modal-card p { font-size: 15px; }
.sh-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
/* footer */
.sh-footer { margin-top: 40px; padding: 28px 0 36px; border-top: 1px solid var(--wg-border); background: var(--wg-surface); font-size: 13px; color: var(--wg-muted); }
.sh-footer .sh-flinks { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; color: var(--wg-text); margin-bottom: 14px; }
.sh-footer .sh-flinks a { display: inline-flex; align-items: center; gap: 4px; }
.sh-lang { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; }
.sh-lang select { height: 34px; border: 1px solid var(--wg-border); border-radius: 8px; background: var(--wg-raised); padding: 0 8px; }
.sh-footer .sh-fbiz { display: grid; gap: 4px; }
.sh-footer .sh-fbiz span b { color: var(--wg-text); font-weight: 600; margin-right: 4px; }
.sh-footer .sh-fnote { margin-top: 14px; color: var(--wg-faint); }
/* desktop */
@media (min-width: 720px) {
  .sh-head .sh-wrap { height: 64px; }
  .sh-grid { grid-template-columns: repeat(4, 1fr); }
  .sh-product { grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1080px; margin: 24px auto; padding: 0 16px; align-items: start; }
  .sh-hero { border-radius: 16px; aspect-ratio: 1; }
  .sh-body { padding: 0; }
  .sh-buybar { position: static; border: 1px solid var(--wg-border); border-radius: 14px; margin-top: 4px; }
  .sh-order-wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px; gap: 16px; }
  .sh-sect { border: 1px solid var(--wg-border); border-radius: 14px; }
  .sh-steps { background: transparent; padding: 0; }
  .sh-btn.lg { width: auto; min-width: 260px; }
  .sh-result .sh-actions { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
