/* =========================================================
   LIKEVAPE - Closed Mall Renewal
   Design tokens
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f9;
  --bg-elev: #f1f1f4;
  --line: #e5e5ea;
  --text: #0b0b0f;
  --text-soft: #5a5a64;
  --text-mute: #9a9aa3;
  --accent: #ff5a3c;
  --accent-2: #ffd66b;
  --primary: #0b0b0f;
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(.2,.8,.2,1);
  /* admin 레이아웃 컨트롤 변수 (사이트 설정 → CSS) */
  --grid-drop-pc: 4;
  --grid-drop-mobile: 3;
  --grid-picks-pc: 3;
  --grid-picks-mobile: 3;
  --pad-section-pc: 32px;   /* 메인 섹션 사이 윗여백 (클라 요청: 공백 축소 2026-06-10, 100→56→40→32) */
  --pad-section-mobile: 20px; /* 모바일 메인 섹션 윗여백 (64→36→24→20) */
  --gap-grid-pc: 24px;
  --gap-grid-mobile: 10px;
  --fs-h2-pc: 52px;
  --fs-h2-mobile: 32px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

body { overflow-x: hidden; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: #0b0b0f; color: #fff; }
.btn--primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
/* 메인 배너 버튼 — 배너별 커스텀 색상(평상시/마우스오버) */
.banner-cta-custom { background: var(--bbg, #0b0b0f); color: var(--btxt, #fff); border-color: transparent; transition: background .2s, color .2s, transform .2s; }
.banner-cta-custom:hover { background: var(--bhbg, var(--accent)); color: var(--bhtxt, #fff); transform: translateY(-1px); }
.btn--outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn--outline:hover { border-color: var(--text); }
.btn--outline-light { background: transparent; border: 1px solid rgba(11,11,15,.25); color: var(--text); }
.btn--outline-light:hover { background: rgba(11,11,15,.05); border-color: var(--text); }
.btn--ghost { background: var(--bg-elev); color: var(--text); }
.btn--ghost:hover { background: #e6e6ec; }
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn--mini { padding: 9px 16px; font-size: 12px; letter-spacing: 0.06em; background: #0b0b0f; color: #fff; }
.btn--mini:hover { background: var(--accent); color: #fff; }

.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--text);
  border-radius: 50%; position: relative;
  transition: background .2s var(--ease);
}
.icon-btn:hover { background: rgba(11,11,15,.06); }
.icon-btn--cart .badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* =========================================================
   Age gate modal
   ========================================================= */
.age-gate {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .4s var(--ease);
}
.age-gate.is-hidden { display: none; }

.age-gate__panel {
  width: min(520px, 100%);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0,0,0,.12);
  border-radius: 24px;
  padding: 40px 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.age-gate__panel::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(135deg, transparent 40%, rgba(255,90,60,.18), transparent 70%);
  pointer-events: none; border-radius: 24px;
}
.age-gate__brand {
  font-family: 'Pretendard', sans-serif;
  letter-spacing: 0.18em;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.age-gate__chip {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  margin-bottom: 18px;
}
.age-gate__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.age-gate__desc {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 26px;
}
.age-gate__desc strong { color: var(--text); font-weight: 600; }

.age-gate__actions {
  display: flex; gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.age-gate__law {
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.7;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* =========================================================
   Header (new layout: notice → logo+actions → search → nav)
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: transform .3s ease;
}
/* 모바일 — 아래로 스크롤 시 헤더(카테고리 메뉴 포함) 위로 숨김. 위로 스크롤 시 다시 내려옴 */
.header.header--hidden { transform: translateY(-100%); }

/* 1. 최상단 텍스트 배너 */
.header__notice {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  padding: 8px 24px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.header__notice .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2bd47a; box-shadow: 0 0 0 4px rgba(43,212,122,.15);
  animation: pulse 1.6s infinite;
}

/* 2. 로고 + 검색창 + 우측 아이콘 (한 줄) */
.header__main {
  border-bottom: 1px solid var(--line);
}
.header__main-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.header__menu { display: inline-flex; grid-row: 1; }
@media (min-width: 900px) {
  .header__menu { display: none; }
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}
.header__actions .btn--mini { margin-left: 8px; }
.header__login-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  padding: 8px 12px;
  margin-left: 6px;
  white-space: nowrap;
  transition: color .15s;
}
.header__login-link:hover { color: var(--text); }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Pretendard', sans-serif;
  letter-spacing: 0.18em;
  font-size: 22px;
  white-space: nowrap;
}
.logo__mark { color: var(--accent); transform: rotate(45deg); display: inline-block; }
.logo--lg { font-size: 30px; }

/* ── anti-FOUC 게이트 ────────────────────────────────────────────────
   화면 전환마다 정적 HTML의 하드코딩 기본값이 한 프레임 새어 나오던 현상 차단.
   styles.css는 <head>에서 렌더 차단 로드되므로 첫 페인트부터 적용된다.
   · 헤더: header-prepaint.js가 캐시 적용 후 html.hdr-ready 부여 → 그 전까지 로고·카테고리 숨김
   · 상품상세: 실데이터 적용 후 body.pd-ready/pd-rel-ready 부여 → 그 전까지 데모 콘텐츠 숨김 */
html:not(.hdr-ready) .logo,
html:not(.hdr-ready) .header__nav-inner { visibility: hidden; }
body.pd-page:not(.pd-ready) .product-gallery,
body.pd-page:not(.pd-ready) .product-info,
body.pd-page:not(.pd-ready) #bcProductName,
body.pd-page:not(.pd-rel-ready) .related { visibility: hidden; }

/* 검색창 (헤더 중앙) */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  width: 100%;
  max-width: 560px;
  justify-self: center;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-bar:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 4px rgba(11,11,15,.04);
  background: #fff;
}
.search-bar__icon { color: var(--text-mute); flex-shrink: 0; }
.search-bar__input {
  flex: 1;
  border: 0; outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 11px 0;
  min-width: 0;
}
.search-bar__input::placeholder { color: var(--text-mute); }
.search-bar__btn {
  background: #0b0b0f;
  color: #fff;
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s var(--ease);
}
.search-bar__btn:hover { background: var(--accent); }

/* 모바일 — 검색창을 별도 줄로 떨어뜨림 */
@media (max-width: 900px) {
  .header__main-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "menu logo actions"
      "search search search";
    gap: 12px;
  }
  .header__menu { grid-area: menu; }
  .logo { grid-area: logo; justify-self: center; }
  .header__actions { grid-area: actions; }
  .search-bar { grid-area: search; max-width: 100%; }
}

/* 3. 카테고리 메뉴 */
.header__nav { display: block; }
.header__nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-soft);
  justify-content: center;
}
.header__nav-inner a {
  padding: 4px 2px;
  transition: color .2s;
  white-space: nowrap;
  position: relative;
}
.header__nav-inner a:hover { color: var(--text); }
.header__nav-inner a:hover::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* 대분류 hover 드롭다운(하위분류) */
.header__cat { position: relative; display: inline-flex; }
.header__submenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 168px;
  display: none; flex-direction: column; gap: 1px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.13);
  padding: 6px; margin-top: 8px; z-index: 300;
}
.header__submenu::before {            /* hover 유지용 투명 브릿지 */
  content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
}
.header__cat:hover .header__submenu { display: flex; }
.header__submenu a {
  padding: 9px 14px; border-radius: 7px; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--text-soft);
}
.header__submenu a:hover { background: var(--bg-soft); color: var(--text); }
.header__submenu a:hover::after { display: none; }   /* 밑줄 강조 제거 */
.header__submenu a.is-active { color: var(--accent); font-weight: 700; }

@media (max-width: 700px) {
  .header__main-inner { padding: 12px 16px; }
  .header__nav-inner { padding: 10px 16px; gap: 6px 18px; font-size: 13px; }
  .logo--lg { font-size: 22px; }
  .search-bar { padding: 2px 2px 2px 14px; }
  .search-bar__input { font-size: 13px; padding: 10px 0; }
  .search-bar__btn { width: 36px; height: 36px; }
  .header__actions { gap: 2px; }
  .header__actions .btn--mini { margin-left: 4px; padding: 7px 12px; }
}

@media (max-width: 500px) {
  .header__main-inner { padding: 10px 12px; gap: 8px; }
  .header__nav-inner { padding: 8px 12px; gap: 4px 14px; font-size: 12px; }
  .logo--lg { font-size: 19px; letter-spacing: 0.14em; }
  .header__login-link { display: none; }
  .header__actions .btn--mini { padding: 6px 10px; font-size: 12px; margin-left: 2px; }
  .header__actions .icon-btn { padding: 6px; }
  .search-bar { padding: 2px 2px 2px 12px; }
  .search-bar__input { font-size: 13px; padding: 9px 0; }
  .search-bar__input::placeholder { font-size: 12px; }
}

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .4; }
}

/* =========================================================
   Main Banner Carousel (1800 x 700)
   ========================================================= */
.main-banner {
  position: relative;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  background: var(--bg-soft);
  overflow: hidden;
}
.main-banner__viewport {
  width: 100%;
  aspect-ratio: 1800 / 700;
  overflow: hidden;
}
.main-banner__track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  transition: transform .6s var(--ease);
  will-change: transform;
}

.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 max(32px, calc((100% - var(--max)) / 2 + 32px));
  color: #fff;
  overflow: hidden;
  box-sizing: border-box;
}
.banner-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: transparent;
  pointer-events: none;
}

/* DB-rendered banners: CSS 변수로 PC/모바일 배경 분기 */
.banner-slide--db { background: var(--banner-bg-pc); }
@media (max-width: 700px) {
  .banner-slide--db { background: var(--banner-bg-mobile, var(--banner-bg-pc)); }
  /* 모바일은 이미지에 텍스트가 포함되므로 오버레이 텍스트(뱃지·제목·설명·버튼) 숨김 */
  .banner-slide--db .banner-slide__inner { display: none; }
}
/* 배너 이미지 전체 클릭 링크: __inner(z-index:1)보다 아래에 깔려 PC에선 버튼이 위에 살아있고,
   모바일에선 __inner가 숨겨져 이미지 전체가 클릭됨 */
.banner-slide__link {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.banner-slide__inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.banner-slide__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
}
.banner-slide__title {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(48px, 7vw, 93px);
  line-height: 1.11;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  font-weight: 400;
}
.banner-slide__desc {
  font-size: 23px;
  line-height: 1.4;
  margin: 0 0 36px;
  opacity: .92;
}

/* DB-rendered banner: 텍스트가 dark 일 때는 오버레이를 밝게 + 뱃지 톤 변경 */
.banner-slide--db[style*="color:#1a1a24"] .banner-slide__badge,
.banner-slide--db[style*="color: #1a1a24"] .banner-slide__badge {
  background: rgba(26,26,36,.18); color: #1a1a24;
}
.banner-slide--db[style*="color:#1a1a24"]::after,
.banner-slide--db[style*="color: #1a1a24"]::after {
  background: transparent;
}

/* dots */
.banner-dots {
  position: absolute;
  bottom: 28px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 5;
}
.banner-dot {
  width: 32px; height: 4px;
  border: 0;
  background: rgba(255,255,255,.35);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: background .25s var(--ease), width .25s var(--ease);
}
.banner-dot.is-active { background: #fff; width: 56px; }

/* prev/next */
.banner-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s var(--ease);
  z-index: 5;
}
.banner-nav:hover { background: rgba(255,255,255,.32); }
.banner-nav--prev { left: 24px; }
.banner-nav--next { right: 24px; }

@media (max-width: 900px) {
  .main-banner__viewport { aspect-ratio: 16 / 11; }
  .banner-slide { padding: 0 24px; }
  .banner-slide__inner { max-width: 100%; }
  .banner-slide__badge { margin-bottom: 16px; }
  .banner-slide__title { font-size: clamp(36px, 8vw, 64px); margin: 0 0 16px; }
  .banner-slide__desc { font-size: 14px; line-height: 1.5; margin: 0 0 20px; }
  .banner-nav { width: 38px; height: 38px; }
  .banner-nav--prev { left: 12px; }
  .banner-nav--next { right: 12px; }
  .banner-dots { bottom: 16px; }
  .banner-dot { width: 24px; }
  .banner-dot.is-active { width: 40px; }
}



/* =========================================================
   Section heads
   ========================================================= */
.section-head { padding: var(--pad-section-pc) 32px 40px; max-width: var(--max); margin: 0 auto; }
/* 제목 좌측 + 액션 링크(후기 쓰러가기) 우측 배치 */
.section-head--with-action { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head__action {
  flex-shrink: 0;
  font-size: 14px; font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color .2s, transform .2s;
}
.section-head__action:hover { color: var(--accent); transform: translateX(2px); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head__eyebrow--light { color: var(--accent); }
.section-head__title {
  font-size: clamp(28px, 4vw, var(--fs-h2-pc));
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.1;
}

/* =========================================================
   Categories
   ========================================================= */
.cats__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 540px;
}
@media (max-width: 900px) {
  .cats__grid { grid-template-columns: 1fr 1fr; min-height: auto; }
  .cat-card--lg { grid-column: 1 / -1; min-height: 280px; }
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 250px;
  display: flex; align-items: flex-end;
  padding: 24px;
  transition: transform .4s var(--ease);
  isolation: isolate;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card--lg { grid-row: span 2; }

.cat-card__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  z-index: -1;
  transition: transform .6s var(--ease);
}
.cat-card:hover .cat-card__bg { transform: scale(1.06); }
.cat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5));
  z-index: -1;
}

.cat-card__content { color: #fff; width: 100%; }
.cat-card__count {
  display: inline-block;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.cat-card__content h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.cat-card--lg .cat-card__content h3 { font-size: 44px; }
.cat-card__content p { margin: 0; opacity: .85; font-size: 14px; }
.cat-card__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
}

/* =========================================================
   Drop / Products
   ========================================================= */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  white-space: nowrap;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all .2s;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip--active { background: #0b0b0f; color: #fff; border-color: #0b0b0f; }
/* 모바일 — 맛 구분 등 필터 칩 컴팩트화 (영역이 너무 커지지 않게) */


.products {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(var(--grid-drop-pc), 1fr);
  gap: var(--gap-grid-pc);
}
@media (max-width: 1100px) { .products { grid-template-columns: repeat(min(var(--grid-drop-pc), 3), 1fr); } }
.product { position: relative; }
.product__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  margin-bottom: 16px;
}
.product__img {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display: flex; align-items: center; justify-content: center;
  transition: transform .5s var(--ease);
}
.product__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.product:hover .product__img { transform: scale(1.05); }
.product__bottle {
  font-size: 84px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.4));
}

