/*---------------------- eBook 2dep_navi -----------------------------*/ 
.bookcate-container {
	position:relative;
	background-color:#fff;
	padding:10px 0;
	box-shadow:0 2px 4px rgba(0,0,0,0.1);
	display:flex;
	align-items:center;
	overflow:hidden;
	height:50px;
}

.menu-scroll-wrapper {
	flex-grow:1;
	overflow-x:auto;
	white-space:nowrap;
	-webkit-overflow-scrolling:touch;
	scrollbar-width:none;
	-ms-overflow-style:none;
	padding-right:50px;
}

.menu-scroll-wrapper::-webkit-scrollbar {
	display: none;
}
/* Webkit 기반 브라우저 스크롤바 숨기기 */
.menu-list {
	list-style:none;
	margin:0;
	padding:0;
	display:inline-flex;
	gap:25px;
	padding:0 25px;
}

.menu-item {
	display:inline-block;
	font-size:16px;
}

.menu-link {
	text-decoration:none;
	color:#333;
	font-weight:bold;
	padding:5px 0;
	transition:color 0.3s;
}

.menu-link.active {
	color:#f81700;
}

.fixed-button {
	position:absolute;
	top:0;
	left:50%;
	margin-left: 513px;
	padding:0 15px;
	cursor:pointer;
	z-index:1;
	display:flex;
	align-items:center;
	justify-content:center;
	height:100%;
	width:50px;
	box-sizing:border-box;
}

.fixed-button::before {
	content:'';
	position:absolute;
	left:-60px;
	top:0;
	width:60px;
	height:100%;
	background:linear-gradient(to right,rgba(255,255,255,0.1),rgba(238, 240, 245, 1));
	pointer-events:none;
	/* 그라데이션이 클릭을 방해하지 않도록 */
}

.ham-icon {
	width:20px;
	height:14px;
	display:flex;
	flex-direction:column;
	justify-content:space-between;
}

.ham-icon span {
	display:block;
	width:100%;
	height:2px;
	background-color:#333;
	border-radius:1px;
}

/*---------------------- END eBook 2dep_navi -----------------------------*/ 




/* --------------------------------------위에서 내려오는 풀스크린 메뉴----------------------------------- */
.category-container {
	position: absolute; /* fixed 대신 absolute를 사용하여 부모 기준 위치 잡기 */
    top: 55px;
    left: 0px;
    width: 100%;
    height: 493px;
	overflow:auto;
    transition: max-height 0.4s ease-in-out; 
    background-color: #fff; 
    box-shadow: 0px 10px 10px rgba(0,0,0,0.1);
    z-index: 999; 
}

.category-liwrap {
	width:1100px; 
	margin:0 auto;
	display: grid;
	  /* 5개의 열 정의: 각 열은 동일한 너비(1fr)를 가집니다. */
	grid-template-columns: repeat(6, 1fr);
	/* 2개의 행 정의: 각 행은 동일한 높이(1fr)를 가집니다. 
	 (높이를 px, rem 등으로 지정할 수도 있습니다.) */
	grid-template-rows: repeat(2, 1fr);   
    padding: 30px 50px;
	box-sizing: border-box;
    line-height: 1.5; 
	}

/* 🌟 4. 스크립트 없는 핵심 로직: fixed-button에 마우스 오버 시 네비게이션 펼치기 🌟 */
/* .fixed-button에 hover가 적용될 때, 형제 요소인 .category-container 선택 
.fixed-button:hover ~ .category-container {
    max-height: 700px; 
}*/


/* 개별 카테고리 그룹 (소설, 시/에세이 + 경제경영, 자기계발) */
.licate-group {
	display: flex;
    flex-direction: column;
	width: 100%;
	padding-bottom:0px
}

/* 시/에세이와 경제경영을 묶어 하나의 열처럼 보이게 처리 */
.sub-group-container {
    display: flex;
    flex-direction: column;
    gap: 30px; /* 시/에세이와 경제경영 사이의 간격 */
}

.sub-category-group {
	margin-bottom:30px;
}
/* 카테고리 제목 스타일 */
.category-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 7px;
    /* 이미지와 유사하게 파란 계열 색상 지정 */
    color: #000; 
}



/* 카테고리 목록 스타일 (핵심: 자동 다단 레이아웃 적용) */
.category-container .category-list ul {
	display: flex;
	width: 100%;
	flex-direction: column;
    list-style-type: none; /* 리스트 앞의 점(•) 제거 */
    padding: 0;
    margin: 0;
    
    /* ------------------------------------- */
    /* 항목이 많아지면 자동으로 다음 열로 이동하도록 설정 */
    /* 공간이 허락하는 한 최소 120px 너비의 열을 자동으로 만듭니다. */
    column-width: 120px; 
    
    /* 각 열 사이에 20px의 간격을 둡니다. */
    column-gap: 20px; 
    /* ------------------------------------- */
}

.category-container .category-list li {
    font-size: 13px;
    color: #666;
	padding-left:3px;
    margin-bottom: 5px; /* 항목 사이의 간격 */
    
    /* 항목이 다음 열로 넘어갈 때 중간에 잘리지 않도록 합니다. */
    break-inside: avoid; 
	width: 100%;
}

.category-container .category-list li:first-child {
    margin-left: 0px;
}

.category-container .category-list li:hover {
    color: #28319e; /* 마우스 오버 시 색상 변화 예시 */
    cursor: pointer;
}


/* // end --------------------------------- 위에서 내려오는 풀스크린 메뉴 -------------------------------------*/		







/* -------------------------------- ebook sub header 상단 헤더 스타일 ----------------------------------------*/
.ebookk-pgheader {
	position: sticky;
    top: 0px;
    display: flex;
    justify-content: center;
    height: 60px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #fff;
    align-items: center;
    z-index: 2;
}

.ebookk-pgheader .back-button {
    display: flex;
	position:absolute;
	left:12px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    justify-content: center;
}

.ebookk-pgheader .back-button svg {
	width: 30px;
    height: 35px;
    color: #666;
    stroke-width: 1px;
}

.ebookk-pgheader .title {
	font-size: 20px;
	color: #111;
	font-weight:bold;
}


.ebookk-pgheader .ham-icon {
	position:absolute;
	right:25px;
	font-size: 20px;
	color: #111;
	font-weight:bold;
}


.area_margin {
	height:7px;
	background-color:#efefef;
	margin-bottom: 35px;
}



/* --------------------------------------  Select box style -----------------------------------*/
.select-cate {
	display:inline-block;
	/* 내용 길이에 따라 너비 자동 조절 */
	position:relative;
	font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
	font-size:16px;
	color:#333;
}

/* 실제 select 박스 스타일 */
.select-cate select {
	-webkit-appearance:none;
	-moz-appearance:none;
	appearance:none;
	padding: 0px 10px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background-color: #fff;
    background: none;
    cursor: pointer;
    outline: none;
    width: auto;
    min-width: 90px;
    white-space: nowrap;
    color: #333;
    font-size: 14px;
	
}

