/**
 * 임직원 몰 — 프리미엄 커머스 레이어 (#mallWrap 범위)
 *
 * ┌─ 무엇을 보면 되나 (수정 위치와 화면이 어긋나지 않게) ─────────────────┐
 * │ 소비자 몰 화면 = index.html                                               │
 * │ 스타일 순서: styles/main.css → styles/mall-premium.css (이 파일이 #mallWrap 우선) │
 * │ 어드민(admin.html)과는 별개 — 레이아웃을 여기서 맞춰도 어드민에는 반영 안 됨.   │
 * └──────────────────────────────────────────────────────────────────────────┘
 *
 * ┌─ PC 우선 기준 ─────────────────────────────────────────────────────────┐
 * │ “기본” 레이아웃은 min-width: 901px(데스크톱)에서 맞춘다.                   │
 * │ DevTools / 브라우저 폭 901px 이상으로 두고 보면 PC 기준과 동일.            │
 * │ max-width / 좁은 화면 규칙은 파일 아래쪽 · 후순위(모바일은 나중에 손봄).    │
 * └──────────────────────────────────────────────────────────────────────────┘
 *
 * ┌─ 파일 내 구역 맵 (검색 키워드) ─────────────────────────────────────────┐
 * │ #mallWrap 토큰·컨테이너      →  본 파일 `#mallWrap {` 근처                │
 * │ Topbar / 검색                →  `.mall-topbar`                             │
 * │ 히어로                       →  `.mall-hero`                               │
 * │ 스티키 브랜드 띠·브랜드 카드  →  `.mall-brand-sticky-host`, `#brandMallStrip` │
 * │ 카탈로그·필터·그리드         →  `#catalog`, `.filters--premium`, 상품 카드 │
 * │ 기타 섹션·모션               →  파일 하단 `prefers-reduced-motion` 등      │
 * └──────────────────────────────────────────────────────────────────────────┘
 */

/* 몰 화면일 때 앵커·해시 스크롤이 스티키 헤더+브랜드에 가리지 않도록 */
html:has(#mallWrap:not(.hidden)) {
  scroll-padding-top: var(--mall-sticky-stack, 280px);
}

#mallWrap {
  --mall-green: #3a9d6e;
  --mall-green-deep: #2d8059;
  --mall-green-soft: rgba(58, 157, 110, 0.12);
  --mall-surface: var(--app-page-bg, #ffffff);
  --mall-surface-elevated: #ffffff;
  --mall-ink: #2a2f36;
  --mall-muted: #585f68;
  --mall-stone: #6e757e;
  --mall-warm: #f3f2ef;
  --mall-linesoft: rgba(42, 47, 53, 0.06);
  --mall-shadow: 0 4px 24px rgba(42, 47, 53, 0.06);
  --mall-shadow-hover: 0 16px 48px rgba(42, 47, 53, 0.09);
  /* 세련된 차콜 CTA — 순수 블랙(#000) 대신 따뜻한 그레이 계열 */
  --mall-charcoal: #404650;
  --mall-charcoal-deep: #353a42;
  --mall-charcoal-hover: #4a515c;
  --mall-cta-gradient: linear-gradient(165deg, #4a5159 0%, #383d45 100%);
  --mall-cta-gradient-hover: linear-gradient(165deg, #545b64 0%, #404650 100%);
  --mall-cta-shadow: 0 1px 0 rgba(255, 255, 255, 0.09) inset, 0 4px 14px rgba(53, 58, 66, 0.14);
  --mall-cta-shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.11) inset, 0 8px 22px rgba(53, 58, 66, 0.18);
  --mall-accent-sage: #5f7568;
  --mall-accent-sage-deep: #526658;
  /* 상품 카드 — 웜 뉴트럴·은은한 elevation */
  --mall-card-border: rgba(64, 70, 80, 0.09);
  --mall-card-border-hover: rgba(64, 70, 80, 0.16);
  --mall-card-divider: rgba(64, 70, 80, 0.07);
  --mall-card-visual-bg: linear-gradient(165deg, #faf9f7 0%, #f0efec 100%);
  --mall-card-foot-bg: #fff;
  --mall-card-shadow:
    0 1px 1px rgba(53, 58, 66, 0.03),
    0 6px 20px rgba(53, 58, 66, 0.035);
  --mall-card-shadow-hover:
    0 2px 8px rgba(15, 22, 18, 0.05),
    0 0 0 1px rgba(64, 70, 80, 0.07);
  --mall-accent-deal: #9a5c45;
  --mall-accent-deal-soft: rgba(154, 92, 69, 0.09);
  --mall-focus-ring: rgba(64, 70, 80, 0.22);
  --mall-radius-lg: 20px;
  --mall-radius-md: 16px;
  /* 목록·상세 상품 사진 공통 모서리(각진 느낌 완화) */
  --mall-product-img-radius: 16px;
  --mall-section-y: clamp(40px, 6vw, 72px);
  /* 초깃값만 사용됨 — 실제 높이는 app.js syncMallStickyOffsets 가 덮어씀 */
  --mall-topbar-h: 76px;
  --mall-brand-sticky-stack-h: clamp(132px, 26vw, 200px);
  /* 2026-05-14: filters sticky 폐기 후 이 변수의 의미는 'topbar + brand 누적 px' 로 한정됨.
   * 더 이상 .filters--premium 의 top 으로 사용되지 않으며, --mall-sticky-stack(앵커 스크롤 패딩) 계산용 중간값으로만 활용.
   * (브랜드 strip 의 sticky top 은 var(--mall-topbar-h) 만 사용하므로 영향 없음.) */
  --mall-filter-sticky-top: calc(var(--mall-topbar-h) + var(--mall-brand-sticky-stack-h));
  /* 탑바·브랜드 스티키·필터 aside — 브랜드 카드와 동일 계열 얇은 글래스 */
  --mall-rail-frost-bg: rgba(250, 250, 249, 0.66);
  --mall-rail-frost-blur: 8px;
  --mall-rail-frost-border: rgba(20, 24, 22, 0.05);
  --mall-rail-frost-highlight: rgba(255, 255, 255, 0.38);
  /* 브랜드 카테고리 카드 — liquid glass */
  --mall-brand-glass-blur: 8px;
  --mall-brand-glass-tint: rgba(255, 255, 255, 0.3);
  --mall-brand-glass-tint-hover: rgba(255, 255, 255, 0.38);
  --mall-brand-glass-tint-active: rgba(255, 255, 255, 0.5);
  --mall-brand-glass-border: rgba(255, 255, 255, 0.36);
  --mall-brand-glass-border-active: rgba(255, 255, 255, 0.62);
  /* 몰 CTA — 차콜 그라데이션 (로그인 primary 녹색과 분리) */
  --primary: var(--mall-charcoal-deep);
  --primary-hover: var(--mall-charcoal-hover);
  background: var(--mall-surface);
  color: var(--mall-ink);
  font-family: var(--font-sans);
  /* Sticky footer — 마이페이지처럼 컨텐츠가 짧을 때 푸터가 페이지 중간에 떠 있고,
   * 그 아래로 body 배경이 보이는 현상을 막는다. footer 의 `margin-top: auto` 와 짝. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#mallWrap .btn-primary {
  background: var(--mall-cta-gradient);
  border: 1px solid rgba(53, 58, 66, 0.1);
  box-shadow: var(--mall-cta-shadow);
}

#mallWrap .btn-primary:hover:not(:disabled) {
  background: var(--mall-cta-gradient-hover);
  box-shadow: var(--mall-cta-shadow-hover);
}

@supports (min-height: 100dvh) {
  #mallWrap {
    min-height: 100dvh; /* 모바일 주소표시줄 변동까지 케어 */
  }
}

/* 몰 활성 시 html/body 배경을 푸터 그라데이션 끝 톤(`--mall-warm`)과 비슷하게 맞춰,
 * 오버스크롤(바운스)·뷰포트 단위 오차로 푸터 아래가 잠깐 보이더라도 톤 불일치가 두드러지지 않게 한다. */
html:has(#mallWrap:not(.hidden)),
html:has(#mallWrap:not(.hidden)) body {
  background: var(--app-page-bg, #ffffff);
}

#mallWrap .mall-container {
  width: min(1240px, 92vw);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  /* 좌우 총 ~20px(각 10px) + 노치 */
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
}

/* 브랜드 카드 줄만 헤더·히어로와 동일한 최대폭 제한 없이 좌우 전체 사용 */
#mallWrap .mall-container--brand-fullbleed {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
}

/* @@SECTION:MALL-TOPBAR@@ — ——— Topbar ——— */
/* 맨 위부터 반투명 글래스 · 스크롤 후(.topbar--dense) 동일 계열 유지 */
#mallWrap header.mall-topbar.topbar.mall-topbar--fold {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition:
    background 0.28s var(--ease-soft),
    border-color 0.28s var(--ease-soft),
    box-shadow 0.28s var(--ease-soft),
    backdrop-filter 0.28s var(--ease-soft),
    -webkit-backdrop-filter 0.28s var(--ease-soft);
}

#mallWrap header.mall-topbar.topbar.mall-topbar--fold:not(.topbar--dense) {
  background: var(--mall-rail-frost-bg) !important;
  backdrop-filter: blur(var(--mall-rail-frost-blur)) saturate(1.04) !important;
  -webkit-backdrop-filter: blur(var(--mall-rail-frost-blur)) saturate(1.04) !important;
  border-bottom: 1px solid var(--mall-rail-frost-border);
  box-shadow: 0 1px 0 var(--mall-rail-frost-highlight);
}

#mallWrap .mall-topbar.mall-topbar--fold.topbar--dense {
  background: var(--mall-rail-frost-bg) !important;
  backdrop-filter: blur(var(--mall-rail-frost-blur)) saturate(1.04) !important;
  -webkit-backdrop-filter: blur(var(--mall-rail-frost-blur)) saturate(1.04) !important;
  border-bottom-color: var(--mall-rail-frost-border);
  box-shadow: 0 1px 0 var(--mall-rail-frost-highlight);
}

#mallWrap .mall-topbar-inner {
  display: grid;
  /* auto 열 min-content 가 Benefit 만 잡혀 Store 가 박스 밖으로 나가 호버가 잘리는 문제 방지 */
  grid-template-columns: minmax(max-content, auto) 1fr;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  padding: 6px 0;
  min-height: 0;
  box-sizing: border-box;
}

#mallWrap .mall-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: max-content;
  min-width: max-content;
  max-width: 100%;
}

/* 톱바 — EIBE 로고 + Members 워드마크 */
#mallWrap .mall-brand-lockup {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  line-height: 1;
  white-space: nowrap;
  width: max-content;
}

#mallWrap .mall-brand-logo {
  display: block;
  width: auto;
  max-width: min(132px, 28vw);
  height: auto;
  max-height: 34px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  transform: translateY(-3px);
}

#mallWrap .mall-brand-sep {
  width: 1px;
  height: 1.05em;
  margin: 0 11px;
  background: linear-gradient(180deg, transparent, rgba(20, 24, 22, 0.22) 20%, rgba(20, 24, 22, 0.22) 80%, transparent);
  flex-shrink: 0;
}

#mallWrap .mall-brand-title {
  display: inline;
  white-space: nowrap;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

#mallWrap .mall-brand-title__members {
  font-weight: 700;
  color: var(--mall-ink);
}

/* PC 톱바 — Members · 브랜드 페이지 링크 */
#mallWrap .mall-topbar-brand-cluster {
  display: flex;
  align-items: center;
  gap: 0;
  justify-self: start;
  min-width: 0;
}

#mallWrap .mall-brand-extra-actions {
  display: none;
}

#mallWrap .mall-brand-extra-actions a.btn {
  text-decoration: none;
}

@media (min-width: 901px) {
  #mallWrap .mall-brand-extra-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin-left: 10px;
    padding-left: 12px;
    border-left: 1px solid rgba(20, 24, 22, 0.1);
  }

  /* 홈(로고+Members) 호버 음영 — 오른쪽 버튼 영역으로 번지지 않음 */
  #mallWrap .mall-brand#mallBrandHome {
    margin: -4px 0 -4px -8px;
    padding: 4px 8px 4px 10px;
    background: transparent;
  }

  #mallWrap .mall-brand#mallBrandHome::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: transparent;
    transition: background 0.18s ease;
    pointer-events: none;
    z-index: 0;
  }

  #mallWrap .mall-brand#mallBrandHome:hover::after,
  #mallWrap .mall-brand#mallBrandHome:focus-visible::after {
    background: rgba(20, 24, 22, 0.05);
  }

  #mallWrap .mall-brand#mallBrandHome:hover,
  #mallWrap .mall-brand#mallBrandHome:focus-visible {
    background: transparent;
  }

  #mallWrap .mall-brand#mallBrandHome .mall-brand-lockup {
    position: relative;
    z-index: 1;
  }

  #mallWrap .btn-mall-expand--pending {
    opacity: 0.72;
    cursor: default;
  }

  #mallWrap .mall-brand {
    flex-shrink: 0;
  }

  #mallWrap .mall-brand-logo {
    max-height: 30px;
    max-width: 128px;
  }

  #mallWrap .mall-topbar-inner {
    padding: 4px 0;
    gap: clamp(12px, 2vw, 20px);
  }

  #mallWrap .mall-topbar-end {
    gap: clamp(10px, 1.5vw, 16px);
  }
}

#mallWrap .mall-brand#mallBrandHome:hover .mall-brand-logo,
#mallWrap .mall-brand#mallBrandHome:focus-visible .mall-brand-logo {
  filter: brightness(1.04) saturate(1.06);
}

