/* f2 공통 부품 — 캔버스 시안(docs/renewal/design/boards) 인라인 값 기준. 화면별 배치는 화면 CSS에서.
   모바일 값은 767px 이하(확정 10/28). 모바일 규칙 3개(확정 10/28, theme-f2.md 3절): 입력 글자 16px · 최소 글자 11px(10px은 배지만) · 누르는 영역 44px 이상 */

/* ---------- 버튼: 알약 모양, 둥글기 = 높이의 절반(Palette · Member-Login · Shop-Cart · Product-Detail) ---------- */
.f2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--f2-sp-6);
  height: 44px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--f2-r-4);
  font-size: var(--f2-fs-14); font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none;
}
.f2-btn:hover { text-decoration: none; }
.f2-btn--primary { background: var(--f2-black); border-color: var(--f2-black); color: var(--f2-white); }
.f2-btn--secondary { border-width: 1.5px; background: var(--f2-white); border-color: var(--f2-black); color: var(--f2-black); }   /* 보조 버튼 1.5px(결정 1-1) */
.f2-btn--line { background: var(--f2-white); border-color: var(--f2-line); color: var(--f2-black); }   /* 쇼핑 계속 · 초기화 · 찜 */
.f2-btn--accent { background: var(--f2-lime); border-color: var(--f2-lime); color: var(--f2-black); }  /* 다크 배경 위에서만 */
.f2-btn--xl { height: 56px; padding: 0 28px; font-size: var(--f2-fs-16); font-weight: 800; }   /* 로그인 · 주문 · 상세 구매 */
.f2-btn--lg { height: 52px; padding: 0 26px; }
.f2-btn--md { height: 48px; padding: 0 24px; }
.f2-btn--sm { height: 32px; padding: 0 14px; font-size: var(--f2-fs-13); font-weight: 500; }    /* 장바구니 줄 버튼 */
.f2-btn--block { display: flex; width: 100%; }
.f2-btn:disabled, .f2-btn[aria-disabled="true"] { opacity: .4; cursor: default; }
.f2-dark .f2-btn--line { background: transparent; border-color: var(--f2-gray-55); color: var(--f2-white); }

/* ---------- 상품 이미지 배지(품절 · NEW · 재입고) — Product-List · Product-All ---------- */
.f2-badges { display: flex; flex-wrap: wrap; gap: var(--f2-sp-4); }
.f2-badge {
  display: inline-flex; align-items: center; padding: 3px 7px; border-radius: var(--f2-r-4);
  font-size: var(--f2-fs-10); font-weight: 800; letter-spacing: .5px; line-height: 1.2; white-space: nowrap;
}
.f2-badge--new { background: var(--f2-lime); color: var(--f2-black); }
.f2-badge--special { background: var(--f2-sale); color: var(--f2-white); }   /* 특가(11/9) — 할인 #D32F2F(결정 1-1), 흰 글자 대비 4.98:1 */
.f2-badge--restock { background: var(--f2-sub-bg); color: var(--f2-black); box-shadow: inset 0 0 0 1px var(--f2-gray-9a); }   /* 결정 1-1(10/31): 검정 채움 금지 → 연한 배경 + 테두리 */
.f2-badge--soldout, .f2-badge--ended { background: #EEEEEE; color: var(--f2-text-sub); box-shadow: inset 0 0 0 1px #DCDCD8; }   /* 품절 · 판매 종료 같은 회색(결정 1-1, 글자 대비 4.6:1) */
.f2-unavailable { color: var(--f2-text-sub); font-size: var(--f2-fs-12); font-weight: 700; }   /* 장바구니 품절 줄: 회색 배지 + "주문 불가" */
.f2-badge--common { background: var(--f2-white); color: var(--f2-black); box-shadow: inset 0 0 0 1px var(--f2-line); }   /* 브랜드 필터 공용(Brand-Final) */
.f2-badge--tel { background: var(--f2-st-progress-bg); color: var(--f2-st-progress); }   /* 연파랑 / 진파랑(결정 1-1) — 카드 가격 자리 */
.f2-badge--sale { background: var(--f2-st-delay-bg); color: var(--f2-st-delay); padding: 1px 6px; border-radius: var(--f2-r-4); font-size: var(--f2-fs-12); }  /* 메인 할인율 상자 — 연빨강 / 진빨강 #B42318(결정 1-1 지연 색, 대비 5.76:1 — 11/9 #D32F2F는 4.36:1) */

/* 상태 배지 6종(결정 1) — 입고 예정 · A/S · 주문 */
.f2-status { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: var(--f2-r-4); font-size: var(--f2-fs-11); font-weight: 700; white-space: nowrap; }
.f2-status--wait { background: var(--f2-st-wait-bg); color: var(--f2-st-wait); }
.f2-status--in { background: var(--f2-st-in-bg); color: var(--f2-st-in); }
.f2-status--progress { background: var(--f2-st-progress-bg); color: var(--f2-st-progress); }
.f2-status--repair { background: var(--f2-st-repair-bg); color: var(--f2-st-repair); }
.f2-status--done { background: var(--f2-st-done-bg); color: var(--f2-st-done); }
.f2-status--delay { background: var(--f2-st-delay-bg); color: var(--f2-st-delay); }

/* ---------- 칩: 선택 = 검정, 기본 = 흰 바탕 · 회색 테두리(Product-List · Product-All) ---------- */
.f2-chip {
  display: inline-flex; align-items: center; gap: var(--f2-sp-6);
  height: 34px; padding: 0 16px; border: 1px solid var(--f2-line); border-radius: var(--f2-r-4);
  background: var(--f2-white); color: var(--f2-black); font-size: var(--f2-fs-13); font-weight: 700; white-space: nowrap;
}
.f2-chip:hover { text-decoration: none; }
.f2-chip.is-on, .f2-chip[aria-pressed="true"], .f2-chip[aria-current] { background: var(--f2-black); border-color: var(--f2-black); color: var(--f2-white); }
.f2-chip__count { font-size: var(--f2-fs-11); font-weight: 500; opacity: .6; }
.f2-chip--box { height: 44px; padding: 0 14px; border-radius: var(--f2-r-4); justify-content: space-between; }   /* 판매제품 분류 칩 + 상품 수 */

/* ---------- 탭 ---------- */
/* 반반 탭: 선택 = 검정 3px 밑줄 + 굵게(결정 2 · Final-Main-M) */
.f2-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-bottom: 1px solid var(--f2-gray-dc); }
.f2-tab {
  height: 50px; margin-bottom: -1px; padding: 0; border: 0; border-bottom: 3px solid transparent; background: none;
  color: var(--f2-text-muted); font-size: var(--f2-fs-15); font-weight: 500;
}
.f2-tab.is-on, .f2-tab[aria-selected="true"] { border-bottom-color: var(--f2-black); color: var(--f2-black); font-weight: 800; }
/* 다크 배경 위 라임 탭(BRAND PICK, 결정 1) */
.f2-dark .f2-tab-pill {
  height: 44px; padding: 0 18px; border: 1px solid var(--f2-gray-55); border-radius: var(--f2-r-4);
  background: transparent; color: var(--f2-white); font-size: var(--f2-fs-13); font-weight: 700;
}
.f2-dark .f2-tab-pill.is-on, .f2-dark .f2-tab-pill[aria-selected="true"] { background: var(--f2-lime); border-color: var(--f2-lime); color: var(--f2-black); }

