/* ★ 글꼴(Pretendard)은 여기 @import 가 아니라 <head> 의 <link> 로 받습니다
     (2026-08-20, inc/ui.php · admin/_auth.php). @import 는 «이 파일을 다 받은 뒤에야»
     글꼴 CSS 를 받으러 가는 직렬 사슬이라 첫 화면을 늦춥니다. */

/* ==========================================================================
   이벤트버스 (eventbus.kr)

   Style : Bright & Bold — 흰 배경, 사진 크게, 글자 크게
   타겟  : 30·40대 여성. 작고 흐린 글씨, 숨은 버튼을 쓰지 않습니다.

   원칙 세 가지
   1. 그림자 대신 1px 실선과 여백으로 경계를 만든다.
   2. 색은 브랜드 노랑 하나. 나머지는 무채색.
   3. 사진과 영상이 주인공. 그 위에 배지를 얹지 않는다.
   ========================================================================== */

:root {
  /* --- Neutral --- */
  --bg:        #FFFFFF;
  --surface-2: #F7F7F6;   /* 이미지 자리 · 섹션 구분 */
  --surface-3: #F1F1F0;
  --ink:       #111111;   /* 제목·본문 (대비 18.9:1) */
  --ink-2:     #5F5F5F;   /* 보조 (대비 6.5:1) — 작은 글씨도 읽힙니다 */
  --ink-3:     #8A8A8A;   /* 메타 (대비 3.5:1) — 12px 미만엔 쓰지 말 것 */
  --line:      #E4E4E2;
  --line-2:    #EFEFED;

  /* --- Brand : 로고 노랑. 검정 글씨를 얹어야 대비가 납니다 (16.4:1) --- */
  --brand:     #FFD400;
  --brand-2:   #FFE873;   /* 옅은 노랑 — 배경 블록 */
  --brand-50:  #FFFBE6;
  --on-brand:  #111111;

  --accent:    #111111;   /* 링크·선택 상태는 검정으로 (노랑은 면으로만) */
  --accent-50: var(--brand-50);
  --sale:      #E1233C;

  /* --- Radius : 거의 각지게 --- */
  --r-sm: 2px;
  --r-md: 4px;
  --r-full: 999px;

  /* --- Layout --- */
  --header-h: 54px;
  --tabbar-h: 56px;
  --wrap: 1280px;
  --gut: 16px;

  --z-sticky: 10;
  --z-header: 20;
  --z-tabbar: 30;
  --z-drawer: 60;
}

@media (min-width: 768px) { :root { --gut: 32px; --header-h: 64px; } }

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  /* ★ 앵커(#reviews · #main 등)로 뛸 때 목표가 붙박이 헤더 아래에 깔리지 않게
       그만큼 미리 띄웁니다 (2026-08-20). 헤더 실측값 --rail-y 도 함께 셉니다. */
  scroll-padding-top: calc(var(--header-h) + var(--rail-y, 0px) + 8px);
}

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  touch-action: manipulation;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

/* 에디토리얼 타이포 — 크고, 촘촘하고, 굵게 */
h1, h2, h3 { font-weight: 700; line-height: 1.22; letter-spacing: -.035em; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* ★ 「본문 바로가기」 링크는 평소엔 숨겨 두되, Tab 으로 초점이 가면 드러냅니다
     (2026-08-20). 그전에는 초점이 가도 1×1px 로 잘려 있어, 키보드 사용자에게는
     초점만 사라진 것처럼 보였습니다 — 만들어 놓고 연결을 안 한 부품이었습니다. */
.sr-only:focus {
  position: fixed; top: 10px; left: 10px; z-index: var(--z-modal, 100);
  width: auto; height: auto; margin: 0; padding: 10px 16px;
  clip: auto; overflow: visible; border-radius: var(--r-full);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-full { width: 100%; }

.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section-tight { padding: 32px 0; }

/* 섹션 헤더 — 라벨 / 제목 / 링크 */
.sec-head { margin-bottom: 24px; }
.sec-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 10px;
}
/* 2026-08-03 — 각 화면의 대표 제목을 h1 으로 올렸습니다. 모양은 그대로 둡니다. */
.sec-head h1, .sec-head h2 { font-size: 26px; }
@media (min-width: 768px) { .sec-head h1, .sec-head h2 { font-size: 34px; } }
.sec-head .desc { color: var(--ink-2); font-size: 15px; margin-top: 10px; max-width: 46ch; }

.sec-head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}

/* 텍스트 링크 — 밑줄이 기본, 이게 에디토리얼의 기본 문법 */
.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity .2s ease;
}
.link:hover { opacity: .55; }
.link svg { width: 14px; height: 14px; }

/* 터치 영역만 넓히고 시각적으로는 그대로 두는 방법 */
.tap-pad { position: relative; }
.tap-pad::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  min-width: 44px; min-height: 44px; width: 100%; height: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */
/* --- 맨 위 노랑 띠 (2026-08-07) -------------------------------------------
   브랜드색을 «얇고 정확하게» 씁니다. 34px 한 줄.

   ★ 노랑 위에는 **검정만** 씁니다. 흰 글자는 대비가 안 나옵니다
     (#FFD400 위 흰색 ≈ 1.5:1 — 읽을 수 없습니다. 검정은 15:1 로 안전합니다)
   ★ 헤더보다 위에 있고 **같이 스크롤되어 사라집니다.** 붙박이로 두면
     좁은 화면에서 내용이 볼 자리를 계속 뺏깁니다. */
/* ★ 2026-08-07 저녁 — 헤더를 통째로 노랑으로 바꿨습니다(사장님 지시).
   그래서 이 공지 띠는 **검정**으로 갑니다. 노랑 위에 노랑을 얹으면 한 덩어리가
   되어 «띠»로 안 보이고, 노랑 면적만 두 배가 됩니다.
   검정 띠 → 노랑 헤더 → 흰 본문 → 검정 푸터 로 위아래가 맞물립니다. */