@media (max-width: 900px) {
  #mallWrap .mall-brand {
    min-width: 0;
    width: auto;
  }

  #mallWrap .mall-brand-lockup {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    white-space: normal;
    width: auto;
  }

  #mallWrap .mall-brand-sep {
    display: none;
  }

  #mallWrap .mall-brand-logo {
    max-height: 28px;
    max-width: min(120px, 56vw);
    object-position: center;
  }

  #mallWrap .mall-brand-title {
    font-size: 0.98rem;
  }
}

/* `.mall-search` 관련 스타일은 톱바 검색 input 마크업 제거(2026-05-14)와 함께 deprecated.
 * 검색은 필터 sidebar 내부(`.filter-search-wrap`)로 이전됨 — 아래 새 스타일 참고.
 * (혹시 다른 페이지/뷰에서 동일 클래스명이 남아 있을 경우의 회귀를 막기 위해 셀렉터는 비워두지 않고 의도적으로 정의 제거함.) */

#mallWrap .mall-brand#mallBrandHome {
  position: relative;
  cursor: pointer;
  outline-offset: 3px;
  box-sizing: border-box;
}

#mallWrap .mall-brand#mallBrandHome:focus-visible {
  outline: 2px solid var(--mall-green-soft);
}

/* 톱바 우측 — 협력사·회원(왼쪽) + 아이콘 액션(오른쪽) */
#mallWrap .mall-topbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  flex-wrap: nowrap;
  gap: clamp(12px, 2vw, 20px);
  min-width: 0;
  overflow: visible;
}

#mallWrap .mall-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(4px, 1.2vw, 8px);
  min-width: 0;
  overflow: visible;
  flex-shrink: 0;
}

@media (min-width: 901px) {
  #mallWrap .mall-top-actions::before {
    content: "";
    width: 1px;
    height: 26px;
    margin-right: 4px;
    background: linear-gradient(180deg, transparent, rgba(20, 24, 22, 0.14) 18%, rgba(20, 24, 22, 0.14) 82%, transparent);
    flex-shrink: 0;
  }
}

#mallWrap .mall-member-hint {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 24, 22, 0.05);
  border: 1px solid rgba(20, 24, 22, 0.08);
  color: var(--mall-muted);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 회원 표시 — 로고·이름만 나란히(칩/박스 없음), top-actions 왼쪽 */
#mallWrap .mall-member-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: min(340px, 38vw);
  flex-shrink: 1;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

#mallWrap .mall-partner-logo {
  display: block;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  border: none;
  background: none;
  padding: 0;
  border-radius: 0;
  box-sizing: content-box;
}

#mallWrap .mall-partner-logo[hidden] {
  display: none;
}

@media (min-width: 901px) {
  /* 톱바는 얇게, 로고는 줄 높이에 맞춰 크게(세로 여백 최소) */
  #mallWrap .mall-partner-logo {
    width: 60px;
    height: 60px;
  }

  #mallWrap .mall-member-strip {
    gap: 14px;
    max-width: min(420px, 42vw);
  }

  #mallWrap .mall-member-name,
  #mallWrap .mall-member-strip .mall-user-email {
    font-size: 0.9rem;
    line-height: 1.15;
  }
}

#mallWrap .mall-member-name,
#mallWrap .mall-member-strip .mall-user-email {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--mall-ink);
  max-width: 240px;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 0;
  border: none;
  background: none;
}

#mallWrap .mall-member-strip.is-empty .mall-member-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mall-muted);
  max-width: 160px;
}

/* #authEmail — 좌측 EIBE 로고(translateY -3px)·협력사 로고와 광학 수평 정렬 */
#mallWrap #authEmail {
  display: inline-block;
  transform: translateY(1.5px);
}

@media (max-width: 900px) {
  #mallWrap #authEmail {
    transform: translateY(2.5px);
  }
}

#mallWrap .btn-mall-primary {
  border-radius: 999px;
  padding-inline: 18px;
}

#mallWrap .btn-mall-ghost {
  border-radius: 999px;
  border-color: transparent;
  background: transparent;
}

#mallWrap .btn-mall-ghost:hover {
  background: rgba(20, 24, 22, 0.05);
}

#mallWrap .btn-mall-cart {
  border-radius: 999px;
}

/* @@SECTION:TOPBAR-ICON-BTNS@@ — 톱바 4종(마이페이지·로그인·로그아웃·장바구니) 및 카트 드로어 닫기 아이콘 전용 원형 버튼.
 * 라벨은 .sr-only / aria-label / title 로 접근성 보장, 시각은 22px outline 아이콘만 노출.
 * 카운트 배지는 .btn-icon 의 우상단(inset) 에 떠 있으며 scripts/app.js renderCart() 에서 0 인 경우
 * .cart-count-badge--zero 토글로 시각적으로만 숨긴다(공간은 유지하지 않으므로 absolute 배치). */
#mallWrap .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 999px;
  flex-shrink: 0;
  position: relative;
  line-height: 1;
}
#mallWrap .btn-icon > svg,
#mallWrap .btn-mall-expand__sign svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

/* PC(901px+) + 마우스 호버: pill 확장. 모바일·터치는 .btn-icon 아이콘만 */
@media (min-width: 901px) and (hover: hover) {
  #mallWrap .btn-icon.btn-mall-expand {
    --mall-expand-dur: 0.52s;
    --mall-expand-ease: cubic-bezier(0.33, 1, 0.45, 1);
    display: inline-grid;
    grid-template-columns: 36px 0fr;
    align-items: center;
    justify-content: start;
    width: auto;
    min-width: 36px;
    max-width: none;
    padding-right: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(20, 24, 22, 0.08);
    transition:
      grid-template-columns var(--mall-expand-dur) var(--mall-expand-ease),
      padding var(--mall-expand-dur) var(--mall-expand-ease),
      background 0.38s var(--ease-soft, ease),
      color 0.38s var(--ease-soft, ease),
      box-shadow 0.38s var(--ease-soft, ease),
      transform 0.2s var(--ease-soft, ease);
  }

  #mallWrap .btn-mall-expand__sign {
    grid-column: 1;
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
  }

  #mallWrap .btn-mall-expand__text {
    grid-column: 2;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding-right: 0;
    opacity: 0;
    transform: translateX(-6px);
    transition:
      opacity 0.28s ease,
      transform var(--mall-expand-dur) var(--mall-expand-ease);
  }

  #mallWrap .btn-icon.btn-mall-expand.btn-mall-expand--cart {
    overflow: hidden;
  }

  #mallWrap .btn-icon.btn-mall-expand:is(:hover, :focus-visible) {
    grid-template-columns: 36px 1fr;
    padding-right: 12px;
  }

  #mallWrap .btn-icon.btn-mall-expand:is(:hover, :focus-visible) .btn-mall-expand__text {
    opacity: 1;
    transform: translateX(0);
    transition:
      opacity 0.32s ease 0.1s,
      transform var(--mall-expand-dur) var(--mall-expand-ease) 0.08s;
  }

  #mallWrap .btn-mall-expand--logout:is(:hover, :focus-visible) {
    background: linear-gradient(135deg, #ff6b6b 0%, #e53935 55%, #d32f2f 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.38);
  }

  #mallWrap .btn-mall-expand--logout:is(:hover, :focus-visible) .btn-mall-expand__sign svg {
    stroke: #fff;
  }

  #mallWrap .btn-mall-icon-primary.btn-mall-expand:is(:hover, :focus-visible) {
    box-shadow: 0 4px 16px rgba(15, 22, 18, 0.16);
  }

  #mallWrap .btn-mall-expand--cart:is(:hover, :focus-visible) {
    box-shadow: 0 4px 16px rgba(30, 38, 64, 0.32);
  }

  #mallWrap .btn-mall-expand--company:is(:hover, :focus-visible) {
    box-shadow: 0 4px 14px rgba(20, 24, 22, 0.14);
  }

  #mallWrap .btn-mall-expand--download:is(:hover, :focus-visible):not(.btn-mall-expand--pending) {
    box-shadow: 0 4px 14px rgba(46, 120, 172, 0.22);
  }

  #mallWrap .btn-mall-icon-ghost.btn-mall-expand:is(:hover, :focus-visible):not(.btn-mall-expand--logout) {
    background: rgba(20, 24, 22, 0.07);
    color: var(--mall-ink);
    box-shadow: 0 4px 14px rgba(15, 22, 18, 0.08);
  }

}

/* expand 그리드 밖 앵커 — 배지가 overflow 클립·grid 셀에 갇히지 않음 */
#mallWrap .mall-cart-btn-anchor {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  z-index: 6;
  isolation: isolate;
}

#mallWrap .mall-cart-btn-anchor > #openCartBtn {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  @media (min-width: 901px) and (hover: hover) {
    #mallWrap .btn-icon.btn-mall-expand,
    #mallWrap .btn-mall-expand__text {
      transition-duration: 0.01ms;
      transition-delay: 0s;
    }
  }
}
#mallWrap .btn-mall-icon-ghost {
  border: 1px solid transparent;
  background: transparent;
  color: var(--mall-text-strong, var(--text, #14201f));
  transition: background var(--dur-fast, 0.15s) var(--ease-soft, ease),
              color var(--dur-fast, 0.15s) var(--ease-soft, ease),
              transform var(--dur-fast, 0.15s) var(--ease-soft, ease);
}
#mallWrap .btn-mall-icon-ghost:hover:not(.btn-mall-expand) {
  background: rgba(20, 24, 22, 0.07);
  color: var(--mall-ink);
}

#mallWrap .btn-mall-icon-ghost:focus-visible {
  outline: 2px solid var(--mall-charcoal);
  outline-offset: 2px;
}
#mallWrap .btn-mall-icon-primary {
  background: var(--mall-cta-gradient);
  color: #fff;
  border: 1px solid rgba(53, 58, 66, 0.1);
  box-shadow: var(--mall-cta-shadow);
  transition: background var(--dur-fast, 0.15s) var(--ease-soft, ease),
              box-shadow var(--dur-fast, 0.15s) var(--ease-soft, ease),
              transform var(--dur-fast, 0.15s) var(--ease-soft, ease);
}
#mallWrap .btn-mall-icon-primary:hover {
  background: var(--mall-cta-gradient-hover);
  box-shadow: var(--mall-cta-shadow-hover);
}
#mallWrap .btn-mall-icon-primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
  box-shadow: 0 0 0 3px var(--mall-focus-ring);
}
#mallWrap .btn-mall-icon-cart {
  background: var(--dark, #1e2640);
  color: #fff;
  border: 1px solid transparent;
  transition: background var(--dur-fast, 0.15s) var(--ease-soft, ease),
              box-shadow var(--dur-fast, 0.15s) var(--ease-soft, ease);
}
#mallWrap .btn-mall-icon-cart:hover {
  background: #283350;
  box-shadow: 0 4px 12px rgba(30, 38, 64, 0.28);
}
#mallWrap .btn-mall-icon-cart:focus-visible {
  outline: 2px solid var(--mall-charcoal);
  outline-offset: 2px;
}

/* iOS 알림 배지 — .mall-cart-btn-anchor 기준(expand 버튼 overflow:hidden 밖).
 * z-index 만으로는 overflow 클립을 뚫을 수 없어 DOM·앵커로 분리한다. */
#mallWrap .mall-cart-btn-anchor > .cart-count-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.32em;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5a7a 0%, #e11d48 55%, #be123c 100%);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  border: 2px solid var(--dark, #1e2640);
  box-sizing: border-box;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.18s ease;
  /* 떠 있는 듯한 깊이감: dark 버튼 위에 빨강 알림이 살짝 떠 있는 광원 분리 */
  box-shadow:
    0 0 0 0 rgba(225, 29, 72, 0),
    0 3px 8px rgba(190, 18, 60, 0.55),
    0 0 14px rgba(244, 63, 94, 0.4);
  /* 미세한 무한 펄스 (1+ 일 때만) — 시선이 자연스럽게 카트로 유도되도록 호흡감을 준다 */
  animation: cart-count-breathe 2.4s ease-in-out infinite;
}
#mallWrap .mall-cart-btn-anchor > .cart-count-badge.cart-count-badge--zero {
  transform: scale(0);
  opacity: 0;
  animation: none;
}
#mallWrap .mall-cart-btn-anchor > .cart-count-badge.cart-count-badge--pop {
  /* pop 은 breathe 보다 강한 단발 효과. 동시에 적용되면 마지막 animation 이 우세하도록 두 개 모두 선언. */
  animation: cart-count-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
             cart-count-breathe 2.4s ease-in-out infinite 0.5s;
}

@keyframes cart-count-pop {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.65), 0 3px 8px rgba(190, 18, 60, 0.55), 0 0 14px rgba(244, 63, 94, 0.4); }
  30%  { transform: scale(1.45); box-shadow: 0 0 0 8px rgba(225, 29, 72, 0),    0 6px 16px rgba(190, 18, 60, 0.65), 0 0 22px rgba(244, 63, 94, 0.7); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0), 0 3px 8px rgba(190, 18, 60, 0.55), 0 0 14px rgba(244, 63, 94, 0.4); }
}
@keyframes cart-count-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0), 0 3px 8px rgba(190, 18, 60, 0.55), 0 0 14px rgba(244, 63, 94, 0.4); }
  50%      { box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.18), 0 4px 12px rgba(190, 18, 60, 0.6), 0 0 20px rgba(244, 63, 94, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
  #mallWrap .mall-cart-btn-anchor > .cart-count-badge,
  #mallWrap .mall-cart-btn-anchor > .cart-count-badge.cart-count-badge--pop {
    animation: none;
  }
}

