/* [2026-11-22] 번역 화면(영어·베트남어) 전용 — 한국어보다 글자가 길어 칸을 벗어나는 곳만 고친다.
   붙이는 곳: app/helpers/TtI18n.php headInject() — 언어가 en·vi 일 때만 <head> 에 건다(한국어 사용자는 이 파일을 받지도 않는다).
   ★선택자는 모두 html[data-tt-lang] 로 시작 — 번역 장치가 번역할 때만 <html> 에 붙이는 표시.
     <html lang> 으로 가르지 않는다: 마이페이지 머리말(public/mypageHead.php)은 한국어 화면도 lang="en" 이다.
   ★이 파일은 <head> 맨 앞에 걸려 화면 CSS 보다 먼저 읽힌다 — html[data-tt-lang] 가 붙어 특정도가 높아서 이긴다(같은 높이로 맞추지 말 것).
   찾는 법: 사용자 크롬에서 같은 화면을 iframe 폭별(390·1280·1440·1536)로 열어 한국어와 겹침·넘침을 비교(11-22). */

/* 1. 마이페이지 머리말 — 메뉴 이름이 길어 1280~1535px 에서 오른쪽 [마이페이지][프로필][로그아웃]·알림과 겹친다
      (1280px: 한국어 151px 남음 / 베트남어 −144 / 영어 −207). 한국어 901~1279px 처럼 햄버거 서랍으로 — mypageHead.php 의 [2026-10-26] 규칙과 같은 모양 */
@media (min-width: 1280px) and (max-width: 1535px) {
  html[data-tt-lang] .header .header_left > ul,
  html[data-tt-lang] .header .header_right { display: none; }
  html[data-tt-lang] .header .header-mo-right { display: flex; align-items: center; gap: 2px; flex: none; margin-left: auto; }
  html[data-tt-lang] .header .header-mo-right .noti-mobile-only { display: inline-flex; margin-right: 0; }
  html[data-tt-lang] .header .header-mo-right .noti-bell { border: none; background: none; padding: 6px; }
  html[data-tt-lang] .header .btn_mo_menu {
    display: block; position: relative; width: 34px; height: 34px; flex: none; border: 0; background: none; cursor: pointer;
    background-image: linear-gradient(var(--tt-ink), var(--tt-ink)), linear-gradient(var(--tt-ink), var(--tt-ink)), linear-gradient(var(--tt-ink), var(--tt-ink));
    background-size: 19px 2px; background-repeat: no-repeat; background-position: center 11px, center 16.5px, center 22px; border-radius: 9px;
  }
}
/*    머리말 검색칸(한국어는 1481px 부터) — 번역 화면은 숨긴다. 머리말 폭에 상한이 있어 넓은 화면에서도 자리가 안 늘어난다
      (운영 확인 11-22: 영어 1800·1920px 에서 검색칸이 나오면 −38px 겹침, 베트남어는 25px 남음). 검색은 메인 화면 머리말에 있다 */
html[data-tt-lang] .header .header_right .search { display: none; }

/* 2. 메인 머리말(_ttSiteHeader) — 1025~1199px 에서 메뉴 + 인기 검색어가 화면 오른쪽 밖으로(가로 스크롤 영어 182px) → 인기 검색어 숨김 */
@media (max-width: 1199px) {
  html[data-tt-lang] .popular-keyword-wrap { display: none; }
}

/* 3. 맨 위 띠 회원 — '아이디님 로그인 중' 의 '님'이 빈 글자로 번역돼 'pagelabs2logged in' 처럼 붙는다 */
html[data-tt-lang] .tt-topstrip .topstrip-who-tail { margin-left: .3em; }

/* 4. 마이페이지 홈 현황 칸(.dsh-pipe) — 1fr 칸이 긴 낱말 폭만큼 늘어 폰에서 오른쪽 밖으로(영어 'Cancel/Return request').
      ★5칸짜리(출고)는 ttbox_mypage.css 의 `.dsh-card:has(… a:nth-child(5):last-child) .dsh-pipe{5열}` 이 특정도가 높아
        1100px·640px 의 3열·2열 규칙을 이겨 폰에서도 5열이다(한국어도 같음 — 글자가 짧아 겨우 들어감). 번역 화면은 원래 뜻대로 3열·2열 */