.product__flag {
  position: absolute; left: 14px;
  /* 세로 쌓기 간격을 CSS 변수(--fi: 플래그 순서)로 제어 → 반응형 조절 가능 */
  top: calc(14px + var(--fi, 0) * 31px);
  background: #fff; color: #0b0b0f;
  padding: 4px 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2;
}
.product__flag--new { background: var(--flag-new, var(--accent)); color: var(--flag-new-text, #fff); }
.product__flag--hot { background: var(--flag-hot, #ff3344); color: var(--flag-hot-text, #fff); }
.product__flag--limited { background: var(--flag-limited, #a855f7); color: var(--flag-limited-text, #fff); }
.product__flag--soon { background: var(--flag-soon, rgba(0,0,0,.6)); color: var(--flag-soon-text, #fff); backdrop-filter: blur(4px); }

/* 목록 카드 찜버튼 — 상품 상세 찜버튼(.product-actions__like)과 동일한 디자인 */
.product__like {
  position: absolute; bottom: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line); color: var(--text); font-size: 15px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  z-index: 2;
  transition: all .2s;
}
.product__like:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.06); }
.product__like.is-liked { background: rgba(255,90,60,.1); border-color: var(--accent); color: var(--accent); }

.product__brand {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  display: block;
  margin-bottom: 6px;
}
.product__name {
  font-size: 16px; font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.product__name a { color: inherit; text-decoration: none; }
.product__name a:hover { text-decoration: underline; }
/* 상품 카드 프로모션 안내 — 상세 페이지 노출 설명을 목록에도 (브랜드명과 동일 크기) */
.product__promo {
  display: block;
  font-size: 11px; font-weight: 600;
  color: #e8590c;
  line-height: 1.35;
  margin: -4px 0 8px;
}
.product__meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.product__price {
  font-weight: 700;
  font-size: 15px;
}
.product__price s {
  color: var(--text-mute);
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}
.product__price-discount {
  color: #e0382c;
  font-weight: 800;
  margin-right: 4px;
}
.product__rate {
  font-size: 12px;
  color: var(--text-soft);
}
.product__opts { display: flex; gap: 6px; flex-wrap: wrap; }
.opt {
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-soft);
}
.opt--out {
  text-decoration: line-through;
  color: var(--text-mute);
  opacity: .6;
}

/* 상품 카드 모바일 축소 — 반드시 위 기본(데스크톱) 정의보다 뒤에 위치해야 적용됨 */
@media (max-width: 800px) {
  .products { grid-template-columns: repeat(var(--grid-drop-mobile), 1fr); gap: var(--gap-grid-mobile); padding: 0 16px; }
  .product__media { margin-bottom: 8px; border-radius: 12px; }
  .product__bottle { font-size: 48px; }
  .product__flag { font-size: 8px; padding: 2px 6px; top: calc(7px + var(--fi, 0) * 18px); left: 7px; letter-spacing: 0.02em; }
  .product__like { width: 20px; height: 20px; font-size: 10px; bottom: 6px; right: 6px; }
  .product__brand { font-size: 9px; margin-bottom: 3px; letter-spacing: 0.06em; }
  .product__promo { font-size: 9px; margin: 0 0 4px; }
  /* 상품명: 작게 + 2줄 고정(말줄임) → 이미지가 카드의 주인공이 되도록 (레퍼런스 스타일) */
  .product__name {
    font-size: 11px; margin: 0 0 4px; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .product__meta { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 8px; }
  .product__price { font-size: 12px; }
  .product__price s { font-size: 9.5px; margin-left: 2px; }
  .product__rate { font-size: 10px; }
  .product__opts { gap: 4px; }
  .opt { font-size: 9px; padding: 2px 5px; }
}
@media (max-width: 500px) {
  .products { gap: 8px; padding: 0 12px; }
  .product__media { margin-bottom: 6px; }
  .product__bottle { font-size: 40px; }
  .product__flag { font-size: 7.5px; padding: 1.5px 5px; top: calc(6px + var(--fi, 0) * 16px); left: 6px; letter-spacing: 0; }
  .product__like { width: 18px; height: 18px; font-size: 9px; bottom: 5px; right: 5px; }
  .product__brand { font-size: 8.5px; margin-bottom: 2px; }
  .product__promo { font-size: 8.5px; margin: 0 0 3px; }
  .product__name { font-size: 10.5px; line-height: 1.22; margin: 0 0 3px; }
  .product__meta { margin-bottom: 6px; }
  .product__price { font-size: 11px; font-weight: 700; }
}

.drop__more { text-align: center; padding: 48px 0 0; }

/* =========================================================
   Quick board (Promo banners + tabbed board)
   ========================================================= */
.quick-board {
  margin-top: 64px; /* 상단 배너↔회원가입/카카오 배너 사이 공백 축소 (2026-06-10, 기존 150px) */
  padding: 0 32px;
}
.quick-board__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.quick-board__promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-width: 0;
}
.quick-board__board { min-width: 0; }
@media (max-width: 1000px) {
  .quick-board__inner { grid-template-columns: 1fr; }
}



/* Promo banner */
.promo-banner {
  position: relative;
  display: flex;
  border-radius: var(--radius);
  padding: 28px 24px;
  min-height: 168px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease);
  text-decoration: none;
}
.promo-banner:hover { transform: translateY(-3px); }

/* Image-only promo banner */
.promo-banner--image {
  padding: 0;
  min-height: 0;
  aspect-ratio: 16 / 10;
  background: #f3f3f5;
}
.promo-banner--image .promo-banner__img {
  /* +1px 오버스캔 — aspect-ratio 박스의 소수점 반올림으로 가장자리에 배경(검은) 틈이
     1px 비치는 현상 제거. 컨테이너 overflow:hidden 이라 잘려도 무방. */
  width: calc(100% + 1px);
  height: calc(100% + 1px);
  object-fit: cover;
  display: block;
}
@media (max-width: 700px) {
  .promo-banner--image { aspect-ratio: 1 / 1; }
}
/* 이미지형 배너 — 모바일 .promo-banner 규칙(padding:16px 등)이 padding:0 을 덮어써
   여백이 테두리처럼 보이던 문제 제거. 2-class 특이도로 모든 화면폭에서 우선 적용.
   배경도 투명 처리해 어떤 색 테두리도 남지 않도록 한다. */
.promo-banner.promo-banner--image { padding: 0; background: transparent; }

.promo-banner__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.promo-banner__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.promo-banner__sub {
  font-size: 13px;
  margin: 0 0 8px;
  opacity: .8;
}
.promo-banner__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #0b0b0f;
  transition: background .2s var(--ease);
}
.promo-banner__cta--dark {
  background: #0b0b0f;
  color: #fff;
}
.promo-banner:hover .promo-banner__cta { background: var(--accent); color: #fff; }

.promo-banner__deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* 디바이스별 노출 토글 (admin 설정 반영) — 섹션·요소 공용 헬퍼 */
@media (min-width: 701px) {
  .promo-banner--no-pc,
  .hide-pc { display: none !important; }
}
@media (max-width: 700px) {
  .promo-banner--no-mobile,
  .hide-mobile { display: none !important; }
}

/* 라이크 제로 (다크 + 스마일 데코 + 액상병) */
.promo-banner--zero {
  background: #1a1a22;
  color: #fff;
}
.promo-banner--zero .promo-banner__cta { background: #fff; color: #1a1a22; }

.zero-smile {
  position: absolute;
  font-size: 22px;
  line-height: 1;
  filter: saturate(1.3);
}
.zero-smile--1 { top: 12px; left: 16px; color: #6cd5d0; transform: rotate(-12deg); }
.zero-smile--2 { top: 20px; right: 38%; color: #ff7eb6; transform: rotate(15deg); font-size: 18px; }
.zero-smile--3 { bottom: 14px; left: 22%; color: #ffd66b; transform: rotate(8deg); font-size: 18px; }
.zero-smile--4 { bottom: 18px; right: 14px; color: #b388ff; transform: rotate(-8deg); }

.zero-bottles {
  position: absolute;
  right: 0; top: 0;
  width: 48%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.zero-bottle {
  font-family: 'Pretendard', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-align: center;
  color: #1a1a22;
  background: linear-gradient(180deg, #f4f4f7 0%, #c8c8d0 100%);
  border-radius: 5px 5px 14px 14px;
  padding: 28px 8px 12px;
  width: 38px;
  height: 92px;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transform: rotate(-6deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.zero-bottle::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 8px;
  background: #2a2a36;
  border-radius: 3px;
}
.zero-bottle--2 { transform: rotate(8deg) translateY(6px); }

/* 카카오채널 (연한 크림 옐로 + TALK 말풍선들 + 갈색 버튼) */
.promo-banner--kakao {
  background: #fff7c2;
  color: #2b1d10;
}
.promo-banner--kakao .promo-banner__title { color: #2b1d10; }
.promo-banner--kakao .promo-banner__sub { color: #4a3320; opacity: 1; }
.promo-banner--kakao .promo-banner__cta--dark {
  background: #5a3a18;
  color: #fff;
}
.promo-banner--kakao:hover .promo-banner__cta--dark { background: var(--accent); }

.kakao-bubble {
  position: absolute;
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: #ffd000;
  color: #2b1d10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.kakao-bubble--ch {
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 16px;
  top: 14px; right: 64px;
  background: #ffe04a;
  border: 2px solid #2b1d10;
}
.kakao-bubble--talk1 {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 12px 12px 12px 2px;
  top: 20px; right: 14px;
  transform: rotate(8deg);
}
.kakao-bubble--talk2 {
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 12px 12px 2px 12px;
  bottom: 22px; right: 30px;
  transform: rotate(-12deg);
}
.kakao-bubble--talk3 {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 10px 10px 10px 2px;
  bottom: 60px; right: 100px;
  transform: rotate(6deg);
  opacity: .85;
}
.kakao-bubble--dot1, .kakao-bubble--dot2 {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #ffe04a;
  box-shadow: none;
}
.kakao-bubble--dot1 { top: 60px; right: 140px; }
.kakao-bubble--dot2 { bottom: 14px; right: 80px; }

/* Board (tabbed) */
.board {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.board__tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 10px;
  position: relative;
}
.board__tab {
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mute);
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.board__tab:hover { color: var(--text); }
.board__tab.is-active { color: var(--text); }
.board__tab.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -11px;
  height: 2px;
  background: var(--text);
}
.board__more {
  margin-left: auto;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
  color: var(--text-soft);
  transition: all .2s;
}
.board__more:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.board__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.board__list.is-hidden { display: none; }
.board__list li + li { border-top: 1px dashed var(--line); }
.board__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  font-size: 13px;
  color: var(--text);
  transition: color .2s;
}
.board__list a:hover .board__title { color: var(--accent); }

.board__icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  background: var(--bg-elev);
  color: var(--text-mute);
}
.board__icon--n {
  background: var(--accent);
  color: #fff;
}

.board__title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s;
}
.board__list time {
  font-size: 12px;
  color: var(--text-mute);
  flex-shrink: 0;
}

/* =========================================================
   Editor's pick
   ========================================================= */
.picks__head { padding: 32px 32px 40px; max-width: var(--max); margin: 0 auto; }
.picks__lead { color: var(--text-soft); max-width: 540px; margin-top: 16px; }

.picks__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(var(--grid-picks-pc), 1fr);
  gap: 20px;
}
.pick {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all .3s var(--ease);
}
.pick:hover { transform: translateY(-4px); border-color: var(--accent); }
.pick__num {
  font-family: 'Pretendard', sans-serif;
  font-size: 64px;
  letter-spacing: 0.02em;
  color: var(--text);
  opacity: .12;
  margin-bottom: -10px;
}
.pick:hover .pick__num { opacity: .3; color: var(--accent); }
.pick__art {
  height: 180px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--g1), var(--g2));
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.pick__art::after {
  content: '';
  position: absolute;
  inset: 20% 25%;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  filter: blur(20px);
}
.pick__info h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.pick__info p { color: var(--text-soft); margin: 0 0 18px; font-size: 14px; }
.pick__cta { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }

@media (max-width: 900px) {
  .picks__head { padding: var(--pad-section-mobile) 20px 20px; }
  .picks__lead { font-size: 12px; margin-top: 10px; }
  .picks__grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px; padding: 0 16px; }
  .pick { padding: 14px 12px; border-radius: 14px; }
  .pick__num { font-size: 30px; margin-bottom: 4px; }
  .pick__art { aspect-ratio: 1 / 1; height: auto; margin-bottom: 14px; border-radius: 10px; }
  .pick__info h3 { font-size: 13px; margin: 0 0 8px; letter-spacing: -0.02em; line-height: 1.25; }
  .pick__info p { display: none; }
  .pick__cta { font-size: 11px; letter-spacing: 0.02em; }
}
@media (max-width: 500px) {
  .picks__grid { gap: 8px; padding: 0 12px; }
  .pick { padding: 12px 10px; border-radius: 12px; }
  .pick__num { font-size: 24px; }
  .pick__art { border-radius: 8px; margin-bottom: 10px; }
  .pick__info h3 { font-size: 12px; }
  .pick__cta { font-size: 10.5px; }
}

/* =========================================================
   Membership section
   ========================================================= */
.member {
  margin-top: 120px;
  padding: 100px 32px;
  background: linear-gradient(135deg, #fff7f3 0%, #faf5ff 60%);
  position: relative;
  overflow: hidden;
}
.member::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,60,.18), transparent 70%);
  top: -200px; right: -100px;
  filter: blur(40px);
}
.member__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}



.member__copy h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 32px;
}
.member__list { list-style: none; padding: 0; margin: 0 0 36px; }
.member__list li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(11,11,15,.08);
  font-size: 15px;
}
.member__list li span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.member__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.member__art { display: flex; justify-content: center; }
.card-stack {
  position: relative;
  width: 360px; height: 380px;
}
.m-card {
  position: absolute;
  width: 100%;
  height: 220px;
  border-radius: 18px;
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  transition: transform .4s var(--ease);
}
.m-card--a {
  background: linear-gradient(135deg, #ff5a3c, #ffd66b);
  color: #1a1a24;
  z-index: 3;
  top: 0;
  transform: rotate(-3deg);
}
.m-card--b {
  background: linear-gradient(135deg, #1a1a24, #2c2c3a);
  color: #fff;
  z-index: 2;
  top: 60px;
  transform: rotate(2deg);
}
.m-card--c {
  background: linear-gradient(135deg, #5b8def, #a06bff);
  color: #fff;
  z-index: 1;
  top: 120px;
  transform: rotate(6deg);
}
.card-stack:hover .m-card--a { transform: rotate(-6deg) translateY(-10px); }
.card-stack:hover .m-card--b { transform: rotate(0deg); }
.card-stack:hover .m-card--c { transform: rotate(10deg) translateY(10px); }
.m-card__chip {
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  letter-spacing: 0.12em;
}
.m-card__no {
  font-family: 'Pretendard', monospace;
  font-size: 18px;
  letter-spacing: 0.1em;
  margin-top: auto;
}
.m-card__name {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: .8;
}

/* =========================================================
   Reviews
   ========================================================= */
.reviews { padding-bottom: 48px; } /* 후기↔FAQ 사이 공백 축소 (2026-06-10, 기존 140px) */
.reviews__grid { margin-bottom: 24px; }
.reviews__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 32px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.reviews__grid::-webkit-scrollbar { height: 6px; }
.reviews__grid::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.reviews__grid::-webkit-scrollbar-track { background: transparent; }

.review {
  flex: 0 0 calc((100% - 64px) / 5);
  min-width: 0;
  scroll-snap-align: start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
/* 후기 카드는 게시글로 연결되는 링크 — 색·밑줄 상속 안 되게, 호버 시 살짝 떠오름 */
a.review { color: inherit; text-decoration: none; cursor: pointer; }
a.review:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.review:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.06); }

.review__photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--g1, #5b8def), var(--g2, #a06bff));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.16));
}
.reviews--no-photos .review__photo { display: none; }

.review__stars { color: #f5b800; margin: 14px 16px 8px; letter-spacing: 3px; font-size: 13px; }
.review__text {
  margin: 0 16px 12px;
  line-height: 1.5;
  font-size: 13px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review__meta { font-size: 12px; color: var(--text-soft); padding: 0 16px 16px; border-top: 0; }
.review__meta strong { color: var(--text); font-weight: 700; }

/* 후기 6개 → 3개 모드 (관리자 토글) */
.reviews--3only .review--row2 { display: none; }

@media (max-width: 1100px) {
  .review { flex: 0 0 calc((100% - 48px) / 4); }
}
@media (max-width: 900px) {
  .review { flex: 0 0 calc((100% - 32px) / 3); }
}
@media (max-width: 700px) {
  .reviews__grid { padding: 0 20px; gap: 12px; scroll-padding-left: 20px; }
  .review { flex: 0 0 calc((100% - 12px) / 2); }
  .review__photo { aspect-ratio: 4 / 3; font-size: 28px; }
  .review__stars { margin: 12px 14px 6px; font-size: 12px; }
  .review__text { margin: 0 14px 10px; font-size: 12px; line-height: 1.5; }
  .review__meta { padding: 0 14px 14px; font-size: 11px; }
}

/* =========================================================
   Review banners (모바일 전용)
   ========================================================= */
.review-banners {
  display: block;
  padding: 32px 32px 0;
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 700px) {
  .review-banners { padding: 24px 20px 0; }
}
.rb-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 12px 0 28px;
}
.rb-track {
  display: flex;
  align-items: stretch;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.rb-slide {
  flex: 0 0 60%;
  padding: 0 8px;
  box-sizing: border-box;
  text-decoration: none;
  opacity: 0.35;
  transform: scale(.96);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  cursor: pointer;
}
.rb-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.rb-slide__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
/* 슬라이드 1개일 때는 가운데 정렬 + 100% */
.rb-slider--single .rb-track { transform: none !important; }
.rb-slider--single .rb-slide { flex-basis: 100%; opacity: 1; transform: none; padding: 0; }

/* 메인 상품 섹션 사이에 끼워넣는 위치 지정 배너 */
.inline-banner {
  display: block;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 32px;
}
.inline-banner .rb-slider { padding: 8px 0; }
@media (max-width: 700px) {
  .inline-banner { padding: 4px 20px; }
  .inline-banner .rb-slider { padding: 4px 0; }
}

@media (max-width: 700px) {
  .rb-slider { padding: 8px 0 22px; }
  .rb-slide { flex-basis: 100%; padding: 0; opacity: 0; transform: none; }
  .rb-slide.is-active { opacity: 1; }
  .rb-slide__img { border-radius: 12px; box-shadow: none; }
}

.rb-counter {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  z-index: 2;
}
.rb-dots {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 1;
}
.rb-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.18);
  padding: 0;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.rb-dot.is-active { background: var(--accent); transform: scale(1.3); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding-bottom: 120px; }
.faq__list {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 24px;
  color: var(--text-mute);
  font-weight: 300;
  transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; color: var(--accent); }
.faq p { color: var(--text-soft); margin: 14px 0 0; line-height: 1.7; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer__top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 32px 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr; } }

.footer__tag {
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  margin-top: 16px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 700px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }
.footer__cols h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 18px;
}
.footer__cols a, .footer__cols p {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 10px;
  line-height: 1.7;
  transition: color .2s;
}
.footer__cols a:hover { color: var(--text); }
/* 고객센터 하단 라이크쥬스 로고 (여백 트림된 footer-logo.png 171x58 기준) */
.footer__cs-logo { display: inline-block; margin: 16px 0 0; padding: 0; }
.footer__cs-logo img { display: block; width: 170px; max-width: 100%; height: auto; }
.footer__cs-logo:hover { color: inherit; opacity: .9; }

.footer__legal {
  border-top: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.7;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__legal-right { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.footer__legal-right .warn { color: #ff8a65; font-weight: 500; }
/* 모바일 — 푸터 여백·간격 콤팩트화 (하단이 불필요하게 길어지지 않게) */


@keyframes fadeIn {
  from { opacity: 0; transform: scale(.98); }
  to { opacity: 1; transform: scale(1); }
}

/* =========================================================
   Auth pages (login / signup / find-account)
   ========================================================= */
.auth-page {
  min-height: calc(100vh - 200px);
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.06);
  padding: 44px 40px 32px;
}


.auth-card__head { text-align: center; margin-bottom: 28px; }
.auth-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Pretendard', sans-serif;
  letter-spacing: 0.18em;
  font-size: 22px;
  margin-bottom: 22px;
}
.auth-card__brand-mark { color: var(--accent); transform: rotate(45deg); display: inline-block; }
.auth-card__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.auth-card__sub {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }

/* Field */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}
.field__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px 0 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.field__input-wrap:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 4px rgba(11,11,15,.04);
  background: #fff;
}
.field__icon { color: var(--text-mute); flex-shrink: 0; margin-right: 8px; }
.field__input {
  flex: 1;
  border: 0; outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 13px 0;
  min-width: 0;
}
.field__input::placeholder { color: var(--text-mute); }
.field__toggle {
  background: transparent;
  border: 0;
  color: var(--text-mute);
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.field__toggle:hover { color: var(--text); }

/* Row (remember + find link) */
.auth-form__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 13px;
}
.auth-form__link { color: var(--text-soft); }
.auth-form__link:hover { color: var(--accent); text-decoration: underline; }

/* Custom checkbox */
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.check input { display: none; }
.check__box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all .2s;
}
.check__box::after {
  content: '';
  width: 9px; height: 5px;
  border: 2px solid #fff;
  border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(0, -1px);
  opacity: 0;
}
.check input:checked + .check__box {
  background: var(--text);
  border-color: var(--text);
}
.check input:checked + .check__box::after { opacity: 1; }
.check__label { font-size: 13px; color: var(--text-soft); }

