@charset "UTF-8";

@font-face {
	font-family: "NEXON Lv2 Gothic";
	src:
		url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv2 Gothic.woff")
		format("woff");
	font-style: normal;
	font-weight: normal;
}

* {
	margin: 0px;
	padding: 0px;
	list-style: none;
	font-family: "NEXON Lv2 Gothic";
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

header {
	width: 100%;
	height: auto;
	margin: 0 auto;
	position: fixed;
	z-index: 100;
	background-color: white;
}

#headerContainer {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#headerContainer hr {
	margin-top: 7px;
	margin-bottom: 0px;
}

#fixedContainer {
	width: 1280px;
}

/* body 직접 자식 중 section/div는 flex-grow: 1로 footer 하단 고정 */
section, body > div {
	flex-grow: 1;
}

body > div {
	min-height: calc(100vh - 380px);
}

section {
	padding-top: 230px;
	width: 1280px;
	margin: 0 auto;
	min-height: calc(100vh - 380px); /* 콘텐츠 부족해도 푸터가 하단에 유지되도록 */
}

.loginSerivce {
	display: flex;
	justify-content: right;
	padding-top: 10px;
}

.loginSerivce>a {
	font-size: 12px;
	color: #afafaf;
	padding-left: 25px;
	text-decoration: none;
}

.headerMain {
	display: flex;
	height: 115px;
	justify-content: space-between;
	align-items: center;
}

/* 로고 */
.logo img {
	display: flex;
	justify-content: center;
	align-items: left;
	height: 63px;
}

/* /로고 */

/* 검색창 */
.searchBar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 407px;
	height: 40px;
	background-color: #eeeeee;
	border: none;
	border-radius: 50px;
}

.searchDetail {
	width: 380px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 3;
}

.searchDetail input {
	width: 347px;
	border: none;
	background-color: #eeeeee;
	outline: none;
	font-size: 15px;
}

.searchDetail button {
	border: none;
}
#searchForm{
	display:flex;
}
#submitBtn {

}

#submitBtn img {
	width: 18px;
	height: 18px;
	color: #afafaf;
	/* padding-top: 4px; */
}

#submitBtn>img:hover {
	cursor: pointer;
}

#resetBtn {
	display:none;
	width: 18px;
	height: 18px;
	color: #afafaf;
	margin-bottom:4px;

}

#resetBtn ion-icon {
	width: 20px;
	height: 20px;
}

.searchpage {
	display: none;
	position: absolute;
	width: 407px;
	margin-top: 50px;
	background-color: white;
	z-index: 2;
}

.searchbody {
	position: fixed;
	width: 407px;
	margin: auto;
	border: 1px solid white;
	border-radius: 20px;
	background-color: white;
	padding-top: 30px;
	border: 3px solid #20c997;
	border-radius: 20px;
	top: 60px;
}

.searchbody hr {
	border: 1px solid #eeeeee;
}

.recentSearch {
	height: auto;
	transition: max-height 5s;
	padding-bottom: 30px;
}

.allDelete {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
}

#recentHead {
	margin-left: 20px;
	font-size: 16px;
	font-weight: bold;
}

#allDeleteBtn {
	margin-right: 20px;
	font-size: 12px;
	color: #afafaf;
	font-weight: bold;
}

#allDeleteBtn:hover {
	cursor: pointer;
}

#notRecent {
	display: block;
	width: 610px;
	margin-top: 15px;
	text-align: center;
	font-size: 15px;
	color: #20c997;
	font-weight: bold;
}

#recentList {
	display: block;
	flex-wrap: wrap;
}

#recentList li {
	margin-top: 10px;
}

#recentList span {
	color: #afafaf;
	font-size: 18px;
	margin-top: 10px;
	margin-left: 20px;
}

#recentList span:hover {
	font-weight: bold;
	cursor: pointer;
	color: #20c997;
}

#recentList button {
	border: none;
	background-color: white;
}

#recentList button:hover {
	cursor: pointer;
}

#recentList ion-icon {
	font-size: 16px;
	color: #20c994;
	position: relative;
	top: 4px;
	left: 5px;
}

.ui-helper-hidden {
	display: block;
}

.ui-autocomplete {
	/* position: relative; */
	top: 15px !important;
	left: 0px !important;
}