html[data-tt-lang] .dsh-pipe .st { min-width: 0; }
html[data-tt-lang] .dsh-pipe .st .t { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  html[data-tt-lang] .dsh-card .dsh-pipe,
  html[data-tt-lang] .dsh-card:has(.dsh-pipe a:nth-child(5):last-child) .dsh-pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html[data-tt-lang] .dsh-card .dsh-pipe,
  html[data-tt-lang] .dsh-card:has(.dsh-pipe a:nth-child(5):last-child) .dsh-pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 5. 주문·출고 상태 칸(.box.typeA) — 폰 2열에서 '이름 + 건수'가 한 줄을 넘는다 → 건수를 다음 줄로 */
html[data-tt-lang] .section_mypage .container .item > .sub:not(.sub-B) > .box.typeA { flex-wrap: wrap; row-gap: 2px; }
html[data-tt-lang] .section_mypage .container .item > .sub:not(.sub-B) > .box.typeA > * { min-width: 0; overflow-wrap: anywhere; }
html[data-tt-lang] .section_mypage .container .item > .sub:not(.sub-B) > .box.typeA .title_A { white-space: normal; }   /* 한 줄 고정 — 'Đang xác nhận thanh toán'·'Yêu cầu Hủy/Hoàn hàng' */

/* 6. 상품관리 표 머리글 — 한 줄 고정(nowrap)이라 좁은 칸(96px)을 넘는다('Quyền đặt hàng') */
html[data-tt-lang] .section_mypage .list-productList .product_ul thead th { white-space: normal; line-height: 1.25; }

/* 7. 상품 카드 버튼 두 개(_ttSellerCard — [주문권한신청][샘플구매하기]) — 영어 'Request order permission'·'Buy sample' 이 한 줄(251px)을 넘는다 → 줄바꿈 허용 */
html[data-tt-lang] .tt-cards .product__btns .btn { min-width: 0; flex: 1 1 0; padding: 9px 6px; line-height: 1.25; white-space: normal; }

/* 8. 창고·스튜디오 찾기·홈·장소 안내 카드 항목 이름(.venue-facts dt — 74px 한 줄 고정) — 'Hợp tác với người bán' 125px → 칸을 넓히고 줄바꿈 */
html[data-tt-lang] .venue-facts { grid-template-columns: 92px minmax(0, 1fr); }
html[data-tt-lang] .venue-facts dt { white-space: normal; line-height: 1.35; padding-right: 6px; }

/* 9. 정산 목록 요약 칸(.box.typeA .tit — 'Doanh thu tháng này (gồm phí vận chuyển…)') — 폰에서 칸이 화면 밖(가로 27px) */
html[data-tt-lang] .box.typeA .tit, html[data-tt-lang] .box.typeA .tit * { white-space: normal; overflow-wrap: anywhere; }   /* 칸 폭(min-width)은 건드리지 않는다 — 줄이면 금액(h3)이 칸 밖으로 나간다(11-22 실측) */
/*    금액: 한국어는 '<b>1,902,210</b>원' 에서 '원' 앞이 줄바꿈 자리라 둘째 줄로 내려가는데, '₩' 앞은 줄바꿈 자리가 없어 칸이 넓어진다 → 숫자를 한 줄로 따로 */
html[data-tt-lang] .sub.sub-B .box.typeA h3 b { display: block; }

/* 10. 소개(centerIntro)·홈 히어로 — 특징 배지·역할 글자·플랫폼 그림 칸·폰 화살표 이름이 한 줄 고정이라 폰에서 넘친다
       ★홈은 `.tt-ihero .hero-reference …`(특정도 0,3,1)가 이겨서 같은 높이 선택자를 같이 적는다 */
html[data-tt-lang] .hero-feature-badges li,
html[data-tt-lang] .hero-reference .hero-feature-badges li,
html[data-tt-lang] .tt-ihero .hero-reference .hero-feature-badges li { white-space: normal; min-width: 0; text-align: center; line-height: 1.25; }
html[data-tt-lang] .hero-reference-overlay .hero-role-item,
html[data-tt-lang] .tt-ihero .hero-reference-overlay .hero-role-item { white-space: normal; }
html[data-tt-lang] .pn-row span { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
html[data-tt-lang] .gd-mobile-arrows b { white-space: normal; }

/* 11. 비밀링크 안내 단계(.sl-guide-step) — 폰에서 'Sản phẩm của tôi > Quản lý > Liên kết bí mật' 이 칸(283px)을 넘는다(글자 칸이 한 줄 고정) */
html[data-tt-lang] .sl-guide-step, html[data-tt-lang] .sl-guide-text { min-width: 0; overflow-wrap: anywhere; }
html[data-tt-lang] .sl-guide-text { white-space: normal; }

/* 12. 그립 주문 가져오기 줄(.bj-grip-run .right) — 폰에서 [Disconnect] 버튼이 화면 밖(영어 가로 66px) */
html[data-tt-lang] .bj-grip-run > .right { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }

/* 13. 옛 소개(centerIntroClassic) 흐름 단계 이름(.flow strong — 한 줄 고정) — PC 1280 에서 화면 밖(영어 가로 58px) */
html[data-tt-lang] .flow strong { white-space: normal; }

/* ── 11-22 전체 검수(사용자 크롬 51화면 × 390·768·1280·1440) ── */
/* 14. 내 창고 페이지 단계 탭(.mvp .tabs .step-copy strong — 한 줄 고정) — 폰에서 'Đặt lịch & sử dụng'·'Giao dịch & giao hàng' 이 탭(93px) 밖으로 나가 옆 탭과 겹친다 */
html[data-tt-lang] .mvp .tabs .step-copy strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
/* 15. 내 창고 페이지 칸 이름 + [필수] 표(.row-label > label, flex) — 768px 에서 'City/County/District Required' 4px 넘침 */
html[data-tt-lang] .mvp .row-label > label { flex-wrap: wrap; row-gap: 2px; }
/* 16. 소싱 목록 폰 카드 가격 줄(.sc-saleline — 할인율 + 판매가, flex) — '42% 75,400₩' 이 칸(126px)보다 5px 길다 → 넘치면 판매가를 다음 줄로 */
html[data-tt-lang] .sc-price .sc-saleline { flex-wrap: wrap; column-gap: 4px; }
/* 17. 표 안 버튼 묶음(.management_B — 비밀링크 목록 [취소 신청][주문][대량 주문]) — 버튼이 한 줄 고정이라 칸(141px)을 9px 넘는다 */
html[data-tt-lang] .management_B .btn { white-space: normal; max-width: 100%; line-height: 1.25; }
/* 18. word-break:break-all 칸(한국어용) — 영어·베트남어 낱말이 가운데서 끊긴다('nh|ận hàng', 상품 상세 반품안내 11-23) →
   낱말 단위로 줄을 바꾸고 칸보다 긴 낱말만 아무 데서나(overflow-wrap:anywhere — 최소 폭이 break-all 과 같아 칸·표 폭은 그대로).
   ★break-all 이 걸린 선택자만 고른다 — 다른 칸에 anywhere 를 주면 최소 폭이 줄어 표 열 폭이 바뀐다(주문서 .order-sheet-info-row 는 break-word 라 뺌, 채팅은 사용자 글이라 뺌) */
html[data-tt-lang] .ov-val, html[data-tt-lang] .ov-sup-sub,
html[data-tt-lang] .pxu-nm, html[data-tt-lang] .gp-it .n, html[data-tt-lang] .of-sr-name, html[data-tt-lang] .of-rr-v, html[data-tt-lang] .pr-value,
html[data-tt-lang] .ipv .ip-col dd, html[data-tt-lang] .gemi-info dd, html[data-tt-lang] .lb-kv dd, html[data-tt-lang] .lb-memo, html[data-tt-lang] .lb-ev,
html[data-tt-lang] .sa-head h1, html[data-tt-lang] .sa-empty strong,
html[data-tt-lang] .new-section .new-date, html[data-tt-lang] .new-section .new-writenm, html[data-tt-lang] .new-section .new-subject, html[data-tt-lang] .new-section .new-name { word-break: normal; overflow-wrap: anywhere; }

/* 19. [11-23] 중국어(간체) 글꼴 — 사이트 글꼴 줄(Pretendard → Apple SD Gothic Neo·Malgun Gothic·Noto Sans KR)에선 흔한 한자(骨直角令)가 한국식 글꼴로,
   간체 전용 글자(们这说)는 시스템 중국어 글꼴로 갈려 한 줄 안에서 모양·굵기가 섞인다(크롬 확인). 라틴·숫자·한글은 Pretendard 그대로, 한자는 중국어 글꼴로.
   아이콘 글꼴(Font Awesome 5·6 — .fa*·<i>)은 뺀다(아이콘이 네모로 바뀌지 않게). ::before·::after 에 글꼴을 직접 준 것(swiper-icons)은 그대로 */
html[data-tt-lang="zh-cn"] body,
html[data-tt-lang="zh-cn"] body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa-solid):not(.fa-regular):not(.fa-brands):not([class^="fa-"]):not([class*=" fa-"]) {
  font-family: "Pretendard Variable", Pretendard, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif !important;
}

/* 20. [2026-11-24] 맨 위 띠 베트남어 — 띠가 메인 전 화면 폰에도 나오면서(header_b2c.css) 긴 로그인 글자('Đăng nhập nhà cung cấp')가 412px 이하에서 화면 밖(가로 스크롤 320px 100px,
       supplierGuide 는 [회원가입]이 잘림) → 680px 이하는 작은 글자로 줄바꿈(세 줄까지 36px 안) · 영어 꼬리표는 뺌. 회원 띠([사업자전환] 'Chuyển sang doanh nghiệp')는 600px 이하.
       [사업자전환] 회원은 번역 화면 600px 이하에서 '로그인 중'을 뺀다(영어·베트남어 441~590px 에서 언어 메뉴와 겹침 — 검수) */
@media (max-width: 680px) {
  html[data-tt-lang="vi"] .tt-topstrip:not(.is-member) .topstrip-menu a { white-space: normal; text-align: center; font-size: 10.5px; line-height: 1.1; }
  html[data-tt-lang="vi"] .tt-topstrip:not(.is-member) .topstrip-menu a i { display: none; }
}
@media (max-width: 600px) {
  html[data-tt-lang] .tt-topstrip.has-upgrade .topstrip-who-tail { display: none; }
  html[data-tt-lang="vi"] .tt-topstrip.is-member .topstrip-menu { flex: 0 1 auto; min-width: 0; }
  html[data-tt-lang="vi"] .tt-topstrip.is-member .topstrip-menu a { flex: 0 1 auto; min-width: 0; white-space: normal; text-align: center; font-size: 10.5px; line-height: 1.1; }
}