/* ---------- 상품 카드 .f2-card 하나(theme/f2/inc/card.php) — 메인 · 목록 공통, 기준 Product-List · Product-List-M(10/29 통일) ----------
   이미지 칸 비율 = --f2-card-ratio(기본 1:1 — 11/01 사용자 결정, 사진 자체 회색 바탕이 두 겹으로 보이던 것 정리. 메인 상품 줄 · BRAND PICK은 main.css에서 1:1) · 서브 배경 · 브랜드 · 상품명 · (짧은 설명) · 가격 줄(PC: 가격 → 할인율 → 소비자가 / 모바일: 할인율 → 가격 → 소비자가, 시안 그대로) */
.f2-card { position: relative; display: flex; flex-direction: column; gap: var(--f2-sp-12); min-width: 0; }
.f2-card:hover { text-decoration: none; }
.f2-card__img { position: relative; display: block; aspect-ratio: var(--f2-card-ratio, 1 / 1); overflow: hidden; border-radius: var(--f2-r-4); background: var(--f2-sub-bg); }
.f2-card__img img { width: 100%; height: 100%; object-fit: contain; color: transparent; }   /* 이미지가 없을 때 alt 글자 숨김 */
.f2-card__img .f2-badges { position: absolute; top: 10px; left: 10px; }
.f2-card__img2 { position: absolute; inset: 0; opacity: 0; transition: opacity .2s; background: var(--f2-sub-bg); }
@media (hover: hover) { .f2-card.has-img2:hover .f2-card__img2 { opacity: 1; } }
.f2-card__rank { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--f2-r-4); background: var(--f2-lime); color: var(--f2-black); font-size: var(--f2-fs-14); font-weight: 800; }   /* BRAND PICK 순위(결정 1) */
.f2-card__rank + .f2-badges { top: 44px; }
.f2-card__rank--pick, .f2-card__rank--unit { width: auto; padding: 0 8px; font-size: var(--f2-fs-12); }   /* 랭킹 추천 · "n위"(11/10) */
.f2-card__qc { position: absolute; right: 10px; bottom: 10px; left: 10px; z-index: 2; display: none; align-items: center; justify-content: center; height: 42px; border: 1.5px solid var(--f2-black); border-radius: var(--f2-r-4); background: var(--f2-white); color: var(--f2-black); font-size: var(--f2-fs-13); font-weight: 800; cursor: pointer; }   /* 빠른 담기(QuickCart): PC는 마우스 올리거나 키보드로 오면. 흰 바탕 + 테두리(결정 1-1) */
.f2-card__qc.is-off { border-color: #CFCFCF; background: var(--f2-sub-bg); color: var(--f2-text-muted); cursor: default; }
.f2-card__qc-plus { display: none; }
@media (hover: hover) { .f2-card:hover .f2-card__qc, .f2-card:focus-within .f2-card__qc, .f2-card:focus .f2-card__qc { display: flex; } }
@media (hover: none) { .f2-card__qc { display: flex; } }   /* 터치 기기: 항상 */
.f2-card__body { display: flex; flex-direction: column; gap: 3px; }
.f2-card__brand { color: var(--f2-text-sub); font-size: var(--f2-fs-11); font-weight: 700; letter-spacing: 1px; }
.f2-card__fit { color: var(--f2-black); letter-spacing: 0; }   /* 차종 · 장착(Brand-Final), 공용은 회색 */
.f2-card__fit.is-common { color: var(--f2-text-sub); }
.f2-card__name { font-size: var(--f2-fs-14); font-weight: 500; line-height: 1.4; }
.f2-card__summary { overflow: hidden; color: var(--f2-text-sub); font-size: var(--f2-fs-12); white-space: nowrap; text-overflow: ellipsis; }
.f2-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--f2-sp-6); margin-top: var(--f2-sp-4); }
.f2-card__sell { font-size: var(--f2-fs-15); font-weight: 700; }
.f2-card__rate { color: var(--f2-sale); font-size: var(--f2-fs-13); font-weight: 700; }      /* 딜러만 */
.f2-card__list { color: var(--f2-text-muted); font-size: var(--f2-fs-12); text-decoration: line-through; }   /* 딜러만 소비자가 */
.f2-card__text { margin-top: var(--f2-sp-4); font-size: var(--f2-fs-14); font-weight: 700; }   /* 전화문의 등 */
.f2-card__text .f2-badge { padding: 3px 8px; font-size: var(--f2-fs-12); }   /* 전화문의 = 연파랑 배지(결정 1-1) */
.f2-card.is-soldout .f2-card__img img { opacity: .45; }   /* 목록 · 카드 품절 = 이미지만 흐리게 + 회색 배지(결정 2) */
/* 다크 배경(D2 행사 띠, 옛 BRAND PICK 자리): 색만 */
.f2-card--ev, .f2-card--ev:hover { color: var(--f2-white); }
.f2-card--ev .f2-card__brand, .f2-card--ev .f2-card__summary, .f2-card--ev .f2-card__list { color: var(--f2-gray-9a); }   /* 다크 배경 위 */
.f2-card--ev .f2-card__rate { color: #FF6B6B; }   /* 다크 배경 위 할인율 = 밝은 빨강(#161616 위 6.5:1, 결정 1-1) */

/* ---------- 입력칸(Member-Login · 검색) ---------- */
.f2-input {
  display: block; width: 100%; height: 52px; padding: 0 14px;
  border: 1px solid var(--f2-line); border-radius: var(--f2-r-4); background: var(--f2-white);
  font-size: var(--f2-fs-15);
}
.f2-input::placeholder { color: var(--f2-text-muted); }
.f2-input:focus-visible { outline: 0; border-color: var(--f2-black); }   /* 시안에 포커스 모양 없음 — 확정 10/28 */
.f2-input--md { height: 48px; }

/* ---------- 자동등록방지(원본 kcaptcha 마크업 그대로 — 가입 · 비밀번호 찾기 · 글쓰기 · 댓글) ----------
   1줄 = 그림 · 숫자음성듣기 · 새로고침(높이 44, 글자 그대로 · 잘림 없음), 모바일 음성 재생기 · 입력칸(f2 입력칸, 16px) · 안내는 아래 줄 */
fieldset#captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset#captcha legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
fieldset#captcha #captcha_img { order: 1; flex: none; width: auto; height: 44px; margin: 0; padding: 0 6px; border: 1px solid var(--f2-line); border-radius: var(--f2-r-4); background: var(--f2-white); }
fieldset#captcha #captcha_mp3, fieldset#captcha #captcha_reload {
  order: 2; flex: none; width: auto; height: 44px; margin: 0; padding: 0 14px;
  border: 1px solid var(--f2-line); border-radius: var(--f2-r-4); background: var(--f2-white);
  color: var(--f2-black); font: inherit; font-size: var(--f2-fs-13); font-weight: 700; text-indent: 0; white-space: nowrap; cursor: pointer;
}
fieldset#captcha #captcha_mp3 span, fieldset#captcha #captcha_reload span { display: none; }
fieldset#captcha #captcha_audio { order: 3; flex: 1 1 100%; width: 100%; height: 44px; }
fieldset#captcha #captcha_key {
  order: 4; flex: 1 1 100%; width: 100%; max-width: 320px; height: 52px; margin: 0; padding: 0 14px;
  border: 1px solid var(--f2-line); border-radius: var(--f2-r-4); background: var(--f2-white);
  font: inherit; font-size: var(--f2-fs-16); font-weight: 700; letter-spacing: 2px;
}
fieldset#captcha #captcha_key:focus-visible { outline: 0; border-color: var(--f2-black); }
fieldset#captcha #captcha_info { order: 5; flex-basis: 100%; margin: 0; color: var(--f2-text-sub); font-size: var(--f2-fs-12); letter-spacing: 0; }
@media (max-width: 767px) { fieldset#captcha #captcha_key { max-width: none; } }
.f2-search {
  display: flex; align-items: center; gap: var(--f2-sp-8);
  height: 60px; padding: 0 8px 0 24px; border: var(--f2-line-strong) solid var(--f2-black); border-radius: var(--f2-r-4); background: var(--f2-white);
}
.f2-search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 17px; font-weight: 700; }
.f2-search input:focus { outline: 0; }

