:root {
	--ibio-item-h: 40px;
	--ibio-head-h: 44px;
	--ibio-max-h: calc(var(--ibio-item-h) * 7);
	--ibio-border: #e6e8ec;
	--ibio-bg: #fff;
	--ibio-head: #111;
	--ibio-muted: #9aa3ae;
	--ibio-primary: #FE5000;
}

/* ====== PC/Tablet 메가메뉴 ====== */
#ibio-index-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	width: 100%;
	background: var(--ibio-bg);
	border: 1px solid var(--ibio-border);
	border-top: none;
	box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
	z-index: 9999;
	display: block;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease;
	height: calc(var(--ibio-head-h) + var(--ibio-max-h));
}

#ibio-index-mega[aria-hidden="false"] {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.ibio-index-mega-inner {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0;
	height: 100%;
}

.ibio-index-col {
	border-right: 1px solid var(--ibio-border);
	background: #fff;
	display: flex;
	flex-direction: column;
}

.ibio-index-col:last-child {
	border-right: none;
}

.ibio-index-col-head {
	height: var(--ibio-head-h);
	line-height: var(--ibio-head-h);
	padding: 0 14px;
	font-weight: 700;
	color: var(--ibio-head);
	border-bottom: 1px solid var(--ibio-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ibio-index-close {
	border: none;
	background: transparent;
	font-size: 20px;
	cursor: pointer;
	color: #777;
}

.ibio-index-close:hover {
	color: #000;
}

.ibio-index-col-list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: auto;
	flex: 1;
	max-height: var(--ibio-max-h);
}

.ibio-index-col-list.ibio-index-empty {
	color: var(--ibio-muted);
	padding: 0;
}

.ibio-index-col-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	height: var(--ibio-item-h);
	padding: 0 12px;
	cursor: pointer;
	border-bottom: 1px solid #f3f4f6;
}

.ibio-index-col-list li:hover {
	background: #f8f9fb;
}

.ibio-index-text {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ibio-index-arrow {
	font-size: 18px;
	color: #666;
}

.ibio-index-col-list .active {
	background: #fff2ec;
}

/* 브랜드 열 */
.ibio-index-brand-list {
	padding: 0;
	margin: 0;
	list-style: none;
	overflow: auto;
	flex: 1;
	max-height: var(--ibio-max-h);
}

.ibio-index-brand-item {
	display: flex;
	align-items: center;
	gap: 10px;
	height: var(--ibio-item-h);
	border-bottom: 1px solid #f3f4f6;
	cursor: pointer;
	padding: 0 12px;
}

.ibio-index-brand-item:hover {
	background: #f8f9fb;
}

.ibio-index-brand-badge {
	max-width: 100px;
	max-height: 40px;
	object-fit: contain;
	border: 1px solid #e9ecef;
	border-radius: 4px;
	background: #fff;
	padding: 2px 6px;
}

/* 이미지 없는 placeholder */
div.ibio-index-brand-badge {
	width: 100px;
	height: 30px;
	border: 1px dashed #cfd6dd;
	background: #f4f6f8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: #6b7684;
}

.ibio-index-brand-item.active .ibio-index-brand-badge {
	border-color: var(--ibio-primary);
	background: #fff7f3;
	color: #222;
}

.ibio-index-disabled {
	filter: grayscale(1);
	opacity: .45;
	pointer-events: none;
}

/* ====== 모바일 오버레이 & 패널 애니메이션 ====== */
#ibio-index-m-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	display: none;
	z-index: 10000;
}

#ibio-index-m-overlay[aria-hidden="false"] {
	display: block;
}

.ibio-index-lock {
	overflow: hidden;
	position: fixed;
	width: 100%;
}

.ibio-index-m-panel {
	position: absolute;
	inset: 0;
	background: #fff;
	overflow: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	transform: translateX(-100%);
	opacity: 0;
}

.ibio-index-m-panel[data-state="showing"] {
	animation: ibioSlideIn .25s ease both;
}