/* .ui-widget.ui-widget-content {
  border: 3px solid #20c997;
  border-top: none;
  border-radius: "20px";
} */
.ui-menu .ui-menu-item-wrapper {
	margin-left: 15px;
	margin-bottom: 15px;
	font-size: 16px;
}

.ui-menu-item div.ui-state-hover, .ui-menu-item div.ui-state-active {
	background-color: none;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active,
	a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover
	{
	border: none;
	background: none;
	font-weight: normal;
	color: black;
}

.ui-menu .ui-state-focus, .ui-menu .ui-state-active {
	font-weight: bold;
	color: #20c997;
	margin-left: 15px;
	margin-bottom: 15px;
	margin-top: 0px;
	margin-right: 0px;
}
/* /검색창 */

/* memberIcon 아이콘(판매,내정보,찜) */
.memberIcon {
	display: flex;
	align-items: center;
}

.memberIcon>a>ion-icon {
	font-size: 27px;
	color: #20c997;
	padding-right: 4px;
}

.memberIcon .storeIcon {
	padding-right: 6px;
}

.memberIcon .myIcon {
	font-size: 26px;
}

.memberIcon>a {
	font-size: 17px;
	text-decoration: none;
	color: #313030;
	margin-left: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: 700;
	white-space: nowrap;
}

/* /memberIcon 아이콘 */

/* categoryNrank */
.categoryNrank {
	height: 35px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
	position: relative;
}

.categoryNrank p {
	font-size: 17.5px;
	color: #313030;
	position: absolute;
	right: 1188px;
	bottom: 7px;
	font-weight: bold;
}
/* /categoryNrank/ */
#printSearch {
  position: relative;
  bottom: 10px;	
  border: 3px solid #20c997;
  border-radius: 20px;
  text-align: center;
  width: 210px;
  background-color: white;
}

#printSearch li {
  font-size: 20px;
}

#printSearch button {
  border: none;
}
#rankSearch {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  border-radius: 20px;
  height: 40px;
  background-color: white;
}
#rankAllSearch {
    position: absolute;
    top: 123px;
    margin-left: 1065px;
    width: 210px;
    border: 3px solid #20c997;
    border-radius: 20px;
    background-color: white;
    display: none;
}

#rankAllSearch div{
    display: flex;
	justify-content: center;
    margin-top:15px;

}

#rankAllSearch button{
    border: none;
    position: relative;
    left: 20px;
}

#rankAllSearch p{
}

.allCycle {
  margin-top: 8px;
  margin-bottom: 8px;
  margin-left:15px;
}
/* 상단메뉴바 */
input[id="menuIcon"] {
	display: none;
}

input[id="menuIcon"]+label {
	position: relative;
	display: block;
	width: 20px;
	height: 15px;
	cursor: pointer;
}

input[id="menuIcon"]+label>span {
	position: absolute;
	display: block;
	width: 100%;
	height: 2px;
	border-radius: 30px;
	background: #000;
	transition: all 0.35s;
	z-index: 99;
}

input[id="menuIcon"]+label>span:nth-child(1) {
	top: 0px;
}

input[id="menuIcon"]+label>span:nth-child(2) {
	top: 50%;
	transform: translateY(-50%);
}

input[id="menuIcon"]+label>span:nth-child(3) {
	bottom: 0px;
}

input[id="menuIcon"]:checked+label>span:nth-child(1) {
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
}

input[id="menuIcon"]:checked+label>span:nth-child(2) {
	opacity: 0;
}

input[id="menuIcon"]:checked+label>span:nth-child(3) {
	bottom: 50%;
	transform: translateY(50%) rotate(-45deg);
}

#menuList {
	z-index: 99;
	background-color: white;
	position: absolute;
	width: 150px;
	height: 515px;
	top: 49px;
	box-sizing: border-box;
	box-shadow: 0px 0px 3px 0px #eeeeee;
	display: none;
}

#menuIcon:checked+label+#menuList {
	display: block;
}

#menuIcon:checked+label+#menuList>ul>li>a {
	color: #afafaf;
	text-decoration: none;
	font-size: 15px;
	display: block;
	padding-top: 15px;
	padding-bottom: 15px;
	padding-left: 20px;
}

#menuIcon:checked+label+#menuList>ul>li>a:hover {
	background-color: #20c997;
	color: white;
}