/* 장바구니 드로어 — 몰 토큰으로 합계 강조 (마크업은 index 공통) */
.cart-drawer .row.total b {
  color: var(--mall-green-deep);
  font-size: 1.08rem;
}

#mallWrap .mall-top-actions > .btn {
  flex-shrink: 0;
}

/* ━━━ 모바일·태블릿 (max-width: 900px) — PC 확인 후 필요 시만 조정 ━━━ */
@media (max-width: 900px) {
  #mallWrap {
    --mall-topbar-h: 62px;
    /* JS가 실측으로 덮지만, 로드 직후 히어로·스티키 합이 과대해 겹치지 않게 상한 완화 */
    --mall-brand-sticky-stack-h: clamp(120px, 34vw, 240px);
    /* 의미: 위쪽 sticky 누적 px (anchor scroll padding 중간값). filters sticky 폐기로 더 이상 .filters--premium top 으로 쓰이지 않음. */
    --mall-filter-sticky-top: calc(var(--mall-topbar-h) + var(--mall-brand-sticky-stack-h));
    /* 모바일: 화면 전체를 한 톤 밝게 — 구매·탐색 시 답답함 완화 */
    --mall-surface: var(--app-page-bg, #ffffff);
    --mall-warm: #f6f5f3;
  }
  #mallWrap .mall-topbar-inner {
    grid-template-columns: auto 1fr;
    text-align: left;
    gap: 8px;
    padding: 6px 0;
    align-items: center;
  }
  #mallWrap .mall-brand {
    justify-content: flex-start;
    justify-self: start;
    width: auto;
    max-width: 100%;
  }
  #mallWrap .mall-brand#mallBrandHome {
    margin: 0;
    padding: 4px 8px;
  }
  #mallWrap .mall-topbar-end {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
  }

  #mallWrap .mall-member-strip {
    max-width: min(100%, 200px);
  }

  #mallWrap .mall-top-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
    width: auto;
  }
  #mallWrap .btn-mall-expand__text {
    display: none;
  }
  #mallWrap .btn-mall-icon-ghost.btn-mall-expand:active {
    background: rgba(20, 24, 22, 0.07);
    color: var(--mall-green-deep, var(--primary-hover, #239832));
  }
  #mallWrap .mall-member-hint {
    display: none;
  }
  /* 좌우 살짝 줄여 카드·그리드가 넓게 보이게 (safe-area 유지) */
  #mallWrap .mall-container {
    width: min(1240px, 96vw);
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
  }

  #mallWrap .mall-container.mall-container--brand-fullbleed {
    width: 100%;
    max-width: none;
  }
}

/* @@SECTION:MALL-HERO@@ — ——— Hero ——— */
/* 기본 높이는 syncMallStickyOffsets 의 --mall-hero-min-h (+ fallback). 배경 이미지 영역을 세로로 더 쓰고 싶으면 --mall-hero-extra-h 만 조정 */
/*
 * 히어로와 `.mall-shop-below-hero` 는 형제 — z-index 없으면 아래 블록이 나중에 그려져
 * 스티키 브랜드(z-index 45)가 히어로 하단을 덮어 ‘침범’처럼 보임 → 히어로를 위 레이어로
 */
/* 스크롤 핀 — 레이아웃 높이는 늘리지 않음(브랜드 띠가 히어로 바로 아래 유지). 확대용 스크롤량은 JS 상수 */
#mallWrap .mall-hero-pin-wrap {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

#mallWrap .mall-hero-pin-wrap .mall-hero.mall-hero--fold {
  position: sticky;
  top: var(--mall-topbar-h, 76px);
  z-index: 2;
}

#mallWrap .mall-hero-scroll-pin {
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #mallWrap .mall-hero-pin-wrap .mall-hero.mall-hero--fold {
    position: relative;
    top: auto;
  }
}

#mallWrap .mall-hero.mall-hero--fold {
  position: relative;
  z-index: 2;
  /* PC: 1·2차 폴드 — 브랜드 띠가 같은 화면에 보이도록 (2026-05-19 기준 220px) */
  --mall-hero-extra-h: 300px;
  --mall-hero-fold-fallback: calc(
    100svh - var(--mall-brand-sticky-stack-h) - 44px
  );
  min-height: calc(
    max(200px, var(--mall-hero-min-h, var(--mall-hero-fold-fallback))) + var(--mall-hero-extra-h)
  );
  max-height: calc(
    max(200px, var(--mall-hero-min-h, var(--mall-hero-fold-fallback))) + var(--mall-hero-extra-h)
  );
  display: flex;
  align-items: flex-end;
  padding: clamp(18px, 4.5vw, 48px) 0;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: none;
}

@supports not (height: 100svh) {
  #mallWrap .mall-hero.mall-hero--fold {
    --mall-hero-fold-fallback: calc(
      100vh - var(--mall-brand-sticky-stack-h) - 44px
    );
  }
}

/*
 * 히어로 배경 슬라이드 (CSS-only)
 *  - resorce/banner/main_banner_1~5 를 번호 순으로 페이드 순환.
 *  - 한 사이클 30s, 각 슬라이드 약 5s 노출 + 1s 크로스페이드.
 *  - prefers-reduced-motion 사용자는 애니메이션 정지 + 첫 번째 배너만 노출.
 */
#mallWrap .mall-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--mall-warm, #f3f2ef);
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

#mallWrap .mall-hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  animation: mall-hero-slideshow 30s ease-in-out infinite;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#mallWrap .mall-hero-slide--1 {
  background-image: url("../resorce/banner/main_banner_1.png");
  animation-delay: 0s;
}

#mallWrap .mall-hero-slide--2 {
  background-image: url("../resorce/banner/main_banner_2.png");
  animation-delay: 6s;
}

#mallWrap .mall-hero-slide--3 {
  background-image: url("../resorce/banner/main_banner_3.png");
  animation-delay: 12s;
}

#mallWrap .mall-hero-slide--4 {
  background-image: url("../resorce/banner/main_banner_4.png");
  animation-delay: 18s;
}

#mallWrap .mall-hero-slide--5 {
  background-image: url("../resorce/banner/main_banner_5.png");
  animation-delay: 24s;
}

/* 배너만 페이드 — 크로스페이드 약 0.45s (30s 주기의 ~1.5%) */
@keyframes mall-hero-slideshow {
  0% { opacity: 0; }
  1.5% { opacity: 1; }
  18.5% { opacity: 1; }
  20% { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #mallWrap .mall-hero-slide {
    animation: none;
    opacity: 0;
  }
  #mallWrap .mall-hero-slide--1 {
    opacity: 1;
  }
}

#mallWrap .mall-hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(12px, 2.2vw, 24px);
}

#mallWrap .mall-hero-eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

#mallWrap .mall-hero-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: #fff;
  max-width: min(100%, 22rem);
  word-break: keep-all;
  text-wrap: balance;
}

#mallWrap .mall-hero-lead {
  margin: 0 0 20px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.88);
  max-width: min(100%, 34rem);
  word-break: keep-all;
  text-wrap: pretty;
}

#mallWrap .mall-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#mallWrap .mall-hero-btn {
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 0.9375rem;
}

#mallWrap .mall-hero-meta {
  display: none;
}

#mallWrap .mall-hero-partner {
  margin: 0;
}

/* 모바일·좁은 태블릿: 히어로·필터 등 (상품 그리드는 아래 “Product grid” 단일 블록만 참고) */
@media (max-width: 900px) {
  #mallWrap .mall-hero.mall-hero--fold {
    --mall-hero-extra-h: 56px;
    padding-top: clamp(20px, 5vw, 44px);
    padding-bottom: clamp(22px, 5vw, 48px);
  }

  #mallWrap .mall-hero-inner {
    padding-bottom: clamp(18px, 4vw, 28px);
  }

  #mallWrap .mall-hero-eyebrow {
    color: rgba(255, 255, 255, 0.88);
  }

  #mallWrap .mall-hero-title {
    max-width: min(100%, 20rem);
    font-size: clamp(1.65rem, 6.5vw, 2.35rem);
    line-height: 1.2;
  }

  #mallWrap .mall-hero-lead {
    max-width: min(100%, 36rem);
    font-size: clamp(1.02rem, 3.2vw, 1.08rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
  }

  #mallWrap .mall-hero-btn {
    padding: 15px 28px;
    font-size: 1rem;
  }

  #mallWrap .mall-brand-sticky-host {
    padding-top: clamp(14px, 3vw, 20px);
    padding-bottom: clamp(14px, 3vw, 20px);
  }

  #mallWrap #brandMallStrip.brand-mall-strip {
    gap: 12px;
  }

  #mallWrap #catalog .filters--premium {
    padding: 12px 12px 14px;
    background: var(--mall-rail-frost-bg);
    backdrop-filter: blur(var(--mall-rail-frost-blur)) saturate(1.04);
    -webkit-backdrop-filter: blur(var(--mall-rail-frost-blur)) saturate(1.04);
    border: 1px solid var(--mall-rail-frost-border);
    border-radius: var(--mall-radius-lg);
    gap: 10px;
  }

  #mallWrap .catalog-list-head {
    margin-bottom: 18px;
  }

  #mallWrap .catalog-list-title {
    font-size: clamp(1.35rem, 4.5vw, 1.55rem);
  }

  #mallWrap .product-card__body {
    padding: 7px 9px 6px;
    gap: 4px;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #mallWrap .product-card__title {
    font-size: 0.8125rem;
    line-height: 1.42;
  }
}

#mallWrap .catalog-empty.catalog-empty--premium {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: clamp(280px, 38vh, 420px);
  padding: 40px 24px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed var(--mall-card-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 246, 245, 0.65) 100%);
}

#mallWrap .catalog-empty__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mall-ink);
  letter-spacing: -0.02em;
}

#mallWrap .catalog-empty__hint {
  margin: 0;
  max-width: 28ch;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--mall-muted);
}

/* @@SECTION:SKELETON@@ — Firebase 동기화 전 상품 카드 shimmer placeholder
 * JS: state.products 비어 있을 때 renderProducts() 가 주입 (app.js)
 * .product-card--skeleton 은 .is-revealed 가 미리 붙어 reveal 애니메이션 건너뜀 */
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

#mallWrap .product-card--skeleton {
  pointer-events: none;
  cursor: default;
  overflow: hidden;
}

#mallWrap .product-card--skeleton .product-card__visual {
  height: 200px;
  background: #e9ecf0;
  position: relative;
  overflow: hidden;
}

#mallWrap .product-card--skeleton .product-card__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

#mallWrap .product-card--skeleton .product-card__body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#mallWrap .skeleton-line {
  border-radius: 5px;
  height: 13px;
  background: linear-gradient(90deg, #e2e6ea 25%, #ced3d8 50%, #e2e6ea 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
#mallWrap .skeleton-line--b { animation-delay: 0.18s; }

#mallWrap .skeleton-line--title { width: 78%; }
#mallWrap .skeleton-line--price  { width: 46%; }

@media (prefers-reduced-motion: reduce) {
  #mallWrap .product-card--skeleton .product-card__visual::after,
  #mallWrap .skeleton-line {
    animation: none;
    background: #e2e6ea;
  }
}

/* @@SECTION:MALL-SECTIONS-CATALOG@@ — ——— Sections ——— */
#mallWrap .mall-section {
  padding: var(--mall-section-y) 0;
}

#mallWrap .section-header {
  margin-bottom: clamp(24px, 4vw, 36px);
}

#mallWrap .section-header--row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

#mallWrap .section-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--mall-ink);
  word-break: keep-all;
  text-wrap: balance;
}

#mallWrap .section-sub {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--mall-muted);
}

/*
 * main.css `.page.shop-list { gap: 12px }` 때문에 히어로와 아래 블록 사이 띠가 생김
 */
#mallWrap #shopListView.page.shop-list {
  gap: 0;
  row-gap: 0;
  column-gap: 0;
}

/* 히어로 아래 ~ 카탈로그 — 스티키 브랜드·카탈로그 묶음 (히어로보다 낮은 쌓임) */
#mallWrap .mall-shop-below-hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

#mallWrap #catalog.catalog-section {
  scroll-margin-top: var(--mall-sticky-stack, 280px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* PC: 브랜드 카드 줄과 목록·필터 사이 호흡 (약 40~50px) */
@media (min-width: 901px) {
  #mallWrap #catalog.catalog-section {
    margin-top: clamp(18px, 2.2vw, 28px);
  }
}

/* 브랜드 줄 — 띠(배경)만 폴드 투명 · 스티키 시 글래스 · `.brand-mall-card` 는 항상 글래스 노출 */
#mallWrap .mall-brand-sticky-host {
  position: sticky;
  /* top 을 헤더 실측 높이보다 1px 위로 당겨 미세 픽셀 갭을 흡수.
   * 사유: `--mall-topbar-h` 는 `syncMallStickyOffsets` 에서 `Math.ceil(rect.height)` 로 항상 올림되어
   *       헤더 실제 하단보다 0~1px 더 아래 좌표를 가리킬 수 있다. 여기에
   *       `html { zoom: 0.85 }` × `visualViewport.scale` × DPR 의 분수 픽셀 누적 오차가 더해지면
   *       헤더 하단과 brand strip 상단 사이에 가느다란 빈 줄(틈)이 보일 수 있음.
   *       1px 음수 보정으로 brand host 가 헤더의 `border-bottom` (1px) 위에 살짝 겹쳐 그려지게 해
   *       시각적 위화감 없이 갭을 차단한다. (border 두께가 1px 이라 겹침은 인지되지 않음.) */
  top: max(calc(var(--mall-topbar-h) - 1px), 0px);
  z-index: 45;
  margin-top: 0;
  /* 상·하 동일 — 브랜드 줄이 띠 안에서 세로로 균형 있게 보이도록 */
  padding: clamp(12px, 1.6vw, 18px) 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  overflow: visible;
  transition:
    background 0.28s var(--ease-soft),
    border-color 0.28s var(--ease-soft),
    backdrop-filter 0.28s var(--ease-soft),
    -webkit-backdrop-filter 0.28s var(--ease-soft);
}

