/* =========================================================
   20261109mofix: 모바일 홈 메뉴·칩 잘림 수정 (미리보기)
   - max-width: 700px (모바일 GNB 그리드 구간)
   - style.css / common.js 불변 · 색·모양·문구·순서 불변
   ========================================================= */

@media (max-width: 700px) {
  /* ---------- 1) 상단 메인메뉴: 3열 균등, 안 잘리게 ---------- */
  html body .hd .gnb,
  body .hd .gnb{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    align-items: stretch !important;
    padding: 2px 0 12px !important;
  }
  html body .hd .gnb a,
  html body .hd .gnb a.gnb-deal,
  body .hd .gnb a,
  body .hd .gnb a.gnb-deal{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    height: auto !important;
    min-height: 40px;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 6px 3px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: hidden !important;
    word-break: keep-all;
    letter-spacing: -.35px;
  }
  html body .hd .gnb a > span,
  html body .hd .gnb a > span.gnb-jg,
  body .hd .gnb a > span{
    display: block !important;
    font-size: inherit !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    max-width: 100%;
    overflow: hidden;
  }
  html body .hd .gnb a > span > small,
  html body .hd .gnb a > span > b,
  html body .hd .gnb a .gnb-jg small,
  html body .hd .gnb a .gnb-jg b{
    display: block !important;
    white-space: normal !important;
    font-size: inherit !important;
    max-width: 100%;
  }
  html body .hd .gnb a.gnb-deal{
    font-size: 11px !important;
    padding: 5px 2px !important;
  }

  /* ---------- 2) 제조사 칩(#tabs): 줄바꿈으로 전부 보이게 ---------- */
  html body.is-home #lineup #tabs.tabs,
  html body.is-home #tabs.tabs,
  body.is-home #lineup #tabs.tabs,
  body.is-home #tabs.tabs{
    display: flex !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
    overflow: visible !important;
    gap: 6px !important;
    padding: 0 0 10px !important;
    margin: 0 0 12px !important;
    border-bottom: 0 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  html body.is-home #lineup #tabs .tab,
  html body.is-home #tabs .tab,
  body.is-home #tabs .tab{
    display: inline-flex !important;
    flex: 0 0 auto !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    max-width: 100%;
  }
  html body.is-home #lineup #tabs .tab-usim,
  html body.is-home #tabs .tab-usim{
    padding: 0 7px !important;
  }
  html body.is-home #lineup #tabs .tab-usim b,
  html body.is-home #tabs .tab-usim b{
    font-size: 12px !important;
  }
  html body.is-home #lineup #tabs .psearch,
  html body.is-home #tabs .psearch{
    flex: 1 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 6px 0 0 !important;
    order: 99 !important;
  }

  /* ---------- 3) 통신사 3 + 키즈폰·중저가폰 2줄 (20261117midtab-mob)
     라이브는 4열(SK·LG·KT·키즈폰)이라 중저가폰이 아랫줄에 혼자 떨어짐.
     6칸 그리드: 통신사 span 2, 키즈·중저가 span 3. 글자 잘림 없이 keep-all. ---------- */
  html body.is-home #lineup #cartabs .cartabs:not(.cartabs-sp),
  html body.is-home #cartabs .cartabs:not(.cartabs-sp),
  body.is-home #lineup #cartabs .cartabs:not(.cartabs-sp){
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    margin: 0 0 8px !important;
    background: none !important;
    padding: 0 !important;
  }
  html body.is-home #lineup #cartabs .cartabs:not(.cartabs-sp) button,
  html body.is-home #cartabs .cartabs:not(.cartabs-sp) button{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    grid-column: span 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    letter-spacing: -.03em !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }
  html body.is-home #lineup #cartabs .cartabs:not(.cartabs-sp) button.ct-kids,
  html body.is-home #cartabs .cartabs:not(.cartabs-sp) button.ct-kids,
  html body.is-home #lineup #cartabs .cartabs:not(.cartabs-sp) button.ct-mid,
  html body.is-home #cartabs .cartabs:not(.cartabs-sp) button.ct-mid{
    grid-column: span 3 !important;
  }
  html body.is-home #lineup #cartabs .cartabs:not(.cartabs-sp) .ct-kids-ic,
  html body.is-home #cartabs .cartabs:not(.cartabs-sp) .ct-kids-ic{
    font-size: 11px;
    margin-right: 1px;
  }
  html body.is-home #lineup #cartabs .cartabs:not(.cartabs-sp) .soon,
  html body.is-home #cartabs .cartabs:not(.cartabs-sp) .soon{
    font-size: 8px;
    margin-left: 1px;
    padding: 0 2px;
  }

  /* ---------- 4) 홈 라인업 제목 행 모바일 숨김 (HTML·SEO 유지) ---------- */
  html body.is-home #lineup > .sec-head,
  body.is-home #lineup .sec-head{
    display: none !important;
  }
}

@media (max-width: 360px) {
  html body .hd .gnb a,
  body .hd .gnb a{
    font-size: 11px !important;
    padding: 5px 2px !important;
    min-height: 36px;
  }
  html body .hd .gnb a.gnb-deal{
    font-size: 10px !important;
  }
  html body.is-home #tabs .tab,
  body.is-home #tabs .tab{
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
  }
  html body.is-home #cartabs .cartabs:not(.cartabs-sp) button{
    font-size: 11px !important;
    letter-spacing: -.06em !important;
  }
}


/* =========================================================
   20261109nav-m3: 모바일 GNB 자급제 span2 해제 (사장님 「올려」)
   - inline grid-column:span 2 를 auto 로 → 3열 균등 줄바꿈
   - style.css / common.js 불변 · 색·모양·문구·순서 불변 · PC 불변
   - 미리보기: /workspace/mobile-nav-preview-1109/
   ========================================================= */
@media (max-width: 700px) {
  html body .hd .gnb a[href="/jageupje"],
  html body .hd .gnb a.gnb-deal{
    grid-column: auto !important;
  }
}

/* =========================================================
   20261110fold-sechead: 폴드 펼침(~1100px)에서도 라인업 제목 숨김
   - 「요즘 문의 많은 기종 / 전체보기」 PC(1280)만 유지
   - ≤700px 기존 규칙·GNB 불변 · HTML·SEO H2 유지(CSS only)
   ========================================================= */
@media (max-width: 1100px) {
  html body.is-home #lineup > .sec-head,
  body.is-home #lineup .sec-head{
    display: none !important;
  }
}
