/* ══════════════════════════════════════════════════════════════════
   bcopy 셸에 **원본에 없는 기능**을 붙이기 위한 최소 CSS
   2026-09-04. 문의 팝업 · 토스트 · 찜(하트) 상태.

   왜 별도 파일인가 — 화면 복제는 브라이트몰 번들(`bright-vendor.css`)로 한다.
   그런데 이 세 기능은 원본에 아예 없어서 번들에 클래스가 없다. 없는 클래스를 지어내면
   조용히 무시되므로(실측), 우리가 추가한 기능만 여기서 `bc-` 접두사로 관리한다.
   ⛔ 원본에 있는 요소를 이 파일에서 덮지 말 것. 그 순간 1:1 이 깨진다.

   🔴 **색과 굵기는 반드시 명시한다 — 상속을 믿으면 안 된다.**
      번들에 전역 규칙이 있다 : `h1~h6 { font-weight:700; color:hsl(var(--foreground)) }` ·
      `b,strong { font-weight:bolder }` · **body 자체가 font-weight:700**.
      그래서 팝업 제목이 흰색을 물려받지 못하고 잉크색(rgb(38,38,38))으로 떨어졌고(실측),
      본문 문단은 700 으로 두껍게 나왔다. 아래는 전부 값을 적어 둔다.
   ══════════════════════════════════════════════════════════════════ */

/* ── 찜(하트) : 누른 상태 ─────────────────────────── */
.bc-fav[aria-pressed="true"] svg { fill: #e0245e; stroke: #e0245e; }
.bc-fav svg { transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), fill .18s, stroke .18s; }
.bc-fav[aria-pressed="true"] svg { transform: scale(1.12); }
.bc-fav:hover svg { transform: scale(1.08); }

/* 카드 하트는 **사진 위에 바로** 얹혀 밝은 사진에서 안 보였다(사용자 지적).
   원본 카드에는 배경이 없지만, 안 보이면 기능이 없는 것과 같다 → 흰 알약을 깐다.
   상세 페이지 하트는 이미 `bg-white shadow-md` 라 이 변형을 쓰지 않는다. */
.bc-fav--onimg { background: rgba(255, 255, 255, .92); box-shadow: 0 1px 5px rgba(0, 0, 0, .16); }
.bc-fav--onimg svg { stroke: #5b6572; }
.bc-fav--onimg[aria-pressed="true"] svg { stroke: #e0245e; }

/* ── 토스트 ───────────────────────────────────────── */
.bc-toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 12px);
  z-index: 3000; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 9999px;
  background: rgba(26, 27, 30, .94); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: -.2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2, .8, .3, 1);
}
.bc-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── 문의 팝업 ────────────────────────────────────── */
.bc-modal { position: fixed; inset: 0; z-index: 2500; display: none; }
.bc-modal.on { display: block; }
.bc-modal__veil {
  position: absolute; inset: 0; background: rgba(12, 16, 24, .52);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .24s ease;
}
.bc-modal.on .bc-modal__veil { opacity: 1; }

.bc-modal__card {
  position: relative; width: min(560px, calc(100vw - 32px));
  margin: max(56px, 8vh) auto 0; background: #fff;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 70px -12px rgba(0, 20, 60, .38), 0 0 0 1px rgba(0, 0, 0, .04);
  transform: translateY(14px) scale(.985); opacity: 0;
  transition: transform .28s cubic-bezier(.2, .9, .3, 1), opacity .24s ease;
}
.bc-modal.on .bc-modal__card { transform: none; opacity: 1; }

