/* BASIC css start */
/* ===== CATEGORY PATCH (라인형 탭) ===== */

/* Lora Variable (cate1 제목용) — 이미 불러오고 있으면 아래 블록은 생략 가능 */
@font-face{
  font-family:'Lora Variable';
  font-style:normal;
  font-weight:400 700;
  src:url(https://cdn.jsdelivr.net/fontsource/fonts/lora:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
}

/* 섹션 패딩 */
.product_category_wrap{padding:25px 5% 25px !important}

/* 1차 카테고리 제목 */
.product_category_wrap .cate1{
  font-family:'Lora Variable',serif !important;
  font-weight:500 !important;
  font-size:22px !important;
  padding:20px 0 40px !important;
  color:#666 !important;
  text-align:center;
}

/* 컨테이너 */
.product_category_wrap .cate_child_wrap{overflow:hidden;}

/* 기본: 한 줄 고정 + 중앙 정렬 + 가로 스크롤 */
.product_category_wrap .cate_child_wrap ul{
  margin:0 !important;
  padding:0 !important;
  list-style:none !important;

  display:flex !important;
  flex-wrap:nowrap !important;         /* 줄바꿈 금지 */
  justify-content:center !important;   /* 중앙 정렬 */
  align-items:center;

  overflow-x:auto !important;
  overflow-y:hidden !important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;

  scrollbar-width:none;
}
.product_category_wrap .cate_child_wrap ul::-webkit-scrollbar{display:none;}

/* li */
.product_category_wrap .cate_child_wrap ul li{
  flex:0 0 auto;
  margin:0 !important;
  padding:0 !important;
}

/* 링크 */
.product_category_wrap .cate_child_wrap ul li a{
  display:inline-flex;align-items:center;justify-content:center;
  height:34px;
  padding:0 12px 0 16px !important; /* 앞에 바 들어갈 여백 확보 */
  white-space:nowrap;
  line-height:1;
  font-family:'Noto Sans KR','Pretendard Variable',sans-serif !important;
  font-size:16px !important;font-weight:400 !important;
  color:#aaaaaa !important;text-decoration:none !important;
  background:transparent !important;border:none !important;border-radius:0 !important;
  position:relative;
}

/* 모든 항목 앞에 │ 바 */
.product_category_wrap .cate_child_wrap ul li a::before{
  content:"";
  position:absolute; left:0; top:50%;
  transform:translateY(-50%);
  width:1px; height:16px;
  background:#cfcfcf;
}

/* 선택 상태 */
.product_category_wrap .cate_child_wrap ul li a.sel{
  color:#000 !important;
  font-weight:600;
}

/* 3차 카테고리 기본 비노출 */
.product_category_wrap .cate_child_wrap ul.cate3{display:none;padding-top:0 !important;}
.product_category_wrap .cate_child_wrap ul.cate3.on{
  display:flex !important;
  justify-content:center;
  padding-top:15px !important;
}

/* ─────────────────────────────────────────────
   모바일(≤420px): 2열 그리드 + 세로바(│) 유지, 가로바(─) 제거
   ───────────────────────────────────────────── */
@media (max-width:420px){
  .product_category_wrap .cate_child_wrap ul{
    display:grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    justify-content:stretch !important;
    align-items:stretch !important;
    overflow:visible !important;
    flex-wrap:unset !important;
  }

  .product_category_wrap .cate_child_wrap ul li{
    margin:0 !important; padding:0 !important;
  }

  .product_category_wrap .cate_child_wrap ul li a{
    display:flex !important;
    align-items:center; justify-content:center;
    padding:12px 10px 12px 16px !important;
    height:auto; line-height:1.2;
    white-space:normal !important;
    text-align:center;
  }

  /* 가로 바 제거 */
  .product_category_wrap .cate_child_wrap ul li:nth-child(n+3) a{
    border-top:none !important;
  }

  /* 세로 바는 ::before로 그대로 유지됨 */

  .product_category_wrap .cate_child_wrap ul li a.sel{
    color:#111 !important; font-weight:700 !important;
  }

  .product_category_wrap .cate_child_wrap ul.cate3.on{
    display:grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    margin-top:8px !important;
    padding-top:0 !important;
  }
}

/* BASIC css end */