.sideMenu {
	background-color: white;
	z-index: 99;
	position: absolute;
	width: 150px;
	height: 515px;
	top: 49px;
	left: 150px;
	box-sizing: border-box;
	box-shadow: 0px 0px 3px 0px #eeeeee;
	font-size: 15px;
	display: none;
}

.sideMenu>ul>li>a {
	color: #afafaf;
	text-decoration: none;
	display: block;
	padding-top: 15px;
	padding-bottom: 15px;
	padding-left: 20px;
}

.sideMenu>ul>li>a:hover {
	background-color: #20c997;
	color: white;
}
/* 서브카테고리 드롭다운 */
#menuList ul li.has-sub {
    position: relative;
}

#menuList ul li.has-sub .sub-menu {
    display: none;
    position: absolute;
    left: 150px;
    top: 0;
    background-color: white;
    width: 150px;
    min-height: 50px;
    box-shadow: 0px 0px 3px 0px #eeeeee;
    z-index: 100;
    list-style: none;
    padding: 0;
    margin: 0;
}

#menuIcon:checked + label + #menuList ul li.has-sub:hover .sub-menu {
    display: block;
}

#menuList ul li.has-sub .sub-menu li a {
    color: #afafaf;
    text-decoration: none;
    font-size: 15px;
    display: block;
    padding: 15px 20px;
}

#menuList ul li.has-sub .sub-menu li a:hover {
    background-color: #20c997;
    color: white;
}
/* /상단메뉴바/ */

/* 아이템박스 */
@keyframes rpBoxIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes rpItemIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

#itemBox {
    position: fixed;
    right: calc(50% - 782px);   /* 콘텐츠 1280px 기준 오른쪽 여백에 배치 */
    top: 215px;
    width: 118px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(32,201,151,0.10), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: rpBoxIn 0.3s ease forwards;
}

@media (max-width: 1480px) {
    #itemBox { display: none !important; }
}

/* 헤더 */
#rpHeader {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 10px 8px;
    background: linear-gradient(135deg, #20c997 0%, #12b886 100%);
    border-bottom: none;
    flex-shrink: 0;
}

.rpIcon {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    flex-shrink: 0;
}

.rpLabel {
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.1px;
    flex: 1;
    min-width: 0;
}

.rpBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(255,255,255,0.28);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.35);
}

/* 스크롤 목록 */
#recently {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 368px;
    overflow-y: auto;
    padding: 6px 8px 4px;
}

#recently::-webkit-scrollbar { width: 3px; }
#recently::-webkit-scrollbar-thumb { background: #d1fae5; border-radius: 3px; }
#recently::-webkit-scrollbar-track { background: transparent; }

/* 각 상품 아이템 */
.rpItem {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    padding: 5px 0;
    border-bottom: 1px solid #f3f4f6;
    opacity: 0;
    animation: rpItemIn 0.25s ease forwards;
}

.rpItem:last-child { border-bottom: none; }
.rpItem:hover { opacity: 0.78 !important; }

/* 썸네일 */
.rpThumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 9px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.rpThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
    display: block;
}

.rpItem:hover .rpThumb img { transform: scale(1.07); }

/* 거래완료 딤 */
.rpSoldDim {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* 예약중 배지 */
.rpReservedBadge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: #f59e0b;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.2px;
}

.rpTitle {
    font-size: 10px;
    color: #374151;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.4;
    padding: 0 1px;
}

/* 빈 상태 */
.rpEmpty {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    padding: 20px 0 16px;
    margin: 0;
    line-height: 1.6;
}

.rpEmptyIcon {
    display: block;
    font-size: 24px;
    color: #d1fae5;
    margin-bottom: 4px;
}

/* 하단 지우기 버튼 */
#rpFooter {
    padding: 0 8px 8px;
    flex-shrink: 0;
}

#rpClearBtn {
    width: 100%;
    padding: 6px 0;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    background: #f0fdf9;
    color: #059669;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.1px;
    transition: background 0.15s, color 0.15s;
}

#rpClearBtn:hover {
    background: #20c997;
    color: #fff;
    border-color: #20c997;
}
/* /아이템박스/ */

/* footer */
footer {
	flex-shrink: 0;
}
/* /footer/ */