.ibio-index-m-panel[data-state="hiding"] {
	animation: ibioSlideOut .25s ease both;
}

.ibio-index-m-panel[data-state="visible"] {
	transform: none;
	opacity: 1;
}

@keyframes ibioSlideIn {
	from {
		transform: translateX(-100%);
		opacity: .6;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes ibioSlideOut {
	from {
		transform: translateX(0);
		opacity: 1;
	}

	to {
		transform: translateX(-100%);
		opacity: .6;
	}
}

/* 카드 & 상단 비주얼 */
.ibio-index-m-card {
	background: #fff;
	border-bottom: 1px solid var(--ibio-border);
}

.ibio-index-m-header-title {
	color: #fff;
	position: absolute;
	left: 16px;
	top: 15px;
	font-weight: 700;
}

.ibio-index-m-card-top {
	background: #f26a1f;
	height: 52px;
	position: sticky;
	top: 0;
	z-index: 10;
}

.ibio-index-m-close {
	position: absolute;
	right: 10px;
	top: 15px;
	border: none;
	background: transparent;
	font-size: 22px;
	color: #fff;
}

.ibio-index-m-card-mid {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
}

.ibio-index-m-avatar img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: contain;
	background: #fff;
}

.ibio-index-m-hello {
	font-size: 14px;
}

.ibio-index-m-login {
	margin-left: auto;
	display: flex;
	gap: 8px;
}

.ibio-index-m-btn {
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--ibio-border);
	background: #fff;
	border-radius: 6px;
}

.ibio-index-m-btn-primary {
	background: var(--ibio-primary);
	color: #fff;
	border-color: var(--ibio-primary);
}

.ibio-index-m-quick {
	display: flex;
	border-top: 1px solid var(--ibio-border);
}

.ibio-index-m-qitem {
	flex: 1;
	text-align: center;
	padding: 12px 6px;
	border-right: 1px solid var(--ibio-border);
}

.ibio-index-m-qitem:last-child {
	border-right: none;
}

.ibio-index-m-qnum {
	font-weight: 700;
	margin-bottom: 6px;
}

/* 카테고리(제목 제거) */
.ibio-index-m-section {
	padding: 10px 0;
}

.ibio-index-m-list {
	list-style: none;
	margin: 0;
	padding: 0 0 0px;
}

.ibio-index-m-li {
	border-top: 1px solid #f2f3f5;
}

.ibio-index-m-li:last-child {
	border-bottom: none;
}

.ibio-index-m-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	cursor: pointer;
	border-bottom: 1px solid #f2f3f5;
}

.ibio-index-m-arrow {
	color: #999;
}

/* 아코디언 컨테이너 */
.ibio-index-m-sub {
	margin: 0;
	padding: 0;
	height: 0;
	overflow: hidden;
	display: none;
}

.ibio-index-m-sub.open {
	padding-bottom: 8px;
}

.ibio-index-m-prod {
	display: block;
	padding: 8px 16px;
	border-top: 1px dashed #eee;
	color: inherit;
	text-decoration: none;
}

/* FAB & 모달 */
.ibio-index-brand-fab {
	position: fixed;
	right: 12px;
	bottom: 100px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ibio-primary);
	color: #fff;
	border: none;
	box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
	transform: scale(.94);
	opacity: .85;
	z-index: 10020;
}

.ibio-index-brand-fab:disabled {
	background: #cfd6dd;
	opacity: .65;
}

.ibio-index-brand-fab:enabled {
	transform: scale(1);
}

.ibio-index-brand-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .4);
	display: none;
	z-index: 10030;
}

.ibio-index-brand-modal[aria-hidden="false"] {
	display: block;
}

.ibio-index-brand-modal-dialog {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(92vw, 560px);
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
}

.ibio-index-brand-modal-head {
	padding: 12px 14px;
	border-bottom: 1px solid var(--ibio-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ibio-index-brand-modal-body {
	padding: 12px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	max-height: 60vh;
	overflow: auto;
}

.ibio-index-brand-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--ibio-border);
	border-radius: 10px;
	padding: 10px;
	cursor: pointer;
	background: #fff;
}

