/* B2B Carpet Catalog Layout 이식 - PC 전용 (미디어쿼리 없음) */

/* 상단 고정: sticky는 #hd에 둠 — .b2b-header만 두면 부모(#hd) 높이≈헤더라 스티키 제약에 걸려 동작하지 않음 */
#hd.b2b-hd {
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

/* Header (이전 .b2b-subheader 역할은 #hd sticky로 대체) */
.b2b-header {
    width: 100%;
    background: linear-gradient(180deg, #fcfcf9 0%, #f4f3ef 100%);
    border-bottom: 1px solid #c8c4bc;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 1px 3px rgba(0, 0, 0, 0.06);
}
.b2b-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.b2b-logo {
    flex-shrink: 0;
}
.b2b-logo a {
    font-size: 1.875rem;
    font-weight: bold;
    color: #2C2C2C;
    text-decoration: none;
    letter-spacing: -0.02em;
}
.b2b-logo-en {
    color: #1D2B4D;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 8px;
}
/* 로고와 검색(220px) 사이: 관리자 메뉴 1단(get_menu_db) */
.b2b-header-highlight {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    overflow: visible;
}
.b2b-header-highlight #gnb {
    position: relative;
    width: 100%;
    background: transparent;
}
.b2b-header-highlight #gnb.b2b-gnb-merged .gnb_wrap {
    max-width: none;
    width: 100%;
    margin: 0;
}
.b2b-header-highlight #gnb_1dul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 0;
    padding: 0;
    margin: 0;
    list-style: none;
    float: none;
    font-size: 0.9375rem;
}
.b2b-header-highlight #gnb .gnb_1dli {
    float: none;
    line-height: 1.3;
    padding: 0;
    position: relative;
}
.b2b-header-highlight .gnb_1dli:not(.gnb_mnal) .gnb_1da {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2C2C2C;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.b2b-header-highlight .gnb_1dli:not(.gnb_mnal) .gnb_1da:hover,
.b2b-header-highlight .gnb_1dli:not(.gnb_mnal) .gnb_1da:focus {
    color: #1D2B4D;
    background: rgba(29, 43, 77, 0.08);
    outline: none;
}
.b2b-header-highlight .gnb_2dul {
    top: 100%;
    margin-top: 2px;
}
.b2b-header-highlight .gnb_empty {
    flex: 1 1 100%;
    padding: 6px 0;
    line-height: 1.4;
    width: auto;
    text-align: left;
}
.b2b-header-highlight .gnb_empty a {
    color: #1D2B4D;
    text-decoration: underline;
}
.b2b-search-wrap {
    flex: 0 0 220px;
    width: 220px;
    max-width: 220px;
    min-width: 0;
}
.b2b-search-form {
    display: block;
}
.b2b-search-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 35px;
    background: #fff;
    border: 1px solid #1D2B4D;
    border-radius: 6px;
    box-sizing: border-box;
    box-shadow: none;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
/* 포커스: 내부/inset 없이 외곽만 — 링 + 넓은 네이비 번짐으로 선택 인지 */
.b2b-search-field:focus-within {
    box-shadow:
        0 0 0 3px rgba(29, 43, 77, 0.14),
        0 8px 28px rgba(29, 43, 77, 0.22),
        0 2px 10px rgba(0, 0, 0, 0.08);
}
.b2b-search-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}
.b2b-search-input {
    flex: 1;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0 36px 0 28px;
    font-size: 13px;
    line-height: 1.35;
    border: none;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    color: #1f2937;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.b2b-search-input::placeholder {
    color: #9ca3af;
    font-size: 13px;
}
/* default.css 전역 input:focus 보더·그림자는 시공사례 등 유지 — 검색만 컨테이너(.b2b-search-field) 강조로 통일(본 파일은 default 이후 로드) */
input.b2b-search-input:focus,
input.b2b-search-input:focus-visible {
    outline: none;
    border: 0 !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}