#mallWrap .mall-brand-sticky-host.mall-brand-sticky-host--scrolled {
  background: var(--mall-rail-frost-bg);
  backdrop-filter: blur(var(--mall-rail-frost-blur)) saturate(1.04);
  -webkit-backdrop-filter: blur(var(--mall-rail-frost-blur)) saturate(1.04);
  border-bottom-color: var(--mall-rail-frost-border);
  box-shadow: 0 1px 0 var(--mall-rail-frost-highlight);
}

#mallWrap .mall-brand-sticky-host .mall-container {
  position: relative;
  z-index: 1;
  min-width: 0;
}

#mallWrap .mall-brand-curation-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  /* 가로 여백은 .mall-container 에서 통일 */
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
}

#mallWrap #brandMallStrip.brand-mall-strip:not(.brand-mall-strip--carousel) {
  /* ≤900px: 균등 그리드 열. 901px+ 에서는 미디어쿼리로 flex·카드별 폭 전환 */
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  justify-items: stretch;
}

#mallWrap #brandMallStrip.brand-mall-strip {
  margin: 0;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  /* 같은 행에서 카드 높이가 달라도 세로 가운데 정렬 */
  align-items: center;
}

#mallWrap #brandMallStrip.brand-mall-strip--curation {
  max-width: none;
}

#mallWrap #brandMallStrip.brand-mall-strip--carousel {
  min-width: 0;
}

#mallWrap #brandMallStrip .brand-mall-track--carousel {
  gap: 14px;
  min-width: 0;
  align-items: center;
}

/* 캐러셀: 가로만 트랙 안에서 스크롤 (본문 전체 가로 밀림·카드 겹침 완화) */
#mallWrap .brand-mall-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  /* overflow-y: hidden 과 테두리·글리프 정렬로 카드 상단이 잘려 보이는 경우 완화 */
  padding-top: 3px;
  padding-bottom: 3px;
}

/* 캐러셀: 내용만큼 폭 — 과대 방지, 한 카드가 너무 길어지지 않게 상한 */
#mallWrap .brand-mall-strip--carousel .brand-mall-track--carousel .brand-mall-card {
  flex: 0 0 auto;
  width: max-content;
  min-width: max(180px, min(220px, 38vw));
  max-width: min(380px, calc(100vw - 40px));
  box-sizing: border-box;
}

@media (min-width: 901px) {
  /* 브랜드 카드 묶음을 영역 정중앙에 배치 */
  #mallWrap #brandMallStrip.brand-mall-strip:not(.brand-mall-strip--carousel) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    grid-template-columns: none;
    justify-items: initial;
  }
  /* 거의 intrinsic 폭이되 한 카드가 지나치게 길어지지 않게 상한 */
  #mallWrap #brandMallStrip.brand-mall-strip:not(.brand-mall-strip--carousel) .brand-mall-card {
    width: max-content;
    max-width: min(380px, 100%);
    min-width: min(200px, 100%);
    flex: 0 1 auto;
  }
  #mallWrap #brandMallStrip .brand-mall-card {
    padding: 12px 18px;
    min-height: auto;
    gap: 3px;
    align-content: start;
    border-radius: 14px;
  }
  /* 로고 우측 — 예약 폭은 카드 최대폭 안에서만 넓어지게 */
  #mallWrap #brandMallStrip .brand-mall-card--logo {
    padding: 12px clamp(118px, calc(20px + min(112px, 22vw)), 140px) 12px 18px;
  }
  #mallWrap #brandMallStrip .brand-mall-logo-img {
    width: auto;
    max-width: min(112px, 36%);
    height: 48px;
    right: 14px;
  }
  #mallWrap #brandMallStrip .brand-mall-name {
    font-size: 0.94rem;
    line-height: 1.2;
  }
  /* 한 줄 우선, 상한 폭에서 말줄임 */
  #mallWrap #brandMallStrip .brand-mall-tagline {
    font-size: 0.78rem;
    line-height: 1.28;
    display: block;
    -webkit-box-orient: unset;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: keep-all;
    overflow-wrap: normal;
  }
  #mallWrap #brandMallStrip .brand-mall-consult {
    font-size: 0.76rem;
    line-height: 1.28;
    display: block;
    -webkit-box-orient: unset;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: keep-all;
    overflow-wrap: normal;
  }
}

/*
 * 브랜드 카드 — liquid glass (참고: effect·tint·shine 3층 → ::before·::after)
 * active 시 초록 그라데이션·그림자 없음
 */
#mallWrap #brandMallStrip .brand-mall-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--mall-brand-glass-border);
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 1px 4px rgba(15, 22, 18, 0.04);
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

#mallWrap #brandMallStrip .brand-mall-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  backdrop-filter: blur(var(--mall-brand-glass-blur)) saturate(1.04);
  -webkit-backdrop-filter: blur(var(--mall-brand-glass-blur)) saturate(1.04);
  background: var(--mall-brand-glass-tint);
  transition: background 0.32s ease, backdrop-filter 0.32s ease;
}

#mallWrap #brandMallStrip .brand-mall-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: box-shadow 0.28s ease;
}

#mallWrap #brandMallStrip .brand-mall-card > span {
  position: relative;
  z-index: 2;
}

#mallWrap #brandMallStrip .brand-mall-card--logo .brand-mall-logo-img {
  z-index: 2;
}

/* 브랜드 카드 호버: mall-hover.css */

#mallWrap #brandMallStrip .brand-mall-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 2px;
}

#mallWrap #brandMallStrip .brand-mall-card:active:not(.active) {
  box-shadow: 0 1px 3px rgba(15, 22, 18, 0.05);
}

/* active — 중성 크리스탈 글래스 (초록 틴트 없음) */
#mallWrap #brandMallStrip .brand-mall-card.active,
#mallWrap #brandMallStrip .brand-mall-card--all.active {
  border-color: var(--mall-brand-glass-border-active);
  background: transparent;
  box-shadow:
    0 2px 8px rgba(15, 22, 18, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

#mallWrap #brandMallStrip .brand-mall-card.active::before,
#mallWrap #brandMallStrip .brand-mall-card--all.active::before {
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(255, 255, 255, 0.38) 48%,
    rgba(255, 255, 255, 0.28) 100%
  );
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
}

#mallWrap #brandMallStrip .brand-mall-card.active::after,
#mallWrap #brandMallStrip .brand-mall-card--all.active::after {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#mallWrap #brandMallStrip .brand-mall-name {
  color: var(--mall-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

#mallWrap #brandMallStrip .brand-mall-card.active .brand-mall-name,
#mallWrap #brandMallStrip .brand-mall-card--all.active .brand-mall-name {
  color: var(--mall-ink);
}

#mallWrap #brandMallStrip .brand-mall-tagline {
  color: var(--mall-muted);
}

#mallWrap #brandMallStrip .brand-mall-card.active .brand-mall-tagline,
#mallWrap #brandMallStrip .brand-mall-card--all.active .brand-mall-tagline,
#mallWrap #brandMallStrip .brand-mall-card.active .brand-mall-consult,
#mallWrap #brandMallStrip .brand-mall-card--all.active .brand-mall-consult {
  color: var(--mall-muted);
}

#mallWrap #brandMallStrip .brand-mall-consult {
  color: #4a5159;
  font-weight: 650;
}

/* 로고 로드 실패 시 이니셜 플레이스홀더 */
#mallWrap #brandMallStrip .brand-mall-logo-fallback {
  display: none;
  position: absolute;
  right: 14px;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--mall-warm);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--mall-ink);
  letter-spacing: -0.03em;
}

#mallWrap #brandMallStrip .brand-mall-card--logo-fallback .brand-mall-logo-fallback {
  display: flex;
}

#mallWrap #brandMallStrip .brand-mall-card--logo-fallback .brand-mall-logo-img {
  display: none;
}

#mallWrap #brandMallStrip.brand-mall-strip--carousel {
  align-items: center;
  gap: 10px;
}

#mallWrap #brandMallStrip .brand-mall-nav {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--mall-brand-glass-border);
  background: transparent;
  color: var(--mall-ink);
  font-size: 1.125rem;
  line-height: 1;
  z-index: 0;
  box-shadow: 0 1px 4px rgba(15, 22, 18, 0.04);
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

#mallWrap #brandMallStrip .brand-mall-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  backdrop-filter: blur(var(--mall-brand-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--mall-brand-glass-blur)) saturate(1.1);
  background: var(--mall-brand-glass-tint);
}

/* 브랜드 네비 호버: mall-hover.css */

#mallWrap #brandMallStrip .brand-mall-nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 2px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #mallWrap #brandMallStrip .brand-mall-card::before,
  #mallWrap #brandMallStrip .brand-mall-nav::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(250, 250, 249, 0.92);
  }
  #mallWrap #brandMallStrip .brand-mall-card.active::before,
  #mallWrap #brandMallStrip .brand-mall-card--all.active::before {
    background: rgba(255, 255, 255, 0.94);
  }
}

#mallWrap .mall-brand-sticky-host.mall-brand-sticky-host--fold {
  /* 맨 위: 띠 배경만 투명 — `.brand-mall-card` 는 기본 liquid glass 유지 */
}

/* 브랜드 띠 하단 페이드 — 스티키로 붙은 뒤에만 (맨 위 히어로 구간은 깔끔하게) */
#mallWrap .mall-brand-sticky-host.mall-brand-sticky-host--fold::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(16px, 2.8vw, 32px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.28s var(--ease-soft);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(250, 250, 249, 0.04) 42%,
    rgba(250, 250, 249, 0.1) 78%,
    rgba(243, 242, 239, 0.22) 100%
  );
}

#mallWrap .mall-brand-sticky-host.mall-brand-sticky-host--fold.mall-brand-sticky-host--scrolled::after {
  opacity: 1;
}

/* PC — 스크롤 연동 브랜드 카드 등장 (--brand-reveal 0~1, JS rAF 지수 보간 → 끈적·템포 있게) */
@media (min-width: 901px) {
  #mallWrap .mall-brand-sticky-host--scroll-reveal .mall-brand-curation-inner {
    min-height: var(--mall-brand-reveal-min-h, 0px);
  }

  #mallWrap .mall-brand-sticky-host--scroll-reveal {
    --brand-strip-reveal: 0;
  }

  #mallWrap .mall-brand-sticky-host--scroll-reveal #brandMallStrip .brand-mall-card {
    --brand-reveal: 0;
    transition: none !important;
    will-change: transform, opacity, filter;
    opacity: var(--brand-reveal);
    transform: translate3d(calc((1 - var(--brand-reveal)) * -24px), 0, 0)
      scale(calc(0.945 + 0.055 * var(--brand-reveal)));
    filter: blur(calc((1 - var(--brand-reveal)) * 1.6px));
    flex: 0 1 auto;
    max-width: min(380px, calc(var(--brand-reveal) * 380px)) !important;
    min-width: 0 !important;
    width: max-content;
    padding-left: calc(var(--brand-reveal) * 18px) !important;
    padding-right: calc(var(--brand-reveal) * 18px) !important;
    margin-inline: calc((1 - var(--brand-reveal)) * -4px);
    border-color: rgba(27, 36, 56, calc(0.09 * var(--brand-reveal)));
    overflow: hidden;
    pointer-events: none;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
  }

  #mallWrap .mall-brand-sticky-host--scroll-reveal #brandMallStrip .brand-mall-card--logo {
    padding-right: calc(12px + var(--brand-reveal) * 108px) !important;
  }

  #mallWrap .mall-brand-sticky-host--scroll-reveal #brandMallStrip .brand-mall-card.is-revealed {
    pointer-events: auto;
  }

  #mallWrap
    .mall-brand-sticky-host--scroll-reveal
    #brandMallStrip.brand-mall-strip--carousel
    .brand-mall-nav {
    opacity: calc(0.15 + 0.85 * var(--brand-strip-reveal, 0));
    pointer-events: none;
    transition: none;
  }

  #mallWrap
    .mall-brand-sticky-host--scroll-reveal.mall-brand-sticky-host--scroll-reveal-complete
    #brandMallStrip
    .brand-mall-card {
    will-change: auto;
  }

  #mallWrap
    .mall-brand-sticky-host--scroll-reveal.mall-brand-sticky-host--scroll-reveal-complete
    #brandMallStrip.brand-mall-strip--carousel
    .brand-mall-nav {
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mallWrap #brandMallStrip .brand-mall-card,
  #mallWrap #brandMallStrip .brand-mall-card:hover,
  #mallWrap #brandMallStrip .brand-mall-nav,
  #mallWrap #brandMallStrip .brand-mall-nav:hover {
    transition: none;
    transform: none;
  }

  #mallWrap .mall-brand-sticky-host--scroll-reveal #brandMallStrip .brand-mall-card {
    --brand-reveal: 1;
    opacity: 1;
    transform: none;
    filter: none;
    max-width: none !important;
    width: auto !important;
    padding: inherit;
    margin: inherit;
    pointer-events: auto;
  }
}