/* 커스텀 드롭다운 화살표 스타일 (꺾인 선 모양) */
.select-cate::after {
	content:'';
	position:absolute;
	top:40%;
	right:12px;
	transform:translateY(-50%) rotate(45deg);
	/* 화살표를 45도 회전 */
	width:7px;
	/* 화살표 선의 길이 */
	height:7px;
	/* 화살표 선의 길이 */
	border-bottom:1px solid #666;
	/* 아래쪽 선 */
	border-right:1px solid #666;
	/* 오른쪽 선 */
	pointer-events:none;
}
/*--------------------------------------  END  // Select box style -----------------------------------*/

/* 기본 별점 아이콘 (SVG) */
.star-svg {
	width: 18px;
	height: 18px;
	margin:0px -1px;
	fill:#e5e5e5;
	cursor: pointer;
}

.star-svg.half-filled {
	fill: url(#halfStarGradient);
}

.star-svg.full-filled {
	fill: #e53935;
}



.floating-buttons-container {
    position:fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f3f5fb;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    padding: 23px 17px 20px;
    box-sizing: border-box;
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* 컨테이너 내부 래퍼 (최대 너비 및 중앙 정렬) */
.floating-buttons-wrap {
    max-width:100%;
    margin: 0 auto 50px;
}

/* 소득 공제 안내 텍스트 */
.tax-deduction {
    font-size: 15px;
    color: #4f4f4f;
    text-align: center;
}

/* 버튼들을 감싸는 영역 */
.buttons {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    flex-direction: row;
	position:relative;
}

/* 모든 버튼의 공통 스타일 */
.button {
    font-size: 12px;
    width: 69px;
    border-radius: 10px;
    border: 1px solid #c9c9c9;
	color:#ddd;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    /* flex-grow: 1; */
    justify-content: space-between;
	transition: border-color 0.2s ease-out;
}

.button:hover {
    border: 1px solid #999;
	color:#000;
}

.read-button {
	border-radius:10px;
	background-color: #6a5acd;
    color: #fff;
	font-size:18px;
	width:220px;
	font-weight:600;
	transition: background-color 0.05s;
}

.read-button:hover{
	background-color: #5d48c8;
}

.read-button-txt {
	color: #fff;
}


.icon-button {
    color: #333;
}

.icon-button svg {
    color: #777;
}

.icon-button svg.favorite {
    width: 31px;
    height: 28px;
}

.icon-button svg.share {
    width: 19px;
    height: 27px;
}

.icon-button svg.reply {
    width: 23px;
    height: 28px;
}

.icon-button span {
    font-size: 12px;
}

/* '감상하기' 메인 버튼 */
.main-button {
	font-size: 13px;
    width: 100%;
    border-radius: 10px;
    color: #ddd;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s ease-out;
    background-color: #6a49db;
    color: white;
    border: none;
    flex-grow: 3;
    padding: 12px 20px;
}

.main-button:hover {
    background-color: #5a38c8;
	color:#fff;
}
.main-button-txt {
	font-size:18px;
	font-weight: bold;
}
/* 가격 정보 스타일 */
.price {
    display: flex;
    align-items: center;
    gap: 5px;	   
}

.old-price {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
	font-size: 14px;
}

@media (max-width: 390px) {
	.old-price  {
		display:none;
	}
}

.price .new-price {
    color: #ffdfa2;
	font-size: 14px;
}
/*end*/

/* Modal Overlay */
.page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Noto Sans KR', sans-serif;
  z-index: 2;
  /* 초기에는 레이어를 숨깁니다. */
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease;
}

/* 레이어가 활성화될 때 보여줍니다. */
.page-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Modal Content Box */
.modal-content {
  background-color: #fff;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  padding: 50px 40px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.page-overlay.active .modal-content {
  transform: scale(1);
}

.bookpay-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%; 
    color: #999;
}

.bookpay-close:hover {
    color: #000;
}

.bookpay-close svg {
    display: block;
    width: 40px; 
    height: 40px;
}

.bookpay-close svg path {
    stroke-width: 1; 
}

/* Header */
.modal-header .book-cover {
	width:100px;
	height:auto;
	margin:0 auto 10px;;
	border-radius:5px;
}