.topbar { background: #111; color: #EDEDEA; }
.topbar-in p b { color: var(--brand); }
.topbar-x { color: #EDEDEA; }
.topbar--legacy { background: var(--brand); color: #111; }
.topbar-in {
  max-width: var(--wrap); margin: 0 auto; min-height: 34px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 var(--gut);
}
.topbar-in p {
  flex: 1; text-align: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar-in p b { font-weight: 800; }
.topbar-x {
  flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: #111; opacity: .55;
}
.topbar-x:hover { opacity: 1; }
.topbar-x svg { width: 13px; height: 13px; }
/* ★ 2026-08-08 — 360px 폰에서 «…문자로 보내…» 로 **잘려 있었습니다.**
     한 줄로 못 담으면 잘라내는 것이 아니라 **두 줄로 내려야** 합니다.
     잘린 문장은 «배송비 무료»라는 말만 남기고 정작 «시안을 보내드린다»는
     안내를 지웁니다 — 이 가게에서 손님이 가장 궁금해하는 대목입니다.
   ★ 이 띠는 스크롤하면 같이 사라지므로, 두 줄이 되어도 자리를 계속 뺏지 않습니다. */
@media (max-width: 480px) {
  .topbar-in { padding-top: 6px; padding-bottom: 6px; }
  .topbar-in p {
    font-size: 11.5px; line-height: 1.5;
    white-space: normal; text-overflow: clip;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  /* 닫기 단추는 글이 두 줄이 되어도 가운데에 그대로 둡니다 */
  .topbar-x { align-self: center; }
}

/* ==========================================================================
   헤더 — 노랑 띠 (2026-08-07 저녁, 사장님 지시로 전면 변경)

   사장님이 스튜디오숲 홈페이지를 보여주시며 «상단을 전체 노랑으로»를 두 번
   말씀하셨습니다. 그대로 갑니다.

   ★ 노랑 위에는 **검정 계열만** 얹습니다. 흰 글자는 #FFD400 위에서 1.5:1 로
     읽을 수 없습니다. 그래서 «지금 보는 곳» 표시는 흰색이 아니라
     **검정 알약**으로 합니다 — 노랑 바탕에서 가장 세게 튀는 것이 검정입니다.
   ★ 로고(왼) · 메뉴(가운데) · 버튼(오른쪽) 으로 한 줄을 채웁니다.
     가운데가 비면 띠가 넓을수록 허전해 보입니다(사장님 지적).
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--brand);
  border-bottom: 1px solid rgba(0,0,0,.14);
}
/* 노랑 위에서는 아이콘·로고도 검정으로 통일합니다 */
.header .icon-btn { color: #111; }
.header .icon-btn:hover { background: rgba(0,0,0,.08); }
.header .badge { background: #111; color: var(--brand); }

/* --- 카테고리 한 줄 (2026-08-07 신설) -------------------------------------
   전에는 헤더 글자메뉴 + 목록화면 칩줄로 **같은 카테고리가 두 번** 나왔습니다.
   이제 이 줄 하나뿐입니다. 전 화면에서 같은 자리에 있습니다.

   ★ 가로 스크롤이지만 스크롤바는 숨깁니다. 대신 오른쪽 끝을 흐리게 해서
     «더 있다»를 알립니다 — 안 그러면 12개 중 6개만 있는 줄 압니다. */
/* 카테고리 — 로고와 아이콘 «사이». 노랑 띠 안에 들어갑니다 */
/* ★★ 2026-08-30 — 폰에서 가로 스크롤이 생기던 것을 여기서 잡습니다.
     .catbar 의 margin: 0 -6px 는 칩이 화면 가장자리까지 흘러 보이게 하는
     «일부러 넣은» 여백입니다(디자인). 그런데 그만큼 화면 밖으로 샐져나가서
     페이지 전체가 좁우로 흔들렸습니다. (댓데이에서 9px 실측)
   ★ hidden 이 아니라 clip 입니다 — hidden 은 세로도 스크롤 상자로 만들어
     「더보기」 팝업이 잘립니다. clip 은 가로만 자르고 세로는 그대로 둡니다. */
.header-in { overflow-x: clip; }
.catbar { flex: 1 1 100%; order: 3; min-width: 0; margin: 0 -6px; }
.catbar-in {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  padding: 0 6px 8px;
}
.catbar-in::-webkit-scrollbar { display: none; }
.cchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--r-full);
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  color: rgba(0,0,0,.62); white-space: nowrap;
  transition: transform .16s cubic-bezier(.34,1.56,.64,1), background-color .16s ease, color .16s ease;
}
/* ★ 살짝 «톡» 올라옵니다 — 귀여움은 모양보다 «움직임»에서 옵니다.
     0.16초에 살짝 튀는 곡선(cubic-bezier)이라 장난스럽지만 느리지 않습니다.
     ★ 움직임을 불편해하는 분에게는 아래에서 끕니다. */
.cchip:hover { background: rgba(0,0,0,.08); color: #111; transform: translateY(-2px); }
.cchip.on { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cchip { transition: none; }
  .cchip:hover { transform: none; }
}
/* ★ «지금 보는 곳»은 검정 알약. 노랑 바탕에서 가장 세게 튀는 것이 검정입니다.
     흰색으로 하면 노랑 위에서 거의 안 보입니다(1.5:1). */
.cchip.on { background: #111; color: var(--brand); }
.cchip.on:hover { background: #111; color: var(--brand); }
.cchip.on svg { width: 15px; height: 15px; flex: 0 0 auto; transform: rotate(-12deg); opacity: .95; }

@media (min-width: 1000px) {
  /* 넓은 화면 — 로고 · 메뉴 · 버튼이 한 줄에 나란히.
     ★ nowrap 이 꼭 필요합니다. 없으면 카테고리가 많을 때 아이콘이 아랫줄로
       밀려 내려가 «로고만 있고 가운데가 빈» 모양이 다시 됩니다.
       메뉴가 넘치면 줄바꿈이 아니라 «옆으로 넘겨보기»가 되어야 합니다. */
  /* ★ .header-in 의 flex-wrap 은 여기서 못 바꿉니다 —
       이 묶음이 .header-in 규칙보다 «위»에 있어서 나중에 나오는 쪽이 이깁니다.
       그래서 아래 «.header-in 뒤에 두는 규칙»에서 처리합니다. (2026-08-07 겪음) */
  .catbar { flex: 1 1 auto; order: 0; margin: 0 14px; min-width: 0; }
  /* ★ 그냥 center 로 두면 항목이 넘칠 때 **앞쪽이 잘려 사라집니다.**
       실제로 «강아지굿즈»가 왼쪽으로 잘려 안 보였습니다.
       safe center = 들어가면 가운데, 넘치면 앞에서부터. 잘리지 않습니다. */
  .catbar-in { padding: 0; justify-content: center; justify-content: safe center; }
  /* 사장님 요청으로 한 번 더 키웠습니다 (15.5 → 17). 이름을 짧게 줄여서
     9개가 여전히 한 줄에 들어갑니다. */
  .cchip { font-size: 17px; padding: 10px 14px; }
}
/* 로고는 절대 찌그러지면 안 됩니다 */
.header .logo { flex: 0 0 auto; }
.header-in {
  min-height: var(--header-h);
  display: flex; align-items: center; flex-wrap: wrap;
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 calc(var(--gut) - 10px);
}
/* 좁은 화면에서는 메뉴가 아랫줄로 내려갑니다 — 그때만 spacer 가 필요합니다.
   ★ 이 묶음은 반드시 위의 .header-in 규칙 «뒤»에 있어야 합니다. */
@media (min-width: 1000px) {
  .header .spacer { display: none; }
  /* 넓은 화면에서는 한 줄 고정. 메뉴가 넘치면 줄바꿈이 아니라 옆으로 넘겨보기 */
  .header-in { flex-wrap: nowrap; }
}

/* --- 로고 ---
   노란 원 마크입니다. 시안 페이지에서 고객이 이미 보던 것과 같아서
   «같은 가게»라는 게 바로 이어집니다.
   헤더가 56px 이라 원은 40px 로 둡니다 — 더 키우면 위아래가 답답해집니다. */
.logo {
  display: inline-flex; align-items: center;
  padding: 0 10px;
  font-size: 19px; font-weight: 800; letter-spacing: .01em;   /* 사진이 없을 때 대비 */
}
/* 2026-08-22 — 40×40 정사각은 댕데이 원형 로고 시절 크기.
   이벤트버스 가로 로고(360×68)는 높이만 정하고 폭은 비율대로 둡니다. */
.logo img {
  display: block; height: 28px; width: auto; object-fit: contain;
}
@media (min-width: 768px) {
  .logo { font-size: 21px; }
  .logo img { height: 32px; }
}

/* --- 글자 로고 (2026-08-07) -----------------------------------------------
   노랑 헤더에 노란 원 마크를 얹으니 마크가 배경에 묻혔습니다.
   글자로 바꾸면 배경이 무슨 색이든 또렷하고, 작은 화면에서도 안 뭉갭니다.

   ★ EVENT 는 조금 여리게, BUS 는 꽉 차게 — 같은 굵기로 나란히 두면
     그냥 «영어 두 단어»로 읽히고 상표로 안 보입니다. 무게를 나누면
     눈이 «EVENTBUS» 를 한 덩어리로 묶어 봅니다.
   ★ 자간을 좁혀(-.04em) 한 덩어리로 보이게 합니다. */
.logo-txt {
  gap: 0; padding: 0 8px;
  font-size: 26px; font-weight: 900; letter-spacing: -.045em;
  color: #111; line-height: 1; white-space: nowrap;
  /* 영문은 Pretendard 보다 이 계열이 더 단단하게 떨어집니다.
     받아둔 글꼴이 없으면 자동으로 뒤 글꼴로 넘어갑니다 — 외부에서 받아오지
     않으므로 화면이 늦게 뜨거나 글자가 깜빡이는 일이 없습니다. */
  font-family: "Archivo Black", "Helvetica Neue", Helvetica, "Pretendard Variable", Pretendard, Arial, sans-serif;
  font-stretch: 105%;
}
/* EVENT 는 여리게, BUS 는 꽉 차게 — 같은 굵기로 나란히 두면 그냥 «영어 두 단어»로
   읽히고 상표로 안 보입니다. 무게를 나누면 눈이 한 덩어리로 묶어 봅니다. */
.logo-txt span { font-weight: 500; opacity: .72; }
.logo-txt b    { font-weight: 900; }
/* 끝에 선물트럭 — 2026-08-22. 글자만 있으면 «무슨 가게인지» 안 보입니다.
   트럭 하나가 «만들어 배달하는 곳»임을 말해 줍니다.
   (댕데이 시절엔 발바닥을 14도 기울여 «찍힌 자국»처럼 했지만,
    트럭은 기울이면 넘어지는 것처럼 보여 반듯하게 둡니다.) */
.logo-txt svg {
  width: 17px; height: 17px; flex: 0 0 auto;
  margin-left: 5px; margin-bottom: -2px;
}
@media (min-width: 768px) { .logo-txt { font-size: 30px; } .logo-txt svg { width: 20px; height: 20px; } }

/* --- 홈 띠배너 3장 (2026-08-22) — 문구가 사진 안에 있는 가로 배너를 세로로 쌓습니다 */
.promo-strips { display: grid; gap: 14px; }
.promo-strips a { display: block; border-radius: 14px; overflow: hidden; }
.promo-strips img { display: block; width: 100%; height: auto; }

/* ★★ 좁은 폰(360px)에서 장바구니 아이콘이 아랫줄로 밀렸습니다 — 2026-08-08.
     갤럭시 기본 폭이 360px 입니다. 흔한 폰인데 헤더 첫 줄이 «로고만» 있고
     장바구니가 혼자 아랫줄에 떨어져 있었습니다.
     ① 아이콘을 줄이는 것은 답이 아닙니다 — 44px 아래로 내리면 못 누릅니다
     ② 그래서 **로고를 줄입니다.** 26 → 22px. 글자 로고라 작아져도 안 뭉갭니다
   ★ 이 규칙은 반드시 위 .logo-txt · .header-in 규칙 «뒤»에 있어야 합니다
     (같은 무게면 나중에 쓴 것이 이깁니다 — 8/7 에 두 번 데었습니다) */
@media (max-width: 400px) {
  .logo-txt { font-size: 22px; padding: 0 6px; }
  .logo-txt svg { width: 15px; height: 15px; margin-left: 4px; }
  .header-in { padding: 0 4px; }
}

/* ★ 카테고리 줄 «더 있다» 표시 — 2026-08-08.
     CSS 주석에는 «오른쪽 끝을 흐리게 한다»고 적혀 있었는데 **실제로는 없었습니다.**
     폰에서 9개 중 5개만 보이고, 옆으로 밀 수 있다는 표시가 없어
     손님은 그게 전부인 줄 압니다.
   ★ 넘칠 때만 켭니다(app.js 의 syncCatFade). 다 보이는데 흐리면 거짓말이 됩니다. */
.catbar { position: relative; }
/* 흐림 — 잘린 글자가 «흘러 나간다»고 보이게 합니다.
   ★ 다만 이것만으로는 부족합니다. 바탕이 같은 노랑이라, 마지막 칩이 딱 맞게
     끝나면 흐릴 글자가 없어 아무 표시도 안 남습니다. 그래서 단추를 함께 둡니다. */
.catbar::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 8px; width: 46px;
  background: linear-gradient(to right, rgba(255, 212, 0, 0), var(--brand) 62%);
  pointer-events: none; opacity: 0; transition: opacity .18s ease;
}
.catbar.has-more::after { opacity: 1; }

/* «더 보기» 단추 — 눌러도 넘어가고, 있는 것만으로 «옆에 더 있다»를 말합니다 */
.catbar-more {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%) translateY(-4px);
  width: 30px; height: 30px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .82); color: var(--brand);
  border: 0; border-radius: 50%; cursor: pointer; padding: 0;
  opacity: 0; visibility: hidden; transition: opacity .18s ease;
  z-index: 1;
}
.catbar-more svg { width: 14px; height: 14px; }
/* 동그라미는 30px 이지만 손가락이 닿는 자리는 44px 로 넓힙니다 —
   보이는 것을 키우지 않고 누르는 자리만 넓히는 방법입니다(.tap-pad 와 같은 수법) */
.catbar-more::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); width: 44px; height: 44px;
}
.catbar.has-more .catbar-more { opacity: 1; visibility: visible; }
/* 단추가 마지막 칩 위에 얹히지 않게 자리를 비웁니다 —
   글자를 반쯤 가리면 «폰커스텀»이 «폰커스텁»으로 보입니다 */
.catbar.has-more .catbar-in { padding-right: 46px; }
/* 넓은 화면에서는 카테고리가 다 들어가므로 아예 없습니다 */
@media (min-width: 1000px) {
  .catbar::after, .catbar-more { display: none; }
}

/* ==========================================================================
   ★★ 헤더 흰색 (2026-08-08 저녁 — 사장님 결정)

   8/7 저녁에 «상단 전체를 노랑으로» 갔다가, 8/8 에 시안 3가지를 나란히 보고
   **흰색으로 되돌립니다.**

   왜 바꾸나
     ① 우리 상품 사진은 대부분 **흰·크림 배경**입니다. 노랑 띠가 그 위에 얹히면
        색으로 싸웁니다. 이 가게의 주인공은 상품 사진입니다.
     ② 헤더는 **스크롤해도 계속 따라옵니다**(sticky). 첫 화면에서 한 번 보는 노랑과,
        상품을 30번 넘기는 내내 보는 노랑은 전혀 다른 인상입니다.
     ③ 넓은 노랑은 «세일·전단지» 인상이라 **선물용 굿즈**에 손해입니다.

   ★ 노랑을 버리는 것이 아닙니다. «면»에서 «점»으로 옮깁니다 —
     장바구니 배지 · 「지금 여기」 알약의 글자 · 카테고리 «더 보기» 단추.
   ★ 흰 헤더의 약점은 **«어디까지가 헤더인지» 경계가 흐려지는 것**입니다.
     흰 헤더 아래가 바로 흰 본문이라 헤더가 붕 뜹니다.
     그래서 아래 경계선을 **또렷하게** 둡니다. 이 줄을 지우면 안 됩니다.
   ★ 이 묶음은 반드시 위의 .header · .cchip · .catbar 규칙 «뒤»에 있어야 합니다.
     같은 무게면 나중에 쓴 것이 이깁니다 — 8/7 에 두 번 데었습니다.
   ========================================================================== */
.header {
  background: #fff;
  /* 노랑일 때는 rgba(0,0,0,.14) 로 충분했지만, 흰 바탕에서는 그 정도로는
     선이 안 보여 헤더와 본문이 한 덩어리로 붙어 보입니다. */
  border-bottom: 1px solid var(--line);
}
.header .icon-btn { color: #111; }
.header .icon-btn:hover { background: var(--surface-3); }
/* 장바구니 개수 — 흰 바탕에서는 노랑이 «알림»으로 튑니다.
   ★ 노랑 위 글자는 반드시 어두운 색. 흰 글자는 1.5:1 로 못 읽습니다. */
.header .badge { background: var(--brand); color: #191600; }

.cchip { color: var(--ink-2); }
.cchip:hover { background: var(--surface-3); color: #111; }
/* 「지금 여기」는 그대로 **검정 알약 + 노랑 글자**입니다.
   흰 바탕 위 검정은 노랑 바탕 위 검정보다 대비가 더 높아 오히려 또렷해집니다. */
.cchip.on, .cchip.on:hover { background: #111; color: var(--brand); }

/* 「더 있다」 흐림도 흰 바탕에 맞춥니다 — 노랑으로 두면 흰 위에 노란 얼룩이 집니다 */
.catbar::after {
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 62%);
}

/* 모바일: 햄버거 · 로고(중앙) · 아이콘 / 데스크탑: 로고 · 메뉴 · 아이콘 */
.header .spacer { flex: 1; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--ink); position: relative;
  transition: opacity .2s ease;
}
.icon-btn:hover { opacity: .5; }
.icon-btn svg { width: 21px; height: 21px; }

.badge {
  position: absolute; top: 7px; right: 6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--ink); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  border: 2px solid var(--bg);
}

/* --- 데스크탑 가로 메뉴 --- */
.nav-desktop { display: none; }
@media (min-width: 900px) {
  .nav-desktop { display: flex; gap: 28px; margin-left: 36px; }
  .nav-desktop a {
    font-size: 14.5px; font-weight: 600; padding: 4px 0;
    border-bottom: 1.5px solid transparent;
    transition: border-color .2s ease;
  }
  .nav-desktop a:hover, .nav-desktop a[aria-current="page"] { border-color: var(--ink); }
  .btn-menu { display: none; }
}

/* ==========================================================================
   Drawer (햄버거 전체메뉴)
   ========================================================================== */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: calc(var(--z-drawer) + 1);
  width: min(88vw, 380px);
  background: var(--bg);
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
  overflow-y: auto;
  /* ★ 드로어를 끝까지 스크롤해도 뒤 배경 페이지가 같이 밀리지 않게 막습니다
       (2026-08-20). iOS 사파리는 body overflow:hidden 만으로는 배경 스크롤을
       못 막는데, 이 한 줄이 그 새는 곳을 닫습니다. */
  overscroll-behavior: contain;
}
.drawer.is-open { transform: none; }

.drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 6px 0 var(--gut);
  border-bottom: 1px solid var(--line);
}
.drawer-top .logo { padding: 0; }
.drawer-top .logo img { height: 32px; width: auto; }

.drawer-body { padding: 8px 0 24px; flex: 1; }

.drawer-group { padding: 20px var(--gut) 8px; }
.drawer-group .t {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
}

/* [이모지] 이름 ......... [>] — 이름은 이모지 바로 옆에 붙고,
   화살표만 오른쪽 끝으로 밀어냅니다. space-between 을 쓰면 이름이
   가운데로 떠서 목록이 들쭉날쭉해 보입니다. */
.drawer-body a.d-main {
  display: flex; align-items: center;
  padding: 15px var(--gut);
  font-size: 19px; font-weight: 700; letter-spacing: -.03em;
  transition: background-color .18s ease;
}
.drawer-body a.d-main:hover { background: var(--surface-2); }
.drawer-body a.d-main svg {
  width: 16px; height: 16px; color: var(--ink-3);
  flex: 0 0 auto; margin-left: auto;
}

.drawer-body a.d-sub {
  display: block; padding: 11px var(--gut);
  font-size: 15px; color: var(--ink-2);
  transition: color .18s ease;
}
.drawer-body a.d-sub:hover { color: var(--ink); }

.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 18px var(--gut) 28px;
}
.drawer-foot .cs { font-size: 13px; color: var(--ink-2); margin-top: 14px; line-height: 1.7; }
.drawer-foot .cs b { color: var(--ink); font-size: 17px; letter-spacing: -.02em; }

/* ==========================================================================
   Buttons — 각지고 납작하게
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--r-sm);
  font-size: 15.5px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; }

.btn-outline { background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-quiet { background: var(--surface-2); color: var(--ink); }
.btn-quiet:hover { background: var(--surface-3); }

/* 브랜드 노랑 — 화면당 한 번만. 가장 눌러야 할 버튼에만 씁니다. */
.btn-brand { background: var(--brand); color: var(--on-brand); font-weight: 800; }
.btn-brand:hover { background: var(--brand-2); }

/* 노랑 바탕 섹션 */
.band-brand { background: var(--brand-50); }

.btn-block { width: 100%; }
.btn-lg { min-height: 58px; font-size: 16px; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }

.btn.is-loading { color: transparent !important; pointer-events: none; position: relative; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn-outline.is-loading::after, .btn-quiet.is-loading::after {
  border-color: rgba(0,0,0,.18); border-top-color: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   이미지 슬롯
   사진을 넣기 전까지는 비율만 잡힌 회색 판 + 규격 안내가 보입니다.
   <img> 를 넣으면 안내는 자동으로 가려집니다.
   ========================================================================== */
.imgbox {
  position: relative;
  background: var(--surface-2);
  overflow: hidden;
  /* ★ 2026-08-30 — 4/5 에서 1/1 로 바꿨습니다 (댓데이와 같은 수정).
       상품 사진이 정사각형인데 칸이 4:5 라 object-fit: cover 가
       좌우를 각 10%씩 잘라내고 있었습니다.
     ★ r-1x1 · r-3x4 · r-16x9 · r-hero 는 각자 값을 따로 정해 두었으므로
       이 기본값을 바꿔도 그 넷은 영향을 받지 않습니다. */
  aspect-ratio: 1 / 1;           /* 기본 — 상품 카드 */
}
.imgbox.r-1x1  { aspect-ratio: 1 / 1; }
.imgbox.r-3x4  { aspect-ratio: 3 / 4; }
.imgbox.r-16x9 { aspect-ratio: 16 / 9; }
.imgbox.r-hero { aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .imgbox.r-hero { aspect-ratio: 21 / 9; } }

.imgbox > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* 사진 미배치 안내 — 넣을 규격을 그대로 표시 */
.imgbox .slot {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; color: var(--ink-3); text-align: center; padding: 12px;
}
.imgbox > img ~ .slot { display: none; }
.imgbox .slot svg { width: 26px; height: 26px; opacity: .5; }
.imgbox .slot .spec {
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.imgbox .slot .file {
  font-size: 10.5px; opacity: .8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all; max-width: 90%;
}

/* 이미지 위 살짝 확대 — 레이아웃은 그대로 (박스 안에서만 움직임) */
.card:hover .imgbox > img { transform: scale(1.035); }
.imgbox > img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }

/* ==========================================================================
   Hero 슬라이더 — 사진과 영상을 섞어 씁니다.

   사진에는 글자를 굽지 않고, 카피를 CSS 로 위에 얹습니다(.hs-copy).
   사진을 바꿔도 문구만 고치면 되고, 낭독기·검색에도 글자로 읽힙니다.
   비율: 모바일 4:5 (세로로 시원하게) / 데스크탑 21:9
   ========================================================================== */
.hslider { position: relative; }

.hs-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hs-track::-webkit-scrollbar { display: none; }

/* 마우스 환경에서는 손으로 스크롤할 수 없게 막습니다.
   그대로 두면 휠을 굴렸을 때 페이지가 내려가는 대신 배너가 넘어갑니다.
   (overflow:hidden 이어도 스크립트로 scrollTo 는 그대로 동작합니다) */
@media (pointer: fine) {
  .hs-track { overflow-x: hidden; }
}

/* 좌우 화살표 — 마우스 환경에서만 */
.hs-arrow {
  display: none;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, .82); color: var(--ink);
  place-items: center;
  transition: background-color .18s ease;
}
.hs-arrow:hover { background: #fff; }
.hs-arrow svg { width: 18px; height: 18px; }
.hs-arrow.prev { left: 14px; }
.hs-arrow.next { right: 14px; }
@media (pointer: fine) and (min-width: 700px) { .hs-arrow { display: grid; } }

/* ★ 화살표는 «화면 가장자리»에 그대로 둡니다 (사장님 지시, 2026-08-05).
   비켜서는 쪽은 우측 기둥(퀵메뉴·날개배너)입니다 —
   inc/quick.php 의 --rail-right 가 이 화살표 자리(14px)와 폭(46px)을 보고 계산합니다.
   ★ 여기 right / width 를 바꾸면 quick.php 의 --arrow-right / --arrow-w 도 같이 바꿀 것. */

.hs-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  /* 2026-08-22 — 댕데이는 폰에서 4/5(세로) 크롭이었지만, 이벤트버스 배너(1920×600)는
     문구가 사진 안에 박혀 있어 세로로 자르면 글자가 통째로 잘립니다. 가로형으로 갑니다. */
  aspect-ratio: 16 / 7;
  overflow: hidden;
}
@media (min-width: 700px) { .hs-slide { aspect-ratio: 16 / 7; } }
@media (min-width: 1100px) { .hs-slide { aspect-ratio: 21 / 9; } }

.hs-slide > img,
.hs-slide > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* --- 배너 위 카피 -----------------------------------------------------------
   글자가 사진에 묻히면 순식간에 촌스러워집니다. 그래서 사진 위에
   어두운 그라데이션(스크림)을 한 겹 깔고 그 위에 흰 글자를 올립니다.
   모바일은 아래에서 위로, 데스크탑은 왼쪽에서 오른쪽으로 깝니다.
   사진마다 밝기가 달라도 글자가 항상 읽히는 게 목적입니다.
   --------------------------------------------------------------------------- */
/* ★ 2026-08-05 — 밝은 사진용으로 바꿨습니다.
   새로 받은 배너 4장이 전부 «흰 배경 스튜디오컷» 이라, 예전처럼 검은 층을 깔면
   밝고 깨끗한 사진이 통째로 탁해집니다. 그래서 반대로 «흰 층 + 검은 글자» 로 갑니다.
   나중에 어두운 사진이 들어오면 배너마다 골라 쓸 수 있게 만들겠습니다.
   (되돌리려면 아래 흰색 rgba(255,255,255,…) 를 rgba(0,0,0,…) 로 바꾸고
    글자색을 #fff 로 되돌리면 됩니다) */
/* ★ 2026-08-22 — has-media → has-copy 로 좁혔습니다. 글자를 얹은 슬라이드에만
   스크림을 깝니다. 문구가 사진 안에 있는 배너는 스크림이 뿌연 얼룩이 됩니다. */
.hs-slide.has-copy::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  /* ★ 여러 단계로 아주 부드럽게 — 2026-08-05 두 번째 손질.
     처음엔 .88 로 진하게 깔았더니 «왼쪽에 뿌연 얼룩»처럼 보였습니다(사장님 지적).
     사진이 이미 밝아서 진한 층이 필요 없습니다. 옅게 여러 단계로 나눠
     «어디서 끝나는지 안 보이게» 합니다. 글자는 아래 후광으로 읽히게 합니다. */
  background: linear-gradient(to top,
    rgba(255, 255, 255, .62) 0%,
    rgba(255, 255, 255, .42) 14%,
    rgba(255, 255, 255, .24) 28%,
    rgba(255, 255, 255, .10) 42%,
    rgba(255, 255, 255, .03) 54%,
    rgba(255, 255, 255, 0)   64%);
}
@media (min-width: 700px) {
  .hs-slide.has-copy::after {
    background: linear-gradient(to right,
      rgba(255, 255, 255, .52) 0%,
      rgba(255, 255, 255, .34) 12%,
      rgba(255, 255, 255, .19) 24%,
      rgba(255, 255, 255, .08) 38%,
      rgba(255, 255, 255, .02) 50%,
      rgba(255, 255, 255, 0)   62%);
  }
}

.hs-copy {
  position: absolute; z-index: 1;
  left: 0; right: 0; bottom: 0;
  padding: 0 var(--gut) 56px;      /* 아래 점(dots)을 피합니다 */
  color: #1A1A1A;                  /* 밝은 사진용 (2026-08-05) */
}
/* 데스크탑에서는 배너가 화면 끝까지 꽉 차지만, 글자는 헤더·상품목록과
   같은 세로선에서 시작해야 합니다. 그래서 .wrap 과 똑같이 가운데 정렬한
   뒤 그 안쪽에서 왼쪽에 붙입니다. 안 그러면 글자만 화면 끝에 떠 보입니다. */
@media (min-width: 700px) {
  .hs-copy {
    top: 50%; bottom: auto;
    left: 50%; right: auto;
    transform: translate(-50%, -50%);
    width: 100%; max-width: var(--wrap);
    padding: 0 var(--gut);
  }
  .hs-copy p { max-width: 34ch; }
}

/* 브랜드 노랑 알약 — 사진 위에서 브랜드색을 유일하게 쓰는 자리입니다 */
.hs-copy .eyebrow {
  display: inline-block;
  padding: 5px 11px; border-radius: var(--r-full);
  background: var(--brand); color: #1A1A1A;
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
}

.hs-copy h2 {
  margin-top: 12px;
  font-size: 29px; line-height: 1.22; font-weight: 800;
  letter-spacing: -.045em;
  text-shadow: 0 1px 3px rgba(255,255,255,.9), 0 2px 22px rgba(255,255,255,.85);
}
@media (min-width: 700px)  { .hs-copy h2 { margin-top: 14px; font-size: 42px; } }
@media (min-width: 1100px) { .hs-copy h2 { font-size: 52px; } }

.hs-copy p {
  margin-top: 9px;
  font-size: 13.5px; line-height: 1.5;
  color: rgba(26, 26, 26, .74);
  text-shadow: 0 1px 3px rgba(255,255,255,.9), 0 1px 14px rgba(255,255,255,.85);
}
@media (min-width: 700px) { .hs-copy p { margin-top: 12px; font-size: 16px; } }

/* 버튼처럼 보이지만 <span> 입니다. 슬라이드 전체가 이미 링크입니다. */
.hs-copy .cta {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 16px; padding: 11px 20px;
  border-radius: var(--r-full);
  background: #1A1A1A; color: #fff;
  font-size: 13.5px; font-weight: 700;
  transition: background-color .18s ease, transform .18s ease;
}
.hs-copy .cta svg { width: 15px; height: 15px; }
@media (min-width: 700px) {
  .hs-copy .cta { margin-top: 22px; padding: 13px 24px; font-size: 15px; }
}
@media (pointer: fine) {
  .hs-slide:hover .cta { background: var(--brand); transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .hs-copy .cta { transition: none; }
  .hs-slide:hover .cta { transform: none; }
}

/* 파일을 아직 안 넣었을 때 — 배너 바탕색 위에 넣을 규격을 안내 */
.hs-slot {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; text-align: center; padding: 20px;
  color: rgba(0, 0, 0, .55);
}
.hs-slot svg { width: 30px; height: 30px; opacity: .45; }
.hs-slot .spec { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.hs-slot .file {
  font-size: 11.5px; opacity: .75;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}
.hs-slot .lb {
  margin-top: 6px; font-size: 22px; font-weight: 800;
  letter-spacing: -.04em; color: rgba(0, 0, 0, .8);
}
@media (min-width: 700px) { .hs-slot .lb { font-size: 30px; } }

/* 점 — 손가락이 닿는 크기(44px)를 확보하되 보이는 점은 작게 */
.hs-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 2px;
}
@media (min-width: 700px) { .hs-dots { bottom: 20px; } }

.hs-dot {
  width: 26px; height: 34px;
  display: grid; place-items: center;
}
/* 배너에 어두운 스크림이 깔리므로 점은 흰색입니다.
   밝은 사진에서도 보이도록 옅은 그림자를 함께 둡니다. */
.hs-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  transition: background-color .2s ease, width .2s ease;
}
.hs-dot[aria-current="true"]::before { background: #fff; width: 22px; }

/* ==========================================================================
   Hero (구버전 · 단일 이미지) — 다른 페이지에서 아직 씁니다
   ========================================================================== */
.hero { position: relative; }
.hero .imgbox { background: var(--surface-3); }

.hero-copy {
  padding: 28px var(--gut) 8px;
}
@media (min-width: 900px) {
  .hero-copy {
    position: absolute; left: 0; bottom: 0;
    padding: 0 0 64px var(--gut);
    max-width: var(--wrap); width: 100%;
    left: 50%; transform: translateX(-50%);
    color: #fff;
  }
  .hero.hero-overlay .imgbox::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.5) 100%);
  }
}
.hero-copy .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-2);
}
@media (min-width: 900px) { .hero-copy .eyebrow { color: rgba(255,255,255,.85); } }