@media (max-width: 1024px) {
  #mallWrap #brandMallStrip.brand-mall-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #mallWrap #brandMallStrip.brand-mall-strip.brand-mall-strip--carousel {
    grid-template-columns: 1fr;
  }
  #mallWrap #brandMallStrip .brand-mall-track--carousel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    align-items: center;
  }
  #mallWrap .brand-mall-strip.brand-mall-strip--carousel .brand-mall-track--carousel .brand-mall-card {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 560px) {
  #mallWrap #brandMallStrip.brand-mall-strip,
  #mallWrap #brandMallStrip .brand-mall-track--carousel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #mallWrap #brandMallStrip .brand-mall-card {
    min-width: 0;
  }
}

/*
 * 모바일·태블릿: 로고 카드는 우측 고정 로고 + 넓은 padding 이 가로로 “밀려” 보임
 * → 로고·텍스트 세로 스택 + 높이는 콘텐츠에 맞춤 (PC 901px+ 레이아웃 유지)
 */
@media (max-width: 900px) {
  #mallWrap #brandMallStrip .brand-mall-card {
    min-height: auto;
  }
  #mallWrap #brandMallStrip .brand-mall-card--logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 11px 13px;
    text-align: left;
    /* PC용 우측 로고 공간 제거 */
    padding-right: 13px;
  }
  #mallWrap #brandMallStrip .brand-mall-card--logo .brand-mall-logo-img {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    width: 56px;
    height: 26px;
    margin: 0 0 3px;
    object-fit: contain;
    object-position: left center;
    align-self: flex-start;
  }
  #mallWrap #brandMallStrip .brand-mall-card--logo .brand-mall-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mallWrap .mall-topbar.mall-topbar--fold,
  #mallWrap .mall-brand-sticky-host {
    transition: none;
  }
  #mallWrap .mall-topbar.mall-topbar--fold.topbar--dense,
  #mallWrap .mall-brand-sticky-host.mall-brand-sticky-host--scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(250, 250, 249, 0.94);
  }
  #mallWrap #catalog .filters--premium {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(250, 250, 249, 0.94);
  }
}

/*
 * Catalog: 필터 열 · 상품 열
 * 상품 카드 “가로가 넓어졌는지” 체감하려면 (1) 이 그리드에서 상품 열에 할당되는 폭과
 * (2) 아래 #productGrid 의 minmax(…) 가 함께 맞아야 함. 필터만 넓으면 상품 열이 줄어 카드가 안 넓어 보일 수 있음.
 */
#mallWrap #catalog .mall-catalog-layout {
  display: grid;
  grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
  gap: 0;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: clamp(14px, 1.8vw, 20px);
  padding-bottom: clamp(36px, 6vw, 72px);
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

#mallWrap #catalog .mall-catalog-layout > aside.filters--premium {
  min-height: 0;
  align-self: start;
}

@media (min-width: 901px) {
  #mallWrap #catalog .products--premium {
    min-width: 0;
    padding-left: clamp(10px, 1.4vw, 18px);
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 900px) {
  #mallWrap #catalog .mall-catalog-layout {
    grid-template-columns: 1fr;
    gap: clamp(16px, 4vw, 28px);
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
    padding-bottom: clamp(44px, 8vw, 72px);
  }
}

#mallWrap #catalog .filters--premium {
  /* sticky 폐기(2026-05-14). 사유: topbar / brand-strip / filters 3 단계 누적 sticky 가
   * `html { zoom }` × `visualViewport.scale` × `topbar--dense` 토글 곱과 결합돼
   * 화면 확대·축소 시 측정값과 실제 좌표계가 어긋나 'sticky 가 이상하게 따라옴' 현상을 유발.
   * 카탈로그가 길지 않은 임직원 몰 동선에서는 자연 스크롤이 더 안정적 — sticky 누적 사슬 자체를 끊는다.
   * (anchor scroll padding 용 --mall-sticky-stack 은 brand strip 까지의 합만 사용하므로 그대로 유효)
   *
   * NOTE: main.css 의 base `.filters { position: sticky; top: 92px }` 가 cascade 로 다시 적용되지 않도록
   *        여기서 명시적으로 static + top: auto 로 무력화한다. */
  position: static;
  top: auto;
  z-index: 38;
  padding: 6px 8px 8px 0;
  background: var(--mall-rail-frost-bg);
  backdrop-filter: blur(var(--mall-rail-frost-blur)) saturate(1.04);
  -webkit-backdrop-filter: blur(var(--mall-rail-frost-blur)) saturate(1.04);
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: var(--mall-radius-md);
}

/* 데스크톱: 좌끝 레일 — 브랜드 스티키 줄과 동일 면·톤으로 한 덩어리처럼 보이게 */
@media (min-width: 901px) {
  #mallWrap #catalog .filters--premium {
    align-self: start;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 14px 14px 16px max(14px, env(safe-area-inset-left, 0px));
    gap: 12px;
    background: var(--mall-rail-frost-bg);
    backdrop-filter: blur(var(--mall-rail-frost-blur)) saturate(1.04);
    -webkit-backdrop-filter: blur(var(--mall-rail-frost-blur)) saturate(1.04);
    border: none;
    border-bottom: 1px solid var(--mall-rail-frost-border);
    border-right: 1px solid var(--mall-rail-frost-border);
    border-left: none;
    box-shadow: none;
    border-radius: 0 var(--mall-radius-lg) var(--mall-radius-lg) 0;
    overflow: visible;
  }

  #mallWrap #catalog .filters--premium .filters-title {
    margin: 0 0 4px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--mall-linesoft);
  }
}

#mallWrap .filters-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mall-muted);
  line-height: 1.35;
  word-break: keep-all;
}

#mallWrap .filter-section {
  border-radius: var(--mall-radius-md);
  background: var(--mall-warm);
  border: 1px solid var(--mall-linesoft);
  padding: 14px 16px 16px;
  overflow: visible;
}

/* @@SECTION:FILTER-SEARCH@@ — 필터 sidebar 최상단 검색 섹션(2026-05-14 톱바에서 이전).
 * - 좌측 아이콘 + 우측 input 의 1-row 그리드. `position: relative` 위에 input padding-left 로 아이콘 공간 확보.
 * - 톤은 톱바의 기존 pill input(.mall-search input) 가 아닌, 다른 .filter-* 패턴과 어울리는 톤으로 살짝 차분하게.
 * - focus 시 mall 그린 soft ring + 흰 배경으로 강조 — 다른 select/range 와 일관. */
#mallWrap .filter-section--search {
  /* 검색 섹션 자체는 컨테이너 padding 만 갖고, input wrap 이 시각적 영역을 형성하므로 약간 더 컴팩트 */
  padding: 14px 16px 14px;
}

#mallWrap .filter-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

#mallWrap .filter-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--mall-muted);
  pointer-events: none;
  opacity: 0.85;
  transition: color 0.18s ease, opacity 0.18s ease;
}

#mallWrap .filter-search-input {
  width: 100%;
  border: 1px solid var(--mall-linesoft);
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px 10px 36px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mall-ink);
  letter-spacing: -0.012em;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

#mallWrap .filter-search-input::placeholder {
  color: var(--mall-muted);
  opacity: 0.7;
  font-weight: 500;
}

#mallWrap .filter-search-input:hover {
  border-color: rgba(20, 24, 22, 0.16);
}

#mallWrap .filter-search-input:focus {
  border-color: rgba(20, 24, 22, 0.28);
  box-shadow: 0 0 0 3px rgba(20, 24, 22, 0.08);
}

#mallWrap .filter-search-input:focus-visible {
  outline: 2px solid var(--mall-ink);
  outline-offset: 2px;
}

#mallWrap .filter-search-input:focus ~ .filter-search-icon,
#mallWrap .filter-search-wrap:focus-within .filter-search-icon {
  color: var(--mall-ink);
  opacity: 1;
}

/* search type 의 브라우저 기본 clear(×) 버튼 톤 살짝 다듬기 — 일부 Webkit 에서만 보임 */
#mallWrap .filter-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  background: linear-gradient(45deg, transparent 45%, var(--mall-muted) 45%, var(--mall-muted) 55%, transparent 55%),
              linear-gradient(-45deg, transparent 45%, var(--mall-muted) 45%, var(--mall-muted) 55%, transparent 55%);
  cursor: pointer;
  opacity: 0.6;
}
#mallWrap .filter-search-input::-webkit-search-cancel-button:hover {
  opacity: 1;
}

#mallWrap .filter-section-heading {
  margin: 0 0 12px;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mall-ink);
  line-height: 1.4;
  word-break: keep-all;
}

#mallWrap .filter-section-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#mallWrap .filter-section-fields .filter-field {
  padding: 0;
}

#mallWrap .filter-section .chip-wrap {
  padding: 0;
}

#mallWrap .filter-section-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 가격 슬라이더: thumb 여유 */
#mallWrap .filter-section .filter-field.filter-field--range {
  margin-bottom: 0;
  padding-bottom: 6px;
}

#mallWrap .filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mall-muted);
}

#mallWrap .filter-section-fields .filter-field:last-child {
  margin-bottom: 0;
}

#mallWrap .filter-select {
  border: none;
  background: var(--mall-warm);
  border-radius: 12px;
  padding: 11px 14px;
  font: inherit;
  font-weight: 500;
  color: var(--mall-ink);
}

#mallWrap .filter-section .filter-select {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 27, 51, 0.06);
}

#mallWrap .filter-field--range input[type="range"] {
  width: 100%;
  min-height: 44px;
  margin: 4px 0 0;
  padding: 8px 0 12px;
  box-sizing: border-box;
  accent-color: var(--mall-ink);
  cursor: pointer;
}

#mallWrap .price-cap-view {
  display: block;
  margin-top: 8px;
  margin-bottom: 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mall-ink);
  line-height: 1.45;
}

#mallWrap .filter-check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 2px 0;
}

#mallWrap .filter-check-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: #fff;
  accent-color: var(--mall-ink);
  cursor: pointer;
  box-shadow: none;
}

#mallWrap .filter-check-row input[type="checkbox"]:focus {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}

#mallWrap .filter-check-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--mall-ink);
  outline-offset: 2px;
}

#mallWrap .filter-check-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--mall-ink);
  cursor: pointer;
}

#mallWrap .filter-reset {
  border-radius: 999px;
  margin-top: 8px;
  border: 1px solid rgba(20, 24, 22, 0.14);
  background: rgba(255, 255, 255, 0.75);
  color: var(--mall-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
#mallWrap .filter-reset:hover {
  background: #fff;
  border-color: rgba(20, 24, 22, 0.22);
  color: var(--mall-ink);
  box-shadow: 0 2px 8px rgba(15, 22, 18, 0.05);
}
#mallWrap .filter-reset:focus-visible {
  outline: 2px solid var(--mall-ink);
  outline-offset: 2px;
}

/* Chips premium */
#mallWrap .chip-wrap--premium {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#mallWrap .chip-wrap--premium .chip {
  border-radius: 999px;
  border: none;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--mall-warm);
  color: var(--mall-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

#mallWrap .filter-section .chip-wrap--premium .chip {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 27, 51, 0.06);
}


#mallWrap .chip-wrap--premium .chip.active {
  background: var(--mall-cta-gradient);
  color: #fff;
  box-shadow: 0 1px 4px rgba(15, 22, 18, 0.08);
  border: 1px solid rgba(53, 58, 66, 0.1);
}

/* Product grid — 필터 제외 상품 열 기준 PC 6열 · 카드는 1:1 썸네일 + 컴팩트 본문 */
#mallWrap .catalog-list-head.catalog-list-head--premium {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mall-card-divider);
}

#mallWrap .catalog-list-title {
  margin: 0 0 4px;
  font-size: clamp(1.2rem, 1.8vw, 1.42rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  word-break: keep-all;
  text-wrap: balance;
  color: var(--mall-ink);
}

#mallWrap .catalog-list-sub {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--mall-muted);
  word-break: keep-all;
  font-variant-numeric: tabular-nums;
}

#mallWrap .product-grid--premium {
  display: grid;
  /* 행 맞춤(stretch) 해제 — 카드가 한 줄에서 제일 긴 카드 높이만큼 늘어나 ‘빼빼로’처럼 보이는 현상 방지 */
  align-items: start;
  /* 검색·필터로 결과 수가 줄어도 grid 높이가 급격히 짧아지지 않게 최소 높이 확보.
   * 안 두면: 결과 줄어듦 → 페이지 총 높이 감소 → 브라우저가 scrollY 를 페이지 끝 안으로 강제 보정 → '위로 출렁' 현상.
   * clamp(360px, 50vh, 720px) — 모바일(작은 vh)에서도 360px 이상, 데스크탑에서도 720px 상한으로 과도한 빈 공간 방지. */
  min-height: clamp(360px, 50vh, 720px);
}

#mallWrap .product-grid__row-band {
  display: none;
}

@media (min-width: 901px) {
  /* PC(100% 줌 기준): 한 줄 6칸 고정 */
  #mallWrap #catalog #productGrid.product-grid--premium,
  #mallWrap #catalog .products--premium .product-grid--premium {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 16px;
  }

  /* 6행(36칸)마다 app.js 가 삽입하는 전폭 구간선 */
  #mallWrap .product-grid__row-band {
    display: block;
    grid-column: 1 / -1;
    margin: clamp(18px, 2.4vw, 32px) 0 clamp(6px, 0.8vw, 10px);
    padding: 0;
    border: 0;
    height: 0;
    border-top: 1px solid rgba(20, 24, 22, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  }
}

@media (max-width: 900px) {
  #mallWrap #catalog #productGrid.product-grid--premium,
  #mallWrap #catalog .products--premium .product-grid--premium {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 520px) {
  #mallWrap #catalog #productGrid.product-grid--premium,
  #mallWrap #catalog .products--premium .product-grid--premium {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 158px), 1fr));
    gap: 10px;
  }
}