.modal-header .book-cover img {
	width: 100%;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.modal-body {
	display: flex;
    flex-direction: column;
    gap: 10px;
}
.modal-body .book-title-wrap{
	display: flex;
    color: #999;
    font-size: 20px;
    margin-top: 5px;
    font-weight: 500;
    line-height: 130%;
    justify-content: center;
    align-items: center;	
}
.modal-body .book-title {
	color: #111;
	font-size: 24px;
	white-space: break-spaces;
	line-height:140%;
	word-break: keep-all;
}

.noti-mssg{
	color: #666;
	font-size: 13px;
	margin-top: 10px;
    word-break: keep-all;
}

.noti-mssg-ico {
	position: relative;
    top: 2px;
    width: 14px;
    margin-right: 3px;   
}

.noti-loading{
	color: #666;
    font-size: 11px;
    margin-top: 10px;
    word-break: keep-all;
    text-align: center;
    line-height: 1.5;
}

.price-amount {
  margin-top: 25px;
  font-size: 18px;
  color: #333;
  margin: 0;
}
.price-amount .amount {
  font-size: 24px;
  color: #ff3333;
  font-weight: 700;
}

/* Payment Options */
.payment_options {
	display:grid;
	grid-template-columns:repeat(2,1fr);
	gap:10px;
	margin:15px 0px 0px;
}

.py_option {
	background:#f8f9f9;
	padding:10px 3px;
	border-radius:10px;
	text-align:center;
	font-size:14px;
	cursor:pointer;
	border:1px solid #ddd;
}

.py_option.selected {
	border-color:#ff4748;
	background:#fff;
	color:#ff4748;
	font-weight: bold;
}

.option_icon {
	width:100%;
	height:45px;
	display:flex;
	justify-content:center;
	/* 수평 중앙 정렬 */
	align-items:center;
	/* 수직 중앙 정렬 */
}

.option_icon img {
	display:block;
	margin:auto;
}

.option_title {
	font-size:14px
}



/*---------------------------- 가로 스크롤 작품 리스트 공통 타입------------------------------------*/
section {
	width:1100px;
	margin: 0 auto;
    padding-bottom:50px;
}

section.aside-section {
	width:100%;
	padding: 30px;
    box-sizing: border-box;
}

.aside-section .aside-sec-title{
	font-size:18px;
}

.section-bg {
	width:100%;
    padding: 50px 0px;
    background-color: #cbdcff;
    margin-bottom: 60px;
}

.section-bg section {
	padding-bottom:0px;
}

/* --- 1. 상단 메인 탭 스타일 --- */
.deptab-menu {
  display: flex;
  list-style: none;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom:40px;
}

.deptab-item {
	width: 100px;
	text-align: center;
	padding: 12px 0;
	font-size: 15px;
	font-weight: bold;
	color: #666666;
	cursor: pointer;
	border-top: 1px solid #e0e0e0;	
	border-left: 1px solid #e0e0e0;
	background-color: #fafafa;
	transition: all 0.2s ease;
}

/* 비활성화된 탭들의 경계선 자연스럽게 처리 */
.deptab-item:last-child {
  border-right: 1px solid #e0e0e0;
}

/* 활성화(Active) 상태의 탭 스타일 */
.deptab-item.active {
  background-color: #ffffff;
  color: #ff0000; /* 이미지의 강조된 레드 컬러 반영 */
  border-bottom: 1px solid #ffffff; /* 하단 보더를 지워 탭이 뚫린 느낌 전달 */
  margin-bottom: -1px; /* 부모 border-bottom과 겹치게 처리 */
}

.section-head {
	display:flex;
	justify-content:space-between;
	align-items:center;
	margin: 6px 0 25px;
}

.aside-section .section-head {
	margin: 0px 0 17px;
}

.section-head h2 {
	color:#000;
	letter-spacing:-1px;
	font-weight:600;
	font-size:22px;
	margin-bottom:0px;
}

.section-head h2 em {
	color:#6722f3;
	font-style:normal;
	margin-right:5px;
}

.section-head h2 .ttlte-lab {
	display: inline-block;
    width: auto;
    height: auto;
    padding: 1px 7px 0px;
    margin-right: 6px;
    border-radius: 8px 1px 8px 1px;
    font-size: 16px;
    border: 1px solid #6722f3;
    color: #6722f3;
    line-height: 22px;
    position: relative;
    top: -2px;
}

.section-head h2 .ico_dcper {
	position:relative;
	top:4px;
    width: 27px;
	margin-right:3px;
}

.section-head .show-more {
	font-size:13px;
	color:#666;
	letter-spacing:-1px;
}

.section-head .show-more-arrow {
	font-size: 22px;
    position: relative;
    top: -3px;
    color: #999999;
}

.section-head .sort-options {
    display: flex;
    align-items: center;
    font-size: 13px;
    padding: 5px;
}

.section-head .sort-options .sort-item {
    color: #333;
    margin-right: 0px;
    cursor: pointer;
    white-space: nowrap;
	padding-left: 10px;
}

.section-head .sort-options .sort-item.selected {
    color: red; 
    font-weight: bold;
    margin-left: 0; 
}

.section-head .sort-options .check-icon {
	position:relative;
	top:2px;
    width: 13px;
    height: 17px;
    margin-right: -2px;
    stroke: currentColor; /* 선의 색상. 부모 텍스트 색상 따름 (red) */
    stroke-width: 2.5; /* 선의 두께 */
    stroke-linecap: round; /* 선 끝을 둥글게 */
    stroke-linejoin: round; /* 선이 꺾이는 부분을 둥글게 */
    fill: none; /* SVG 내부를 채우지 않음 */
    flex-shrink: 0; /* 아이콘이 축소되지 않도록 함 */
}

.section-head .sort-options .divider {
    color: #d4d4d4;
    margin-left: 10px;
}

.hscroll-container {
	position: relative;
	width: 1100px;
	margin: 0 auto;
	padding: 20px 0; /* 상하 여백 추가 */
} 

.hscroll {
	position: relative;
	white-space: nowrap; /* 아이템들을 한 줄에 배치 */
	scroll-behavior: smooth; /* 스크롤 이동 시 부드러운 애니메이션 효과 */
}

/* 슬라이드 버튼 스타일 */
.slider-button {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	background:rgba(255,255,255,0.7);
	border: 1px solid #ececec;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #888;
	transition: background-color 0.1s ease, border-color 0.1s ease;
	z-index: 1;

}

.slider-button:hover {
	background:rgba(255,255,255,1);
	border-color: #aaa;  
}

.slider-button svg {
	width: 3.5em; /* 부모의 font-size에 맞춰 크기 조절 */
	height: 3.5em;
}


/* 마우스를 올렸을 때 아이콘 색상 */
.slider-button:hover svg {
	color: #222; 
	border-color: #222; /* 아이콘 색상 (진한 회색) */
}

.prev-button {
	left:-70px;
}

.next-button {
	right:-70px;
}

/* touch improvements */
.hscroll .gridlist,.hr-list {
	-webkit-overflow-scrolling:touch;
	/* 크롬,사파리,엣지(Webkit 계열) */
	scrollbar-width:none;
	/* Firefox */
	-ms-overflow-style:none;
	/* IE 10+*/
}

.hscroll .gridlist::-webkit-scrollbar,.hr-list::-webkit-scrollbar {
	display:none;
	/* Chrome,Safari,Edge */
}

.hscroll .hr-list {
	display:flex;
	gap:20px;
	overflow:auto;
}

.book-item {
	flex:0 0 auto;
	width:204px;
}

.book-cover-thumb {
	position:relative;
	width:100%;
	height:294px;
	border-radius:8px;
	object-fit:cover;
	background:#ddd
}

.book-cover-thumb::after {
	position:absolute;
	top:0;
	left:0;
	right:0;
	bottom:0;
	border:1px solid rgba(0,0,0,.1);
	content:"";
	border-radius:5px;
	overflow:hidden;
}

.book-cover-thumb .cover {
	width:100%;
	height:100%;
	border-radius:5px;
	background: #ddd
}
/* best ranking*/
.best-rank {
	display:inline-block;
	position:absolute;
	left:5px;
    bottom: -20px;
	font-style:italic;
	font-weight:bold;
	font-size:40px;
	color:#222;
	text-shadow: 2px 2px 2px #fff,-2px 2px 2px #fff,-2px -2px 2px #fff,2px -2px 2px #fff;
}
/*img.ebcover::after{display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0;border:1px solid rgba(0,0,0,0.3);pointer-events:none;)*/


.hscroll .eb-info {
	display:flex;
	flex:1;
	margin-top:10px;
	flex-direction:column;
	line-height:200%;
	overflow: hidden;
}

.rankscroll .eb-info {
	margin-top: 20px;
	/*상단 여백을 더*/
}
/* Small utilities */

.discount-badge {
    position: absolute;
    display: flex;
    top: 5px;
    left: 5px;
    width: 60px;
    height: 18px;
    color: #fff;
    background-color: #8f5fff;
    font-size: 12px;
    border-radius: 3px;
    font-weight: bold;
    z-index: 1;
    justify-content: center;
    align-items: center;
}

.book-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #111;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-author {
	font-size:14px;
	color:#5c8ad3;
	white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-rating {
	font-size:13px;
	color:#222;
	line-height: 150%;
}

.book-progress {
	font-size:12px;
	color:#888;
}

.book-link {
	font-size:13px;
	color:#3366cc;
	text-decoration:none
}

.book-star {
	position:relative;
	top:-2px;
	color:#e53935;
	font-weight: bold;
}

.book-num {
	color:#777;
}



.aside-vtr-list {
	display: flex;
    flex-direction: column;
	gap: 15px;
}

.aside-vtr-list .book-item {
	display:flex;
	align-items: center;
	width:100%;
	gap:15px;
}

.aside-vtr-list .book-cover-thumb {
	position:relative;
	width:100%;
	height:100px;
	border-radius:5px;
	overflow:hidden;
	object-fit:cover;
	background:#ddd
} 

.aside-vtr-list .eb-info {
	width:70%;
	line-height: 1.8;
}

.aside-vtr-list .book-title {
    font-size: 14px;
	padding-right: 30px;
}

.aside-vtr-list .book-author {
    font-size: 12px;
}

/* ---------- Type A:Large horizontal cards with progress ---------- */
.type-a .list {
	display:flex;
	gap:12px;
	overflow:auto;
	padding-bottom:6px;
}

.type-a .cover {
	width:72px;
	height:100px;
	border-radius:6px;
	flex-shrink:0;
	background:#ddd;
	object-fit: cover
}
/* ---------- Type C:Category list with 2 rows,dynamic columns ---------- */
.hscroll .gridlist {
	display:grid;
	grid-template-rows:repeat(2,auto);
	grid-auto-flow:column;
	gap:40px 20px;
	overflow-x:auto;
	justify-content:start;
}

.hscroll .gridlist .book-cover-thumb {
	width:100%;
	background:#fff;
	border-radius:10px;
	text-align:left;
}

.type-c .cover {
	width:100%;
	height:auto;
	border-radius:8px;
	object-fit:cover;
	background: #cfe
}

/*-------------------------- 도서 상세페이지------------------------------- */
.product-detail-wrapper {
	display:flex;
	width:1100px;
	margin:0 auto;
	justify-content: space-between;
	padding-bottom: 80px;
}

.product-detail-wrapper main {
	width:700px;
}

.product-detail-wrapper aside {
	width: 350px;
	background: #f7f7f7;
    padding: 0px;
    box-sizing: border-box;
	border-radius: 20px;
}

.headinfo {
	height:auto;
}

.header-content {
	display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: space-between;
}

.cover-thumb {
	width: 180px;
    position: relative;
    border-radius: 10px;
}

.cover-thumb::after {
	position:absolute;
	top:0;
	left:0;
	right:0;
	bottom: 3px;
	border:1px solid rgba(0,0,0,.1);
	content:"";
	border-radius:10px;
	overflow:hidden;
}

.header-content-image {
	width:100%;
	height:auto;
	border-radius:10px;
	box-shadow:0 10px 10px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05);
}

