@charset "UTF-8";
/* =====================================================================
   티바이티(tbuyt.com) 모바일 반응형 — 1단계
   뷰포트 · 공통 레이아웃 폭 · 상단 헤더 · 공통 푸터
   작성 2026-12-06

   - 모든 규칙은 @media (max-width: 1024px) 안에만 있습니다.
     → PC(1400px) 화면에는 어떤 영향도 주지 않습니다.
   - 파일을 따로 둔 이유: gd_custom.css(약 124KB)는 Web FTP 단일 파일
     용량 제한(~70KB)에 걸리고 캐시도 1시간 남기 때문에,
     이 파일만 ?v= 캐시버스트로 새로 걸어 적용합니다.
   ===================================================================== */

@media (max-width: 1024px) {

  /* ------------------------------------------------------------------
     1) 공통 폭 · 가로 스크롤 정리
     ------------------------------------------------------------------ */
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  #wrap {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
  }

  .container {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  #container {
    display: block;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
  }

  #container > #content {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0 0 28px;
    box-sizing: border-box;
  }

  #content > .contents,
  #content .contents,
  #container > #content > .contents > .view,
  #content .view,
  #content .contents-inner {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  #footer {
    width: 100%;
    max-width: 100%;
  }

  /* 사이트 전체 이미지가 화면 밖으로 넘치지 않게 (아이콘·로고 등 고정 크기 이미지는 비율 유지) */
  #top img,
  #footer img,
  #content img {
    max-width: 100%;
  }

  /* 우측 플로팅 퀵메뉴(최근본상품/TOP) · 사이드 배너는 모바일에서 본문을 가리므로 숨김 */
  .tweetdetails,
  #scroll-left,
  #scroll-right {
    display: none !important;
  }

  /* ------------------------------------------------------------------
     2) 상단 유틸바 (#tbox)
        - 즐겨찾기(모바일 동작 안 함)와 빈 링크 5개는 숨기고
          카드결제 + 로그인/회원가입/마이페이지/고객센터만 한 줄로
     ------------------------------------------------------------------ */
  #tbox {
    background-size: auto 100%;
  }

  #tbox > ul {
    width: 100% !important;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 2px;
    padding: 2px 6px;
    box-sizing: border-box;
  }

  #tbox ul.border_box {
    display: flex;
    align-items: center;
    float: none;
    width: auto;
  }

  #tbox li {
    float: none !important;
  }

  #tbox .left,
  #tbox .right {
    float: none !important;
    margin: 0;
    padding: 0;
  }

  #tbox .left ul li {
    display: none;
  }

  /* 카드결제(2번째)만 남김 */
  #tbox .left ul li:nth-child(2) {
    display: block;
  }

  #tbox .left img,
  #tbox .right img {
    height: 28px;
    width: auto;
    display: block;
  }

  /* ------------------------------------------------------------------
     3) 상단 프로모션 배너 · 로고 · 검색 · 4개 탭 · 카테고리
     ------------------------------------------------------------------ */
  #TOP_PROMOTION {
    padding: 0;
    line-height: 0;
  }

  #TOP_PROMOTION img {
    width: 100%;
    height: auto;
    display: block;
  }

  #top.header .head {
    padding: 6px 0 0;
  }

  #TOP_SEARCHBAR {
    height: auto !important;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: center;
  }

  #TOP_SEARCHBAR .container {
    display: block;
    width: 100% !important;
  }

  #TOP_SEARCHBAR table,
  #TOP_SEARCHBAR tbody,
  #TOP_SEARCHBAR tr {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
  }

  #TOP_SEARCHBAR td {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0;
    box-sizing: border-box;
  }

  /* 순서: 로고 → 검색 → 전화/소개 문구 */
  #TOP_SEARCHBAR td:nth-child(1) { order: 3; margin-top: 10px; }
  #TOP_SEARCHBAR td:nth-child(2) { order: 1; }
  #TOP_SEARCHBAR td:nth-child(3) { order: 2; margin: 10px 0 4px; }

  #TOP_SEARCHBAR td:nth-child(2) a {
    display: inline-block;
    line-height: 0;
  }

  #TOP_SEARCHBAR td:nth-child(2) img {
    width: auto;
    max-width: 260px;
    height: auto;
  }

  #TOP_SEARCHBAR td:nth-child(1) a {
    display: inline-block;
    line-height: 0;
  }

  #TOP_SEARCHBAR td:nth-child(1) img {
    position: static !important;
    left: 0 !important;
    width: auto;
    max-width: 250px;
    height: auto;
  }

  /* 검색 폼: 입력칸이 가로를 꽉 채우고, 검색 버튼은 오른쪽 고정 */
  #TOP_SEARCHBAR form,
  #TOP_SEARCHBAR fieldset {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
  }

  #TOP_SEARCHBAR fieldset legend {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
  }

  #TOP_SEARCHBAR form .tr {
    position: static !important;
    top: auto !important;
    text-align: center;
  }

  #TOP_SEARCHBAR form .tr > div {
    display: flex !important;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  #TOP_SEARCHBAR form .tr > div > ul {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #TOP_SEARCHBAR form .tr > div > ul > li {
    float: none;
    display: block;
    box-sizing: border-box;
  }

  #TOP_SEARCHBAR form .tr > div > ul > li:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  #TOP_SEARCHBAR form .tr > div > ul > li:last-child {
    flex: 0 0 auto;
  }

  #TOP_SEARCHBAR #search-form {
    width: 100% !important;
    height: 34px !important;
    box-sizing: border-box;
    font-size: 14px;
  }

  #TOP_SEARCHBAR form .tr p {
    display: block;
    margin: 4px 0 0;
    font-size: 10.5px;
    line-height: 1.4;
    color: #666;
    word-break: keep-all;
  }

  /* 4개 탭: 4열 그리드 */
  #menu_box {
    padding: 2px 8px 0;
    box-sizing: border-box;
  }

  #menu_box .top ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    float: none;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }

  #menu_box .top li {
    float: none !important;
    width: auto;
    margin: 0;
  }

  #menu_box .top li a {
    display: block;
    line-height: 0;
  }

  #menu_box .top li img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* 13개 카테고리: 한 줄 가로 스와이프 */
  #category {
    padding: 6px 0 0;
    box-sizing: border-box;
  }

  #category ul.border_box {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding: 0 8px 8px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #category ul.border_box::-webkit-scrollbar {
    display: none;
  }

  #category li {
    float: none !important;
    flex: 0 0 84px;
    width: 84px;
    margin: 0;
  }

  #category li a {
    display: block;
    line-height: 0;
  }

  #category li img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  #menu_box .banner {
    width: 100% !important;
    max-width: 100%;
    padding: 0 8px 8px;
    box-sizing: border-box;
    text-align: center;
  }

  #menu_box .banner li {
    float: none;
    display: block;
    width: 100%;
  }

  #menu_box .banner img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* ------------------------------------------------------------------
     4) 공통 푸터
     ------------------------------------------------------------------ */
  #footer {
    margin-top: 26px;
  }

  .tb-footer {
    max-width: 100% !important;
    width: 100%;
  }

  .tb-footer-top {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 22px 18px 18px;
  }

  .tb-footer-cs,
  .tb-footer-contact,
  .tb-footer-guide {
    min-width: 0 !important;
    width: 100%;
    text-align: left;
  }

  .tb-footer-title {
    font-size: 15px;
    margin-bottom: 9px;
  }

  .tb-footer-tel {
    font-size: 26px;
    margin-bottom: 6px;
  }

  .tb-footer-hours,
  .tb-footer-contact-line {
    font-size: 13px;
  }

  /* 구매가이드 6개 아이콘: 한 줄에 6칸 (작은 화면에서도 잘리지 않게) */
  .tb-guide-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2px;
    margin-top: 8px;
    width: 100%;
  }

  .tb-guide-list li {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }

  .tb-guide-list li a {
    gap: 5px;
    font-size: 11px;
    letter-spacing: -0.04em;
    white-space: nowrap;
  }

  .tb-guide-list li svg {
    width: 26px;
    height: 26px;
  }

  .tb-footer-biz {
    padding: 18px 18px 14px;
    font-size: 12.5px;
    line-height: 1.8;
    word-break: keep-all;
  }

  .tb-footer-badges {
    padding: 4px 18px 24px;
  }

  .tb-footer-badges img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* ------------------------------------------------------------------
     5) 메인 페이지 안전망 — 가로로 잘리지 않게 폭/열 수만 정리
        (2단계에서 메인·상품목록을 본격적으로 다듬습니다)
     ------------------------------------------------------------------ */
  .home-h1,
  .tb-quick-cards,
  .tb-best-section,
  .tb-cate-sec,
  .tb-trust-sec,
  .tb-media-sec,
  .tb-bottom-sec,
  .tb-process-banner {
    width: 100% !important;
    max-width: 100% !important;
  }

  .home-h1 {
    font-size: 11.5px;
    padding: 10px 12px 2px;
    word-break: keep-all;
  }

  .tb-quick-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin: 16px 0 24px !important;
    padding: 0 12px !important;
  }

  .tb-quick-card {
    padding: 18px 14px 16px !important;
  }

  /* 카드 안 글자가 단어 중간에서 끊기지 않게 */
  .tb-quick-card-title,
  .tb-quick-card-desc,
  .tb-best-name,
  .tb-cate-name,
  .tb-trust-tit,
  .tb-trust-desc,
  .tb-process-title,
  .tb-process-sub,
  .tb-process-step-tit,
  .tb-process-step-desc {
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .tb-quick-card-title {
    font-size: 19px !important;
    line-height: 1.3 !important;
  }

  .tb-quick-card-desc {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }

  .tb-quick-card-icon svg {
    width: 44px;
    height: 44px;
  }

  .tb-best-section,
  .tb-cate-sec,
  .tb-trust-sec,
  .tb-bottom-sec {
    padding: 0 12px !important;
  }

  .tb-bottom-sec {
    margin-bottom: 28px !important;
  }

  .tb-best-tabs {
    overflow-x: auto !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
  }

  .tb-best-tabs::-webkit-scrollbar {
    display: none;
  }

  .tb-best-tab {
    padding: 12px 12px 13px;
    font-size: 13.5px;
  }

  .tb-best-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .tb-cate-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .tb-trust-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .tb-trust-card {
    padding: 20px 16px 18px;
  }

  .tb-best-title,
  .tb-cate-title,
  .tb-trust-title {
    font-size: 19px;
  }

  .tb-media-sec {
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 30px !important;
  }

  .tb-media-slider,
  .tb-media-slider .slider-wrap,
  .tb-media-slider [class*="slider-banner"],
  .tb-media-slider img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* .tb-media-slider 는 flex:0 0 537px (세로 flex-basis) 로 높이가 고정돼 있음 */
  .tb-media-slider {
    flex: 0 0 auto !important;
    min-height: 0 !important;
  }

  /* 메인 상단 롤링 배너(위젯이 1300px 고정폭을 인라인 style 로 넣음) */
  div.slider-banner-1469358691 {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* 위젯이 슬라이드/이미지 폭을 인라인으로 잡아도 화면 폭에 맞춤 */
  div[class*="slider-banner-"] .slick-slide img,
  div[class*="slider-banner-"] .slick-slide a img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .tb-media-video,
  .tb-media-video iframe {
    width: 100% !important;
    height: 205px !important;
  }

  .tb-process-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    padding: 24px 18px !important;
  }

  .tb-process-steps {
    flex-wrap: wrap !important;
    gap: 14px 0 !important;
  }

  .tb-process-step {
    flex: 1 1 50% !important;
    padding-right: 18px;
  }

  .tb-process-cta {
    flex: 1 1 auto !important;
    padding: 16px 0 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
  }

  /* ------------------------------------------------------------------
     6) 내부 페이지 안전망 — 게시판·상품상세의 1180px 고정폭/2단 구성을
        화면 폭에 맞춰 '잘리지 않게'만 풀어 둡니다.
        (2·3단계에서 각 페이지를 본격적으로 다듬습니다)
     ------------------------------------------------------------------ */
  body.body-board #content .contents-inner,
  body.body-board #content .contents-inner.cs-page,
  body.body-board #content .contents-inner div,
  body.body-board #content .contents-inner section,
  body.body-board #content .contents-inner form,
  body.body-board #content .contents-inner fieldset,
  body.body-board #content .contents-inner ul,
  body.body-board #content .contents-inner ol,
  body.body-board #content .contents-inner p,
  body.body-board #content .contents-inner table {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.body-board #content .contents-inner,
  body.body-board #content .contents-inner.cs-page {
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* 게시판 목록/내용 표는 표 안에서만 가로 스크롤 (글씨가 짜부라지지 않게) */
  body.body-board #content .board-list,
  body.body-board #content .board-view,
  body.body-board #content .board-write {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 상품 상세: 이미지 아래에 상품정보가 오도록 2단 해제 */
  body.body-goods #content .goods .image,
  body.body-goods #content .goods .info,
  body.body-goods #content .goods form,
  body.body-goods #content .goods .info .goods-header,
  body.body-goods #content .goods .info .item,
  body.body-goods #content .goods .info .item ul li > div {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.body-goods #content .goods .info .item ul li > div {
    display: block !important;
  }

  body.body-goods #content .goods .image .thumbnail,
  body.body-goods #content .goods .image .thumbnail img,
  body.body-goods #content .goods .image .thumbnail a {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }

  body.body-goods #content .goods .image .more-thumbnail,
  body.body-goods #content .goods .image .more-thumbnail .slide {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.body-goods #content .goods .info {
    padding: 0 12px !important;
  }

  body.body-goods #content .goods .info .top .tit,
  body.body-goods #content .goods .info .top .tit h1,
  body.body-goods #content .goods .info .sns,
  body.body-goods #content .goods .info .qrcode {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
  }

  /* 주문서 주소 입력줄: 우편번호 검색 버튼이 화면 밖으로 나가지 않게 */
  body.body-board #content .tb-of-addr-zip {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  body.body-board #content .tb-of-addr-zip .tb-qf-input {
    flex: 1 1 140px !important;
    width: auto !important;
    min-width: 0 !important;
  }

  body.body-board #content .tb-of-zipbtn {
    flex: 0 0 auto !important;
    width: auto !important;
    white-space: nowrap;
  }
}