#mallWrap .product-card.product-card--commerce {
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: var(--mall-radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #fdfcfb 100%);
  border: 1px solid var(--mall-card-border);
  overflow: hidden;
  box-shadow: var(--mall-card-shadow);
  isolation: isolate;
  transition:
    box-shadow    0.32s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color  0.22s var(--ease-soft);
}

#mallWrap .product-card.product-card--commerce:focus-within {
  border-color: var(--mall-card-border-hover);
  box-shadow: var(--mall-card-shadow-hover);
}

#mallWrap .product-card.product-card--soldout {
  opacity: 0.55;
  /* reveal 후 돌아올 opacity 값 — .is-revealed 규칙에서 var() 로 참조 (mall-premium 단일 관리) */
  --card-final-opacity: 0.55;
}

#mallWrap .product-card.product-card--soldout .product-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 22, 0.38);
  pointer-events: none;
  z-index: 1;
}

#mallWrap .product-card__soldout-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(139, 58, 58, 0.92);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

#mallWrap .product-card.product-card--soldout .product-card__stock--out {
  color: #fff;
  background: #b44a4a;
  border: 1px solid rgba(139, 58, 58, 0.35);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* @@SECTION:SCROLL-REVEAL@@ ─ 스크롤 reveal (mall-motion.js 와 쌍)
 *
 * 설계 포인트:
 *  - `#mallWrap.reveal-ready` guard: JS 로드 후에만 활성화 → JS 없어도 카드 정상 표시(FOUC 방지)
 *  - CSS `translate` 속성(별도 프로퍼티): 기존 `transform: translateY(-2px)` hover 와 합성 독립
 *    (translate + transform 은 별도 레이어로 합산되므로 hover 애니메이션과 충돌 없음)
 *  - `--reveal-delay`: JS 가 카드 DOM 순서 기반으로 인라인 주입, 최대 480ms 캡
 *  - `--card-final-opacity`: soldout(0.55) / 일반(1) 자동 분기 */

/* 뷰포트 미진입 카드 — 숨김 + reveal 트랜지션 */
#mallWrap.reveal-ready .product-card--commerce:not(.is-revealed) {
  opacity: 0;
  translate: 0 16px;
  /* reveal 트랜지션 + 기존 hover 트랜지션을 함께 선언해 hover 가 죽지 않도록 */
  transition:
    opacity      0.52s ease-out                                var(--reveal-delay, 0ms),
    translate    0.52s cubic-bezier(0.22, 1, 0.36, 1)         var(--reveal-delay, 0ms),
    transform    0.24s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow   0.24s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 0.18s var(--ease-soft, cubic-bezier(0.4, 0, 0.2, 1));
}

/* 뷰포트 진입 완료 — soldout(0.55) / 일반(1) 자동 분기 */
#mallWrap.reveal-ready .product-card--commerce.is-revealed {
  opacity: var(--card-final-opacity, 1);
  translate: none;
}

/* reduced-motion: 즉시 최종 상태, 애니메이션 없음 */
@media (prefers-reduced-motion: reduce) {
  #mallWrap.reveal-ready .product-card--commerce:not(.is-revealed) {
    opacity: var(--card-final-opacity, 1);
    translate: none;
    transition: none;
  }
}

#mallWrap .product-card__visual {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--mall-card-visual-bg);
  border-bottom: 1px solid var(--mall-card-divider);
}

#mallWrap .product-card__visual .product-image-hit {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: none;
  padding: 12px;
  box-sizing: border-box;
  cursor: pointer;
  background: transparent;
  border-radius: 0;
}

#mallWrap .product-card__visual .product-image-hit:focus-visible {
  outline: 2px solid var(--mall-charcoal);
  outline-offset: -3px;
}

/* 사진 실제 영역만 둥글게 — img 100% 박스에 border-radius 만 주면 각져 보임 */
#mallWrap .product-image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: var(--mall-product-img-radius);
  overflow: hidden;
  line-height: 0;
  flex: 1 1 auto;
  min-height: 0;
}

#mallWrap .product-card__visual .product-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  border-radius: 0;
}

/* main.css 고정 높이 무효화 — 4:3 비율 박스 안에서만 표시 */
@media (max-width: 900px) {
  #mallWrap .product-card__visual .product-image {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain;
  }
}


/* 상품 이미지 — 브랜드(좌상단 탭) · 임직원(우상단 pill) 뱃지 */
#mallWrap .product-card__badge-stack {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

#mallWrap .product-card__badge {
  position: absolute;
  margin: 0;
  line-height: 1.2;
  word-break: keep-all;
  pointer-events: none;
}

/* 브랜드 — 참고 카드 _category 코너 탭 (축소) */
#mallWrap .product-card__badge--brand {
  top: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  max-inline-size: min(58%, 7.5rem);
  min-block-size: 1.625rem;
  padding: 0.3rem 0.55rem 0.3rem 0.45rem;
  border-end-end-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.97);
  color: var(--mall-charcoal-deep);
  box-shadow: 0 4px 14px rgba(53, 58, 66, 0.1);
  filter: drop-shadow(3px 3px 2px rgba(20, 24, 22, 0.06));
}

#mallWrap .product-card__badge--brand::before,
#mallWrap .product-card__badge--brand::after {
  content: "";
  position: absolute;
  block-size: 0.75rem;
  aspect-ratio: 1;
  background-color: inherit;
  mask-image: radial-gradient(
    circle at 100% 100%,
    transparent 0.75rem,
    #000 calc(0.75rem + 1px)
  );
}

#mallWrap .product-card__badge--brand::before {
  inset-block-start: 0;
  inset-inline-start: 100%;
}

#mallWrap .product-card__badge--brand::after {
  inset-block-start: 100%;
  inset-inline-start: 0;
}

#mallWrap .product-card__badge-brand-img {
  display: block;
  max-block-size: 0.95rem;
  max-inline-size: 3.25rem;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

#mallWrap .product-card__badge-brand-text {
  display: block;
  max-inline-size: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mall-stone);
}

/* 임직원 — 참고 _tag pill */
#mallWrap .product-card__badge--staff {
  top: 0.55rem;
  right: 0.55rem;
  z-index: 6;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mall-accent-deal);
  background: var(--mall-accent-deal-soft);
  border: 1px solid rgba(154, 92, 69, 0.18);
  box-shadow: 0 2px 10px rgba(154, 92, 69, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#mallWrap .product-card__badge-discount {
  display: none;
}

#mallWrap .product-card__body {
  flex: 0 1 auto;
  padding: 13px 14px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
}

#mallWrap .product-card__brand {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mall-stone);
  line-height: 1.35;
  word-break: keep-all;
}

#mallWrap .product-card__title {
  margin: 0;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--mall-ink);
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

#mallWrap .product-card__title:hover {
  color: var(--mall-charcoal);
}

#mallWrap .product-card__title:focus-visible {
  outline: 2px solid var(--mall-charcoal);
  outline-offset: 2px;
  border-radius: 4px;
}

#mallWrap .product-card__price-block {
  flex: 0 1 auto;
  margin-top: 2px;
  min-height: 2.65rem;
}

#mallWrap .product-card__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}

#mallWrap .product-card__sale {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--mall-ink);
  font-variant-numeric: tabular-nums;
}

#mallWrap .product-card__base {
  font-size: 0.75rem;
  color: var(--mall-muted);
  text-decoration: line-through;
  opacity: 0.8;
}

#mallWrap .product-card__pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(20, 24, 22, 0.06);
  color: var(--mall-ink);
}

/* 임직원 혜택: 일반가(취소선) + 구매가 */
#mallWrap .product-card__staff-prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

#mallWrap .product-card__retail-line,
#mallWrap .product-card__purchase-line {
  margin: 0;
  line-height: 1.2;
}

#mallWrap .product-card__purchase-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

#mallWrap .product-card__save-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

#mallWrap .product-card__pct {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mall-accent-deal);
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mall-accent-deal-soft);
  border: 1px solid rgba(154, 92, 69, 0.12);
  letter-spacing: 0;
}

#mallWrap .product-card__save-amt {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mall-accent-deal);
  letter-spacing: -0.02em;
}

#mallWrap .product-card__retail-struck {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mall-muted);
  text-decoration: line-through;
}

#mallWrap .product-card__purchase {
  font-size: clamp(1rem, 2.5vw, 1.08rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--mall-ink);
  font-variant-numeric: tabular-nums;
}

#mallWrap .product-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px solid var(--mall-card-divider);
}

#mallWrap .product-card__stock,
#mallWrap .product-card__limit,
#mallWrap .product-card__ship {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  word-break: keep-all;
}

#mallWrap .product-card__stock {
  color: var(--mall-muted);
  background: rgba(64, 70, 80, 0.05);
}

#mallWrap .product-card__stock--low {
  color: #9a5b14;
  background: rgba(210, 140, 40, 0.12);
}

#mallWrap .product-card__stock--out {
  color: #8b3a3a;
  background: rgba(180, 60, 60, 0.1);
}

#mallWrap .product-card__limit {
  color: var(--mall-muted);
  background: transparent;
  border: 1px solid var(--mall-card-divider);
}

#mallWrap .product-card__ship {
  color: var(--mall-muted);
  background: rgba(64, 70, 80, 0.04);
}

#mallWrap .product-card__price-row--retail {
  align-items: baseline;
}

/* PC 상세 — #mallWrap 내부 #productDetailView, .product-detail-page 로 직접 지정 */
.product-detail-page .detail-hero {
  align-items: stretch;
}

.product-detail-page {
  --mall-product-img-radius: 16px;
  --mall-green: #3a9d6e;
  --mall-green-deep: #2d8059;
  --mall-ink: #2a2f36;
  --mall-muted: #585f68;
  --mall-charcoal-deep: #353a42;
  --mall-cta-gradient: linear-gradient(165deg, #4a5159 0%, #383d45 100%);
  --mall-cta-shadow: 0 1px 0 rgba(255, 255, 255, 0.09) inset, 0 4px 14px rgba(53, 58, 66, 0.14);
  --mall-accent-deal: #9a5c45;
  --mall-card-border: rgba(64, 70, 80, 0.09);
  --mall-card-shadow: 0 1px 1px rgba(53, 58, 66, 0.03), 0 6px 20px rgba(53, 58, 66, 0.035);
  --mall-radius-lg: 20px;
}

/* PC 상세 — 카탈로그 필터 열 오프셋 없이 본문 가운데 정렬(우측 몰림 방지) */
@media (min-width: 901px) {
  #mallWrap #productDetailView.product-detail-page.container {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: clamp(14px, 1.8vw, 20px);
    padding-bottom: clamp(36px, 6vw, 72px);
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }

  #mallWrap #productDetailView .detail-toolbar,
  #mallWrap #productDetailView .product-detail-root {
    width: 100%;
    max-width: min(1120px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  #mallWrap #productDetailView .detail-toolbar {
    margin-top: 0;
    margin-bottom: clamp(14px, 1.6vw, 18px);
  }

  #mallWrap #productDetailView .detail-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 36px);
  }

  #mallWrap #productDetailView .detail-hero,
  #mallWrap #productDetailView .detail-specs,
  #mallWrap #productDetailView .detail-article {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

.product-detail-page .detail-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  overflow: hidden;
  border-radius: var(--mall-radius-lg);
  position: relative;
  isolation: isolate;
  min-height: min(320px, 42vh);
  padding: clamp(10px, 1.4vw, 14px) clamp(8px, 1.2vw, 12px);
  box-sizing: border-box;
  background: linear-gradient(165deg, #faf9f7 0%, #f3f1ee 50%, #fafafa 100%);
  border: 1px solid var(--mall-card-border);
}

/* 상세 갤러리 — 카탈로그 카드와 동일 브랜드·임직원 뱃지 */
.product-detail-page .detail-gallery .product-card__badge-stack {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.product-detail-page .detail-gallery .product-card__badge {
  position: absolute;
  margin: 0;
  line-height: 1.2;
  word-break: keep-all;
  pointer-events: none;
}

.product-detail-page .detail-gallery .product-card__badge--brand {
  top: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  max-inline-size: min(62%, 8.5rem);
  min-block-size: 1.85rem;
  padding: 0.35rem 0.62rem 0.35rem 0.5rem;
  border-end-end-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.97);
  color: var(--mall-charcoal-deep);
  box-shadow: 0 4px 14px rgba(53, 58, 66, 0.1);
  filter: drop-shadow(3px 3px 2px rgba(20, 24, 22, 0.06));
}

.product-detail-page .detail-gallery .product-card__badge--brand::before,
.product-detail-page .detail-gallery .product-card__badge--brand::after {
  content: "";
  position: absolute;
  block-size: 0.8rem;
  aspect-ratio: 1;
  background-color: inherit;
  mask-image: radial-gradient(
    circle at 100% 100%,
    transparent 0.8rem,
    #000 calc(0.8rem + 1px)
  );
}

.product-detail-page .detail-gallery .product-card__badge--brand::before {
  inset-block-start: 0;
  inset-inline-start: 100%;
}

.product-detail-page .detail-gallery .product-card__badge--brand::after {
  inset-block-start: 100%;
  inset-inline-start: 0;
}

.product-detail-page .detail-gallery .product-card__badge-brand-img {
  display: block;
  max-block-size: 1.05rem;
  max-inline-size: 3.75rem;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.product-detail-page .detail-gallery .product-card__badge-brand-text {
  display: block;
  max-inline-size: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mall-stone);
}

