/* KOREA SMART BUY Wholesale — 화면 스타일. 글자는 크게(본문 17px 이상), 색은 SMART BUY 색 체계를 따른다. */
:root{
  --navy:#0D1B3E;--navy2:#1B2E63;--gold:#C9923A;--gold-d:#8A6420;--cream:#FBF1E3;--red:#C8102E;--green:#128C5E;
  --ink:#111827;--sub:#4B5563;--mute:#8B93A1;--line:#E7E9EE;--soft:#F6F3EE;--bg:#FFFDFA;
}
*{box-sizing:border-box;margin:0;padding:0}
html{font-size:17px;-webkit-text-size-adjust:100%}
body{font-family:'Noto Sans KR','Noto Sans Lao','Noto Sans Thai',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);line-height:1.6;padding-bottom:96px}
:lang(lo) body,:lang(th) body{line-height:1.75}
img{max-width:100%;display:block}button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
.wrap{max-width:1200px;margin:0 auto;padding-left:max(18px,env(safe-area-inset-left,0px));padding-right:max(18px,env(safe-area-inset-right,0px))}

.langbar{background:var(--navy);color:#fff}
.langbar-in{display:flex;gap:6px;justify-content:flex-end;padding-top:7px;padding-bottom:7px;overflow-x:auto}
.langbar button{color:#D7DCEA;font-size:15px;padding:6px 14px;border-radius:99px;white-space:nowrap;min-height:38px}
.langbar button[aria-pressed=true]{background:var(--gold);color:#fff;font-weight:700}

.hdr{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 2px 10px rgba(13,27,62,.05)}
.hdr-in{display:flex;align-items:center;gap:14px;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--navy)}
.logo-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--navy),var(--navy2));color:var(--gold);font-weight:800;font-size:24px;display:grid;place-items:center}
.logo-txt{font-size:18px;letter-spacing:.02em;line-height:1.2}.logo-txt b{font-weight:800}
.logo-txt em{display:block;font-style:normal;font-size:12.5px;font-weight:700;letter-spacing:.24em;color:var(--gold-d)}
.search{flex:1;min-width:220px;display:flex;align-items:center;gap:8px;background:var(--soft);border:2px solid transparent;border-radius:14px;padding:0 14px;height:50px}
.search:focus-within{border-color:var(--gold);background:#fff}
.search svg{width:22px;height:22px;fill:none;stroke:var(--sub);stroke-width:2;stroke-linecap:round;flex:none}
.search input{flex:1;border:0;background:none;font:inherit;font-size:17px;outline:none;min-width:0}
.hdr-cart{display:flex;align-items:center;gap:8px;background:var(--navy);color:#fff;border-radius:14px;height:50px;padding:0 18px;font-weight:700;font-size:16px;position:relative}
.hdr-cart svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.cnt{background:var(--red);color:#fff;border-radius:99px;min-width:26px;height:26px;padding:0 7px;font-size:14px;display:grid;place-items:center}

.hero{background:linear-gradient(115deg,#0D1B3E 0%,#2A2F6E 45%,#7A3F73 78%,#C9923A 130%);color:#fff;overflow:hidden;position:relative}
.hero::before{content:"";position:absolute;inset:0;background:radial-gradient(60% 80% at 82% 40%,rgba(244,217,168,.28),transparent 70%);pointer-events:none}
.hero-in{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:36px;align-items:center;padding-top:44px;padding-bottom:0}
.hero-t{padding-bottom:44px}
.hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);border-radius:99px;padding:7px 16px;font-size:15px;font-weight:700;color:#FBE7C2}
.hero-badge::before{content:"";width:9px;height:9px;border-radius:50%;background:#F4D9A8}
.hero-eye{color:#F4D9A8;font-weight:700;letter-spacing:.14em;font-size:15px;text-transform:uppercase;margin-top:20px}
.hero h1{font-size:clamp(30px,4.6vw,48px);line-height:1.22;margin:8px 0 14px;font-weight:800;text-wrap:balance}
.hero-s{font-size:19px;color:#E8EAF4;max-width:600px}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}
.hero-cta .btn{min-height:56px;padding:0 26px;font-size:18px}
.btn-gold{background:linear-gradient(135deg,#E2B463,#C9923A);color:#1B1408}.btn-ghost{background:rgba(255,255,255,.12);border:2px solid rgba(255,255,255,.5);color:#fff}
.hero-stats{display:flex;gap:12px;flex-wrap:wrap}
.stat{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);border-radius:16px;padding:12px 20px;min-width:120px}
.stat b{display:block;font-size:30px;line-height:1.1;color:#F4D9A8}.stat span{font-size:15px;color:#E3E7F3}
.hero-v{position:relative;align-self:end;height:100%;min-height:440px}
.hero-ph{position:absolute;inset:0 0 0 8%;border-radius:220px 220px 0 0;overflow:hidden;box-shadow:0 0 0 8px rgba(255,255,255,.14),0 30px 60px rgba(0,0,0,.35)}
.hero-ph img{width:100%;height:100%;object-fit:cover;object-position:50% 12%}
.hero-picks{position:absolute;left:-4%;bottom:26px;display:grid;gap:12px}
.hero-picks button{width:104px;height:104px;border-radius:20px;overflow:hidden;border:4px solid #fff;box-shadow:0 10px 24px rgba(0,0,0,.3);background:#fff}
.hero-picks button:nth-child(2){margin-left:-26px}.hero-picks img{width:100%;height:100%;object-fit:cover}
.prev{background:#FFF6D6;color:#5B4A00;font-size:15.5px;padding:10px 0;text-align:center;border-bottom:1px solid #EBD6B2}
.cats{position:sticky;top:75px;z-index:15;background:rgba(255,253,250,.96);backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
.cats-in{display:flex;gap:9px;overflow-x:auto;padding-top:12px;padding-bottom:12px;scrollbar-width:thin}
.chip{flex:none;border-radius:99px;padding:9px 18px;font-size:16px;font-weight:600;border:2px solid var(--c,var(--line));color:var(--c,var(--ink));background:#fff;min-height:44px;white-space:nowrap}
.chip small{font-weight:500;opacity:.75;margin-left:5px;font-size:14px}
.chip[aria-pressed=true]{background:var(--c,var(--navy));color:#fff}

.count{margin:20px 0 14px;font-size:16px;color:var(--sub)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}
.card{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 4px 16px rgba(13,27,62,.06);transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(13,27,62,.12)}
.card-img{position:relative;aspect-ratio:1/1;background:var(--soft);cursor:pointer;width:100%}
.card-img img{width:100%;height:100%;object-fit:cover}
.tag{position:absolute;left:12px;top:12px;background:var(--c,var(--navy));color:#fff;border-radius:99px;padding:4px 12px;font-size:13.5px;font-weight:700}
.card-b{padding:16px 16px 18px;display:flex;flex-direction:column;gap:6px;flex:1}
.brand{font-size:14.5px;font-weight:700;color:var(--gold-d);letter-spacing:.03em;text-transform:uppercase}
.name{font-size:18px;font-weight:700;line-height:1.4;cursor:pointer;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.vol{font-size:15px;color:var(--sub)}
.price{margin-top:auto;padding-top:10px}
.p-lab{font-size:14px;color:var(--sub);font-weight:600}
.p-ws{font-size:25px;font-weight:800;color:var(--red);line-height:1.2}.p-ws small{font-size:15px;font-weight:700;margin-left:3px}
.p-ask{font-size:18px;font-weight:700;color:var(--navy2);line-height:1.35}
.p-rt{font-size:15px;color:var(--sub);margin-top:2px}.p-rt b{color:var(--ink)}
.p-mg{display:inline-block;margin-top:6px;background:#E6F5EE;color:var(--green);border-radius:8px;padding:3px 10px;font-size:14.5px;font-weight:700}
.card-f{display:flex;gap:8px;margin-top:12px}
.btn{text-decoration:none;border-radius:13px;min-height:50px;padding:0 16px;font-weight:700;font-size:16.5px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center}
.btn-p{background:var(--navy);color:#fff;flex:1}.btn-p:hover{background:var(--navy2)}
.btn-g{background:var(--cream);color:var(--gold-d);border:2px solid #EBD6B2}
.btn-wa{background:#128C5E;color:#fff;width:100%;min-height:58px;font-size:18px}
.btn-l{background:#fff;border:2px solid var(--line);color:var(--ink);width:100%}
.step{display:flex;align-items:center;border:2px solid var(--navy);border-radius:13px;overflow:hidden;flex:1;min-height:50px}
.step button{width:50px;align-self:stretch;font-size:24px;font-weight:700;color:var(--navy);background:var(--cream)}
.step input{flex:1;min-width:0;width:100%;text-align:center;border:0;font:inherit;font-size:19px;font-weight:800;outline:none;-moz-appearance:textfield}
.step input::-webkit-outer-spin-button,.step input::-webkit-inner-spin-button{-webkit-appearance:none}
.note{margin:28px 0 8px;font-size:15.5px;color:var(--sub);background:var(--cream);border-radius:14px;padding:14px 18px}
.empty{grid-column:1/-1;text-align:center;padding:60px 0;color:var(--sub);font-size:18px}
.ftr{margin-top:36px;border-top:1px solid var(--line);padding:24px 0;font-size:15px;color:var(--sub);text-align:center}
.ftr a{color:var(--navy);font-weight:700}

.sheet{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center}
.sheet[hidden]{display:none}
.sheet-bg{position:absolute;inset:0;background:rgba(13,27,62,.55)}
.sheet-box{position:relative;background:#fff;width:min(980px,100%);max-height:94vh;overflow:auto;border-radius:24px 24px 0 0;padding:22px 22px 28px}
@media(min-width:760px){.sheet{align-items:center}.sheet-box{border-radius:24px;padding:30px}}
.x{position:sticky;top:0;float:right;z-index:2;width:48px;height:48px;border-radius:50%;background:var(--soft);font-size:26px;line-height:1}
.d-top{display:grid;gap:24px;grid-template-columns:1fr}
@media(min-width:760px){.d-top{grid-template-columns:minmax(0,440px) 1fr}}
.gal img{border-radius:18px;width:100%;aspect-ratio:1/1;object-fit:cover;background:var(--soft)}
.thumbs{display:flex;gap:10px;margin-top:10px}.thumbs button{width:76px;height:76px;border-radius:12px;overflow:hidden;border:3px solid transparent}
.thumbs button[aria-pressed=true]{border-color:var(--gold)}.thumbs img{width:100%;height:100%;object-fit:cover}
.d-name{font-size:26px;font-weight:800;line-height:1.35;margin:4px 0 8px}
.d-meta{font-size:16px;color:var(--sub)}
.d-price{background:var(--cream);border-radius:16px;padding:16px 18px;margin:16px 0}
.d-price .p-ws{font-size:32px}
.facts{display:grid;gap:12px;margin:18px 0}
.fact{border-radius:16px;padding:14px 18px;background:var(--fc,#F3F6FF);border-left:6px solid var(--fb,var(--navy))}
.fact h3{font-size:15.5px;color:var(--fb,var(--navy));margin-bottom:3px;font-weight:800}
.fact p{font-size:18px;line-height:1.6}
.sec{margin-top:22px}.sec h3{font-size:19px;font-weight:800;color:var(--navy);margin-bottom:6px;padding-bottom:6px;border-bottom:2px solid var(--cream)}
.sec p{font-size:17.5px;line-height:1.75;color:#1F2937;white-space:pre-line}
.sec .ing{font-size:16px;color:var(--sub);line-height:1.7}

.cart-box h2{font-size:24px;font-weight:800;color:var(--navy);margin-bottom:14px}
.ci{display:grid;grid-template-columns:76px 1fr;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);align-items:center}
.ci img{width:76px;height:76px;border-radius:12px;object-fit:cover}
.ci-n{font-size:17px;font-weight:700;line-height:1.4}.ci-s{font-size:15px;color:var(--sub)}
.ci-r{display:flex;align-items:center;gap:12px;margin-top:8px;flex-wrap:wrap}
.ci-r .step{flex:none;width:168px}.ci-t{font-size:18px;font-weight:800;margin-left:auto}
.tot{display:flex;justify-content:space-between;align-items:baseline;font-size:18px;padding:16px 0 4px}.tot b{font-size:28px;color:var(--red)}
.tot-s{font-size:15.5px;color:var(--sub);margin-bottom:16px}
.acts{display:grid;gap:10px}
.field{display:grid;gap:5px;margin:12px 0}.field label{font-size:15.5px;font-weight:700;color:var(--sub)}
.field input{border:2px solid var(--line);border-radius:12px;height:50px;padding:0 14px;font:inherit;font-size:17px}
.field input:focus{outline:none;border-color:var(--gold)}

.bar{position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--navy);color:#fff;padding:12px 18px calc(12px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:14px;justify-content:center;box-shadow:0 -6px 20px rgba(13,27,62,.25)}
.bar[hidden]{display:none}.bar-t{font-size:16px;line-height:1.3}.bar-t b{display:block;font-size:21px;color:#F4D9A8}
.bar .btn{background:var(--gold);color:#fff;min-width:170px}
.toast{position:fixed;left:50%;bottom:110px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 20px;border-radius:12px;font-size:16.5px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:60;max-width:90vw;text-align:center}
.toast.on{opacity:1}
@media(max-width:860px){.hero-in{grid-template-columns:1fr;gap:0;padding-top:28px}.hero-t{padding-bottom:26px}.hero-v{min-height:340px;margin:0 auto;width:min(360px,100%)}.hero-ph{inset:0 0 0 14%}.hero-picks{left:0}.hero-picks button{width:88px;height:88px}}
@media(max-width:560px){html{font-size:17px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card-b{padding:12px}.name{font-size:16.5px}.p-ws{font-size:21px}.card-f{flex-direction:column}.logo-txt{font-size:16px}.hdr-cart span#cartLabel{display:none}.cats{top:0;position:static}.stat{min-width:0;flex:1;padding:12px}.stat b{font-size:24px}}