.ibio-index-brand-btn.active {
	border-color: var(--ibio-primary);
	background: #fff7f3;
}




/* ===========================
   모바일 문의하기 / 상담문의 영역
   =========================== */
.ibio-index-m-etc {
	background: #fff;
	padding: 16px;
	border-top: 1px solid #eee;
	font-family: 'Noto Sans KR', sans-serif;
}

.ibio-index-m-ask {
	padding-top: 10px;
	padding-bottom: 10px;
	margin-bottom: 10px;
}

.ibio-index-m-call {
	padding-top: 10px;
	padding-bottom: 10px;
}

/* 문의하기 영역 */
.ibio-index-m-ask-title {
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 10px;
}

.ibio-index-m-ask-desc {
	font-size: 14px;
	color: #666;
	line-height: 1.4;
	margin-bottom: 0px;
}

/* 상담문의 영역 */
.ibio-index-m-call {
	border-top: 1px solid #eee;
	padding-top: 12px;
}

.ibio-index-m-call-title {
	font-size: 17px;
	font-weight: 600;
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.ibio-index-m-call-title::before {
	content: "\f095";
	/* FontAwesome 전화 아이콘 */
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 16px;
	color: #ff6600;
	margin-right: 6px;
}

/* 전화번호 강조 */
.ibio-index-m-call-phone {
	font-size: 18px;
	font-weight: 700;
	color: #ff6600;
}

/* 운영 시간 안내 */
.ibio-index-m-call-desc {
	font-size: 12px;
	color: #999;
}

/* 숨김 상태는 이벤트 자체가 발생하지 않도록 */
#ibio-index-m-overlay[aria-hidden="true"],
#ibio-index-m-search-overlay[aria-hidden="true"],
#ibio-index-brand-modal[aria-hidden="true"],
#ibio-index-search-dropdown[aria-hidden="true"] {
	display: none !important;
	pointer-events: none !important;
}

#ibio-index-m-overlay[aria-hidden="false"],
#ibio-index-m-search-overlay[aria-hidden="false"],
#ibio-index-brand-modal[aria-hidden="false"],
#ibio-index-search-dropdown[aria-hidden="false"] {
	display: block;
	pointer-events: auto;
}

/* 바디 락(모바일 슬라이드 패널 열렸을 때) – 프로젝트에 맞춰 이미 사용 중인 값 유지 */
.ibio-index-lock {
	position: fixed;
	overflow: hidden;
	width: 100%;
}

/* ── 헤더 포지셔닝: add.css 에서 통합 관리 ──
   (기존에 여기 있던 navbar-compact / hidden-menu / header-spacer 규칙은
    add.css 의 #header.typeheader-1 블록이 높은 특이도+!important 로 최종 적용되므로
    중복·충돌 방지를 위해 제거함.  2026-05-03) */

.ibio-index-m-btn {
	display: inline-flex;
	/* flex 컨테이너 */
	align-items: center;
	/* 수직 가운데 정렬 */
	justify-content: center;
	/* 수평 가운데 정렬 (필요시) */
	height: 40px;
	/* 버튼 높이 (원하는 값으로) */
	padding: 0 16px;
	/* 좌우 여백 */
	text-decoration: none;
	/* 밑줄 제거 */
	border-radius: 4px;
	/* 둥근 모서리 */
}

.ibio-index-m-btn-primary {
	color: #fff;
}

/* 관리자/로그아웃 나란히 */
.ibio-index-m-login-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ibio-index-m-btn {
	white-space: nowrap;
}

/* ===== PC 최근검색어 드롭다운 ===== */
.ibio-index-pc-searchbox {
	position: relative;
}