.auth-form__submit { margin-top: 6px; width: 100%; }

/* Signup wide variant */
.auth-card--wide { max-width: 560px; }

/* Form section (회원가입 단계) */
.form-section {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.form-section__num {
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.form-section__desc {
  margin: -8px 0 4px 36px;
  color: var(--text-soft);
  font-size: 12px;
}
.form-section__cta { width: 100%; justify-content: center; }

.required { color: var(--accent); margin-left: 2px; }
.optional { color: var(--text-mute); margin-left: 4px; font-weight: 500; font-size: 11px; }

.field__hint {
  font-size: 12px;
  color: var(--text-mute);
  margin: 4px 2px 0;
  line-height: 1.5;
}

.field__inline-btn {
  background: var(--text);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.field__inline-btn:hover { background: var(--accent); }

/* Verify status */
.verify-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(43,212,122,.12);
  border: 1px solid rgba(43,212,122,.25);
  border-radius: 10px;
  font-size: 13px;
  color: #1a8c4a;
}
.verify-status__icon {
  width: 20px; height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a8c4a;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

/* Terms (약관) */
.terms {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.terms__divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 0 6px;
}
.terms__view {
  margin-left: 4px;
  font-size: 12px;
  color: var(--text-soft);
  text-decoration: underline;
}
.terms__view:hover { color: var(--accent); }

.check--lg .check__label { font-size: 14px; color: var(--text); }
.check--lg .check__box { width: 20px; height: 20px; }

/* Auth tabs (find-account) */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  background: transparent;
  border: 0;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

/* Auth result panel */
.auth-result {
  margin-top: 20px;
  padding: 28px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}
.auth-result__icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}
.auth-result__icon--ok { background: #1a8c4a; }
.auth-result__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0 0 8px;
}
.auth-result__value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  font-family: 'Pretendard', monospace;
  word-break: break-all;
}
.auth-result__hint {
  font-size: 12px;
  color: var(--text-mute);
  margin: 0 0 18px;
}
.auth-result__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.auth-result__actions .btn { flex: 1; min-width: 140px; }
.auth-result__form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

/* Divider */
.auth-form__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  color: var(--text-mute);
  font-size: 12px;
}
.auth-form__divider::before,
.auth-form__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* SNS login */
.auth-sns { display: flex; flex-direction: column; gap: 10px; }
.auth-sns__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.auth-sns__btn:hover { opacity: .92; }
.auth-sns__btn--kakao {
  background: #fee500;
  color: #2c1d10;
}
.auth-sns__btn--naver {
  background: #03c75a;
  color: #fff;
}
.auth-sns__icon {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  font-weight: 700;
  font-size: 13px;
}
.auth-sns__btn--naver .auth-sns__icon { background: rgba(255,255,255,.18); color: #fff; }

/* Footer link */
.auth-card__foot {
  text-align: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-soft);
}
.auth-card__signup {
  margin-left: 6px;
  font-weight: 700;
  color: var(--text);
}
.auth-card__signup:hover { color: var(--accent); }

/* =========================================================
   Category page
   ========================================================= */
.cat-page { padding-bottom: 80px; }

/* Header active link */
.header__nav-inner a.is-active { color: var(--text); font-weight: 700; }
.header__nav-inner a.is-active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

/* Hero */
.cat-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.cat-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 50px 32px 40px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb__sep { color: var(--text-mute); }
.cat-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  line-height: 1.1;
}
.cat-hero__sub {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 600px;
}
/* 모바일 — 카테고리/공지/이벤트/커뮤니티 히어로(제목·설명)를 약 절반 크기로 축소 */
@media (max-width: 600px) {
  .cat-hero__inner { padding: 20px 16px 16px; }
  .cat-hero__title { font-size: 17px; margin-bottom: 4px; line-height: 1.2; }
  .cat-hero__sub { font-size: 12px; margin-bottom: 14px; }
  .breadcrumb { font-size: 11px; margin-bottom: 8px; }
}
.cat-hero__count {
  font-size: 13px;
  color: var(--text-soft);
}
.cat-hero__count strong { color: var(--text); font-size: 16px; margin-right: 4px; }

/* Toolbar (filters + sort) */
.cat-toolbar {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
}
/* 모바일 — 필터(맛 구분 등)/정렬 바 sticky 해제 → 상품을 덮지 않고 같이 스크롤되어 사라짐.
   주의: 기본 정의보다 뒤에 있어야 적용됨 */
@media (max-width: 800px) {
  .cat-toolbar { position: static; }
}
.cat-toolbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
@media (max-width: 900px) {
  .cat-toolbar__inner { flex-direction: column; gap: 12px; }
}

.cat-filters { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cat-filter-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cat-filter-group__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  min-width: 48px;
}

.cat-sort { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cat-sort__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}
.cat-sort__select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 36px 9px 16px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.cat-sort__select:focus {
  outline: none;
  border-color: var(--text);
}

/* Products area */
.cat-products {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 32px 0;
}
.cat-products .products { padding: 0; }
/* 모바일 — 상품목록 좌우 여백 제거(상품 이미지가 화면 가득 차게). 기본 정의보다 뒤에 있어야 적용됨.
   .cat-page 한정 — 브랜드/커뮤니티 페이지(.cat-products 공용)는 기존 여백 유지 */
@media (max-width: 800px) {
  .cat-page .cat-products { padding-left: 0; padding-right: 0; }
  /* 카드 글씨는 가운데 정렬 + 좌우 숨통 (이미지는 그대로 꽉 차게) */
  .cat-page .product__brand,
  .cat-page .product__name,
  .cat-page .product__promo,
  .cat-page .product__meta {
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
  }
  .cat-page .product__meta { justify-content: center; align-items: center; }
}

/* 진열방식 토글 (모바일 상품목록 전용) — 리스트형 / 1단 / 2단 / 3단 */
.cat-viewmode { display: none; }
@media (max-width: 800px) {
  .cat-viewmode { display: flex; justify-content: center; gap: 22px; padding: 2px 0 14px; }
  .cat-viewmode button {
    background: none; border: 0; padding: 5px; cursor: pointer;
    color: var(--text); opacity: .28; line-height: 0; border-radius: 6px;
    transition: opacity .2s;
  }
  .cat-viewmode button.is-active { opacity: 1; }

  /* 단수 강제 — 토글 선택값이 기본(3단)보다 우선 */
  .cat-page .products.view-1 { grid-template-columns: 1fr; gap: 22px; }
  .cat-page .products.view-2 { grid-template-columns: repeat(2, 1fr); }
  .cat-page .products.view-3 { grid-template-columns: repeat(3, 1fr); }

  /* 리스트형 — 이미지 좌측 + 글자 우측(좌측 정렬) */
  .cat-page .products.view-list { grid-template-columns: 1fr; gap: 14px; padding: 0 12px; }
  .cat-page .products.view-list .product {
    display: grid; grid-template-columns: 112px 1fr; column-gap: 14px;
    align-content: center;
  }
  /* 1 / 5 — 브랜드·상품명·프로모션안내·가격 4행을 모두 이미지 옆에 (안내 없으면 빈 행 높이 0) */
  .cat-page .products.view-list .product__media { grid-row: 1 / 5; margin-bottom: 0; border-radius: 10px; align-self: start; }
  .cat-page .products.view-list .product__brand,
  .cat-page .products.view-list .product__name,
  .cat-page .products.view-list .product__promo,
  .cat-page .products.view-list .product__meta {
    text-align: left; padding-left: 0; padding-right: 0;
  }
  .cat-page .products.view-list .product__meta { justify-content: flex-start; align-items: flex-start; margin-bottom: 0; }
  .cat-page .products.view-list .product__name { -webkit-line-clamp: 3; }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 60px;
  padding-bottom: 20px;
}
.pagination__btn {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-soft);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all .2s;
}
.pagination__btn:hover { border-color: var(--text); color: var(--text); }
.pagination__btn.is-active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.pagination__btn--prev,
.pagination__btn--next { font-size: 18px; }
.pagination__btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 38px;
  color: var(--text-mute);
  font-weight: 600;
  font-size: 13px;
  user-select: none;
}

/* =========================================================
   Product detail page
   ========================================================= */
.product-page { padding-bottom: 80px; }

.product-breadcrumb {
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.product-breadcrumb__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}
.product-breadcrumb__inner a { color: var(--text-soft); }
.product-breadcrumb__inner a:hover { color: var(--text); }

