/* ============================================================================
   v4/css/appliance-list.css — 가전 목록 페이지(categories.html) v6 스타일
   ----------------------------------------------------------------------------
   · 기존 파일(main.css / shop.css / new-main.css / telecom.css)은 건드리지 않고,
     telecom.css(v6) 다음에 이 파일 하나만 추가로 읽습니다.
   · 화면 톤은 v6(internet-v6.php + telecom-v6.css)와 맞췄습니다.
     글자 12 / 13.5 / 15 / 18 / 24 / 34px 여섯 단계, 무게 400 / 600 / 700 / 800,
     회색 #111(제목) / #444(본문) / #8a8f98(보조),
     포인트 컬러는 #ea1917 하나만(페이지 제목 왼쪽 바 · 절차 번호).
   · 이 파일을 지우면 목록은 기존 .v4-product 기본 모양으로 돌아갑니다.
   · 클래스: vf- = 필터/목록, vc- = 하단 안내(비교·절차)
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. 페이지 제목 포인트 — v6 는 KT 레드(#e60012)라 이 페이지에서만 교체
   --------------------------------------------------------------------------- */
.v4-cat .v4-page-head h1::before { background: #ea1917 !important; }

/* ---------------------------------------------------------------------------
   2. 렌탈 / 구매 탭
   --------------------------------------------------------------------------- */
.v4-cat .vf-tabs { gap: 8px; margin: 0 0 18px; }
.v4-cat .v4-tab {
  height: 48px;
  min-width: 168px;
  padding: 0 24px;
  border: 1px solid #e3e5e9;
  border-radius: 12px;
  background: #fff;
  color: #444;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.v4-cat .v4-tab:hover { border-color: #111; color: #111; }
.v4-cat .v4-tab.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
  font-weight: 700;
}

.v4-cat .v4-tab-note {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #444;
  word-break: keep-all;
}

/* ---------------------------------------------------------------------------
   3. 필터 — 종류 1줄 / 브랜드(종류 선택 시 나타남) / 가격대 / 개수·정렬
   --------------------------------------------------------------------------- */
.v4-cat .vf {
  margin: 0 0 20px;
  border: 1px solid #e9ebee;
  border-radius: 14px;
  background: #fff;
}
.v4-cat .vf-row {
  display: flex;
  gap: 14px;
  padding: 13px 18px;
  border-top: 1px solid #f1f2f4;
}
.v4-cat .vf-row:first-child { border-top: 0; }
.v4-cat .vf-row[hidden] { display: none; }
.v4-cat .vf-label {
  flex: 0 0 48px;
  margin: 0;
  padding-top: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: #111;
  line-height: 1;
}
.v4-cat .vf-chips {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.v4-cat .vf-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #e3e5e9;
  border-radius: 999px;
  background: #fff;
  color: #444;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.v4-cat .vf-chip:hover { border-color: #111; color: #111; }
.v4-cat .vf-chip.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
  font-weight: 700;
}
.v4-cat .vf-chip__n {
  font-size: 12px;
  font-weight: 600;
  color: #8a8f98;
}
.v4-cat .vf-chip.is-active .vf-chip__n { color: rgba(255, 255, 255, .72); }
/* 이 탭에 상품이 없는 종류 — 누르면 '다른 탭에 있음' 안내로 이어집니다 */
.v4-cat .vf-chip.is-empty { color: #b9bec6; }
.v4-cat .vf-chip.is-empty .vf-chip__n { color: #c9ccd1; }
.v4-cat .vf-chip.is-empty:hover { border-color: #e3e5e9; color: #8a8f98; }

.v4-cat .vf-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 18px 14px;
}
.v4-cat .vf-count { margin: 0; font-size: 13.5px; color: #444; }
.v4-cat .vf-count strong { font-size: 18px; font-weight: 800; color: #111; }
.v4-cat .vf-tools { display: flex; align-items: center; gap: 10px; }
.v4-cat .vf-sort { display: flex; align-items: center; gap: 8px; }
.v4-cat .vf-sort label { font-size: 13.5px; color: #8a8f98; }
.v4-cat .vf-sort select {
  height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid #e3e5e9;
  border-radius: 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%238a8f98' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  color: #111;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.v4-cat .vf-sort select:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.v4-cat .vf-reset {
  height: 38px;
  padding: 0 14px;
  border: 1px solid #111;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.v4-cat .vf-reset:hover { background: #111; color: #fff; }
.v4-cat .vf-reset[hidden] { display: none; }

/* ---------------------------------------------------------------------------
   4. 상품 카드 — 4열 / 태블릿 3열 / 모바일 2열
   --------------------------------------------------------------------------- */
.v4-cat .v4-pane[hidden] { display: none; }
.v4-cat .v4-products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.v4-cat .v4-product {
  border: 1px solid #e9ebee;
  border-radius: 14px;
  overflow: hidden;
}
.v4-cat .v4-product:hover { border-color: #111; }
/* 카드 전체 클릭 — 카드 안 어디를 눌러도 상세로 (2026-11-23, 이름 링크 확장) */
.v4-cat .v4-product { position: relative; }
.v4-cat .v4-product__name::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
body.sf-page .v4-cat .v4-product__actions { position: relative; z-index: 2; }
/* [hidden] 속성은 .v4-product 의 display:flex 에 밀리므로 클래스로 숨깁니다 */
.v4-cat .v4-product.is-off { display: none !important; }
.v4-cat .v4-product__media {
  aspect-ratio: 1 / 1;
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid #f4f5f7;
}
.v4-cat .v4-product__body { gap: 4px; padding: 14px 16px 16px; }
.v4-cat .v4-product__brand {
  font-size: 12px;
  font-weight: 600;
  color: #8a8f98;
  letter-spacing: 0;
}
.v4-cat .v4-product__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.03em;
  color: #111;
}
.v4-cat .v4-product__model { font-size: 12px; color: #8a8f98; }
.v4-cat .vf-card__spec {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #8a8f98;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v4-cat .v4-product__price { padding-top: 10px; }
.v4-cat .vf-price { display: flex; flex-direction: column; gap: 1px; }
.v4-cat .vf-price__label { font-size: 12px; font-weight: 600; color: #8a8f98; }
.v4-cat .vf-price__row { display: flex; align-items: baseline; gap: 4px; }
.v4-cat .vf-price__row strong {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #111;
}
.v4-cat .vf-price__unit { font-size: 13.5px; font-weight: 600; color: #444; }
.v4-cat .vf-price__ask { font-size: 18px; font-weight: 800; color: #111; }
.v4-cat .vf-price__cond {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: #8a8f98;
}
/* 근거가 있는 상품별 카드 할인만 이 자리에 표시됩니다(데이터에 있을 때만) */
.v4-cat .vf-card__carddisc {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: #444;
}
body.sf-page .v4-cat .v4-product__actions { gap: 6px; margin-top: 12px; }
body.sf-page .v4-cat .v4-product__actions > * {
  height: 40px;
  border-radius: 10px;
  border-color: #e3e5e9;
  font-size: 13.5px;
  font-weight: 700;
}
body.sf-page .v4-cat .v4-product__actions > *:not(.is-solid) { color: #111; }
body.sf-page .v4-cat .v4-product__actions > .is-solid {
  background: #111;
  border-color: #111;
  color: #fff;
}
body.sf-page .v4-cat .v4-product__actions > *:hover { border-color: #111; }

/* 이미지가 없을 때 — 빈 칸 대신 같은 크기의 안내 박스 */
.v4-cat .v4-product__media.is-noimg img { display: none; }
.v4-cat .v4-product__media.is-noimg::after {
  content: "이미지 준비 중";
  font-size: 12px;
  color: #b9bec6;
}

/* ---------------------------------------------------------------------------
   5. 결과 없음
   --------------------------------------------------------------------------- */
.v4-cat .vf-empty {
  border: 1px dashed #e3e5e9;
  border-radius: 14px;
  padding: 40px 18px;
  background: #fafbfc;
  text-align: center;
}
.v4-cat .vf-empty[hidden] { display: none; }
.v4-cat .vf-empty p { margin: 0; font-size: 15px; font-weight: 700; color: #111; }
.v4-cat .vf-empty span { display: block; margin-top: 6px; font-size: 13.5px; color: #8a8f98; }
.v4-cat .vf-empty__act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.v4-cat .vf-empty__act button {
  height: 38px;
  padding: 0 16px;
  border: 1px solid #111;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.v4-cat .vf-empty__act button.is-solid { background: #111; color: #fff; }

/* ---------------------------------------------------------------------------
   5-1. 페이지 넘김 — 서버 페이징(1쪽 24건). 칩과 같은 모양, 링크만 다릅니다.
   --------------------------------------------------------------------------- */
.v4-cat .vf-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 24px 0 6px;
}
.v4-cat .vf-pager .vf-chip { min-width: 38px; justify-content: center; text-decoration: none; }
.v4-cat .vf-pager .vf-chip.is-active { pointer-events: none; }
.v4-cat .vf-pager__gap { color: #b9bec6; font-size: 13.5px; padding: 0 2px; }
.v4-cat .vf-pager__info {
  width: 100%;
  margin-top: 6px;
  text-align: center;
  font-size: 12px;
  color: #8a8f98;
  font-variant-numeric: tabular-nums;
}

/* 시안 안내 */
.v4-cat .vf-demo {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #8a8f98;
}
.v4-cat .vf-demo strong { font-weight: 700; color: #444; }

/* ---------------------------------------------------------------------------
   6. 하단 안내 — 렌탈·구매 비교 + 진행 절차 3단계
   --------------------------------------------------------------------------- */
.v4-cat .vc {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #eef0f3;
}
.v4-cat .vc__head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #111;
}
.v4-cat .vc__head p {
  margin: 8px 0 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.65;
  color: #444;
  word-break: keep-all;
}
.v4-cat .vc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.v4-cat .vc__col > h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.v4-cat .vc__card {
  border: 1px solid #e9ebee;
  border-radius: 14px;
  background: #fff;
  padding: 16px 18px 18px;
}
.v4-cat .vc__card + .vc__card { margin-top: 10px; }
.v4-cat .vc__card h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.v4-cat .vc__card h4 em {
  font-style: normal;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #8a8f98;
}
.v4-cat .vc__dl {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 7px 12px;
  margin: 0;
}
.v4-cat .vc__dl dt { font-size: 12px; font-weight: 700; color: #8a8f98; padding-top: 2px; }
.v4-cat .vc__dl dd { margin: 0; font-size: 13.5px; line-height: 1.6; color: #444; word-break: keep-all; }

.v4-cat .vc__steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.v4-cat .vc__steps li {
  position: relative;
  padding: 14px 16px 14px 50px;
  border: 1px solid #e9ebee;
  border-radius: 14px;
  background: #fff;
}
.v4-cat .vc__steps b {
  position: absolute;
  left: 16px;
  top: 15px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ea1917;
}
.v4-cat .vc__steps strong { display: block; font-size: 15px; font-weight: 700; color: #111; }
.v4-cat .vc__steps span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.6; color: #444; word-break: keep-all; }
.v4-cat .vc__note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #8a8f98;
}

/* ---------------------------------------------------------------------------
   7. 좁은 화면
   --------------------------------------------------------------------------- */
@media (max-width: 1439px) {
  .v4-cat .v4-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .v4-cat .v4-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .v4-cat .vc__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .v4-cat .vf-tabs { margin-bottom: 14px; }
  .v4-cat .v4-tab { flex: 1; min-width: 0; height: 44px; padding: 0 10px; font-size: 13.5px; }
  .v4-cat .v4-tab-note { font-size: 12px; margin-bottom: 12px; }
  .v4-cat .vf { margin-bottom: 14px; }
  .v4-cat .vf-row { flex-direction: column; gap: 8px; padding: 12px 14px; }
  .v4-cat .vf-label { flex: none; padding-top: 0; }
  .v4-cat .vf-chips { gap: 5px; }
  .v4-cat .vf-chip { height: 34px; padding: 0 12px; font-size: 12px; }
  .v4-cat .vf-bar { padding: 0 14px 12px; gap: 8px; }
  .v4-cat .vf-count { font-size: 12px; }
  .v4-cat .vf-count strong { font-size: 15px; }
  .v4-cat .vf-sort label { display: none; }
  .v4-cat .vf-sort select { height: 36px; font-size: 12px; }
  .v4-cat .vf-reset { height: 36px; padding: 0 12px; font-size: 12px; }
  .v4-cat .v4-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .v4-cat .v4-product__media { padding: 12px; }
  .v4-cat .v4-product__body { padding: 12px 12px 14px; }
  .v4-cat .v4-product__name { font-size: 13.5px; }
  .v4-cat .vf-price__row strong { font-size: 18px; }
  .v4-cat .vf-price__unit { font-size: 12px; }
  body.sf-page .v4-cat .v4-product__actions > * { height: 36px; font-size: 12px; }
  .v4-cat .vc { margin-top: 26px; padding-top: 22px; }
  .v4-cat .vc__head h2 { font-size: 18px; }
  .v4-cat .vc__head p { font-size: 13.5px; }
  .v4-cat .vc__grid { margin-top: 14px; gap: 18px; }
  .v4-cat .vc__card { padding: 14px 15px 16px; }
  .v4-cat .vc__steps li { padding: 13px 14px 13px 44px; }
}