.header-content .discount-badge {
	position:absolute;
	top:5px;
	left:5px;
	width:74px;
	height: 23px;
	color:#fff;
	background-color:#8f5fff;
	font-size:13px;
	border-radius:15px;
}

.headinfo-txt {
	display: flex;
	width: 70%;
	height: 285px;
    padding-top: 5px;
    flex-direction: column;
    justify-content: space-between;
}

.section-header {
	position:relative;
	display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-direction: column;
}

.section-header-info {
	display: flex;
    align-items: center;
    font-size: 20px;
    color: #6b7280;
    width: 100%;
    justify-content: space-between;
}

.category-badge {
	border-radius:9999px;
	font-size:13px;
}

.report-button {
	position: absolute;
    right: -10px;
    top: 0px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
    transition-property: color;
    transition-duration: 0.15s;
    border: none;
    background: none;
}

.report-button .ico-report {
	height:0.7rem;
    width: 0.7rem;
    margin-right: 0.2rem;
}

.headinfo-txt .book-title {
	color:#000;
	font-size:23px;
	font-weight:bold;
	line-height:140%;
	-webkit-line-clamp: none;
	white-space: initial;
	text-overflow: initial;
	margin-top:5px;
	margin-bottom:5px;
	word-break: keep-all;
}

.headinfo-txt .book-author {
	font-size:14px;
	color:#6b7280;
	line-height:180%;
}

.headinfo-txt .book-date {
	font-size:14px;
	color:#6b7280;
	line-height:180%;
}

.headinfo-txt .rating {
	font-size:13px;
	font-weight:normal;
}

.headinfo-txt .rating-stars {
	color: #e53935;
	font-weight:bold;
}

.headinfo-txt .rating-stars .num {
	color: #666;
} 

.tdivi {
	font-size: 12px;
    color: #bfbfbf;
    margin: 0 6px;
    position: relative;
    top: -2px;
}

.headinfo-txt .rating .tdivi {
    margin: 0 3px;
}

/* 미리보기 버튼 스타일 수정 */
.preview-button {
	position:absolute;
	left:50%;
	margin-left:-45px;
	bottom: -40px;
	width: 90px;
    padding: 0px 2px;
	border-radius:9999px;
	background-color:#ffffff;
	border:1px solid #5f9dd6;
	color:#5f9dd6;
	font-weight:bold;
	font-size:13px;
	transition-property:background-color;
	transition-duration:0.15s;
	cursor:pointer;
	display:flex;
	align-items:center;
	justify-content:center;
	z-index:1;
}

.preview-button svg {
	height: 1.6rem;
    width: 16px;
    margin-right: 1px;
}

/* 도서 상세 - 섹션 스타일 */
.info-sbox-wrap {
	margin-top:100px;
}