.ibio-index-search-dropdown {
	position: absolute;
	top: 100%;
	margin-top: 8px;
	left: 50%;
	/* 부모 기준 가운데 */
	transform: translateX(-50%);
	/* 가운데 정렬 */
	width: 720px;
	/* 고정 너비 */
	background: #fff;
	border: 1px solid var(--ibio-border);
	border-radius: 10px;
	box-shadow: 0 14px 36px rgba(0, 0, 0, .12);
	padding: 10px 12px;
	z-index: 9000;
	display: none;
}


.ibio-index-search-dropdown[aria-hidden="false"] {
	display: block;
}

.ibio-index-search-dd-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.ibio-index-search-dd-clear {
	border: none;
	background: transparent;
	color: #999;
	font-size: 12px;
	cursor: pointer;
}

/* ✅ 리스트는 한 줄에 하나씩 (block) + 내부 스크롤 분리 */
.ibio-index-search-dd-list {
	display: block;
	/* 줄바꿈되며 한 줄에 하나 */
	max-height: 400px;
	/* PC 최대 10행(행 높이 40px 가정) */
	overflow-y: auto;
	overscroll-behavior: contain;
	/* 스크롤 체이닝 방지 (페이지 스크롤에 영향 없음) */
}

/* (칩 스타일은 과거 구조용 — 행 기반 렌더링이므로 사용되지 않아도 무방) */
.ibio-index-search-dd-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid #e8eaef;
	border-radius: 999px;
	background: #f7f8fb;
	cursor: pointer;
}

.ibio-index-search-dd-chip i {
	color: #a0a4ad;
}

/* ✅ 최근검색어 한 행: 좌(키워드+날짜) / 우(삭제 버튼) */
.ibio-index-recent-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	/* 왼쪽·오른쪽 끝 정렬 */
	height: 40px;
	padding: 0 10px;
	border-bottom: 1px solid #f1f3f5;
	font-size: 13px;
	cursor: default;
	background: #fff;
}

.ibio-index-recent-row:hover {
	background: #f8f9fa;
}

.ibio-index-recent-left {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	overflow: hidden;
}

.ibio-index-recent-keyword {
	color: #222;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	max-width: 380px;
	/* 키워드가 길면 말줄임 */
	cursor: pointer;
}

.ibio-index-recent-date {
	color: #94a3b8;
}

.ibio-index-recent-del {
	border: 1px solid #dee2e6;
	background: #fff;
	border-radius: 4px;
	height: 26px;
	padding: 0 8px;
	font-size: 12px;
	cursor: pointer;
	margin-left: 10px;
}

.ibio-index-recent-del:hover {
	background: #f1f3f5;
}


/* ===== 모바일 전체폭 검색 모달 (변경 없음) ===== */
.ibio-index-m-search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .42);
	display: none;
	z-index: 10040;
}

.ibio-index-m-search-overlay[aria-hidden="false"] {
	display: block;
}

.ibio-index-m-search-dialog {
	position: absolute;
	left: 50%;
	top: 8%;
	transform: translateX(-50%);
	width: min(640px, 92vw);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, .22);
	overflow: hidden;
}

.ibio-index-m-search-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-bottom: 1px solid var(--ibio-border);
}

.ibio-index-m-search-title {
	font-weight: 700;
}

.ibio-index-m-search-close {
	border: none;
	background: transparent;
	font-size: 22px;
	line-height: 1;
}

.ibio-index-m-search-form {
	display: flex;
	gap: 8px;
	padding: 12px;
}

.ibio-index-m-search-select {
	flex: 0 0 110px;
	height: 40px;
	border: 1px solid var(--ibio-border);
	border-radius: 8px;
	padding: 0 10px;
}

.ibio-index-m-search-input {
	flex: 1;
	height: 40px;
	border: 1px solid var(--ibio-border);
	border-radius: 8px;
	padding: 0 12px;
}

.ibio-index-m-search-btn {
	flex: 0 0 44px;
	height: 40px;
	border: none;
	border-radius: 8px;
	background: var(--ibio-primary);
	color: #fff;
}