/* ---------- TOP 버튼(결정 2: PC 56 원형 "TOP" / 모바일 44 원형 화살표, 우측 하단) ---------- */
.f2-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;   /* 위치 확정 10/28: PC 24 · 24, 모바일 14 · 80 */
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
  border: 1.5px solid var(--f2-black); background: var(--f2-white); color: var(--f2-black); box-shadow: var(--f2-shadow-2);   /* 흰 바탕 + 테두리(결정 1-1) */
  font-size: var(--f2-fs-11); font-weight: 800; letter-spacing: .5px;   /* 최소 11px 규칙(㊷, 시안 10px) */
}
.f2-top svg { width: 18px; height: 18px; }
.f2-top.is-off { visibility: hidden; pointer-events: none; }

/* ---------- 모바일 ---------- */
@media (max-width: 767px) {
  /* 상품 카드(Product-List-M): 상품명 최대 2줄 말줄임 · 할인율 → 가격 → 소비자가 */
  .f2-card { gap: var(--f2-sp-8); }
  .f2-card__img .f2-badges { top: 8px; left: 8px; }
  .f2-card__rank { top: 8px; left: 8px; width: 24px; height: 24px; font-size: var(--f2-fs-12); }
  .f2-card__rank + .f2-badges { top: 38px; }
  .f2-card__rank--pick, .f2-card__rank--unit { width: auto; padding: 0 6px; font-size: var(--f2-fs-11); }
  .f2-card__qc { right: 8px; bottom: 8px; left: auto; display: flex; width: 32px; height: 32px; border-radius: var(--f2-r-4); font-size: 18px; }   /* QuickCart-M: + 원형(흰 바탕 + 테두리, 결정 1-1) */
  .f2-card__qc::after { content: ""; position: absolute; top: 50%; left: 50%; width: var(--f2-tap-min); height: var(--f2-tap-min); transform: translate(-50%, -50%); }   /* 누르는 영역 44px(㊾: inset −6px와 같은 크기, 크기를 직접 적어 계산에도 잡히게) */
  .f2-card__qc-label { display: none; }
  .f2-card__qc-plus { display: inline; }
  .f2-card__body { gap: 2px; padding: 0 4px; }
  .f2-card__brand { font-size: var(--f2-fs-11); }   /* 시안 10px → 최소 글자 11px 규칙 */
  .f2-card__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: var(--f2-fs-13); }
  .f2-card__summary { font-size: var(--f2-fs-11); }
  .f2-card__price { gap: var(--f2-sp-4); margin-top: 0; }
  .f2-card__rate { order: -1; font-size: var(--f2-fs-12); }
  .f2-card__sell { font-size: var(--f2-fs-14); }
  .f2-card__list { font-size: var(--f2-fs-11); }
  .f2-card__text { margin-top: 0; font-size: var(--f2-fs-13); }
  .f2-card--m .f2-card__name { font-size: var(--f2-fs-12); }   /* 메인 가로 줄(140px) */
  .f2-card--m .f2-card__sell { font-size: var(--f2-fs-13); }
  .f2-badge { padding: 2px 6px; }
  .f2-chip { padding: 0 14px; }
  .f2-tab { font-size: 17px; font-weight: 500; }
  .f2-tab.is-on, .f2-tab[aria-selected="true"] { font-weight: 800; }
  .f2-input { height: 50px; border-radius: var(--f2-r-4); font-size: var(--f2-fs-16); }   /* 시안 14px → 입력 16px 규칙(아이폰 자동 확대 방지) */
  .f2-search { height: 44px; padding: 0 14px; border: 0; border-radius: var(--f2-r-4); background: var(--f2-sub-bg); }
  .f2-search input { font-size: var(--f2-fs-16); }   /* 시안 15px → 16px */

  /* 누르는 영역 44px 이상 — 보이는 크기는 그대로, 투명한 ::after로 누르는 영역만 넓힘(작은 버튼 32 · 칩 34).
     ㊷ 화면 점검(screen-audit-20261031) 44px 미만 요소도 같은 방식: 공통 머리 로고 · 푸터 링크 · 사업자정보확인 / 메인 · 목록 · 상세 · 검색 · 회원 · 마이페이지 · 게시판 · 404의 글자 링크 · 작은 버튼 · 입력칸 제목 */
  /* 숨김 label(.f2-sr-only)은 빼야 함 — position: relative가 숨김의 absolute를 덮어써 글자가 보였음(10/31 모바일 주문서 · 가입 주소 칸) */
  .f2-btn--sm, .f2-chip,
  .f2-mhd__logo, .f2-ft__links a, .f2-ft__check, .f2-ham__search button,
  .f2-seg button, .f2-mnotice__head a,
  .f2-list__path a, .f2-brands__path a, .f2-item__brand, .f2-acc__body a,
  .f2-sr__pager a, .f2-sr__suggest a, .f2-mhd__sform button,
  .f2-mb__logo, legend label[for]:not(.f2-sr-only), .f2-my__sec-head a, .f2-my__sub a, .f2-my__info summary,
  .f2-bo__subject, .f2-bo__back, .f2-bo__cats a, .f2-bo__files a, .f2-bo__guide summary, .f2-check, .f2-field > label[for]:not(.f2-sr-only), .f2-nf__help a,
  /* ㊾(㊸ A · B · D + 점검 55): 빠른 담기 · 상세 구매 시트 / 주문서 / 주문 상세 / 검색 / 장바구니 / 목록 필터 / 마이페이지 / 약관 본문 링크 */
  .f2-opt__chip, .f2-qty__btn, .f2-buy__del, .f2-toast__go,
  .f2-co__card-head a, .f2-co__pick label, .f2-od__item-name,
  .f2-sr__brand, .f2-sr__link, .f2-sr__rchip a, .f2-sr__rchip button,
  .f2-cart__name, .f2-list__tag, .f2-list__reset, .f2-my__orders .idtime_link, #ctt_con a[href],
  /* 11/13 screen-audit --taps: 로그인 칸 제목 · 대리점 안내 질문 · 회사소개 전화 · 인스타 · 약관 본문 링크 */
  .f2-lg__label, .f2-dj__faq summary, .f2-co__dl a, .f2-terms__body a[href] { position: relative; }
  .f2-btn--sm::after, .f2-chip::after,
  .f2-mhd__logo::after, .f2-ft__links a::after, .f2-ft__check::after, .f2-ham__search button::after,
  .f2-seg button::after, .f2-mnotice__head a::after,
  .f2-list__path a::after, .f2-brands__path a::after, .f2-item__brand::after, .f2-acc__body a::after,
  .f2-sr__pager a::after, .f2-sr__suggest a::after, .f2-mhd__sform button::after,
  .f2-mb__logo::after, legend label[for]:not(.f2-sr-only)::after, .f2-my__sec-head a::after, .f2-my__sub a::after, .f2-my__info summary::after,
  .f2-bo__subject::after, .f2-bo__back::after, .f2-bo__cats a::after, .f2-bo__files a::after, .f2-bo__guide summary::after, .f2-check::after, .f2-field > label[for]:not(.f2-sr-only)::after, .f2-nf__help a::after,
  .f2-opt__chip::after, .f2-qty__btn::after, .f2-buy__del::after, .f2-toast__go::after,
  .f2-co__card-head a::after, .f2-co__pick label::after, .f2-od__item-name::after,
  .f2-sr__brand::after, .f2-sr__link::after, .f2-sr__rchip a::after, .f2-sr__rchip button::after,
  .f2-cart__name::after, .f2-list__tag::after, .f2-list__reset::after, .f2-my__orders .idtime_link::after, #ctt_con a[href]::after,
  .f2-lg__label::after, .f2-dj__faq summary::after, .f2-co__dl a::after, .f2-terms__body a[href]::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: max(100%, var(--f2-tap-min)); height: max(100%, var(--f2-tap-min)); transform: translate(-50%, -50%);
  }
  .f2-top { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; box-shadow: var(--f2-shadow-1); }   /* 하단 바 위(Final-Main-M) — 하단 바가 안전 영역만큼 높아지므로 같이 올림(10/31) */
  .f2-top__label { display: none; }
  /* 모바일(11/17): 스크롤 전에는 숨김 — 첫 화면에서 브랜드 칸을 가리던 것. 한 화면 높이만큼 내리면 js/layout.js가 .is-shown.
     숨김 = visibility hidden(초점 · 낭독기에 안 잡힘) + 누름 없음. 나타날 때만 흐려짐 0.2초(사라질 때는 바로) */
  .f2-top { transition: opacity .2s ease; }
  .f2-top:not(.is-shown) { visibility: hidden; opacity: 0; pointer-events: none; transition: none; }
  @media (prefers-reduced-motion: reduce) { .f2-top { transition: none; } }
}