.hero-copy h1 {
  font-size: 34px; margin-top: 12px; letter-spacing: -.045em;
}
@media (min-width: 600px) { .hero-copy h1 { font-size: 48px; } }
@media (min-width: 900px) { .hero-copy h1 { font-size: 62px; } }

.hero-copy p { margin-top: 14px; font-size: 15.5px; color: var(--ink-2); max-width: 34ch; }
@media (min-width: 900px) { .hero-copy p { color: rgba(255,255,255,.9); font-size: 17px; } }
.hero-copy .btn { margin-top: 22px; }
@media (min-width: 900px) {
  .hero-copy .btn-primary { background: #fff; color: var(--ink); }
  .hero-copy .btn-primary:hover { background: rgba(255,255,255,.85); }
}

/* ==========================================================================
   Product grid

   모바일은 1단입니다.
   상품 수가 많지 않아 2단으로 깔면 사진이 작아지고 "이게 다인가" 로 보입니다.
   한 개씩 크게 보여주는 편이 낫습니다.
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 14px; row-gap: 40px;
}
@media (min-width: 560px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; } }
/* 넓은 화면에서도 3단까지만. 4단으로 깔면 카드가 180px 로 작아져서
   사진이 주인공인 커스텀 굿즈에는 맞지 않습니다. */
@media (min-width: 900px)  { .grid { grid-template-columns: repeat(3, 1fr); column-gap: 22px; row-gap: 52px; } }
@media (min-width: 1200px) { .grid { column-gap: 28px; row-gap: 60px; } }

/* 가로 스크롤로 훑는 배치 — 베스트처럼 몇 개만 보여줄 때 */
.rail-card > * { width: 74vw; max-width: 330px; }
@media (min-width: 768px) { .rail-card > * { width: 300px; } }

.card { display: block; }

.card .info { padding-top: 14px; }
.card .cat {
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px; min-height: 18px;
}
.card .name {
  font-size: 16.5px; font-weight: 600; margin-top: 6px; line-height: 1.45;
  letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* .card 안에서만이 아니라 상세 페이지에서도 쓰이므로 단독 선택자로 둡니다 */
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card .price { margin-top: 8px; }
.price .now { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price .was { font-size: 13.5px; color: var(--ink-3); text-decoration: line-through; }
.price .off { font-size: 17px; font-weight: 800; color: var(--sale); }

.card .rv {
  margin-top: 7px; font-size: 12.5px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* 라벨 — 사진 위가 아니라 카테고리 줄 앞에 (사진을 가리지 않게) */
.flag {
  font-weight: 800; color: var(--ink);
  padding-right: 7px; border-right: 1px solid var(--line);
  flex: 0 0 auto;
}
.flag.flag-sale { color: var(--sale); }

/* 품절 처리 */
.card.is-soldout .imgbox { opacity: .45; }
.card.is-soldout .name { color: var(--ink-2); }

/* ==========================================================================
   카테고리 스트립 (가로 스크롤 · 사진형)
   ========================================================================== */
.rail {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--gut);
  margin: 0 calc(var(--gut) * -1);
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 auto; scroll-snap-align: start; }
.rail-cat > a { width: 42vw; max-width: 220px; }
@media (min-width: 768px) { .rail-cat > a { width: 240px; } }
.rail-cat .name { font-size: 15px; font-weight: 700; margin-top: 11px; letter-spacing: -.02em; }
.rail-cat .cnt { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* ==========================================================================
   카테고리 타일 — 사진 또는 이모지 + 이름

   이모지는 스마트스토어에서 쓰던 것을 그대로 가져왔습니다(고객이 이미 익숙).
   관리자에서 사진을 올리면 그 자리에 사진이 들어갑니다.

   모바일은 4칸입니다. 3칸이면 대분류 10개가 4줄을 차지해서
   그 아래 베스트 상품이 첫 화면에서 완전히 밀려납니다.
   ========================================================================== */
.cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 0;
}
@media (min-width: 480px) { .cats { grid-template-columns: repeat(5, 1fr); } }

.cats a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 2px;
  text-align: center;
  transition: background-color .18s ease;
}
.cats a:hover { background: var(--surface-2); }

.cats .em {
  width: 54px; height: 54px; border-radius: var(--r-full);
  background: var(--brand-50);
  display: grid; place-items: center;
  font-size: 25px; line-height: 1;
  overflow: hidden;                 /* 사진이 원 밖으로 나오지 않게 */
  transition: background-color .18s ease;
}
.cats a:hover .em { background: var(--brand-2); }
@media (min-width: 480px) { .cats .em { width: 64px; height: 64px; font-size: 30px; } }

/* 사진을 올린 카테고리 — 원 안을 꽉 채웁니다 */
.cats .em.has-img { background: var(--surface-2); }
.cats .em > img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cats .nm {
  font-size: 12px; font-weight: 600; letter-spacing: -.04em;
  line-height: 1.3; word-break: keep-all;
}
@media (min-width: 480px) { .cats .nm { font-size: 13.5px; } }

/* 드로어 카테고리 앞 이모지 · 사진 */
.drawer-body a.d-main .em {
  flex: 0 0 auto; width: 26px; height: 26px; margin-right: 8px;
  display: grid; place-items: center;
  font-size: 19px; line-height: 1;
}
.drawer-body a.d-main .em.has-img {
  border-radius: var(--r-full); overflow: hidden; background: var(--surface-2);
}
.drawer-body a.d-main .em > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 드로어 중분류 — 대분류 아래에 들여쓰기로 붙습니다 */
.d-kids {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 var(--gut) 12px calc(var(--gut) + 34px);
}
.d-kids a.d-kid {
  padding: 6px 11px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); border-radius: var(--r-full);
  transition: background-color .18s ease, color .18s ease;
}
.d-kids a.d-kid:hover { background: var(--brand-50); color: var(--ink); }
.drawer-body a.d-main.d-best {
  background: var(--brand); color: var(--on-brand);
}
.drawer-body a.d-main.d-best:hover { background: var(--brand-2); }

/* ==========================================================================
   검색

   헤더 돋보기를 누르면 헤더 아래로 펼쳐지는 줄(.searchbar)과,
   목록 화면에 늘 놓여 있는 칸(.list-search) 두 곳입니다.
   ========================================================================== */
.searchbar { border-top: 1px solid var(--line); background: var(--surface-2); }
.searchbar-in {
  display: flex; align-items: center; gap: 8px;
  max-width: var(--wrap); margin: 0 auto; padding: 11px var(--gut);
}
.searchbar-in > svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--ink-3); }
.searchbar-in .input { flex: 1; min-width: 0; min-height: 44px; background: var(--bg); }
.searchbar-in .btn { flex: 0 0 auto; min-height: 44px; padding: 0 18px; }
/* 검색창을 열면 취소(×)로 닫습니다 */
.searchbar-in .icon-btn { flex: 0 0 auto; }