.product-detail-page .detail-gallery .product-card__badge--staff {
  top: 0.65rem;
  right: 0.65rem;
  z-index: 6;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  font-size: 0.71875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mall-accent-deal);
  background: var(--mall-accent-deal-soft);
  border: 1px solid rgba(154, 92, 69, 0.18);
  box-shadow: 0 2px 10px rgba(154, 92, 69, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-detail-page .detail-brand-head,
.product-detail-page .detail-keyword-row {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 5px 6px;
  margin: 0 0 10px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.product-detail-page .detail-brand-head::-webkit-scrollbar,
.product-detail-page .detail-keyword-row::-webkit-scrollbar {
  display: none;
}

.product-detail-page .detail-keyword-row .detail-category-pill,
.product-detail-page .detail-keyword-row .badge {
  flex: 0 0 auto;
  white-space: nowrap;
}

.product-detail-page .detail-category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mall-muted);
  background: rgba(20, 24, 22, 0.04);
  border: 1px solid rgba(20, 24, 22, 0.06);
}

.product-detail-page .detail-hero {
  border-radius: var(--mall-radius-lg);
  border: 1px solid var(--mall-card-border);
  box-shadow: var(--mall-card-shadow);
  background: linear-gradient(180deg, #ffffff 0%, #fdfcfb 100%);
  padding: clamp(18px, 2.5vw, 26px);
  overflow: hidden;
}

.product-detail-page .detail-buy .badge-line {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 5px 6px;
  margin-bottom: 8px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-detail-page .detail-buy .badge-line .badge {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mall-charcoal-deep);
  background: rgba(20, 24, 22, 0.05);
  border: 1px solid rgba(20, 24, 22, 0.07);
}

.product-detail-page .detail-specs.panel,
.product-detail-page .detail-article {
  border-radius: var(--mall-radius-lg);
  border: 1px solid var(--mall-card-border);
  box-shadow: var(--mall-card-shadow);
  background: linear-gradient(180deg, #ffffff 0%, #fdfcfb 100%);
  padding: clamp(18px, 2.5vw, 24px);
}

.product-detail-page .detail-section-title {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mall-charcoal-deep);
}

.product-detail-page .detail-quick-meta {
  border-radius: var(--mall-radius-md);
  background: linear-gradient(180deg, #f8f7f5 0%, #f3f2ef 100%);
  border: 1px solid rgba(20, 24, 22, 0.06);
}

.product-detail-page .detail-soldout-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(139, 58, 58, 0.92);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.product-detail-page .detail-gallery__frame--soldout img {
  opacity: 0.72;
  filter: grayscale(0.35);
}

.product-detail-page .detail-soldout-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(180, 60, 60, 0.28);
  background: rgba(180, 60, 60, 0.1);
}

.product-detail-page .detail-soldout-alert__pill {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #b44a4a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.product-detail-page .detail-soldout-alert__text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #8b3a3a;
  line-height: 1.4;
}

.product-detail-page .detail-stock-out {
  color: #b44a4a;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.product-detail-page .detail-hero--soldout #detailAddCart:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  background: #8b8f96;
  border-color: #8b8f96;
  box-shadow: none;
}

.product-detail-page .detail-gallery__frame {
  display: inline-block;
  max-width: 100%;
  border-radius: var(--mall-product-img-radius);
  overflow: hidden;
  line-height: 0;
}

.product-detail-page .detail-gallery__frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(620px, 68vh);
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
}

.product-detail-page .detail-specs,
.product-detail-page .detail-article {
  content-visibility: auto;
  contain-intrinsic-size: auto 240px;
}

.product-detail-page .detail-block__figure {
  display: block;
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--mall-product-img-radius);
  border: 1px solid var(--line);
  overflow: hidden;
}

/* 상세 우측 가격 — PC 상세(#productDetailView) + 어드민 미리보기(#mallWrap 내부) 공통 */
.product-detail-page .detail-price-row.price-area,
#mallWrap .detail-price-row.price-area {
  margin-top: 10px;
  padding: 0;
  background: transparent;
  border: none;
}

.product-detail-page .staff-price-panel,
#mallWrap .staff-price-panel {
  padding: 20px 20px 18px;
  border-radius: var(--mall-radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #faf9f7 100%);
  border: 1px solid var(--mall-card-border);
  box-shadow: var(--mall-card-shadow);
}

.product-detail-page .staff-price-panel__hero,
#mallWrap .staff-price-panel__hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.product-detail-page .staff-price-panel__bubble-wrap.hidden,
#mallWrap .staff-price-panel__bubble-wrap.hidden {
  display: none;
}

.product-detail-page .staff-price-panel__bubble,
#mallWrap .staff-price-panel__bubble {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--mall-cta-gradient);
  color: #fff;
  box-shadow: var(--mall-cta-shadow);
  border: 1px solid rgba(53, 58, 66, 0.1);
}

.product-detail-page .staff-price-panel__bubble-num,
#mallWrap .staff-price-panel__bubble-num {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.product-detail-page .staff-price-panel__bubble-unit,
#mallWrap .staff-price-panel__bubble-unit {
  margin-left: 1px;
  font-size: 1rem;
  font-weight: 800;
  opacity: 0.92;
}

.product-detail-page .staff-price-panel__kicker,
#mallWrap .staff-price-panel__kicker {
  margin: 0 0 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mall-muted);
  line-height: 1.35;
  word-break: keep-all;
}

.product-detail-page .staff-price-panel__tagline,
#mallWrap .staff-price-panel__tagline {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--mall-ink);
  word-break: keep-all;
}

.product-detail-page .staff-price-panel__tagline.hidden,
#mallWrap .staff-price-panel__tagline.hidden {
  display: none;
}

.product-detail-page .staff-price-panel__price-row,
#mallWrap .staff-price-panel__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.product-detail-page .staff-price-panel__price-label,
#mallWrap .staff-price-panel__price-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mall-muted);
}

.product-detail-page .staff-price-panel__sale,
#mallWrap .staff-price-panel__sale {
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.product-detail-page .staff-price-panel__ref,
#mallWrap .staff-price-panel__ref {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  line-height: 1.45;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  word-break: keep-all;
}

.product-detail-page .staff-price-panel__ref [data-detail-base],
#mallWrap .staff-price-panel__ref [data-detail-base] {
  font-weight: 700;
  color: var(--mall-ink);
}

.product-detail-page .staff-price-panel__save,
#mallWrap .staff-price-panel__save {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mall-accent-deal, #c2410c);
}

.product-detail-page .staff-price-panel__save.hidden,
#mallWrap .staff-price-panel__save.hidden {
  display: none;
}

.product-detail-page .staff-price-panel__company,
#mallWrap .staff-price-panel__company {
  margin: 0;
  font-size: 0.8rem;
}

#mallWrap .product-card__actions {
  flex-shrink: 0;
  margin-top: 0;
  padding: 11px 14px 14px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--mall-card-divider);
  background: transparent;
}

#mallWrap .product-card__actions select {
  border: 1px solid var(--mall-card-divider);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mall-ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#mallWrap .product-card__actions select:hover {
  border-color: var(--mall-card-border-hover);
  background: #fff;
}

#mallWrap .product-card__actions select:focus-visible {
  outline: none;
  border-color: rgba(20, 24, 22, 0.28);
  box-shadow: 0 0 0 2px rgba(20, 24, 22, 0.08);
}

#mallWrap .product-card__action-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 6px;
}

#mallWrap .product-card__actions .product-card__btn {
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 8px;
  min-height: 36px;
  letter-spacing: -0.01em;
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}


#mallWrap .product-card__actions .product-card__btn:focus-visible {
  outline: 2px solid var(--mall-charcoal);
  outline-offset: 2px;
}

#mallWrap .product-card__actions .product-card__btn--detail {
  border-color: var(--mall-card-divider);
  background: rgba(255, 255, 255, 0.85);
  color: var(--mall-charcoal);
}

#mallWrap .product-card__actions .product-card__btn--detail:hover {
  border-color: var(--mall-card-border-hover);
  background: #fff;
  color: var(--mall-ink);
}

#mallWrap .product-card__actions .product-card__btn--add,
#mallWrap .product-card__actions .product-card__btn--add.btn-primary {
  border: 1px solid var(--mall-card-divider);
  background: rgba(255, 255, 255, 0.85);
  color: var(--mall-charcoal);
  box-shadow: none;
}

#mallWrap .product-card__actions .product-card__btn--add:hover:not(:disabled):not(.is-added),
#mallWrap .product-card__actions .product-card__btn--add.btn-primary:hover:not(:disabled):not(.is-added) {
  border-color: var(--mall-card-border-hover);
  background: #fff;
  color: var(--mall-ink);
  box-shadow: none;
}

#mallWrap .product-card__actions .product-card__btn--add:disabled:not(.is-added) {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

#mallWrap .product-card__actions .product-card__btn--add.is-await-option:not(:disabled):not(.is-added),
#productDetailView #detailAddCart.is-await-option:not(:disabled) {
  opacity: 0.78;
}

/* 담기 → ✓ 추가됨 — 색상 강조 없이 테두리·톤만 살짝 변경 */
#mallWrap .product-card__actions .product-card__btn--add.is-added,
#mallWrap .product-card__actions .product-card__btn--add.btn-primary.is-added {
  background: rgba(64, 70, 80, 0.06) !important;
  border-color: var(--mall-card-border-hover) !important;
  color: var(--mall-charcoal-deep) !important;
  opacity: 1 !important;
  cursor: default;
  box-shadow: none !important;
  animation: mall-add-confirm 0.28s var(--mall-hover-ease, cubic-bezier(0.22, 1, 0.36, 1));
}


@media (prefers-reduced-motion: reduce) {
  #mallWrap .product-card.product-card--commerce,
  #mallWrap .product-card.product-card--commerce:hover,
  #mallWrap .product-image-frame,
  #mallWrap .product-card__visual .product-image,
  #mallWrap .product-card__actions .product-card__btn {
    transition: none;
    transform: none;
    translate: none;
  }
}

/* 내 정보 입력 모달 — 카드 단일 패널(내부 스크롤 없음), 몰 타이포·폼 토큰 */
#mallWrap .payment-result-card.mall-profile-card {
  width: min(420px, 100%);
  padding: clamp(22px, 4.5vw, 30px) clamp(20px, 4vw, 26px) 22px;
  border-radius: var(--mall-radius-lg);
  border: 1px solid var(--mall-linesoft);
  background: var(--mall-surface-elevated);
  box-shadow: var(--mall-shadow-hover);
}

#mallWrap .mall-profile-card .payment-result-lead {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mall-muted);
}

#mallWrap .mall-profile-card .payment-result-title.mall-profile-title {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.8vw, 1.44rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.28;
  color: var(--mall-ink);
}

#mallWrap .mall-profile-card .payment-result-muted {
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--mall-ink) 72%, var(--mall-muted));
}

#mallWrap .mall-profile-card .mall-pay-notice {
  margin: 14px 0 2px;
}

#mallWrap .mall-profile-form {
  margin-top: 18px;
  gap: 12px;
  text-align: left;
}

#mallWrap .mall-profile-form .field-block {
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mall-muted);
}

#mallWrap .mall-profile-form .mall-profile-field-block--name > label {
  font-weight: 700;
  color: var(--mall-ink);
}

#mallWrap .mall-profile-form input {
  border-radius: var(--mall-radius-md);
  border-color: rgba(20, 24, 22, 0.12);
  background: var(--mall-warm);
  font-size: 0.9375rem;
  color: var(--mall-ink);
}

#mallWrap .mall-profile-form input:focus {
  border-color: var(--mall-green);
  box-shadow: 0 0 0 3px var(--mall-green-soft);
}

#mallWrap .mall-profile-shipping.inline-box {
  border-color: rgba(58, 157, 110, 0.28);
  background: rgba(58, 157, 110, 0.07);
}

#mallWrap .mall-profile-shipping .inline-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mall-green-deep);
  letter-spacing: -0.02em;
}

#mallWrap .mall-profile-head .mall-profile-close.btn-text {
  color: var(--mall-muted);
  font-weight: 600;
  text-decoration: none;
}

#mallWrap .mall-profile-head .mall-profile-close.btn-text:hover {
  color: var(--mall-ink);
  text-decoration: underline;
}

/* ─── 마이페이지 (소비자 몰 톤) ─── */
#mallWrap .mall-mypage {
  padding-top: clamp(20px, 4vw, 36px);
  padding-bottom: clamp(48px, 10vw, 88px);
  /* 카탈로그·관리자와 비슷한 폭으로 — 너무 좁아 보이지 않게(헤더는 전체 폭이라 비교 시 더 좁게 느껴짐) */
  width: 100%;
  max-width: min(1480px, 96vw);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 2vw, 28px);
  padding-right: clamp(16px, 2vw, 28px);
  box-sizing: border-box;
}

#mallWrap .mall-mypage-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(22px, 4vw, 32px);
}

/* '.mall-mypage-back' 스타일은 마크업 제거(2026-05-14)와 함께 폐기.
 * 홈 복귀는 톱바 #mallHomeBtn + 사이드 nav #mallMypageHomeBtn 두 진입점이 대신한다. */

#mallWrap .mall-mypage-kicker {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mall-muted);
}

#mallWrap .mall-mypage-title.mypage-title {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--mall-ink);
}

#mallWrap .mall-mypage-sub.mypage-sub {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 42ch;
}

#mallWrap .mall-mypage-layout.mypage-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
}

#mallWrap .mall-mypage-nav.mypage-nav {
  padding: 14px;
  gap: 8px;
  border-radius: var(--mall-radius-lg);
  background: var(--mall-rail-frost-bg);
  backdrop-filter: blur(var(--mall-rail-frost-blur)) saturate(1.04);
  -webkit-backdrop-filter: blur(var(--mall-rail-frost-blur)) saturate(1.04);
  border: 1px solid var(--mall-rail-frost-border);
  box-shadow: 0 1px 4px rgba(15, 22, 18, 0.04);
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--mall-topbar-h, 88px) + 10px);
}