/* 상단 : 네이비 헤더. 원본 내비와 같은 #003994 계열로 화면에 붙는다 */
.bc-modal__hd { padding: 24px 28px 22px; background: linear-gradient(135deg, #003994 0%, #0b2a6b 100%); color: #fff; }
.bc-modal__eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.bc-modal__hd h2 { margin: 7px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -.4px;
                   color: #fff; }  /* 🔴 번들 h2 규칙이 잉크색으로 덮는다 → 명시 */
.bc-modal__hd p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.65; color: rgba(255, 255, 255, .82);
                  font-weight: 400; }  /* 🔴 body 가 700 이라 안 적으면 두껍다 */

.bc-modal__bd { padding: 22px 28px 26px; }
.bc-modal__prod {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  padding: 12px 14px; border: 1px solid #eceff3; border-radius: 12px; background: #f7f9fc;
}
.bc-modal__prod img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; background: #fff; flex: 0 0 auto; }
.bc-modal__prod b { display: block; font-size: 14px; color: #16181d; letter-spacing: -.2px; font-weight: 700; }
.bc-modal__prod span { display: block; margin-top: 2px; font-size: 12px; color: #6e7682; font-weight: 400; }

.bc-row { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-top: 1px solid #f0f2f5; }
.bc-row:first-of-type { border-top: 0; }
.bc-row__ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9999px; background: #eef3fd; color: #003994;
              display: flex; align-items: center; justify-content: center; }
.bc-row__tx { min-width: 0; flex: 1; }
.bc-row__tx dt { font-size: 11.5px; font-weight: 500; color: #8a919c; letter-spacing: .02em; }
.bc-row__tx dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: #16181d; word-break: break-all; }
.bc-row__tx dd.soft { font-size: 13.5px; font-weight: 500; color: #8a919c; }
.bc-row__btn { flex: 0 0 auto; padding: 7px 12px; border: 1px solid #dfe4ea; border-radius: 8px;
               background: #fff; font-size: 12.5px; font-weight: 600; color: #3c4450; cursor: pointer; }
.bc-row__btn:hover { background: #f4f6f9; }

.bc-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #fbfbfc;
           border: 1px solid #f0f2f5; font-size: 12.5px; line-height: 1.7; color: #6e7682; font-weight: 400; }
.bc-acts { display: flex; gap: 10px; margin: 20px 0 0; }
.bc-btn { flex: 1; padding: 13px 16px; border-radius: 12px; font-size: 15px; font-weight: 700;
          text-align: center; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.bc-btn--ghost { background: #fff; border-color: #dfe4ea; color: #3c4450; }
.bc-btn--ghost:hover { background: #f4f6f9; }
.bc-btn--fill { background: #003994; color: #fff; }
.bc-btn--fill:hover { background: #002d77; }

.bc-modal__x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0;
               border-radius: 9999px; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer;
               display: flex; align-items: center; justify-content: center; }
.bc-modal__x:hover { background: rgba(255, 255, 255, .28); }

@media (prefers-reduced-motion: reduce) {
  .bc-modal__card, .bc-modal__veil, .bc-toast, .bc-fav svg { transition: none; }
}


/* ══════════════════════════════════════════════════════════════════
   내비 호버 연출 — 원본에는 없다(원본은 hover 에 아무 변화가 없다. 실측).
   사용자 요청(2026-09-04)으로 얹은 것이고, **쉬는 상태는 건드리지 않는다**.
   ① 가운데서 퍼지는 밑줄  ② 아래에서 올라오는 광택  ③ 1px 부양  ④ 글자 완전 흰색
   🔴 색은 인라인 style 로 들어와 있어 CSS 로는 못 이긴다 → 호버 한 줄에만 !important.
   ══════════════════════════════════════════════════════════════════ */
.bc-navlink { position: relative; transform: translateY(0);
              transition: transform .22s cubic-bezier(.2, .9, .3, 1), color .18s ease, text-shadow .22s ease; }

/* ② 빛무리 + 광택 스윕 — **경계가 보이면 안 된다**
   🔴 처음엔 `inset:-8px -16px` 상자에 가로 그라데이션만 넣었다. 두 가지가 어긋났다 :
      · 56px 내비 안에서 상자가 72px 이라 **위쪽 흰 줄까지 삐져나왔다**
      · 그라데이션이 가로 방향뿐이라 **상하 경계가 상자에 그대로 잘려** 사각형이 드러났다
   그래서 (a) 세로는 내비 높이에 딱 맞추고(inset: 0), (b) 레이어 전체를 방사형 마스크로
   덮어 네 변이 서서히 사라지게 한다. 상자 모서리가 화면에 나타날 일이 없어진다.
   빛 색도 순백 대신 내비 남색 쪽으로 살짝 기울인 흰색이라 바탕에 녹는다. */
.bc-navlink::before {
  content: ''; position: absolute; inset: 0 -30px; pointer-events: none;
  background-image:
    /* 지나가는 사선 광택 */
    linear-gradient(105deg, rgba(255, 255, 255, 0) 34%, rgba(226, 238, 255, .38) 50%, rgba(255, 255, 255, 0) 66%),
    /* 머무는 빛무리 — 가장자리 전에 0 이 되므로 그 자체로 경계가 없다 */
    radial-gradient(54% 128% at 50% 56%, rgba(214, 231, 255, .30) 0%, rgba(214, 231, 255, .14) 42%, rgba(214, 231, 255, 0) 76%);
  background-size: 240% 100%, 100% 100%;
  background-position: -70% 0, 0 0;
  background-repeat: no-repeat;
  /* 네 변 페이드 — 마스크가 없으면 스윕이 지나갈 때 상자 변이 직선으로 잘린다.
     🔴 반경을 `74% 112%` 로 줬더니 **상자 절반(50%)보다 커서** 좌우 변에서 마스크가
        아직 46% 불투명한 채 잘렸다 → 오른쪽에 세로 직선이 그대로 보였다(실측).
        `closest-side` 는 타원이 가장 가까운 변에 닿는다 = 변에서 정확히 0 이다. 여기서만 경계가 사라진다. */
  -webkit-mask-image: radial-gradient(closest-side, #000 14%, rgba(0, 0, 0, .82) 46%, rgba(0, 0, 0, 0) 100%);
          mask-image: radial-gradient(closest-side, #000 14%, rgba(0, 0, 0, .82) 46%, rgba(0, 0, 0, 0) 100%);
  opacity: 0; transition: opacity .26s ease;
}
.bc-navlink:hover::before { opacity: 1; animation: bc-sweep .78s cubic-bezier(.2, .85, .3, 1) 1; }
/* 🔴 배경 레이어가 둘이므로 키프레임에도 **둘 다** 적어야 한다. 하나만 쓰면 빛무리가 같이 흘러간다 */
@keyframes bc-sweep { from { background-position: -70% 0, 0 0; } to { background-position: 170% 0, 0 0; } }
/* ① 밑줄 : 가운데에서 좌우로 */
.bc-navlink::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .95) 30%, rgba(255, 255, 255, .95) 70%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 0 14px rgba(196, 220, 255, .55);
  transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform .34s cubic-bezier(.2, .9, .3, 1);
}
.bc-navlink:hover { color: #fff !important; transform: translateY(-1px); text-shadow: 0 0 14px rgba(210, 230, 255, .45); }
.bc-navlink:hover::after { transform: scaleX(1); }

/* 활성 항목은 원본 밑줄(별도 div)이 이미 깔려 있다 — 겹쳐 그리지 않는다 */
.bc-navlink[data-cur]::after { display: none; }
.bc-navlink[data-cur]:hover { transform: none; }

/* 키보드 이동 : 호버와 같은 연출 + 초점 링 */
.bc-navlink:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .75); outline-offset: 5px; border-radius: 6px;
  color: #fff !important;
}
.bc-navlink:focus-visible::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .bc-navlink, .bc-navlink::after, .bc-navlink::before { transition: none; }
  .bc-navlink:hover { transform: none; text-shadow: none; }
  /* 스윕(움직임)만 끈다 — 빛무리는 정지 연출이라 남긴다. opacity 를 0 으로 두면
     모션 축소 사용자만 호버 피드백이 통째로 사라진다. */
  .bc-navlink:hover::before { animation: none; opacity: 1; }
}


/* ══════════════════════════════════════════════════════════════════
   원본이 쓰는데 **우리 번들에는 없는** 투명도 유틸리티.
   🔴 브라이트몰은 라우트별로 CSS 를 쪼개 배포한다(코드 스플리팅). 우리가 받아온
      `bright-vendor.css` 는 그중 공용 청크라서, 로그인 라우트 청크에만 있던
      `text-black/80` `border-black/24` `placeholder-black/30` 이 빠져 있다.
      번들에 없는 클래스는 **조용히 무시**되므로(테두리가 아예 사라진다) 여기서 채운다.
      Tailwind 의 정의 그대로다 — 원본을 덮는 게 아니라 없는 것을 메운다.
   ✅ `text-black/48` 은 헤더 검색창(「Mall 전체」)이 원래 쓰던 것이다.
      번들에 없어 지금까지 100% 검정으로 그려지고 있었다. 같이 고쳐진다.
   ══════════════════════════════════════════════════════════════════ */
.text-black\/80 { color: rgba(0, 0, 0, .8); }
.text-black\/48 { color: rgba(0, 0, 0, .48); }
.text-black\/30 { color: rgba(0, 0, 0, .3); }
.border-black\/24 { border-color: rgba(0, 0, 0, .24); }
.border-black\/12 { border-color: rgba(0, 0, 0, .12); }
.placeholder-black\/30::placeholder { color: rgba(0, 0, 0, .3); }

/* 푸터 관리자 바로가기 — 어두운 푸터 위 고스트 버튼.
   색을 클래스로 두지 않는 이유 : 번들에 `border-white/28` 같은 투명도 유틸리티가 없다(위 참조). */
.bc-adminbtn { color: rgba(255, 255, 255, .86); border-color: rgba(255, 255, 255, .28);
               transition: color .18s ease, border-color .18s ease, background-color .18s ease; }
.bc-adminbtn:hover { color: #fff; border-color: rgba(255, 255, 255, .6);
                     background-color: rgba(255, 255, 255, .08); }