/* 태블릿(600~1024px): 항목이 너무 커지지 않게 폭 제한 */
@media (min-width: 600px) and (max-width: 1024px) {
  #category {
    max-width: 1024px;
    margin: 0 auto;
  }

  #category ul.border_box {
    justify-content: flex-start;
  }

  #category li {
    flex: 0 0 96px;
    width: 96px;
  }

  #TOP_SEARCHBAR td:nth-child(2) img {
    max-width: 300px;
  }
}

/* 아주 작은 화면(≤360px) 보정 */
@media (max-width: 360px) {
  #category li {
    flex: 0 0 76px;
    width: 76px;
  }

  .tb-guide-list li a {
    font-size: 10px;
  }
}
/* =====================================================================
   2단계 · 3단계 — 모바일 반응형 (2026-12-06)
   - 2단계: 상단 슬림화(띠·로고·검색·4탭) + 13개 카테고리 5열 그리드
   - 3단계: 로그인·회원가입·아이디/비번 찾기 / 장바구니·마이페이지 /
            상품목록 2열 / 상품상세 / 주문서·견적문의 / 게시판 목록·글보기
   - 모든 규칙은 @media (max-width: 1024px) 안에만 있습니다.
     → PC(1400px) 화면은 1px도 바뀌지 않습니다.
   ===================================================================== */