/* Top: gallery + info */
.product-top { padding: 60px 32px 0; }
.product-top__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 900px) {
  .product-top__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* Gallery */
.product-gallery {
  position: sticky;
  top: 90px;
  align-self: start;
}
/* 모바일: 단일 컬럼 레이아웃에서 sticky가 적용되면 이미지가 정보를 덮어버림 → 해제
   주의: 위의 base 규칙(sticky)보다 반드시 뒤에 와야 캐스케이드에서 승리함 */
@media (max-width: 900px) {
  .product-gallery {
    position: static !important;
    top: auto !important;
  }
}
.product-gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--g1, #ff8b4f), var(--g2, #ffd66b));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background .3s var(--ease);
}
.product-gallery__art {
  font-size: 180px;
  filter: drop-shadow(0 16px 36px rgba(0,0,0,.25));
  transition: transform .3s var(--ease);
}
.product-gallery__main:hover .product-gallery__art { transform: scale(1.05); }
.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.product-gallery__thumb {
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--g1, #ddd), var(--g2, #999));
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.product-gallery__thumb:hover { transform: scale(1.04); }
.product-gallery__thumb.is-active { border-color: var(--text); }

/* Info */
.product-info { padding-top: 4px; }
.product-info__brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.product-info__name {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.product-info__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 22px;
  color: var(--text-soft);
}
.product-info__stars { color: #f5b800; letter-spacing: 2px; }
.product-info__rating-num strong { color: var(--text); margin-right: 2px; }
.product-info__rating-count { color: var(--text-soft); text-decoration: underline; }
.product-info__rating-count:hover { color: var(--accent); }

/* Price */
.product-info__price {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0 24px;
  margin-bottom: 22px;
}
.product-info__price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.product-info__price-discount {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.product-info__price-prev {
  text-decoration: line-through;
  color: var(--text-mute);
  font-size: 14px;
}
.product-info__price-now {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.product-info__price-now .won { font-size: 22px; font-weight: 600; margin-left: 2px; }
.product-info__price-bonus {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

/* Highlights */
.product-info__highlights {
  list-style: none;
  padding: 14px 16px;
  margin: 0 0 22px;
  background: var(--bg-soft);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.product-info__highlights li { color: var(--text-soft); }

/* Options */
.product-options { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.product-option { display: flex; align-items: flex-start; gap: 16px; }
.product-option__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  min-width: 56px;
  padding-top: 6px;
}
.product-option__chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }

.chip--out { opacity: .5; cursor: not-allowed; text-decoration: line-through; }

/* Quantity */
.product-qty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.product-qty__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  min-width: 56px;
}
.product-qty__counter {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.product-qty__btn {
  width: 38px; height: 38px;
  background: transparent;
  border: 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-soft);
}
.product-qty__btn:hover { background: var(--bg-soft); color: var(--text); }
.product-qty__input {
  width: 50px;
  text-align: center;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  -moz-appearance: textfield;
}
.product-qty__input::-webkit-outer-spin-button,
.product-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Total */
.product-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.product-total span:first-child {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 600;
}
.product-total strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.product-total .won { font-size: 18px; font-weight: 600; margin-left: 2px; }
.product-total__orig { font-size: 18px; font-weight: 600; color: var(--text-mute); text-decoration: line-through; margin-right: 10px; letter-spacing: 0; }

/* Actions */
.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 50px;
  gap: 8px;
  margin-bottom: 12px;
}
.product-actions__like {
  background: var(--bg-soft);
  border: 1px solid var(--line) !important;
  width: 50px !important; height: 50px !important;
  border-radius: 50%;
}
.product-actions__like.is-liked { background: rgba(255,90,60,.1); border-color: var(--accent) !important; }

.product-share {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 10px;
}
.product-share span { margin-right: 4px; }

/* Tabs */
.product-tabs {
  margin-top: 80px;
  border-top: 1px solid var(--line);
}
.product-tabs__nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.product-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 16px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mute);
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.product-tab:hover { color: var(--text); }
.product-tab.is-active { color: var(--text); border-bottom-color: var(--text); }
.product-tab__count {
  font-size: 11px;
  margin-left: 2px;
  color: var(--accent);
  font-weight: 700;
}

.product-panel { padding: 40px 0; }
.product-panel__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.product-panel__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.product-panel__title:not(:first-child) { margin-top: 36px; }
.product-panel__lead {
  color: var(--text-soft);
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.7;
}

/* Spec list */
.product-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 700px) { .product-spec { grid-template-columns: 1fr; } }
.product-spec > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.product-spec dt { color: var(--text-soft); font-weight: 600; }
.product-spec dd { margin: 0; color: var(--text); }

/* Reviews summary */
.reviews-summary {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 32px;
}
@media (max-width: 700px) { .reviews-summary { grid-template-columns: 1fr; gap: 18px; } }
.reviews-summary__score {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
@media (max-width: 700px) { .reviews-summary__score { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 18px; } }
.reviews-summary__score strong {
  font-size: 56px;
  font-weight: 800;
  display: block;
  letter-spacing: -0.04em;
  line-height: 1;
}
.reviews-summary__score span {
  color: #f5b800;
  letter-spacing: 4px;
  display: inline-block;
  margin: 6px 0;
}
.reviews-summary__score p { margin: 0; font-size: 13px; color: var(--text-soft); }

.reviews-summary__bars { display: flex; flex-direction: column; gap: 8px; }
.rsbar {
  display: grid;
  grid-template-columns: 14px 1fr 40px;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--text-soft);
}
.rsbar__bar {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.rsbar__bar > span {
  display: block;
  height: 100%;
  background: #f5b800;
  border-radius: 999px;
}

/* Reviews list (in tabs) */
.reviews-list { list-style: none; padding: 0; margin: 0; }
.reviews-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.reviews-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.reviews-item__meta {
  font-size: 12px;
  color: var(--text-soft);
}
.reviews-item__text { margin: 0; line-height: 1.6; font-size: 14px; }
.reviews-list__more { text-align: center; padding-top: 24px; }

/* QnA */
.qna-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.qna-header h3 { margin: 0; font-size: 18px; }
.qna-list { list-style: none; padding: 0; margin: 0; }
.qna-item {
  border-bottom: 1px solid var(--line);
}
.qna-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.qna-item summary::-webkit-details-marker { display: none; }
.qna-item__tag {
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(43,212,122,.15);
  color: #1a8c4a;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.qna-item__tag--pending {
  background: rgba(255,90,60,.12);
  color: var(--accent);
}
.qna-item__a {
  background: var(--bg-soft);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 0 0 16px 24px;
  font-size: 14px;
  line-height: 1.6;
}
.qna-item__a strong { color: var(--accent); margin-right: 6px; }

/* Generic info list */
.product-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  border-top: 1px solid var(--line);
}
.product-info-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.product-info-list strong {
  color: var(--text-soft);
  font-weight: 600;
}

/* Related */
.related {
  margin-top: 80px;
  padding: 0 32px;
}
.related__head {
  max-width: var(--max);
  margin: 0 auto 28px;
}
.related__head h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}
/* 관련상품 — 좌우 스크롤(후기 섹션과 동일 패턴) */
.related__grid {
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.related__grid::-webkit-scrollbar { height: 6px; }
.related__grid::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.related__grid::-webkit-scrollbar-track { background: transparent; }
.related__grid .product {
  flex: 0 0 calc((100% - (var(--grid-drop-pc) - 1) * var(--gap-grid-pc)) / var(--grid-drop-pc));
  min-width: 0;
  scroll-snap-align: start;
}
@media (max-width: 1100px) {
  .related__grid .product { flex-basis: calc((100% - 2 * var(--gap-grid-pc)) / 3); }
}
/* 모바일 — 2.4장 보이게 해서 옆으로 더 있다는 걸 알 수 있도록 */
@media (max-width: 800px) {
  .related__grid { gap: var(--gap-grid-mobile); }
  .related__grid .product { flex-basis: calc((100% - 2 * var(--gap-grid-mobile)) / 2.4); }
}

/* =========================================================
   Brands page
   ========================================================= */
.page { padding-bottom: 80px; }

.brand-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
}
@media (max-width: 1100px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .brand-grid { grid-template-columns: repeat(2, 1fr); } }

.brand-card {
  position: relative;
  border-radius: var(--radius);
  padding: 28px 22px 22px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--g1, #ddd), var(--g2, #999));
  color: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.15); }
.brand-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.25));
  z-index: -1;
}
.brand-card__logo {
  font-family: 'Pretendard', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: auto;
}
.brand-card__meta {
  font-size: 12px;
  opacity: .9;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.brand-card__count {
  font-size: 12px;
  font-weight: 600;
  opacity: .8;
}

/* =========================================================
   Notice / Posts list
   ========================================================= */
.post-tabs-wrap {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.post-tabs-wrap__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.post-tabs {
  display: flex;
  gap: 8px;
}
.post-tab {
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-tab:hover { color: var(--text); border-color: var(--text); }
.post-tab.is-active {
  background: #0b0b0f;
  color: #fff;
  border-color: #0b0b0f;
}
.post-tab__count {
  font-size: 11px;
  opacity: .8;
}

.post-search {
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-search__input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit;
  font-size: 13px;
  width: 220px;
  background: var(--bg-soft);
}
.post-search__input:focus { outline: none; border-color: var(--text); background: #fff; }
.post-search__btn {
  background: #0b0b0f;
  color: #fff;
  border: 0;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Post list table */
.post-list-wrap {
  max-width: var(--max);
  margin: 30px auto 0;
  padding: 0 32px;
}
.post-list {
  width: 100%;
  border-collapse: collapse;
}
.post-list th, .post-list td {
  text-align: left;
  padding: 16px 12px;
  font-size: 14px;
}
.post-list thead th {
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--line);
}
.post-list tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.post-list tbody tr:hover { background: var(--bg-soft); }
.post-list__cat { width: 80px; }
.post-list__author { width: 100px; color: var(--text-soft); }
.post-list__date { width: 110px; color: var(--text-soft); }
.post-list__views { width: 80px; color: var(--text-soft); }
.post-list a { color: var(--text); font-weight: 500; }
.post-list a:hover { color: var(--accent); }
.post-list__row--top { background: rgba(255,90,60,.04); }
.post-list__pin { margin-right: 6px; }

@media (max-width: 700px) {
  .post-list__author, .post-list__views { display: none; }
  .post-list th:nth-child(3), .post-list td:nth-child(3),
  .post-list th:nth-child(5), .post-list td:nth-child(5) { display: none; }
  /* 제목 영역 최대 확보 — 분류·날짜 칸과 셀 여백 축소 */
  .post-list th, .post-list td { padding: 13px 6px; }
  .post-list__cat { width: 48px; }
  .post-list__date { width: 70px; font-size: 12px; white-space: nowrap; }
  .post-list__title { width: auto; }
  .post-list__pin { margin-right: 4px; }
}

/* Post category badges */
.post-cat {
  display: inline-block;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
}
.post-cat--notice { background: rgba(91,141,239,.15); color: #2d52a8; }
.post-cat--event  { background: rgba(255,90,60,.15);  color: var(--accent); }
.post-cat--new    { background: rgba(43,212,122,.15); color: #1a8c4a; }
.post-cat--review { background: rgba(245,184,0,.18);  color: #b87600; }
.post-cat--qna    { background: rgba(91,141,239,.15); color: #2d52a8; }
.post-cat--tip    { background: rgba(34,197,94,.15);  color: #1a8c4a; }
.post-cat--free   { background: rgba(179,136,255,.18);color: #6b3dcc; }

/* =========================================================
   Community page
   ========================================================= */
.board-cards {
  max-width: var(--max);
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0;
}
/* 모바일: 한 줄에 2개씩(2열), 각 카드는 가로 직사각형(왼쪽 제목·메타 / 오른쪽 아이콘), 모든 카드 높이 동일 */
@media (max-width: 800px) {
  /* 섹션 32px 패딩은 유지(아래 인기글·FAQ 위젯 정상) + 카드 묶음만 음수 마진으로 좌우 16px까지 넓힘 */
  .board-cards { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; margin-bottom: 32px; margin-left: -16px; margin-right: -16px; padding-left: 0; padding-right: 0; }
  .board-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
  }
  .board-card__body { order: 1; min-width: 0; }
  .board-card__icon {
    order: 2;
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 11px;
    font-size: 20px;
  }
  .board-card__title { font-size: 15px; font-weight: 800; margin-bottom: 2px; line-height: 1.25; word-break: keep-all; }
  .board-card__desc { display: none; }
  .board-card__meta { font-size: 11px; }
  .board-card__arrow { display: none; }
}

.board-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  position: relative;
}
.board-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.06);
  border-color: var(--text);
}
.board-card__icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--g1, #5b8def), var(--g2, #a06bff));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.1));
}
.board-card__body { flex: 1; }
.board-card__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.board-card__desc {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 8px;
}
.board-card__meta {
  font-size: 12px;
  color: var(--text-mute);
}
.board-card__meta strong { color: var(--text); margin: 0 2px; font-weight: 700; }
.board-card__arrow {
  font-size: 24px;
  color: var(--text-mute);
  transition: transform .2s;
}
.board-card:hover .board-card__arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* Recent posts */
.community-recent {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px;
}
/* 인기 글 + FAQ 미리보기 래퍼 — FAQ가 보일 때(has-faq) 좌우 2단 (.board-cards 그리드와 동일 폭·간격) */
.community-widgets {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.community-widgets.has-faq { grid-template-columns: 1fr 1fr; }
.community-widgets .community-recent { max-width: none; margin: 0; }
/* FAQ 박스: 세로 flex — "전체 보기"를 하단에 고정 + 인기글 박스와 높이 동일(그리드 stretch) */
.community-recent--faq { display: flex; flex-direction: column; }
/* FAQ 항목: 윗줄 = 배지 + 조회수, 아랫줄 = 질문 제목 (인기글 그리드 레이아웃 덮어쓰기) */
.community-recent--faq .community-recent__list a {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}
.faq-row__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.community-recent--faq .post-meta { white-space: nowrap; }
.community-recent__more {
  margin-top: auto;
  align-self: flex-end;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent, #3D5BDB);
  text-decoration: none;
}
/* 인기 글 + 자주 묻는 질문 — 모바일에서도 좌우 2단 유지(폭 동일) */
@media (max-width: 800px) {
  /* 위 4개 탭(.board-cards)과 동일 폭 — 섹션 32px 패딩 안에서 좌우 16px까지 확장 */
  .community-widgets { margin-left: -16px; margin-right: -16px; }
  .community-widgets.has-faq { grid-template-columns: 1fr 1fr; gap: 10px; }
  /* min-width:0 — 긴 제목(nowrap)이 칸을 밀어내 좌우 폭이 달라지는 것 방지 */
  .community-widgets.has-faq .community-recent { padding: 16px; min-width: 0; overflow: hidden; }
  .community-widgets.has-faq .community-recent__title { font-size: 15px; white-space: nowrap; }
}
.community-recent__title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.community-recent__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.community-recent__list li + li { border-top: 1px solid var(--line); }
.community-recent__list a {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  color: var(--text);
  font-size: 14px;
}
.community-recent__list a:hover .post-title { color: var(--accent); }
.post-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  transition: color .15s;
}
.post-meta {
  font-size: 12px;
  color: var(--text-mute);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .community-recent__list a { grid-template-columns: 50px 1fr; row-gap: 4px; }
  /* 메타(작성자·시간·통계)를 배지 아래(맨 왼쪽)부터 전체 폭으로 → 오른쪽 이모지 잘림 방지 */
  .post-meta { grid-column: 1 / -1; font-size: 11px; white-space: normal; }
}

/* =========================================================
   Step indicator (cart → checkout → complete)
   ========================================================= */
.step-indicator {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  gap: 32px;
}
.step-indicator__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-mute);
  position: relative;
}
.step-indicator__item:not(:last-child)::after {
  content: '›';
  margin-left: 32px;
  color: var(--text-mute);
}
.step-indicator__item.is-active { color: var(--text); font-weight: 700; }
.step-indicator__item.is-complete { color: var(--text-soft); }
.step-indicator__num {
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}
.step-indicator__item.is-active .step-indicator__num {
  background: var(--text);
  color: #fff;
}
/* 모바일 — 스텝(장바구니·주문/결제·주문완료)을 한 줄로 유지 (띄어쓰기 있는 라벨이 두 줄로 깨지지 않게) */
@media (max-width: 700px) {
  .step-indicator {
    gap: 10px;
    margin-top: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .step-indicator::-webkit-scrollbar { display: none; }
  .step-indicator__item {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
    gap: 6px;
  }
  .step-indicator__item:not(:last-child)::after { margin-left: 10px; }
  .step-indicator__num { width: 22px; height: 22px; font-size: 11px; }
}
.step-indicator__item.is-complete .step-indicator__num {
  background: rgba(43,212,122,.15);
  color: #1a8c4a;
}

/* =========================================================
   Cart page
   ========================================================= */
.cart {
  max-width: var(--max);
  margin: 30px auto 0;
  padding: 0 32px;
}
.cart__inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 1000px) { .cart__inner { grid-template-columns: 1fr; } }

/* List header */
.cart__list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px 12px;
  border-bottom: 2px solid var(--text);
}
.cart__list-del {
  background: transparent;
  border: 0;
  color: var(--text-soft);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
}
.cart__list-del:hover { color: var(--accent); background: var(--bg-soft); }

/* Items */
.cart-items { list-style: none; padding: 0; margin: 0; }
.cart-item {
  display: grid;
  grid-template-columns: 30px 100px 1fr 160px;
  gap: 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}


.cart-item__check { display: inline-flex; }
.cart-item__check input { display: none; }

.cart-item__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--g1, #ddd), var(--g2, #999));
  border-radius: 12px;
  font-size: 48px;
}
.cart-item__media span { filter: drop-shadow(0 4px 12px rgba(0,0,0,.18)); }

.cart-item__body { min-width: 0; }
.cart-item__brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.cart-item__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}
.cart-item__name:hover { color: var(--accent); }
.cart-item__opts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cart-item__opt {
  font-size: 12px;
  padding: 3px 9px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
}
.cart-item__qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-item__del {
  background: transparent;
  border: 0;
  color: var(--text-mute);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-item__del:hover { color: var(--accent); background: var(--bg-soft); }

.cart-item__price { text-align: right; }
.cart-item__price-orig {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mute);
  text-decoration: line-through;
  margin-bottom: 2px;
}
.cart-item__price-now {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cart-item__price-unit {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 4px;
}

/* Empty cart */
.cart-empty {
  text-align: center;
  padding: 80px 20px;
}
.cart-empty__icon { font-size: 64px; margin-bottom: 18px; opacity: .5; }
.cart-empty__title { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.cart-empty__desc { color: var(--text-soft); margin: 0 0 24px; }

.cart-notice {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--bg-soft);
  padding: 14px 18px;
  border-radius: 12px;
}

/* Summary */
.cart__summary { position: sticky; top: 90px; }
.cart-summary {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.cart-summary__title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.cart-summary__rows {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-soft);
}
.cart-summary__row dd { margin: 0; color: var(--text); font-weight: 600; }
.cart-summary__discount { color: var(--accent) !important; }
.cart-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.cart-summary__total > span { font-size: 14px; font-weight: 700; }
.cart-summary__total strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cart-summary__total-orig {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-mute);
  text-decoration: line-through;
  margin-right: 8px;
  letter-spacing: 0;
}
.cart-summary__points {
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 22px;
}
.cart-summary__points strong { color: var(--accent); margin: 0 2px; }
.cart-summary__btn { width: 100%; margin-bottom: 8px; justify-content: center; }
.cart-summary__hint {
  list-style: none;
  padding: 18px 0 0;
  margin: 14px 0 0;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
}
.cart-summary__hint strong { color: var(--accent); margin: 0 2px; }