.b2b-search-btn {
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 9px;
    min-width: 34px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.b2b-search-btn:hover,
.b2b-search-field:focus-within .b2b-search-btn {
    opacity: 0.95;
    color: #1D2B4D;
}
.b2b-search-btn:active {
    opacity: 1;
}
.b2b-search-btn:focus {
    outline: none;
}
.b2b-search-btn:focus-visible {
    outline: 2px solid #1D2B4D;
    outline-offset: 1px;
}
.b2b-search-btn .fa {
    font-size: 14px;
}
.b2b-consult {
    flex-shrink: 0;
}
.b2b-consult-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    background: #A62121;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(166, 33, 33, 0.35);
    box-sizing: border-box;
}
.b2b-consult-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.4rem;
}
.b2b-consult-body {
    text-align: left;
    min-width: 0;
}
.b2b-consult-label {
    font-size: 0.8125rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
}
.b2b-consult-num {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

/* Wrapper & 3-column layout */
.b2b-wrapper {
    background: #F9F9F7;
    min-height: 60vh;
}
.b2b-container-wr {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}
.layout-main-wrap {
    display: flex;
}
.layout-sidebar-left {
    width: 140px;
    flex-shrink: 0;
}
.layout-center {
    flex: 1;
    min-width: 0;
}
/* default.css #container 전역 규칙(float:left; width:930px; margin:20px 0)이
   flex 중앙 컬럼의 자동 수축을 방해하지 않도록 B2B 레이아웃에서만 무력화한다. */
.layout-main-wrap > #container.layout-center {
    float: none;
    width: auto;
    margin: 0 20px;
    min-width: 0;
}
.layout-sidebar-right {
    width: 140px;
    flex-shrink: 0;
}