/* 모바일 전용으로 새로 넣은 요소는 PC(1025px 이상)에서 보이지 않게 */
@media (min-width: 1025px) {
  .tb-mobile-topline {
    display: none !important;
  }
}

@media (max-width: 1024px) {

  /* ==================================================================
     2단계 ①  맨 위 띠 — 1600×50 이미지 대신 1줄 텍스트 안내
     ================================================================== */
  #TOP_PROMOTION {
    height: auto !important;
    padding: 0 !important;
    background: #0f172a;
    line-height: 0;
  }

  #TOP_PROMOTION > img {
    display: none !important;
  }

  #TOP_PROMOTION .tb-mobile-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    margin: 0;
    padding: 0 12px;
    color: #dfe6f0;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: left;
    white-space: nowrap;
    box-sizing: border-box;
  }

  #TOP_PROMOTION .tb-mobile-topline strong {
    color: #fff;
    font-weight: 800;
  }

  #TOP_PROMOTION .tb-topline-tel {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #ff2e55;
    color: #fff !important;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none !important;
  }

  /* ==================================================================
     2단계 ②  상단 유틸바 · 로고 · 검색 · 4탭 슬림화
     ================================================================== */
  #tbox {
    background-size: auto 100%;
  }

  #tbox > ul {
    padding: 1px 6px;
    gap: 0 2px;
  }

  #tbox .left img,
  #tbox .right img {
    height: 24px;
  }

  #top.header .head {
    padding: 2px 0 0;
  }

  #TOP_SEARCHBAR {
    padding: 0 10px;
  }

  /* 전화번호 이미지(269×38)는 모바일에서 위 띠의 tel 버튼으로 대신함 */
  #TOP_SEARCHBAR td:nth-child(1) {
    display: none !important;
  }

  #TOP_SEARCHBAR table,
  #TOP_SEARCHBAR tbody,
  #TOP_SEARCHBAR tr {
    height: auto !important;
  }

  /* 로고: 높이를 묶어 첫 화면을 확보 */
  #TOP_SEARCHBAR td:nth-child(2) {
    order: 1;
  }

  #TOP_SEARCHBAR td:nth-child(2) img {
    width: auto;
    max-width: 216px;
    max-height: 64px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* 검색: 입력칸 + 버튼 한 줄, 테두리 얇게 */
  #TOP_SEARCHBAR form .tr {
    margin: 2px 0 0;
  }

  #TOP_SEARCHBAR form .tr > div {
    max-width: 100%;
  }

  #TOP_SEARCHBAR form .tr > div > ul {
    align-items: center;
  }

  #TOP_SEARCHBAR #search-form {
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 13.5px;
    color: #0f172a;
  }

  #TOP_SEARCHBAR #search-form::placeholder {
    color: #94a3b8;
  }

  #TOP_SEARCHBAR form .tr > div > ul > li:last-child img {
    display: block;
    height: 38px;
    width: auto;
  }

  #TOP_SEARCHBAR form .tr p {
    margin: 3px 0 0;
    font-size: 10px;
    line-height: 1.3;
  }

  /* 4개 탭 */
  #menu_box {
    padding: 4px 8px 0;
  }

  #menu_box .top ul {
    gap: 4px;
    max-width: 100%;
  }

  #menu_box .top li img {
    border-radius: 6px;
  }

  /* ==================================================================
     2단계 ③  13개 카테고리 — 5열 3줄 그리드 (스크롤 없이 전부 노출)
        · 이미지에 박힌 라벨은 잘라 내고(data-tb-name) 글자로 다시 그림
     ================================================================== */
  #category {
    padding: 8px 10px 6px;
    /* 원래 디자인: 한 줄 카테고리 아래 회색 그라데이션 띠(cm_bg.gif).
       여러 줄 그리드에서는 띠가 마지막 줄에만 깔려 어색하므로 제거 */
    background: none !important;
    border-top-width: 4px;
  }

  #category ul.border_box {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px 6px;
    width: 100%;
    padding: 0;
    overflow: visible;
  }

  #category li {
    float: none !important;
    display: flex;
    flex-direction: column;
    width: auto;
    min-width: 0;
    margin: 0;
    flex: none;
  }

  #category li a {
    display: block;
    aspect-ratio: 100 / 106;
    overflow: hidden;
    border: 1px solid #edf1f6;
    border-radius: 10px;
    background: #fbfcfd;
    line-height: 0;
  }

  #category li img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
  }

  #category li::after {
    content: attr(data-tb-name);
    display: block;
    margin: 4px 0 0;
    color: #334155;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.045em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #menu_box .banner {
    padding: 0 10px 8px;
  }

  /* ==================================================================
     3단계 ①  안쪽 페이지 공통 폭 · 제목 크기
        (gd_custom.css 의 1180px 고정폭을 화면 폭으로 푼다)
     ================================================================== */
  body.body-member #content .member:not(.tb-login-page),
  body.body-member #content .member,
  body.body-join-agreement #content .join,
  body.body-order #content .order-page,
  body.body-board #content .contents-inner.cs-page {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 12px 40px !important;
    box-sizing: border-box;
  }

  body.body-member #content .member > h2,
  body.body-member #content .member:not(.tb-login-page) > h2,
  body.body-join-agreement #content .join > .top > h2,
  body.body-order #content .order-page .step-top > h2,
  body.body-board #content .section > .section-header > .h2,
  body.body-board #content .section > h2.h2,
  body.body-board #content .contents-inner .h2 {
    margin: 0 0 14px !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.04em;
  }

  /* 홈 제목(h1)이 padding 때문에 화면을 넘지 않게 */
  .home-h1 {
    box-sizing: border-box;
  }

  /* 안쪽 카드·박스 공통: 넘치지 않게 */
  body.body-member #content .member .box,
  body.body-member #content .member form,
  body.body-member #content .member fieldset,
  body.body-join-agreement #content .join .box,
  body.body-join-agreement #content .join .terms,
  body.body-join-agreement #content .join .terms-view,
  body.body-order #content .order-page .price-box,
  body.body-board #content .contents-inner.cs-page .section,
  body.body-board #content .contents-inner.cs-page .section-body {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* ==================================================================
     3단계 ②  로그인 / 회원가입
     ================================================================== */
  .member.tb-login-page {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 12px 40px !important;
    box-sizing: border-box;
  }

  .member.tb-login-page > h2 {
    margin: 0 0 14px;
    font-size: 20px;
  }

  .tb-login-grid {
    flex-direction: column;
    gap: 12px;
  }

  .member.tb-login-page .tb-login-card {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
    padding: 20px 16px 22px;
    border-radius: 12px;
  }

  .member.tb-login-page .tb-login-card h3 {
    margin: 0 0 14px;
    font-size: 17px;
  }

  .member.tb-login-page .tb-login-card .login {
    flex-direction: column;
    gap: 10px;
  }

  .member.tb-login-page .tb-login-card .login .input-info {
    flex: 1 1 auto;
    width: 100%;
  }

  .member.tb-login-page .tb-login-card .login .input-info div .text {
    height: 44px;
    font-size: 14px;
    line-height: 42px;
  }

  .member.tb-login-page .tb-login-card .login button.l-login {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    height: 48px;
  }

  .member.tb-login-page .tb-login-card .save {
    margin: 12px 0 0;
  }

  .member.tb-login-page .tb-login-card .btn {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 0;
    padding: 14px 0 0;
  }

  .member.tb-login-page .tb-login-card .btn .skinbtn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    height: 40px;
    font-size: 12.5px;
  }

  .member.tb-login-page .tb-login-card .btn .skinbtn.l-join,
  .member.tb-login-page .tb-login-card .btn .skinbtn.l-findid,
  .member.tb-login-page .tb-login-card .btn .skinbtn.l-findpw {
    flex: 0 0 auto;
  }

  .member.tb-login-page .tb-login-card .btn .skinbtn.l-join {
    flex: 0 0 100% !important;
  }

  .member.tb-login-page .tb-login-card .btn .skinbtn.l-findid,
  .member.tb-login-page .tb-login-card .btn .skinbtn.l-findpw {
    flex: 1 1 calc(50% - 4px) !important;
  }

  .member.tb-login-page .tb-login-lookup {
    width: 100%;
    margin: 12px 0 0;
    padding: 20px 16px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .member.tb-login-page .tb-login-lookup h3 {
    margin: 0 0 12px;
    font-size: 16px;
  }

  .member.tb-login-page .tb-login-lookup .login {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .member.tb-login-page .tb-login-lookup .login .input-info {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .member.tb-login-page .tb-login-lookup .login .input-info div {
    width: 100%;
  }

  .member.tb-login-page .tb-login-lookup .login .input-info div .text {
    width: 100%;
    height: 44px;
  }

  .member.tb-login-page .tb-login-lookup .login .skinbtn.l-confirm,
  .member.tb-login-page .tb-login-lookup .login button.l-confirm {
    flex: 0 0 auto !important;
    width: 100%;
    height: 46px;
    min-height: 0;
  }

  /* 회원가입 제목 줄: 제목 아래로 단계 표시를 내리고 한 줄로 */
  body.body-join-agreement #content .join > .top,
  body.body-join #content .join > .top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 14px;
  }

  body.body-join-agreement #content .join > .top > div,
  body.body-join #content .join > .top > div {
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
  }

  body.body-join-agreement #content .join > .top > div span,
  body.body-join #content .join > .top > div span {
    flex: 0 0 auto;
    height: 28px;
    padding: 0 9px;
    gap: 4px;
    font-size: 11px;
    white-space: nowrap;
  }

  body.body-join-agreement #content .join > .top > div span strong {
    font-size: 10.5px;
  }

  body.body-join-agreement #content .join .terms {
    padding: 18px 14px 20px;
    border-radius: 12px;
  }

  body.body-join-agreement #content .join .terms > h3,
  body.body-join-agreement #content .join .terms h3 {
    margin: 0 0 12px;
    font-size: 17px;
  }

  /* 회원가입 약관동의 · 가입폼 */
  body.body-join-agreement #content .join,
  body.body-join #content .join {
    padding: 18px 12px 40px !important;
  }

  body.body-join-agreement #content .join .terms,
  body.body-join-agreement #content .join .terms-view,
  body.body-join-agreement #content .join .all-agree,
  body.body-join-agreement #content .join .btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.body-join-agreement #content .join .terms-view {
    font-size: 12.5px;
    line-height: 1.75;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  body.body-join-agreement #content .join .all-agree,
  body.body-join-agreement #content .join .all-agree label {
    width: 100% !important;
    height: auto;
    white-space: normal;
    word-break: keep-all;
    line-height: 1.5;
  }

  body.body-join-agreement #content .join .btn .skinbtn {
    width: 100%;
  }

  /* 아이디 / 비밀번호 찾기 */
  body.body-member #content .member .box {
    padding: 20px 16px !important;
  }

  body.body-member #content .member .login,
  body.body-member #content .member .input-info {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  body.body-member #content .member .input-info div .text,
  body.body-member #content .member .login .text {
    width: 100% !important;
    height: 44px;
  }

  body.body-member #content .member .login button {
    width: 100%;
    height: 46px;
  }

  body.body-member #content .member .btn {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  body.body-member #content .member .btn button {
    flex: 1 1 0;
    width: auto;
    font-size: 13px;
  }

  body.body-member #content .member .find-pw {
    flex-wrap: wrap;
    gap: 8px;
  }

  body.body-member #content .member .find-pw .input-id {
    width: 100%;
  }

  /* ==================================================================
     3단계 ③  장바구니 · 주문 단계
     ================================================================== */
  body.body-order #content .order-page .step-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0 0 12px;
  }

  body.body-order #content .order-page .step-top > div {
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
  }

  body.body-order #content .order-page .step-top > div span {
    height: 28px;
    padding: 0 10px;
    font-size: 11px;
    gap: 4px;
  }

  .tb-cart-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px;
    margin: 0 0 12px;
    width: 100%;
  }

  .tb-cart-notice {
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.55;
    word-break: keep-all;
  }

  .tb-clear {
    align-self: flex-end;
    height: 34px;
    font-size: 12px;
  }

  /* 목록 머리글(상품정보·색상·수량)은 카드 안에서 다시 보여주므로 숨김 */
  .tb-thead-th,
  .tb-thead-in {
    display: none !important;
  }

  /* 상품 카드 1단 세로 배치 */
  /* 주의: 장바구니 카드 규칙은 페이지 본문 안 <style>에 있어
     같은 선택자로는 밀리므로 !important 로 확실히 덮는다 */
  .tb-pc {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 12px;
    height: auto !important;
  }

  .tb-pc-left {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: flex-start !important;
    gap: 10px;
  }

  .tb-pc-thumb img {
    width: 62px;
    height: 62px;
  }

  .tb-pc-name a {
    font-size: 13.5px !important;
    -webkit-line-clamp: 2 !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .tb-pc-mid {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .tb-clr {
    padding: 10px 11px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .tb-clr-head {
    gap: 7px;
    margin: 0 0 8px;
  }

  .tb-clr-name {
    font-size: 12.5px;
  }

  .tb-clr-sum {
    font-size: 11.5px;
  }

  .tb-sizes {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100%;
  }

  .tb-size {
    width: auto !important;
    min-width: 0;
    padding: 6px 4px 5px !important;
    box-sizing: border-box;
  }

  .tb-size-name {
    font-size: 11px !important;
    margin: 0 0 4px;
  }

  body.body-order #content .order-page .table1 .tb-size input.text {
    height: 28px;
    font-size: 12.5px;
  }

  .tb-size-act {
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
  }

  .tb-size-act .normal-btn {
    font-size: 10.5px;
  }

  /* 수량·합계는 카드 맨 아래 한 줄 */
  .tb-pc-right {
    flex: 1 1 auto !important;
    width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px;
    padding: 10px 0 0 !important;
    border-top: 1px dashed #e8eef5;
    text-align: left !important;
  }

  .tb-pc-qty {
    font-size: 12.5px;
  }

  .tb-pc-amt strong {
    font-size: 16px;
  }

  /* 합계 박스 */
  body.body-order #content .order-page .price-box {
    margin: 16px 0 0;
    padding: 14px 14px;
  }

  body.body-order #content .order-page .price-box > div p {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    font-size: 12.5px;
    line-height: 1.6;
  }

  body.body-order #content .order-page .price-box > div p .total {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex: 1 1 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #eef1f6;
    font-size: 15px;
  }

  /* 계속 쇼핑 / 삭제 / 주문 버튼 */
  body.body-order #content .order-page .btn-move-home {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    margin: 12px 0 0;
  }

  .btn-justify {
    margin: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .btn-justify > div,
  .btn-justify > div:first-child {
    float: none;
    display: flex;
    gap: 6px;
    width: 100%;
  }

  .btn-justify > div .skinbtn {
    flex: 1 1 0;
    width: auto;
    height: 44px;
    font-size: 13px;
  }

  /* ==================================================================
     3단계 ④  상품 목록 — 4열 → 2열 카드
     ================================================================== */
  .item-display.type-gallery.tb-card-grid .list ul {
    margin: 0 -5px;
  }

  .item-display.type-gallery.tb-card-grid .list ul li {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50%;
    padding: 0 5px 12px;
  }

  .item-display.type-gallery.tb-card-grid .list ul li .space {
    padding: 10px;
    border-radius: 9px;
  }

  .item-display.type-gallery.tb-card-grid .list ul li .thumbnail {
    margin-bottom: 9px;
    border-radius: 7px;
  }

  .item-display.type-gallery.tb-card-grid .list ul li .txt {
    margin-bottom: 6px;
  }

  .item-display.type-gallery.tb-card-grid .list ul li .txt a > strong {
    font-size: 12.5px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    word-break: keep-all;
  }

  .item-display .tb-color-badge {
    margin-bottom: 4px;
    padding: 1px 7px;
    font-size: 10px;
  }

  .item-display.type-gallery.tb-card-grid .list ul li .price {
    font-size: 12px;
  }

  .item-display.type-gallery.tb-card-grid .list ul li .price strong {
    font-size: 14.5px;
  }

  /* 정렬 줄(추천순·인기순…) 이 겹치지 않게 */
  .view .goods-list .align {
    height: auto;
    margin: 10px 0 14px;
    padding: 8px 0 10px;
  }

  .view .goods-list .align ul {
    float: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    width: 100%;
  }

  .view .goods-list .align ul li {
    float: none;
    height: auto;
    margin: 0 12px 0 0;
    padding: 3px 0;
  }

  .view .goods-list .align ul li label {
    padding-left: 15px;
    font-size: 12.5px;
  }

  .view .goods-list .align .choice {
    float: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
  }

  .view .goods-list .align .choice div {
    float: none;
    margin: 0;
  }

  .view .goods-list .tc {
    font-size: 12.5px;
  }

  /* 카테고리 제목·설명 */
  .view .cg-main > h1 {
    font-size: 20px !important;
    margin: 0 0 6px;
  }

  .view .cg-main .cate-seo-desc {
    font-size: 12px;
    line-height: 1.6;
    word-break: keep-all;
  }

  /* ==================================================================
     3단계 ⑤  상품 상세 — 옵션 영역 한 단으로
     ================================================================== */
  body.body-goods #content .goods .info .top {
    display: block;
  }

  body.body-goods #content .goods .info .top .tit {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.body-goods #content .goods .info .top .tit h1 {
    font-size: 18px !important;
    line-height: 1.35 !important;
    letter-spacing: -0.03em;
    word-break: keep-all;
  }

  body.body-goods #content .goods .info .top .sns {
    float: none !important;
    width: auto !important;
    margin: 8px 0 0;
    text-align: left;
  }

  /* 썸네일 띠가 상품명을 덮지 않게 */
  body.body-goods #content .goods .image .more-thumbnail {
    margin-bottom: 8px !important;
  }

  /* 색상 칩 · 사이즈 칸 */
  .tb-mx {
    padding: 16px 12px 12px;
    border-radius: 12px;
  }

  .tb-mx-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin: 0 0 10px;
  }

  .tb-mx-title {
    font-size: 14px;
  }

  .tb-mx-hint {
    font-size: 11px;
    text-align: left;
  }

  .tb-mx-colors {
    gap: 5px;
    margin: 0 0 12px;
  }

  .tb-mx-chip {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  /* 사이즈 수량: 3열 (S·M·L / XL·2XL·3XL) */
  .tb-mx-cells {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .tb-mx-cell {
    border-left: 1px solid #edf1f6;
    border-top: 1px solid #edf1f6;
    padding: 7px 4px 8px;
  }

  .tb-mx-cells .tb-mx-cell:nth-child(-n+3) {
    border-top: 0;
  }

  .tb-mx-cells .tb-mx-cell:nth-child(3n+1) {
    border-left: 0;
  }

  .tb-mx-size {
    font-size: 11.5px;
  }

  .tb-mx-qty {
    max-width: 100%;
    height: 32px;
    font-size: 13px;
  }

  .tb-mx-foot {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 10px;
    font-size: 12px;
  }

  .tb-mx-amt {
    font-size: 16px;
  }

  /* 포장 · 인쇄 방식 · 요청메모 */
  .tb-oz-cards {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .tb-oz-card {
    padding: 11px 13px;
  }

  .tb-oz-chip {
    height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  /* 예상 금액 박스: 큰 숫자가 잘리지 않게 */
  .tb-oz-total {
    padding: 14px 14px 12px;
    box-sizing: border-box;
  }

  .tb-oz-trow {
    font-size: 12px;
  }

  .tb-oz-tmain {
    gap: 10px;
  }

  .tb-oz-tmain {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .tb-oz-tmain span {
    flex: 0 0 auto !important;
    font-size: 12.5px !important;
  }

  .tb-oz-tmain b {
    flex: 0 1 auto !important;
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    gap: 2px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    text-align: right;
    word-break: normal !important;
  }

  .tb-oz-tmain b strong {
    display: inline !important;
    position: static !important;
    float: none !important;
    font-size: 22px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
  }

  .tb-oz-btns {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .tb-oz-btn {
    height: 48px;
    font-size: 14px;
  }

  /* 상품상세 하단 정보 탭 (상품상세정보·배송안내·교환반품·후기·문의) */
  body.body-goods #content .multiple-topics {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body.body-goods #content .multiple-topics .tab {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-sizing: border-box;
  }

  body.body-goods #content .multiple-topics .tab::-webkit-scrollbar {
    display: none;
  }

  body.body-goods #content .multiple-topics .tab a {
    flex: 0 0 auto !important;
    float: none !important;
    width: auto !important;
    height: 44px !important;
    padding: 0 8px !important;
    font-size: 11.5px !important;
    line-height: 44px !important;
    letter-spacing: -0.03em;
    white-space: nowrap;
  }

  body.body-goods #content .multiple-topics h3 {
    font-size: 17px;
    margin: 16px 0 10px;
  }

  /* ==================================================================
     3단계 ⑥  주문서 · 견적문의 작성 — 이미 1단으로 접히므로 여백만 정리
     ================================================================== */
  .tb-of,
  .tb-of-section,
  .tb-qf-grid,
  .tb-qf-main,
  .tb-qf-side,
  .tb-qf-card,
  .tb-qf-card-body,
  .tb-qf-row2,
  .tb-qf-pos,
  .tb-of-prod,
  .tb-of-qty,
  .tb-of-example,
  .tb-of-paynote {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .tb-qf-head {
    margin: 0 0 16px;
  }

  .tb-qf-h1 {
    font-size: 22px !important;
    letter-spacing: -0.04em;
    word-break: keep-all;
  }

  .tb-qf-lead {
    font-size: 12.5px;
    line-height: 1.65;
    word-break: keep-all;
  }

  /* 문장이 붙어 보이지 않게 줄바꿈은 그대로 둔다 */

  .tb-qf-steps {
    flex-wrap: wrap;
    gap: 5px;
  }

  .tb-qf-card {
    padding: 18px 14px 20px !important;
    border-radius: 12px;
  }

  .tb-qf-card-head {
    gap: 10px;
  }

  .tb-qf-num {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .tb-qf-card-tit h3 {
    font-size: 16px;
    word-break: keep-all;
  }

  .tb-qf-card-tit p {
    font-size: 12px;
    line-height: 1.55;
    word-break: keep-all;
  }

  .tb-qf-input {
    height: 44px;
    font-size: 13.5px;
  }

  .tb-of-qty {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px;
  }

  .tb-of-qty .tb-of-q > span {
    height: 24px;
    font-size: 10.5px;
  }

  .tb-of-qty .tb-of-q input {
    height: 38px;
    font-size: 13px;
  }

  .tb-of-qtot {
    flex-wrap: wrap;
    gap: 6px 8px;
  }

  .tb-of-addr-zip {
    flex-wrap: wrap;
    gap: 6px;
  }

  .tb-of-addr-zip .tb-qf-input {
    flex: 1 1 100px;
    width: auto;
  }

  .tb-of-addr-zip .tb-of-zipbtn {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .tb-of-colors {
    gap: 5px;
  }

  .tb-of-color {
    height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }

  /* 선택한 상품 목록 · 달력 · 페이지 넘김 */
  .tb-of-pager button {
    min-width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .tb-of-cal {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* 우측 요약 패널 */
  .tb-qf-side {
    margin: 10px 0 0;
  }

  .tb-qf-sum-list {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    font-size: 12px;
    gap: 6px 8px;
  }

  .tb-qf-side-help {
    font-size: 11.5px;
    line-height: 1.6;
    word-break: keep-all;
  }

  .tb-qf-btns {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .tb-qf-btns .skinbtn {
    width: 100%;
    height: 48px;
  }

  /* 견적문의(qa) 작성 화면 */
  .tb-qa-grid,
  .tb-qa-hero,
  .tb-qa-panel,
  .tb-qa-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* ==================================================================
     3단계 ⑦  게시판 목록 · 글보기
     ================================================================== */
  body.body-board #content .section-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  body.body-board #content .section-header .option {
    width: 100%;
  }

  body.body-board #content .section-header .option .skinbtn {
    width: 100%;
    height: 42px;
  }

  body.body-board .table1 table {
    table-layout: auto;
  }

  body.body-board .table1 table col {
    width: auto !important;
  }

  body.body-board .table1 table tr {
    height: auto !important;
  }

  body.body-board .table1 table th,
  body.body-board .table1 table td {
    padding: 9px 6px !important;
    font-size: 12.5px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  body.body-board .table1 table th {
    font-size: 11.5px;
  }

  /* 작성자·날짜 칸은 좁게 (열 머리글과 어긋나지 않게 숨기지 않음) */
  body.body-board .tb-writer-cell,
  body.body-board .tb-date-cell {
    width: 1%;
    white-space: nowrap;
    font-size: 11px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  body.body-board .table1 .tit a {
    white-space: normal;
    word-break: keep-all;
    line-height: 1.45;
  }

  body.body-board .tb-cat-cell {
    white-space: nowrap;
    font-size: 11px;
  }

  /* 목록 위 주문 안내 카드 */
  .tb-order-hero {
    padding: 22px 18px !important;
    border-radius: 14px;
  }

  .tb-order-title {
    font-size: 22px !important;
    word-break: keep-all;
  }

  .tb-order-lead,
  .tb-order-desc {
    font-size: 12.5px;
    line-height: 1.65;
    word-break: keep-all;
  }

  .tb-order-hero-actions {
    width: 100% !important;
  }

  .tb-order-btn {
    flex: 1 1 0;
    height: 44px;
    font-size: 13px;
    padding: 0 10px;
  }

  .tb-order-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .tb-order-step {
    padding: 14px 12px;
  }

  /* 게시판 검색줄 (셀렉트 2개 + 검색어 + 검색 버튼) */
  body.body-board #content .search-box {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px !important;
    box-sizing: border-box;
  }

  body.body-board #content .search-box .item {
    display: block !important;
    float: none !important;
    margin: 0 !important;
    background: none !important;
    height: auto !important;
  }

  body.body-board #content .search-box .st-hs,
  body.body-board #content .search-box .txt-field.hs {
    width: auto !important;
    height: auto !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    box-sizing: border-box;
  }

  body.body-board #content .search-box .item:nth-child(1) .chosen-container {
    width: 108px !important;
  }

  body.body-board #content .search-box .item:nth-child(2) .chosen-container {
    width: 84px !important;
  }

  body.body-board #content .search-box .chosen-container .chosen-single {
    height: 38px !important;
    line-height: 36px !important;
  }

  body.body-board #content .search-box .chosen-container .chosen-single span {
    line-height: 36px !important;
  }

  body.body-board #content .search-box select.tune {
    height: 38px !important;
    padding: 0 6px !important;
    box-sizing: border-box;
    font-size: 12.5px;
  }

  body.body-board #content .search-box .txt-field {
    flex: 1 1 120px;
    min-width: 0;
  }

  body.body-board #content .search-box .txt-field input.text {
    width: 100% !important;
    height: 38px !important;
    padding: 0 10px !important;
    box-sizing: border-box;
    border: 1px solid #d5dbe6;
    border-radius: 6px;
    font-size: 13px;
  }

  body.body-board #content .search-box .boardlist-search,
  body.body-board #content .search-box .skinbtn {
    height: 38px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    font-size: 13px;
    white-space: nowrap;
  }

  /* 글보기 */
  body.body-board #content .board-view table,
  body.body-board #content .board-view .view-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.body-board #content .board-view .view-content img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* 글쓰기 폼(기본 게시판) */
  body.body-board #content .join-form,
  body.body-board #content .join-form table,
  body.body-board #content .join-form .write-table {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* 태블릿(601~1024px): 그리드는 7열, 상단 요소는 너무 커지지 않게 폭 제한 */
@media (min-width: 601px) and (max-width: 1024px) {
  #category ul.border_box {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px 8px;
  }

  #category li::after {
    font-size: 11px;
    margin-top: 5px;
  }

  #menu_box .top ul {
    max-width: 620px;
    margin: 0 auto;
  }

  #TOP_SEARCHBAR form .tr > div {
    max-width: 560px;
  }

  #TOP_SEARCHBAR td:nth-child(2) img {
    max-width: 240px;
    max-height: 72px;
  }

  #TOP_PROMOTION .tb-mobile-topline {
    min-height: 40px;
    padding: 0 20px;
    font-size: 12.5px;
  }
}

/* 좁은 화면(≤390) 미세 보정 */
@media (max-width: 390px) {
  #category li::after {
    font-size: 10px;
    letter-spacing: -0.05em;
  }

  #TOP_SEARCHBAR td:nth-child(2) img {
    max-width: 200px;
    max-height: 58px;
  }
}

@media (max-width: 360px) {
  /* 기존 1단계 규칙(가로 스와이프 폭)보다 우선해 그리드 유지 */
  #category li {
    flex: none !important;
    width: auto !important;
  }

  .tb-sizes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tb-mx-cells {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