/* =========================================================
   Checkout page
   ========================================================= */
.checkout {
  max-width: var(--max);
  margin: 30px auto 0;
  padding: 0 32px;
}
.checkout__inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 1000px) { .checkout__inner { grid-template-columns: 1fr; } }
.checkout__main { display: flex; flex-direction: column; gap: 16px; }
.checkout__summary { position: sticky; top: 90px; }

.co-section {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.co-section__title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.co-section__count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mute);
}
.co-section__action {
  background: transparent;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .2s;
}
.co-section__action:hover { color: var(--text); border-color: var(--text); }

/* Order products mini-list */
.co-products { list-style: none; padding: 0; margin: 0; }
.co-product {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}
.co-product + .co-product { border-top: 1px dashed var(--line); }
.co-product__media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--g1, #ddd), var(--g2, #999));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.co-product__brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}
.co-product__name { font-size: 14px; font-weight: 700; margin: 2px 0; }
.co-product__opts { font-size: 12px; color: var(--text-soft); }
.co-product__price { font-size: 15px; font-weight: 700; }
.co-product__price-orig { font-size: 12px; font-weight: 600; color: var(--text-mute); text-decoration: line-through; display: block; }
.co-product__price-now { color: var(--accent); }

/* Form grid */
.co-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.co-grid__full { grid-column: 1 / -1; }
@media (max-width: 600px) { .co-grid { grid-template-columns: 1fr; } }

/* Pay methods */
.pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 700px) { .pay-methods { grid-template-columns: repeat(2, 1fr); } }

.pay-method input { display: none; }
.pay-method__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: all .2s;
}
.pay-method__box:hover { border-color: var(--text-soft); }
.pay-method input:checked + .pay-method__box {
  border-color: var(--text);
  background: var(--bg-soft);
}
.pay-method__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.pay-method__box--kakao .pay-method__icon { background: #fee500; color: #2c1d10; }
.pay-method__box--naver .pay-method__icon { background: #03c75a; color: #fff; }
.pay-method__box--toss .pay-method__icon  { background: #0064ff; color: #fff; }
.pay-method__name { font-size: 13px; font-weight: 600; }

/* 계좌이체 안내 박스 */
.pay-bank-info {
  margin-top: 18px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #fff7f3 0%, #faf5ff 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.pay-bank-info__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 14px;
}
.pay-bank-info__icon {
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 13px;
}
.pay-bank-info__rows {
  margin: 0 0 14px;
  padding: 0;
  border-top: 1px solid rgba(11,11,15,.06);
  border-bottom: 1px solid rgba(11,11,15,.06);
}
.pay-bank-info__rows > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(11,11,15,.06);
  font-size: 14px;
  align-items: center;
}
.pay-bank-info__rows > div:last-child { border-bottom: 0; }
.pay-bank-info__rows dt { color: var(--text-soft); font-weight: 600; font-size: 13px; }
.pay-bank-info__rows dd { margin: 0; font-weight: 600; }
.pay-bank-info__num {
  font-family: 'Pretendard', monospace;
  letter-spacing: 0.5px;
  font-size: 16px !important;
  color: var(--text);
}
.pay-bank-info__input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
}
.pay-bank-info__input:focus { outline: none; border-color: var(--text); }
.pay-bank-info__hints {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-soft);
}
.pay-bank-info__hints strong { color: var(--accent); }

/* Safe note */
.checkout__safe {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--text-mute);
}

/* =========================================================
   Order complete page
   ========================================================= */
.oc {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 0 32px;
}
.oc__inner { display: flex; flex-direction: column; gap: 16px; }

/* 상태 배너 */
.oc-status {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.oc-status--pending {
  background: linear-gradient(135deg, #fff7e0 0%, #fff7f3 100%);
  border-color: #ffd88a;
}
.oc-status--complete {
  background: linear-gradient(135deg, #e8f7ed 0%, #f0f9ff 100%);
  border-color: #4caf50;
}
.oc-status__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  background: rgba(255,255,255,.7);
}
.oc-status--pending .oc-status__icon { background: #ffd88a; }
.oc-status--complete .oc-status__icon { background: #4caf50; color: #fff; font-weight: 800; }
.oc-status__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.oc-status__desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* 마감 카운트다운 */
.oc-deadline {
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.oc-deadline__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.oc-deadline__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.oc-deadline__deadline {
  font-family: 'Pretendard', monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}
.oc-deadline__bar {
  height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.oc-deadline__bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ffd88a);
  border-radius: 999px;
  transition: width 1s linear;
  width: 100%;
}
.oc-deadline__warn {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

/* 계좌 정보 */
.oc-bank {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.oc-bank__title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.oc-bank__rows {
  margin: 0;
  border-top: 2px solid var(--text);
}
.oc-bank__rows > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.oc-bank__rows dt { color: var(--text-soft); font-weight: 600; font-size: 13px; }
.oc-bank__rows dd { margin: 0; font-weight: 600; font-size: 14px; }
.oc-bank__num {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Pretendard', monospace;
  font-size: 18px !important;
  letter-spacing: 0.4px;
}
.oc-bank__copy {
  background: var(--text);
  color: #fff;
  border: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.oc-bank__copy:hover { background: var(--accent); }
.oc-bank__amount { font-size: 16px !important; }
.oc-bank__amount strong {
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
  margin-right: 2px;
}
.oc-bank__hint {
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 400;
  margin-left: 6px;
}
.oc-bank__cta {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
}

/* 주문/결제 정보 카드 (공통) */
.oc-info,
.oc-products-wrap,
.oc-pay-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.oc-info__title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.oc-info__rows {
  margin: 0;
  border-top: 1px solid var(--line);
}
.oc-info__rows > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.oc-info__rows > div:last-child { border-bottom: 0; }
.oc-info__rows dt { color: var(--text-soft); font-weight: 600; font-size: 13px; }
.oc-info__rows dd { margin: 0; }
.oc-info__order-no {
  font-family: 'Pretendard', monospace;
  font-weight: 700;
  font-size: 15px !important;
  color: var(--accent);
}

.oc-products { margin: 0; }

/* 액션 */
.oc-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.oc-actions .btn { flex: 1; justify-content: center; }
@media (max-width: 600px) {
  .oc-actions { flex-direction: column; }
}

/* =========================================================
   My page (sidebar layout)
   ========================================================= */
.mp-page { padding: 30px 32px 80px; }

.mp-layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .mp-layout { grid-template-columns: 1fr; }
}

/* Sidebar */
.mp-side {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 200px;
}
@media (max-width: 900px) {
  /* 모바일 — 사이드바(프로필·메뉴)를 콘텐츠 아래(하단)로 이동, 대시보드 내용이 먼저 보이게 */
  .mp-side { position: static; order: 2; }
  .mp-content { order: 1; }
}
/* 모바일 마이페이지 — 하위페이지 콘텐츠가 틀(화면)을 벗어나지 않게 */
@media (max-width: 700px) {
  /* 상태/카테고리 필터 탭: 한 줄 유지하되 가로 스크롤 (글자 세로로 깨지지 않게)
     — 마이페이지(.mp-content) + FAQ·공지·이벤트(.post-tabs-wrap) 공통 적용 */
  .mp-content .post-tabs,
  .post-tabs-wrap .post-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -2px;
  }
  .mp-content .post-tabs::-webkit-scrollbar,
  .post-tabs-wrap .post-tabs::-webkit-scrollbar { display: none; }
  .mp-content .post-tab,
  .post-tabs-wrap .post-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 12px;
  }
  /* 카드 안의 넓은 콘텐츠(표 등)는 카드 내부에서 가로 스크롤 */
  .mp-card { overflow-x: auto; }
  .mp-card table { min-width: 0; }
}
/* 좁은 폰 화면 — 주문조회 상태 탭(전체·입금대기·결제완료·배송준비…)을 더 촘촘히 해
   한 줄에 최대한 들어오게 하고, 글자가 잘리지 않게 */
@media (max-width: 500px) {
  .mp-content .post-tabs { gap: 4px; }
  .mp-content .post-tab {
    padding: 7px 9px;
    font-size: 11px;
    gap: 4px;
  }
  .mp-content .post-tab__count { display: none; }
}

.mp-side__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mp-side__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.mp-side__info { min-width: 0; flex: 1; }
.mp-side__grade { margin-bottom: 4px; }
.mp-grade-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-elev);
  color: var(--text-soft);
}
.mp-grade-badge--gold {
  background: linear-gradient(135deg, #ffd66b, #f59e0b);
  color: #2a1a08;
}
.mp-grade-badge--vip {
  background: linear-gradient(135deg, #2a2a36, #4a3a6a);
  color: #fff;
}
.mp-side__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mp-side__meta {
  font-size: 12px;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-side__nav { display: flex; flex-direction: column; }
.mp-side__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-soft);
  transition: all .15s;
  margin: 0 -8px;
}
.mp-side__link:hover { background: var(--bg-soft); color: var(--text); }
.mp-side__link.is-active {
  background: var(--text);
  color: #fff;
  font-weight: 700;
}
.mp-side__link.is-active .mp-side__count {
  background: rgba(255,255,255,.18);
  color: #fff;
}
.mp-side__link--danger { color: var(--text-mute); }
.mp-side__count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-soft);
}
.mp-side__divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px -8px;
}

/* Content */
.mp-content { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Greeting */
.mp-greet {
  background: linear-gradient(135deg, #fff7f3 0%, #faf5ff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.mp-greet__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.mp-greet__title strong { color: var(--accent); }
.mp-greet__sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-soft);
}
.mp-greet__sub strong { color: var(--text); }
.mp-greet__bar {
  height: 6px;
  background: rgba(11,11,15,.06);
  border-radius: 999px;
  overflow: hidden;
}
.mp-greet__bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

/* Widgets */
.mp-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .mp-widgets { grid-template-columns: repeat(2, 1fr); } }

.mp-widget {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all .2s;
}
.mp-widget:hover {
  transform: translateY(-2px);
  border-color: var(--text);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}
.mp-widget--accent {
  background: linear-gradient(135deg, #ff5a3c, #ff8b4f);
  color: #fff;
  border-color: transparent;
}
.mp-widget__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}
.mp-widget--accent .mp-widget__label { color: rgba(255,255,255,.85); }
.mp-widget__value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mp-widget__unit { font-size: 14px; font-weight: 700; margin-left: 2px; }
.mp-widget__hint {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 2px;
}
.mp-widget--accent .mp-widget__hint { color: rgba(255,255,255,.75); }

/* Cards */
.mp-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.mp-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.mp-card__title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}
.mp-card__more {
  font-size: 12px;
  color: var(--text-soft);
}
.mp-card__more:hover { color: var(--accent); }

