/* =====================================================
   B2B 아웃도어 · 공통 스타일 (C안)
   - 색상: 브랜드 초록 + 정보 색상 5가지
   - 반응형: 800px 이하 = 모바일 레이아웃
   ===================================================== */

:root {
    /* 브랜드 */
    --green: #208048;
    --green-dark: #165C34;
    --green-tint: #E3F4E8;
    --green-ink: #14532D;
    /* 정보 색상 5가지 */
    --blue: #2B6CB0;
    --blue-tint: #E1EDFA;
    --blue-ink: #1E4E86;
    --orange: #C94A16;
    --orange-tint: #FDE9DD;
    --purple: #7A4DB8;
    --purple-tint: #EEE7F8;
    --purple-ink: #55338A;
    --amber: #F6C445;
    --amber-tint: #FDF2CC;
    --amber-ink: #3B2A05;
    /* 기본 */
    --ink: #13211B;
    --ink-sub: #3E4F46;
    --muted: #5B6B63;
    --line: #DCE5DD;
    --field: #8A9A91;
    --bg: #F5F8F5;
    --card: #FFFFFF;
    --radius: 16px;
    --radius-lg: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-y: scroll; scrollbar-gutter: stable; }
body {
    margin: 0;
    font-family: 'Noto Sans KR', system-ui, -apple-system, 'Malgun Gothic', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--green); }