.list-search {
  display: flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.list-search > svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--ink-3); }
.list-search .input { flex: 1; min-width: 0; min-height: 40px; background: var(--bg); }
.list-search .btn { flex: 0 0 auto; min-height: 40px; padding: 0 15px; }
.list-search .clear {
  flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 3px;
}
.list-search .clear:hover { color: var(--ink); }

/* ==========================================================================
   상단 필터 바 (목록)
   ========================================================================== */
.filterbar {
  /* ★ 헤더가 폰에서는 카테고리 줄까지 아랫줄로 내려가 실제로 54px 보다 높습니다.
       app.js 의 syncRailTop() 이 헤더를 실측해 --rail-y 에 넣어 두므로 그 값을 더합니다
       (2026-08-20). 안 그러면 스크롤 때 중분류 칩줄이 헤더 뒤로 숨었습니다.
       넓은 화면에서는 --rail-y 가 0 이라 예전과 똑같습니다. */
  position: sticky; top: calc(var(--header-h) + var(--rail-y, 0px)); z-index: var(--z-sticky);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.filterbar-in {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
}
.filterbar-in::-webkit-scrollbar { display: none; }
.filterbar .chip {
  flex: 0 0 auto; min-height: 46px; padding: 0 14px;
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--ink-3);
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.filterbar .chip:first-child { padding-left: 0; }
.filterbar .chip:hover { color: var(--ink); }
.filterbar .chip[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }

/* --- 두 번째 줄: 중분류 -------------------------------------------------
   대분류는 밑줄, 중분류는 알약 모양으로 눌러 두 단계가 한눈에 구분됩니다.
   ---------------------------------------------------------------------- */
/* ★ 2026-08-07 — 사장님: «여기 서브가 디자인과 맞지 않고»
   맞습니다. 위 헤더는 노랑 바탕에 «검정 알약»인데, 여기는 회색 띠에 «노랑 알약»
   이라 서로 남남처럼 보였습니다. 같은 규칙으로 맞춥니다.
     · 회색 띠를 없애고 흰 바탕
     · 지금 보는 것 = 검정 알약 (헤더와 같은 약속)
     · 크기·모서리도 헤더 알약과 같게 */
.filterbar-sub {
  gap: 6px; padding-top: 10px; padding-bottom: 11px;
  border-top: 0; background: var(--bg);
}
.filterbar .chip-sm {
  min-height: 40px; padding: 0 14px;
  font-size: 14.5px; font-weight: 700; color: var(--ink-2);
  background: var(--surface-3); border: 1px solid transparent;
  border-radius: var(--r-full);
}
.filterbar .chip-sm:first-child { padding-left: 14px; }
.filterbar .chip-sm:hover { color: var(--ink); background: #E9E9E6; }
.filterbar .chip-sm[aria-current="page"] {
  color: var(--brand); background: #111; border-color: #111;
}

/* 빵조각 — 중분류를 보고 있을 때 위쪽 대분류로 돌아갈 길 */
.crumb {
  /* ★ 2026-08-16 flex-wrap 추가 — 조각이 「홈 › 강아지 › 티셔츠」 셋으로 늘면서
     360px 폰에서 한 줄에 안 들어가면 가로 스크롤이 생깁니다. 줄을 바꾸게 둡니다.
     row-gap 을 따로 줄인 것은, 두 줄이 됐을 때 7px 이 너무 벌어 보여서입니다. */
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-3);
}
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb > span:last-child { color: var(--ink); }
/* 상품 상세 — 전에 여기 있던 .cat 이 letter-spacing 으로 벌어져 있었습니다.
   빵부스러기는 «읽는 길»이라 그냥 촘촘한 편이 낫습니다. (2026-08-16) */
.pdp-crumb { margin-bottom: 2px; }

/* ==========================================================================
   자주 묻는 것 (FAQ) — 2026-08-16
   faq.php 와 홈 하단이 **같은 CSS** 를 씁니다. 한쪽에만 있으면
   나중에 한 화면만 모양이 틀어집니다.  → inc/faq.php 의 faq_accordion()
   ========================================================================== */
.faq-group { margin-top: 44px; }
.faq-group > h2 {
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
  color: var(--ink); padding-bottom: 12px; margin-bottom: 0;
  border-bottom: 2px solid var(--brand);
}

.faq-item { border-bottom: 1px solid var(--line); }

/* summary 의 기본 삼각형은 브라우저마다 다르게 생겼습니다 — 지우고 직접 그립니다 */
.faq-item > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 20px 4px; min-height: 44px;      /* 44px — 손가락으로 누르는 최소 크기 */
  font-size: 15.5px; font-weight: 700; line-height: 1.45; color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { background: var(--surface-2); }
/* 키보드로 옮겨 다닐 때 «지금 여기»가 보여야 합니다 */
.faq-item > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

/* Q 배지 — 이 화면에서 노랑은 여기 하나뿐이라 눈이 «질문»을 먼저 잡습니다.
   ★ 늘리지 마세요. 노랑을 여기저기 쓰면 이 효과가 사라집니다. */
.faq-q {
  flex: 0 0 auto; font-size: 12px; font-weight: 800; color: var(--ink);
  background: var(--brand); border-radius: 6px; padding: 3px 7px; line-height: 1.2;
}
.faq-t { flex: 1 1 auto; }

/* + / × — 지금 열려 있는지 닫혀 있는지 */
.faq-ico { flex: 0 0 auto; position: relative; width: 14px; height: 14px; }
.faq-ico::before, .faq-ico::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  background: var(--ink-3); border-radius: 1px;
  transition: transform .18s ease, background-color .18s ease;
}
.faq-ico::before { width: 14px; height: 2px; }
.faq-ico::after  { width: 2px;  height: 14px; }
.faq-item[open] > summary { color: var(--ink); }
.faq-item[open] .faq-ico::before { background: var(--ink); }
.faq-item[open] .faq-ico::after  { transform: rotate(90deg); background: var(--ink); }

.faq-a { padding: 0 4px 22px calc(12px + 26px); }   /* Q 배지 너비만큼 들여씁니다 */
.faq-a p {
  margin: 0 0 10px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2);
  max-width: 62ch;                                   /* 글줄이 길면 눈이 줄을 놓칩니다 */
}
.faq-a p:last-child { margin-bottom: 0; }
.faq-more { margin-top: 12px !important; font-size: 13.5px; font-weight: 700; }
.faq-more a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 900px) {
  .faq-item > summary { font-size: 16.5px; padding: 22px 4px; }
}
/* 360px 에서 질문이 세 줄로 늘어지면 Q 배지가 가운데 떠 보입니다 */
@media (max-width: 420px) {
  .faq-item > summary { align-items: flex-start; gap: 10px; font-size: 15px; }
  .faq-q, .faq-ico { margin-top: 2px; }
  .faq-a { padding-left: calc(10px + 24px); }
}