/* Order status flow */
.mp-order-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  flex-wrap: wrap;
}
.mp-order-status__item {
  text-align: center;
  flex: 1;
  min-width: 80px;
}
/* 클릭 가능한 상태 칸(a) — 해당 상태의 주문내역 탭으로 이동 */
a.mp-order-status__item { text-decoration: none; color: inherit; border-radius: 10px; padding: 4px 0; transition: background .12s; }
a.mp-order-status__item:hover { background: var(--bg-elev, #f5f5f8); }
a.mp-order-status__item:hover .mp-order-status__label { color: var(--text); text-decoration: underline; }
.mp-order-status__num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mp-order-status__label {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
}
.mp-order-status__sep {
  color: var(--text-mute);
  font-size: 18px;
  flex-shrink: 0;
}

/* Order list (recent) */
.mp-order-list { list-style: none; padding: 0; margin: 0; }
.mp-order-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.mp-order-item:first-child { border-top: 0; padding-top: 0; }
.mp-order-item__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.mp-order-item__no {
  font-family: 'Pretendard', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.mp-order-item__date {
  font-size: 12px;
  color: var(--text-mute);
}
.mp-order-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  margin-left: auto;
  white-space: nowrap;
  flex: 0 0 auto;
}
.mp-order-status-badge--pending  { background: rgba(255,184,0,.15); color: #b87600; }
.mp-order-status-badge--paid     { background: rgba(91,141,239,.15); color: #2d52a8; }
.mp-order-status-badge--ready    { background: rgba(91,141,239,.15); color: #2d52a8; }
.mp-order-status-badge--shipping { background: rgba(255,90,60,.15); color: var(--accent); }
.mp-order-status-badge--done     { background: rgba(43,212,122,.15); color: #1a8c4a; }
.mp-order-status-badge--cancel   { background: var(--bg-soft); color: var(--text-mute); }

.mp-order-item__body {
  display: flex;
  align-items: center;
  gap: 12px;
}
.co-product__media--sm {
  width: 50px; height: 50px;
  font-size: 24px;
  flex-shrink: 0;
}
.mp-order-item__name {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}
.mp-order-item__total {
  font-size: 15px;
  font-weight: 700;
}

/* 1:1 문의 펼치기 (대시보드 내역) */
.mp-inq { width: 100%; }
.mp-inq__head {
  cursor: pointer;
  margin-bottom: 0;
  list-style: none;
  user-select: none;
}
.mp-inq__head::-webkit-details-marker { display: none; }
.mp-inq__head::before {
  content: '▸';
  color: var(--text-mute);
  font-size: 11px;
  transition: transform .15s ease;
  flex: 0 0 auto;
}
.mp-inq[open] > .mp-inq__head::before { transform: rotate(90deg); }
.mp-inq__subject {
  color: var(--text);
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.mp-inq__body {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}
.mp-inq__q { white-space: pre-wrap; color: var(--text); }
.mp-inq__a {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  white-space: pre-wrap;
  color: var(--text);
}
.mp-inq__a--wait { color: var(--text-mute); }
.mp-inq__a strong, .mp-inq__q strong { color: var(--accent); margin-right: 4px; }
.mp-inq__date { color: var(--text-mute); font-size: 12px; }
.mp-inq__imgs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mp-inq__imgs img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

/* My page sub heading */
.mp-page-head { padding: 0 4px 6px; }
.mp-page-head__title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.mp-page-head__sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

/* Order cards (list view) */
.mp-orders { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.mp-order-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.mp-order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mp-order-card__head > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mp-order-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
  gap: 8px;
}
.mp-order-card__total { font-size: 14px; color: var(--text-soft); }
.mp-order-card__total strong { color: var(--text); font-size: 18px; font-weight: 800; margin-left: 6px; }
.mp-order-card__actions { display: flex; gap: 6px; }
.mp-order-card__actions .btn { padding: 9px 14px; font-size: 13px; }

/* Sub-page generic content */
.mp-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.mp-empty__icon { font-size: 48px; opacity: .5; margin-bottom: 12px; }
.mp-empty__title { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.mp-empty__desc { font-size: 13px; color: var(--text-soft); margin: 0 0 16px; }

/* My page wishlist */
.mp-wish-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
}
@media (max-width: 1100px) { .mp-wish-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .mp-wish-grid { grid-template-columns: repeat(2, 1fr); } }

/* Coupons */
.coupons { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.coupon {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #fff7f3 0%, #fff 60%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
/* 절취선 펀치 구멍 장식 — 금액 글씨 침범 이슈로 제거 (2026-06-05) */
.coupon::before, .coupon::after { display: none; }

.coupon__amount {
  flex-shrink: 0;
  width: 130px;
  text-align: center;
  font-family: 'Pretendard', sans-serif;
  font-size: 36px;
  letter-spacing: 0;
  line-height: 1;
  color: var(--accent);
  border-right: 2px dashed var(--line);
  padding-right: 14px;
}
.coupon__amount span { font-size: 18px; margin-left: 2px; }
.coupon__amount--pct { color: #b87600; }
.coupon__body { flex: 1; min-width: 0; padding-left: 14px; }
.coupon__name { font-size: 15px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.coupon__cond { font-size: 12px; color: var(--text-soft); margin-bottom: 4px; }
.coupon__exp { font-size: 11px; color: var(--text-mute); }
.coupon__exp--warn { color: var(--accent); font-weight: 700; }

/* 모바일 — 금액 130px + 버튼이 가로를 다 차지해 쿠폰 이름이 세로로 깨지는 문제 보정 */
@media (max-width: 700px) {
  .coupon { gap: 10px; padding: 14px 12px; }
  .coupon__amount { width: 78px; font-size: 22px; padding-right: 10px; }
  .coupon__amount span { font-size: 13px; }
  .coupon__body { padding-left: 4px; }
  .coupon__name { font-size: 13px; word-break: keep-all; }
  .coupon__cond { font-size: 11px; }
  .coupon .btn { padding: 8px 12px; font-size: 12px; flex-shrink: 0; }
}

/* Points */
.points-summary {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  align-items: center;
}
@media (max-width: 700px) { .points-summary { grid-template-columns: 1fr; } }
.points-summary__main {
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
@media (max-width: 700px) { .points-summary__main { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 24px; } }
.points-summary__label { font-size: 13px; color: var(--text-soft); margin-bottom: 6px; }
.points-summary__value {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.points-summary__value span { font-size: 22px; margin-left: 4px; color: var(--accent); }

.points-summary__rows {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.points-summary__rows li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-soft);
}
.points-summary__rows strong { color: var(--text); font-weight: 700; }
.points-summary__rows .warn { color: var(--accent); }

/* Addresses */
.addr-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.addr-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.addr-item__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.addr-item__name { font-weight: 700; font-size: 15px; }
.addr-item__label {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--text-soft);
}
.addr-item__default {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: auto;
}
.addr-item__addr { font-size: 14px; margin-bottom: 4px; }
.addr-item__phone { font-size: 13px; color: var(--text-soft); margin-bottom: 14px; }
.addr-item__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.addr-item__actions .btn { padding: 8px 14px; font-size: 13px; }

/* =========================================================
   Support page
   ========================================================= */
.support {
  max-width: var(--max);
  margin: 30px auto 0;
  padding: 0 32px;
}
.support__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1000px) { .support__inner { grid-template-columns: minmax(0, 1fr); } }
/* 그리드 아이템이 내부의 안 줄어드는 요소(첨부파일 input·긴 텍스트) 때문에
   화면 폭을 넘지 않도록 min-width:0 (가로 넘침·공백 방지) */
.support__form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.support__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* 첨부파일 input은 모바일에서 폭을 넘기기 쉬워 추가로 제한 */
.field__input[type="file"] { max-width: 100%; }

.support-channels { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.support-channel {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-soft);
  border-radius: 12px;
  align-items: flex-start;
}
.support-channel__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  font-weight: 800;
}
.support-channel__body strong { display: block; font-size: 14px; margin-bottom: 4px; }
.support-channel__body p { margin: 0; font-size: 12px; color: var(--text-soft); line-height: 1.5; }
.support-channel__cta {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.support-quick { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.support-quick li { border-bottom: 1px dashed var(--line); }
.support-quick li:last-child { border-bottom: 0; }
.support-quick a {
  display: block;
  padding: 11px 4px;
  font-size: 13px;
  color: var(--text);
}
.support-quick a:hover { color: var(--accent); }

/* =========================================================
   FAQ page
   ========================================================= */
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  padding: 18px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  margin-left: auto;
  font-size: 22px;
  color: var(--text-mute);
  font-weight: 300;
  transition: transform .2s;
}
.faq-item details[open] summary::after { content: '−'; color: var(--accent); }
.faq-item__a {
  padding: 4px 4px 22px;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 14px;
}

/* =========================================================
   Legal pages (terms, privacy)
   ========================================================= */
.legal {
  max-width: 900px;
  margin: 30px auto 0;
  padding: 0 32px 80px;
}
.legal__inner { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
@media (max-width: 800px) { .legal__inner { grid-template-columns: 1fr; gap: 16px; } }

.legal-toc {
  position: sticky;
  top: 90px;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 13px;
}
@media (max-width: 800px) { .legal-toc { position: static; } }
.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-toc a {
  color: var(--text-soft);
  display: block;
  padding: 4px 0;
  font-size: 12px;
  line-height: 1.5;
}
.legal-toc a:hover { color: var(--accent); }

.legal__body section {
  padding: 16px 0 24px;
  border-bottom: 1px dashed var(--line);
}
.legal__body section:last-of-type { border-bottom: 0; }
.legal__body h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.legal__body h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 6px;
  color: var(--text);
}
.legal__body p, .legal__body li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}
.legal__body p { margin: 0 0 12px; }
.legal__body ol, .legal__body ul {
  padding-left: 22px;
  margin: 0 0 12px;
}
.legal__body ol li, .legal__body ul li { margin-bottom: 6px; }
.legal__body a { color: var(--accent); text-decoration: underline; }
.legal__effective {
  margin-top: 30px !important;
  padding-top: 18px;
  border-top: 2px solid var(--text);
  font-size: 13px;
  color: var(--text-soft);
  text-align: right;
}

/* Legal table */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13px;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  line-height: 1.5;
}
.legal-table th {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 12px;
}

.legal-contact {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  margin: 12px 0;
}

/* =========================================================
   Admin panel — Cafe24 style (white sidebar + top header)
   ========================================================= */
.ad-body {
  /* Cafe24-inspired palette: blue primary, orange accent, neutral grays */
  --ad-primary: #2C5BFF;
  --ad-primary-dark: #1f47cc;
  --ad-primary-soft: #eef3ff;
  --ad-accent: #FF6B35;
  --ad-bg: #f4f6fa;
  --ad-surface: #ffffff;
  --ad-line: #e5e8ef;
  --ad-line-soft: #eef0f5;
  --ad-text: #2a2e39;
  --ad-text-soft: #5a6275;
  --ad-text-mute: #8a92a6;
  --ad-side-w: 220px;
  --ad-top-h: 56px;
  --ad-nav-h: 42px;
  background: var(--ad-bg);
  color: var(--ad-text);
}

/* Login */
.ad-login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a3aa8 0%, #2C5BFF 55%, #6a8bff 100%);
  padding: 24px;
}
.ad-login-card {
  background: #fff;
  width: min(440px, 100%);
  border-radius: 16px;
  padding: 44px 40px 36px;
  box-shadow: 0 24px 60px rgba(20, 35, 90, .25);
}
.ad-login__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.ad-login__mark {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ad-primary, #2C5BFF);
  color: #fff;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 800;
}
.ad-login__brand-name {
  font-family: 'Pretendard', sans-serif;
  letter-spacing: 0.16em;
  font-size: 22px;
}
.ad-login__brand-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ad-primary, #2C5BFF);
}
.ad-login__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.ad-login__sub {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 26px;
}
.ad-login__error {
  background: #fee;
  border: 1px solid #fbb;
  color: #c33;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}
.ad-login__back {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-mute);
}
.ad-login__back:hover { color: var(--ad-primary, #2C5BFF); }

/* Layout — top header + main tab nav + sidebar + content */
.ad-layout {
  display: grid;
  grid-template-columns: var(--ad-side-w) 1fr;
  grid-template-rows: var(--ad-top-h) 42px 1fr;
  grid-template-areas:
    "top  top"
    "nav  nav"
    "side main";
  min-height: 100vh;
}
@media (max-width: 800px) {
  .ad-layout {
    grid-template-columns: 1fr;
    grid-template-rows: var(--ad-top-h) 42px auto 1fr;
    grid-template-areas:
      "top"
      "nav"
      "side"
      "main";
  }
}

/* Main tab nav (under top header) */
.ad-nav {
  grid-area: nav;
  position: sticky;
  top: var(--ad-top-h);
  z-index: 25;
  background: #fff;
  border-bottom: 1px solid var(--ad-line);
  display: flex;
  align-items: stretch;
  padding: 0 20px;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ad-nav::-webkit-scrollbar { display: none; }
.ad-nav__tab {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ad-text-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.ad-nav__tab:hover { color: var(--ad-text); background: #f7f8fb; }
.ad-nav__tab.is-active {
  color: var(--ad-primary);
  border-bottom-color: var(--ad-primary);
}

/* Top header */
.ad-top {
  grid-area: top;
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--ad-line);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px 0 0;
  box-shadow: 0 1px 0 rgba(20,35,90,.02);
}
.ad-top__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--ad-top-h);
  width: var(--ad-side-w);
  padding: 0 20px;
  border-right: 1px solid var(--ad-line);
  color: var(--ad-text);
}
.ad-top__brand-mark {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ad-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
}
.ad-top__brand-text {
  font-family: 'Pretendard', sans-serif;
  letter-spacing: 0.16em;
  font-size: 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ad-top__brand-text em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ad-primary);
  font-weight: 800;
}
.ad-top__bread {
  font-size: 13px;
  color: var(--ad-text-soft);
  font-weight: 600;
}
.ad-top__bread strong { color: var(--ad-text); font-weight: 700; }
.ad-top__bread span { color: var(--ad-text-mute); margin: 0 6px; }
.ad-top__search {
  margin-left: auto;
  position: relative;
}
.ad-top__search input {
  width: 260px;
  height: 36px;
  border: 1px solid var(--ad-line);
  background: #f7f8fb;
  border-radius: 999px;
  padding: 0 14px 0 36px;
  font-size: 13px;
  color: var(--ad-text);
  outline: none;
  transition: border-color .15s, background .15s;
}
.ad-top__search input:focus { border-color: var(--ad-primary); background: #fff; }
.ad-top__search::before {
  content: '🔍';
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: .55;
  pointer-events: none;
}
.ad-top__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ad-top__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--ad-primary-soft);
  color: var(--ad-primary);
  font-size: 12px;
  font-weight: 700;
}
.ad-top__link:hover { background: var(--ad-primary); color: #fff; }
.ad-top__icon {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 50%;
  font-size: 15px;
  color: var(--ad-text-soft);
  cursor: pointer;
}
.ad-top__icon:hover { background: #f4f6fb; color: var(--ad-text); }
.ad-top__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px solid var(--ad-line);
  height: 36px;
}
.ad-top__user-info { min-width: 0; }
.ad-top__user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ad-text);
  line-height: 1.15;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-top__user-role {
  font-size: 10px;
  color: var(--ad-text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 800px) {
  .ad-top__brand { width: auto; border-right: 0; }
  .ad-top__bread, .ad-top__search { display: none; }
  .ad-top__user-info { display: none; }
}

/* Sidebar — white panel */
.ad-side {
  grid-area: side;
  background: #fff;
  color: var(--ad-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: calc(var(--ad-top-h) + var(--ad-nav-h));
  height: calc(100vh - var(--ad-top-h) - var(--ad-nav-h));
  border-right: 1px solid var(--ad-line);
  padding: 0;
}
.ad-side__head {
  padding: 16px 20px 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ad-text);
  border-bottom: 1px solid var(--ad-line-soft);
  letter-spacing: -0.01em;
}
.ad-side__nav {
  display: flex;
  flex-direction: column;
  padding: 6px 0 14px;
  flex: 1;
  overflow-y: auto;
}
.ad-side__nav::-webkit-scrollbar { width: 6px; }
.ad-side__nav::-webkit-scrollbar-thumb { background: #d8dde7; border-radius: 4px; }
.ad-side__group {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ad-text-mute);
  padding: 12px 20px 4px;
  text-transform: none;
}
.ad-side__group:first-child { padding-top: 8px; }
.ad-side__link {
  display: flex;
  align-items: center;
  position: relative;
  padding: 8px 20px 8px 28px;
  color: var(--ad-text-soft);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s;
  border-radius: 0;
}
.ad-side__link::before {
  content: '·';
  position: absolute;
  left: 20px;
  color: var(--ad-text-mute);
  font-weight: 700;
}
.ad-side__link-ic {
  display: inline-flex;
  width: 18px;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.ad-side__link:hover {
  background: #f4f6fb;
  color: var(--ad-text);
}
.ad-side__link.is-active {
  background: var(--ad-primary-soft);
  color: var(--ad-primary);
  font-weight: 700;
}
.ad-side__link.is-active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ad-primary);
}
.ad-side__link--soon {
  position: relative;
  opacity: .55;
}
.ad-side__link--soon::after {
  content: 'soon';
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: #f0f2f7;
  color: var(--ad-text-mute);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* Legacy: user block was in sidebar; keep avatar style so existing initials work in top */
.ad-side__user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ad-primary), var(--ad-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.ad-side__logout {
  background: transparent;
  border: 0;
  color: var(--ad-text-mute);
  cursor: pointer;
  font-size: 15px;
  padding: 6px 8px;
  border-radius: 6px;
}
.ad-side__logout:hover { background: #f4f6fb; color: var(--ad-accent); }

/* Content */
.ad-content {
  grid-area: main;
  padding: 24px 28px 60px;
  background: var(--ad-bg);
  min-width: 0;
}
.ad-content__head {
  margin-bottom: 20px;
}
.ad-content__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  color: var(--ad-text);
}
.ad-content__sub {
  font-size: 13px;
  color: var(--ad-text-soft);
}

/* Widgets */
.ad-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 1100px) { .ad-widgets { grid-template-columns: repeat(2, 1fr); } }
.ad-widget {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid var(--ad-line);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.ad-widget:hover {
  border-color: var(--ad-primary);
  box-shadow: 0 6px 18px rgba(44,91,255,.08);
  transform: translateY(-1px);
}
.ad-widget__label { font-size: 12px; color: var(--ad-text-soft); margin-bottom: 8px; font-weight: 600; }
.ad-widget__value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--ad-text); }
.ad-widget__hint { font-size: 11px; color: var(--ad-text-mute); margin-top: 6px; }

/* Card */
.ad-card {
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 12px;
}
.ad-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ad-line-soft);
}
.ad-card__title {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ad-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ad-card__title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--ad-primary);
  border-radius: 2px;
}
.ad-card__more {
  font-size: 12px;
  color: var(--ad-text-soft);
  font-weight: 600;
}
.ad-card__more:hover { color: var(--ad-primary); }

/* Quick list (settings preview) */
.ad-quick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ad-quick-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ad-line-soft);
  color: var(--ad-text);
}
.ad-quick-list li:last-child { border-bottom: 0; }
.ad-pill {
  display: inline-flex;
  width: 44px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}