/* 탭 전체 영역 스타일 */
.tab-container {
    width: 100%;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

/* 상단 제목 스타일 */
.tab-title {
    font-size: 22px;
    font-weight: 500;
    color: #000;
    padding-bottom: 15px;
    margin: 0;
}

/* 상단 구분선 스타일 */
.separator-line {
    border: 0;
    height: 1px;
    background: #ddd;
}

/* 탭 메뉴 목록 (UL) 스타일 */
.tab-menu {
    display: flex; /* 자식 요소들을 가로로 나열 */
    list-style: none; /* 목록 마커 제거 */
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd; /* 탭 목록 아래 전체 구분선 */
}

/* 각 탭 메뉴 항목 (LI) 스타일 */
.tab-item {
    padding: 12px 15px; /* 탭 영역 크기 */
    cursor: pointer;
    font-size: 18px;
    color: #555; /* 비활성화된 탭 색상 */
    margin-right: 20px; /* 탭 항목 간 간격 */
    
    /* 밑줄을 위한 설정 */
    border-bottom: 2px solid transparent; /* 기본적으로 투명한 밑줄 (굵기 유지를 위해) */
    transition: border-bottom 0.3s; /* 부드러운 전환 효과 */
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

/* 활성화된 (선택된) 탭 스타일 */
.tab-item.active {
    color: #000; /* 활성화된 탭 글자색 */
    font-weight: 500; /* 살짝 굵게 */
    
    /* 이미지와 같이 밑줄 표시 */
    border-bottom: 2px solid #000; 
}


.info-sbox {
	display: none;
	padding:30px 0px;
	border-bottom: 1px solid #f7f7f7;
}

.gray-sbox {
	background-color:#f7f7f7;
	border-radius:2px;
	padding:20px 25px;
	margin-bottom: 60px;
}

.info-sbox-header {
	display:flex;
	justify-content:space-between;
	align-items:center;
	font-size:20px;
	font-weight:bold;
}

.info-sbox-header h2 {
	color:#000;
	font-size:18px;
	margin:6px 0px
}

.gray-sbox h2 {
	font-size:18px;
}

.toggle-button {
	margin:14px auto 10px;
	background:none;
	color:#6b7280;
	cursor:pointer;
	font-size:14px;
	font-weight:bold;
	display:flex;
	align-items:center;
	gap:0.25rem;
	border:1px solid #c8c8c8;
	padding:5px 10px 5px 15px;
	border-radius:20px;
}

.toggle-button svg {
	width:1rem;
	height:1rem;
	transition:transform 0.3s ease;
}

.rotate-180 {
	transform: rotate(180deg);
}

.detail-content {
	margin-top:1rem;
	line-height:1.8;
	color:#777;
	max-height:100px;
	overflow:hidden;
	transition:max-height 0.1s ease-in-out;
	mask-image:linear-gradient(to bottom,#000 50%,transparent 100%);
	font-size:14px;
}

.detail-content img {
	width:100%;
	margin:50px 0px;
}

.detail-content.expanded {
	max-height:5000px;
	mask-image:none;
}

.ebinfo-list {
	line-height:1.6;
	color:#4b5563;
}

.author-meta {
	margin-top:0.5rem;
	font-size:14px;
	color:#6b7280;
}

.author-meta span {
	font-weight:bold;
	color: #333;
}


/*--------------------------------------index > 리뷰 및 평점 ------------------------------------------*/
.rating-section {}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rating-header h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
}

.review-count {
    font-size: 24px;
    font-weight: normal;
    color: #888;
    margin-left: 5px;
}

.more-link {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.rating-content {
    display: flex;
    gap: 20px;
	flex-direction: column;
}

.rating-summary {
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    text-align: center;
    box-sizing: border-box;
    justify-content: center;
    flex-direction: column;
}

.score {
    font-size: 40px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    margin-bottom: 5px;
}

.star-rating {
    display: flex;
    justify-content: center;
    position: relative;
} 

.star-rating .star-svg {
	display:inline-block;
    font-size: 24px;
    color: #e0e0e0;
}

.star-rating .star-svg.filled {
    color: #ffc107;
}

.star-rating .star-svg.half {
    position: relative;
    color: #ffc107;
}

.star-rating .star.half::before {
    content: '\2605';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #e0e0e0;
}

.total-reviews {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

.review-list {
	width: 60%;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.review-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.review-list li:last-child {
    border-bottom: none;
}

.reviewer {
    font-size: 13px;
    font-weight: bold;
    color: #111;
    margin-bottom: 5px;
}

.review-text {
    font-size: 16px;
    color: #777;
    line-height: 1.4;
	white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* aside 가격, 구매하기 스타일 */
.price-wrap {
	width: 100%; 
	padding: 20px 30px;
	margin-bottom: 20px;
	border: 1px solid #c1c0c6;
	border-radius: 10px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	background-color: #fff;
	box-sizing:border-box;
}

/* 가격 행 스타일 */
.price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 0;
	margin-bottom: 5px;
}

/* 정가 행의 가격*/
.original-price {
	font-size: 16px;
	color: #555;
	position:relative;
}

.original-price::after {
  content: "";
  position: absolute;
  left: -8px; 
  right: -8px;
  top: 50%;
  height: 1px;
  background-color: #f81700;
  transform: translateY(-50%);
}

/* 판매가 행 스타일 */
.sale-row {
	margin-bottom: 20px;
}

/* 레이블 (정가, 판매가) 스타일 */
.label {
	font-size: 16px;
	color: #333;
}

/* 할인율 및 현재 가격을 포함하는 값 영역 스타일 */
.value.sale-price {
	display: flex;
	align-items: center;
	font-size: 17px;
}

/* 할인율 뱃지 스타일 */
.discount-rate {
	display: inline-flex;
	align-items: center;
	padding: 1px 6px;
	margin-right: 10px;
	border: 1px solid #ff4d4f; /* 빨간색 테두리 */
	border-radius: 20px;
	color: #ff4d4f; /* 빨간색 텍스트 */
	font-size: 14px;
	font-weight: bold;
	line-height: 1; /* 높이 조절 */
}

.discount-rate .arrow-icon {
	margin-left: 1px; 
    vertical-align: middle;
}

/* 현재 판매 가격 스타일 */
.current-price {
	font-size: 24px;
	font-weight: 900; /* 볼드체보다 더 두껍게 */
	color: #333;
}

/* 소장하기 버튼 스타일 */
.add-to-cart-button {
	width: 100%;
	padding: 15px 0;
	background-color: #6a5acd; /* 보라색 계열 */
	color: white;
	border: none;
	border-radius: 5px;
	font-size: 18px;
	font-weight: bold;
	cursor: pointer;
	transition: background-color 0.05s;
}

.add-to-cart-button:hover {
	background-color: #5d48c8;
}

/* 문화비 소득공제 정보 스타일 */
.tax-deduction-info {
	text-align: center;
	font-size: 13px;
	color: #777;
	margin-top: 15px;
}

/*/ End aside 가격, 구매하기 스타일 */



/* --------------------------------------- #도서>index 상단 배너 영역------------------------------------------*/

/* 전체 배너와 페이징을 감싸는 새로운 컨테이너 */
.carousel-wrapper {
	position: relative;
	width: 1100px;
	margin: 0 auto 40px;
}

/* 전체 배너를 감싸는 컨테이너 */

.full-width-wrapper {
	display: flex;
	overflow-x: scroll;
	padding: 0;
	width: 100%;
	box-sizing: border-box;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
	scroll-behavior: smooth;

	/* 스크롤바 숨기기 (모바일에서 보이지 않게) */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.full-width-wrapper.grabbing {
    cursor: grabbing; /* 드래그 중인 커서 */
}

/* Webkit 계열 브라우저 (Chrome, Safari) 스크롤바 숨기기 */
.full-width-wrapper::-webkit-scrollbar {
	display: none;
}


/* 각 배너 (이제 하나의 슬라이드) */
.banner-slide {
	flex-shrink: 0;
	scroll-snap-align: center;
	margin: 0 10px;
	width: 100%;
	height:380px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 60px 100px;
	background-color: #6a5acd;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
	position: relative;
}

/* 첫 번째/마지막 슬라이드에 추가적인 마진*/
.banner-slide:first-child {
	margin-left: 20px;
}

.banner-slide:last-child {
	margin-right: 20px;
}

/* 드래그 중인 상태 */
.full-width-wrapper.grabbing {
	cursor: grabbing;
}

/* 내부 콘텐츠를 담는 컨테이너 */
.slide-content-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
}

/* 텍스트 내용 */
.text-content {
	color: #fff;
	text-align: left;
	width:66%;
	padding-top: 15px;
}

.text-content .badge {
	display: inline-block;
	background-color: #20c997;
	color: #fff;
	font-weight: bold;
	padding: 2px 6px;
	border-radius: 2px;
	font-size: 14px;
}

.text-content h2 {
	font-size: 50px;
	height: 60px;
	line-height: 130%;
	color:#fff;
	display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
	overflow: hidden;
    text-overflow: ellipsis;
	margin-bottom:16px;	
}

.text-content p {
	height:105px;
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
	padding-left: 3px;
	opacity: 0.7;
	display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
	word-wrap: break-word;
}

/* 이미지 내용 */
.image-content {
	padding: 0px;
}

.image-content img {
	width: 200px;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 페이징 영역 */
.pagination-container {
	position: absolute;
	bottom: 60px;
	left: 100px;
    text-align: left;
	width: 50%;
	display: flex;	
	z-index: 1;
	
}

/* 페이징 라인 (비활성) */
.pagination-line {
	width: 10px;
	height: 2px;
	margin: 0 2px;
	background-color: #b0a4e3;
	border-radius: 1px;
}

/* 페이징 라인 (활성) */
.pagination-line.active {
	width: 25px;
	background-color: #fff;
}


/* 슬라이드 버튼 스타일 */
.topslider-button {
	position: absolute;
	top: 48%;
	transform: translateY(-50%);
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.1s ease, border-color 0.1s ease;
	z-index: 1;
	width: 100px;
    height: 100px;
	color: #c7c7c7;
	border: none;
	background:none

}

.topslider-button:hover {
	border-color: #aaa;  
}

.topslider-button svg {
	width: 7em; /* 부모의 font-size에 맞춰 크기 조절 */
	height: 7em;
}


/* 마우스를 올렸을 때 아이콘 색상 */
.topslider-button:hover svg {
	color: #222; 
	border-color: #222; /* 아이콘 색상 (진한 회색) */
}

.topslider-button.prev-button {
	left: 50%;
    margin-left: -650px;
}

.topslider-button.next-button {
	left: 50%;
    margin-left: 550px;
}
		
		
/* 슬라이드 버튼 스타일 
.carousel-wrapper .slider-button {
	width: 100px;
    height: 100px;
	color: #c7c7c7;
	border: none;
	background:none
}

.carousel-wrapper .slider-button svg {
	width: 7em; 
	height: 7em;
}

.carousel-wrapper .prev-button {
	left:-100px;
}

.carousel-wrapper .next-button {
	right:-100px;
}*/

/*///  --------------------------------------- #도서>index 상단 배너 영역 End------------------------------------------*/



/* --------------------------------------- #도서>index 상단 배너 영역 - NEW 260528------------------------------------------*/

/* 전체 배경: 나무 질감 */
.timber-gallery-wall {
	position: relative;
	width: 100%;
	height: 545px;
	background: #a57c50 url(//im.mootoon.co.kr/web/images/contents/bg_showcase.jpg) repeat-x center top;
	padding: 105px 20px 0px;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	overflow: hidden;
	margin-bottom:70px;
}

/* 갤러리 메인 래퍼: 버튼과 컨테이너를 하나로 묶음 */
.gallery-main-wrapper {
	position: relative;
    display: flex;
    align-items: center;
    width: 1100px;
    box-sizing: border-box;
    z-index: 1;
}

/* 좌우 네비게이션 버튼 */
.nav-shifter {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 120px;
	height: 120px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* 더 부드러운 애니메이션 */
	z-index: 1;
	padding: 0;
	border:none;
	background:none;
}

.nav-shifter svg {
	width: 120px;
	height: 120px;
	fill: none;
	stroke: #8e663f;
	stroke-width: 0.5;
	stroke-linecap: square; /* 끝선을 더 날카롭게 처리 */
	stroke-linejoin: miter;
}

.nav-shifter:hover {
	transform: translateY(-50%) scale(1.05);
}

.nav-shifter:hover svg {
	stroke: #4a3c2f;
}

.shift-prev { left:50%; margin-left:-670px; }
.shift-next { left:50%; margin-left:550px; }

/* 카드 컨테이너 */
.book-exhibit-container {
	_display: flex;
    _z-index: 1;
    _width: 1100px;
    _justify-content: space-between;
    _flex-direction: row;
	
	display: flex;
    transform: translate(0px, 0px) translateZ(0px);
    will-change: transform;
    transition-behavior: normal !important;
    transition-duration: 300ms;
    transition-timing-function: ease !important;
    transition-delay: 0s !important;
    transition-property: transform;
    left: 245px;

}

/* [변경] 도서 카드 본체: 하단 정보 오버레이를 위해 relative 추가 */
.wood-gallery-card {
	position: relative;
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease-out;	
	width: 245px;
    height: 355px;
    box-shadow: unset;
    cursor: pointer;
    flex: 0 0 auto;
    margin-right: 40px;
    display: block;
	user-drag:none;
	-webkit-user-drag: none;
	user-select:none;
	-webkit-user-select:none;
}

.wood-gallery-card:hover {
}

/* 도서 이미지 영역 (238px * 355px) */
.book-jacket-area {
	background-color: #f0f0f0;
	overflow: hidden;
}

.book-jacket-area img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	user-drag:none;
	-webkit-user-drag: none;
	user-select:none;
	-webkit-user-select:none;
}

/* [변경] 하단 정보 영역: 이미지 위로 오버레이 배치 */
.book-meta-info {
	position: absolute; /* absolute로 변경 */
	bottom: 0;          /* 카드 하단에 고정 */
	left: 0;
	width: 100%;
	padding: 40px 20px 25px; /* 패딩 조정 */
	display: flex;
	flex-direction: column;
	gap: 2px; /* 간격 축소 */
	box-sizing: border-box;
	
	/* [변경] 반투명 배경 및 가독성을 위한 설정 */
	background: linear-gradient(to top, rgba(0,0,0,0.85) 20%, rgba(0,0,0,0) 100%);
	color: #ffffff; /* 텍스트 색상 흰색 */
	transition: background 0.3s ease;
}

/* 호버 시 배경색 조금 더 진하게 */
.wood-gallery-card:hover .book-meta-info {
	background: linear-gradient(to top, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0) 100%);
}

.book-meta-info .badge {
	align-self: flex-start;
	padding: 3px 6px; /* 패딩 축소 */
	border-radius: 10px;
	font-size: 10px; /* 폰트 축소 */
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 6px;
	background-color: #6722f3;
}

/* [변경] 오버레이 배경에 맞춘 배지 색상 하드코딩 */
.category-novel { background-color: rgba(255, 177, 66, 0.9); }
.category-science { background-color: rgba(72, 52, 212, 0.9); }
.category-essay { background-color: rgba(32, 191, 107, 0.9); }

/* [변경] 오버레이 위에서 잘 보이도록 폰트 스타일 변경 */
.book-display-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #ffffff; /* 흰색으로 변경 */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	letter-spacing: -0.3px;
}

.book-author-name {
	margin: 0;
	font-size: 13px; /* 폰트 축소 */
	font-weight: 400;
	color: rgba(255, 255, 255, 0.8); /* 약간 투명한 흰색 */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
		
/*///  --------------------------------------- #도서>index 상단 배너 영역 End - NEW 260528------------------------------------------*/




/* ------------------------------------------- #도서>index 개인화 영역-------------------------------- */

/* 가로 스크롤 리스트 컨테이너 */
.mybooks-container {
	display:flex;
	overflow-x:auto;
	gap:15px;
	
}
/* 스크롤바 숨기기 (웹킷 기반 브라우저) */
.mybooks-container::-webkit-scrollbar {
	display: none;
}
/* 파이어폭스용 스크롤바 숨기기 */
.mybooks-container {
	scrollbar-width:none;
}
/* 개별 책 카드 스타일 (가로 배치) */
.mybook-item {
	flex-shrink:0;
	width:208px;
	background-color:#f1f2f9;
	border-radius:8px;
	display:flex;
    align-items: center;
    box-sizing: border-box;
}

.mybook-noitem {
	background-image:url(//im.mootoon.co.kr/image/common/logo_mootoon_wh.png);
	background-repeat:no-repeat;
	background-position:center center;
	background-size:100px ;
}

/* 도서 커버 영역 */
.mybook-item .cover-image-box {
	flex-shrink:0;
	width: 70px;
    height: 100px;
    margin-right: 15px;
	position:relative;
}

.mybook-item .cover-image-box::after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0, 0, 0, .1);
    content: "";
    border-radius: 6px 0px 0px 6px;
    overflow: hidden;
}

.mybook-item .cover-image-box img {
	width:100%;
	height:100%;
	object-fit:cover;
	border-radius: 6px 0px 0px 6px;
}

/* 도서 정보 텍스트 영역 */
.mybook-item .book-info-text {
	flex-grow:1;
	display:flex;
	flex-direction:column;
	justify-content:center;
	overflow:hidden;
	padding-right: 15px;
	letter-spacing: -1px;
}

.mybook-item .book-title {
	font-size:15px;
	font-weight:500;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
	margin:0 0 5px;
}

.mybook-item .book-author {
	font-size:13px;
	color:#888;
	margin:0 0 5px;
}

.mybook-item .progress-text {
	display:none;
	font-size:13px;
	color:#007bff;
	margin-bottom:5px;
}

.mybook-item .link-btn {
	font-size:12px;
	color:#4145ff;
	text-decoration:none;
}

/*----------------------------------------------# 리뷰 & 평점--------------------------------------------------------*/


/* 상단 헤더 */
.review-header {
	display: flex;
	align-items: center;
	padding: 20px;
	background-color: #fff;
	border-bottom: 1px solid #e0e0e0;
}

.review-header .back-arrow {
	width: 20px;
    height: 20px;
    color: #333;
    cursor: pointer;
    margin-right: 15px;
    background: url(//im.mootoon.co.kr/image/common/w_view_ar_left.png) no-repeat center center / 15px;
    opacity: 0.6;
}

.review-header h2 {
	font-size: 22px;
	font-weight: 500;
	color: #333;
	margin: 0;
	flex-grow: 1;
	text-align: center;
	transform: translateX(-19px);
}

/* 메인 컨테이너 */
.review-container {
	background-color: #fff;
	letter-spacing:-0.5px;
}

/* 책 정보 */
.rvbook-info {
	display: flex;
    margin: 20px auto 20px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rvbook-info img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 10px;
}

.rvbook-info .rvbook-cover {
	width:100px;
	height:100px;
	border-radius:50px;
	overflow:hidden
}

.rvbook-info .rating-score {
	display: flex;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rvbook-info .rating-score .score {
    margin-bottom: 0px;
	padding-top: 5px;
}

.rvbook-info .star-rating {
	display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.rvbook-info .total-reviews {
	font-size: 16px;
	font-weight:normal;
	color: #888;
}

.rvbook-info .star-rating .star-svg {
	width: 20px;
	height: 20px;
}

.star-rating .star {
	width: 18px;
	height: 18px;
	fill: #d3d3d3;
	margin: 0 1px;
}

.star-rating .star.filled {
	fill: #ffc107;
}

/* 사용자 평점 영역 */
.user-rating-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 0;
}

.user-rating-section h3 {
	font-size: 20px;
	color: #111;
	font-weight: normal;
	margin: 0 0 10px 0;
}




.rate-stars {
	display: flex;
	justify-content: center;
	position: relative;
}


.rate-stars .star-svg {
	width: 40px;
	height: 40px;
	margin:0px -1px;
}

/* ★ 추가/수정된 부분: 마우스 이벤트에 따라 별점 색상 변경 */
.rate-stars .star-svg.half-filled {
	fill: url(#halfStarGradient);
}

.rate-stars .star-svg.full-filled {
	/*fill: #ffc107;*/
}

/* 리뷰 입력 영역 */
.review-input-section {
	padding-top: 0px;
}

.review-input-section .txinput_box{
	position:relative;
}

.review-input-section textarea {
	width: 100%;
	height: 200px;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px;
	box-sizing: border-box;
	resize: none;
	font-size: 14px;
	margin-bottom:0px;
}

.review-input-section .char-counter {
	position: absolute;
	bottom: 15px;
	right: 15px;
	font-size: 14px;
	color: #888;
}

.review-input-section .tarea_warning {
	font-size: 12px;
    letter-spacing: 0px;
    color: #888;
    line-height: 170%;
    margin-top: 4px;
    text-indent: -14px;
    padding-left: 15px;
}

.review-input-section .button-group {
	display: flex;
	justify-content: center;
	margin-top: 15px;
	gap: 10px;
}

.review-input-section button {
	padding: 8px 22px;
    border: none;
    border-radius: 34px;
    font-weight: normal;
    cursor: pointer;
    font-size: 14px;
}

.review-input-section .cancel-btn {
	background-color: #fff;
	border:1px solid #888;
	color: #555;
}

.review-input-section .submit-btn {
	background-color: #5a44cb;
	color: #fff;
}

/* 리뷰 목록 */
.review-list-section {
	width: 100%;
	background-color: #fff;
	margin-top: 10px;
}

.review-list-header {
    padding-bottom: 20px;
	margin-bottom:0px;
    border-bottom: 1px solid #e8e8e8;
}

.review-item {
	padding: 20px 10px;
	border-bottom: 1px solid #e8e8e8;
	letter-spacing:-0.5px;	
}

.review-item .user-id {
	color: #111;
	font-weight: 500;
	margin-bottom: 10px;
}

.review-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: #888;
	margin-bottom: 5px;
}

.review-meta .actions {
	display: flex;
	gap: 3px;
	font-size: 12px;
}

.review-content {
	font-size: 13px;
    color: #6c6c6c;
    line-height: 160%;
	white-space: pre-line;
	margin-bottom:20px;
}

.review-interactions {
	display: flex;
	align-items: center;
	font-size: 14px;
	color: #888;
}

.review-interactions .review-date {
	color: #888;
	text-decoration: none;
	cursor: pointer;
	margin-right:10px;
	font-size:12px;
}

.review-interactions .action-link {
	color: #888;
	text-decoration: none;
	cursor: pointer;
	padding:0px 3px;
	font-size:12px;
}

.like-icon-svg {
	position: relative;
	top: -1px;
	width: 13px;   /* 원하는 크기로 조절 */
	height: 13px;  /* 원하는 크기로 조절 */
	fill: none;    /* SVG 내부를 채우지 않음 */
	stroke: #888;  /* 선 색상 (하트 테두리) */
	vertical-align: middle; /* 텍스트와 세로 정렬 */
}

.fill-like {
  fill: #e74c3c;
  stroke: none;
}

.separator {
	margin: 0px 4px;
	color: #ccc;
	font-size: 10px;
}

.like-btn {
	color:#f81700
}


/* ------------------------------------------------------------- 카테고리 목록 페이지 --------------------------------------------------------*/

/* 드롭다운 및 정렬 탭 컨테이너 */
.filter-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 25px;
	background-color: #fff;
}

.dropdown-container {
	position: relative;
	padding-right: 10px;
}

/* 체크박스 숨기기 */
.dropdown-toggle {
	display: none;
}

.dropdown-button {
	display: flex;
	align-items: center;
	font-size:18px;
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
	color: #111;
}

.category-group {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.dropdown-button.active {
	color: #2563eb;
}

.dropdown-button svg {
	margin-left: 0.25rem;
	width: 1rem;
	height: 1rem;
	transition: transform 0.2s;
}

/* 체크박스가 선택되면 화살표 회전 */
.dropdown-toggle:checked + .dropdown-button svg {
	transform: rotate(180deg);
}

.dropdown-cate {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 2;
	background-color: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.375rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	margin-top: 0.5rem;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
	min-width: 10rem;
}

/* 체크박스가 선택되면 메뉴 보이기 */
.dropdown-toggle:checked ~ .dropdown-cate {
	height: fit-content;
    padding: 10px 0px;
	opacity: 1;
}

.dropdown-cate span {
	display: block;
	padding: 0.5rem 1rem;
	cursor: pointer;
	font-size: 16px;
	color: #333;
}
.dropdown-cate span:hover {
	background-color: #f3f4f6;
}

/* 오른쪽 정렬 탭 스타일 */
.sort-tabs {
	display: flex;
	align-items: center;
	font-size: 14px;
	color: #9ca3af;
}
.sort-tabs span {
	cursor: pointer;
	padding: 0 0px 0 7px;
	position: relative;
}
.sort-tabs span:first-child {
	padding-left: 0;
}
.sort-tabs span.active {
	color: #374151;
	font-weight: bold;
}
.sort-tabs span + span::before {
	content: '';
	display: inline-block;
	width: 1px;
	height: 10px;
	background-color: #d1d5db;
	margin-right: 7px;
	vertical-align: middle;
}

h2.bklist-title {
	font-size: 18px;
    color: #111;
}

h2.bklist-title::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 13px;
    background-color: #d1d5db;
    margin-right: 15px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

h2.bklist-title .num_point {
	color:#f81700;
}



/* 메인 그리드 컨테이너 */
.book-grid-container {
	padding: 0px 25px 50px;
	display: grid;
	gap: 32px 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
	.book-grid-container {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.book-grid-container {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* 개별 도서 항목 */
.book-grid-container .book-item {
	display: flex;
	width: 100%;
	flex-direction: column;
	gap: 10px;
}

.book-grid-container .book-cover-thumb {
	padding-top: 146.6667%; /* 220 / 150 = 1.46667 */
	position: relative;
	width: 100%;
	height:auto;
	border-radius: 0.375rem;
	overflow: hidden;
}

.book-grid-container .book-cover-thumb .cover {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}


/* 뷰 로딩 레이어 260609 */

.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4); 
	display: flex;
	justify-content: center; 
	align-items: center;
	z-index: 9999;
}

.loading-box {
	width: 80%;
	max-width: 320px;
	background-color: #ffffff;
	padding: 30px 40px;
	word-break: keep-all;
	box-sizing: border-box;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	text-align: center;
}

.dot-spinner {
	position: relative;
	width: 50px;
	height: 50px;
	margin: 25px auto;
}

.dot {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.dot::before {
	content: '';
	display: block;
	margin: 0 auto;
	width: 15%;
	height: 15%;
	background-color: #3498db;
	border-radius: 100%;
	animation: dot-fade 1.2s infinite ease-in-out both;
}

.dot2 { transform: rotate(30deg); }
.dot3 { transform: rotate(60deg); }
.dot4 { transform: rotate(90deg); }
.dot5 { transform: rotate(120deg); }
.dot6 { transform: rotate(150deg); }
.dot7 { transform: rotate(180deg); }
.dot8 { transform: rotate(210deg); }
.dot9 { transform: rotate(240deg); }
.dot10 { transform: rotate(270deg); }
.dot11 { transform: rotate(300deg); }
.dot12 { transform: rotate(330deg); }

.dot2::before { animation-delay: -1.1s; }
.dot3::before { animation-delay: -1s; }
.dot4::before { animation-delay: -0.9s; }
.dot5::before { animation-delay: -0.8s; }
.dot6::before { animation-delay: -0.7s; }
.dot7::before { animation-delay: -0.6s; }
.dot8::before { animation-delay: -0.5s; }
.dot9::before { animation-delay: -0.4s; }
.dot10::before { animation-delay: -0.3s; }
.dot11::before { animation-delay: -0.2s; }
.dot12::before { animation-delay: -0.1s; }

@keyframes dot-fade {
	0%, 39%, 100% { opacity: 0.3; transform: scale(0.6); }
	40% { opacity: 1; transform: scale(1); }
}

.loading-text {
	font-size: 16px;
	font-weight: bold;
	color: #333333;
	margin: 0;
	line-height: 1.8;
}

/* End 뷰 로딩 레이어 */