/* =====================================================================
   BESTPOWDER — 카페 원료 B2B 쇼핑몰
   레이아웃 기준: 컨테이너 1100px (좌우 15px → 콘텐츠 1070px), 헤더 85px,
   상품 4열 (252px, gap 20px), 메인 슬라이드 860 x 470
   ===================================================================== */
:root {
    --primary: #d51a37;
    --primary-dark: #b3122b;
    --primary-soft: #fdf0f2;
    --text: #2e2e2e;
    --text-strong: #171717;
    --muted: #888;
    --sub: #666;
    --line: #e1e1e1;
    --line-soft: #eee;
    --bg-soft: #f7f7f7;
    --container: 1100px;
    --gutter: 15px;
    --radius: 4px;
    --cold: #2a7bd4;
    --frozen: #4b56c9;
    --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: #fff; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.left { text-align: left !important; }
.text-primary { color: var(--primary); }
.fs-18 { font-size: 18px; } .fs-20 { font-size: 20px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }

/* ---------- 폼 요소 ---------- */
input[type=text], input[type=search], input[type=password], input[type=email], input[type=tel],
input[type=number], input[type=date], select, textarea {
    height: 42px; padding: 0 12px; border: 1px solid #d6d6d6; border-radius: var(--radius); background: #fff; width: 100%; max-width: 420px;
}
textarea { height: auto; padding: 10px 12px; max-width: none; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text-strong); }
input[readonly] { background: var(--bg-soft); }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 16px; height: 16px; vertical-align: -3px; }
.check { display: inline-flex; align-items: flex-start; gap: 6px; cursor: pointer; }
.check input { flex: none; margin: 2px 0 0; }
.check--strong { font-weight: 700; font-size: 15px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline input { max-width: 240px; }
.req { color: var(--primary); font-style: normal; }
.field-hint { font-size: 12px; color: var(--muted); }
.field-hint.is-ok { color: #1a8a4a; } .field-hint.is-bad { color: var(--primary); }
.field-error { color: var(--primary); font-size: 13px; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius); font-weight: 600; white-space: nowrap; transition: .15s; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--lg { height: 50px; padding: 0 28px; font-size: 15px; }
.btn--xl { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--dark { background: var(--text-strong); color: #fff; }
.btn--line { border-color: #cfcfcf; background: #fff; color: var(--text-strong); }
.btn--line:hover { border-color: var(--text-strong); }
.btn--gray { background: #eee; color: var(--sub); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; align-items: center; }
.btn-row.center { justify-content: center; }
.btn-row form { margin: 0; }

/* ---------- 칩 · 태그 · 상태 ---------- */
.chip { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 12px; background: #f0f0f0; color: var(--sub); font-weight: 600; }
.chip--grade { background: var(--primary-soft); color: var(--primary); }
.chip--warn { background: #fff4e0; color: #c47200; }
.tag { display: inline-block; padding: 2px 6px; font-size: 11px; font-weight: 700; font-style: normal; line-height: 1.3; border-radius: 2px; background: #555; color: #fff; }
.tag--best { background: var(--primary); }
.tag--new { background: var(--text-strong); }
.tag--cold { background: var(--cold); }
.tag--frozen { background: var(--frozen); }
.tag--room { background: #9a8a6e; }
.status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; background: #eee; color: var(--sub); }
.status--lg { font-size: 14px; padding: 5px 14px; }
.status--pending { background: #fff4e0; color: #c47200; }
.status--paid, .status--preparing { background: #e8f1ff; color: #2563c9; }
.status--shipping { background: #e7f7ef; color: #1a8a4a; }
.status--delivered { background: #f0f0f0; color: #444; }
.status--cancelled { background: #fbeaea; color: #b4233c; }

/* ---------- 알림 · 박스 ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; line-height: 1.7; }
.alert ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.alert a { text-decoration: underline; }
.alert--error { background: #fdf0f2; color: #a0142c; border: 1px solid #f6cfd6; }
.alert--warn { background: #fff8eb; color: #8a5a00; border: 1px solid #f3dfb5; }
.box { border: 1px solid var(--line); border-radius: 6px; padding: 24px 26px; margin-bottom: 16px; background: #fff; }
.box--accent { border: 2px solid var(--text-strong); }
.box__title { font-size: 17px; font-weight: 700; color: var(--text-strong); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.box__title small { font-size: 13px; color: var(--muted); font-weight: 400; }
.box__opts { margin-left: auto; display: flex; gap: 14px; font-size: 13px; font-weight: 400; }
.form-table th { width: 150px; text-align: left; font-weight: 600; padding: 10px 0; vertical-align: top; line-height: 42px; color: var(--text-strong); }
.form-table td { padding: 10px 0; vertical-align: middle; line-height: 1.6; }
.form-table--box { border-top: 2px solid var(--text-strong); }
.form-table--box th, .form-table--box td { border-bottom: 1px solid var(--line-soft); padding: 12px 16px; }
.form-table--box th { background: #fafafa; }
.addr { display: grid; gap: 6px; max-width: 520px; }
.addr__row { display: flex; gap: 6px; }
.addr__row input { max-width: 160px; }
.addr input { max-width: none; }

/* ---------- 상단 띠 ---------- */
.topbar { background: var(--bg-soft); border-bottom: 1px solid var(--line-soft); font-size: 12px; color: var(--sub); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar__notice { display: flex; gap: 8px; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar__tag { background: var(--primary); color: #fff; padding: 0 6px; border-radius: 2px; font-weight: 700; font-size: 11px; }
.topbar__menu { display: flex; align-items: center; gap: 0; flex: none; }
.topbar__menu li { padding: 0 10px; position: relative; display: flex; align-items: center; gap: 4px; }
.topbar__menu li + li::before { content: ''; position: absolute; left: 0; top: 50%; height: 10px; margin-top: -5px; border-left: 1px solid #d0d0d0; }
.topbar__menu button { font-size: 12px; color: var(--sub); }
.topbar__menu .is-strong { color: var(--primary); font-weight: 700; }
.topbar__menu form { margin: 0; }

/* ---------- 헤더 (85px) ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line-soft); }
.header__inner { display: flex; align-items: center; height: 85px; gap: 0; }
.logo { display: inline-flex; align-items: baseline; font-weight: 900; font-size: 30px; letter-spacing: -0.04em; font-style: italic; line-height: 1; flex: none; }
.logo__mark { color: var(--primary); }
.logo__text { color: var(--text-strong); }
.logo--sm { font-size: 22px; }
.allmenu-btn { margin-left: 63px; display: inline-flex; align-items: center; gap: 8px; height: 45px; padding: 0 18px; background: var(--text-strong); color: #fff; font-weight: 700; border-radius: 2px; flex: none; }
.search { margin-left: 16px; position: relative; width: 383px; flex: none; }
.search input { height: 45px; max-width: none; border-color: #d6d6d6; border-radius: 2px; padding-right: 48px; }
.search button { position: absolute; right: 0; top: 0; width: 46px; height: 45px; display: grid; place-items: center; color: var(--text-strong); }
.header__icons { margin-left: auto; display: flex; gap: 18px; }
.header__icons a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--text-strong); position: relative; min-width: 48px; }
.badge { position: absolute; top: -6px; left: 50%; margin-left: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: grid; place-items: center; }

/* GNB */
.gnb { border-top: 1px solid var(--line-soft); }
.gnb__inner { display: flex; align-items: center; height: 48px; }
.gnb__list { display: flex; height: 100%; }
.gnb__list > li { position: relative; height: 100%; }
.gnb__list > li > a { display: flex; align-items: center; height: 100%; padding: 0 16px; font-size: 15px; font-weight: 600; color: var(--text-strong); }
.gnb__list > li:first-child > a { padding-left: 0; }
.gnb__list > li > a:hover, .gnb__list > li > a.is-active { color: var(--primary); }
.gnb__sub { display: none; position: absolute; top: 100%; left: 0; min-width: 160px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(0,0,0,.08); padding: 8px 0; z-index: 10; }
.gnb__item:hover .gnb__sub { display: block; }
.gnb__sub a { display: block; padding: 7px 16px; font-size: 13px; color: var(--sub); }
.gnb__sub a:hover { color: var(--primary); background: #fafafa; }
.gnb__guide { margin-left: auto; font-size: 13px; color: var(--sub); }

/* 전체메뉴 */
.allmenu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 2px solid var(--text-strong); border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.06); }
.allmenu__inner { display: grid; grid-template-columns: repeat(8, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 32px; }
.allmenu__col dt { font-weight: 700; font-size: 15px; color: var(--text-strong); margin-bottom: 10px; }
.allmenu__col dd { margin: 0 0 6px; font-size: 13px; color: var(--sub); }
.allmenu__col a:hover { color: var(--primary); }

/* ---------- 메인 슬라이더 (860 x 470, 좌우 미리보기) ---------- */
.main { min-height: 50vh; }
.hero { position: relative; overflow: hidden; margin-top: 8px; height: 470px; }
.hero__track { display: flex; gap: 30px; height: 100%; transition: transform .5s ease; will-change: transform; }
.hero__slide { flex: 0 0 860px; height: 470px; position: relative; overflow: hidden; display: flex; align-items: center; color: #fff; opacity: .55; transition: opacity .4s; }
.hero__slide.is-current { opacity: 1; }
.hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide.has-overlay::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%); }
.hero__slide.has-image::after { display: none; }
.hero__text { position: relative; z-index: 2; padding: 0 70px; display: flex; flex-direction: column; gap: 14px; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.hero__text em { font-style: normal; font-size: 16px; font-weight: 600; opacity: .85; }
.hero__text strong { font-size: 46px; line-height: 1.2; font-weight: 800; letter-spacing: -0.04em; }
.hero__more { margin-top: 10px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.6); align-self: flex-start; padding-bottom: 2px; }
.hero__slide::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--text-strong); font-size: 26px; line-height: 1; box-shadow: 0 2px 10px rgba(0,0,0,.15); z-index: 2; }
.hero__nav--prev { left: calc(50% - 430px - 24px); }
.hero__nav--next { right: calc(50% - 430px - 24px); }
.hero__dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.hero__dots button { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.5); transition: .3s; }
.hero__dots button.is-active { width: 24px; background: #fff; }

/* ---------- 카테고리 바로가기 (3열) ---------- */
.quick-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; margin-top: 40px; }
.quick-cats a { display: flex; align-items: center; gap: 20px; height: 104px; padding: 0 24px; background: var(--bg-soft); transition: .2s; }
.quick-cats a:hover { background: #f0f0f0; }
.quick-cats img { width: 66px; height: 66px; object-fit: cover; border-radius: 50%; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.quick-cats strong { display: block; font-size: 16px; font-weight: 700; color: var(--text-strong); }
.quick-cats small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- 혜택 안내 ---------- */
.benefit { margin-top: 90px; text-align: center; }
.benefit__title { font-size: 30px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.04em; }
.benefit__title b { color: var(--primary); }
.benefit__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 36px 0 30px; }
.benefit__list li { border: 1px solid var(--line); padding: 30px 16px; display: flex; flex-direction: column; gap: 8px; }
.benefit__list b { color: var(--primary); font-size: 13px; font-weight: 800; }
.benefit__list strong { font-size: 18px; color: var(--text-strong); }
.benefit__list span { font-size: 13px; color: var(--sub); line-height: 1.6; }

/* ---------- 상품 섹션 · 그리드 (4열 252px) ---------- */
.psection { margin-top: 90px; }
.psection__head { margin-bottom: 30px; }
.psection__head h2 { font-size: 34px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.04em; }
.psection__head h2 i { font-style: normal; font-weight: 300; margin-left: 4px; }
.psection__head p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px 20px; }

.pcard { position: relative; min-width: 0; }
.pcard__thumb { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-soft); }
.pcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pcard__thumb img { transform: scale(1.04); }
.pcard__badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 4px; }
.pcard__soldout { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.6); font-weight: 800; font-size: 18px; color: var(--text-strong); letter-spacing: .05em; }
.pcard__cart { position: absolute; right: 10px; top: calc((100% - 0px) * 0); margin-top: calc(100% - 50px); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.12); display: grid; place-items: center; color: var(--text-strong); opacity: 0; transition: .2s; }
.pcard:hover .pcard__cart { opacity: 1; }
.pcard__cart:hover { background: var(--primary); color: #fff; }
.pcard__body { padding-top: 16px; }
.pcard__brand { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.pcard__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.5; color: var(--text-strong); min-height: 45px; }
.pcard__name:hover { text-decoration: underline; }
.pcard__spec { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.pcard__note { font-size: 12px; color: var(--primary); margin-top: 6px; }
.pcard.is-soldout .pcard__name { color: var(--muted); }

/* 가격 */
.price__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.price__label { font-size: 14px; color: var(--sub); }
.price__value { font-weight: 700; font-size: 15px; color: var(--text-strong); }
.price__value.is-strike { color: var(--muted); font-weight: 500; text-decoration: line-through; font-size: 14px; }
.price__row--member .price__label, .price__row--member .price__value { color: var(--primary); }
.price__rate { font-style: normal; margin-right: 4px; }
.price__login { font-size: 13px; color: var(--primary); font-weight: 600; text-decoration: underline; }
.price__vat { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub); margin-top: 2px; }
.price__vat span { color: var(--primary); }
.price__locked { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); background: var(--bg-soft); padding: 8px 10px; }
.price--detail .price__row { justify-content: flex-start; gap: 20px; padding: 4px 0; }
.price--detail .price__label { width: 70px; }
.price--detail .price__value { font-size: 16px; }
.price--detail .price__row--member .price__value { font-size: 28px; font-weight: 800; }
.price--detail .price__login { font-size: 15px; }

/* 띠배너 */
.strip { display: flex; flex-direction: column; justify-content: center; height: 140px; padding: 0 50px; margin-top: 90px; }
.strip strong { font-size: 24px; color: var(--text-strong); font-weight: 700; }
.strip span { margin-top: 6px; color: var(--sub); }
.strip { position: relative; overflow: hidden; }
.strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.strip.has-image::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.1)); }
.strip.has-image strong, .strip.has-image span { position: relative; z-index: 2; color: #fff; }

/* 이미지 출처 */
.credits { width: 100%; font-size: 12px; }
.credits th, .credits td { border-bottom: 1px solid var(--line-soft); padding: 8px 10px; text-align: left; vertical-align: middle; }
.credits th { background: #fafafa; font-weight: 600; }
.credits img { width: 48px; height: 48px; object-fit: cover; }
.credits a { text-decoration: underline; }

/* 메인 공지 · 고객센터 */
.home-cs { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; margin: 100px 0 80px; }
.home-cs h3 { font-size: 17px; font-weight: 700; color: var(--text-strong); display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.home-cs h3 a { font-size: 12px; color: var(--muted); font-weight: 400; }
.home-cs__notice { border-top: 2px solid var(--text-strong); padding-top: 18px; }
.home-cs__notice li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.home-cs__notice li a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.home-cs__notice time { color: var(--muted); font-size: 13px; flex: none; }
.home-cs__box { background: var(--bg-soft); padding: 22px 24px; }
.home-cs__box p { font-size: 13px; color: var(--sub); line-height: 1.7; }
.home-cs__tel { font-size: 26px !important; font-weight: 800; color: var(--text-strong) !important; letter-spacing: -0.02em; margin-bottom: 4px; }
.home-cs__btns { display: flex; gap: 6px; margin-top: 14px; }
.home-cs__btns .btn { height: 36px; font-size: 13px; flex: 1; }

/* ---------- 목록 ---------- */
.list-head { text-align: center; padding: 50px 0 30px; }
.list-head__title { font-size: 32px; font-weight: 700; color: var(--text-strong); margin-top: 10px; }
.list-head__sub { margin-top: 8px; color: var(--muted); }
.crumb { font-size: 12px; color: var(--muted); display: flex; gap: 6px; justify-content: center; }
.crumb a + a::before, .crumb a + span::before { content: '›'; margin-right: 6px; }
.crumb--detail { justify-content: flex-start; padding: 20px 0; }
.subcats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.subcats a, .chips a { display: inline-block; padding: 8px 18px; border: 1px solid var(--line); border-radius: 20px; font-size: 14px; color: var(--sub); }
.subcats a.is-active, .chips a.is-active { background: var(--text-strong); color: #fff; border-color: var(--text-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.list-tool { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 2px solid var(--text-strong); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.list-tool__count b { color: var(--primary); }
.list-tool__filters { display: flex; gap: 6px; }
.list-tool__filters select { height: 34px; width: auto; font-size: 13px; }
.list-tool__sort { margin-left: auto; display: flex; }
.list-tool__sort li + li::before { content: '|'; color: #ddd; margin: 0 10px; }
.list-tool__sort a { font-size: 13px; color: var(--muted); }
.list-tool__sort a.is-active { color: var(--text-strong); font-weight: 700; }
.empty { text-align: center; padding: 100px 0; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty--sm { padding: 50px 0; }
.empty__btns, .empty .btn { margin-top: 20px; }
.empty__btns { display: flex; gap: 8px; justify-content: center; }
.paging { display: flex; justify-content: center; gap: 4px; margin: 50px 0 20px; }
.paging__btn { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 6px; border: 1px solid var(--line); font-size: 13px; color: var(--sub); }
.paging__btn.is-current { background: var(--text-strong); color: #fff; border-color: var(--text-strong); font-weight: 700; }
.paging__btn.is-disabled { color: #ccc; }

/* ---------- 상품 상세 ---------- */
.pdetail { display: grid; grid-template-columns: 520px 1fr; gap: 50px; }
.pdetail__main { position: relative; aspect-ratio: 1/1; background: var(--bg-soft); }
.pdetail__main img { width: 100%; height: 100%; object-fit: cover; }
.pdetail__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pdetail__thumbs button { width: 70px; height: 70px; border: 1px solid var(--line); }
.pdetail__thumbs button.is-active { border: 2px solid var(--text-strong); }
.pdetail__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdetail__badges { display: flex; gap: 4px; margin-bottom: 12px; }
.pdetail__brand { font-size: 14px; color: var(--muted); }
.pdetail__name { font-size: 26px; font-weight: 700; color: var(--text-strong); line-height: 1.35; margin-top: 4px; letter-spacing: -0.03em; }
.pdetail__summary { margin-top: 8px; color: var(--sub); }
.pdetail__price { margin-top: 22px; padding: 18px 0; border-top: 1px solid var(--text-strong); border-bottom: 1px solid var(--line); }
.pdetail__save { margin-top: 6px; font-size: 13px; color: var(--sub); }
.pdetail__save b { color: var(--primary); }
.spec-table { margin: 6px 0 20px; }
.spec-table th { width: 90px; text-align: left; font-weight: 500; color: var(--muted); padding: 8px 0; vertical-align: top; font-size: 13px; }
.spec-table td { padding: 8px 0; font-size: 13px; color: var(--text); }
.buybox { background: var(--bg-soft); padding: 18px 20px; }
.buybox__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px dashed #d8d8d8; }
.buybox__name { font-size: 14px; color: var(--text-strong); }
.buybox__name small { display: block; color: var(--muted); font-size: 12px; }
.buybox__total { text-align: right; padding: 14px 0; font-size: 14px; }
.buybox__total b { font-size: 26px; color: var(--primary); font-weight: 800; margin-left: 8px; }
.buybox__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buybox--off { text-align: center; }
.buybox--off p { margin-bottom: 14px; color: var(--sub); }
.buybox--off .btn { width: 100%; }
.qty { display: inline-flex; border: 1px solid #ccc; background: #fff; height: 38px; flex: none; }
.qty button { width: 34px; font-size: 18px; color: var(--sub); }
.qty input { width: 64px; height: 100%; border: 0; border-left: 1px solid #ddd; border-right: 1px solid #ddd; border-radius: 0; text-align: center; padding: 0 4px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 32px; }
.qty--sm button { width: 28px; }
.qty--sm input { width: 52px; height: 30px; font-size: 13px; }

.ptabs { margin-top: 80px; }
.ptabs__nav { display: grid; grid-template-columns: repeat(3, 1fr); position: sticky; top: 134px; background: #fff; z-index: 5; }
.ptabs__nav a { display: block; text-align: center; height: 54px; line-height: 54px; border: 1px solid var(--line); border-bottom-color: var(--text-strong); background: var(--bg-soft); color: var(--sub); font-weight: 600; }
.ptabs__nav a.is-active { background: #fff; border: 1px solid var(--text-strong); border-bottom-color: #fff; color: var(--text-strong); }
.ptabs__panel { padding: 50px 0 20px; scroll-margin-top: 200px; }
.ptabs__title { font-size: 18px; font-weight: 700; margin: 20px 0 14px; color: var(--text-strong); }
.pdesc { max-width: 860px; margin: 0 auto; line-height: 1.8; font-size: 15px; }
.pdesc h3 { font-size: 24px; margin-bottom: 16px; text-align: center; }
.pdesc h4 { font-size: 17px; margin: 28px 0 8px; }
.pdesc ul { list-style: disc; padding-left: 20px; }
.pdesc img { margin: 20px auto 0; }
.info-table { border-top: 2px solid var(--text-strong); }
.info-table th, .info-table td { border-bottom: 1px solid var(--line-soft); padding: 12px 16px; font-size: 13px; text-align: left; }
.info-table th { background: #fafafa; width: 15%; font-weight: 600; }
.dot-list li { position: relative; padding-left: 12px; margin-bottom: 6px; color: var(--sub); line-height: 1.7; }
.dot-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 3px; height: 3px; background: #999; border-radius: 50%; }

/* ---------- 장바구니 · 주문서 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 50px 0 24px; }
.page-head h1 { font-size: 30px; font-weight: 700; color: var(--text-strong); }
.page-head__desc { width: 100%; color: var(--sub); }
.steps { display: flex; gap: 20px; font-size: 14px; color: #bbb; font-weight: 600; }
.steps .is-active { color: var(--text-strong); }
.cart-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.cart-tool { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; }
.cart-table { border-top: 2px solid var(--text-strong); }
.cart-table th { font-weight: 600; font-size: 13px; color: var(--sub); padding: 12px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 18px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.cart-table--compact { border-top: 0; }
.cart-table--compact td { padding: 12px 6px; }
.cart-table tr.is-problem { background: #fcfcfc; }
.cart-table tr.is-problem img { opacity: .5; }
.w-check { width: 40px; text-align: center; }
.w-qty { width: 140px; text-align: center; }
.w-qty small { display: block; margin-top: 4px; font-size: 11px; }
.w-price { width: 130px; text-align: right; }
.w-num { width: 80px; } .w-date { width: 120px; }
.cart-item { display: flex; gap: 14px; align-items: center; }
.cart-item img { width: 84px; height: 84px; object-fit: cover; background: var(--bg-soft); flex: none; }
.cart-item--sm img { width: 60px; height: 60px; }
.cart-item__brand { font-size: 12px; color: var(--muted); }
.cart-item__name { font-weight: 600; color: var(--text-strong); }
.cart-item__spec { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-item__unit { font-size: 13px; margin-top: 4px; color: var(--primary); }
.cart-item__unit s { color: var(--muted); margin-left: 4px; }
.cart-item__problem { color: var(--primary); font-size: 12px; margin-top: 4px; font-weight: 600; }
.summary { position: sticky; top: 150px; border: 2px solid var(--text-strong); padding: 24px; }
.summary h2 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.summary dl div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary dt { color: var(--sub); }
.summary .is-save dd { color: var(--primary); }
.summary__hint { font-size: 12px; color: var(--sub); background: var(--bg-soft); padding: 8px 10px; margin-top: 8px; }
.summary__hint b { color: var(--primary); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin: 14px 0 18px; padding-top: 16px; }
.summary__total b { font-size: 26px; color: var(--primary); font-weight: 800; }
.summary__total small { font-size: 15px; }
.summary__agree { font-size: 12px; color: var(--sub); margin-bottom: 14px; line-height: 1.5; }
.paymethod { display: flex; gap: 8px; margin-bottom: 14px; }
.paymethod__item { flex: 1; max-width: 200px; display: flex; gap: 6px; align-items: center; justify-content: center; height: 48px; border: 1px solid var(--line); font-weight: 600; }
.paymethod__item.is-active { border: 2px solid var(--text-strong); }
.paymethod__item.is-disabled { color: #bbb; }
.paymethod__item small { font-weight: 400; }

.complete { text-align: center; padding: 40px 0 40px; }
.complete__icon { width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 34px; line-height: 70px; font-weight: 700; }
.complete h2 { font-size: 26px; font-weight: 700; color: var(--text-strong); }
.complete p { margin-top: 10px; color: var(--sub); line-height: 1.8; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0; counter-reset: f; }
.flow li { background: var(--bg-soft); padding: 18px 10px; text-align: center; font-weight: 600; color: var(--sub); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flow li b { width: 28px; height: 28px; border-radius: 50%; background: #ddd; color: #fff; display: grid; place-items: center; font-size: 13px; }
.flow li small { font-weight: 400; color: var(--muted); font-size: 12px; }
.flow li.is-done b { background: var(--text-strong); }
.flow li.is-active { background: var(--primary-soft); color: var(--primary); }
.flow li.is-active b { background: var(--primary); }

/* ---------- 로그인 ---------- */
.auth { max-width: 420px; margin: 70px auto 100px; }
.auth__title { font-size: 30px; font-weight: 700; text-align: center; color: var(--text-strong); }
.auth__desc { text-align: center; color: var(--muted); margin: 10px 0 30px; }
.auth__form { display: grid; gap: 10px; }
.auth__form input[type=text], .auth__form input[type=password] { height: 52px; max-width: none; }
.auth__form .btn { margin-top: 8px; }
.auth__links { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth__join { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); text-align: center; }
.auth__join p { margin-bottom: 16px; color: var(--sub); line-height: 1.7; }
.agree { display: grid; gap: 12px; }
.agree a { color: var(--muted); text-decoration: underline; font-size: 12px; }

/* ---------- 마이페이지 ---------- */
.my { display: grid; grid-template-columns: 200px 1fr; gap: 50px; padding: 50px 0 100px; }
.my__profile { background: var(--text-strong); color: #fff; padding: 20px; }
.my__company { font-size: 17px; font-weight: 700; }
.my__grade { margin-top: 6px; font-size: 13px; opacity: .9; display: flex; gap: 6px; align-items: center; }
.my__nav { border: 1px solid var(--line); border-top: 0; padding: 10px 20px 20px; }
.my__nav h3 { font-size: 14px; font-weight: 700; color: var(--text-strong); margin: 14px 0 6px; }
.my__nav a { display: block; padding: 5px 0; font-size: 14px; color: var(--sub); }
.my__nav a.is-active, .my__nav a:hover { color: var(--primary); font-weight: 600; }
.my__title { font-size: 26px; font-weight: 700; color: var(--text-strong); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.my__title small { font-size: 15px; color: var(--muted); font-weight: 400; }
.my__title .btn { margin-left: auto; }
.my__desc { color: var(--sub); margin: -14px 0 20px; }
.my-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.my-summary__card { border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.my-summary__card span { font-size: 13px; color: var(--muted); }
.my-summary__card b { font-size: 22px; color: var(--text-strong); }
.my-summary__card small { font-size: 12px; color: var(--primary); }
.order-flow { display: grid; grid-template-columns: repeat(5, 1fr); margin: 20px 0 40px; background: var(--bg-soft); }
.order-flow a { display: flex; flex-direction: column; align-items: center; padding: 22px 0; gap: 4px; position: relative; }
.order-flow li + li a::before { content: '›'; position: absolute; left: -4px; top: 50%; transform: translateY(-50%); color: #ccc; font-size: 20px; }
.order-flow b { font-size: 26px; color: var(--text-strong); }
.order-flow span { font-size: 13px; color: var(--sub); }
.my-section { margin-bottom: 36px; }
.my-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.my-section h2 a { font-size: 12px; color: var(--muted); font-weight: 400; }
.list-table { border-top: 2px solid var(--text-strong); }
.list-table th { font-size: 13px; font-weight: 600; color: var(--sub); padding: 12px 10px; border-bottom: 1px solid var(--line); background: #fafafa; }
.list-table td { padding: 14px 10px; border-bottom: 1px solid var(--line-soft); text-align: center; font-size: 14px; }
.list-table tr.is-pinned td { background: #fffafa; }
.list-table .link { color: var(--text-strong); font-weight: 600; text-decoration: underline; }
.empty-cell { padding: 60px 0 !important; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a { display: block; padding: 10px 16px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.is-active { color: var(--text-strong); border-bottom-color: var(--text-strong); }
.tabs--center { justify-content: center; width: 100%; margin-top: 10px; }
.order-status { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--bg-soft); margin-bottom: 20px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-2 .form-table th { width: 110px; line-height: 1.6; }
.reorder-table td { padding: 10px; }
.reorder-bar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #fff; border-top: 2px solid var(--text-strong); box-shadow: 0 -6px 14px rgba(0,0,0,.04); margin-top: 10px; color: var(--sub); font-size: 13px; }

/* ---------- 게시판 ---------- */
.board-search { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 12px; }
.board-search input { max-width: 240px; height: 38px; }
.board-search .btn { height: 38px; }
.board-view { border-top: 2px solid var(--text-strong); }
.board-view header { padding: 20px; border-bottom: 1px solid var(--line); }
.board-view header h2 { font-size: 19px; margin: 6px 0 4px; color: var(--text-strong); }
.board-view header time { font-size: 13px; color: var(--muted); }
.board-view__body { padding: 30px 20px; min-height: 160px; line-height: 1.9; border-bottom: 1px solid var(--line); }
.answer { background: var(--bg-soft); padding: 22px 24px; line-height: 1.8; border-bottom: 1px solid var(--line); }
.answer h3 { font-size: 15px; color: var(--primary); margin-bottom: 8px; }
.answer h3 time { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.answer--wait { color: var(--muted); text-align: center; }
.board-nav { border-bottom: 1px solid var(--line); }
.board-nav li { display: flex; gap: 20px; padding: 12px 20px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.board-nav span { color: var(--muted); width: 50px; flex: none; }
.board-nav em { color: #bbb; font-style: normal; }
.faq { border-top: 2px solid var(--text-strong); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--text-strong); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary b, .faq__answer b { font-size: 17px; color: var(--primary); width: 18px; flex: none; }
.faq__answer { display: flex; gap: 12px; background: var(--bg-soft); padding: 18px 20px; line-height: 1.8; color: var(--sub); }
.faq__answer b { color: var(--text-strong); }
.cs-banner { display: flex; justify-content: space-between; align-items: center; background: var(--bg-soft); padding: 22px 26px; margin: 40px 0 80px; font-weight: 600; }
.guide { margin-bottom: 50px; }
.guide h2 { font-size: 20px; font-weight: 700; color: var(--text-strong); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--text-strong); }
.guide .flow { margin-top: 0; }
.legal { padding: 50px var(--gutter) 100px; line-height: 1.9; }
.legal h1 { font-size: 28px; margin-bottom: 24px; }
.legal h2 { font-size: 17px; margin: 24px 0 6px; }

/* ---------- 푸터 ---------- */
.footer { background: #fafafa; border-top: 1px solid var(--line); margin-top: 60px; padding-bottom: 40px; }
.footer__links { display: flex; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--sub); }
.footer__body { display: flex; justify-content: space-between; gap: 40px; padding-top: 30px; }
.footer__info { font-style: normal; margin-top: 16px; font-size: 12px; color: var(--muted); line-height: 2; }
.footer__info span { margin-right: 14px; }
.footer__copy { margin-top: 10px; font-size: 12px; color: #aaa; }
.footer__cs { flex: none; width: 300px; }
.footer__cs h3 { font-size: 14px; font-weight: 700; color: var(--text-strong); margin: 0 0 4px; }
.footer__cs h3 + p, .footer__cs p { font-size: 12px; color: var(--sub); line-height: 1.7; margin-bottom: 12px; }
.footer__tel { font-size: 24px !important; font-weight: 800; color: var(--text-strong) !important; margin-bottom: 2px !important; }

/* ---------- 기타 ---------- */
.to-top { position: fixed; right: 30px; bottom: 30px; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .2s; z-index: 40; }
.to-top.is-show { opacity: 1; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); background: rgba(23,23,23,.92); color: #fff; padding: 13px 22px; border-radius: 4px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: 90vw; text-align: center; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: #ffb4c0; text-decoration: underline; margin-left: 8px; }

/* ---------- 반응형 (참조 사이트처럼 PC 1100 고정, 모바일은 1열 축소) ---------- */
@media (max-width: 1099px) {
    .allmenu-btn { margin-left: 24px; }
    .search { width: auto; flex: 1; }
    .header__icons { margin-left: 16px; }
    .hero__slide { flex-basis: 80vw; }
    .hero__nav--prev { left: 12px; } .hero__nav--next { right: 12px; }
    .allmenu__inner { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    body { font-size: 13px; }
    .topbar__notice { display: none; }
    .topbar__inner { justify-content: flex-end; }
    .header__inner { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 10px; }
    .logo { font-size: 24px; }
    .allmenu-btn { order: 3; margin-left: 0; height: 40px; padding: 0 12px; }
    .search { order: 4; flex: 1; margin-left: 0; }
    .search input, .search button { height: 40px; }
    .header__icons { gap: 8px; }
    .header__icons a { min-width: 40px; font-size: 11px; }
    .gnb__inner { overflow-x: auto; scrollbar-width: none; }
    .gnb__inner::-webkit-scrollbar { display: none; }
    .gnb__list > li > a { white-space: nowrap; padding: 0 10px; font-size: 14px; }
    .gnb__sub, .gnb__guide { display: none !important; }
    .header { position: static; }
    .hero { height: 260px; }
    .hero__slide { flex-basis: 88vw; height: 260px; }
    .hero__track { gap: 12px; }
    .hero__text { padding: 0 24px; }
    .hero__text strong { font-size: 26px; }
    .quick-cats { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 20px; }
    .quick-cats a { height: 76px; padding: 0 12px; gap: 10px; }
    .quick-cats img { width: 40px; height: 40px; }
    .quick-cats small { display: none; }
    .benefit { margin-top: 50px; }
    .benefit__title { font-size: 20px; }
    .benefit__list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .psection { margin-top: 50px; }
    .psection__head h2 { font-size: 24px; }
    .pgrid { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; }
    .pcard__cart { opacity: 1; width: 34px; height: 34px; margin-top: calc(100% - 42px); right: 8px; }
    .strip { height: auto; padding: 24px; margin-top: 50px; }
    .strip strong { font-size: 18px; }
    .home-cs { grid-template-columns: 1fr; margin: 60px 0 40px; }
    .list-tool { flex-wrap: wrap; gap: 10px; }
    .list-tool__sort { margin-left: 0; width: 100%; overflow-x: auto; white-space: nowrap; }
    .pdetail { grid-template-columns: 1fr; gap: 24px; }
    .ptabs__nav { top: 0; }
    .ptabs__nav a { font-size: 13px; }
    .info-table th, .info-table td { display: block; width: 100%; }
    .cart-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .cart-table thead { display: none; }
    .cart-table td { padding: 12px 4px; }
    .cart-item img { width: 60px; height: 60px; }
    .w-price { width: auto; }
    .form-table th, .form-table td { display: block; width: 100%; line-height: 1.6; padding: 6px 0; }
    .form-table th { padding-top: 12px; }
    .box { padding: 18px 16px; }
    .box__opts { margin-left: 0; width: 100%; }
    .my { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
    .my-summary { grid-template-columns: 1fr; }
    .order-flow b { font-size: 20px; }
    .grid-2 { grid-template-columns: 1fr; }
    .flow { grid-template-columns: repeat(2, 1fr); }
    .list-table th:nth-child(3), .list-table td:nth-child(3) { display: none; }
    .footer__body { flex-direction: column; }
    .footer__links { flex-wrap: wrap; gap: 12px; }
    .page-head { padding-top: 30px; }
    .page-head h1 { font-size: 24px; }
}