.ad-pill--on  { background: rgba(44,91,255,.12); color: var(--ad-primary); }
.ad-pill--off { background: #f0f2f7; color: var(--ad-text-mute); }

/* =========================================================
   Admin form — Cafe24-style label-left table layout
   Applied scoped to admin modals/pages so user-facing forms
   remain untouched.
   ========================================================= */
.ad-body .ad-modal__panel {
  max-width: 880px;
  border-radius: 8px;
}
.ad-body .ad-modal__head {
  background: #f7f8fb;
  border-bottom: 1px solid var(--ad-line);
  padding: 16px 22px;
}
.ad-body .ad-modal__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ad-text);
}
.ad-body .ad-modal__close {
  background: transparent;
  color: var(--ad-text-soft);
}
.ad-body .ad-modal__body {
  padding: 0 22px;
}
.ad-body .ad-modal__foot {
  background: #f7f8fb;
  padding: 14px 22px;
  border-top: 1px solid var(--ad-line);
}

/* Modal forms: one column, label-on-left table rows */
.ad-body .ad-modal__body .co-grid {
  display: block;
  margin: 0;
}
.ad-body .ad-modal__body .co-grid > .field,
.ad-body .ad-modal__body .co-grid > .field.co-grid__full {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: start;
  gap: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--ad-line-soft);
  background: transparent;
  margin: 0;
}
.ad-body .ad-modal__body .co-grid > .field:first-child { padding-top: 16px; }
.ad-body .ad-modal__body .co-grid > .field:last-child { border-bottom: 0; padding-bottom: 16px; }
.ad-body .ad-modal__body .field__label {
  padding: 10px 14px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ad-text);
  letter-spacing: 0;
  text-transform: none;
  background: transparent;
}
.ad-body .ad-modal__body .field__label .required {
  color: var(--ad-accent);
  margin-left: 2px;
  font-weight: 800;
}
.ad-body .ad-modal__body .field__label .optional {
  color: var(--ad-text-mute);
  font-weight: 500;
  margin-left: 4px;
  font-size: 11px;
}

/* Inputs inside admin: white background, square-ish, blue focus */
.ad-body .field__input-wrap {
  background: #fff;
  border-radius: 6px;
  border-color: var(--ad-line);
  padding: 0 12px;
}
.ad-body .field__input-wrap:focus-within {
  border-color: var(--ad-primary);
  box-shadow: 0 0 0 3px rgba(44,91,255,.12);
  background: #fff;
}
.ad-body .field__input {
  padding: 9px 0;
  font-size: 13px;
  color: var(--ad-text);
}
.ad-body .field__input::placeholder { color: var(--ad-text-mute); }

