/* 기업몰 — 스토어형 레이아웃.
   흰 바탕 · 얇은 회색 선 · 작은 둥글기 · 그림자 없음. 강조색은 짙은 남색. */

:root {
  /* 중립 브랜드 색 */
  --primary: #24324f;
  --primary-deep: #18233a;
  --primary-soft: #eef1f6;
  --pink: #dfe4ec;
  --pink-soft: #eef1f6;
  --ink: #111;
  --label: #111;
  --alt: #666;
  --muted: #999;
  --line: #e5e5e5;
  --line-soft: #eee;
  --fill: #f7f7f7;
  --paper: #fff;
  --ok: #0F9B5A;
  --warn: #C8820A;
  --danger: #E0362A;
  --cold: #1E7FD4;
  --frozen: #3B5CCC;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;

  --body-font: "Noto Sans KR", "Noto Sans", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
:root {
  /* 안드로이드 15/16 edge-to-edge 에서 WebView 가 env() 를 0 으로 주는 기기 대응 —
     네이티브가 --android-inset-* 를 주입하면 그걸 쓴다. */
  --safe-top: max(env(safe-area-inset-top, 0px), var(--android-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--android-inset-bottom, 0px));
  --safe-left: max(env(safe-area-inset-left, 0px), var(--android-inset-left, 0px));
  --safe-right: max(env(safe-area-inset-right, 0px), var(--android-inset-right, 0px));
  --gl: max(16px, var(--safe-left));
  --gr: max(16px, var(--safe-right));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; overscroll-behavior-y: none; }
/* 목록에 다음 묶음을 덧붙일 때 브라우저가 스크롤을 따라 옮기지 않게(아래쪽 푸터에 붙어 끝없이 불러오는 것 방지) */
html, body, .screen { overflow-anchor: none; }
body {
  font-family: var(--body-font);
  background: #fff;
  color: var(--label);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  /* 화면 아래에 고정된 것(탭바·구매 바)만큼 본문 끝을 띄운다 */
  --pad-b: var(--safe-bottom);
}
body.has-tabs { --pad-b: calc(56px + var(--safe-bottom)); }
body.has-bar { --pad-b: calc(68px + var(--safe-bottom)); }
body.has-tabs.has-bar { --pad-b: calc(124px + var(--safe-bottom)); }
button { font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: var(--label); }
img { display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tnum { font-variant-numeric: tabular-nums; }
.sp { flex: 1; }
.center { text-align: center; }
.danger { color: var(--danger) !important; }
b.pri { color: var(--primary); }
.dim { font-size: 12.5px; color: var(--alt); font-weight: 400; }
.pre { white-space: pre-wrap; }

/* ───── 뼈대 (모바일: 앱처럼 화면 안에서 스크롤) ───── */
.stage { height: 100%; display: flex; justify-content: center; background: #f5f5f5; }
.phone {
  position: relative;
  width: 100%; max-width: 560px; height: 100%;
  background: var(--paper);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.screen {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.wrap { padding: 16px var(--gr) 32px var(--gl); }
.wrap.end { padding-bottom: calc(32px + var(--pad-b)); }

/* ───── 상단 (모바일) ───── */
.dhead { flex: 0 0 auto; position: relative; z-index: 40; background: #fff; }
.hd-pc { display: none; }
.hd-m {
  display: flex; align-items: center; gap: 2px;
  height: calc(52px + var(--safe-top));
  padding: var(--safe-top) max(6px, var(--safe-right)) 0 max(14px, var(--safe-left));
  border-bottom: 1px solid var(--line-soft);
}
.hd-m.sub { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; padding-left: max(4px, var(--safe-left)); padding-right: max(4px, var(--safe-right)); }
.hd-m.search { padding-left: max(4px, var(--safe-left)); padding-right: max(12px, var(--safe-right)); gap: 4px; }
.hd-m h1 {
  margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.3px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mlogo { display: flex; align-items: center; gap: 7px; }
.mlogo img { height: 30px; width: auto; }
.hbtn {
  position: relative; width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center; color: #111; border-radius: var(--r-sm);
}
.hbtn:active { background: var(--fill); }
.hbtn svg { width: 22px; height: 22px; }
.msearch {
  flex: 1; min-width: 0; display: flex; align-items: center; height: 38px;
  background: var(--fill); border-radius: var(--r-sm); padding: 0 2px 0 12px;
}
.msearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 16px; }
.msearch button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); }
.msearch svg { width: 16px; height: 16px; }
.mcats {
  display: flex; overflow-x: auto; scrollbar-width: none;
  padding: 0 max(6px, var(--safe-right)) 0 max(6px, var(--safe-left));
  border-bottom: 1px solid var(--line);
}
.mcats::-webkit-scrollbar { display: none; }
.mcats:empty { display: none; }
.mcats button {
  position: relative; flex: 0 0 auto; height: 42px; padding: 0 10px;
  font-size: 14px; color: var(--alt); white-space: nowrap;
}
.mcats button.on { color: #111; font-weight: 700; }
.mcats button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: #111; }

/* 로고 옆 문구 — 글자만. 흰 바탕에서는 검정, PC 홈(사진 위)에서는 흰색 */
.office { font-size: 16px; font-weight: 700; letter-spacing: .4px; line-height: 1; color: #111; white-space: nowrap; }
.dot {
  position: absolute; top: 3px; right: 0;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; font-style: normal;
  display: grid; place-items: center; line-height: 1;
}

/* ───── 탭바 (모바일) ───── */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex;
  height: calc(56px + var(--safe-bottom));
  padding: 0 max(6px, var(--safe-right)) var(--safe-bottom) max(6px, var(--safe-left));
  background: #fff;
  border-top: 1px solid var(--line);
}
.tabbar[hidden] { display: none; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); position: relative;
}
.tab svg { width: 22px; height: 22px; }
.tab span { font-size: 10.5px; font-weight: 600; letter-spacing: -.2px; }
.tab.on { color: var(--primary); }
.tab.on span { font-weight: 700; }
.tab .dot { top: 5px; right: 50%; margin-right: -21px; }

/* ───── 하단 고정 바 (모바일) ───── */
.bar {
  position: absolute; left: 0; right: 0; z-index: 25;
  bottom: calc(56px + var(--safe-bottom));
  min-height: 68px; padding: 10px var(--gr) 10px var(--gl);
  background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
body:not(.has-tabs) .bar { bottom: 0; padding-bottom: calc(10px + var(--safe-bottom)); }
.bar .sum { flex: 1; min-width: 0; }
.bar .sum b { font-size: 17px; font-weight: 800; letter-spacing: -.4px; }
.bar .sum span { display: block; font-size: 11.5px; color: var(--alt); }
.bar .btn { height: 48px; }
.bar.buy .btn { flex: 1; min-width: 0; font-size: 15.5px; white-space: normal; line-height: 1.25; padding: 0 10px; }

/* ───── 제목 줄 · 섹션 · 카드 ───── */
.pg-h { display: flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; margin: 2px 0 14px; }
.pg-h h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.pg-h .tbtn, .pg-h .ibtn { margin-left: auto; }
.cnt { font-size: 13px; color: var(--alt); font-weight: 400; }
.cnt b { color: #111; font-weight: 700; }
.ibtn {
  width: 32px; height: 32px; align-self: center; display: grid; place-items: center;
  color: var(--alt); border: 1px solid var(--line); border-radius: var(--r-xs);
}
.ibtn svg { width: 16px; height: 16px; }
.tbtn { font-size: 13px; color: var(--alt); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (hover: hover) { .tbtn:hover { color: #111; } }
.lead { margin: 0 0 14px; font-size: 13px; color: var(--alt); }

.sec { margin-top: 36px; }
.sec-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.sec-h h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.4px; }
.sec-h h2 .cnt { margin-left: 6px; color: var(--primary); font-weight: 700; font-size: 15px; }
.sec-h .more { margin-left: auto; font-size: 13px; color: var(--alt); }
@media (hover: hover) { .sec-h .more:hover { color: #111; } }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px;
}
.card + .card { margin-top: 10px; }
.card.flat { background: var(--fill); border-color: transparent; }
.card.brand { background: var(--primary-soft); border-color: transparent; }
.note { padding: 12px 14px; border-radius: var(--r-sm); background: var(--fill); margin: 0 0 12px; }
.note.warn { background: #FFF9EC; color: #8A6208; }
.note.min { background: #FFF1EB; color: #A8401E; }
/* 상품 상세 이미지(공식몰 상세설명) */
.pdimgs { scroll-margin-top: 90px; }
.pdimgs .subh { margin-top: 0; }
.pdimg-list { display: flex; flex-direction: column; align-items: center; margin: 0 0 32px; background: #fff; }
.pdimg-list img { display: block; width: auto; max-width: min(100%, 860px); height: auto; }   /* 원본보다 크게 늘리지 않음(흐려짐 방지) */
.pdcrop { width: 100%; overflow: hidden; }
.pdcrop img { width: 100%; max-width: none; }   /* 장바구니 최소 주문금액 안내: 강조색 계열 */
.note strong { font-size: 13.5px; }
.note p { margin: 3px 0 0; font-size: 12.5px; }
.ctotal + .note { margin-top: 12px; }

/* ───── 버튼 ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 18px; border-radius: var(--r-xs);
  background: var(--fill); color: var(--label); font-weight: 700; font-size: 14.5px; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn.pri { background: var(--primary); color: #fff; }
@media (hover: hover) { .btn.pri:hover { background: var(--primary-deep); } }
.btn.line { background: #fff; border: 1px solid #ccc; }
@media (hover: hover) { .btn.line:hover { border-color: #111; } }
.btn.dark { background: #111; color: #fff; }
@media (hover: hover) { .btn.dark:hover { background: #000; } }
.btn.white { background: #fff; color: #111; }
.btn.block { display: flex; width: 100%; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 52px; font-size: 16px; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--alt); font-weight: 500; }

/* ───── 태그 · 칩 ───── */
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px;
  border-radius: 3px; font-size: 11px; font-weight: 700; background: var(--fill); color: var(--alt); white-space: nowrap;
}
.tag.ok { background: #E7F6EE; color: var(--ok); }
.tag.warn { background: #FFF6E5; color: var(--warn); }
.tag.danger { background: #FDECEA; color: var(--danger); }
.tag.pri { background: var(--primary-soft); color: var(--primary-deep); }
.keep.ambient { color: #96610A; }
.keep.cold { color: var(--cold); }
.keep.frozen { color: var(--frozen); }
.soon { color: var(--warn); }
.soldout { color: var(--danger); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-xs);
  background: #fff; color: #333; font-size: 13px; white-space: nowrap;
}
.chip.on { border-color: #111; background: #111; color: #fff; }

/* ───── 메인 배너: 탕비실 사진 + 어두운 막 + 가운데 흰 제목·버튼 ───── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 264px; background: #2a2622 center 40% / cover no-repeat; color: #fff;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .5); }
.hero-in {
  height: 100%; padding: 0 var(--gr) 0 var(--gl);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.hero h2 { margin: 0; font-size: 27px; font-weight: 800; letter-spacing: -1px; line-height: 1.3; color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.hero .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.hero .cta .btn { height: 42px; padding: 0 18px; font-size: 14.5px; }

/* 홈(body.ov): 섹션 제목 가운데 · 넉넉한 간격 · 목록 아래 더보기 버튼 */
body.ov .wrap > .sec { margin-top: 52px; }
body.ov .wrap > .sec:first-child { margin-top: 20px; }
body.ov .sec-h { justify-content: center; margin-bottom: 16px; }
body.ov .sec-h h2 { font-size: 20px; }
.sec-more { margin-top: 26px; text-align: center; }
.hgrid.minis { margin-top: 10px; }
/* 카테고리 타일: 정사각 사진 + 이름. 모바일은 가로로 넘긴다 */
.ctiles {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gr)) 0 calc(-1 * var(--gl)); padding: 0 var(--gr) 0 var(--gl);
}
.ctiles::-webkit-scrollbar { display: none; }
.ctile { flex: 0 0 110px; min-width: 0; text-align: left; }
.ctile .pthumb { width: 100%; aspect-ratio: 1; padding: 11%; background-color: #f5f5f5; border-radius: var(--r-sm); transition: opacity .15s; }
.ctile b { display: block; margin-top: 9px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .ctile:hover .pthumb { opacity: .8; } }
/* 추천 상품 탭(알약) */
.ptab {
  position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gr)) 20px calc(-1 * var(--gl)); padding: 0 var(--gr) 0 var(--gl);
}
.ptab::-webkit-scrollbar { display: none; }
.ptab::before, .ptab::after { content: ""; flex: 1; }
.ptab button { flex: 0 0 auto; height: 32px; padding: 0 14px; border-radius: 16px; font-size: 13.5px; color: #777; white-space: nowrap; }
.ptab button.on { background: #111; color: #fff; font-weight: 600; }

/* 홈 요약 띠: 이번 달 주문 · 금액 · 예치금 */
.sumstrip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.sumstrip > * { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; text-align: left; min-width: 0; }
.sumstrip > * + * { border-left: 1px solid var(--line-soft); }
.sumstrip .k { font-size: 11.5px; color: var(--alt); }
.sumstrip b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .sumstrip button:hover b { color: var(--primary); } }

.hgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hgrid > .card + .card { margin-top: 0; }
.card.mini .mh { display: flex; align-items: center; gap: 8px; min-width: 0; }
.card.mini .mh strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.mini .mh .tbtn, .card.mini .mh .dim { margin-left: auto; white-space: nowrap; }
.card.mini .mb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; font-size: 14px; }
.card.mini .mb > b { font-size: 16px; font-weight: 800; }
.card.mini .mb .btn { margin-left: auto; }

/* ───── 상품 격자 · 카드 ───── */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
.pcard { display: block; position: relative; min-width: 0; }
.pc-img { position: relative; overflow: hidden; border-radius: var(--r-sm); }
.pthumb {
  display: block; position: relative; overflow: hidden;
  background: #f7f7f7 center/contain no-repeat; background-blend-mode: multiply;
  background-origin: content-box;      /* 안쪽 여백을 주면 그만큼 사진만 작아진다(바탕은 타일 끝까지) */
}
.pthumb.none::after {
  content: "준비중"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 11px; color: #bbb; font-weight: 600;
}
.pc-img .pthumb { width: 100%; aspect-ratio: 1; padding: 11%; }   /* 상품 사진 = 타일의 78% (커서를 올려도 커지지 않음 — 스토어 방식) */
.pcard.out .pc-img .pthumb { opacity: .5; }
.pc-cart { position: absolute; right: 8px; bottom: 8px; }
/* PC: 장바구니 버튼은 커서를 올렸을 때(또는 키보드로 들어왔을 때)만 나타난다. 이미 담아 수량 칸이 있으면 늘 보인다.
   터치 기기는 커서가 없으니 늘 보인다. */
@media (hover: hover) {
  .pc-cart:not(:has(.step)) {
    left: 50%; right: auto; bottom: 50px; transform: translateX(-50%);
    opacity: 0; pointer-events: none; transition: opacity .1s cubic-bezier(.33, 1, .68, 1);
  }
  .pcard:hover .pc-cart:not(:has(.step)), .pcard:focus-within .pc-cart:not(:has(.step)) {
    opacity: 1; pointer-events: auto; transition-duration: .3s;
  }
  .pc-cart:not(:has(.step)) .add {
    width: 50px; height: 50px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .95); box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  }
  .pc-cart:not(:has(.step)) .add svg { width: 26px; height: 26px; }
  .pc-cart:not(:has(.step)) .add:hover { background: #fff; }
}
.add {
  width: 34px; height: 34px; border-radius: var(--r-xs); background: #fff; border: 1px solid #d5d5d5;
  display: grid; place-items: center; color: #111;
}
.add svg { width: 18px; height: 18px; }
@media (hover: hover) { .add:hover { border-color: #111; } }
.pc-body { display: block; width: 100%; text-align: left; padding: 10px 1px 0; }
.pc-brand { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 18px; }
.pc-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 1px; font-size: 14px; line-height: 19px; letter-spacing: -.5px; color: #121212; word-break: keep-all; overflow-wrap: anywhere;
}
.pc-name i { font-style: normal; color: #888; }

.pc-was { display: block; margin-top: 4px; font-size: 12px; line-height: 14px; letter-spacing: -.5px; color: #949494; }   /* 정상가는 판매가 한 줄 위 */
.pc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 5px; margin-top: 6px; }
.pc-was + .pc-price { margin-top: 0; }
.pc-price .off { color: var(--primary); font-size: 15px; font-weight: 700; letter-spacing: -.5px; line-height: 22px; }
.pc-price .won { font-size: 18px; font-weight: 700; letter-spacing: -.5px; line-height: 22px; color: #000; }
.pc-price .won i { font-style: normal; font-size: 15px; font-weight: 500; }
.pc-lock { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; margin-top: 7px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.pc-meta em { font-style: normal; }
.ktag { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border: 1px solid #ddd; border-radius: 3px; background: #fff; font-size: 11px; line-height: 1; }
/* 11/24 보관 표시 B안(사용자 선택, 점주몰과 같게) — 연한 바탕 색 채움, 테두리 없음 */
.ktag.keep { padding: 0 6px; border: 0; font-weight: 600; }
.ktag.keep.ambient { background: #FAEEDA; color: #633806; }
.ktag.keep.cold { background: #E6F1FB; color: #0C447C; }
.ktag.keep.frozen { background: #EEEDFE; color: #3C3489; }
/* 임박 특가 태그 */
.stag { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: 3px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; }
@supports not (aspect-ratio: 1) {
  .pc-img .pthumb::before, .pd-img .pthumb::before, .ctile .pthumb::before { content: ""; display: block; padding-top: 100%; }
}

/* 수량 스테퍼 */
.step {
  display: inline-flex; align-items: center; height: 32px; overflow: hidden;
  background: #fff; border: 1px solid #d5d5d5; border-radius: var(--r-xs);
}
.step button { width: 30px; height: 100%; display: grid; place-items: center; color: #333; font-size: 16px; line-height: 1; }
@media (hover: hover) { .step button:hover { background: var(--fill); } }
.step input {
  width: 42px; height: 100%; padding: 0; border: 0; border-left: 1px solid #e5e5e5; border-right: 1px solid #e5e5e5; border-radius: 0;
  background: transparent; text-align: center; font-weight: 700; font-size: 14px; outline: none; font-variant-numeric: tabular-nums;
}
.step.lg { height: 38px; }
.step.lg button { width: 38px; font-size: 18px; }
.step.lg input { width: 58px; font-size: 15px; }

/* ───── 상품 목록 ───── */
.list-h { margin-bottom: 12px; }
.list-h h1 { font-weight: 600; }
.list-h .tbtn { margin-left: 0; }
.lcrumb { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.lcrumb button { color: var(--muted); }
@media (hover: hover) { .lcrumb button:hover { color: #111; text-decoration: underline; text-underline-offset: 3px; } }
.lcrumb i { font-style: normal; margin: 0 5px; color: #ccc; }
.lcrumb b { font-weight: 400; color: #555; }
/* 필터 칩 띠 */
.fband {
  display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 10px 12px;
  background: var(--fill); border-top: 2px solid #111; overflow-x: auto; scrollbar-width: none;
}
.fband::-webkit-scrollbar { display: none; }
.fchip {
  flex: 0 0 auto; height: 32px; padding: 0 14px; border: 1px solid #d9d9d9; border-radius: 16px;
  background: #fff; font-size: 13px; color: #333; white-space: nowrap;
}
.fchip.on { border-color: #111; background: #111; color: #fff; font-weight: 600; }
/* 정렬 줄 */
.sortbar { display: flex; align-items: center; gap: 12px; padding: 14px 0; margin-bottom: 4px; }
.sorts { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sorts::-webkit-scrollbar { display: none; }
.sorts button { position: relative; flex: 0 0 auto; padding: 0 11px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sorts button:first-child { padding-left: 0; }
.sorts button + button::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 11px; margin-top: -5px; background: #ddd; }
.sorts button.on { color: #111; font-weight: 700; }
.sorts .ck { width: 13px; height: 13px; margin-right: 3px; vertical-align: -2px; stroke-width: 2.6; }
.lview { display: none; }      /* 모바일: 개수 선택·보기 전환 숨김 */
.lsent { height: 1px; }        /* 이어 보기 감시용 빈 요소 */
.joinbox { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.joinbox > div { flex: 1; min-width: 200px; }
.joinbox strong { font-size: 14.5px; }
.joinbox p { margin: 2px 0 0; font-size: 13px; color: #7A4332; }

/* ───── 상품 상세 ───── */
.crumb { display: none; }
.pd-img { margin: -16px calc(-1 * var(--gr)) 16px calc(-1 * var(--gl)); }
.pd-img .pthumb { width: 100%; aspect-ratio: 1; padding: 8%; }   /* 상세 큰 사진 = 84% */
.pd-brand { font-size: 13px; color: var(--muted); }
.pd-name { margin: 2px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -.4px; line-height: 1.35; }
.pd-name i { font-style: normal; font-weight: 500; color: #777; }
.pd-price { margin-top: 10px; }
.pd-price s { display: block; font-size: 14px; color: #aaa; line-height: 1.3; }   /* 정상가는 판매가 한 줄 위 */
.pd-price .now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.pd-price .off { color: var(--primary); font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.pd-price .won { font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.pd-price .won i { font-style: normal; font-size: 17px; font-weight: 700; margin-left: 1px; }
.pd-price .per { flex-basis: 100%; margin-top: 2px; font-size: 12px; color: var(--muted); }
.pd-soon { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--primary-deep); }
.pmeta .sale { color: var(--primary); }
.pd-lock { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; background: var(--fill); border-radius: var(--r-sm); }
.pd-lock span { flex: 1; font-size: 14px; color: var(--alt); }

.itable { width: 100%; border-collapse: collapse; margin-top: 16px; border-top: 1px solid var(--line); }
.itable th { width: 84px; padding: 6px 0; text-align: left; font-weight: 400; font-size: 13px; color: var(--muted); vertical-align: top; white-space: nowrap; }
.itable td { padding: 6px 0; font-size: 14px; }
.itable tr:first-child th, .itable tr:first-child td { padding-top: 14px; }
.itable.wide { margin-top: 0; border-top: 1px solid #ddd; }
.itable.wide th { width: 104px; padding: 11px 12px; background: #fafafa; border-bottom: 1px solid var(--line-soft); color: #555; }
.itable.wide td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.itable.wide tr:first-child th, .itable.wide tr:first-child td { padding-top: 11px; }
.itable + .hint { margin: 8px 0 0; }
/* 상품정보 표: 바탕·선 없이 촘촘하게 */
.itable.spec { margin-top: 6px; border-top: 0; }
.itable.spec th { width: 96px; padding: 5px 0; }
.itable.spec td { padding: 5px 0; font-size: 13.5px; }
.itable.spec tr:first-child th, .itable.spec tr:first-child td { padding-top: 12px; }

.qbox { margin-top: 16px; padding: 14px 16px; background: var(--fill); border-radius: var(--r-sm); }
.qn { font-size: 13.5px; color: #333; }
.qn i { font-style: normal; color: #777; }
.qr { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.qbox > .qr:first-child { margin-top: 0; }
.qr > b { font-size: 16px; font-weight: 700; }
.ptotal { display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.ptotal span { font-size: 13px; color: var(--alt); }
.ptotal b { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -.5px; }
.ptotal b i { font-style: normal; font-size: 15px; margin-left: 1px; }
.pbtns { display: none; }   /* 모바일은 하단 고정 구매 바가 대신한다 */
/* 구매 영역 아래: 왼쪽 탭·상품정보·같은 카테고리 / 오른쪽 따라다니는 구매 상자(PC) */
.pd2 { margin-top: 32px; }
.pd2-side { display: none; }
.ptabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.ptabs span { padding: 12px 2px; margin-bottom: -1px; font-size: 15px; color: var(--muted); }
.ptabs span.on { font-weight: 700; color: #111; border-bottom: 2px solid #111; }
.pd2 .sec.rel { margin-top: 40px; }

/* ───── 장바구니 ───── */
.ctable { border-top: 2px solid #111; }
.cth { display: none; }
.ctr {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-areas: "th ci cx" "th cq ca"; gap: 8px 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.th { width: 64px; height: 64px; flex: 0 0 64px; border-radius: var(--r-xs); }
.ctr .th { grid-area: th; align-self: start; }
.ci { grid-area: ci; min-width: 0; }
.ci .nm { display: block; text-align: left; font-size: 14px; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
@media (hover: hover) { .ci .nm:hover { text-decoration: underline; text-underline-offset: 3px; } }
.ci .nm i { font-style: normal; color: #888; }
.cq { grid-area: cq; }
.ca { grid-area: ca; justify-self: end; font-size: 13px; white-space: nowrap; }
.ca b { font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.cx { grid-area: cx; justify-self: end; width: 28px; height: 28px; display: grid; place-items: center; color: #aaa; }
@media (hover: hover) { .cx:hover { color: #111; } }
.cx svg { width: 15px; height: 15px; }
.ctotal { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding: 16px; background: var(--fill); border-radius: var(--r-sm); }
.ctotal .l, .ctotal .r { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.ctotal .l { font-size: 13.5px; color: #333; }
.ctotal .l b, .ctotal .r b { margin-left: auto; }
.ctotal small { flex-basis: 100%; text-align: right; font-size: 12px; color: var(--muted); }
.ctotal .r { padding-top: 10px; border-top: 1px solid var(--line); }
.ctotal .r span { font-weight: 700; font-size: 14.5px; }
.ctotal .r b { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -.5px; }
.ctotal .r b i { font-style: normal; font-size: 15px; margin-left: 1px; }
.cact { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 16px; }
.cact .sp { display: none; }
.cact .btn { flex: 1 1 100%; order: -1; }

/* ───── 주문/결제 ───── */
.ckmain > .card + .card { margin-top: 12px; }
.cks { padding: 18px 16px; }
.cks > h2, .cksum h2 { display: flex; align-items: baseline; gap: 6px; margin: 0 0 14px; font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.cks > h2 .cnt { color: var(--primary); font-weight: 700; font-size: 14px; }
.cks > h2 .tbtn { margin-left: auto; font-weight: 400; }
.oline { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.oline:first-child { border-top: 0; padding-top: 0; }
.oline:last-child { padding-bottom: 0; }
.oline .th { width: 48px; height: 48px; flex: 0 0 48px; }
.oline .nm { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.oline .nm i { font-style: normal; color: #888; }
.oline .nm .pmeta { margin-top: 1px; }
.oline > b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.olines.box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.payopts { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.payopt { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 13px 14px; cursor: pointer; }
.payopt + .payopt { border-top: 1px solid var(--line-soft); }
.payopt input { grid-row: 1 / span 2; align-self: start; margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--primary); }
.payopt b { font-size: 14.5px; font-weight: 700; }
.payopt span { grid-column: 2; font-size: 12.5px; color: var(--alt); }
.payopt.on { background: var(--primary-soft); }
.payopt.on b { color: var(--primary-deep); }
.payopt.dis { opacity: .45; cursor: default; }
.paybank { margin-top: 14px; }
.paybank .f { margin: 10px 0 0; }
.cksum { margin-top: 12px; }
.cksum .card { padding: 18px 16px; }
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; }
.kv.sm { padding: 1px 0; font-size: 12.5px; color: var(--muted); }
.cksum .kv.sm span:first-child { padding-left: 10px; }
.kv.total { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.kv.total span { font-weight: 700; }
.kv.total b { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -.5px; }
.kv.total b i { font-style: normal; font-size: 15px; margin-left: 1px; }
#paybtn { display: none; }   /* 모바일은 하단 고정 결제 버튼 */
#payhint { text-align: center; margin: 10px 0 0; }
.odone { text-align: center; padding: 6px 0 4px; }
.odone svg { width: 40px; height: 40px; stroke: var(--primary); stroke-width: 2.2; }
.odone p { margin: 6px 0 0; font-size: 14px; color: var(--alt); }
.odone p b { color: #111; }
.kvbox { margin: 16px 0; }
.bankbox { margin-bottom: 12px; }
.bankbox .bh { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.bankbox .bh strong { font-size: 14px; }
.bankbox .acct { font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.bankbox .amt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 7px; margin-top: 10px; }
.bankbox .amt b { font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.bankbox .amt span { font-size: 12.5px; color: var(--alt); }
.bankbox .amt .btn { margin-left: auto; align-self: center; }
.bankbox .guide { margin: 10px 0 0; font-size: 12.5px; color: var(--alt); white-space: pre-wrap; }

/* ───── 주문 내역 · 상세 ───── */
.olist { border-top: 2px solid #111; }
.ocard { display: block; width: 100%; text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hgrid .ocard { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.ohead { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.ohead b { font-size: 14px; font-weight: 700; }
.ono { color: var(--alt); }
.ohead .go { margin-left: auto; color: var(--alt); font-size: 12.5px; white-space: nowrap; }
@media (hover: hover) { .ocard:hover .go { color: #111; } }
.obody { margin-top: 8px; }
.otags { display: flex; flex-wrap: wrap; gap: 5px; }
.osum { margin-top: 6px; }
.osum b { font-size: 17px; font-weight: 800; letter-spacing: -.4px; }
.oitems { margin-top: 2px; font-size: 13px; color: var(--alt); }
.trackbox { margin-top: 12px; }
.track { display: flex; align-items: center; margin: 0 2px; }
.track .pt { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #ddd; }
.track .pt.done { background: var(--primary); }
.track .ln { flex: 1; height: 1px; background: #ddd; }
.track .ln.done { background: var(--primary); }
.track-lbl { display: flex; justify-content: space-between; margin-top: 6px; }
.track-lbl span { font-size: 11px; color: var(--muted); }
.track-lbl span.on { color: var(--primary); font-weight: 700; }
.odhead { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid #111; }
.odhead b { font-size: 16px; font-weight: 700; }
.odhead > span.tnum { font-size: 13px; color: var(--alt); }
.odtrack { margin-bottom: 12px; }
.odtrack .trackbox { margin-top: 2px; }
.odtrack .when { margin-top: 14px; font-size: 14px; }
.deppay { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.deppay > div { flex: 1; min-width: 180px; }
.deppay strong { font-size: 14.5px; }
.memo { margin-bottom: 12px; }
.memo strong { font-size: 13px; color: var(--alt); }
.memo p { margin: 5px 0 0; font-size: 14px; white-space: pre-wrap; }
.odact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.odact .btn { flex: 1; }

/* ───── 예치금 · 내 정보 · 정기 주문 ───── */
.dep-hero { padding: 20px; }
.dep-hero .k { font-size: 13px; color: var(--alt); }
.dep-hero .v { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin-top: 2px; line-height: 1.25; }
.dep-hero .v span { font-size: 17px; margin-left: 2px; }
.dep-hero .hint { margin: 6px 0 0; }
.dep-hero .bonus { display: inline-block; margin-top: 10px; padding: 3px 9px; border-radius: 3px; background: var(--primary-soft); color: var(--primary-deep); font-size: 12.5px; font-weight: 700; }
.depside .sec { margin-top: 28px; }
.depwait { margin-bottom: 10px; }
.depwait .dh { display: flex; align-items: center; gap: 8px; }
.depwait .dh b { font-size: 16px; }
.depwait .dh .dim { margin-left: auto; }
.depwait .da { display: flex; gap: 8px; margin-top: 10px; }
.dep-row .k { display: flex; flex-direction: column; min-width: 0; }
.dep-row .v { display: flex; flex-direction: column; align-items: flex-end; color: #111; white-space: nowrap; }
.myhead { display: flex; flex-direction: column; gap: 2px; }
.myhead strong { font-size: 18px; font-weight: 700; letter-spacing: -.4px; }
.schcard { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.schcard .sh { display: flex; align-items: center; gap: 8px; }
.schcard .sh strong { font-size: 15px; }
.schcard .sb { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; font-size: 14px; }
.schcard .btn { align-self: flex-start; padding: 0; }
.card.form { padding: 20px 16px; }
.formfoot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--alt); }

/* 진행 순서 */
.steps { border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 16px; }
.stepi { display: flex; gap: 12px; padding: 13px 0; }
.stepi + .stepi { border-top: 1px solid var(--line-soft); }
.stepi .no {
  flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; border-radius: var(--r-xs); background: #111;
  color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.stepi .tx strong { display: block; font-size: 14.5px; font-weight: 700; }
.stepi .tx span { font-size: 13px; color: var(--alt); }

/* ───── 바텀시트 ───── */
.sheet-bg {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .15s ease;
}
.sheet {
  width: 100%; max-width: 560px; max-height: 88%;
  background: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 8px max(18px, var(--safe-right)) calc(18px + var(--safe-bottom)) max(18px, var(--safe-left));
  overflow-y: auto; animation: sheetUp .22s ease-out;
}
.sheet .grip { width: 36px; height: 4px; border-radius: 2px; background: #ddd; margin: 6px auto 14px; }
.sheet h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; letter-spacing: -.4px; }
.sheet .btn.block + .btn.block { margin-top: 6px; }
@keyframes sheetUp { from { transform: translateY(16px); opacity: .6 } to { transform: none; opacity: 1 } }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* ───── 입력 ───── */
.f { margin-bottom: 12px; }
.f > label { display: block; font-size: 12.5px; font-weight: 600; color: #555; margin-bottom: 5px; }
.inp {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d5d5d5;
  border-radius: var(--r-xs); background: var(--paper); outline: none; font-size: 15px;
}
textarea.inp { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.inp:focus { border-color: #111; }
.f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
p.hint { margin: 8px 0 0; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--alt); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); flex: 0 0 auto; }
.pmeta { font-size: 12.5px; color: var(--alt); margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pmeta b { color: #111; }

/* ───── 목록 줄 ───── */
.rows { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.row { display: flex; align-items: center; gap: 10px; padding: 13px 16px; width: 100%; text-align: left; }
.row + .row { border-top: 1px solid var(--line-soft); }
.row .k { font-size: 14px; min-width: 0; }
.row .v { margin-left: auto; font-size: 13.5px; color: var(--alt); text-align: right; }
.row .arr { color: var(--muted); font-size: 16px; }
.row .k + .arr { margin-left: auto; }
@media (hover: hover) { button.row:hover { background: #fafafa; } }

/* ───── 빈 화면 · 스켈레톤 ───── */
.empty { padding: 64px 20px 24px; text-align: center; }
.empty strong { display: block; font-size: 15.5px; font-weight: 700; }
.empty p { margin: 6px 0 0; font-size: 13.5px; color: var(--alt); line-height: 1.6; }
.sk { background: var(--fill); border-radius: var(--r-xs); animation: skp 1.3s ease-in-out infinite; }
@keyframes skp { 0%, 100% { opacity: 1 } 50% { opacity: .45 } }

/* ───── 토스트 ───── */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--pad-b) + 20px); transform: translateX(-50%) translateY(10px);
  background: rgba(17, 17, 17, .92); color: #fff; border-radius: var(--r-sm);
  padding: 11px 16px; font-size: 13px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  z-index: 90; max-width: calc(100% - 36px);
}
#toast.on { opacity: 1; transform: translateX(-50%); }
#toast.bad { background: var(--danger); }

/* ───── 당겨서 새로고침 ───── */
.ptr {
  position: absolute; top: calc(var(--safe-top) + 58px); left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--paper);
  border: 1px solid var(--line); display: grid; place-items: center;
  opacity: 0; pointer-events: none; z-index: 45; transition: opacity .15s;
}
.ptr.on { opacity: 1; }
.ptr svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 2.2; }
.ptr.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ───── 푸터 (홈페이지와 같은 검정) ───── */
.sfoot {
  padding: 28px var(--gr) calc(28px + var(--pad-b)) var(--gl);
  background: #000; color: #808080; font-size: 12.5px; line-height: 1.7;
}
.sfoot.pc-only { display: none; }
.sfoot .in { display: flex; flex-direction: column; gap: 16px; }
.sfoot .flogo img { width: 57px; height: auto; margin-bottom: 10px; }
.sfoot .flogo p { margin: 0; color: #fff; font-size: 13px; }
.sfoot a, .sfoot button { color: #808080; text-decoration: underline; font-size: inherit; }
.sfoot .home { color: #fff; text-decoration: none; font-weight: 700; }

@media (min-width: 600px) and (max-width: 1023px) {
  .phone { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
@media (max-width: 1023px) {
  .pg-h.sub { display: none; }   /* 하위 화면 제목은 헤더에 있다 */
  .pd-lock .btn { display: none; }   /* 로그인 버튼은 하단 고정 바에 있다 */
}

/* ───── 찜 ───── */
.pc-info { position: relative; }
/* 11/24 사용자: 카드의 하트는 제품명 옆이 아니라 사진 위(오른쪽 위)에 — 장바구니 버튼과 같은 모양.
   휴대폰(터치)은 늘 보이고, PC 는 장바구니처럼 커서를 올렸을 때만 나타난다(찜한 상품은 늘 보임) */
/* 휴대폰: 상자 없이 하트 아이콘만(누르는 자리는 36px) */
.pc-fav {
  position: absolute; right: 4px; top: 4px; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: none; border: 0; color: #111;      /* 11/24: 장바구니 아이콘과 같은 진한 선 */
}
.pc-fav svg { width: 22px; height: 22px; stroke-width: 1.8; }
@media (hover: hover) {
  .pc-fav {
    right: 10px; top: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .95); box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    opacity: 0; pointer-events: none; transition: opacity .1s cubic-bezier(.33, 1, .68, 1);
  }
  .pcard:hover .pc-fav, .pcard:focus-within .pc-fav, .pc-fav.on { opacity: 1; pointer-events: auto; transition-duration: .3s; }
  .pc-fav svg { width: 21px; height: 21px; }
  .pc-fav:hover { background: #fff; }
}
.favb { flex: 0 0 52px !important; width: 52px; padding: 0 !important; color: #111; }
.favb svg { width: 22px; height: 22px; stroke-width: 1.6; }
.pc-fav.on, .favb.on { color: #E0362A; }            /* 11/24 사용자: 누르면 빨간 하트 */
.pc-fav.on svg, .favb.on svg { fill: #E0362A; }
/* 글자 탭(찜한 상품 / 자주 산 상품) */
.ttabs { display: flex; gap: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ttabs button { padding: 12px 2px; margin-bottom: -1px; font-size: 15px; color: var(--muted); }
.ttabs button i { font-style: normal; font-size: 12.5px; margin-left: 5px; }
.ttabs button.on { font-weight: 700; color: #111; border-bottom: 2px solid #111; }

/* ───── 오피스 간식 박스 ───── */
.boxform { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.bxr { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bxr .k { flex: 0 0 30px; font-size: 13px; color: var(--alt); }
.bxr .v { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bxr .v::-webkit-scrollbar { display: none; }
.boxform .btn { margin-top: 4px; }

.bxnum { display: inline-flex; align-items: stretch; height: 36px; border: 1px solid #d0d0d0; border-radius: 4px; background: #fff; overflow: hidden; }
.bxnum:focus-within { border-color: #111; }
.bxnum input { width: 64px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: #111; text-align: right; padding: 0 4px 0 10px; }
.bxnum .u { display: flex; align-items: center; padding: 0 10px 0 2px; font-size: 13px; color: var(--alt); white-space: nowrap; }
.bxnum .arr { display: flex; flex-direction: column; border-left: 1px solid #e3e3e3; }
.bxnum .arr button { flex: 1; width: 24px; display: flex; align-items: center; justify-content: center; background: #fafafa; color: #555; }
.bxnum .arr button + button { border-top: 1px solid #e3e3e3; }
.bxnum .arr svg { width: 9px; height: 6px; stroke-width: 1.6; }
@media (hover: hover) { .bxnum .arr button:hover { background: #f0f0f0; color: #111; } }
.boxlines { max-height: 44vh; overflow-y: auto; margin: 12px 0 0; padding-right: 2px; }

/* ───── 공지사항 게시판 ───── */
.mega { width: 18px; height: 18px; margin-right: 5px; vertical-align: -4px; }
/* 11/24 사용자: 모바일 카테고리의 공지사항은 오른쪽에 붙여 두지 않는다 — 다른 분류처럼 맨 끝에서 같이 밀린다(점주몰과 같게) */
.ufav svg { width: 17px; height: 17px; vertical-align: -4px; stroke-width: 1.8; }
.ntable { border-top: 2px solid #111; }
.nth { display: none; }
.ntr { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 2px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.ntr .no { display: none; }
.ntr .tt { flex: 1; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntr.pin .tt { font-weight: 700; }
.ntr .tt .tag { margin-right: 6px; vertical-align: 1px; }
.ntr .dt { flex: 0 0 auto; font-size: 12.5px; color: var(--muted); }
.npost { border-top: 2px solid #111; }
.npost h2 { margin: 0; padding: 18px 2px 6px; font-size: 18px; font-weight: 700; letter-spacing: -.4px; line-height: 1.4; }
.npost h2 .tag { margin-right: 8px; vertical-align: 2px; }
.npost .nd { padding: 0 2px 16px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.nbody { min-height: 160px; padding: 24px 2px 40px; font-size: 14.5px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.nnavs { margin-bottom: 24px; }
.nnav { display: flex; gap: 16px; width: 100%; padding: 13px 2px; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 13.5px; }
.nnav span { flex: 0 0 48px; color: var(--alt); }
.nnav b { min-width: 0; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ───── 상세 배송 안내 · 내 정보 수정 ───── */
.subh { margin: 36px 0 0; padding-bottom: 10px; font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--line); }
.cks > h2 .dim { margin-left: 4px; }
.sec-h > .tbtn { margin-left: auto; }
.myform { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.myform .acts { display: flex; gap: 8px; margin-top: 4px; }
.myform .acts .btn { flex: 1; }
.cact .btn.line { flex: 0 0 auto; }
.cact .btn.pri { flex: 1 1 55%; }      /* 모바일: 견적서 옆에 주문하기를 넓게 */

/* ───── 견적서 · 거래명세서(인쇄용 문서) ───── */
#pdoc:empty { display: none; }
.pdoc-bg { position: fixed; inset: 0; z-index: 80; overflow: auto; background: #e9e9e9; }
.pdoc-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.pdoc-bar b { font-size: 15px; }
.pdoc-sheet { width: 210mm; max-width: calc(100% - 24px); min-height: 297mm; margin: 20px auto 40px; padding: 16mm 14mm; background: #fff; color: #111; font-size: 12px; line-height: 1.5; }
.pdoc-sheet h1 { margin: 0 0 8px; text-align: center; font-size: 26px; font-weight: 700; letter-spacing: 8px; }
.dq-meta { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 14px; color: #444; }
.dq-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dq-box { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.dq-box caption { padding: 0 0 5px; text-align: left; font-size: 12.5px; font-weight: 700; }
.dq-box th, .dq-box td, .dq-items th, .dq-items td, .dq-total th, .dq-total td { border: 1px solid #bbb; padding: 5px 7px; }
.dq-box th, .dq-items th, .dq-total th { background: #f5f5f5; font-weight: 500; white-space: nowrap; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.dq-box th { width: 92px; text-align: left; }
.dq-box td { text-align: left; vertical-align: top; }
.dq-sum { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 8px; padding: 10px 12px; border: 1px solid #111; font-size: 13px; }
.dq-sum b { font-size: 18px; }
.dq-items { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.dq-items th { font-weight: 600; }
.dq-items .c { text-align: center; }
.dq-items .r { text-align: right; white-space: nowrap; }
.dq-items small { display: block; font-size: 10.5px; color: #666; }
.dq-total { width: 100%; border-collapse: collapse; margin-top: -1px; }
.dq-total td { text-align: right; }
.dq-foot { margin: 14px 0 0; font-size: 11.5px; color: #555; }
@media screen and (max-width: 840px) {      /* 화면 전용 — 인쇄할 때(A4 폭)는 걸리지 않는다 */
  .pdoc-sheet { min-height: 0; margin: 12px auto 24px; padding: 20px 14px; }
  .pdoc-sheet h1 { font-size: 22px; }
  .dq-parties { grid-template-columns: 1fr; }
}
@media screen and (max-width: 560px) {
  .pdoc-sheet { padding: 18px 10px; }
  .dq-items { font-size: 11px; }
  .dq-items th, .dq-items td { padding: 5px 4px; }
  .dq-total { margin-top: 0; }
  .dq-total, .dq-total tbody { display: block; }
  .dq-total tr { display: grid; grid-template-columns: 92px 1fr; }
  .dq-total th, .dq-total td { margin-top: -1px; }
  .dq-total td { margin-left: -1px; }
  .dq-total th { text-align: left; }
}
@page { size: A4 portrait; margin: 12mm; }
@media print {
  html, body { height: auto !important; overflow: visible !important; background: #fff !important; }
  body.has-doc > :not(#pdoc) { display: none !important; }      /* 문서만 인쇄 — 사이트 헤더·푸터·버튼은 빠진다 */
  .pdoc-bg { position: static; overflow: visible; background: #fff; }
  .pdoc-bar { display: none !important; }
  .pdoc-sheet { width: auto; max-width: none; min-height: 0; margin: 0; padding: 0; }
  .dq-items thead { display: table-header-group; }
  .dq-items tr, .dq-total, .dq-sum, .dq-box { break-inside: avoid; }
}

/* ═════════════ PC (1024px 이상) ═════════════
   문서 전체가 스크롤되고, 위에서부터 유틸 바 → 스토어 헤더 → 카테고리 바(스크롤해도 남음) → 본문(최대 1240px). */
@media (min-width: 1024px) {
  html { scrollbar-gutter: stable; }
  html, body { height: auto; min-height: 100%; }
  body, body.has-tabs, body.has-bar, body.has-tabs.has-bar { --pad-b: 0px; }
  .stage { display: block; height: auto; background: #fff; }
  .phone { max-width: none; height: auto; min-height: 100vh; overflow: visible; border: 0; }
  .screen { flex: 1 0 auto; overflow: visible; display: flex; flex-direction: column; }
  .wrap, .wrap.end { flex: 1 0 auto; width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px 20px 88px; }
  .wrap.w-mid { max-width: 1040px; }
  .wrap.w-sm { max-width: 560px; }
  .tabbar, #bar, .ptr, .hd-m, .mcats { display: none !important; }

  /* 상단 */
  .hd-pc { display: block; }
  .dhead { position: sticky; top: -126px; }   /* 유틸 바(36)+스토어 헤더(90)는 올라가고 카테고리 바만 붙는다 */
  .util { height: 36px; background: #fafafa; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; color: var(--alt); }
  .util .in, .shead .in, .gnb .in { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; }
  .util a { text-decoration: none; }
  .util a:hover, .util button:hover { color: #111; }
  .util .r { margin-left: auto; display: flex; align-items: center; white-space: nowrap; }
  .util .r > * + *::before { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 11px; background: #d5d5d5; }
  .util .r b { color: #333; font-weight: 600; }
  .util em { font-style: normal; color: var(--primary); font-weight: 700; }
  .shead { height: 90px; background: #fff; }
  .shead .in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; }   /* 로고 가운데 */
  .shead .brand { position: relative; display: flex; align-items: center; }
  .shead .brand img { height: 46px; width: auto; }
  .shead .brand .office { position: absolute; left: 100%; top: 50%; margin-left: 10px; transform: translateY(-50%); font-size: 19px; font-weight: 600; letter-spacing: .6px; }
  .shead .hr { justify-self: end; display: flex; align-items: center; gap: 8px; }
  .hsearch {
    display: flex; align-items: center; width: 210px; height: 36px; padding-left: 14px;
    border: 1px solid #ccc; border-radius: 18px; background: #fff;
  }
  .hsearch:focus-within { border-color: #111; }
  .hsearch input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; font-size: 13px; }
  .hsearch button { width: 36px; height: 100%; display: grid; place-items: center; color: #111; }
  .hsearch svg { width: 17px; height: 17px; stroke-width: 2; }
  .hcart { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: #111; }
  .hcart svg { width: 26px; height: 26px; stroke-width: 1.5; }
  .hcart .dot { top: 2px; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; font-size: 11px; }
  .gnb { height: 48px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .15s; }
  .gnb .in { overflow-x: auto; scrollbar-width: none; }
  .gnb .in::-webkit-scrollbar { display: none; }
  .gnb button { position: relative; flex: 0 0 auto; height: 100%; padding: 0 17px; font-size: 15px; color: #222; white-space: nowrap; }
  .gnb button:first-child { margin-left: -17px; }
  .gnb button.nt { margin-left: auto; margin-right: -17px; }   /* 공지사항: 맨 오른쪽 */
  .gnb button:hover { color: var(--primary); }
  .gnb button.on { font-weight: 700; color: #111; }
  .gnb button.on::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: 0; height: 2px; background: #111; }

  /* 홈(body.ov): 상단이 배너 사진 위에 흰 글자로 겹친다. 스크롤해 카테고리 바가 위에 붙으면(.stuck) 흰 바탕·검정 글자로 */
  body.ov .dhead { background: transparent; }
  body.ov .util { background: transparent; border-bottom-color: transparent; color: rgba(255, 255, 255, .88); }   /* 사진 위에서는 가로 선 없음 */
  body.ov .util a:hover, body.ov .util button:hover { color: #fff; }
  body.ov .util .r > * + *::before { background: rgba(255, 255, 255, .32); }
  body.ov .util .r b, body.ov .util em { color: #fff; }
  body.ov .shead { background: transparent; }
  body.ov .shead .brand .office { color: #fff; }
  body.ov .hsearch { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .78); }
  body.ov .hsearch:focus-within { background: rgba(255, 255, 255, .22); border-color: #fff; }
  body.ov .hsearch input { color: #fff; }
  body.ov .hsearch input::placeholder { color: rgba(255, 255, 255, .7); }
  body.ov .hsearch button, body.ov .hcart { color: #fff; }
  body.ov:not(.stuck) .gnb { background: transparent; border-color: transparent; }
  body.ov:not(.stuck) .gnb button { color: #fff; }
  body.ov:not(.stuck) .gnb button:hover { color: #fff; opacity: .8; }
  body.ov:not(.stuck) .gnb button.on::after { background: #fff; }
  body.ov .hero { margin-top: -174px; }   /* 유틸 바 36 + 스토어 헤더 90 + 카테고리 바 48 */

  /* 제목 · 섹션 */
  .pg-h { margin: 0 0 20px; gap: 6px 12px; }
  .pg-h h1 { font-size: 22px; letter-spacing: -.6px; }
  .w-sm .pg-h { justify-content: center; margin: 16px 0 24px; }
  .sec { margin-top: 56px; }
  .sec-h { margin-bottom: 18px; }
  .sec-h h2 { font-size: 20px; }
  .card { padding: 20px; }

  /* 메인 배너: 화면 높이의 62%(480~640), 위쪽은 상단 글자가 읽히게 조금 더 어둡게 */
  /* 사진 속 간판이 상단 로고와 겹치지 않게 아래쪽을 보여 준다. 좁은 PC 폭에서도 잘라낼 여유가 있도록 사진 폭은 1380px 아래로 줄이지 않는다 */
  .hero { height: clamp(480px, 62vh, 640px); background-size: max(100%, 1380px) auto; background-position: center 92%; }
  .hero::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 240px; z-index: -1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  }
  .hero-in { max-width: 1280px; margin: 0 auto; padding: 174px 20px 30px; }
  .hero h2 { font-size: clamp(48px, 3.9vw, 56px); letter-spacing: -2px; line-height: 1.22; }
  .hero .cta { margin-top: 30px; gap: 10px; }
  .hero .cta .btn { height: 52px; min-width: 190px; padding: 0 30px; font-size: 16px; }

  /* 홈 섹션 */
  body.ov .wrap > .sec { margin-top: 88px; }
  body.ov .wrap > .sec:first-child { margin-top: 44px; }
  body.ov .sec-h { margin-bottom: 30px; }
  body.ov .sec-h h2 { font-size: 24px; letter-spacing: -.6px; }
  .sec-more { margin-top: 44px; }
  .hgrid.minis { margin-top: 16px; }
  .ctiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; overflow: visible; margin: 0; padding: 0; }
  .ctile b { margin-top: 12px; font-size: 14px; }
  .ptab { margin: 0 0 34px; padding: 0; gap: 6px; }
  .ptab button { height: 36px; padding: 0 18px; border-radius: 18px; font-size: 14px; }
  @media (hover: hover) { .ptab button:not(.on):hover { color: #111; } }

  .sumstrip > * { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 20px; }
  .sumstrip .k { font-size: 13.5px; }
  .sumstrip b { font-size: 16px; }
  .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

  /* 상품 격자: 홈·목록 4열(목록 작은 격자 5열), 상세의 같은 카테고리 4개 한 줄 */
  .pgrid { gap: 44px 20px; }
  .pgrid.c4, .pgrid.c4h, .pgrid.rel4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pgrid.c4h, .pgrid.c4 { gap: 56px 24px; }
  .pgrid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 44px 16px; }
  .pgrid.rel4 { gap: 32px 16px; }
  .pc-body { padding-top: 12px; }

  /* 상품 목록: 왼쪽 메뉴 없이 본문 폭 전체에 4열(작은 격자 5열) */
  .list-h { margin-bottom: 16px; }
  .list-h h1 { font-size: 25px; font-weight: 500; letter-spacing: -.8px; }
  .lcrumb { font-size: 12.5px; }
  .fband { padding: 10px 16px; gap: 8px; }
  .sortbar { padding: 18px 0; margin-bottom: 8px; }
  .sorts button { padding: 0 12px; font-size: 13.5px; }
  @media (hover: hover) { .sorts button:hover { color: #111; } }
  .lview { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
  .persel { height: 28px; padding: 0 2px; border: 0; background: transparent; font-size: 13px; color: #111; outline: none; cursor: pointer; }
  .vmode { display: flex; }
  .vmode button { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #ddd; background: #fff; color: #bbb; }
  .vmode button + button { margin-left: -1px; }
  .vmode button.on { position: relative; border-color: #111; background: #111; color: #fff; }
  .vmode svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
  .joinbox { margin-top: 56px; padding: 24px 28px; }

  /* 상품 상세 */
  .crumb { display: flex; align-items: center; gap: 7px; margin: -8px 0 16px; font-size: 12.5px; color: var(--muted); }
  .crumb button:hover { color: #111; text-decoration: underline; text-underline-offset: 3px; }
  .pd { display: grid; grid-template-columns: 45% minmax(0, 1fr); gap: 0 5%; align-items: start; }   /* 사진 45% · 구매 영역 50% */
  .pd-img { margin: 0; }
  .pd-img .pthumb { border-radius: var(--r-md); }
  .pd-brand { font-size: 13.5px; }
  .pd-name { font-size: 20px; margin-top: 4px; }
  .pd-price { margin-top: 14px; }
  .pd-price .off { font-size: 26px; }
  .pd-price .won { font-size: 30px; }
  .pd-price .per { flex-basis: auto; margin: 0 0 0 4px; }
  .itable th { width: 96px; }
  .itable.wide th { width: 160px; padding: 13px 18px; }
  .itable.wide td { padding: 13px 18px; }
  .itable.wide tr:first-child th, .itable.wide tr:first-child td { padding-top: 13px; }
  .itable.spec th { width: 120px; padding: 5px 0; }
  .itable.spec td { padding: 5px 0; }
  .itable.spec tr:first-child th, .itable.spec tr:first-child td { padding-top: 14px; }
  .pbtns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
  .pd2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0 48px; align-items: start; margin-top: 72px; }
  .pd2-side { display: block; position: sticky; top: 64px; }   /* 위에 남는 카테고리 바 48 + 16 */
  .ptabs span { padding: 14px 2px; font-size: 16px; }
  .pd2 .sec.rel { margin-top: 56px; }
  .pbox { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
  .pb-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pb-name i { font-style: normal; font-weight: 400; color: #777; }
  .pbox .qbox { margin-top: 12px; padding: 12px; }
  .pbox .ptotal { margin-top: 14px; padding-top: 14px; }
  .pbox .ptotal b { font-size: 20px; }
  .pbox .pbtns { gap: 6px; margin-top: 16px; }
  .pbox .pbtns .btn { height: 48px; padding: 0 6px; font-size: 15px; }
  .pbox .pd-lock { margin-top: 12px; flex-direction: column; align-items: stretch; text-align: center; }

  /* 장바구니: 표 */
  .cth {
    display: grid; grid-template-columns: minmax(0, 1fr) 160px 140px 44px; gap: 0 16px;
    padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--alt); text-align: center;
  }
  .ctr {
    grid-template-columns: 80px minmax(0, 1fr) 160px 140px 44px; grid-template-areas: "th ci cq ca cx";
    gap: 0 16px; padding: 16px 0;
  }
  .ctr .th { width: 80px; height: 80px; align-self: center; }
  .ci .nm { font-size: 14.5px; }
  .cq, .ca, .cx { justify-self: center; }
  .ctotal { flex-direction: row; align-items: center; justify-content: flex-end; gap: 36px; margin-top: 28px; padding: 24px 32px; }
  .ctotal .l b, .ctotal .r b { margin-left: 0; }
  .ctotal .l b { font-size: 16px; }
  .ctotal small { flex-basis: auto; }
  .ctotal .r { padding: 0 0 0 36px; border-top: 0; border-left: 1px solid #ddd; }
  .ctotal .r b { font-size: 26px; }
  .cact { margin-top: 24px; }
  .cact .sp { display: block; }
  .cact .btn { flex: none; order: 0; min-width: 240px; }

  /* 주문/결제: 2단 */
  .ckwrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .cks { padding: 24px; }
  .f.half { max-width: calc(50% - 5px); }
  .cksum { margin-top: 0; position: sticky; top: 72px; }
  .cksum .card { padding: 24px; }
  .payopt { grid-template-columns: 20px 190px minmax(0, 1fr); gap: 0 10px; padding: 14px 16px; }
  .payopt input { grid-row: auto; align-self: center; margin: 0; }
  .payopt span { grid-column: auto; font-size: 13px; }
  .paybank .f { max-width: 340px; }
  #paybtn { display: flex; margin-top: 16px; height: auto; min-height: 52px; padding: 10px 12px; white-space: normal; line-height: 1.3; text-align: center; }

  /* 주문 내역 · 상세 */
  .ocard { padding: 18px 4px; }
  .olist .ocard:hover { background: #fafafa; }
  .olist .obody { display: grid; grid-template-columns: 170px 150px minmax(0, 1fr) 280px; align-items: center; gap: 20px; margin-top: 10px; }
  .olist .osum, .olist .oitems, .olist .trackbox { margin-top: 0; }
  .hgrid .ocard { padding: 18px 20px; }
  .odact { justify-content: center; margin-top: 40px; }
  .odact .btn { flex: none; min-width: 220px; }

  /* 예치금 · 정기 주문 · 폼 */
  .depwrap { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: start; }
  .depmain { margin-top: 0; }
  .schcard { flex-direction: row; align-items: center; gap: 24px; }
  .schcard .sh { min-width: 240px; }
  .schcard .sb { flex: 1; }
  .schcard .btn { align-self: center; padding: 0 12px; }
  .card.form { padding: 32px; }

  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
  .stepi { padding: 20px 24px; }
  .stepi + .stepi { border-top: 0; border-left: 1px solid var(--line-soft); }

  /* 바텀시트 → 가운데 모달 */
  .sheet-bg { align-items: center; padding: 32px; }
  .sheet { max-width: 480px; max-height: 86vh; border-radius: var(--r-md); padding: 26px 28px 24px; animation: fadeIn .15s ease; }
  .sheet .grip { display: none; }

  .sfoot, .sfoot.pc-only { display: block; padding: 40px 20px; font-size: 13.5px; line-height: 1.6; }
  .sfoot .in { flex-direction: row; gap: 0; max-width: 1240px; margin: 0 auto; }
  .sfoot .flogo { flex: none; width: 238px; }
  .sfoot .flogo img { width: 84px; margin-bottom: 14px; }
  .sfoot .flogo p { font-size: 14px; }
  #toast { bottom: 40px; }

  /* 찜 · 간식 박스 · 공지 · 내 정보 */
  .pd-buy .pbtns.wfav { grid-template-columns: 52px repeat(2, minmax(0, 1fr)); }
  .boxform { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 20px 24px; }
  .boxform .btn { margin: 0 0 0 auto; min-width: 140px; }

  .nth { display: grid; grid-template-columns: 80px minmax(0, 1fr) 120px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--alt); text-align: center; }
  .ntr { display: grid; grid-template-columns: 80px minmax(0, 1fr) 120px; gap: 0; padding: 15px 0; }
  .ntr .no { display: block; text-align: center; font-size: 13px; color: var(--alt); }
  .ntr .tt .m { display: none; }
  .ntr .dt { text-align: center; font-size: 13px; }
  @media (hover: hover) { .ntr:hover .tt, .nnav:hover b { text-decoration: underline; text-underline-offset: 3px; } }
  .npost h2 { padding-top: 22px; font-size: 20px; }
  .myform { padding: 24px; }
  .myform .f { max-width: 520px; }
  .myform .acts .btn { flex: none; min-width: 120px; }
  .cact .btn.line { min-width: 0; }
  .cact .btn.pri { flex: none; }
}

/* 상품 상세: 유통기한 로트 목록·공식몰 링크 */
.lot { display: block; line-height: 1.6; }
.lot + .dim, td > .dim:only-child { display: block; }
.offlink { color: #111; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
@media (hover: hover) { .offlink:hover { color: var(--primary); } }

/* ───── 11/24 휴대폰 카테고리 줄 고정 — 머리(로고·‹ 제목)는 #screen 안에서 같이 스크롤되어 올라가고, 카테고리 줄만 위에 붙는다 ───── */
.hd-m { background: #fff; }
.mcats { position: sticky; top: 0; z-index: 30; background: #fff; }

/* ───── 11/24 마이 — 주문 내역 칸(점주몰 마이와 같은 구성) ───── */
.myord { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.myord .hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.myord h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.3px; }
.myord .hd .tbtn { font-size: 13px; color: var(--alt); text-decoration: none; }
.myord .st { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px 0; border-radius: var(--r-sm); background: var(--fill); }
.myord .st button { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.myord .st button + button { border-left: 1px solid var(--line); }
.myord .st b { font-size: 18px; font-weight: 800; line-height: 1.1; }
.myord .st span { font-size: 12px; color: var(--alt); white-space: nowrap; }
.myord .rc { margin-top: 8px; }
.myord .r { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 0; border-top: 1px solid var(--line-soft); text-align: left; font-size: 13.5px; }
.myord .r:first-child { border-top: 0; }
.myord .r .dt { color: var(--alt); font-size: 13px; }
.myord .r .no { color: var(--muted); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.myord .r .am { margin-left: auto; font-weight: 800; white-space: nowrap; }
.myord .em { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (min-width: 1024px) {
  .myord { margin-top: 16px; padding: 20px 22px; }
  .myord h3 { font-size: 16px; }
  .myord .st { padding: 16px 0; }
  .myord .st b { font-size: 20px; }
  .myord .st span { font-size: 13px; }
  .myord .r { gap: 12px; font-size: 14px; }
  .myord .r .no { font-size: 13px; }
}

/* 11/24 사용자: PC 하트는 커서를 올리면 장바구니 버튼과 나란히 [♡][🛒] — 둘 다 50px 흰 원, 합쳐서 가운데(아래에서 50px) */
@media (hover: hover) {
  .pc-fav { left: calc(50% - 55px); right: auto; top: auto; bottom: 50px; width: 50px; height: 50px; }
  .pc-fav svg { width: 24px; height: 24px; }
  .pc-cart:not(:has(.step)) { left: calc(50% + 5px); transform: none; }
  .pc-img:has(.pc-cart .step) .pc-fav { left: 50%; transform: translateX(-50%); }   /* 담아서 수량 칸이 오른쪽 아래로 가면 하트만 가운데 */
}

/* 11/24: 상세 이미지가 있으면 '상세정보' 줄을 숨긴다(칸이 비어 있을 때) */
.itable tr:has(#pdlink:empty) { display: none; }

/* ───── 11/24 휴대폰 상세 하단 막대: 위 줄 수량·총 금액, 아래 줄 하트·장바구니·주문하기 ───── */
.bar.pbuy { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; }
.bar.pbuy .bq { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bar.pbuy .bt { font-size: 13px; color: var(--alt); white-space: nowrap; }
.bar.pbuy .bt b { margin-left: 8px; font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: -.4px; }
.bar.pbuy .bb { display: flex; gap: 8px; }
.bar.pbuy .bb .btn { flex: 1; min-width: 0; height: 48px; }
.bar.pbuy .bb .favb { flex: 0 0 48px !important; width: 48px; }
body.has-bar.has-pbuy { --pad-b: calc(124px + var(--safe-bottom)); }

/* ───── 11/24 맨 위 띠 — 이번 달 주문·금액·예치금 잔액(점주몰 '주문 마감·출고·최소 결제' 띠와 같은 모양) ───── */
.hband { display: none; }
.mband:empty { display: none; }
.mband {
  height: 30px; padding: 0 12px; background: var(--primary-soft); color: var(--primary-deep);
  display: flex; align-items: center; justify-content: center; gap: 0; font-size: 11.5px; white-space: nowrap; overflow: hidden; letter-spacing: -.2px;
}
.mband button { font-size: inherit; color: inherit; white-space: nowrap; }
.mband b { font-weight: 700; }
.mband i { font-style: normal; color: #e3b2a3; margin: 0 8px; }
@media (min-width: 1024px) {
  .mband { display: none !important; }
  .hband:not(:empty) {
    display: flex; justify-content: center; align-items: center; height: 32px;
    background: var(--primary-soft); color: var(--primary-deep); font-size: 13px; white-space: nowrap;
  }
  .hband > * { position: relative; padding: 0 30px; font-size: inherit; color: inherit; }
  .hband > * + *::before { content: ""; position: absolute; left: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: currentColor; opacity: .4; }
  .hband b { font-weight: 700; }
  .hband button:hover b { text-decoration: underline; text-underline-offset: 3px; }
  body.has-band .dhead { top: -158px; }   /* 띠 32 + 유틸 바 36 + 스토어 헤더 90 이 올라가고 카테고리 바만 붙는다 */
}

/* 11/24 사용자: 상세 등 하위 화면의 '‹ 제목' 머리와 검색 머리는 위에 고정(뒤로가기·장바구니가 늘 보임). 맨 위 띠는 같이 올라간다 */
.hd-m.sub, .hd-m.search { position: sticky; top: 0; z-index: 31; }

/* ── 중립 브랜드(글자 로고·사진 없는 배너) ── */
.wordmark { font-size: 21px; font-weight: 800; letter-spacing: -.6px; line-height: 1; color: var(--ink); white-space: nowrap; }
.mlogo .wordmark { font-size: 19px; }
body.ov .shead .brand .wordmark { color: #fff; }
.sfoot .flogo .wordmark { display: inline-block; color: #fff; font-size: 22px; margin-bottom: 10px; }
.hero.plain { background: linear-gradient(135deg, #18233a 0%, #24324f 55%, #33466b 100%); }
.hero.plain::before { background: rgba(0, 0, 0, .12); }
@media (min-width: 1024px) { .shead .brand .wordmark { font-size: 28px; } }