.ibio-index-m-search-recent {
	padding: 6px 12px 14px;
}

.ibio-index-m-search-recent-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 0 10px;
}

.ibio-index-m-search-clear {
	border: none;
	background: transparent;
	color: #999;
	font-size: 12px;
	cursor: pointer;
}

/* 모바일 최근검색어 리스트: 최대 7개 표시 + 내부 스크롤 */
.ibio-index-m-search-recent-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-height: 280px;
	/* 7행(40px 가정) */
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ibio-index-m-search-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid #e8eaef;
	border-radius: 999px;
	background: #f7f8fb;
	cursor: pointer;
}

.ibio-index-m-search-chip i {
	color: #a0a4ad;
}

/* 모바일 텍스트 길이 보정 */
@media (max-width: 991.98px) {
	.ibio-index-recent-keyword {
		max-width: 220px;
	}
}

/* 빈 상태 */
.ibio-index-empty-recent {
	color: #9aa3ae;
	padding: 10px;
	font-size: 13px;
}


/* ===== 반응형 전환 규칙: 992 미만은 '모바일'로 즉시 전환 ===== */
@media (max-width:991.98px) {

	/* 모바일: header-top(환영 문구)은 이미 hidden, 빈 공간 제거 */
	.header-top { display: none; }
	/* header-middle 마진 리셋 */
	.typeheader-1 .header-middle { margin: 0; }
	/* header-bottom(PC 메뉴) 숨김 — 햄버거로 대체 */
	.header-bottom { display: none; }

	/* ── 헤더 한 줄 레이아웃: [햄버거] [로고(중앙)] [돋보기] ── */
	.header-middle .container > .row {
		display: flex !important;
		align-items: center;
		flex-wrap: nowrap;
		min-height: 48px;
		padding: 0 8px;
	}

	/* 로고: 가운데(flex:1로 남은 공간 차지) */
	.header-middle .navbar-logo {
		order: 2;
		flex: 1 1 auto !important;
		width: auto !important;
		text-align: center;
		padding: 6px 0;
	}
	.header-middle .navbar-logo .logo img {
		height: 32px;
	}

	/* 래퍼 투명화 → 햄버거/돋보기를 .row 직접 자식처럼 배치 */
	.header-middle .col-lg-7,
	.header-middle .search-header-w,
	.header-middle .ibio-index-mobile-icons {
		display: contents !important;
	}

	/* 햄버거: 왼쪽 */
	#ibio-index-hamburger {
		order: 1;
		flex: 0 0 auto;
	}

	/* 돋보기: 오른쪽 */
	#ibio-index-mobile-search {
		order: 3;
		flex: 0 0 auto;
	}

	/* 오른쪽 PC 메뉴: 모바일에서 숨김 */
	.header-middle .middle-right {
		display: none !important;
	}

	/* PC 메가메뉴/검색창 비활성화 */
	#ibio-index-mega {
		pointer-events: none !important;
		opacity: 0 !important;
		transform: translateY(8px) !important;
	}

	#sosearchpro {
		display: none;
	}

	/* 모바일 아이콘 배치: 좌(햄버거) ↔ 우(돋보기) → 이제 한 줄 안에 각각 위치 */
	.ibio-index-mobile-icons {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: auto;
		padding: 6px 4px;
	}

	.ibio-index-hamburger {
		width: 36px;
		height: 32px;
		border: none;
		background: transparent;
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
	}

	.ibio-index-hamburger span {
		display: block;
		height: 2px;
		background: #333;
		border-radius: 2px;
	}

	/* 돋보기 아이콘 스타일 */
	.ibio-index-mobile-search {
		border: none;
		background: transparent;
		width: 36px;
		height: 36px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 999px;
		transition: transform .15s ease, background-color .15s ease;
	}

	.ibio-index-mobile-search i {
		font-size: 18px;
		color: #222;
	}

	.ibio-index-mobile-search:hover {
		background-color: rgba(0, 0, 0, .06);
		transform: scale(1.03);
	}
}