main { flex: 1 0 auto; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- 버튼 / 태그 / 칩 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 48px; padding: 0 26px; border: 0; border-radius: 10px;
    font: 700 16px/1 inherit; font-family: inherit; cursor: pointer; text-decoration: none;
}
.btn--pill { border-radius: 999px; }
.btn--block { width: 100%; height: 50px; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--outline { background: #fff; color: var(--green); border: 1.5px solid var(--green); height: 44px; padding: 0 22px; font-size: 15px; }

.tag {
    display: inline-block; font-size: 12px; font-weight: 700; line-height: 1;
    padding: 5px 10px; border-radius: 6px; color: #fff; white-space: nowrap;
}
.tag-new     { background: var(--green); }
.tag-restock { background: var(--blue); }
.tag-sale    { background: var(--orange); }
.tag-limited { background: var(--purple); }
.tag-soon    { background: var(--amber); color: var(--amber-ink); }
.tag--float  { position: absolute; left: 12px; top: 12px; }

.chip {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px;
    border-radius: 19px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.chip__dot { width: 8px; height: 8px; border-radius: 4px; background: currentColor; }
.tint-0 { background: var(--green-tint);  } .tint-0 .chip__dot { background: var(--green); }
.tint-1 { background: var(--blue-tint);   } .tint-1 .chip__dot { background: var(--blue); }
.tint-2 { background: var(--orange-tint); } .tint-2 .chip__dot { background: var(--orange); }
.tint-3 { background: var(--purple-tint); } .tint-3 .chip__dot { background: var(--purple); }
.tint-4 { background: var(--amber-tint);  } .tint-4 .chip__dot { background: #B58A12; }

.badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
    background: var(--orange); color: #fff; font-size: 12px; font-weight: 700;
}
.badge--float { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; font-size: 11px; }

.icon-btn {
    position: relative; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink);
    display: none; align-items: center; justify-content: center; cursor: pointer; text-decoration: none;
}
.link-more { font-size: 15px; font-weight: 700; color: var(--green); text-decoration: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* ---------- 상단 바 ---------- */
.topbar { background: var(--green); color: var(--green-tint); font-size: 13px; }
.topbar__in {
    min-height: 38px; display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 4px 24px;
}
.topbar__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a.is-strong { font-weight: 700; }

/* ---------- 헤더 ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.logo__img { display: block; height: 40px; width: auto; max-width: 220px; }
.logo-default { display: flex; align-items: center; gap: 10px; }
.logo-default__text { display: flex; flex-direction: column; line-height: 1; }
.logo-default__b2b { font-weight: 900; font-size: 22px; letter-spacing: -0.5px; color: var(--ink); }
.logo-default__sub { font-weight: 700; font-size: 11px; letter-spacing: 3px; color: var(--green); margin-top: 3px; }

.gnb { display: flex; flex-wrap: wrap; gap: 4px; }
.gnb a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
.gnb a:hover { color: var(--green); }

.search {
    flex: 1 1 240px; max-width: 380px; margin-left: auto; height: 44px;
    display: flex; align-items: center; padding: 0 6px 0 16px;
    border: 1px solid var(--field); border-radius: 22px; background: #fff;
}
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 15px inherit; font-family: inherit; color: var(--ink); }
.search button { width: 36px; height: 36px; border: 0; border-radius: 18px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

.mmenu { display: none; }

/* ---------- 첫 화면: 배너 + 로그인 ---------- */
.hero { display: flex; gap: 20px; align-items: flex-start; padding-top: 24px; }

.banner { position: relative; flex: 1 1 0; min-width: 0; height: 400px; border-radius: var(--radius-lg); overflow: hidden; background: #EAF6EE; }
.banner__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .4s; }
.banner__slide.is-active { opacity: 1; visibility: visible; }
.banner__slide a { display: block; width: 100%; height: 100%; }
/* 1200x400 이미지: 로그인 폼이 있을 때는 오른쪽이 잘리므로 핵심 내용은 왼쪽 880px 안에 둡니다 */
.banner__slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.banner__arrow {
    position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border: 0; border-radius: 22px;
    background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.banner__arrow--prev { left: 12px; }
.banner__arrow--next { right: 12px; }
.banner__dots { position: absolute; right: 20px; bottom: 14px; display: flex; align-items: center; }
.banner__dot { width: 28px; height: 32px; border: 0; padding: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.banner__dot span { display: block; width: 10px; height: 10px; border-radius: 5px; background: #fff; border: 1px solid var(--ink); transition: width .2s; }
.banner__dot.is-active span { width: 24px; background: var(--ink); }

/* 기본 B2B 몰 광고 */
.ad { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.ad__art { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.ad__body { position: relative; padding: 48px 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ad__chip { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #fff; background: var(--green); border-radius: 6px; padding: 5px 12px; }
.ad__title { margin: 0; font-size: 42px; line-height: 1.25; font-weight: 900; letter-spacing: -1px; }
.ad__sub { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-sub); max-width: 380px; }

.login-box {
    flex: 0 1 300px; width: 100%; padding: 24px; display: flex; flex-direction: column; gap: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.login-box h2 { margin: 0 0 4px; font-size: 19px; font-weight: 900; }
.login-box label { font-size: 13px; font-weight: 700; color: var(--muted); }
.login-box input { height: 46px; padding: 0 14px; border: 1px solid var(--field); border-radius: 10px; font: 15px inherit; font-family: inherit; }
.login-box .btn { margin-top: 4px; }
.login-box__links { display: flex; justify-content: space-between; font-size: 13px; }
.login-box__links .is-muted { color: var(--muted); }
.login-box__links .is-strong { font-weight: 700; }

/* ---------- 로그인 후 현황 ---------- */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-top: 20px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.tile__icon { flex: 0 0 42px; height: 42px; border-radius: 21px; display: flex; align-items: center; justify-content: center; color: #fff; }
.tile__text { display: flex; flex-direction: column; min-width: 0; }
.tile__text small { font-size: 12px; }
.tile__text strong { font-size: 16px; }
.tile--green  { background: var(--green-tint); }  .tile--green .tile__icon  { background: var(--green); }  .tile--green small  { color: var(--green-ink); }
.tile--blue   { background: var(--blue-tint); }   .tile--blue .tile__icon   { background: var(--blue); }   .tile--blue small   { color: var(--blue-ink); }
.tile--purple { background: var(--purple-tint); } .tile--purple .tile__icon { background: var(--purple); } .tile--purple small { color: var(--purple-ink); }
.tile--amber  { background: var(--amber-tint); }  .tile--amber .tile__icon  { background: var(--amber); color: var(--amber-ink); } .tile--amber small { color: #6B4A00; }

/* ---------- 섹션 공통 ---------- */
.section { padding-top: 32px; }
.section--last { padding-bottom: 72px; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--green); }
.section__title { margin: 0; font-size: 32px; font-weight: 900; letter-spacing: -0.5px; }
.section__title--sm { font-size: 28px; margin-bottom: 20px; }

.brands { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.brands__title { margin: 0; font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 1px; }
.brands__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; flex: 1 1 100%; }
.brand-card { display: flex; align-items: center; justify-content: center; height: 72px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.brand-card:hover { border-color: var(--green); box-shadow: 0 2px 10px rgba(32,128,72,.12); }
.brand-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-card__name { font-size: 14px; font-weight: 700; text-align: center; line-height: 1.3; }

.news { padding: 24px 28px; }
.news__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 8px; }
.news__head h2 { margin: 0; font-size: 20px; font-weight: 900; }
.news__list { margin: 0; padding: 0; list-style: none; }
.news__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 14px 0; border-top: 1px solid #EDF2EE; }
.news__list .tag { flex: 0 0 76px; text-align: center; padding: 6px 0; }
.news__title { flex: 1 1 300px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.news__title:hover { text-decoration: underline; }
.news__date { font-size: 13px; color: var(--muted); }

/* ---------- 상품 ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.product:hover { border-color: var(--green); }
.product__img {
    position: relative; aspect-ratio: 1 / 1;
    background: repeating-linear-gradient(135deg, #EEF3EF 0, #EEF3EF 10px, #E4EBE5 10px, #E4EBE5 20px);
}
.product__img img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.product__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.product__brand { font-size: 13px; font-weight: 700; color: var(--green); }
.product__name { font-size: 15px; line-height: 1.45; font-weight: 500; min-height: 44px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product__price { margin-top: 4px; font-size: 20px; font-weight: 900; }
.product__price small { font-size: 14px; font-weight: 500; }

/* ---------- 이용방법 ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.step { border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.step span { font-size: 13px; font-weight: 900; letter-spacing: 1px; }
.step strong { font-size: 18px; }
.step p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-sub); }
.step--green  { background: var(--green-tint); }  .step--green span  { color: var(--green); }
.step--blue   { background: var(--blue-tint); }   .step--blue span   { color: var(--blue); }
.step--orange { background: var(--orange-tint); } .step--orange span { color: var(--orange); }

/* ---------- 푸터 ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-nav { background: #EAF1EB; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; padding: 12px 24px; font-size: 14px; font-weight: 700; }
.footer-nav a { padding: 8px 16px; color: var(--ink-sub); text-decoration: none; }
.footer-info { padding-top: 32px; padding-bottom: 40px; text-align: center; font-size: 13px; line-height: 1.9; color: var(--muted); }
.footer-copy { margin-top: 8px; }

.tabbar { display: none; }


/* =====================================================
   추가 컴포넌트 (목록 / 상세 / 장바구니 / 주문 / 팝업)
   ===================================================== */
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 48px 0; margin: 0; }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.req { color: var(--orange); }
.news__btn { background: none; border: 0; padding: 0; text-align: left; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.login-page { display: flex; justify-content: center; padding-top: 40px; }
.login-page .login-box { max-width: 380px; }

.form-msg { margin: 4px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--orange-tint); color: #7A2E0B; font-size: 14px; font-weight: 500; }
.form-msg[hidden] { display: none; }
.form-msg.is-ok { background: var(--green-tint); color: var(--green-ink); }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); z-index: 60; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 24px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.modal { position: fixed; inset: 0; z-index: 70; background: rgba(19, 33, 27, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal__box { width: 100%; max-width: 460px; max-height: 86vh; overflow: auto; background: #fff; border-radius: var(--radius-lg); padding: 24px; }
.modal__seller { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--green); }
.modal__title { margin: 0 0 12px; font-size: 20px; font-weight: 900; line-height: 1.4; }
.modal__file { margin-bottom: 8px; font-size: 14px; }
.modal__body { font-size: 15px; line-height: 1.7; color: var(--ink-sub); word-break: break-word; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.modal__foot .btn { height: 44px; font-size: 15px; padding: 0 18px; }

/* ---------- 상품 목록 ---------- */
.list-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 72px; align-items: start; }
.filter__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.filter__box > summary { display: none; }
.filter__title { margin: 0 0 10px; font-size: 14px; font-weight: 900; color: var(--ink); letter-spacing: .5px; }
.filter__sellers { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.filter__sellers a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 15px; }
.filter__sellers a:hover { background: var(--bg); }
.filter__sellers a.is-on { background: var(--green-tint); color: var(--green-ink); font-weight: 700; }
.filter__q { width: 100%; height: 42px; padding: 0 14px; margin-bottom: 16px; border: 1px solid var(--field); border-radius: 10px; font: 15px inherit; font-family: inherit; }
.filter__brands-head { display: flex; align-items: center; justify-content: space-between; }
.filter__brands-head .filter__title { margin: 0; }
.filter__all { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.filter__brands { list-style: none; margin: 8px 0 16px; padding: 0; max-height: 320px; overflow: auto; }
.filter__brands label { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 15px; cursor: pointer; }
.filter input[type=checkbox], .filter input[type=radio] { width: 18px; height: 18px; accent-color: var(--green); }
.filter .btn--block { height: 44px; font-size: 15px; }
.contact dl { margin: 0; font-size: 14px; display: grid; grid-template-columns: 48px 1fr; gap: 6px 8px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; word-break: break-all; }

.list-count { margin: 0; color: var(--muted); font-size: 14px; }
.list-count strong { color: var(--ink); }
.sort { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.sort a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-sub); font-size: 14px; text-decoration: none; }
.sort a.is-on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; }
.pager .is-on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }

/* ---------- 상품 상세 ---------- */
.detail { padding-top: 24px; padding-bottom: 72px; }
.crumb { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.detail__top { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 40px; align-items: start; }
.detail__img { aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.detail__img img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.detail__name { margin: 4px 0 10px; font-size: 28px; line-height: 1.35; font-weight: 900; letter-spacing: -.5px; }
.detail__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.spec { display: grid; grid-template-columns: 96px 1fr; gap: 0; margin: 0 0 20px; border-top: 2px solid var(--ink); }
.spec dt, .spec dd { margin: 0; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec dt { color: var(--muted); }
.spec dd { font-weight: 500; }
.notice-box { padding: 20px; border-radius: var(--radius); background: var(--amber-tint); color: var(--amber-ink); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.notice-box p { margin: 0; font-size: 14px; line-height: 1.7; }
.notice-box .btn { height: 44px; font-size: 15px; padding: 0 22px; }
.table-wrap { overflow-x: auto; }
.opt { width: 100%; border-collapse: collapse; font-size: 15px; }
.opt th { background: var(--green); color: #fff; font-weight: 700; padding: 10px 8px; text-align: center; }
.opt td { padding: 8px; border-bottom: 1px solid var(--line); text-align: center; }
.opt .num, .num { text-align: right; }
.opt th.num { text-align: center; }
.qty { width: 64px; height: 40px; padding: 0 8px; border: 1px solid var(--field); border-radius: 8px; text-align: right; font: 15px inherit; font-family: inherit; }
.qty:disabled { background: #F0F3F0; border-color: var(--line); }
.stock { font-weight: 900; font-size: 18px; }
.stock--ok { color: var(--green); } .stock--low { color: var(--orange); } .stock--out { color: var(--muted); }
.order__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.order__btns .btn { flex: 1 1 160px; }
.detail__body { margin-top: 48px; }
.seller-html { text-align: center; font-size: 14px; line-height: 1.7; overflow-x: auto; word-break: break-word; }
.seller-html img { max-width: 100%; height: auto; }
.back { margin: 40px 0 0; text-align: center; }

/* ---------- 장바구니 / 주문서 ---------- */
.cart-page { padding-top: 28px; padding-bottom: 72px; }
.cart-group { padding: 20px 24px; margin-bottom: 16px; }
.cart-group__name { margin: 0 0 12px; font-size: 18px; font-weight: 900; }
.cart-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cart-table th { padding: 10px 8px; background: var(--bg); text-align: left; font-weight: 700; font-size: 14px; color: var(--ink-sub); }
.cart-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-table th.num { text-align: right; }
.cart-table .chk { width: 40px; text-align: center; }
.cart-table input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--green); }
.cart-table tfoot th { text-align: right; background: transparent; font-weight: 500; }
.cart-table tfoot .sum th, .cart-table tfoot .sum td { font-weight: 900; font-size: 16px; }
.cart-item a { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.cart-item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: #EEF3EF; }
.cart-item small { display: block; color: var(--green); font-weight: 700; font-size: 12px; }
.cart-total { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; margin: 8px 0 16px; font-size: 16px; }
.cart-total strong { font-size: 26px; font-weight: 900; }
.cart-total small { font-size: 15px; font-weight: 500; }
.cart-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.cart-actions .btn { min-width: 140px; }

.order-form { padding: 24px; margin-top: 8px; }
.order-form .section__title--sm { font-size: 20px; margin: 0 0 14px; }
.paylist { list-style: none; margin: 0 0 28px; padding: 0; }
.paylist li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.paylist__seller { flex: 1 1 160px; font-weight: 700; }
.paylist__amt { flex: 0 0 auto; font-weight: 900; }
.paylist__method { flex: 1 1 220px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; }
.paylist input[type=radio], .inline input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); vertical-align: -3px; }
.form-grid { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px 16px; align-items: start; margin-bottom: 8px; }
.form-grid > label { padding-top: 11px; font-weight: 700; font-size: 14px; color: var(--ink-sub); }
.form-grid input[type=text], .form-grid select, .form-grid textarea { width: 100%; max-width: 560px; height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 10px; font: 15px inherit; font-family: inherit; background: #fff; }
.form-grid textarea { height: auto; padding: 10px 12px; resize: vertical; }
.form-grid input[readonly] { background: #F3F6F3; border-color: var(--line); }
.form-grid .inline { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0 4px; font-size: 14px; }
.tel { display: flex; align-items: center; gap: 6px; }
.tel input { width: 76px !important; text-align: center; }
.zip { display: flex; flex-wrap: wrap; gap: 8px; }
.zip input { width: 120px !important; }
.zip .btn { height: 44px; font-size: 14px; padding: 0 16px; }
.zip .btn:disabled { opacity: .45; cursor: not-allowed; }
.done { text-align: center; padding: 40px 24px; margin-bottom: 20px; }
.done .section__title { margin-bottom: 12px; }
.done__no { font-size: 16px; }
.done__no strong { font-size: 20px; color: var(--green); }

/* =====================================================
   모바일 (800px 이하)
   ===================================================== */
@media (max-width: 800px) {
    .container { padding: 0 16px; }

    .topbar__nav { display: none; }
    .topbar__in { min-height: 32px; font-size: 12px; }

    .site-header__in { gap: 8px; padding-top: 8px; padding-bottom: 10px; }
    .logo { margin-right: auto; }
    .logo__img { height: 34px; max-width: 160px; }
    .gnb, .head-login { display: none; }
    .icon-btn { display: flex; }
    .search { order: 5; flex: 1 1 100%; max-width: none; margin-left: 0; }

    .mmenu { border-top: 1px solid var(--line); padding: 8px 16px 16px; background: #fff; }
    .mmenu.is-open { display: block; }
    .mmenu a { display: flex; align-items: center; min-height: 48px; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid #EDF2EE; }

    .hero { flex-direction: column; gap: 16px; padding-top: 16px; }
    .banner { flex: none; width: 100%; height: auto; }
    .banner--images { aspect-ratio: 3 / 1; }
    .banner__slide img { object-position: center; }
    .banner__arrow { width: 36px; height: 36px; margin-top: -18px; }
    .banner__dots { right: 8px; bottom: 0; }
    .banner--ad { min-height: 0; }
    .ad__body { padding: 28px 20px 32px; gap: 12px; }
    .ad__title { font-size: 28px; }
    .ad__sub { font-size: 14px; max-width: 70%; }
    .ad__art { opacity: .9; }
    .login-box { flex: none; padding: 20px; }

    .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 16px; }
    .tile { padding: 12px; gap: 10px; }
    .tile__icon { flex-basis: 36px; height: 36px; border-radius: 18px; }
    .tile__text strong { font-size: 14px; }

    .section { padding-top: 28px; }
    .section__title { font-size: 24px; }
    .section__title--sm { font-size: 22px; }

    .brands { display: block; }
    .brands__title { margin-bottom: 10px; }
    .brands__list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .brand-card { height: 60px; padding: 8px; }

    .news { padding: 18px 16px; }
    .news__list .tag { flex-basis: 64px; }
    .news__title { flex-basis: 0; min-width: 0; font-size: 14px; }
    .news__date { display: none; }

    .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product__body { padding: 12px; }
    .product__name { font-size: 14px; min-height: 40px; }
    .product__price { font-size: 17px; }

    .section--last { padding-bottom: 32px; }
    .footer-info { padding-bottom: 96px; font-size: 12px; }

    .tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 64px;
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
        background: #fff; border-top: 1px solid var(--line);
    }
    .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--muted); text-decoration: none; }
    .tabbar a.is-active { color: var(--green); font-weight: 700; }
}


@media (max-width: 800px) {
    .cart-page { padding-top: 20px; padding-bottom: 40px; }
    .detail { padding-bottom: 40px; }
    .list-page { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 12px; padding-bottom: 40px; }
    .filter__box > summary { display: flex; align-items: center; min-height: 44px; font-weight: 900; cursor: pointer; margin: -18px; padding: 0 18px; }
    .filter__box[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
    .filter__sellers { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .filter__sellers a { border: 1px solid var(--line); padding: 8px 12px; }
    .filter__brands { max-height: 220px; }
    .list-main { margin-top: 8px; }
    .sort { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px 4px; }
    .sort a { white-space: nowrap; }

    .detail__top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .detail__name { font-size: 22px; }
    .opt { font-size: 14px; }
    .qty { width: 56px; }
    .order__btns .btn { flex-basis: 100%; }

    .cart-group { padding: 14px 12px; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tfoot { display: block; }
    .cart-table tbody tr { display: grid; grid-template-columns: 32px 1fr 1fr; gap: 4px 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .cart-table--ro tbody tr { grid-template-columns: 1fr 1fr; }
    .cart-table tbody td { display: block; border: 0; padding: 2px 0; }
    .cart-table .chk { grid-row: 1 / span 3; padding-top: 6px; }
    .cart-table .cart-item { grid-column: 2 / span 2; }
    .cart-table--ro tbody td:first-child { grid-column: 1 / span 2; }
    .cart-table tbody td[data-label]::before { content: attr(data-label) " "; font-size: 12px; color: var(--muted); margin-right: 4px; }
    .cart-table .num { text-align: left; }
    .cart-table tfoot tr { display: flex; justify-content: space-between; padding: 8px 0; }
    .cart-table tfoot th { display: block; padding: 0; text-align: left; }
    .cart-table tfoot td { padding: 0; border: 0; }
    .cart-total { padding: 14px 16px; }
    .cart-total strong { font-size: 22px; }
    .cart-actions .btn { flex: 1 1 100%; }

    .order-form { padding: 16px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .form-grid > label { padding-top: 10px; }
    .modal { align-items: flex-end; padding: 0; }
    .modal__box { max-width: none; border-radius: 20px 20px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .banner__slide, .banner__dot span { transition: none; }
}
[hidden] { display: none !important; }
.brand-card, .brand-card:hover { text-decoration: none; color: var(--text, #1A2B20); }
.brands__title em { font-style: normal; color: var(--green); margin-left: 4px; }
.brand-card.is-off { display: none; }
.brands__list { transition: opacity .35s ease, transform .35s ease; }
.brands__list.is-fading { opacity: 0; transform: translateY(8px); }
.brands__dots { flex: 1 1 100%; display: flex; justify-content: center; gap: 2px; }
.brands__dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.brands__dots button::before { content: ""; display: block; width: 8px; height: 8px; margin: 10px auto; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.brands__dots button.is-active::before { background: var(--green); transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) { .brands__list { transition: none; } }

/* =====================================================
   조회 / 회원 페이지 (원장, 주문조회, 가입, 정보수정, 찾기, 문의, 약관)
   ===================================================== */
.page { padding-top: 24px; padding-bottom: 72px; }
.page .section__head { margin-bottom: 18px; }
.page--narrow { max-width: 920px; }
.page--tiny { max-width: 560px; }
.page-actions { text-align: center; margin: 24px 0 0; }
.req { color: #D9480F; margin-left: 3px; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; padding: 18px 22px; margin-bottom: 18px; }
.filter-bar__item { display: flex; flex-direction: column; gap: 6px; }
.filter-bar label { font-size: 13px; font-weight: 700; color: var(--muted); }
.filter-bar select, .filter-bar input { height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 10px; font: 15px inherit; font-family: inherit; background: #fff; min-width: 0; }
.filter-bar select { min-width: 180px; }
.filter-bar .range { display: flex; align-items: center; gap: 8px; }
.filter-bar .btn { height: 44px; padding: 0 28px; }

.table-card { padding: 4px 8px 8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { padding: 11px 8px; background: var(--green); color: #fff; font-weight: 700; text-align: center; white-space: nowrap; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.tbl .left { text-align: left; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl th.num { text-align: center; }
.tbl tfoot th { text-align: right; background: transparent; color: var(--ink); }
.tbl tfoot .sum th, .tbl tfoot .sum td { font-weight: 900; background: #EEF5F0; }
.ledger td { font-size: 14px; }
.ledger__open td { background: #F6FAF7; }
.ledger__sub td { background: #E8F0EA; font-weight: 700; }
.ledger__total td { background: #CFE2D5; font-weight: 900; }
.orders .order-no { font-weight: 900; color: #B56A00; text-decoration: none; }
.orders .order-no:hover { text-decoration: underline; }
.orders tr.is-open td { background: #FFF8E6; }

.order-detail { padding: 22px 24px; margin-top: 22px; }
.order-detail__title { margin: 0 0 14px; font-size: 20px; font-weight: 900; }
.order-detail__title small { margin-left: 8px; color: var(--green); font-weight: 700; }
.order-detail__sub { margin: 22px 0 10px; font-size: 16px; font-weight: 900; }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 700; font-size: 14px; }
.kv dd { margin: 0; }

.terms { padding: 28px 32px; line-height: 1.75; font-size: 14.5px; }
.terms__title { margin: 0 0 18px; font-size: 20px; font-weight: 900; }
.terms h3 { margin: 22px 0 6px; font-size: 15.5px; font-weight: 900; color: var(--green-ink); }
.terms p { margin: 4px 0; }
.terms .terms__li { padding-left: 14px; }
.terms--box { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; background: #FAFCFA; }
.terms--box .terms__title { font-size: 17px; }

.form-card { padding: 26px 28px; margin-bottom: 20px; }
.form-card__title { margin: 26px 0 14px; font-size: 18px; font-weight: 900; }
.form-card__title:first-child { margin-top: 0; }
.form-card__title small { font-size: 13px; font-weight: 500; margin-left: 8px; }
.form-card .muted { margin: 0 0 18px; line-height: 1.7; }
.check { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.form-actions .btn { min-width: 140px; }
.form-grid input[type=password], .form-grid input[type=email], .form-grid input[type=tel], .form-grid input[type=search] { width: 100%; max-width: 560px; height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 10px; font: 15px inherit; font-family: inherit; background: #fff; }
.form-grid input.w-short { max-width: 280px; }
.form-grid .hint { margin: 6px 0 0; }
.form-grid--stack { grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 4px 0 8px; }
.form-grid--stack > label { padding-top: 10px; }
.form-grid--stack input[type=text], .form-grid--stack input[type=password] { max-width: none; }
.form-grid--stack .tel input { width: 76px !important; }
.form-grid .tel input[type=text] { width: 76px; max-width: none; }

@media (max-width: 800px) {
    .page { padding-top: 16px; padding-bottom: 56px; }
    .filter-bar { padding: 14px 16px; gap: 12px; }
    .filter-bar__item, .filter-bar select { width: 100%; min-width: 0; }
    .filter-bar .range input[type=date] { flex: 1 1 0; }
    .filter-bar .range select { width: 110px; flex: 0 0 auto; }
    .filter-bar .range input[type=search] { flex: 1 1 0; }
    .filter-bar .btn { width: 100%; }
    .tbl { font-size: 13.5px; }
    .orders thead { display: none; }
    .orders, .orders tbody, .orders tr, .orders td { display: block; width: 100%; }
    .orders tr { padding: 12px 6px; border-bottom: 1px solid var(--line); }
    .orders td { display: flex; justify-content: space-between; gap: 14px; border: 0; padding: 4px 8px; text-align: right !important; }
    .orders td::before { content: attr(data-label); color: var(--muted); font-weight: 700; flex: 0 0 auto; text-align: left; }
    .form-card { padding: 20px 16px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .form-grid > label { padding-top: 10px; }
    .terms { padding: 20px 16px; }
    .terms--box { max-height: 260px; padding: 14px; }
    .form-actions .btn { flex: 1 1 100%; }
    .kv { grid-template-columns: 90px minmax(0, 1fr); }
    .order-detail { padding: 18px 14px; }
}