/* ---------- 담기 부품(상품 상세 · 빠른 담기 공용, js/buy.js) — 옵션 칩 · 검색 선택 상자 · 선택한 옵션 줄 · 수량 · 합계 ---------- */
.f2-buy__area { display: flex; flex-direction: column; gap: 14px; }
.f2-opt { display: flex; flex-direction: column; gap: 10px; }
.f2-opt__group { display: flex; flex-direction: column; gap: 8px; }
.f2-opt__label { font-size: var(--f2-fs-13); }
/* 추가옵션 묶음(11/17): 선택옵션 아래 1px 구분선 + 작은 제목 "추가 구매 (선택)"(13px · #6B6B6B). 선택옵션이 없는 상품은 선(위 여백)만 뺌 */
.f2-opt__extra { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--f2-line); }
.f2-opt__extra:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.f2-opt__extra-title { margin: 0; color: var(--f2-text-sub); font-size: var(--f2-fs-13); font-weight: 700; line-height: 1.4; }
.f2-opt__hint { color: var(--f2-text-muted); font-size: var(--f2-fs-13); }
.f2-opt__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f2-opt__chip { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 40px; padding: 0 20px; border: 1px solid var(--f2-line); border-radius: var(--f2-r-4); background: var(--f2-white); color: var(--f2-black); font: inherit; font-size: var(--f2-fs-13); font-weight: 700; }
/* 선택됨(11/12): 라임 + #111 2px + 체크 16px. 폭 그대로 = 테두리 +1 · 체크 16 · 간격 4만큼 좌우 여백을 줄임(2*2+2*9+16+4 = 2*1+2*20) — 옆 칩 안 밀림 */
.f2-opt__chip[aria-pressed="true"] { border: 2px solid var(--f2-black); padding: 0 9px; background: var(--f2-lime); }
.f2-opt__chip[aria-pressed="true"]::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.f2-opt__chip.is-off { color: var(--f2-gray-9a); cursor: default; }
.f2-opt__pick { position: relative; }
.f2-opt__search { width: 100%; height: 44px; padding: 0 16px; border: 1px solid var(--f2-line); border-radius: var(--f2-r-4); background: var(--f2-white); font: inherit; font-size: var(--f2-fs-14); }
.f2-opt__search:focus { border-color: var(--f2-black); outline: none; }
.f2-opt__list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; max-height: 264px; margin: 0; padding: 6px; overflow-y: auto; list-style: none; border: 1px solid var(--f2-line); border-radius: var(--f2-r-4); background: var(--f2-white); box-shadow: var(--f2-shadow-2); }
.f2-opt__item { padding: 10px 12px; border-radius: var(--f2-r-4); font-size: var(--f2-fs-13); cursor: pointer; }
.f2-opt__item.is-cur { background: var(--f2-sub-bg); }
.f2-opt__item.is-on { font-weight: 700; }
.f2-opt__item.is-on::before { content: "✓ "; }
.f2-opt__item.is-off { color: var(--f2-gray-9a); cursor: default; }
.f2-opt__empty { padding: 10px 12px; color: var(--f2-text-muted); font-size: var(--f2-fs-13); }
.f2-opt__picked { display: block; margin-top: 6px; color: var(--f2-text-sub); font-size: var(--f2-fs-12); }
/* 드롭다운 방식(11/16, 관리자 설정 option_ui — 커스텀 목록, 시안 I): 칸 = button 높이 60(번호 + 작은 이름 + 값 + 화살표) · 테두리 1px #868A91(흰 바탕 3.5:1), 고를 차례 · 열림 = 2px #111(안쪽 여백 1 줄여 폭 그대로)
   잠긴 칸 = 바탕 #F4F4F2 · 번호 #767676(흰 글자 4.5:1). 목록 = 줄 48 · 2px #111 · 그림자, PC는 칸 아래로 떠오름(.is-up = 위로) · 모바일은 그 자리에서 펼침 */