/* Buttons — admin primary uses Cafe24 blue */
.ad-body .btn--primary,
.ad-modal .btn--primary {
  background: var(--ad-primary, #2C5BFF);
  color: #fff;
  border-radius: 6px;
}
.ad-body .btn--primary:hover,
.ad-modal .btn--primary:hover {
  background: var(--ad-primary-dark, #1f47cc);
  color: #fff;
  transform: none;
}
.ad-body .btn--outline,
.ad-modal .btn--outline {
  background: #fff;
  border-radius: 6px;
  border-color: var(--ad-line);
  color: var(--ad-text);
}
.ad-body .btn--outline:hover,
.ad-modal .btn--outline:hover {
  border-color: var(--ad-primary);
  color: var(--ad-primary);
}
.ad-body .btn--ghost,
.ad-modal .btn--ghost {
  background: #f4f6fb;
  color: var(--ad-text-soft);
  border-radius: 6px;
}
.ad-body .btn--ghost:hover,
.ad-modal .btn--ghost:hover { background: #e9ecf3; color: var(--ad-text); }
.ad-body .btn--mini { background: var(--ad-primary); border-radius: 4px; }
.ad-body .btn--mini:hover { background: var(--ad-primary-dark); }
.ad-body .btn { transition: background .15s, color .15s, border-color .15s; }

/* List page tabs (filter pills) — Cafe24 tone in admin */
.ad-body .post-tab {
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12px;
}
.ad-body .post-tab.is-active {
  background: var(--ad-primary);
  border-color: var(--ad-primary);
  color: #fff;
}
.ad-body .post-tab:hover { color: var(--ad-text); border-color: var(--ad-primary); }
.ad-body .post-tab.is-active:hover { color: #fff; }

/* List tables in admin: tighter, blue header tint */
.ad-body .post-list thead th {
  background: #f7f8fb;
  color: var(--ad-text-soft);
  border-top: 1px solid var(--ad-line);
  border-bottom: 1px solid var(--ad-line);
  font-size: 12px;
  padding: 12px 12px;
}
.ad-body .post-list th,
.ad-body .post-list td { padding: 12px 12px; font-size: 13px; }
.ad-body .post-list tbody tr { border-bottom: 1px solid var(--ad-line-soft); }
.ad-body .post-list tbody tr:hover { background: #f7f8fb; }
.ad-body .post-list a { color: var(--ad-text); }
.ad-body .post-list a:hover { color: var(--ad-primary); }
.ad-body .post-list__row--top { background: rgba(44,91,255,.04); }

/* Search input inside admin filter bars */
.ad-body .post-search__input,
.ad-body input[type="search"] {
  background: #fff;
  border-radius: 6px;
  border-color: var(--ad-line);
}
.ad-body .post-search__input:focus,
.ad-body input[type="search"]:focus {
  border-color: var(--ad-primary);
  box-shadow: 0 0 0 3px rgba(44,91,255,.12);
  outline: none;
}

/* Status */
.ad-status {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.ad-status li { display: flex; align-items: center; gap: 8px; }
.ad-status__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.ad-status__dot--ok { background: #2bd47a; box-shadow: 0 0 0 4px rgba(43,212,122,.15); }
.ad-status code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Toggles (admin settings) */
.ad-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ad-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: all .15s;
}
.ad-toggle:hover { border-color: var(--line); }
.ad-toggle input { display: none; }
.ad-toggle__sw {
  flex-shrink: 0;
  width: 46px; height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background .2s;
}
.ad-toggle__sw::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  top: 2px; left: 2px;
  transition: left .2s;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.ad-toggle input:checked + .ad-toggle__sw { background: var(--accent); }
.ad-toggle input:checked + .ad-toggle__sw::after { left: 22px; }
.ad-toggle__body { flex: 1; }
.ad-toggle__label { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.ad-toggle__desc { font-size: 12px; color: var(--text-soft); }

.ad-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 24px;
}

/* Toast */
.ad-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 30px);
  background: #1a1a24;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  opacity: 0;
  transition: all .25s;
  z-index: 1000;
}
.ad-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.ad-toast--success { background: #1a8c4a; }
.ad-toast--error { background: var(--accent); }

/* Modal (admin) */
.ad-modal {
  position: fixed;
  inset: 0;
  background: rgba(11,11,15,.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
  animation: fadeIn .2s ease-out;
}
.ad-modal__panel {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
}
.ad-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.ad-modal__title { margin: 0; font-size: 18px; font-weight: 800; }
.ad-modal__close {
  background: var(--bg-soft);
  border: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-soft);
}
.ad-modal__body {
  padding: 22px 26px;
  overflow-y: auto;
  flex: 1;
}
.ad-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
}

/* Banner preview (in modal) */
.ad-banner-preview-wrap {
  margin-top: 18px;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
}
.ad-banner-preview__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ad-banner-preview {
  aspect-ratio: 1800 / 700;
  max-width: 520px;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #1a1a24, #4a3a6a);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ad-banner-preview__inner { position: relative; z-index: 1; max-width: 60%; }
.ad-banner-preview__badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  margin-bottom: 8px;
}
.ad-banner-preview__title {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 0.96;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.ad-banner-preview__desc { font-size: 11px; line-height: 1.5; margin: 0 0 10px; opacity: .9; }
.ad-banner-preview__cta {
  display: inline-block;
  background: rgba(0,0,0,.4);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}
.ad-banner-preview--mobile {
  aspect-ratio: 4 / 5;
  max-width: 180px;
  padding: 14px;
  align-items: flex-end;
}
/* 실제 모바일 배너는 이미지에 텍스트가 포함되어 오버레이를 숨기므로(.banner-slide__inner display:none),
   미리보기도 동일하게 텍스트 오버레이를 숨겨 이미지만 보이게 함 */
.ad-banner-preview--mobile .ad-banner-preview__inner { display: none; }

/* 이미지 첨부 컴포넌트 */
.ad-upload {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.ad-upload__thumb {
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: 16 / 7;
  border-radius: 8px;
  background-color: #e9e9ee;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.ad-upload__thumb:hover { border-color: var(--text-soft); }
.ad-upload__thumb > * { pointer-events: none; }
.ad-upload__thumb.is-filled { border-style: solid; border-color: transparent; }
.ad-upload__thumb.is-dragover {
  border-style: dashed;
  border-color: var(--accent, #6c5ce7);
  background-color: rgba(108, 92, 231, .08);
  transform: scale(1.01);
}
.ad-upload__thumb.is-dragover .ad-upload__empty { color: var(--accent, #6c5ce7); font-weight: 600; }
.ad-upload__thumb--mobile { width: 110px; aspect-ratio: 4 / 5; }
.ad-upload__empty {
  font-size: 12px;
  color: var(--text-mute);
}
.ad-upload__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding-top: 4px;
  min-width: 0;
}
.ad-upload__actions .btn { min-width: 110px; }
.ad-upload__status {
  font-size: 12px;
  color: var(--text-soft);
  white-space: nowrap;
}

/* Banner row list */
.ad-banners {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ad-banner-row {
  display: grid;
  grid-template-columns: 26px 32px 1fr 1.6fr 80px auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.ad-banner-row__handle { color: var(--text-mute); font-size: 18px; cursor: grab; user-select: none; }
.ad-banner-row__order {
  background: var(--text);
  color: #fff;
  border-radius: 50%;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.ad-banner-row__thumb {
  height: 64px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 14px;
  overflow: hidden;
}
.ad-banner-row__badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: .9;
  margin-bottom: 2px;
  text-transform: uppercase;
}
.ad-banner-row__title {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-banner-row__info { min-width: 0; }
.ad-banner-row__cta { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.ad-banner-row__url { font-size: 11px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muted { color: var(--text-mute); }
.ad-banner-row__toggle { display: flex; justify-content: center; }
.ad-banner-row__actions { display: flex; gap: 4px; }
.ad-banner-row__actions .btn { padding: 6px 10px; font-size: 12px; }

@media (max-width: 1200px) {
  .ad-banner-row { grid-template-columns: 1fr; gap: 8px; }
  .ad-banner-row__handle, .ad-banner-row__order { display: none; }
}

/* Post detail page */
.post-detail {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 40px;
}
@media (max-width: 700px) { .post-detail { padding: 24px 22px; } }
.post-detail__head {
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--text);
}
.post-detail__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
  line-height: 1.35;
}
.post-detail__meta {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
  flex-wrap: wrap;
}
.post-detail__body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  word-break: break-word;
}

/* =========================================================
   Toggleable sections (admin on/off)
   ========================================================= */
.is-section-off { display: none !important; }

/* User-dismissed popup (separate from admin toggle) */
.popup.is-user-dismissed { display: none !important; }

/* Event popup */
.popup {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11,11,15,.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .35s var(--ease);
}
.popup__panel {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
}

/* 위치지정형 팝업 — 배경 블러 없이 페이지 좌표(top/left px)에 노출, 스크롤 시 함께 이동 */
.popup-fixed {
  position: absolute;
  z-index: 80; /* 고정 헤더(50) 위, 중앙 모달 팝업(90) 아래 */
  width: min(800px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  animation: fadeIn .35s var(--ease);
}
.popup-fixed__link { display: block; }
.popup-fixed__img {
  width: 100%;
  aspect-ratio: 1 / 1; /* 항상 정사각으로 표시 (800×800 기준) */
  object-fit: cover;
  display: block;
}

/* Image slider popup */
.popup--image .popup__panel { width: min(420px, 100%); }
.popup__slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f3f3f5;
  overflow: hidden;
}
.popup__slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.popup__slide.is-active { opacity: 1; pointer-events: auto; }
.popup__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.popup__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.35);
  color: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity .25s var(--ease), background .2s var(--ease);
}
.popup__slider:hover .popup__arrow { opacity: 1; }
.popup__arrow:hover { background: rgba(0,0,0,.55); }
.popup__arrow--prev { left: 10px; }
.popup__arrow--next { right: 10px; }
.popup__dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.popup__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  padding: 0;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.popup__dot.is-active { background: #fff; transform: scale(1.25); }
@media (max-width: 500px) {
  .popup { padding: 16px; }
  .popup__arrow { display: none; }
}

.popup__media {
  position: relative;
  background: linear-gradient(135deg, #ff5a3c 0%, #ffd66b 100%);
  padding: 36px 24px;
  text-align: center;
}
.popup__chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
  background: rgba(0,0,0,.25);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.popup__art {
  font-size: 64px;
  line-height: 1;
}
.popup__body {
  padding: 26px 28px 18px;
  text-align: center;
}
.popup__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.popup__desc {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.popup__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-soft);
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}
.popup__foot-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-soft);
  cursor: pointer;
}
.popup__foot-check input { accent-color: var(--text); }
.popup__close {
  background: transparent;
  border: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: var(--text-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.popup__close:hover { background: var(--bg-elev); color: var(--text); }

/* Admin panel — appears when URL has ?admin=1 */
.admin-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
  padding: 16px 18px 14px;
  width: 320px;
  font-size: 13px;
}
.admin-panel.is-collapsed { padding: 8px 12px; width: auto; }
.admin-panel.is-collapsed .admin-panel__body { display: none; }
.admin-panel.is-collapsed .admin-panel__head .admin-panel__close::after { content: '+'; }

.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.admin-panel.is-collapsed .admin-panel__head { margin-bottom: 0; }
.admin-panel__title {
  display: flex; align-items: center; gap: 6px;
}
.admin-panel__title::before {
  content: '⚙';
  color: var(--accent);
}
.admin-panel__close {
  width: 22px; height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.admin-panel__close:hover { background: var(--text); color: #fff; }
.admin-panel__close::after { content: '−'; }

.admin-panel__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-soft);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}
.admin-toggle:hover { background: var(--bg-elev); }
.admin-toggle input { display: none; }
.admin-toggle__sw {
  flex-shrink: 0;
  width: 34px; height: 20px;
  border-radius: 999px;
  background: #d1d1d8;
  position: relative;
  transition: background .2s;
}
.admin-toggle__sw::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 2px; left: 2px;
  transition: left .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.admin-toggle input:checked + .admin-toggle__sw { background: var(--accent); }
.admin-toggle input:checked + .admin-toggle__sw::after { left: 16px; }
.admin-toggle__label { flex: 1; font-size: 12px; line-height: 1.4; }
.admin-panel__hint {
  font-size: 11px;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 4px;
  line-height: 1.5;
}
.admin-panel__divider {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  text-transform: uppercase;
  padding: 8px 4px 2px;
  border-top: 1px dashed var(--line);
  margin-top: 4px;
}

/* =========================================================
   Mobile tweaks
   ========================================================= */
@media (max-width: 700px) {
  .section-head { padding: 28px 20px 28px; }
  .cats__grid, .products, .picks__grid, .reviews__grid, .faq__list, .footer__top, .footer__legal { padding-left: 20px; padding-right: 20px; }
  .header__notice-text { font-size: 11px; }
  .btn--mini { padding: 7px 12px; }
}

/* =========================================================
   Mobile drawer menu
   ========================================================= */
.mv-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(11,11,15,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
  z-index: 998;
}
.mv-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

.mv-drawer {
  position: fixed;
  top: 0; left: 0;
  width: min(320px, 86vw);
  height: 100vh;
  height: 100dvh;
  background: #fff;
  box-shadow: 8px 0 32px rgba(0,0,0,.18);
  transform: translateX(-100%);
  transition: transform .3s var(--ease);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 18px 22px 24px;
  box-sizing: border-box;
  overflow-y: auto;
}
.mv-drawer.is-open { transform: translateX(0); }

.mv-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mv-drawer__brand {
  font-family: 'Pretendard', sans-serif;
  font-size: 20px;
  letter-spacing: 0.16em;
  color: var(--text);
}
.mv-drawer__mark { color: var(--accent); display: inline-block; transform: rotate(45deg); margin-right: 4px; }
.mv-drawer__close {
  background: transparent;
  border: 0;
  color: var(--text-soft);
  padding: 6px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mv-drawer__close:hover { color: var(--text); background: var(--bg-soft); }

.mv-drawer__hello {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}
.mv-drawer__hello strong { color: var(--text); font-weight: 700; }

.mv-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.mv-drawer__nav a {
  display: block;
  padding: 13px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mv-drawer__nav a:hover { color: var(--accent); }
.mv-drawer__nav a:last-child { border-bottom: 0; }
/* 드로어 하위분류 — 대분류 아래 들여쓰기 */
.mv-drawer__nav a.mv-drawer__sublink {
  padding-left: 20px; font-size: 14px; font-weight: 400; color: var(--text-soft);
}
.mv-drawer__nav a.mv-drawer__sublink::before { content: '└ '; color: var(--text-mute); }

/* 분류 페이지 — 하위분류 탭 */
.cat-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat-subnav__tab {
  padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-soft); background: #fff;
  transition: border-color .15s, color .15s, background .15s;
}
.cat-subnav__tab:hover { border-color: var(--accent); color: var(--text); }
.cat-subnav__tab.is-active { background: var(--text); color: #fff; border-color: var(--text); }

.mv-drawer__actions {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mv-drawer__action {
  display: block;
  text-align: center;
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}
.mv-drawer__action:hover { background: var(--line); }
.mv-drawer__action--primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.mv-drawer__action--primary:hover { background: var(--accent); border-color: var(--accent); }
.mv-drawer__logout { color: var(--accent); border-color: rgba(255,90,60,.3); }

/* =========================================================
   모바일/반응형 오버라이드 — 기본 정의보다 뒤에 있어야 적용됨 (2026-06-04 재배치)
   ========================================================= */
@media (max-width: 500px) {
  .section-head { padding: var(--pad-section-mobile) 20px 28px; }
  .picks__head { padding: var(--pad-section-mobile) 20px 28px; }
  .brand-grid { padding-left: 20px; padding-right: 20px; }
  .board-cards { margin-left: -16px; margin-right: -16px; padding-left: 0; padding-right: 0; }
  .member { padding: 64px 20px; margin-top: 80px; }

  .main-banner__viewport { aspect-ratio: 4 / 5; }
  .banner-slide { padding: 0 20px; align-items: flex-end; padding-bottom: 64px; }
  .banner-slide__badge { font-size: 10px; padding: 5px 11px; margin-bottom: 12px; }
  .banner-slide__title { font-size: clamp(30px, 11vw, 48px); margin: 0 0 12px; }
  .banner-slide__desc { font-size: 13px; margin: 0 0 16px; }
  .banner-nav { width: 32px; height: 32px; }
  .banner-nav--prev { left: 8px; }
  .banner-nav--next { right: 8px; }
  .banner-dots { bottom: 14px; gap: 6px; }
  .banner-dot { width: 18px; height: 3px; }
  .banner-dot.is-active { width: 30px; }
}

@media (max-width: 700px) {
  .chip { padding: 7px 12px; font-size: 11.5px; letter-spacing: 0.01em; }
  .filters { gap: 6px; }
  .cat-filter-group { gap: 8px 10px; }
  .cat-filters { gap: 8px; }
}

@media (max-width: 700px) {
  .quick-board { margin-top: 40px; padding: 0 20px; }
  .quick-board__promos { grid-template-columns: 1fr 1fr; gap: 10px; }
  .promo-banner { aspect-ratio: 1 / 1; min-height: 0; padding: 16px 14px; border-radius: 16px; }
  .promo-banner__title { font-size: 15px; }
  .promo-banner__sub { font-size: 10.5px; margin: 0 0 6px; line-height: 1.3; }
  .promo-banner__cta { font-size: 10px; padding: 6px 11px; gap: 4px; }
  /* zero 데코 축소 */
  .zero-smile { font-size: 14px; }
  .zero-smile--2, .zero-smile--3 { font-size: 12px; }
  .zero-bottles { width: 42%; gap: 4px; }
  .zero-bottle { width: 24px; height: 56px; font-size: 9px; padding: 16px 4px 6px; border-radius: 3px 3px 9px 9px; }
  .zero-bottle::before { width: 9px; height: 5px; top: -4px; }
  /* kakao 데코 축소 */
  .kakao-bubble--ch { width: 24px; height: 24px; font-size: 10px; top: 10px; right: 44px; border-width: 1.5px; }
  .kakao-bubble--talk1 { font-size: 9px; padding: 3px 6px; top: 14px; right: 10px; border-radius: 8px 8px 8px 2px; }
  .kakao-bubble--talk2 { font-size: 8px; padding: 3px 5px; bottom: 14px; right: 20px; }
  .kakao-bubble--talk3 { font-size: 8px; padding: 3px 5px; }
}

@media (max-width: 500px) {
  .quick-board__promos { gap: 8px; }
  .promo-banner { padding: 14px 12px; border-radius: 14px; }
  .promo-banner__title { font-size: 13.5px; letter-spacing: -0.03em; }
  .promo-banner__sub { font-size: 10px; }
  .promo-banner__cta { font-size: 9.5px; padding: 5px 9px; }
  .zero-bottle { width: 20px; height: 46px; font-size: 8px; padding: 12px 3px 5px; }
  .kakao-bubble--ch { width: 20px; height: 20px; font-size: 9px; right: 36px; }
}

@media (max-width: 900px) {
  .member__inner { grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; }
  .member__copy h2 { font-size: clamp(20px, 4vw, 30px); margin: 0 0 16px; word-break: keep-all; }
  .member__copy h2 br { display: none; }
  .member__list { margin: 0 0 18px; }
  .member__list li { font-size: 12px; padding: 7px 0; gap: 8px; line-height: 1.4; word-break: keep-all; }
  .member__list li span { width: 18px; height: 18px; font-size: 9px; }
  .member__cta { gap: 8px; flex-wrap: wrap; }
  .member__cta .btn { font-size: 12px; padding: 10px 14px; }
  .card-stack { width: 100%; max-width: 160px; height: 180px; margin-left: auto; }
  .m-card { height: 100px; padding: 12px; border-radius: 12px; box-shadow: 0 14px 36px rgba(0,0,0,.36); }
  .m-card--b { top: 28px; }
  .m-card--c { top: 56px; }
  .m-card__chip { font-size: 11px; letter-spacing: 0.08em; }
  .m-card__no { font-size: 10px; letter-spacing: 0.04em; }
  .m-card__name { font-size: 8px; letter-spacing: 0.1em; margin-top: 4px; }
}

@media (max-width: 500px) {
  .member__inner { grid-template-columns: 1.7fr 1fr; gap: 10px; }
  .member__copy h2 { font-size: 17px; margin: 0 0 12px; letter-spacing: -0.02em; line-height: 1.25; }
  .member__list { margin: 0 0 14px; }
  .member__list li { font-size: 10.5px; padding: 5px 0; gap: 6px; }
  .member__list li span { width: 14px; height: 14px; font-size: 7.5px; }
  .member__cta { flex-direction: column; gap: 6px; }
  .member__cta .btn { font-size: 11px; padding: 8px 12px; width: 100%; text-align: center; }
  .card-stack { max-width: 110px; height: 130px; }
  .m-card { height: 74px; padding: 8px 10px; border-radius: 9px; box-shadow: 0 10px 24px rgba(0,0,0,.32); }
  .m-card--b { top: 20px; }
  .m-card--c { top: 40px; }
  .m-card__chip { font-size: 9px; letter-spacing: 0.06em; }
  .m-card__no { font-size: 7.5px; letter-spacing: 0.02em; }
  .m-card__name { font-size: 6.5px; letter-spacing: 0.08em; margin-top: 2px; }
}

@media (max-width: 700px) {
  .cat-page { padding-bottom: 28px; }          /* 상품 영역과 푸터 사이 빈 여백 축소 */
  .footer__top { padding: 28px 20px 20px; gap: 24px; }
  .footer__tag { margin-top: 8px; font-size: 12px; }
  .footer__cols { gap: 16px 24px; }
  .footer__cols h4 { margin: 0 0 10px; }
  .footer__cols a, .footer__cols p { margin: 0 0 6px; line-height: 1.5; }
  .footer__legal { padding: 16px 20px; gap: 10px; }
}

@media (max-width: 500px) {
  .auth-page { padding: 32px 14px 60px; }
  .auth-card { padding: 28px 18px 22px; border-radius: 16px; }
  .auth-card__title { font-size: 22px; }
  /* 음수 top 여백 제거 — 제목이 두 줄로 넘칠 때 설명이 겹치거나 너무 붙는 문제 해결 */
  .form-section { gap: 12px; margin-bottom: 24px; }
  .form-section__title { line-height: 1.4; }
  .form-section__desc { margin: 0 0 2px; line-height: 1.55; }
  .field__input-wrap { padding: 0 10px 0 12px; flex-wrap: wrap; }
  .field__icon { margin-right: 6px; }
  .field__input { min-width: 0; }
  .field__inline-btn {
    flex: 1 0 100%;
    margin: 0 -10px -1px -12px;
    width: calc(100% + 22px);
    border-radius: 0 0 12px 12px;
    padding: 10px;
    font-size: 13px;
  }
}

@media (max-width: 700px) {
  .cart-item {
    grid-template-columns: 30px 80px 1fr;
    grid-template-areas: 'check media body' 'check media price';
  }
  .cart-item__check { grid-area: check; }
  .cart-item__media { grid-area: media; }
  .cart-item__body { grid-area: body; }
  .cart-item__price { grid-area: price; text-align: left !important; }
}

/* =========================================================
   커뮤니티 모바일 압축 — 게시판 카드/인기글/FAQ 위젯이 PC 크기
   그대로 나와 페이지가 불필요하게 길던 것 보정 (2026-06-05)
   ========================================================= */
@media (max-width: 800px) {
  .board-cards { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; margin-bottom: 22px; margin-left: -16px; margin-right: -16px; padding-left: 0; padding-right: 0; }
  .board-card { gap: 8px; padding: 10px 12px; }
  .board-card__icon { width: 38px; height: 38px; border-radius: 11px; font-size: 20px; }
  .board-card__title { font-size: 15px; margin-bottom: 2px; line-height: 1.25; word-break: keep-all; }
  .board-card__desc { display: none; }
  .board-card__meta { font-size: 11px; }
  .board-card__arrow { display: none; }

  .community-widgets { gap: 10px; }
  .community-recent { padding: 14px 16px; }
  .community-recent__title { font-size: 14.5px; margin: 0 0 8px; }
  .community-recent__list a { padding: 8px 0; font-size: 12.5px; gap: 8px; }
  .post-cat { font-size: 10px; padding: 2px 7px; }
}
