/*
 * SECON 2026 Showroom CSS
 * 가독성 좋은 폰트 사용
 */

/* 폰트 임포트 - Pretendard (무료 한글 폰트) */

.showroom-container {
    max-width: 1400px;
    padding: 0 20px;
    margin: 0 auto;
}

/* 언어 전환 */
.lang-switch {
    text-align: right;
    padding: 15px 0;
    font-size: 17px;
}

#header .lang-switch a {
    color: #333;
    text-decoration: none;
    margin: 0 5px;
}

#header .lang-switch a.active {
    color: red;
    font-weight: bold;
}

/* 네비게이션 */
.showroom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 30px;
}

.showroom-title {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a,
.nav-links button.nav-favorite-toggle {
    color: #fff;
    text-decoration: none;
    margin-left: 0px;
    font-size: 15px;
    padding: 10px 25px;
    background: #9d9ca6;
    border: 1px solid #9d9ca6;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-links a i,
.nav-links button.nav-favorite-toggle i {
    font-size: 14px;
	color:#ffed4e;
}

.nav-links a:hover,
.nav-links button.nav-favorite-toggle:hover {
    background: #002244;
    border-color: #002244;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-links a.active,
.nav-links button.nav-favorite-toggle.active {
    color: #fff;
    background: #002244 ;
    border-color: #002244 ;
    font-weight: 600;
}
.nav-links .vline{margin:0px 15px;}

/* 네비게이션 검색 */
.nav-search {
    display: flex;
    align-items: center;
}

.nav-search form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-search label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.nav-search .search-input {
    flex: 1;
    min-width: 250px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.nav-search .btn-search-inline {
    padding: 10px 25px;
    background: #002244;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
}

.nav-search .btn-search-inline:hover {
    background: #001833;
}

/* 회사명 검색 영역 (배경 없음, 별도 영역) */
.search-company-name {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.search-company-name form {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.search-company-name label {
    font-weight: 600;
    min-width: 60px;
    font-size: 14px;
    color: #333;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    gap: 10px;
}

.search-input-wrapper input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.btn-search-inline {
    padding: 10px 25px;
    background: #002244;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-search-inline:hover {
    background: #001833;
}

/* 검색 필터 영역 - 1줄 4열 */
.search-area {
    background: #e9ecef;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 15px;
}

/* 바이어 검색 그리드: 2행 3열 */
.search-grid.buyer-search-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* 바이어 검색 드롭다운 확장 */
.search-grid.buyer-search-grid .search-row.buyer-row-turnover .items-dropdown .items-options {
    left: auto !important;
    right: 0 !important;
    width: calc(200% + 15px) !important;
}

.search-grid.buyer-search-grid .search-row.buyer-row-purchasing .items-dropdown .items-options {
    left: 0 !important;
    right: auto !important;
    width: calc(200% + 15px) !important;
}

.search-grid.buyer-search-grid .search-row.buyer-row-items .items-dropdown .items-options {
    left: 0 !important;
    right: auto !important;
    width: calc(200% + 15px) !important;
}

.search-grid.buyer-search-grid .search-row.buyer-row-type {
    position: relative;
}

.search-row {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.search-row label {
    font-weight: 600;
    min-width: 100px;
    font-size: 14px;
    color: #333;
}
.search-row label.accordion-checkbox-label{min-width:30px;}

.search-row select,
.search-row input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 검색 드롭다운 고정 너비 */
.search-row .items-dropdown {
    flex: 1;
    min-width: 0;
    max-width: none;
}

.search-row select {
    min-width: 150px;
    padding-right: 35px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-row .search-input-group {
    flex: 1;
    display: flex;
    gap: 10px;
}

.search-row .search-input-group input[type="text"] {
    flex: 1;
}

.btn-search {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

.btn-search:hover {
    background: #555;
}

.items-dropdown {
    position: relative;
    flex: 1;
    min-width: 0;
}

.items-selected {
    padding: 10px 15px;
    padding-right: 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    box-sizing: border-box;
}

.items-options {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 18px;
    z-index: 1000;
    width: 100%;
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    top: 100%;
    left: 0;
    margin-top: 5px;
    box-sizing: border-box;
}

.items-options.show {
    display: block;
}

/* 국가 드롭다운 - 2열 너비 (국가 + 전시품목 너비) */
.search-row:nth-child(1) .items-options {
    width: calc(200% + 15px);
}

/* 전시품목 드롭다운 - 2열 너비 (전시품목 + 업종/업태 너비), 오른쪽 정렬 */
.search-row:nth-child(2) .items-options {
    width: calc(200% + 15px);
    right: 0;
    left: auto;
}

/* 업종/업태 드롭다운 - 2열 너비 (업종/업태 + 참가목적 너비) */
.search-row:nth-child(3) .items-options {
    width: calc(200% + 15px);
}

/* 참가목적 드롭다운 - 2열 너비 (업종/업태 + 참가목적 너비), 오른쪽 정렬 */
.search-row:nth-child(4) .items-options {
    width: calc(200% + 15px);
    right: 0;
    left: auto;
}

.items-group {
    margin-bottom: 15px;
}

.items-group-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
    font-size: 15px;
    display: block;
    padding: 8px 10px;
    cursor: pointer;
    background: #f0f0f0;
    border-radius: 4px;
}

.items-group-title input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    margin-right: 8px;
    vertical-align: middle;
}

.items-group-item {
    display: block;
    padding: 5px 0;
    padding-left: 35px;
    cursor: pointer;
    width: auto;
    font-size: 13px;
    color: #555;
}

.items-group-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-right: 8px;
    vertical-align: middle;
}

/* 아코디언 스타일 (전시품목) */
.accordion-items {
    margin-bottom: 0;
    overflow: visible;
}

.accordion-group {
    margin-bottom: 10px;
}

.accordion-group:last-child {
    margin-bottom: 0;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.accordion-header:hover {
    background: #e0e0e0;
}

.accordion-header.has-selected {
    background: #002244;
    color: #fff;
}

.accordion-header.has-selected:hover {
    background: #001833;
}

.accordion-header.active {
    background: #e8e8e8;
}

.accordion-header.active.has-selected {
    background: #003366;
}

.accordion-checkbox-label {
    display: flex;
    align-items: center;
    margin-right: 5px;
    cursor: pointer;
}

.accordion-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.accordion-title {
    font-weight: 700;
    font-size: 15px;
    flex: 1;
    cursor: pointer;
}

.accordion-arrow {
    font-size: 12px;
    transition: transform 0.3s;
    cursor: pointer;
}

.accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.show {
    max-height: 1000px;
    overflow-y: auto;
    transition: max-height 0.5s ease-in;
    margin-bottom: 10px;
}

.accordion-items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 15px 15px 20px 15px;
    background: #fafafa;
    border-radius: 0 0 4px 4px;
}

.accordion-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.accordion-item:hover {
    background: #f0f0f0;
    border-color: #999 !important;
}

.accordion-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-right: 6px;
    flex-shrink: 0;
}

/* 단순 그룹 (국가, 업태, 참가목적) */
.simple-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 7px;
    margin-bottom: 0;
    overflow: visible;
}

/* 국가 - 3열 */
.simple-group-3col {
    grid-template-columns: repeat(3, 1fr);
}

/* 참가목적 - 2열 */
.simple-group-2col {
    grid-template-columns: repeat(2, 1fr);
}

/* 줄바꿈 포인트 - 기본 숨김 */
br.br-point {
    display: none;
}

/* 1300px 이하에서 줄바꿈 */
@media (max-width: 1300px) {
    br.br-point {
        display: block;
    }
}

.simple-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 6px;
    cursor: pointer;
    width: auto;
    font-size: 15px;
    color: #333;
    background: #f8f8f8;
    border-radius: 4px;
    transition: background 0.2s;
    white-space: normal;
    word-break: keep-all;
}

.simple-item:hover {
    background: #e8e8e8;
}

.simple-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 5px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* 드롭다운 하단 버튼 */
.items-buttons {
    display: flex;
    gap: 8px;
    padding-top: 15px;
    margin-top: 20px;
    border-top: 1px solid #ddd;
}

.items-buttons button {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.items-buttons button:hover {
    background: #f5f5f5;
    border-color: #999;
}

.items-buttons button.btn-apply {
    background: #002244;
    color: #fff;
    border-color: #002244;
}

.items-buttons button.btn-apply:hover {
    background: #001833;
    border-color: #001833;
}

/* 기업명 첫 글자 선택 - select multiple */
.first-char-select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    height: auto;
}

.first-char-select option {
    padding: 5px 10px;
    font-size: 14px;
    line-height: 1.5;
}

.first-char-select option:checked {
    background: #002244 !important;
    color: #fff !important;
}

.first-char-select option:hover {
    background: #f5f5f5;
}

/* 페이지당 표시 개수 선택 */
.per-page-selector {
    text-align: right;
    padding: 10px 0;
    margin: 20px 0;
}

.per-page-selector form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.per-page-selector label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.per-page-selector select {
    padding: 8px 30px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.per-page-selector select:hover {
    border-color: #999;
}

/* 회사 리스트 - 좌우 간격 줄임 */
.company-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
    margin-bottom: 40px;
}

.company-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    box-shadow: 4px 4px 13px rgba(0, 34, 68, 0.4);
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 17px rgba(0, 34, 68, 0.5);
}

/* 이미지 영역 - 여백 추가, cover 사용 */
.company-logo {
	position:relative;
    width: 100%;
    aspect-ratio: 16/9;
	border:15px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.company-logo div{position:absolute;top:10px;left:10px;width:calc(100% - 20px);height:calc(100% - 20px);background:no-repeat center center;background-size:contain;background-color:white;}
.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.company-info {
    padding: 15px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 회사명 크게, 붙여서 표시 */
.company-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    cursor: pointer;
    color: #000;
    line-height: 1.3;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-name:hover {
    color: steelblue;
}

/* 회사 정보 - 가독성 향상, 간격 조정 */
.company-details {
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.company-details .detail-row {
    display: flex;
    padding:7px 0px;
	margin-bottom: 0px;
	border-bottom:1px solid #ccc;
}


.company-details .detail-label {
	margin-right:5px;
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
}

.company-details .detail-value {
    flex: 1;
    color: #222;
	font-weight:500;
    word-break: break-word;
    overflow-wrap: break-word;
}

.company-items,
.company-purposes {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 45px;
    max-height: 45px;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
    opacity: 1;
    position: relative;
    padding-right: 25px;
}

.company-items.expanding,
.company-purposes.expanding {
    opacity: 0.7;
}

.company-items.expanded,
.company-purposes.expanded {
    -webkit-line-clamp: unset;
    max-height: 500px;
    opacity: 1;
}

/* 토글 가능한 detail-row */
.detail-row-expandable {
    position: relative;
}

.detail-value-wrapper {
    flex: 1;
    position: relative;
}

.toggle-detail-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 30%, rgba(255,255,255,1) 100%);
    border: none;
    color: #002244;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-size: 18px;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.2s ease;
    transform: rotate(0deg);
    z-index: 2;
}

.toggle-detail-btn:hover {
    color: #ff6600;
}

.toggle-detail-btn.expanded {
    transform: rotate(180deg);
}

/* 버튼 영역 - 한 줄에 배치 */
.company-actions {
    padding: 12px 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.company-card .company-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 53px;
	line-height:1.4;
    padding: 0px 5px;
	letter-spacing:-0.05em;
}

.btn-meeting,
.btn-more {
    border: 1px solid #002244 !important;
    background: #002244 !important;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-meeting:hover,
.btn-more:hover {
    background: #004488 !important;
    border-color: #004488 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 34, 68, 0.3);
}

/* 회사 리스트 버튼 비활성화 상태 */
.company-actions .btn-meeting.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.company-actions .btn-meeting.disabled:hover {
    background: #002244 !important;
    border-color: #002244 !important;
    transform: none;
    box-shadow: none;
}

/* 페이징 - 그누보드 스타일 (간격 줄임, 사이즈 축소) */

/* 목록으로 버튼 */
.btn-list {
    display: inline-block;
    padding: 10px 30px;
    background: #9d9ca6;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.btn-list:hover {
   background: #002244;
	color:white;
}

/* 브레드크럼 네비게이션 */
.breadcrumb {
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 10px;
    color: #999;
}

/* 회사 상세 페이지 - 새 디자인 */
/* 상단 헤더 Grid */
.company-header-grid {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 40px;
    margin-bottom: 50px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.company-header-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.company-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f0f0;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    width: fit-content;
}

/* 기본: 850px 이상에서 사이드 배지 보임, 상단 배지 숨김 */
.company-badge-top {
    display: none;
}

.company-badge-side {
    display: inline-block;
}

.company-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.3;
}

.company-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.btn-contact,
.btn-meeting {
    display: block;
    padding: 14px 5px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #333;
    text-align: center;
    text-decoration: none;
}

.btn-contact {
    background: #fff;
    color: #333;
}

.btn-contact:hover {
    background: #f5f5f5;
    color: #333;
}

.btn-meeting {
    background: #7c5ce0;
    color: #fff;
    border-color: #7c5ce0;
}

.btn-meeting:hover {
    background: #6a4dc7;
    border-color: #6a4dc7;
    color: #fff;
}

/* 버튼 비활성화 상태 */
.btn-contact.disabled,
.btn-meeting.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-contact.disabled:hover,
.btn-meeting.disabled:hover {
    background: #fff;
    color: #333;
}

.btn-meeting.disabled:hover {
    background: #7c5ce0;
    border-color: #7c5ce0;
    color: #fff;
}

.company-extra-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 기본: 850px 이상에서 사이드 버튼 보임, 하단 버튼 숨김 */
.company-extra-buttons-side {
    display: flex;
}

.company-extra-buttons-bottom {
    display: none;
}

.btn-extra {
    padding: 14px 20px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-extra:hover {
    background: #002244;
    color: #fff;
    border-color: #002244;
}

.btn-catalog {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-catalog svg {
    flex-shrink: 0;
}

.company-header-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.company-header-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.company-header-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 중단: 회사 상세 정보 섹션 */
.company-description-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

/* 하단: 제품 리스트 섹션 */
.company-products-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 탭 메뉴 */
.company-tabs {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 0 0px;
    border-radius: 8px 8px 0 0;
    box-shadow: none;
    margin-bottom: 0;
    border-bottom: 2px solid #e0e0e0;
}

.product-view-right .company-tabs {
    box-shadow: none;
}

.tab-item {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    color: #9d9ca6;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-item:hover {
    color: #002244;
}

.tab-item.active {
    color: #002244;
    border-bottom-color: #002244;
}

/* 다운로드 탭 */
a.tab-item.tab-download {
    text-decoration: none;
    color: #002244;
    background: transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

a.tab-item.tab-download:hover {
    background: #f0f0f0;
    color: #002244;
}

a.tab-item.tab-download.active {
    background: #fff;
    color: #002244;
    border-bottom: 2px solid #002244;
}

a.tab-item.tab-download svg {
    flex-shrink: 0;
    margin-right: 8px;
}

/* 탭 컨텐츠 */
.tab-content-wrapper {
    background: #fff;
    padding: 20px 0;
    border-radius: 0 0 8px 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-view-right .tab-content-wrapper {
    box-shadow: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 모바일 섹션 타이틀 - 기본 숨김 */
.mobile-section-title {
    display: none;
}

/* 회사 상세 레이아웃 (기존 - 제품 상세 페이지용) */
.company-detail {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
}

.product-detail {
    display: block;
    margin-bottom: 30px;
}

.company-basic {
    width: 350px;
    flex-shrink: 0;
}

.product-basic {
    width: 100%;
}

/* 제품 상세 페이지 레이아웃 (좌우 분리) */
.product-view-layout {
    display: flex;
    gap: 80px;
    margin-bottom: 30px;
}

.product-view-left {
    width: 350px;
    flex-shrink: 0;
}

.product-view-right {
    flex: 1;
    min-width: 0;
    border-right: none;
    padding: 0;
}

.company-content,
.product-content {
    flex: 1;
}

/* 기본 정보 */
.basic-logo {
    width: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    padding: 15px;
    min-height: 180px;
}

.basic-logo img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.basic-info {
    margin-bottom: 20px;
}

.basic-info-row {
    display: flex;
    padding: 7px 0;
    border-bottom: 1px solid #e0e0e0;
    gap: 10px;
}

.basic-info-label {
    font-weight: 400;
    color: #111;
    font-size: 14px;
    min-width: 85px;
    flex-shrink: 0;
}

.basic-info-value {
    color: #111;
	font-weight:500;
    line-height: 1.6;
    font-size: 14px;
    flex: 1;
}
.product-detail .basic-info-value.cp_name{position:relative;padding-right:40px;}
.product-detail .basic-info-value.cp_name button{position:absolute;top:-5px;right:0px;}
.product-detail .basic-info-value.cp_name button.favorite-btn svg{width:30px;height:30px;}
.basic-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

/* 제품 상세보기 페이지의 버튼 레이아웃 */
.product-view-left .basic-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 버튼 행 */
.basic-buttons .button-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* 전체 너비 버튼 (카탈로그, 홈페이지) */
.basic-buttons .button-row-full .btn-action {
    width: 100%;
}

/* 반 너비 버튼 (1:1 채팅, 현장 미팅 예약) */
.basic-buttons .button-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-action {
    display: inline-flex;
	align-items:center;
	justify-content:center;
    padding: 0px 10px;
	height:52px;
	line-height:1.4;
    text-align: center;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

.btn-action:hover {
    background: #002244;
	color:white;
}

.btn-action.primary {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.btn-action.primary:hover {
    background: #5a6268;
}

.btn-action.btn-primary-reverse {
    background: #002244;
    color: white;
    border-color: #002244;
}

.btn-action.btn-primary-reverse:hover {
    background: #004488;
    color: white
    border-color: #004488;
}

.btn-action.disabled,
.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #545b62;
}

/* 탭 메뉴 */
.content-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.content-tab {
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
}

.content-tab.active {
    color: #000;
    font-weight: 600;
    border-bottom-color: #333;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.company-description,
.product-description {
	padding:0px 20px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    font-size: 16px;
    word-break: keep-all;
    text-align: justify;
}

/* 유튜브 */
.youtube-wrapper {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.youtube-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 15px;
    background: #000;
    border-radius: 8px;
}

.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.youtube-link {
    display: inline-block;
    padding: 12px 24px;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
}

.youtube-link:hover {
    background: #cc0000;
}

/* 회사소개서 파일 섹션 */
.company-file-section {
    margin-top: 30px;
	margin-bottom:30px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.company-file-section .section-title {
    font-size: 18px;
    font-weight: 700;
    color: #002244;
    margin-bottom: 15px;
}

.file-download-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.file-download-item .file-icon {
    font-size: 36px;
    color: #dc3545;
    flex-shrink: 0;
}

.file-download-item .file-info {
    flex: 1;
}

.file-download-item .file-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.file-download-item .file-meta {
    font-size: 13px;
    color: #666;
}

.file-download-item .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #002244;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
    flex-shrink: 0;
}

.file-download-item .btn-download:hover {
    background: #003366;
}

.file-download-item .btn-download i {
    font-size: 16px;
}

/* 관계사 */
.relatives-section {
    margin-top: 30px;
}

.relative-group {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.relative-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.relative-item {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.relative-item:last-child {
    border-bottom: none;
}

/* 제품 그리드 - 기본 (3열) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 15px;
}

/* 회사 상세 페이지의 제품 리스트 - 4열 */
.company-products-section .products-grid,
#tab-products .products-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* 회사 상세 페이지의 제품 카드 - 테두리 없음, 여백 축소 */
.products-grid .product-card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.2s;
    background: transparent;
}

.products-grid .product-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

.products-grid .product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border: 15px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.products-grid .product-image div {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    background: no-repeat center center;
    background-size: contain;
    background-color: white;
}

.products-grid .product-info {
    padding: 10px 0;
}

.products-grid .product-name-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.products-grid .product-name {
    font-size: 17px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    flex: 1;
}

.products-grid .product-name:hover {
    color: steelblue;
}

.products-grid .product-actions {
    padding: 8px 0;
    border-top: none;
}

.products-grid .product-actions .btn-action {
    padding: 10px 15px;
    font-size: 13px;
}

.products-grid .product-actions .btn-wishlist {
    background: #6c9bd2;
    color: #fff;
    border-color: #6c9bd2;
}

.products-grid .product-actions .btn-wishlist:hover {
    background: #5a88c0;
    border-color: #5a88c0;
}


.products-grid .product-actions .btn-more:hover {
    background: #3a6e99;
    border-color: #3a6e99;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
    margin-bottom: 40px;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card.current {
    border: none;
    background: transparent;
}

.product-card.current .product-image {
    border-color: steelblue;
}

.product-card.current .product-info {
    background: #f0f8ff;
    border-radius: 4px;
	padding-left:10px;padding-right:10px;
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border: 15px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.product-image div {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    background: no-repeat center center;
    background-size: contain;
    background-color: white;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.product-info {
    padding: 15px 15px;
}

.product-name-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #000;
    line-height: 1.3;
    flex: 1;
}

.product-name:hover {
    color: steelblue;
}

.product-details {
    font-size: 14px;
    line-height: 1.6;
}

.product-details .detail-row {
    display: flex;
    padding: 7px 0px;
    margin-bottom: 0px;
    border-bottom: 1px solid #ccc;
}

.product-details .detail-label {
    margin-right: 5px;
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
}

.product-details .detail-value {
    flex: 1;
    color: #222;
    font-weight: 500;
    word-break: keep-all;
}

.product-actions {
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-actions .btn-action {
    padding: 12px 15px;
    font-size: 13px;
}

.product-actions .btn-wishlist,
.product-actions .btn-more {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.product-actions .btn-wishlist:hover {
    background: #f0f0f0;
    border-color: #999;
}


.product-actions .btn-more:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.product-image-section {
    text-align: center;
    margin-bottom: 30px;
}

.product-image-section img {
    max-width: 100%;
    max-height: 300px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.other-products-title {
    font-size: 20px;
    font-weight: 600;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

@media (max-width: 1280px) {
	.company-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
	#tab-products .products-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
/* 반응형 */
@media (max-width: 1024px) {
    
    /* 회사 헤더 그리드 - 타블렛 */
    .company-header-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .company-title {
        font-size: 28px;
    }

    .company-description-section,
    .company-products-section {
        padding: 30px;
    }
}

@media (max-width: 1200px) {
    .search-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* 2열 구조에서는 드롭다운을 전체 너비로 */
    .items-options {
        width: 100%;
        left: 0;
        right: auto;
    }
	
	body.buyer_list .search-grid.buyer-search-grid {grid-template-columns: repeat(2, 1fr);}
	body.buyer_list .search-grid.buyer-search-grid .search-row.buyer-row-turnover .items-dropdown .items-options{left:0 !important;
    right: auto !important;}
	body .search-grid.buyer-search-grid .search-row.buyer-row-purchasing .items-dropdown .items-options {
		left: auto !important;
		right: 0 !important;
	}
}

@media (max-width: 991px) {
	.company-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}	

@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
	body.buyer_list .search-grid.buyer-search-grid{
		grid-template-columns: 1fr;
        gap: 10px;
	}
    .search-row {
		display:block;
    }

    .search-row label {
        margin-bottom: 5px;
    }

    .search-row select,
    .search-row input[type="text"],
    .search-row .search-input-group {
        width: 100%;
    }

    /* 모바일에서는 드롭다운 너비를 전체로 */
    .items-selected {
        width: 100%;
    }

    .items-options {
        width: 100%;
        left: 0;
        right: auto;
    }
	
	.search-row:nth-child(1) .items-options,
	.search-row:nth-child(2) .items-options, 
	.search-row:nth-child(3) .items-options,
	.search-row:nth-child(4) .items-options{width:100%;}
	#tab-products .products-grid {
		grid-template-columns: repeat(2, 1fr);
	}

    .showroom-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
	body.buyer_list .showroom-nav{flex-direction:row;}

    .nav-links a,
    .nav-links button.nav-favorite-toggle {
        margin-left: 0;
        font-size: 14px;
        padding: 8px 15px;
    }

    .nav-links .vline {
        margin: 0px 8px;
    }

    .nav-search {
        width: 100%;
    }
	body.buyer_list .nav-search{width:auto;}

    .nav-search form {
        width: 100%;
    }

    .nav-search .search-input {
        flex: 1;
        width: auto;
    }

    /* 회사 헤더 그리드 - 모바일 */
    .company-header-grid {
        padding: 20px;
    }

    .company-title {
        font-size: 24px;
    }

    .company-action-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .company-description-section,
    .company-products-section {
        padding: 20px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* 탭 - 모바일 */
    .company-tabs {
        padding: 0 20px;
        gap: 20px;
    }

    .tab-item {
        font-size: 16px;
        padding: 12px 15px;
    }

    .tab-content-wrapper {
        padding: 20px 0;
    }

    .company-tabs {
        padding: 0 30px;
        gap: 30px;
    }

    .company-detail,
    .product-detail {
        flex-direction: column;
    }

    .company-basic,
    .product-basic {
        width: 100%;
    }

    /* 제품 상세 페이지 레이아웃 - 모바일 */
    .product-view-layout {
        flex-direction: column;
        gap: 30px;
    }

    .product-view-left {
        width: 100%;
    }

    /* 모바일에서는 버튼 2개도 세로로 */
    .basic-buttons .button-row-half {
        grid-template-columns: 1fr;
    }

    .content-tabs {
        flex-direction: column;
        gap: 0;
    }

    .content-tab {
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
    }

    .content-tab.active {
        border-bottom-color: #e0e0e0;
        border-left-color: #333;
    }
	
	body.comp_view .products-grid .product-actions .btn-more{padding:5px 10px;height:45px;}
	.youtube-wrapper {
		margin: 10px 0 30px 0px;
		padding: 0px;
		background: white;
		border-radius: 0px;
	}
	.youtube-video{border-radius: 0px;}
}

@media (max-width: 550px) {
    .company-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }
	
	body.buyer_list .showroom-nav {
        flex-direction: column;
    }
	body.buyer_list .nav-search{margin-left:auto;}
}	
@media (max-width: 480px) {


    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* 회사 헤더 - 아주 작은 화면 */
    .company-header-grid {
        padding: 15px;
        gap: 20px;
    }

    .company-title {
        font-size: 20px;
    }

    .company-header-image {
        padding: 20px;
    }

    .company-description-section,
    .company-products-section {
        padding: 15px;
    }

    /* 탭 - 아주 작은 화면 */
    .company-tabs {
        padding: 0 20px;
        gap: 20px;
    }

    .tab-item {
        font-size: 14px;
        padding: 10px 10px;
    }

    .tab-content-wrapper {
        padding: 15px 0;
    }
}

/* 즐겨찾기 버튼 */
.company-name-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.favorite-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #d0d0d0;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
	margin-left:auto;
}

.favorite-btn:hover {
    transform: scale(1.1);
    color: #b8b8b8;
}

.favorite-btn svg {
    width: 35px;
    height: 35px;
}

.favorite-btn path {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.5;
}

/* 즐겨찾기 활성화 상태 - 노란색 */
.favorite-btn.active {
    color: #ffd700;
}

.favorite-btn.active:hover {
    color: #ffed4e;
}

/* 버튼 비활성화 상태 */
.favorite-btn:disabled,
.favorite-btn.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.favorite-btn:disabled:hover,
.favorite-btn.disabled:hover {
    transform: none;
}

/* 제품 즐겨찾기 버튼 - 작은 사이즈 */
.favorite-product-btn svg {
    width: 24px;
    height: 24px;
}

/* 이미지 위에 표시되는 즐겨찾기 버튼 */
.favorite-on-image {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: none;
    border-radius: 0;
    padding: 0;
    transition: all 0.2s;
}

.favorite-on-image:hover {
    transform: scale(1.15);
}

.favorite-on-image svg {
    width: 32px;
    height: 32px;
}

/* 제품 상세보기 탭 - 제품 리스트 영역 */
.product-detail-area {
    padding: 0 0 30px 0;
}

.product-detail-content {
    display: none;
    text-align: left;
}

.product-detail-content.active {
    display: block;
}

.product-image-large {
    max-width: 600px;
    margin: 0 auto 30px auto;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
}

.product-image-large img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #002244;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* 제품 상세 페이지의 제품명 wrapper */
.product-detail-area .product-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

/* 제품명 옆 즐겨찾기 버튼 - 크게 */
.favorite-title-btn {
    flex-shrink: 0;
    padding: 0;
    background: none;
    border: none;
}

.favorite-title-btn svg {
    width: 32px;
    height: 32px;
}

.product-detail-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    padding: 0;
    text-align: left;
    max-width: 100%;
    margin: 0;
}

/* 제품 리스트 섹션 */
.product-list-section {
    padding: 40px 0 20px;
}

.product-list-section .section-title {
    font-size: 18px;
    font-weight: 600;
    color: #002244;
    margin: 0 0 25px 0;
    text-align: left;
}

.product-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 15px;
}

.product-list-item {
    background: #fff;
    border: none;
    border-radius: 0;
    overflow: visible;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-list-item:hover .product-list-image {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-list-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #f5f5f5;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.product-list-item.current .product-list-image {
    border: 8px solid #002244;
}

.product-list-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-list-info {
    padding: 0;
}

.product-list-name {
    padding: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #002244;
    text-align: left;
    min-height: auto;
    display: block;
}

.product-list-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: steelblue;
    color: white;
    border: 1px solid steelblue;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-list-more:hover {
    background:  #002244;
    color: white;
    border-color:  #002244;
}

/* 반응형 - 제품 상세보기 */
@media (max-width: 1024px) {
    .product-list-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .product-detail-title {
        font-size: 24px;
    }

    .product-image-large {
        max-width: 500px;
        margin: 0 0 20px 0;
    }
}

@media (max-width: 768px) {
    .product-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-detail-area {
        padding: 0 0 20px 0;
    }

    .product-detail-title {
        font-size: 22px;
    }

    .favorite-title-btn svg {
        width: 28px;
        height: 28px;
    }

    .product-detail-description {
        font-size: 15px;
    }

    .product-image-large {
        max-width: 400px;
        margin: 0 0 20px 0;
    }

    .product-list-section {
        padding: 30px 0 15px;
    }

    .product-list-name {
        font-size: 14px;
        padding: 0 0 8px 0;
    }
}

@media (max-width: 480px) {
    .product-list-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-detail-title {
        font-size: 20px;
    }

    .favorite-title-btn svg {
        width: 24px;
        height: 24px;
    }

    .product-detail-description {
        font-size: 14px;
    }

    .product-image-large {
        max-width: 100%;
        margin: 0 0 15px 0;
    }

    .product-list-item.current .product-list-image {
        border: 5px solid #002244;
    }
}

/* ============================================
   바이어 리스트 테이블
   ============================================ */

/* 바이어 리스트 컨테이너 */
.buyer-list-container {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #333;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.3;
    table-layout: fixed;
}

/* 테이블 헤더 */
.buyer-list-header th {
    background: #f8f9fa;
    padding: 18px 5px;
    text-align: center;
    font-weight: 700;
    font-size: 17px;
    color: #333;
    border-bottom: 2px solid #ddd;
}

/* 테이블 바디 행 */
.buyer-list-body tr {
    border-bottom: 1px solid #ddd;
    transition: background 0.2s;
}
.buyer-list-body tr.buyer_type1 {
	background-color:floralwhite;
}
/*
.buyer-list-body tr.buyer_type1 td{
	background-color:floralwhite;
}
*/
.buyer-list-body tr.buyer_type1 .buyer-toggle-detail-btn {
	background-color: floralwhite;
}


.buyer-list-body tr:hover {
    background: #f9f9f9;
}

/* 테이블 셀 공통 */
.buyer-list-body td {
    padding: 16px 5px;
    font-size: 16px;
    color: #333;
    vertical-align: middle;
}

/* 바이어구분, 국가, 업종/업태, 상세보기 중앙정렬 */
.buyer-col-type,
.buyer-col-country,
.buyer-col-btype,
.buyer-col-turnover,
.buyer-col-purchasing,
.buyer-col-action {
    text-align: center;
}

/* 각 열 고정 너비 */
.buyer-col-type {
    width: 110px;
}

.buyer-col-company {
    width: 180px;
}

.buyer-col-country {
    width: 150px;
}

.buyer-col-btype {
    width: 180px;
    padding-right: 25px !important;
}

.buyer-col-turnover {
    width: 180px;
}

.buyer-col-purchasing {
    width: 180px;
}

/* 영문일 때 바이어 리스트 스타일 */
body.en .buyer-list-body td {
    word-break: keep-all;
}

body.en .buyer-col-turnover,
body.en .buyer-col-purchasing {
    text-align: left;
}

.buyer-col-items {
    width: auto;
    padding-right: 25px !important;
}

.buyer-col-action {
    width: 120px;
}

/* 바이어구분 뱃지 */
.buyer-type-badge {
    display: inline-block;
    padding: 6px 10px;
    background: #002244;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.buyer-type-badge.general {
    background: #fff;
    color: #002244;
    border: 2px solid #002244;
}

/* 기업명 */
.buyer-company-name {
    font-weight: 600;
    color: #002244;
    text-decoration: none;
    transition: color 0.3s;
}

.buyer-company-name:hover {
    color: #ff6600;
    text-decoration: none;
}

/* 관심품목 영역 */
.buyer-items-wrapper {
    display: block;
    max-height: calc(1.4em * 3);
    position: relative;
    line-height: 1.4;
    overflow: hidden;
}

.buyer-items-wrapper.expanded {
    max-height: none;
    overflow: visible;
}

.buyer-items-text {
    display: inline;
}

/* 3줄 넘을 때 ... 표시 */
.buyer-items-wrapper.has-more::after {
    content: '...';
    position: absolute;
    right: 20px;
    bottom: 0;
    background: #fff;
    padding-left: 5px;
}

.buyer-items-wrapper.expanded::after {
    display: none;
}

/* 초청바이어 ... 배경색 */
.buyer-list-body tr.buyer_type1 .buyer-items-wrapper.has-more::after {
    background-color: floralwhite;
}


/* 토글 버튼 - 기본 숨김, JS에서 필요시 표시 */
.buyer-toggle-detail-btn {
    display: none;
    background: #fff;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0 0 0 8px;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    vertical-align: baseline;
    transition: transform 0.3s ease, color 0.2s ease;
    position: absolute;
    right: 0;
    bottom: 0;
}

.buyer-toggle-detail-btn.show {
    display: inline-flex;
}

.buyer-toggle-detail-btn.show.expanded {
    position: static;
    display: inline-flex !important;
    margin-left: 8px;
    transform: rotate(180deg);
    background: transparent;
}

.buyer-toggle-detail-btn:hover {
    color: #002244;
}

/* 상세보기 버튼 */
.buyer-btn-detail {
    display: inline-block;
    padding: 10px 10px;
    background: transparent;
    color: #002244;
    border: 1px solid #002244;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
}

.buyer-btn-detail:hover {
    background: #002244;
    border-color: #002244;
    color: #fff;
}

/* 즐겨찾기 컬럼 */
.buyer-col-favorite {
    text-align: center;
    width: 50px;
}

/* 즐겨찾기 버튼 */
.buyer-btn-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #ddd;
    font-size: 26px;
    padding: 0;
    line-height: 1;
}

.buyer-btn-favorite:hover {
    color: #f1c40f;
    transform: scale(1.15);
}

.buyer-btn-favorite.active {
    color: #f1c40f;
}

.buyer-btn-favorite.active:hover {
    color: #e6b000;
}

/* 즐겨찾기 필터 버튼 (검색 영역) */
.buyer-row-favorite {
    display: flex;
    align-items: center;
}

.buyer-favorite-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    font-size: 15px;
    padding: 10px 16px;
    line-height: 1;
}

.buyer-favorite-filter-btn i {
    font-size: 18px;
    color: #ccc;
}

.buyer-favorite-filter-btn:hover {
    border-color: #f1c40f;
    background: #fffdf5;
}

.buyer-favorite-filter-btn:hover i {
    color: #f1c40f;
}

.buyer-favorite-filter-btn.active {
    border-color: #f1c40f;
    background: #f1c40f;
    color: #fff;
}

.buyer-favorite-filter-btn.active i {
    color: #fff;
}

/* 바이어 리스트 반응형 */
@media (max-width: 1200px) {
    .buyer-list-container {
        font-size: 15px;
    }

    .buyer-list-header th {
        font-size: 16px;
        padding: 16px 5px;
    }

}

@media (max-width: 992px) {
    .buyer-list-container {
        font-size: 14px;
    }

    .buyer-list-header th {
        font-size: 15px;
        padding: 14px 5px;
    }


    .buyer-btn-detail {
        padding: 8px 18px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    /* 모바일에서는 테이블을 카드 형태로 변경 */
    .buyer-list-container {
        border-top: none;
    }
}

/* ============================================
   바이어 상세보기 (Buyer View)
   ============================================ */

/* 바이어 헤더 */
.buyer-header-container {
    margin: 20px 0px 40px 0px;;
    padding: 0px;
}

/* 로고가 있는 경우 */
.buyer-header-with-logo {
    display: flex;
    align-items: center;
    gap: 30px;
}

.buyer-logo-box {
    width: 250px;
    flex-shrink: 0;
}

.buyer-logo-box img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.buyer-info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 로고가 없는 경우 */
.buyer-header-no-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 바이어 구분 배지 */
.buyer-type-badge.hosted {
    display: inline-block;
    padding: 8px 20px;
    background: #002244;
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.buyer-header-container .buyer-type-badge.general {
    display: inline-block;
    padding: 8px 20px;
    background: #fff;
    color: #002244;
    border: 2px solid #002244;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

/* 회사명 */
.buyer-company-name {
    font-size: 23px;
    font-weight: 700;
    color: #002244;
    margin: 0;
	display:flex;align-items:center;
}
.buyer-company-name button{margin-left:20px;}

.buyer-list-body .buyer-company-name {font-size:16px;}

/* 하단 버튼 영역 */
.buyer-action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.buyer-action-buttons button {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    border: 1px solid #002244;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.buyer-action-buttons .btn-inquiry {
    background: transparent;
    color: #002244;
}

.buyer-action-buttons .btn-inquiry:hover {
    background: #002244;
    color: #fff;
}

.buyer-action-buttons .btn-meeting {
    background: #002244;
    color: #fff;
}

.buyer-action-buttons .btn-meeting:hover {
    background: #ff6600;
    border-color: #ff6600;
}

/* 기업소개 섹션 */
.buyer-introduction-section {
    margin-bottom: 40px;
}

.buyer-introduction-section .intro-item {
    margin-bottom: 30px;
}

.buyer-introduction-section .intro-item:last-child {
    margin-bottom: 0;
}

.buyer-introduction-section .intro-title {
    font-size: 18px;
    font-weight: 700;
    color: #002244;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
}

.buyer-introduction-section .intro-content {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    line-height: 1.8;
	font-size:16px;
    color: #333;
}

/* 주의사항 */
.buyer-notice {
    padding: 0;
    background: #f8f9fa;
    border-left: 4px solid #002244;
    margin-bottom: 30px;
}
.buyer-notice div{font-size:15px;}
.buyer-notice p{text-align:justify;word-break:keep-all;}

.buyer-notice .notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: transparent;
    color: #dc3545;
    font-size: 18px;
    font-weight: 700;
}

.buyer-notice .notice-header i {
    font-size: 20px;
}

.buyer-notice .notice-content {
    padding: 0px 25px 20px 25px;
}

.buyer-notice .notice-content p {
    margin: 0 0 10px 0;
    color: #002244;
    line-height: 1.5;
    font-size: 16px;
    word-break: keep-all;
    padding-left: 0.6em;
    text-indent: -0.6em;
}

.buyer-notice .notice-content p:last-child {
    margin-bottom: 0;
}

/* 하단 네비게이션 */
.buyer-bottom-nav {
    text-align: left;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #002244;
    border-color: #002244;
    color: #fff;
}

@media (max-width: 1120px) {
	.company-header-grid {
		grid-template-columns: 1fr 480px;
		gap: 30px;
	}	
}
@media (max-width: 1080px) {
	.nav-search .search-input{min-width:210px;}
	body.comp_list .nav-links .vline{margin:0px 5px;}
}

@media (max-width: 991px) {
	.company-header-grid {
		grid-template-columns: 1fr 400px;
	}
	
	.showroom-container{padding:0px;}
	body.comp_list .nav-links a, .nav-links button.nav-favorite-toggle{padding:10px 10px;}
	.nav-links{display:block;}
}

@media (max-width: 850px) {
	.showroom-nav{display:block; padding:0px 0px 20px 0px;}
	body.buyer_list .showroom-nav{display:flex;}
	body.comp_list .showroom-nav{display:block; padding:0px 0px 20px 0px;}
	.showroom-container{padding:0px;}
	body.comp_list .nav-links a, 
	body.comp_list .nav-links button.nav-favorite-toggle{padding:10px 10px;}
	body.comp_list .nav-links{margin-bottom:20px;display:flex;align-items:center;justify-content:center;}
	.nav-search{justify-content:flex-end;}
	body.comp_list .nav-links .vline{margin:0px 10px;}
	body.comp_list .nav-links a, 
	body.comp_list .nav-links button.nav-favorite-toggle{padding:10px 20px;}
	
	.company-header-grid{display:block;padding-top:0px;}
	.company-header-image{padding:10px 15px;max-width:400px;margin:0px auto 30px auto;aspect-ratio:1 / 0.8}

	/* 850px 이하에서 상단 배지 보임, 사이드 배지 숨김 */
	.company-badge-top{display:inline-block;margin-bottom:10px;}
	.company-badge-side{display:none;}

	/* 850px 이하에서 사이드 버튼 숨김, 하단 버튼 보임 */
	.company-extra-buttons-side{display:none;}
	.company-extra-buttons-bottom{display:flex;margin:20px 0px 30px 0px;}

	/* 850px 이하에서 탭 숨김, 모든 컨텐츠 바로 보임 */
	.company-tabs{display:none;}
	.tab-content{display:block !important;}

	/* 850px 이하에서 섹션 타이틀 보임 */
	.mobile-section-title{
		display:block;
		font-size:20px;
		font-weight:700;
		color:#002244;
		padding:0px 0 10px 0;
		margin:0;
		border-bottom:2px solid #002244;
		margin-bottom:30px;
	}
	.company-header-grid{
		margin-bottom:0px; padding:10px 0px 10px 0px; border:0px; box-shadow:initial;
	}
}

/* 반응형 */
@media (max-width: 768px) {

    .buyer-header-with-logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .buyer-logo-box {
        width: 100%;
        max-width: 250px;
    }

    .buyer-action-buttons {
        flex-direction: column;
    }

    .buyer-action-buttons button {
        width: 100%;
    }

    .buyer-company-name {
        font-size: 22px;
    }
	
	.nav-search .btn-search-inline{padding:10px 15px;}
	.nav-search .search-input{min-width: 150px}
	.buyer-notice .notice-header{padding-left:10px;padding-right:10px;}
	.buyer-notice .notice-content{padding-left:10px;padding-right:10px;]
	
}
@media (max-width: 500px) {
	body.comp_list .nav-links .vline{margin:0px 5px;}
	body.comp_list .nav-links a, 
	body.comp_list .nav-links button.nav-favorite-toggle{padding:10px 10px;font-size:14px;letter-spacing:-0.05em;}
	.buyer-notice p{text-align:left;}
}


@media (max-width: 390px) {
	body.comp_list  .nav-links .vline{margin:0px 3px;}
	body.comp_list  .nav-links a, 
	body.comp_list  .nav-links button.nav-favorite-toggle{padding:10px 5px;font-size:13px;}
}