.f2-opt__group--dd { position: relative; gap: 4px; }
.f2-dd { display: flex; align-items: center; gap: 12px; width: 100%; height: 60px; padding: 0 16px; border: 1px solid #868A91; border-radius: var(--f2-r-4); background: var(--f2-white); color: var(--f2-black); font: inherit; text-align: left; cursor: pointer; }
.f2-dd.is-next, .f2-dd[aria-expanded="true"] { padding: 0 15px; border: 2px solid var(--f2-black); }
.f2-dd.is-locked { background: var(--f2-sub-bg); cursor: default; }
.f2-dd:focus-visible { outline: 2px solid var(--f2-black); outline-offset: 2px; }
.f2-dd__num { display: flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--f2-r-4); background: var(--f2-black); color: var(--f2-white); font-size: 12px; font-weight: 800; }
.f2-dd.is-locked .f2-dd__num { background: #767676; }
.f2-dd__txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.f2-dd__name { color: #6B6B6B; font-size: 11px; font-weight: 700; line-height: 1.4; }
.f2-dd__val { overflow: hidden; color: #6B6B6B; font-size: 15px; font-weight: 700; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.f2-dd.has-value .f2-dd__val { color: var(--f2-black); }
.f2-dd__chev { flex: none; width: 16px; height: 16px; background: var(--f2-black); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat; }
.f2-dd[aria-expanded="true"] .f2-dd__chev { transform: rotate(180deg); }
.f2-dd.is-locked .f2-dd__chev { background: #8A8A8A; }
.f2-dd__list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; max-height: 312px; margin: 0; padding: 4px; overflow-y: auto; overscroll-behavior: contain; list-style: none; border: 2px solid var(--f2-black); border-radius: var(--f2-r-4); background: var(--f2-white); box-shadow: 0 8px 24px rgba(0, 0, 0, .16); outline: none; }
.f2-dd__list.is-up { top: auto; bottom: calc(100% + 4px); }
.f2-dd__list[hidden] { display: none; }
.f2-dd__opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 12px; border-radius: var(--f2-r-4); color: var(--f2-black); font-size: 15px; font-weight: 500; cursor: pointer; }
.f2-dd__opt.is-cur, .f2-dd__opt[aria-selected="true"] { background: var(--f2-sub-bg); }
.f2-dd__opt[aria-selected="true"] { font-weight: 700; }
.f2-dd__list:focus-visible .f2-dd__opt.is-cur { outline: 2px solid var(--f2-black); outline-offset: -2px; }   /* 키보드로 옮길 때만: 바탕색만으로는 초점이 약함 */
.f2-dd__opt[aria-disabled="true"] { color: #8A8A8A; cursor: default; }
.f2-dd__opt-name { flex: 1; min-width: 0; word-break: break-all; }
.f2-dd__pay { flex: none; font-size: 14px; font-weight: 700; }
.f2-dd__badge { flex: none; padding: 2px 8px; border-radius: var(--f2-r-4); background: #EDEDED; color: #6B6B6B; font-size: 12px; font-weight: 700; }
@media (hover: hover) { .f2-dd__opt:hover { background: var(--f2-sub-bg); } }
.f2-opt__notice { margin: 0; padding: 10px 12px; border-radius: var(--f2-r-4); background: var(--f2-sub-bg); color: var(--f2-black); font-size: var(--f2-fs-13); font-weight: 700; }
.f2-opt__notice[hidden] { display: none; }

.f2-buy__rows { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.f2-buy__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 28px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--f2-r-4); background: var(--f2-sub-bg); font-size: var(--f2-fs-13); }
.f2-buy__row--single { display: none; }
.f2-buy__name { display: flex; flex-direction: column; min-width: 0; font-weight: 700; word-break: break-all; }
.f2-buy__add { color: var(--f2-text-sub); font-size: var(--f2-fs-12); font-weight: 500; }
.f2-buy__line { min-width: 72px; text-align: right; }
.f2-buy__del { width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--f2-r-4); background: transparent; color: var(--f2-text-sub); font-size: 18px; }
.f2-buy__sum { display: flex; align-items: center; gap: 8px; padding: 14px 0; border-top: 1px solid var(--f2-line); }
.f2-buy__sum-label { margin-left: auto; color: var(--f2-text-sub); font-size: var(--f2-fs-13); }
.f2-buy__total { font-size: var(--f2-fs-22); }

.f2-qty { display: inline-flex; height: 42px; width: 132px; overflow: hidden; border: 1px solid var(--f2-line); border-radius: var(--f2-r-4); background: var(--f2-white); }
.f2-buy__row .f2-qty { height: 34px; width: 108px; }
.f2-qty__btn { width: 42px; flex: none; padding: 0; border: 0; background: transparent; font: inherit; font-size: 16px; }
.f2-buy__row .f2-qty__btn { width: 34px; }
.f2-qty__input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; font: inherit; font-weight: 700; text-align: center; }

/* ---------- 단계 표시(장바구니 · 주문 완료 · 회원가입) ---------- */
.f2-steps { display: flex; align-items: center; gap: var(--f2-sp-8); margin: 0; padding: 0; list-style: none; color: var(--f2-text-muted); font-size: var(--f2-fs-13); font-weight: 700; }
.f2-steps li + li::before { content: "—"; margin-right: 8px; color: #CFCFCF; }
.f2-steps li[aria-current] { color: var(--f2-black); }
.f2-steps__n { display: none; }

/* ---------- 체크 상자(진짜 input, 모양만) ---------- */
.f2-check { position: relative; display: inline-flex; align-items: center; gap: var(--f2-sp-8); cursor: pointer; }
.f2-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.f2-check__box { flex: none; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid #CFCFCF; border-radius: var(--f2-r-4); background: var(--f2-white); }
.f2-check input:checked + .f2-check__box { border-color: var(--f2-black); background: var(--f2-black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C8F250' stroke-width='2.4'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.f2-check input:disabled + .f2-check__box { border-color: #E5E5E5; background: var(--f2-sub-bg); cursor: default; }
.f2-check input:focus-visible + .f2-check__box { outline: 2px solid var(--f2-black); outline-offset: 2px; }

@media (max-width: 767px) {
  .f2-steps { gap: 8px; font-size: var(--f2-fs-12); }
  .f2-steps li { display: flex; align-items: center; gap: 5px; font-weight: 600; }
  .f2-steps li + li::before { content: ""; width: 12px; height: 1px; margin: 0; background: #CFCFCF; }
  .f2-steps__pc { display: none; }
  .f2-steps__n { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1.5px solid #CFCFCF; border-radius: var(--f2-r-4); font-size: var(--f2-fs-11); }
  .f2-steps li[aria-current] { font-weight: 800; }
  .f2-steps li[aria-current] .f2-steps__n { border-color: var(--f2-black); background: var(--f2-black); color: var(--f2-lime); }
}

/* ---------- 관리자 수정 바로가기(상세 · 분류 목록 경로 줄 오른쪽, 권한 있을 때만 마크업 있음, 11/12) ---------- */
.f2-adm-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--f2-sp-12); }
.f2-adm-edit { flex-shrink: 0; margin-left: auto; padding: 0 16px; border-color: var(--f2-black); background: var(--f2-lime); color: var(--f2-black); }   /* 라임 + #111 테두리 · 글자 700(.f2-btn), 연필 16px */
.sit_admin { display: none; }   /* 코어 shop/item.php 톱니 링크(아이콘만) — f2 바로가기로 대신함 */

/* ---------- 영상 틀 ---------- */
.f2-video { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; margin: 0 auto; background: #000; }
.f2-video iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }

/* ---------- 담김 알림 ---------- */
.f2-toast { position: fixed; top: 96px; right: 40px; z-index: 120; display: flex; align-items: center; gap: 12px; width: 360px; padding: 16px 18px; border-radius: var(--f2-r-4); background: var(--f2-dark); color: var(--f2-white); box-shadow: 0 16px 32px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s; }
.f2-toast.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .2s; }
.f2-toast__img { flex: none; width: 48px; height: 48px; border-radius: var(--f2-r-4); background: var(--f2-gray-2a); object-fit: contain; }
.f2-toast__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.f2-toast__title { font-size: var(--f2-fs-13); }
.f2-toast__check { color: var(--f2-lime); }
.f2-toast__name { overflow: hidden; color: #BDBDBD; font-size: var(--f2-fs-12); text-overflow: ellipsis; white-space: nowrap; }
.f2-toast__go { display: inline-flex; align-items: center; flex: none; height: 34px; padding: 0 12px; border-radius: var(--f2-r-4); background: var(--f2-lime); color: var(--f2-black); font-size: var(--f2-fs-12); font-weight: 800; white-space: nowrap; }
.f2-toast__go:hover { color: var(--f2-black); text-decoration: none; }


/* ---------- 빠른 담기 옵션 창(QuickCart PC 560px 가운데 · QuickCart-M 하단 시트), js/quick.js ---------- */
.f2-qc { position: fixed; inset: 0; z-index: 110; display: flex; align-items: flex-start; justify-content: center; padding: 120px 16px 24px; overflow-y: auto; }
.f2-qc__dim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); }
.f2-qc__box { position: relative; display: flex; flex-direction: column; gap: 16px; width: 560px; max-width: 100%; padding: 28px; border-radius: var(--f2-r-4); background: var(--f2-white); box-shadow: 0 24px 48px rgba(0, 0, 0, .2); }
.f2-qc__grip { display: none; }
.f2-qc__hd { display: flex; align-items: flex-start; gap: 16px; }
.f2-qc__img { flex: none; width: 88px; height: 88px; border-radius: var(--f2-r-4); background: var(--f2-sub-bg); object-fit: contain; }
.f2-qc__text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.f2-qc__brand { color: var(--f2-text-sub); font-size: var(--f2-fs-11); font-weight: 800; letter-spacing: 1px; }
.f2-qc__name { font-size: var(--f2-fs-18); line-height: 1.35; }
.f2-qc__price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.f2-qc__rate { color: var(--f2-sale); }
.f2-qc__sell { font-size: var(--f2-fs-18); }
.f2-qc__list { color: var(--f2-text-muted); font-size: var(--f2-fs-12); text-decoration: line-through; }
.f2-qc__go { align-self: flex-start; margin-top: 4px; color: var(--f2-text-sub); font-size: var(--f2-fs-12); text-decoration: underline; }
.f2-qc__close { flex: none; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; font-size: 22px; }
.f2-qc__area { padding-top: 16px; border-top: 1px solid var(--f2-line); }
html.f2-noscroll, html.f2-noscroll body { overflow: hidden; }

@media (max-width: 767px) {
  .f2-opt__chip { height: 38px; padding: 0 18px; }
  .f2-opt__chip[aria-pressed="true"] { padding: 0 7px; }   /* 2*2+2*7+16+4 = 2*1+2*18 */
  .f2-opt__list { max-height: 40vh; }
  .f2-dd__list, .f2-dd__list.is-up { position: static; max-height: 40vh; box-shadow: none; }   /* 모바일(시트): 떠오르지 않고 그 자리에서 아래로 펼침 */
  .f2-buy__row { grid-template-columns: minmax(0, 1fr) auto 28px; grid-template-areas: "name name del" "qty line line"; }
  .f2-buy__row .f2-buy__name { grid-area: name; }
  .f2-buy__row .f2-qty { grid-area: qty; }
  /* ㊾ 수량 −/+ 누르는 영역 44px: 상자가 잘라내면(overflow) 넓힌 영역도 잘림 → 모바일은 자르지 않고, 누를 때 배경이 상자 모서리를 넘지 않게 버튼 바깥 모서리만 둥글게 */
  .f2-qty { overflow: visible; }
  .f2-qty__btn:first-child { border-radius: 4px 0 0 4px; }
  .f2-qty__btn:last-child { border-radius: 0 4px 4px 0; }
  .f2-buy__row .f2-buy__line { grid-area: line; }
  .f2-buy__row .f2-buy__del { grid-area: del; }
  .f2-buy__total { font-size: var(--f2-fs-20); }
  .f2-toast { top: auto; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); left: 12px; width: auto; padding: 14px 16px; border-radius: var(--f2-r-4); box-shadow: 0 12px 24px rgba(0, 0, 0, .25); transform: translateY(8px); }
  .f2-toast__img { display: none; }
  .f2-qc { align-items: flex-end; padding: 0; }
  .f2-qc__box { width: 100%; max-height: 88vh; overflow-y: auto; gap: 14px; padding: 10px 16px calc(24px + env(safe-area-inset-bottom, 0px)); border-radius: 4px 4px 0 0; box-shadow: none; }
  .f2-qc__grip { position: relative; display: block; align-self: center; flex: none; width: 40px; height: 4px; border-radius: var(--f2-r-4); background: var(--f2-line); }
  .f2-qc__hd { gap: 12px; }
  .f2-qc__img { width: 64px; height: 64px; }
  .f2-qc__brand { font-size: var(--f2-fs-11); }
  .f2-qc__name { font-size: var(--f2-fs-15); }
  .f2-qc__sell { font-size: var(--f2-fs-14); }
  .f2-qc__go { display: none; }
  .f2-qc__close { margin-right: -6px; width: 44px; height: 44px; }
  .f2-qc__area { padding-top: 0; border-top: 0; }
  .f2-qc .f2-btn--xl { height: 54px; }
}