#mallWrap .mall-mypage-nav .mypage-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid rgba(20, 24, 22, 0.08);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mall-muted);
  text-align: left;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
/* nav 탭 아이콘 — 기본 dim, hover/active 시 풀투명도로 시선 유도 */
#mallWrap .mall-mypage-nav .mypage-nav-btn > svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

#mallWrap .mall-mypage-nav .mypage-nav-btn:hover {
  border-color: rgba(58, 157, 110, 0.35);
  background: rgba(58, 157, 110, 0.1);
  color: var(--mall-ink);
}
#mallWrap .mall-mypage-nav .mypage-nav-btn:hover > svg {
  opacity: 1;
}

#mallWrap .mall-mypage-nav .mypage-nav-btn.active {
  border-color: rgba(64, 70, 80, 0.12);
  background: rgba(64, 70, 80, 0.05);
  color: var(--mall-charcoal-deep);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}
#mallWrap .mall-mypage-nav .mypage-nav-btn.active > svg {
  opacity: 1;
}

/* @@SECTION:MYPAGE-NAV-HOME@@ — 마이페이지 nav 최상단의 '홈으로 이동' 단축 버튼.
 * 위계: 헤더 좌측 '← 쇼핑 계속하기' 와 동일 동작이지만, 사이드 nav 안에 머무는 사용자 시선 동선에 맞춰 추가.
 * 시각: 하위 탭(.mypage-nav-btn) 과 명확히 구분하도록 다크 primary + 그림자. */
#mallWrap .mall-mypage-nav .mypage-nav-home {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(53, 58, 66, 0.1);
  border-radius: 12px;
  background: var(--mall-cta-gradient);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: left;
  line-height: 1.2;
  box-shadow: var(--mall-cta-shadow);
  transition: background 0.2s ease,
              transform 0.18s var(--ease-soft, ease),
              box-shadow 0.2s ease;
}
#mallWrap .mall-mypage-nav .mypage-nav-home > svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
#mallWrap .mall-mypage-nav .mypage-nav-home:hover {
  background: var(--mall-cta-gradient-hover);
  transform: translateY(-1px);
  box-shadow: var(--mall-cta-shadow-hover);
}
#mallWrap .mall-mypage-nav .mypage-nav-home:active {
  transform: translateY(0);
  box-shadow: var(--mall-cta-shadow);
}
#mallWrap .mall-mypage-nav .mypage-nav-home:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
  box-shadow: 0 0 0 3px var(--mall-focus-ring), 0 6px 18px rgba(15, 22, 18, 0.16);
}
#mallWrap .mall-mypage-nav .mypage-nav-divider {
  display: block;
  height: 1px;
  background: rgba(20, 24, 22, 0.1);
  margin: 4px 2px;
}
@media (prefers-reduced-motion: reduce) {
  #mallWrap .mall-mypage-nav .mypage-nav-home {
    transition: none;
  }
  #mallWrap .mall-mypage-nav .mypage-nav-home:hover {
    transform: none;
  }
}

#mallWrap .mall-mypage-content.mypage-content {
  border-radius: var(--mall-radius-lg);
  border: 1px solid rgba(20, 24, 22, 0.07);
  background: var(--mall-surface-elevated);
  box-shadow: var(--mall-shadow);
  padding: clamp(22px, 3vw, 28px) clamp(20px, 3vw, 26px);
  min-height: 320px;
}

/* 배송지(회원·배송 2그룹)·비밀번호 폼 — main.css max-width만 있어 왼쪽 치우침 → 콘텐츠 패널 중앙 */
#mallWrap .mall-mypage-content .mall-mypage-section:has(.mall-mypage-form) .mall-mypage-section-title,
#mallWrap .mall-mypage-content .mall-mypage-section:has(.mall-mypage-form) .mall-mypage-lead,
#mallWrap .mall-mypage-content .mall-mypage-section:has(.mall-mypage-form) .mall-mypage-form-hint {
  width: 100%;
  max-width: min(520px, 100%);
  margin-inline: auto;
  text-align: center;
}

#mallWrap .mall-mypage-content .mall-mypage-form.shipping-form,
#mallWrap .mall-mypage-content .mall-mypage-form.pw-form {
  width: 100%;
  max-width: min(520px, 100%);
  margin-inline: auto;
}

#mallWrap .mall-mypage-content .mall-mypage-form.pw-form {
  max-width: min(440px, 100%);
}

#mallWrap .mall-mypage-section-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--mall-ink);
}

#mallWrap .mall-mypage-lead {
  margin: 0 0 18px;
  font-size: 0.875rem;
  line-height: 1.55;
}

#mallWrap .mall-mypage-empty {
  text-align: center;
  padding: clamp(36px, 8vw, 56px) 20px;
  border-radius: var(--mall-radius-md);
  border: 1px dashed rgba(20, 24, 22, 0.12);
  background: linear-gradient(180deg, rgba(58, 157, 110, 0.06) 0%, rgba(250, 250, 249, 0.5) 100%);
}

#mallWrap .mall-mypage-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(58, 157, 110, 0.2), rgba(58, 157, 110, 0.06));
  border: 1px solid rgba(58, 157, 110, 0.22);
  box-shadow: 0 6px 20px rgba(58, 157, 110, 0.12);
}

#mallWrap .mall-mypage-empty__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mall-ink);
}

#mallWrap .mall-mypage-empty__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mall-muted);
  line-height: 1.55;
}

#mallWrap .mall-mypage-order-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  border-radius: 10px;
  border: 1px solid rgba(20, 24, 22, 0.08);
  background: rgba(20, 24, 22, 0.03);
}

#mallWrap .mall-mypage-cancel-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(154, 92, 69, 0.16);
  background: var(--mall-accent-deal-soft, rgba(154, 92, 69, 0.06));
}

#mallWrap .mall-mypage-cancel-notice__text {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--mall-ink);
  word-break: keep-all;
}

#mallWrap .mall-mypage-cancel-notice__brands {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

#mallWrap .mall-mypage-cancel-notice__brands li {
  padding: 3px 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--mall-muted);
}

#mallWrap .mall-mypage-cancel-notice__brands strong {
  font-weight: 700;
  color: var(--mall-ink);
}

#mallWrap .order-card-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(20, 24, 22, 0.08);
}

#mallWrap .order-statement-dl {
  font-size: 0.84rem;
  font-weight: 600;
}

#mallWrap .mall-mypage-order-card.order-card {
  border-radius: var(--mall-radius-md);
  border: 1px solid rgba(20, 24, 22, 0.08);
  background: var(--mall-surface);
  box-shadow: 0 2px 14px rgba(15, 22, 18, 0.05);
  transition: box-shadow 0.25s ease;
}

#mallWrap .mall-mypage-order-card.order-card:hover {
  box-shadow: 0 10px 36px rgba(15, 22, 18, 0.08);
}

#mallWrap .mall-mypage .order-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mall-green-deep);
  background: rgba(58, 157, 110, 0.14);
  border: 1px solid rgba(58, 157, 110, 0.28);
}

#mallWrap .mall-mypage ul.order-flow-steps {
  gap: 8px;
}

#mallWrap .mall-mypage .flow-step {
  border-color: rgba(20, 24, 22, 0.08);
  background: rgba(255, 255, 255, 0.85);
}

#mallWrap .mall-mypage .flow-step.done {
  border-color: rgba(58, 157, 110, 0.35);
  background: rgba(58, 157, 110, 0.1);
  color: var(--mall-ink);
}

#mallWrap .mall-mypage .flow-step.current {
  box-shadow: 0 0 0 2px rgba(58, 157, 110, 0.35);
}

#mallWrap .mall-mypage .tracking-box {
  border-radius: var(--mall-radius-md);
  border-color: rgba(20, 24, 22, 0.08);
  background: rgba(243, 242, 239, 0.65);
}

#mallWrap .mall-mypage-form.shipping-form label,
#mallWrap .mall-mypage-form.pw-form label {
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--mall-muted);
}

#mallWrap .mall-mypage-form input.input--error,
#mallWrap .mall-mypage-form textarea.input--error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

/* 2026-05-14: 마이페이지 "회원 정보 · 배송지" 탭에서 회원정보 / 배송지 두 그룹을 시각적으로 분리.
 * - 그룹 박스: 카드 안 카드 톤(아주 옅은 surface 변형)으로 같은 panel 안에서 위계 표현.
 * - 그룹 타이틀: 작은 uppercase 캡션. */
#mallWrap .mall-mypage-form .mall-mypage-form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(20, 24, 22, 0.08);
  border-radius: var(--mall-radius-md);
  background: rgba(250, 250, 249, 0.6);
}

#mallWrap .mall-mypage-form .mall-mypage-form-group + .mall-mypage-form-group {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(20, 24, 22, 0.12);
}

#mallWrap .mall-mypage-form .mall-mypage-form-group-title {
  margin: 0 0 2px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--mall-muted);
  text-transform: uppercase;
}

/* readonly 이메일 표시 — 변경 불가 상태를 시각적으로 분명히 */
#mallWrap .mall-mypage-form .mall-mypage-readonly-label input[readonly] {
  background: rgba(20, 24, 22, 0.04);
  color: var(--mall-muted);
  cursor: not-allowed;
  border-style: dashed;
}

/* 2026-05-14: 배송지 form 기본 빈 상태 — 이전 저장값이 있으면 상단 안내 박스 +
 * "이전 값 불러오기" 버튼으로 한 번에 채우는 옵션 제공. */
#mallWrap .mall-mypage-form .mall-mypage-prev-shipping {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px dashed rgba(58, 157, 110, 0.28);
  border-radius: var(--mall-radius-md);
  background: rgba(58, 157, 110, 0.06);
}
#mallWrap .mall-mypage-form .mall-mypage-prev-shipping__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#mallWrap .mall-mypage-form .mall-mypage-prev-shipping__label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--mall-green-deep, #2d8059);
}
#mallWrap .mall-mypage-form .mall-mypage-prev-shipping__apply.btn-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--mall-green, #3a9d6e);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
#mallWrap .mall-mypage-form .mall-mypage-prev-shipping__summary {
  margin: 0;
  font-size: 0.82rem;
  color: var(--mall-muted);
  line-height: 1.55;
  word-break: keep-all;
}

#mallWrap .mall-mypage-form input:not([type="checkbox"]) {
  border-radius: var(--mall-radius-md);
  border: 1px solid rgba(20, 24, 22, 0.12);
  background: var(--mall-warm);
  font-size: 0.9375rem;
  color: var(--mall-ink);
}

#mallWrap .mall-mypage-form input:focus {
  outline: none;
  border-color: rgba(20, 24, 22, 0.28);
  box-shadow: 0 0 0 3px rgba(20, 24, 22, 0.08);
}

#mallWrap .mall-mypage-form-hint.hint {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--mall-muted);
}

#mallWrap .mall-mypage-submit.btn-primary {
  border-radius: 999px;
  margin-top: 4px;
}

@media (max-width: 1120px) {
  #mallWrap .mall-mypage-layout.mypage-layout {
    grid-template-columns: 1fr;
  }

  #mallWrap .mall-mypage-nav.mypage-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
  }

  #mallWrap .mall-mypage-nav .mypage-nav-btn {
    flex: 1 1 auto;
    min-width: min(160px, 46%);
    text-align: center;
    justify-content: center;
  }

  /* 모바일에선 nav 가 row flex 가 되므로 홈 버튼·divider 가 전체 폭을 차지하도록 강제 */
  #mallWrap .mall-mypage-nav .mypage-nav-home {
    flex: 1 1 100%;
    justify-content: center;
  }
  #mallWrap .mall-mypage-nav .mypage-nav-divider {
    flex: 1 1 100%;
    margin: 2px 0;
  }
}

@media (max-width: 560px) {
  #mallWrap .mall-mypage-nav .mypage-nav-btn {
    min-width: 100%;
  }
}

/* 몰 하단 — 사업자 정보·법적 고지·저작권 */
#mallWrap .mall-site-footer {
  /* Sticky footer — #mallWrap 의 flex column 끝까지 푸터를 밀어 viewport 하단에 붙인다. */
  margin-top: auto;
  padding: 22px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(20, 24, 22, 0.08);
  background: linear-gradient(180deg, var(--mall-surface) 0%, var(--mall-warm) 100%);
}
#mallWrap .mall-site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
#mallWrap .mall-site-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 36rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--mall-muted, #585f68);
}
#mallWrap .mall-site-footer__meta-line {
  margin: 0;
}
#mallWrap .mall-site-footer__num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
#mallWrap .mall-site-footer__addr {
  word-break: keep-all;
}
#mallWrap .mall-site-footer__nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
}
#mallWrap .mall-site-footer__sep {
  color: rgba(45, 128, 89, 0.45);
  font-size: 0.82rem;
  user-select: none;
}
#mallWrap .mall-site-footer__link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--mall-green-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#mallWrap .mall-site-footer__link:hover {
  color: var(--mall-green);
}
#mallWrap .mall-site-footer__copyright {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(20, 24, 22, 0.45);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  #mallWrap .product-card--commerce,
  #mallWrap .product-card__visual .product-image {
    transition: none;
  }
  #mallWrap .product-card--commerce:hover {
    transform: none;
  }
  #mallWrap .product-card--commerce:hover .product-image {
    transform: none;
  }
}

/* @@SECTION:BOOT-INTRO@@ — styles/boot-intro.css + scripts/boot-intro.js (PC index.html 에 link) */
