

/* SHOP */
.shop_intro {display:flex; align-items:end; justify-content:space-between; gap:30px; margin-bottom:34px; }
.shop_intro h2 {margin:0;   font-size:clamp(3.2rem,4vw,4.8rem);  font-weight:700;   letter-spacing:-.04em; }
.shop_intro p {max-width:520px; margin:0; color:var(--muted); line-height:1.8; }
 


.shop_toolbar {display:flex; align-items:flex-end; justify-content:space-between; gap:20px; padding:24px 0; }
.result_count {color:#666f6a; font-size:1.4rem; }
.result_count strong {color:var(--green); font-size:1.8rem; }


.sort_select {min-width:150px; height:44px; padding:0 42px 0 10px;  border: 1px solid #ddd5c8; border-radius: .6rem; background:#fff; color:#39443f; outline:none; }
.product_grid {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:38px 20px; }
.product_card {position:relative; min-width:0; }
.product_thumb {position:relative; aspect-ratio:1/1.06; overflow:hidden; background:#eee8dc; }
.product_thumb a {display:block; width:100%; height:100%; }
.product_thumb img {width:100%; height:100%; object-fit:cover; transition:.5s; }
.product_card:hover .product_thumb img {transform:scale(1.055); }
.product_badges {position:absolute; left:14px; top:14px; z-index:2; display:flex; gap:6px; }
.badge {display:inline-flex; align-items:center; min-height:28px; padding:0 10px; background:var(--green); color:var(--gold2); font-size:1.05rem; font-weight:700; letter-spacing:.06em; }
.badge.gold {background:var(--gold); color:var(--green); }
.wish_btn {position:absolute; right:14px; top:14px; z-index:2; display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.9); color:#8b938e; cursor:pointer; transition:.2s; }
.wish_btn:hover,.wish_btn.active {background:var(--green); color:#fff; }
.product_info {padding:20px 2px 0; }
.product_category {display:block; margin-bottom:8px; color:var(--gold); font-size:1.1rem; font-weight:700; letter-spacing:.12em; }
.product_info h3 {margin:0 0 10px; /* font-family:'BookkMyungjo'; */ font-size:2.15rem; font-weight:700; line-height:1.35; }
.product_desc {  margin:0 0 16px; color:#7b837f; font-size:1.35rem; line-height:1.65; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.price_row {display:flex; align-items:end; justify-content:space-between; gap:12px; padding-top:15px; border-top:1px solid #ddd5c8; }
.price_row .price_group {min-width:0; }
.price_row .sale {margin-right:7px; color:#a77a35; font-size:1.5rem; font-weight:800; }
.price_row .price {font-size:2rem; font-weight:800; }
.price_row .price_group del {display:block; margin-top:4px; color:#a4aaa7; font-size:1.25rem; }
.price_row .cart_btn {display:grid; place-items:center; width:44px; height:44px; background:var(--green); color:#fff; cursor:pointer; transition:.2s; }
.price_row .cart_btn:hover {background:var(--gold); color:var(--green); }
.empty_message {display:none; padding:90px 20px; text-align:center; color:var(--muted); }

.product_grid.empty {display:block}
.product_grid.empty {text-align:center}
.product_grid.empty .product_thumb {display:none}
.product_grid.empty .price_row  {display:none}

  
/* product detail */
.product_detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(38rem,.85fr); gap: 7rem; align-items: start; }
.product_gallery { display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; }
.product_thumbs { display: flex; flex-direction: column; gap: 1rem; }
.product_thumb_btn { overflow: hidden; padding: 0; border: 1px solid #ddd;  background: #fff; }
.product_thumb_btn.active { border-color: #111; }
.product_thumb_btn img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product_main_image { overflow: hidden; aspect-ratio: 1 / 1; background: #f4f4f4; position:relative }
.product_main_image img { max-width: 100%; position:absolute; left:50%; top:50%;  transform:translateX(-50%) translateY(-50%); }
.product_detail_info { position: sticky; top: 2rem; }
.product_detail_info .brand { color: #777; font-size: 1.3rem; }
.product_detail_info h1 { margin: 7px 0 10px; font-size: 3.2rem; line-height: 1.3; letter-spacing: -.1rem; }
.product_detail_info .intro { margin: 0 0 25px; color: #777; font-size: 1.4rem; }
.product_detail_price { display: flex; align-items: baseline; gap: 1rem; padding-bottom: 20px; border-bottom: 1px solid #ddd5c8; }
.product_detail_price strong { font-size: 2.6rem; font-weight:600}
.product_detail_price del { color: #aaa; font-size: 1.4rem; }
.product_info_rows { padding: 12px 0; border-bottom: 1px solid #eee; }
.product_info_row { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem; padding: 8px 0; font-size: 1.35rem; }
.product_info_row dt { color: #777; }
.product_info_row dd { margin: 0; }
.product_buy_box { margin-top:10px; }
 

.product_buy_row { display: flex;  align-items:center; justify-content: space-between; gap:1; margin-top: 15px; }
.product_buy_row .qty input { width: 100%; height:37px;  text-align:center;  width:50px; border: 1px solid #ddd5c8; border-radius: .6rem; background: #fff; outline: none; box-sizing:border-box; font-size:15px}
.product_buy_row .qty button { width: 100%; height:36px; text-align:center;  width:37px; border: 1px solid #ddd5c8; border-radius: .6rem; background: #fff; outline: none; box-sizing:border-box;  font-size:14px; color:#222}
.product_total { margin-top: 20px; padding-top: 18px; border-top: 1px solid #ddd5c8; display: flex; align-items: center; justify-content: space-between; }
.product_total strong { font-size: 2.4rem; font-weight:700}
.product_action { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; margin-top: 15px; }
.product_action .btn { width: 100%; }
.product_detail_tabs { display: flex; margin-top: 80px; border-bottom: 1px solid #222; }
.product_detail_tabs a { flex: 1; padding: 18px 10px; border: 1px solid #ddd; background:rgba(255,255,255,.1); border-bottom: 0; text-align: center; color: #666; font-size: 1.4rem; }
.product_detail_tabs a.active { border-color: #222; color: #111; font-weight: 700;  background:rgba(255,255,255,1); }

#detailInfo * { all: revert; box-sizing: border-box;  font-family:"Pretendard","Arial"; }
#detailInfo p { margin:0 }

.product_description .visual { width:100% }
#deliveryInfo {text-align:center}
#deliveryInfo h3 { margin: 0 0 15px; font-size: 2.8rem; font-weight: 600; color: #111; } 
#deliveryInfo p { margin: 0 auto; max-width: 72rem; color: #666; line-height: 1.9; }
 
 
/* ========================================
   PRODUCT BOARD
======================================== */

 

.board_head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 30px;
}

.board_head h3 {
	margin: 0 0 8px;
	font-size: 2.8rem;
	font-weight: 600;
	color: #111;
}

.board_head p {
	margin: 0;
	font-size: 1.4rem;
	color: #777;
}

.board_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 110px;
	height: 44px;
	padding: 0 22px;
	background: #111;
	color: #fff;
	font-size: 1.3rem;
	font-weight: 500;
	transition: background .3s;
}

.board_btn:hover {
	background: #444;
}


/* ========================================
   REVIEW SUMMARY
======================================== */

.review_summary {
	display: flex;
	align-items: center;
	margin-bottom: 30px;
	padding: 30px 35px;
	background: #f7f7f7;
}

.review_summary .score {
	display: flex;
	align-items: center;
	gap: 22px;
}

.review_summary .score > strong {
	font-size: 4.2rem;
	line-height: 1;
	font-weight: 600;
	color: #111;
}

.review_summary .stars {
	display: flex;
	gap: 3px;
	margin-bottom: 5px;
	color: #f2ad22;
	font-size: 1.5rem;
}

.review_summary .score span {
	display: block;
	font-size: 1.2rem;
	color: #888;
}


/* ========================================
   BOARD LIST
======================================== */

.board_list {
	border-top: 2px solid #222;
}

.board_row {
	display: grid;
	grid-template-columns: 80px 1fr 120px 140px 120px;
	align-items: center;
	width: 100%;
	min-height: 68px;
	color: #555;
	font-size: 1.3rem;
}

.board_row > div {
	padding: 15px 10px;
	text-align: center;
}

.board_row .subject {
	text-align: left;
}

.board_row .subject strong {
	font-weight: 500;
	color: #222;
}

.board_title {
	min-height: 52px;
	border-bottom: 1px solid #ddd5c8;
	 
	color: #555;
	font-size: 1.2rem;
	font-weight: 500;
}

.board_title .subject {
	text-align: center;
}

.mobile_info {
	display: none;
}


/* ========================================
   REVIEW
======================================== */

.review_star {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.review_star i {
	color: #f2ad22;
	font-size: 1.2rem;
}

.review_star span {
	font-size: 1.2rem;
	color: #555;
}


/* ========================================
   QNA STATUS
======================================== */

.qna_list .subject i {
	margin-right: 6px;
	font-size: 1.1rem;
	color: #999;
}

.qna_status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 68px;
	height: 28px;
	padding: 0 10px;
	font-size: 1.1rem;
}

.qna_status.complete {
	background: #111;
	color: #fff;
}

.qna_status.waiting {
	background: #f2f2f2;
	color: #777;
}


/* ========================================
   BOARD ACCORDION
======================================== */

.board_item {
	border-bottom: 1px solid #ddd5c8;
}

.board_toggle {
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
	background: #fff;
	font: inherit;
	color: inherit;
	text-align: inherit;
	cursor: pointer;
	transition: background .25s;
}

.board_toggle:hover {
	background: #fafafa;
}

.board_item.active .board_toggle {
	background: #fafafa;
}


/* 펼쳐지는 영역 */

.board_content {
	display: grid;
	grid-template-rows: 0fr;
	overflow: hidden;
	background: #fafafa;
	transition: grid-template-rows .4s ease;
}

.board_item.active .board_content {
	grid-template-rows: 1fr;
}

.board_content_inner {
	min-height: 0;
	overflow: hidden;
	box-sizing: border-box;
	padding: 0 30px;
	opacity: 0;
	transform: translateY(-6px);
	transition:
		padding .4s ease,
		opacity .25s ease,
		transform .4s ease;

		
}

.board_item.active .board_content_inner {
 	padding: 30px;
	opacity: 1;
	transform: translateY(0);
}

/* ========================================
   QNA CONTENT
======================================== */

 
.qna_question, .qna_answer { display: flex; align-items: flex-start; gap: 20px; }
.qna_answer { margin-top:20px; padding-top:20px; border-top:1px solid #ddd5c8; }
.qna_label { flex: 0 0 34px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: #222; color: #fff; font-size: 1.4rem; font-weight: 600; }
.qna_answer .qna_label { background: #777; }
.qna_question > div, .qna_answer > div { flex: 1; min-width: 0;}

 
 
 


/* ========================================
   MOBILE
======================================== */



/* ========================================
   SECRET QNA PASSWORD
======================================== */

.secret_password {
	display: grid;
	grid-template-rows: 0fr;
	overflow: hidden;
	background: #fafafa;
	transition: grid-template-rows .35s ease;
}

.secret_item.password_open .secret_password {
	grid-template-rows: 1fr;
}

.secret_password_inner {
	min-height: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 2rem;
	padding: 0 30px;
	opacity: 0;
	transition:
		padding-top .35s ease,
		padding-bottom .35s ease,
		opacity .25s ease;
}

.secret_item.password_open .secret_password_inner {
	padding-top: 30px;
	padding-bottom: 30px;
	opacity: 1;
}

.secret_password_icon {
	flex: 0 0 4.4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.4rem;
	height: 4.4rem;
	border-radius: 50%;
	background: #222;
	color: #fff;
	font-size: 1.5rem;
}

.secret_password_text {
	flex: 1;
	min-width: 0;
}

.secret_password_text strong {
	display: block;
	margin-bottom: 4px;
	color: #222;
	font-size: 1.4rem;
	font-weight: 600;
}

.secret_password_text p {
	margin: 0;
	color: #888;
	font-size: 1.2rem;
}

.secret_password_form {
	flex: 0 0 30rem;
	display: flex;
}

.secret_password_input {
	width: 100%;
	height: 4.4rem;
	padding: 0 13px;
	border: 1px solid var(--gray-300);
	border-right: 0;
	background: #fff;
	outline: none;
	font-size: 1.3rem;
}

.secret_password_input:focus {
	border-color: #222;
}

.secret_password_btn {
	flex: 0 0 7rem;
	height: 4.4rem;
	border: 0;
	background: #222;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 500;
	cursor: pointer;
}

.secret_password_btn:hover {
	background: #444;
}

.secret_password_error {
	display: none;
	flex: 0 0 100%;
	margin: 8px 0 0;
	color: #d14b4b;
	font-size: 1.15rem;
}


/* 비밀번호 오류 */

.secret_item.password_error .secret_password_input {
	border-color: #d14b4b;
}

.secret_item.password_error .secret_password_error {
	display: block;
}


/* 모바일 */



 
/* ========================================
   REVIEW / QNA WRITE
======================================== */
 
.write_head {
	margin-bottom: 40px;
	text-align: center;
}

.write_head h2 {
	margin: 0 0 10px;
	font-size: 3.2rem;
	line-height: 1.3;
	font-weight: 600;
	color: var(--black);
}

.write_head p {
	margin: 0;
	color: #888;
	font-size: 1.4rem;
}


/* 상품정보 */

.write_product {
	display: flex;
	align-items: center;
	gap: 2.2rem;
	margin-bottom: 40px;
	padding: 20px;
	background: var(--gray-100);
}

.write_product .thumb {
	flex: 0 0 10rem;
	width: 10rem;
	height: 10rem;
	overflow: hidden;
	background: #eee;
}

.write_product .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.write_product .info {
	min-width: 0;
}

.write_product .category {
	display: block;
	margin-bottom: 5px;
	color: #999;
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: .08em;
}

.write_product .info strong {
	display: block;
	color: #222;
	font-size: 1.6rem;
	font-weight: 600;
}

.write_product .info p {
	margin: 6px 0 0;
	color: #888;
	font-size: 1.2rem;
}


/* ========================================
   별점
======================================== */

.rating_box {
	display: flex;
	align-items: center;
	gap: .8rem;
}

.rating_box label {
	position: relative;
	display: flex;
	align-items: center;
	gap: .7rem;
	min-height: 4.6rem;
	padding: 0 14px;
	border: 1px solid var(--gray-300);
	border-radius: .6rem;
	background: #fff;
	cursor: pointer;
	transition: .2s;
}

.rating_box label:hover {
	border-color: #bbb;
}

.rating_box label:has(input:checked) {
	border-color: var(--black);
	background: #fafafa;
	box-shadow: 0 0 0 1px var(--black);
}

.rating_box input {
	width: 1.5rem;
	height: 1.5rem;
	margin: 0;
	accent-color: var(--black);
}

.rating_box label > span {
	font-size: 1.2rem;
	font-weight: 500;
	color: #555;
}

.rating_box .stars {
	display: flex;
	gap: .15rem;
	color: #f2ad22;
	font-size: 1.2rem;
}


/* ========================================
   WRITE OPTION
======================================== */

.write_option {
	margin: 10px 0 25px;
 
}

.write_option .check {
	align-items:center; gap:10px;
	margin-bottom:10px; 
}

.write_option .check > span {
	display: block;
     color: #333;
    font-size: 1.6rem;
    font-weight: 600;
 
 	
}

.write_option small {
	display: block;
	margin-top: 3px;
	color: #999;
	font-size: 1.1rem;
	font-weight: 400;
	display:none
}


/* textarea */

.review_form .textarea,
.qna_form .textarea {
	min-height: 24rem;
	line-height: 1.7;
}


/* file */

.contact_file input[type="file"] {
	max-width: 100%;
	color: #666;
	font-size: 1.4rem;
}

.contact_file input[type="file"]::file-selector-button {
	height: 3.4rem;
	margin-right: 10px;
	padding: 0 14px;
	border: 1px solid var(--gray-300);
	border-radius: .4rem;
	background: #fff;
	color: #555;
	font-size: 1.4rem;
	cursor: pointer;
}
 

/* ========================================
   MOBILE
======================================== */


@media (max-width:900px) {

		.shop_intro h2 {font-size:3rem;}
		.product_info h3 {font-size:1.8rem;}
		.product_detail_info h1 {font-size:2.7rem;}
		.product_detail_price strong {font-size:2.5rem;}
		.product_total strong {font-size:2.1rem;}
		#deliveryInfo h3 {font-size:2.2rem;}
		.review_summary .score > strong {font-size:3.4rem;}

		.shop_intro {align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:25px;}
		.shop_intro p {max-width:none;}



		.shop_toolbar {align-items:center;padding:18px 0;}
		.product_grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px;}

		.product_detail {grid-template-columns:1fr;gap:40px;}
		.product_gallery {grid-template-columns:7rem 1fr;gap:12px;}
		.product_detail_info {position:static;}
		.product_detail_tabs {margin-top:50px;}


		.board_head { align-items: center; gap: 15px; margin-bottom: 22px; }
		.board_head h3 { margin-bottom: 0; font-size: 2rem; }
		.board_head p { display: none; }
		.board_btn { min-width: 86px; height: 40px; padding: 0 15px; font-size: 1.2rem; }


		/* Review Summary */

		.review_summary { padding: 24px; }
		.review_summary .score { gap: 17px; }

		/* Board */

		.board_title { display: none; }
		.board_row { grid-template-columns: 1fr auto; min-height: auto; padding:13px; }
		.board_row > div { padding: 0; }
		.board_row .num, .board_row .writer, .board_row .date { display: none; }
		.board_row .subject { min-width: 0; padding-right: 15px; }

		.mobile_info { display: flex; align-items: center; gap: 12px; margin-top: 7px; font-size: 1.1rem; color: #999; }

		.board_row .hit { min-width: 70px; }



		/* QNA Content */
		.board_item .board_content_inner {padding:0 15px}
		.board_item.active .board_content_inner {padding:15px}

		.qna_question, .qna_answer { gap: 14px;}
		.qna_label { flex-basis: 30px; width: 30px; height: 30px; font-size: 1.2rem; }

		.secret_password_inner { flex-wrap: wrap; gap: 1.2rem; padding-left: 20px; padding-right: 20px; }
		.secret_item.password_open .secret_password_inner { padding-top: 25px; padding-bottom: 25px; }
		.secret_password_icon { flex-basis: 3.8rem; width: 3.8rem; height: 3.8rem; }
		.secret_password_text { width: calc(100% - 5rem); }
		.secret_password_form { flex: 0 0 100%; width: 100%; }
		.secret_password_error { width: 100%; }

		.rating_box { flex-wrap: wrap; } 

		.write_head { margin-bottom: 30px; }
		.write_head h2 { font-size: 2.3rem; }

		/* 상품 */

		.write_product { gap: 1.5rem; margin-bottom: 30px; padding: 15px; }
		.write_product .thumb { flex-basis: 8rem; width: 8rem; height: 8rem; }
		.write_product .info strong { font-size: 1.4rem; }


		/* 별점 */

		.rating_box { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
		.rating_box label { min-width: 0; padding: 0 10px; }
		.rating_box .stars { font-size: 1rem; }

		/* 버튼 */

		.contact_actions .btn { flex: 1; min-width: 0; }
		.price_row .cart_btn {display:none}
}




/* ========================================
   CATEGORY
======================================== */

.category_nav {
    padding:0;
    border-bottom:1px solid #ddd5c8;
}

.category_buttons,
.subcategory_buttons {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
	
}

.category_btn {
    position:relative;
    padding:10px 17px;
    border:0;
    border-radius:0;
    background:transparent;
    color:#7a827e;
    font-size:1.65rem;
    font-weight:500;
    cursor:pointer;
    transition:.2s;
}

.category_btn:hover {
    color:var(--green);
}

.category_btn.active {
    color:var(--green);
    font-weight:700;
}

.category_btn.active:after {
    content:"";
    position:absolute;
    left:18px;
    right:18px;
    bottom:-1px;
    height:3px;
    background:var(--green);
}


/* 2차 */
.subcategory_nav {
    padding:13px 0;
    border-bottom:0;
}

.subcategory_nav .category_btn {
    padding:6px 15px;
    color:#8a918d;
    font-size:1.5rem;
}

.subcategory_nav .category_btn:first-child {
    padding-left:0;
}

.subcategory_nav .category_btn + .category_btn:before {
    content:"";
    position:absolute;
    left:0;
    top:50%;
    width:1px;
    height:11px;
    background:#ddd5c8;
    transform:translateY(-50%);
}

.subcategory_nav .category_btn.active {
    color:var(--green);
}

.subcategory_nav .category_btn.active:after {
    display:none;
}


/* select 기본 숨김 */
.category_select,
.subcategory_select {
    display:none;
}

@media (max-width:900px) {

    .category_nav,
    .subcategory_nav {
        border-bottom:0;
        padding:0;
    }

    .category_buttons,
    .subcategory_buttons {
        display:none;
    }

    /* 1차 + 2차 셀렉트 공통 */
    .category_select,
    .subcategory_select {
        display:block;
        width:100%;
        height:44px;
        padding:0 38px 0 12px;
        border:1px solid #ddd5c8;
        border-radius:.6rem;
        background:#fff;
        color:#39443f;
        font-size:1.3rem;
        font-weight:500;
        outline:none;
        box-sizing:border-box;
    }

    .category_select:focus,
    .subcategory_select:focus {
        border-color:var(--green);
    }

    /* 두 셀렉트를 가로 배치 */
    .category_nav_wrap {
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:8px;
        margin-bottom:18px;
    }
}