body {
	margin: 0;
	background-color: white;
	font-size: 1rem;
	font-family: "Malgun Gothic", sans-serif;
}

/* 메인 콘텐츠 */
.main-content {
	margin-left: 210px;
	padding-top: 90px;
	padding-right: 1rem;
}

/* 사이드바 */
.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 200px;
	height: 100vh;
	background-color: white;
	padding-top: 0px;
	font-size: 0.8rem;
	padding-bottom: 1rem;
	overflow-y: auto;
	z-index: 100;
}

.sidebar .menu-item {
	padding: 12px 20px;
	cursor: pointer;
	border-bottom: 1px solid #ddd;
}

.sidebar .menu-item i {
	margin-right: 6px;
}

.sidebar .menu-item.is-active {
	background-color: #3273dc;
	color: white;
}

.menu-group {
	margin-bottom: 1rem;
}


/* 상단 고정 패널 */
.top-panel {
	position: fixed;
	top: 0;
	left: 210px;
	right: 0;
	width:970px;
	height: 70px;
	background: #3273dc;
	color: white;
	display: flex;
	align-items: center;
	padding: 1rem;
	z-index: 90;
	box-shadow: 0 2px 4px rgba(0,0,0.2,0.2);
}

#pc-iframe {
	float:left;
	width:480px;
}

#pc-notice {
	float:left;
	min-width:450px; 
	min-height:30px;
	margin-left:30px;
	font-size:0.8rem;
	color:#e0e0e0;"
}

/* 모바일 햄버거 */
.hamburger {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	height: 70px;
	width: 100%;
	background-color: #f5f5f5;
	color: #363636;
	z-index: 200;
	display: flex;
	align-items: center;
	padding: 0 1rem;
}

#mobile-menu {
	display: none;
	position: fixed;
	top: 110px;
	left: 0;
	width: 100%;
	background-color: #f8f9fa;
	z-index: 150;
	padding: 10px;
	box-sizing: border-box;
	max-height: 60vh;
	overflow-y: auto;
	scroll-behavior: smooth;
}

#mobile-menu::-webkit-scrollbar {
	width: 6px;
}

#mobile-menu::-webkit-scrollbar-thumb {
	background-color: #3273dc;
	border-radius: 3px;
}

#mobile-menu .menu-item {
	background: #fff;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 8px;
	font-size: 1rem;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	display: flex;
	align-items: center;
	color: #333;
	transition: all 0.2s ease-in-out;
}

#mobile-menu .menu-item:hover {
	background-color: #3273dc;
	color: white;
	box-shadow: 0 4px 12px rgba(0, 209, 178, 0.2);
}

#mobile-menu .menu-item i {
	margin-right: 10px;
	font-size: 1rem;
}

.mobile-menu-item {
	padding: 10px 16px;
	border-bottom: 1px solid #eee;
	background-color: white;
	color: #333;
	font-size: 0.9rem;
	transition: background-color 0.3s, color 0.3s;
}

.mobile-menu-item:hover {
	background-color: #f0f8ff;
	color: #00a8b2;
}

.mobile-menu-item.is-active {
	background-color: #3273dc;
	color: white;
	font-weight: bold;
	border-left: 4px solid #007b9e;
}


.menu-group {
	margin-bottom: 20px;
}

.group-title {
  position: relative;
  font-weight: 600;
  font-size: 0.85rem;
  color: #333;
  padding: 8px 16px 8px 20px;
  margin: 15px 0 5px 0;
  background-color: #f1f1f1;
  border-radius: 4px;
}

.group-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background-color: #3273dc;
  border-radius: 2px;
}

/* 모바일 상단바 */
.mobile-topbar {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: #3273dc;
	color: white;
	z-index: 200;
	padding: 10px;
	box-sizing: border-box;
}

.mobile-topbar-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mobile-notice {
	font-size: 0.6rem;
	margin-top: 5px;
	padding-left: 0; /*2.5rem;  햄버거 아이콘 기준 정렬 */
	color:#e0e0e0;
}

/* 모바일에서만 보이도록 */
@media screen and (max-width: 768px) {
	.mobile-topbar {
		display: block;
	}

	.sidebar,
	.top-panel {
		display: none !important;
	}

	.main-content {
		padding-top: 100px; /* 상단바 높이 고려 */
		margin-left: 0;
	}
}

/* 카드 영역 */
.card-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: left;
	gap: 10px;
	max-width: calc(480px * 2 + 10px); /* 850px */
	margin: 0 0;
}

.custom-card {
	display: flex;
	width: 480px;
	min-height: 180px; /* 이미지 높이와 동일하거나 더 큼 */
	background: white;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.image-box {
	width: 180px;
	height: 180px;
	display: flex;
	justify-content: center; /* 수평 중앙 */
	align-items: center;     /* 수직 중앙 */
	background-color: white;
	overflow: hidden;
}

.image-box img {
	width: 80%;
	height: 80%;
	object-fit: contain;
}

.text-box {
	display: flex;
	flex-direction: column;
	width: 300px;
	padding: 10px;
	flex-grow: 1;
}

.text-box button {
	margin-top: auto;
}

.info-content {
	flex: 1 1 auto; /* 가능한 만큼 확장되며 줄어들 수 있음 */
}

.button-wrapper {
	/* 카드 하단 고정 */
	margin-top: auto;
	padding-top: 10px;
	display: flex;
	justify-content: flex-end;
}

.badge {
	background-color: #ff3860;
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.8rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	margin-top: 5px;
	width: fit-content;
}

.button:hover {
	background-color: #3273dc !important;
	color: white !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 반응형 처리 */
@media screen and (max-width: 768px) {
	.sidebar,
	.top-panel {
		display: none !important;
	}

	.hamburger {
		display: flex !important;
	}

	.main-content {
		margin-left: 0;
		padding-top: 130px;
	}

	.card-wrapper {
		flex-direction: column;
		align-items: center;
	}

	.custom-card {
		width: 95%;
	}
}

@media screen and (min-width: 769px) {
	.hamburger,
	#mobile-menu {
		display: none !important;
	}
}

@media screen and (min-width: 1025px) {
  .custom-card {
    width: calc((100% - 10px) / 2); /* 2개 */
  }
}

@media screen and (max-width: 1024px) {
  .custom-card {
    width: 100%; /* 1개 */
  }
}

.group-icon {
	color: tomato;
	margin-right: 6px;
}

.cp-link	{ width:100px;}
.info-title	{ font-size:1rem; line-height:22px; margin-bottom:10px}
.info-badge { width:auto; height:20px; }
.info-salePrice { font-size:1.2rem; font-weight:bold; color:red; }
.info-orgPrice	{ font-size:0.8rem; text-decoration: line-through; }
.info-expiryDate { font-size:0.8rem; }