.toolbar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 26px 0 20px;
}
.toolbar .count { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sort-select {
  /* ★ 16px — 그보다 작으면 iOS 가 정렬을 고를 때 화면을 확대합니다 (2026-08-20) */
  border: 0; background: transparent; font-size: 16px; font-weight: 600;
  min-height: 44px; padding-right: 4px; cursor: pointer;
  text-align: right; text-align-last: right;
}

/* 목록 쪽 넘기기 (2026-08-20) */
.pager {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  align-items: center; margin: 34px 0 8px;
}
.pager .pg {
  min-width: 44px; height: 44px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 12px;
  font-variant-numeric: tabular-nums;
}
.pager a.pg:hover { color: var(--ink); border-color: var(--ink-3); }
.pager .pg.is-now { color: var(--brand); background: #111; border-color: #111; }
.pager .pg-gap { color: var(--ink-3); padding: 0 2px; }

/* ==========================================================================
   Steps (3단계)
   ========================================================================== */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 44px; border-top: 0; } }
.step { padding: 26px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .step { border-bottom: 0; border-top: 1px solid var(--ink); padding: 22px 0 0; } }
.step .n {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--ink-3);
}
.step h3 { font-size: 19px; margin-top: 9px; }
.step p { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }

/* ==========================================================================
   Reviews
   ========================================================================== */
.review { width: 76vw; max-width: 340px; }
@media (min-width: 768px) { .review { width: 320px; } }
.review .stars { display: flex; gap: 2px; }
.review .stars svg { width: 13px; height: 13px; }
.review q {
  display: block; quotes: none; margin-top: 12px;
  font-size: 15px; line-height: 1.7; letter-spacing: -.015em;
}
.review .who { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* ==========================================================================
   Bottom tab (모바일 전용 · 최소한으로)
   ========================================================================== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabbar);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg); border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .tabbar { display: none; } }
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; height: var(--tabbar-h); position: relative;
  font-size: 10.5px; font-weight: 600; color: var(--ink-3);
  transition: color .2s ease;
}
.tab svg { width: 21px; height: 21px; }
.tab[aria-current="page"] { color: var(--ink); }
.tab .badge { top: 5px; right: 50%; margin-right: -20px; }

/* ==========================================================================
   상품 상세
   ========================================================================== */