/* Sidebar blocks */
.b2b-sidebar-block {
    background: #F9F9F7;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}
.b2b-sidebar-block:last-child {
    margin-bottom: 0;
}
.b2b-sidebar-title {
    background: #f3f4f6;
    padding: 12px;
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    color: #2C2C2C;
    border-bottom: 2px solid #d1d5db;
}
.b2b-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.b2b-sidebar-list li {
    margin: 0;
    padding: 0;
}
.b2b-sidebar-item {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    color: #2C2C2C;
    text-decoration: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    box-sizing: border-box;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s, color 0.2s;
}
.b2b-sidebar-list li:last-child .b2b-sidebar-item {
    border-bottom: 0;
}
.b2b-sidebar-item:hover {
    background: #e8ebf2;
    color: #1D2B4D;
}
.b2b-sidebar-item.is-active {
    background: rgba(0, 0, 100, 0.10);
    color: #1D2B4D;
    font-weight: 700;
    border-left: 5px solid #A62121;
}
/* 선택 표시(노년층 가독성): 색상칩 항목 제외하고 우측 ✓ 표시 */
.b2b-sidebar-item.is-active:not(.b2b-color-item) {
    position: relative;
    padding-right: 34px;
}
.b2b-sidebar-item.is-active:not(.b2b-color-item)::after {
    content: "✓";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    font-size: 1.05em;
    color: #A62121;
}
/* 색상칩 항목의 별도 강조(테두리/그림자)는 현재 비활성화 */

/* 색상 필터 전용 UI: 한글/영문 2줄 + 우측 색상칩 */
.b2b-color-item {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}
.b2b-color-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.b2b-color-ko {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.1;
    color: #2C2C2C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.b2b-color-en {
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.1;
    margin-top: 2px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.b2b-color-chip {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 3px;
    border: 1px solid #cbd5e1; /* white 칩 대비 */
    box-sizing: border-box;
}
.b2b-sidebar-filter-form {
    padding: 10px 12px 12px;
}
.b2b-sidebar-select {
    width: 100%;
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #2C2C2C;
    font-size: 0.95rem;
    padding: 0 10px;
    box-sizing: border-box;
}
.b2b-sidebar-select:focus {
    outline: none;
    border-color: #1D2B4D;
    box-shadow: 0 0 0 2px rgba(29, 43, 77, 0.16);
}
.b2b-sidebar-btn {
    width: 100%;
    margin-top: 8px;
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f3f4f6;
    color: #2C2C2C;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.b2b-sidebar-btn:hover {
    background: #e8ebf2;
    border-color: #1D2B4D;
    color: #1D2B4D;
}

/* 좌측 필터 하단: 데코코리아 계좌정보 안내 배너 */
.b2b-bank-info-block {
    background: #faf7f2;
    border-color: #e5ddd2;
}
.b2b-bank-info-inner {
    padding: 14px 12px 12px;
}
.b2b-bank-heading {
    margin: 0;
    padding: 0 0 8px;
    border-bottom: 1px solid #d8cfc2;
    font-size: 0.875rem;
    font-weight: 800;
    color: #1d2b4d;
    letter-spacing: -0.005em;
    line-height: 1.25;
}
.b2b-bank-account {
    margin: 9px 0 5px;
    padding: 0;
    color: #2c2c2c;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.005em;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}
.b2b-bank-meta-line {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4b5563;
    line-height: 1.35;
    text-align: center;
}

/* 푸터 상단 전역 배너: 상품 목록 4열(중앙 848px) 기준 정렬 */
.b2b-prefooter-banners {
    margin: 0 0 20px;
}
.b2b-prefooter-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}
.b2b-prefooter-track {
    width: min(848px, calc(100% - 320px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}
.b2b-prefooter-item {
    display: block;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.b2b-prefooter-item img {
    display: block;
    width: 100%;
    height: auto;
}
.b2b-prefooter-item:hover,
.b2b-prefooter-item:focus-visible {
    border-color: #1d2b4d;
}

/* Footer — 공공·KRDS 계열: 밝은 배경, 얇은 상단선, 세로 영역 최소화 */
#ft.b2b-ft {
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    margin: 0 auto;
    text-align: left;
    min-width: 0;
}
#ft.b2b-ft #ft_wr.b2b-ft-wr {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px 12px;
    display: block;
    width: auto;
    position: relative;
}
#ft.b2b-ft #ft_wr:after {
    display: none;
}
#ft.b2b-ft .ft_cnt {
    float: none;
    width: auto;
    padding: 0;
}
.b2b-ft-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}
.b2b-ft-logo {
    flex-shrink: 0;
}
.b2b-ft-logo a {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
}
.b2b-ft-logo a:hover {
    color: #111827;
}
.b2b-ft-logo-en {
    color: #4b5563;
    font-size: 1rem;
    font-weight: 500;
    margin-left: 8px;
    vertical-align: middle;
}
.b2b-ft-links {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}
.b2b-ft-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    justify-content: flex-end;
}
.b2b-ft-links li {
    display: inline-flex;
    align-items: center;
}
.b2b-ft-links li:not(:last-child)::after {
    content: "|";
    margin: 0 10px;
    color: #d1d5db;
    font-weight: 400;
}
.b2b-ft-links a {
    color: #374151;
    font-size: 0.8125rem;
    text-decoration: none;
}
.b2b-ft-links a:hover {
    color: #1D2B4D;
    text-decoration: underline;
}
/* 사업자(좌) + 로고(우, 상단 행) / 수집금지(좌) + Technical Operations(우, 하단 행·공지와 동일 타이포) */
.b2b-ft-meta-wrap {
    margin-bottom: 8px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.b2b-ft-meta-main {
    min-width: 0;
}
.b2b-ft-company-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 20px;
    min-width: 0;
    margin-bottom: 6px;
}
.b2b-ft-company-row .b2b-ft-company {
    flex: 1 1 12rem;
    min-width: 0;
}
.b2b-ft-devcredit-mark {
    flex: 0 0 auto;
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    max-width: min(220px, 46%);
}
.b2b-ft-devcredit-mail {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
}
.b2b-ft-devcredit-mail:focus-visible {
    outline: 2px solid #1d2b4d;
    outline-offset: 2px;
}
.b2b-ft-devcredit-logo {
    display: block;
    height: 16px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: right center;
    box-sizing: border-box;
}
.b2b-ft-notice-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 16px;
    min-width: 0;
}
.b2b-ft-notice-row .b2b-ft-notice:first-child {
    flex: 1 1 12rem;
    min-width: 0;
}
.b2b-ft-notice-row .b2b-ft-devcredit-to {
    flex: 0 0 auto;
    margin: 0;
    text-align: right;
    max-width: 100%;
}
@media (max-width: 640px) {
    .b2b-ft-devcredit-mark {
        max-width: 100%;
        width: 100%;
        justify-content: flex-end;
    }
    .b2b-ft-notice-row .b2b-ft-devcredit-to {
        width: 100%;
        text-align: right;
    }
}
.b2b-ft-company .ft_info,
.b2b-ft .ft_info {
    margin: 0 0 6px;
    color: #4b5563;
    line-height: 1.5;
    font-size: 0.75rem;
}
.b2b-ft-meta-line {
    display: block;
}
.b2b-ft-meta-line + .b2b-ft-meta-line {
    margin-top: 2px;
}
.b2b-ft-sep {
    color: #d1d5db;
    font-weight: 400;
    padding: 0 2px;
}
.b2b-ft-fallback {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0 0 6px;
}
.b2b-ft-meta-main .b2b-ft-notice {
    margin: 0;letter-spacing: -0.01em;
}
.b2b-ft-notice {
    margin: 0 0 8px;
    font-size: 0.6875rem;
    line-height: 1.5;
    color: #6b7280;
    max-width: 100%;
}
/* #ft_copy: default.css 의 width:1200px 등 id 우선 규칙 무력화(상단 보더 영역이 부모보다 길어지는 현상 방지) */
#ft.b2b-ft #ft_copy.b2b-ft-copy {
    width: auto !important;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
    margin: 0;
    padding: 8px 0 0;
    font-size: 0.75rem;
    color: #9ca3af;
    border-top: 1px solid #e5e7eb;
}
.b2b-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #F9F9F7;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.b2b-top-btn:hover {
    background: #e8ebf2;
    border-color: #1D2B4D;
}

/* 로그인 메시지 비노출 (PC 메인은 회원가입/로그인 미게시) */
#hd_login_msg {
    display: none;
}