.pdp-media { position: relative; }
@media (min-width: 900px) {
  .pdp { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 56px; align-items: start; }
  .pdp-info { position: sticky; top: calc(var(--header-h) + var(--rail-y, 0px) + 32px); }
  .pdp-media .rail { margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
}

.pdp-head { padding: 22px 0 0; }
.pdp-head .cat {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.pdp-head h1 { font-size: 24px; margin-top: 9px; }
@media (min-width: 900px) { .pdp-head h1 { font-size: 30px; } }
.pdp-head .price { margin-top: 14px; }
.pdp-head .price .now { font-size: 21px; }

.pdp-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px;
  font-size: 13px; color: var(--ink-2);
}
.pdp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pdp-meta svg { width: 14px; height: 14px; color: var(--ink-3); }

.block { padding: 30px 0; border-top: 1px solid var(--line); margin-top: 30px; }
.block:first-of-type { margin-top: 26px; }
.block > h2 {
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  margin-bottom: 14px; display: flex; align-items: baseline; gap: 7px;
}
.block > h2 .step-n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.block > h2 .req { color: var(--sale); }
.block > h2 .picked { margin-left: auto; font-weight: 600; color: var(--ink-2); font-size: 13px; letter-spacing: 0; }

/* --- 옵션 --- */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-width: 54px; min-height: 46px; padding: 0 16px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.opt:hover { border-color: var(--ink-2); }
.opt[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt[disabled] { color: var(--ink-3); border-color: var(--line-2); cursor: not-allowed; text-decoration: line-through; }

/* 품절인 «색깔 동그라미».
   글자가 없어서 취소선이 안 보이므로, 대각선을 그어 품절임을 알립니다. */
/* 흰색·아이보리처럼 밝은 색은 흐리게 만들면 아예 안 보입니다.
   그래서 색은 그대로 두고 «테두리 + 굵은 대각선»으로 품절을 알립니다. */
.opt.swatch[disabled] {
  position: relative; text-decoration: none;
  border-color: var(--ink-3);
}
.opt.swatch[disabled]::after {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(to top left,
    transparent calc(50% - 1.5px), var(--sale) calc(50% - 1.5px),
    var(--sale) calc(50% + 1.5px), transparent calc(50% + 1.5px));
  border-radius: inherit;
}

.swatch { width: 46px; min-width: 46px; padding: 0; border-radius: var(--r-full); position: relative; }
.swatch[aria-pressed="true"] { background: none; }
.swatch[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: -5px;
  border: 1.5px solid var(--ink); border-radius: var(--r-full);
}

/* --- 스테퍼 --- */
.stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.stepper button {
  width: 44px; height: 46px; display: grid; place-items: center;
  transition: background-color .18s ease;
}
.stepper button:hover { background: var(--surface-2); }
.stepper button svg { width: 15px; height: 15px; }
.stepper input {
  /* ★ 16px 미만이면 iOS 사파리가 탭할 때 페이지를 확대합니다 (2026-08-20).
       확대된 채로 남아 가로 스크롤이 생기고 붙박이 결제바가 화면 밖으로 밀립니다.
       폭이 42px 이라 15→16 은 보기에 달라지지 않습니다. */
  width: 42px; height: 46px; border: 0; text-align: center;
  font-weight: 700; font-size: 16px; background: transparent;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- 사진 업로드 --- */
.uploader {
  border: 1px dashed var(--ink-3);
  background: var(--surface-2);
  padding: 30px 18px; text-align: center;
  transition: background-color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.uploader:hover, .uploader.is-drag { background: var(--surface-3); border-color: var(--ink); }
.uploader svg { width: 24px; height: 24px; margin: 0 auto 12px; color: var(--ink-2); }
.uploader strong { display: block; font-size: 15px; font-weight: 600; }
.uploader small { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }

.previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.preview { position: relative; aspect-ratio: 1/1; background: var(--surface-2); overflow: hidden; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview .rm {
  position: absolute; top: 4px; right: 4px;
  width: 28px; height: 28px; border-radius: var(--r-full);
  background: rgba(0,0,0,.6); color: #fff;
  display: grid; place-items: center;
  transition: background-color .2s ease;
}
.preview .rm:hover { background: var(--sale); }
.preview .rm svg { width: 13px; height: 13px; }

/* 안내문 */
.note {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13px; line-height: 1.6; color: var(--ink-2);
  margin-top: 12px;
}
.note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 3px; }
.note.note-warn { color: var(--sale); }
.note b { color: var(--ink); font-weight: 600; }

/* --- 스펙 표 --- */
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { padding: 13px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.spec th { width: 32%; color: var(--ink-2); font-weight: 500; }
.spec td { color: var(--ink); }

/* --- 하단 고정 구매바 --- */
.buybar {
  position: fixed; left: 0; right: 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  z-index: var(--z-sticky);
  display: flex; gap: 8px; align-items: center;
  padding: 10px var(--gut);
  background: var(--bg); border-top: 1px solid var(--line);
}
.buybar .btn { flex: 1; padding: 0 14px; }
.buybar .btn-icon { flex: 0 0 52px; width: 52px; padding: 0; }
@media (min-width: 900px) {
  .buybar {
    position: static; padding: 0; border: 0; margin-top: 24px;
  }
}

/* --- 단추 줄 (붙박이 아님) --------------------------------------------------
   «단추 두 개를 나란히» 두고 싶은 화면(로그인·완료·조회·실패 등)이 그동안
   .buybar 를 빌려 썼습니다. 그런데 .buybar 는 폰에서 position:fixed 라, 그런
   화면의 단추가 통째로 화면 맨 아래에 겹쳐 깔렸습니다(로그인은 단추 둘이 포개짐).
   그런 자리에는 이 클래스를 씁니다 — 흐름 안에 그대로 있는 평범한 단추 줄입니다.
   (2026-08-20) */
.btn-row {
  display: flex; gap: 8px; align-items: center; margin-top: 24px;
}
.btn-row .btn { flex: 1; padding: 0 14px; }

/* ==========================================================================
   장바구니
   ========================================================================== */
.cart-item { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.cart-item .imgbox { width: 84px; flex: 0 0 84px; }
.cart-item .meta { flex: 1; min-width: 0; }
.cart-item .name { font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.cart-item .opt-txt { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; }
.cart-item .bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.cart-item .bottom strong { font-size: 15px; font-variant-numeric: tabular-nums; }

.summary { margin-top: 30px; border-top: 1px solid var(--ink); padding-top: 20px; }
.summary .row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--ink-2); padding: 7px 0;
  font-variant-numeric: tabular-nums;
}
.summary .row.total {
  border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px;
  font-size: 17px; font-weight: 700; color: var(--ink);
}

.ship-gauge { margin: 22px 0 4px; }
.ship-gauge .t { font-size: 13px; color: var(--ink-2); }
.ship-gauge .t b { color: var(--ink); }
.ship-gauge .track { height: 2px; background: var(--line); margin-top: 9px; }
.ship-gauge .track i { display: block; height: 100%; background: var(--ink); transition: width .3s ease; }

/* ==========================================================================
   빈 상태 / 스켈레톤
   ========================================================================== */
.empty { text-align: center; padding: 90px 20px; }
.empty svg { width: 30px; height: 30px; margin: 0 auto 18px; color: var(--ink-3); }
.empty h3 { font-size: 19px; }
.empty p { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; }
.empty .btn { margin-top: 24px; }

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, #EFEFEE 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field .hint { font-size: 12.5px; color: var(--ink-2); margin-top: 7px; }

.input, .textarea, .select {
  width: 100%; min-height: 52px; padding: 14px 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; font-size: 16px;
  transition: border-color .2s ease;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
.input[aria-invalid="true"] { border-color: var(--sale); }

.error-msg {
  display: flex; align-items: center; gap: 5px;
  color: var(--sale); font-size: 13px; font-weight: 500; margin-top: 8px;
}
.error-msg svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* ==========================================================================
   로그인
   ========================================================================== */
.auth { max-width: 400px; margin: 0 auto; padding: 52px var(--gut) 60px; }
.auth-head { margin-bottom: 34px; }
.auth-head .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
}
.auth-head h1 { font-size: 28px; margin-top: 12px; }
.auth-head p { color: var(--ink-2); font-size: 14.5px; margin-top: 10px; }

.social {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 52px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; margin-bottom: 9px;
  transition: opacity .2s ease;
}
.social:hover { opacity: .82; }
.social svg { width: 18px; height: 18px; }
.social-kakao { background: #FEE500; color: #191600; }
.social-google { background: var(--bg); color: #111; border: 1px solid var(--line); }

.divider { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 12px; margin: 26px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.legal { font-size: 12px; color: var(--ink-2); line-height: 1.7; margin-top: 22px; }
.legal a { text-decoration: underline; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-area {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom));
  z-index: calc(var(--z-drawer) + 10);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  width: max-content; max-width: calc(100vw - 32px); pointer-events: none;
}
.toast {
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  animation: toast-in .22s ease-out;
}
.toast.is-out { animation: toast-out .22s ease-in forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-out { to   { opacity: 0; transform: translateY(10px); } }

/* ==========================================================================
   Footer
   ========================================================================== */
/* ==========================================================================
   푸터

   ★ 2026-08-02 전면 손질. 사장님이 «글자가 너무 작다» 고 하셨고 맞는 말이었습니다.
     이 파일 맨 위에 «작고 흐린 글씨를 쓰지 않는다» 고 적어 놓고 푸터만 어기고 있었습니다.
     고친 것: 링크 14→15.5px · 사업자정보 12px 회색(대비 3.5:1)→13.5px 진회색(6.5:1)
     · 영업시간 12.5→14px · 전화번호를 «누르면 걸리는» 링크로
     · Shop 링크 10개를 2열로(푸터 세로 길이 절반) · 위쪽에 브랜드 노랑 띠

   ★ --ink-3 는 푸터에서 쓰지 않습니다. 30·40대가 휴대폰에서 읽는 자리입니다.
   ========================================================================== */
/* margin-top 은 0. 앞 섹션이 이미 아래 여백 88px 을 갖고 있어서, 40px 을 더하면
   화면에 «비어 보이는 띠»가 생깁니다(2026-08-02 사장님 화면에서 확인). */
/* ==========================================================================
   푸터 — 검정 바닥 (2026-08-07 전면 개편)

   사장님이 스튜디오숲 홈페이지를 보여주시며 «상단·하단 컬러를 먹여 중심을
   잡고 있다»고 하셨습니다. 아래쪽은 그 방식이 그대로 옳습니다.

   ★ 왜 «아래»만 어둡게 하나
     흰 바탕에 회색 글자로 끝나면 페이지가 «흐지부지» 끝납니다. 바닥이 어두우면
     화면에 **무게중심**이 생기고 사이트가 완성돼 보입니다. 사업자정보 같은
     작고 딱딱한 글도 어두운 바닥 위에서는 오히려 정돈돼 보입니다.
   ★ 위(헤더)까지 어둡거나 진하면 **가운데 상품 사진이 눌립니다.**
     이 가게의 주인공은 사진입니다. 그래서 위는 가볍게, 아래는 묵직하게 둡니다.
   ★ 노랑은 여기서 «강조»로만 씁니다 — 전화번호·마무리 선. 넓게 칠하지 않습니다.
     노랑 위 흰 글자는 안 보이지만, **검정 위 노랑 글자는 잘 보입니다**(약 12:1).
   ========================================================================== */
.footer {
  border-top: 3px solid var(--brand);
  padding: 52px 0 44px; margin-top: 0;
  background: #111; color: #C9C9C6;
}
/* ★ 글자색을 바꾸는 규칙은 아래쪽 «어두운 바닥용 색» 묶음에 모아 두었습니다.
     여기(위)에 두면 아래의 원래 규칙이 나중에 나와서 이깁니다 — 실제로 겪었습니다. */
.footer .cols { display: grid; gap: 34px; }
@media (min-width: 768px) { .footer .cols { grid-template-columns: 1.3fr 1.2fr 1fr; gap: 44px; } }
.footer h4 { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.footer .flinks { display: flex; flex-direction: column; gap: 2px; }
.footer .flinks a { font-size: 15.5px; color: var(--ink-2); padding: 8px 0; transition: color .2s ease; }
.footer .flinks a:hover { color: var(--ink); }

/* Shop 은 대분류가 10개라 한 줄로 세우면 푸터가 통째로 길어집니다. 넓은 화면에서만 2열. */
@media (min-width: 768px) {
  .footer .flinks.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
}

.footer .brand { font-size: 22px; font-weight: 800; letter-spacing: .01em; }
/* 2026-08-22 — 76×76 는 댕데이 원형 로고 크기의 잔재. 가로형(387×76) 로고에 맞춥니다. */
.footer .brand img { display: block; width: 240px; height: auto; object-fit: contain; }
.footer .fdesc  { font-size: 15px; color: var(--ink-2); line-height: 1.65; margin-top: 12px; max-width: 30ch; }
.footer .tel { display: inline-block; font-size: 25px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; color: var(--ink); }
.footer .tel:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer .fhours { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.footer .biz { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line-2); }
/* 「사업자정보확인」 — 공정위 조회 (2026-08-07 신설).
   손님이 «진짜 사업자인가»를 확인하는 자리라, 글자에 묻히지 않게 테두리를 둡니다. */
.footer .biz-chk {
  display: inline-block; margin: 0 2px; padding: 2px 8px;
  border: 1px solid var(--line); border-radius: var(--r-full);
  font-size: 12px; color: var(--ink-2); white-space: nowrap;
}
.footer .biz-chk:hover { border-color: var(--ink-2); color: var(--ink); }

/* --- 어두운 바닥용 색 (2026-08-07) ----------------------------------------
   ★ 반드시 위의 원래 규칙들보다 «아래»에 있어야 합니다.
     CSS 는 같은 무게면 나중에 쓴 것이 이깁니다. 처음에 이 묶음을 위에 뒀다가
     전화번호가 «검정 바닥에 검정 글자»가 되었습니다.
   ★ 대비 확인: #111 바닥 위 —
     흰색 18.9:1 · #C9C9C6 11.6:1 · #A8A8A5 7.5:1 · #8A8A87 5.0:1 · 노랑 12.0:1
     전부 본문 기준(4.5:1)을 넘습니다. */
.footer .brand          { color: #fff; }
.footer h4              { color: #8A8A87; }
.footer .flinks a       { color: #C9C9C6; }
.footer .flinks a:hover { color: #fff; }
.footer .fdesc          { color: #A8A8A5; }
.footer .fhours         { color: #A8A8A5; }
/* 전화번호 — 손님이 가장 급할 때 찾는 것이라 노랑으로 띄웁니다 */
.footer .tel            { color: var(--brand); }
.footer .tel:hover      { color: var(--brand); }
.footer .biz            { color: #8A8A87; border-top-color: rgba(255,255,255,.14); }
.footer .biz-chk        { border-color: rgba(255,255,255,.28); color: #A8A8A5; }
.footer .biz-chk:hover  { border-color: var(--brand); color: var(--brand); }

/* ==========================================================================
   약관 · 개인정보처리방침

   법률 문서는 «읽히는» 것이 목적입니다. 한 줄을 짧게(70자 안쪽) 잡고
   글자를 키웠습니다. 30·40대 고객이 휴대폰에서 읽습니다.
   ========================================================================== */
.legal-wrap { max-width: 820px; }

.legal-doc { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.legal-doc h3 {
  margin: 38px 0 12px; font-size: 17px; font-weight: 700;
  letter-spacing: -.02em; color: var(--ink);
  padding-top: 18px; border-top: 1px solid var(--line-2);
}
.legal-doc h3:first-child { margin-top: 26px; border-top: 0; padding-top: 0; }
.legal-doc h3 .mark {
  margin-left: 7px; padding: 2px 7px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 800; letter-spacing: 0;
  background: var(--brand); color: var(--on-brand); vertical-align: middle;
}
.legal-doc p { margin-bottom: 12px; }
.legal-doc b { color: var(--ink); font-weight: 700; }
.legal-doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.legal-doc ul { margin: 0 0 14px; padding-left: 4px; list-style: none; }
.legal-doc ul li { position: relative; padding-left: 15px; margin-bottom: 6px; }
.legal-doc ul li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 4px; height: 4px; border-radius: var(--r-full); background: var(--ink-3);
}

/* 표는 좁은 화면에서 옆으로 밀어 봅니다 — 억지로 접으면 대응 관계가 깨집니다 */
.legal-tbl {
  display: block; overflow-x: auto; white-space: nowrap;
  width: 100%; margin: 6px 0 16px;
  border-collapse: collapse; font-size: 13.5px;
}
.legal-tbl th, .legal-tbl td {
  padding: 10px 13px; text-align: left; vertical-align: top;
  border: 1px solid var(--line);
}
.legal-tbl th { background: var(--surface-2); font-weight: 700; color: var(--ink); font-size: 12.5px; }
.legal-tbl td .small { font-size: 12px; color: var(--ink-3); white-space: normal; }
/* 사장님이 채워야 하는 칸 — 눈에 걸리게 둡니다 */
.legal-tbl td.todo { color: var(--sale); font-weight: 700; }

.legal-biz {
  margin: 20px 0 8px; padding: 18px 20px;
  background: var(--surface-2); border-left: 3px solid var(--brand);
  font-size: 13.5px; line-height: 1.9;
}
.legal-biz h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.legal-date { margin-top: 30px; font-size: 13px; color: var(--ink-3); }

/* --- 안내 페이지 (사진 잘 찍는 법) --------------------------------------- */
.guide-list { list-style: none; }
.guide-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 0; border-top: 1px solid var(--line-2);
}
.guide-list li:first-child { border-top: 0; padding-top: 4px; }
.guide-list .n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: var(--r-full);
  background: var(--brand); color: var(--on-brand);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.guide-list h3 { font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.guide-list p { margin-top: 6px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }

.guide-h {
  margin: 44px 0 16px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 19px; font-weight: 700; letter-spacing: -.03em;
}
.guide-dont { list-style: none; display: grid; gap: 10px; }
.guide-dont li {
  padding: 14px 16px; background: var(--surface-2);
  border-left: 3px solid var(--sale);
}
.guide-dont b { display: block; font-size: 14.5px; font-weight: 700; }
.guide-dont span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }

/* ==========================================================================
   에디터로 쓴 본문 (.txt)

   관리자가 굵게·색깔·형광펜·목록·사진·링크를 넣을 수 있으므로 그 태그들의
   모양을 정해 둡니다. 정하지 않으면 브라우저 기본값이 나와 어색합니다.
   팝업·날개배너·블로그 글이 이 규칙을 함께 씁니다.
   ========================================================================== */
.txt > *:first-child { margin-top: 0; }
.txt > *:last-child  { margin-bottom: 0; }
.txt p { margin: 0 0 10px; }
.txt h3 { font-size: 20px; font-weight: 700; letter-spacing: -.03em; margin: 14px 0 8px; }
.txt h4 { font-size: 17px; font-weight: 700; margin: 12px 0 6px; }
.txt ul, .txt ol { margin: 0 0 10px; padding-left: 20px; }
.txt ul { list-style: disc; }
.txt ol { list-style: decimal; }
.txt li { margin-bottom: 3px; }
.txt a { color: #1B4DB1; text-decoration: underline; }
.txt img { max-width: 100%; height: auto; display: block; margin: 10px 0; }
.txt hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.txt blockquote {
  margin: 12px 0; padding: 10px 14px;
  border-left: 3px solid var(--brand); background: var(--surface-2);
}
.txt strong, .txt b { font-weight: 700; }

/* ==========================================================================
   블로그

   읽는 화면입니다. 상품 목록처럼 촘촘하게 깔지 않고, 한 줄을 짧게(70자 안쪽)
   잡고 글자를 키웠습니다. 30·40대 고객이 휴대폰에서 읽습니다.
   ========================================================================== */
.posts { display: grid; gap: 0; margin-top: 26px; }
.post-card { border-top: 1px solid var(--line-2); }
.post-card:first-child { border-top: 0; }
.post-card > a {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 0;
  transition: opacity .18s ease;
}
.post-card > a:hover { opacity: .72; }
.post-card .thumb {
  flex: 0 0 116px; aspect-ratio: 4 / 3;
  background: var(--surface-2); overflow: hidden;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .body { flex: 1; min-width: 0; }
.post-card h3 {
  font-size: 18px; font-weight: 700; letter-spacing: -.03em; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card p {
  margin-top: 7px; font-size: 14px; line-height: 1.7; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card time { display: block; margin-top: 9px; font-size: 12.5px; color: var(--ink-3); }
@media (min-width: 700px) {
  .post-card .thumb { flex: 0 0 190px; }
  .post-card h3 { font-size: 21px; }
}

/* --- 쪽 넘기기 ----------------------------------------------------------- */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.pager a { color: var(--ink); }
.pager a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pager .now { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* --- 글 화면 ------------------------------------------------------------- */
.post-head { padding-top: 30px; }
.post-head h1 {
  margin-top: 12px;
  font-size: 27px; font-weight: 800; letter-spacing: -.04em; line-height: 1.35;
  word-break: keep-all;
}
@media (min-width: 700px) { .post-head h1 { font-size: 36px; } }
.post-head .meta {
  margin-top: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}

.post-cover { margin: 24px 0; background: var(--surface-2); }
.post-cover img { width: 100%; height: auto; display: block; }

/* 본문은 팝업과 같은 .txt 규칙을 함께 씁니다(굵게·목록·사진 등) */
.post-body {
  margin-top: 26px;
  font-size: 16px; line-height: 1.9; color: var(--ink);
}
.post-body p { margin: 0 0 16px; }
.post-body h3 { margin: 34px 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.post-body h4 { margin: 26px 0 10px; font-size: 18px; font-weight: 700; }
.post-body ul, .post-body ol { margin: 0 0 16px; padding-left: 22px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 6px; }
.post-body a { color: #1B4DB1; text-decoration: underline; text-underline-offset: 3px; }
.post-body img { max-width: 100%; height: auto; display: block; margin: 20px auto; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.post-body blockquote {
  margin: 20px 0; padding: 14px 18px;
  border-left: 3px solid var(--brand); background: var(--surface-2);
  font-size: 15px;
}

.post-cta {
  margin-top: 44px; padding: 30px 24px;
  background: var(--brand-50); border: 1px solid var(--brand);
  text-align: center;
}
.post-cta p { font-size: 16px; font-weight: 600; margin-bottom: 16px; }

.post-nav { display: grid; gap: 10px; margin-top: 30px; }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a {
  display: block; padding: 16px 18px;
  border: 1px solid var(--line); background: var(--bg);
  transition: background-color .18s ease;
}
.post-nav a:hover { background: var(--surface-2); }
.post-nav a.r { text-align: right; }
.post-nav span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--ink-3); }
.post-nav b {
  display: block; margin-top: 6px; font-size: 14.5px; font-weight: 600; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ==========================================================================
   Motion 접근성
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   할인쿠폰 (2026-08-03) — 주문서 오른쪽 결제 요약 위
   ========================================================================== */
.cpn { margin-top: 34px; }
.cpn-lb { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.cpn-in { display: flex; gap: 8px; }
.cpn-in input {
  flex: 1; min-width: 0; height: 46px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  background: var(--bg); color: var(--ink);
}
.cpn-in input:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.cpn-in input:disabled { background: var(--surface-2); color: var(--ink-2); }
.cpn-in .btn { height: 46px; flex: 0 0 auto; padding: 0 18px; }
.cpn-msg { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.cpn-msg.is-ok  { color: #0F7B36; }
.cpn-msg.is-err { color: var(--sale); }
/* 할인 줄은 눈에 띄게 — 손님이 «깎였구나» 를 바로 알아야 합니다 */
.summary .row.cpn-row span:last-child { color: var(--sale); font-weight: 700; }

/* --- 푸터 SNS (2026-08-03) ------------------------------------------------ */
.fsns { display: flex; gap: 10px; margin-top: 18px; }
.fsns a {
  width: 40px; height: 40px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid currentColor; opacity: .75;
  transition: opacity .15s ease, transform .15s ease;
}
.fsns a:hover, .fsns a:focus-visible { opacity: 1; transform: translateY(-2px); }

/* ==========================================================================
   배송조회 끼워 넣기 (2026-08-12)

   CJ 조회 화면에는 viewport 태그가 없고 표가 **최소 405px** 는 있어야
   안 잘립니다. 그래서 **420px 로 그린 뒤 통째로 줄입니다**(scale).
   폰에서 오른쪽이 잘려 나가지 않고, PC 에서 보던 모양 그대로 작게 들어갑니다.
   ========================================================================== */
.trk-box { border: 1px solid var(--line); margin-top: 14px; background: #fff; }

.trk-head {
  font-size: 13px; font-weight: 700; padding: 12px 14px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}

/* 줄인 만큼 아래에 빈 공간이 생기지 않게, 잰 높이를 JS 가 여기에 적어 줍니다 */
.trk-view { position: relative; overflow: hidden; height: 1900px; }

/* 420px 로 그리고 왼쪽 위를 기준으로 줄입니다 */
.trk-inner {
  position: absolute; top: 0; left: 0;
  width: 740px; height: 1900px;
  transform-origin: 0 0;
}
.trk-inner iframe { width: 100%; height: 100%; border: 0; display: block; }

.trk-foot {
  font-size: 12px; color: var(--ink-3); padding: 12px 14px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}
.trk-foot .trk-open { min-height: 38px; padding: 0 14px; font-size: 13px; }

/* 막혔을 때 — 링크만 남습니다. 상자가 텅 비어 보이지 않게 가운데로 */
.trk-box-link { padding: 16px 14px; text-align: center; }
.trk-box-link .trk-open { min-height: 44px; padding: 0 18px; }

/* 넓은 화면에서는 줄일 필요가 없습니다 — 그래도 너무 넓어지지 않게 묶어 둡니다 */
@media (min-width: 760px) {
  .trk-box { max-width: 860px; }
}


/* ==========================================================================
   상세 안내 배지 (2026-08-12) — «오늘출발 / 상품 출고 마감»
   관리자 → 화면 → 상세 안내 에서 사장님이 여러 개 만드십니다.
   ★ 사는 단추 «바로 위»에 놓이는 자리라, 눈에 띄되 단추를 이기면 안 됩니다.
   ========================================================================== */
.dn-box { margin: 18px 0 4px; display: grid; gap: 12px; }

/* 알약 + 두 줄. 알약은 두 줄 높이를 함께 차지합니다 */
.dn-item {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px;
  align-items: center;
}
.dn-badge {
  grid-row: span 2; align-self: center;
  background: var(--ink); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: -.02em;
  padding: 7px 13px; border-radius: var(--r-full); white-space: nowrap;
}
.dn-title { font-size: 14px; font-weight: 700; line-height: 1.45; }
.dn-body  { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
/* 계산된 날짜만 눈에 띄게 — 손님이 찾는 것은 «언제 받나» 하나입니다 */
.dn-body b, .dn-date { color: var(--ink); font-weight: 700; background: var(--brand-50); padding: 1px 5px; }

/* 배지가 없는 줄은 두 칸을 다 씁니다 */
.dn-item.no-badge { grid-template-columns: 1fr; }

@media (max-width: 400px) {
  .dn-badge { font-size: 12px; padding: 6px 11px; }
  .dn-title { font-size: 13.5px; }
  .dn-body  { font-size: 13px; }
}


/* ===== review-bubble.css (2026-08-12 병합) ===== */
/* ==========================================================================
   후기 말풍선 (rvb-)  —  inc/review_ui.php 짝

   2026-08-12 신설. style.css 에 합쳐 넣을 조각입니다.

   ★ 클래스는 전부 `rvb-` 로 시작합니다.
     기존 `.review`(메인 가로 카드) · `.rv`(상품상세 후기)와 이름이 겹치면
     한쪽을 고칠 때 다른 쪽이 조용히 무너집니다.
     예외는 `.stars` 하나 — review_stars() 가 만드는 이름이라 그대로 받고,
     `.rvb` 안쪽으로만 한정해서 씁니다(밖으로 새지 않습니다).

   ★ 모바일 우선. 폰(360px)에서 가로 스크롤이 생기면 안 됩니다.
     그래서 말풍선 쪽에 `min-width: 0` 을 줍니다 —
     flex 아이템의 기본값은 `min-width: auto` 라서 긴 URL 한 줄이
     화면을 통째로 밀어냅니다. (2026-08-08 «flex 안에서는 눌린다»의 반대 함정)
   ========================================================================== */

.rvb { --rvb-ava: 52px; }

.rvb-list { display: flex; flex-direction: column; gap: 22px; }

/* --- 한 사람 : 왼쪽 동그란 사진 + 오른쪽 말풍선 ------------------------- */
.rvb-item { display: flex; align-items: flex-start; gap: 10px; }

.rvb-ava {
  flex: 0 0 auto;                  /* ★ 안 주면 자리가 좁을 때 원이 찌그러집니다 */
  width: var(--rvb-ava); height: var(--rvb-ava);
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--brand-50);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);             /* 발바닥 아이콘 색 */
}
.rvb-ava img { width: 100%; height: 100%; object-fit: cover; }
.rvb-ava svg { width: 58%; height: 58%; }

.rvb-col { flex: 1 1 auto; min-width: 0; }

/* --- 이름 · 별점 · 날짜 --------------------------------------------------- */
.rvb-who {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-bottom: 5px;
  line-height: 1.2;
}
.rvb-who b { font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.rvb-date { font-size: 12px; color: var(--ink-3); margin-left: auto; }

/* review_stars() 가 그리는 별. 상품상세(product.php)에만 있던 규칙이라
   메인·이벤트에서 쓰면 별이 «검은 이탤릭»으로 나옵니다. 여기서 함께 챙깁니다. */
.rvb .stars { display: inline-flex; gap: 1px; font-size: 13px; line-height: 1; }
.rvb .stars i { font-style: normal; color: var(--line); }
.rvb .stars i.on { color: #FFC107; }

/* --- 말풍선 --------------------------------------------------------------- */
.rvb-bubble {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;   /* 왼쪽 위만 각지게 — 꼬리가 붙는 쪽 */
  padding: 12px 14px;
}

/* 꼬리 — 이미지 없이 CSS 로.
   ★ 테두리가 1px 있으므로 삼각형을 두 장 겹칩니다(선용 + 면용).
     한 장만 쓰면 꼬리에만 선이 없어서 «떨어져 나온 조각»처럼 보입니다. */
.rvb-bubble::before,
.rvb-bubble::after {
  content: ""; position: absolute; top: 10px;
  border-style: solid; border-width: 7px 9px 7px 0;
}
.rvb-bubble::before { left: -9px; border-color: transparent var(--line) transparent transparent; }
.rvb-bubble::after  { left: -8px; border-color: transparent var(--surface-2) transparent transparent; }

.rvb-text {
  font-size: 15px; line-height: 1.65; letter-spacing: -.015em;
  color: var(--ink);
  overflow-wrap: anywhere;         /* 띄어쓰기 없는 긴 글이 밖으로 나가지 않게 */
}
/* ★ `+` 가 아니라 `~` 입니다 — 긴 글일 때 사진과 글 사이에 «더보기» 체크상자가
   끼어 있어서 `+` 는 안 걸립니다. 눈에 안 보이는 요소라 원인 찾기가 아주 어렵습니다. */
.rvb-photo ~ .rvb-text { margin-top: 10px; }

/* --- 사진 : 후기의 주인공 -------------------------------------------------
   참고한 쇼핑몰은 60px 짜리였습니다. 굿즈는 «찍힌 결과»를 보러 오는 물건이라
   그 크기로는 아무것도 못 봅니다. 말풍선 폭을 꽉 채웁니다. */
.rvb-photo {
  margin: 0 0 2px;
  border-radius: 8px; overflow: hidden;
  background: var(--surface-3);
  aspect-ratio: 4 / 3;
}
.rvb-photo img { width: 100%; height: 100%; object-fit: cover; }

/* 사진 후기는 «더 크게, 위에». 위로 올리는 것은 SQL 이 하고, 크기는 여기서. */
.rvb-has-photo { --rvb-ava: 60px; }
.rvb-has-photo .rvb-photo { aspect-ratio: 1 / 1; }

/* --- 더보기 : JS 없이 CSS 로만 ------------------------------------------- */
.rvb-clip {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.rvb-more {
  display: inline-block; margin-top: 6px; padding: 4px 2px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.rvb-more-off { display: none; }
/* ★ 클래스를 하나 더 붙인 이유 (2026-08-09 «CSS 를 고칠 때 데인 것 ①·②»)
   `.rvb-cb:checked ~ .rvb-clip` 만 쓰면 아래 `.rvb-compact .rvb-clip` 과
   무게가 같은데 그쪽이 더 뒤에 있어서 **이깁니다** —
   좁은 자리에서만 «더보기»를 눌러도 안 펼쳐지는, 찾기 어려운 고장이 됩니다. */
.rvb .rvb-cb:checked ~ .rvb-clip { -webkit-line-clamp: none; }
.rvb-cb:checked ~ .rvb-more .rvb-more-on  { display: none; }
.rvb-cb:checked ~ .rvb-more .rvb-more-off { display: inline; }
/* 체크상자는 sr-only 라 눈에 안 보입니다 — 키보드 초점은 «더보기» 글씨에 보여줍니다 */
.rvb-cb:focus-visible ~ .rvb-more { outline: 2px solid var(--ink); outline-offset: 2px; }

/* --- 어느 상품 후기인가 ---------------------------------------------------
   ★ 옵션 문자열은 여기에 절대 넣지 않습니다. 상품 이름 하나면 충분합니다. */
.rvb-of {
  margin: 6px 0 0 2px;
  font-size: 12.5px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* ★ 2026-08-13 — 누르면 그 상품으로 갑니다 (사장님 지적).
   밑줄을 «늘» 둡니다. 손가락으로 쓰는 화면에는 마우스 올림이 없어서,
   올렸을 때만 밑줄이 생기면 폰에서는 누를 수 있다는 것을 영영 모릅니다. */
.rvb-of a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.rvb-of a:hover,
.rvb-of a:focus-visible { color: var(--ink); border-bottom-color: currentColor; }

/* --- 사장님 답글 : 색이 다른 작은 말풍선 ---------------------------------- */
.rvb-reply {
  margin: 8px 0 0 14px;            /* 살짝 들여써서 «답»으로 읽히게 */
  padding: 10px 12px;
  background: var(--brand-50);
  border: 1px solid var(--brand-2);
  border-radius: 12px 12px 12px 4px;
}
.rvb-reply p {
  margin: 4px 0 0;
  font-size: 13.5px; line-height: 1.6; color: var(--ink-2);
  overflow-wrap: anywhere;
}
.rvb-shop {
  display: inline-block;
  padding: 1px 8px; border-radius: var(--r-full);
  background: var(--brand);
  font-size: 11.5px; font-weight: 700; letter-spacing: -.02em;
  color: #6B5B00;                  /* ★ 노랑 위 작은 글씨. 흰 글씨는 1.5:1 이라 못 읽습니다 */
}

/* --- 아래 «더 보기» 단추 --------------------------------------------------- */
.rvb-foot { margin-top: 22px; text-align: center; }

/* --- 좁은 자리용 ----------------------------------------------------------- */
.rvb-compact { --rvb-ava: 40px; }
/* ★ 사진 후기의 `--rvb-ava: 60px` 는 **li 자신**에 붙습니다. 물려받는 값(40px)보다
   자기 값이 언제나 이기므로, 좁은 자리에서는 여기서 다시 눌러 줘야 합니다. */
.rvb-compact .rvb-has-photo { --rvb-ava: 46px; }
.rvb-compact .rvb-list   { gap: 16px; }
.rvb-compact .rvb-bubble { padding: 10px 12px; }
.rvb-compact .rvb-text   { font-size: 14px; }
.rvb-compact .rvb-clip   { -webkit-line-clamp: 3; }
.rvb-compact .rvb-photo  { aspect-ratio: 4 / 3; }

/* ==========================================================================
   넓은 화면 — 사진과 글씨를 키웁니다 (폰이 기본, 여기서 «키우기»만)
   ========================================================================== */
@media (min-width: 768px) {
  .rvb { --rvb-ava: 60px; }
  .rvb-has-photo { --rvb-ava: 72px; }
  /* 좁은 자리용은 넓은 화면에서도 «좁은 자리»에 놓입니다. 함께 다시 눌러 둡니다 */
  .rvb-compact { --rvb-ava: 44px; }
  .rvb-compact .rvb-has-photo { --rvb-ava: 52px; }

  .rvb-list { gap: 28px; }
  .rvb-item { gap: 14px; }

  .rvb-who b  { font-size: 15px; }
  .rvb .stars { font-size: 14px; }

  .rvb-bubble { padding: 14px 18px; }
  .rvb-text   { font-size: 15.5px; }

  /* 말풍선이 화면 끝까지 늘어나면 한 줄이 너무 길어 눈이 되돌아올 자리를 잃습니다.
     사진 후기는 사진을 보여야 하므로 더 넓게 둡니다. */
  .rvb-col                { max-width: 640px; }
  .rvb-has-photo .rvb-col { max-width: 720px; }
  .rvb-has-photo .rvb-photo { aspect-ratio: 4 / 3; }

  /* ★ 2026-08-13 — 가운데 정렬 (사장님 지적).
     메인처럼 화면을 꽉 채우는 자리에서는 말풍선 폭(640px)만 묶여 있어서
     후기가 왼쪽에 몰리고 오른쪽이 텅 비어 보였습니다.
     → 제목(.sec-head)까지 **덩어리째** 가운데로 옮깁니다.
       제목만 왼쪽에 남으면 목록과 어긋나 더 이상해집니다.
     ★ 폭 제한을 말풍선이 아니라 **덩어리**가 맡게 바꿔서, 말풍선들이
       같은 너비로 가지런히 섭니다(사진 후기만 혼자 튀어나오지 않습니다). */
  .rvb-center { max-width: 812px; margin-inline: auto; }
  .rvb-center .rvb-col,
  .rvb-center .rvb-has-photo .rvb-col { max-width: none; }

  .rvb-clip { -webkit-line-clamp: 5; }
  .rvb-reply { margin-left: 20px; padding: 12px 16px; }
  .rvb-reply p { font-size: 14px; }
}


/* ===== promo.css (2026-08-12 병합) ===== */
/* ==========================================================================
   판매를 돕는 작은 부품 세 가지  (2026-08-12 신설)
   → 마크업은 inc/promo_ui.php 에 있습니다.

   ★ 이 파일에서 «새로 만드는» 클래스는 전부 pm- 로 시작합니다.
     .ship-gauge · .rail · .rail-card · .sec-head · .card 는 style.css 에 이미
     있는 것을 그대로 빌려 쓰는 것이라 여기서 다시 정의하지 않습니다 —
     여기서 손대면 장바구니·메인이 같이 바뀝니다.

   ★ 색은 style.css 맨 위 :root 에 있는 변수만 씁니다.
     (--ink / --ink-2 / --ink-3 / --line / --surface-2 / --brand / --r-sm / --gut …)
     ★ 예외는 카카오 브랜드색 두 개뿐입니다 — 남의 상표라 우리 변수에 넣지 않습니다.

   ★★ 셋 다 «상세페이지·주문완료 아래쪽»에 붙는 부품입니다.
      화면 아래 「구매하기」 바(.buybar)는 폰에서 position:fixed 로 떠 있습니다.
      여기서 position/z-index 를 만들지 않고, 마지막 요소에 아래 여백만 넉넉히
      둡니다. 그래야 구매 단추를 가리지도, 밀어내지도 않습니다.
   ========================================================================== */


/* --------------------------------------------------------------------------
   ① 무료배송 진행바
   막대 모양 자체는 style.css 의 .ship-gauge 가 그립니다(장바구니와 같은 얼굴).
   여기서는 «상세페이지에 놓을 때의 자리»와 설명 한 줄만 더합니다.
   -------------------------------------------------------------------------- */
.pm-freeship { margin: 18px 0 0; }

/* «장바구니에 담긴 12,000원을 함께 계산했습니다» — 왜 숫자가 이런지 밝히는 줄.
   12px 미만으로 줄이지 않습니다(30·40대 여성이 주 고객입니다). */
.pm-freeship .note {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
}


/* --------------------------------------------------------------------------
   ② 같은 카테고리 인기 상품 (가로 스크롤)
   -------------------------------------------------------------------------- */
/* .section(56px) 보다 조금 좁게 둡니다 — 상세페이지 맨 아래라 그 밑에
   「최근 본 상품」과 구매바가 더 붙습니다. 여백이 겹쳐 화면이 텅 비어 보입니다. */
.pm-related { padding: 40px 0 8px; }
@media (min-width: 768px) { .pm-related { padding: 64px 0 16px; } }

/* 화살표를 얹을 기준. .rail 은 자기 폭을 --gut 만큼 되밀어 쓰므로
   여기서 overflow 를 만들면 안 됩니다(카드가 잘립니다). */
.pm-rel-box { position: relative; }

/* ★ 폰에서는 손가락으로 밀면 되므로 화살표를 아예 그리지 않습니다.
     좁은 화면에 단추를 얹으면 카드 위를 덮어 «누를 곳»을 가립니다.
     마우스가 있는 넓은 화면에서만 나옵니다 — .hs-arrow(배너)와 같은 규칙입니다. */
.pm-rel-arrow { display: none; }

@media (pointer: fine) and (min-width: 900px) {
  .pm-rel-arrow {
    display: grid;
    place-items: center;
    position: absolute;
    top: 34%;                       /* 카드 사진(4:5)의 한가운데쯤 — 글자 위가 아닙니다 */
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 999px;           /* --r-full 과 같은 값. 이 값만 쓰는 자리라 그대로 적습니다 */
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    border: 1px solid var(--line);
    transition: background-color .18s ease, opacity .18s ease;
  }
  .pm-rel-arrow:hover { background: #fff; }
  .pm-rel-arrow svg { width: 17px; height: 17px; }
  .pm-rel-arrow.prev { left: calc(var(--gut) * -1 + 4px); }
  .pm-rel-arrow.next { right: calc(var(--gut) * -1 + 4px); }
}


/* --------------------------------------------------------------------------
   ③ 카카오톡 채널 안내 (주문 완료 화면)
   -------------------------------------------------------------------------- */
/* ★★ 왜 상자를 노랑으로 칠하지 않았나
     카카오 노랑(#FEE500)과 우리 브랜드 노랑(#FFD400)은 눈으로 구별이 안 될 만큼
     가깝습니다. 주문 완료 화면에는 이미 노란 동그라미(.done-hero .ic)가 있어서,
     노란 상자를 하나 더 놓으면 «같은 색인데 미묘하게 다른» 두 덩어리가 되어
     화면이 인쇄 사고처럼 보입니다.
     → 상자는 무채색으로 두고, 카카오 노랑은 **버튼 하나에만** 씁니다.
       상표는 상표대로 지키고, 우리 화면은 우리 색을 지킵니다. */
.pm-kakao {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.pm-kakao-txt b {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.pm-kakao-txt p {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
}

.pm-kakao-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;               /* .btn 과 같은 높이 — 옆에 서면 키가 맞아야 합니다 */
  padding: 0 22px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  background: #FEE500;            /* 카카오 브랜드색 — 남의 상표라 바꾸지 않습니다 */
  color: #191600;
  transition: filter .2s ease;
}
.pm-kakao-btn:hover { filter: brightness(.96); }
.pm-kakao-btn svg { width: 20px; height: 20px; }

/* 넓어지면 «글 왼쪽 · 단추 오른쪽» 한 줄로. 폰에서는 위 세로 배치 그대로입니다
   — 360px 에서 글과 단추를 한 줄에 넣으면 단추 글자가 두 줄로 접힙니다. */
@media (min-width: 560px) {
  .pm-kakao {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
  }
  .pm-kakao-btn { flex: 0 0 auto; }
}

/* ==========================================================================
   카카오톡 채널 — 구석에 뜨는 작은 카드 (kkf-)  2026-08-13
   짝: inc/promo_ui.php 의 promo_kakao_float_html()

   ★ 자리를 «왼쪽 아래»로 잡은 근거는 promo_ui.php 주석에 적어 두었습니다.
     한 줄로 줄이면 — 오른쪽은 퀵메뉴·날개배너가, 아래 가운데는 구매바가
     이미 쓰고 있어서 그 둘을 가리지 않는 유일하게 빈 자리입니다.
   ========================================================================== */
.kkf {
  position: fixed; z-index: var(--z-sticky);
  left: 14px;
  /* 탭바·구매바 «위»로. --buybar-h 는 inc/quick.php 의 스크립트가 재어 넣습니다.
     («맨 위로» 단추가 «바로 구매»를 덮던 2026-08-05 사고를 푼 그 값입니다) */
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--buybar-h, 0px) + 14px);
  /* ★ 오른쪽 퀵메뉴 단추(.qfab, 폭 46 + 오른쪽 여백 14)를 덮지 않게 폭을 줄입니다
       (2026-08-20). 전에는 100vw-28 이라 360px 폰에서 카드가 「카톡문의·맨위로」
       단추 위를 34px 덮어, 그 단추가 눌리지 않았습니다(z-index 가 같아 나중에 그린
       카드가 이깁니다). 퀵메뉴 자리(60px)와 10px 틈을 남깁니다. */
  width: min(320px, calc(100vw - 14px - 46px - 14px - 10px));
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  padding: 16px 16px 14px;
}
.kkf[hidden] { display: none; }

/* 나타날 때 살짝 올라옵니다. 갑자기 «툭» 튀어나오면 놀라서 바로 닫습니다. */
@keyframes kkf-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.kkf.is-on { animation: kkf-in .28s ease both; }
/* ★ «움직임 줄이기»를 켠 분께는 움직이지 않습니다 */
@media (prefers-reduced-motion: reduce) { .kkf.is-on { animation: none; } }

.kkf-x {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--ink-3);
}
/* ★ 보기엔 30px 이지만 손가락이 닿는 판은 44px 로 넓힙니다 (2026-08-20).
     .catbar-more 와 같은 수법입니다 — 화면은 그대로 두고 탭만 쉽게. */
.kkf-x::before { content: ""; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%); }
.kkf-x svg { width: 17px; height: 17px; }
.kkf-x:hover { color: var(--ink); background: var(--surface-2); }

.kkf-ttl { display: block; font-size: 14.5px; font-weight: 800; letter-spacing: -.02em;
           padding-right: 26px; line-height: 1.4; }
.kkf-txt { margin: 6px 0 12px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

/* ★ 카카오 노랑(#FEE500)과 브랜드 노랑(#FFD400)은 거의 같은 색입니다.
     상자는 흰 바탕으로 두고, 카카오 노랑은 **단추 하나에만** 씁니다.
     두 노랑을 넓은 면으로 나란히 두면 «색이 잘못 나온 화면»처럼 보입니다. */
.kkf-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; min-height: 44px;              /* 손가락으로 눌러야 합니다 */
  border-radius: 10px; font-size: 14px; font-weight: 800;
  background: #FEE500; border: 1px solid #F2D900; color: #191600;
}
.kkf-btn svg { width: 18px; height: 18px; }

.kkf-done {
  display: block; width: 100%; margin-top: 8px; padding: 6px 0;
  background: transparent; border: 0;
  font-size: 12px; color: var(--ink-3); text-decoration: underline;
}
.kkf-done:hover { color: var(--ink-2); }

/* 넓은 화면에서는 탭바가 없으므로 바닥에서 조금만 띄웁니다 */
@media (min-width: 900px) {
  .kkf { left: 20px; bottom: calc(var(--buybar-h, 0px) + 20px); }
}

/* ==========================================================================
   사은품 안내 (pgift-)  2026-08-13
   짝: inc/promo_ui.php 의 product_gift_html()

   ★ 이 화면에서 **빨강은 여기 하나뿐**입니다.
     배지(오늘출발·시안확인)는 검정, 구매단추는 노랑입니다.
     빨강을 다른 곳에 또 쓰면 «눈이 반드시 걸리는» 효과가 사라집니다. 늘리지 마세요.
   ★ 바탕을 새빨갛게 칠하지 않습니다. 넓은 빨간 면은 «경고»로 읽혀서
     기쁜 소식이 불안한 소식이 됩니다. 옅은 바탕 + 왼쪽 굵은 빨간 선으로 둡니다.
   ========================================================================== */
.pgift {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0 0;
  padding: 13px 15px;
  background: #FFF5F5;
  border: 1px solid #FFD9D9;
  border-left: 4px solid #E03131;      /* ← 빨강은 이 선과 제목 글자에만 */
  border-radius: 10px;
}
.pgift-col { min-width: 0; }           /* 긴 글이 칸을 밀어내지 않게 */

.pgift-ttl {
  display: flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 800; letter-spacing: -.02em;
  color: #C92A2A; line-height: 1.45;
}
.pgift-ic { font-size: 15px; line-height: 1; }

.pgift-txt   { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.pgift-until { margin-top: 5px; font-size: 11.5px; font-weight: 700; color: #E03131; }

/* 사진이 있을 때 — 왼쪽에 작은 네모 */
.pgift-ph {
  flex: 0 0 auto; width: 56px; height: 56px;
  border-radius: 8px; overflow: hidden;
  background: #fff; border: 1px solid #FFD9D9;
}
.pgift-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 768px) {
  .pgift { padding: 15px 18px; }
  .pgift-ttl { font-size: 15.5px; }
  .pgift-txt { font-size: 13px; }
  .pgift-ph  { width: 64px; height: 64px; }
}

/* ==========================================================================
   「○○원만 더 담으면 무료배송」 + 넘겨주는 상품 (pm-fill-)  2026-08-13
   짝: inc/promo_ui.php 의 promo_freeship_pick_html()

   ★ 무료배송 막대 «바로 아래»에 붙습니다. 둘은 한 덩어리로 읽혀야 합니다 —
     «얼마 남았다»(막대) → «이걸 담으면 된다»(여기) 로 이어지는 한 문장입니다.
     그래서 위 여백을 좁게 두고, 왼쪽 노란 선으로 «막대의 계속»임을 보입니다.
   ★ 빨강을 쓰지 않습니다. 이 화면의 빨강은 사은품 띠 하나뿐이어야 합니다.
   ========================================================================== */
.pm-fill {
  margin: 10px 0 0;
  padding: 12px 0 2px;
  border-top: 1px solid var(--line-2);
}
.pm-fill-ttl {
  font-size: 13.5px; font-weight: 700; letter-spacing: -.01em;
  color: var(--ink); line-height: 1.5;
}
.pm-fill-ttl b { font-weight: 800; }
.pm-fill-sub {
  margin: 3px 0 10px;
  font-size: 12px; color: var(--ink-2); line-height: 1.6;
}
.pm-fill-sub b { color: var(--ink); font-weight: 700; }

/* 카드는 목록·메인과 같은 얼굴(.rail-card)을 그대로 씁니다.
   여기서는 자리가 좁으니 조금 작게만 둡니다. */
.pm-fill .rail-card > .card { width: 132px; }
@media (min-width: 768px) {
  .pm-fill .rail-card > .card { width: 148px; }
  .pm-fill-ttl { font-size: 14.5px; }
}
