/* ---------------- - Bread_crumb - ---------------- */

.Bread_crumb {
  width: 1090px;
  margin: 20px auto 0 auto;
  overflow: hidden;
  background-color: #E6E0DB;
  border-radius: 10px 10px 0 0;
}

.Bread_crumb ul {
  float: left;
  padding-left: 12px;
}

.Bread_crumb ul li {
  float: left;
  padding: 10px;
  box-sizing: border-box;
}

.Bread_crumb .icon_home {
  width: 32px;
  height: 32px;
  display: block;
}

.Bread_crumb .icon_home img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ---------------- - Detail_product - ---------------- */

.product_main_detail {
  width: 1090px;
  margin: 0 auto;
  display: flex;
}

.product_left {
  margin-right: 10px;
}

.product_left_bottom {
  width: 540px;
  height: 100px;
  display: flex;
}

.deatail_sub_img {
  width: 130px;
}

.product_left_top {
  width: 540px;
  min-width: 540px;
  height: 600px;
  position: relative;
  overflow: hidden;
  border-radius: 0 16px 0 0;
}

#mainProductImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.deatail_sub_img label {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.deatail_sub_img label.active {
  border-color: #2C5C6B;
}

.product_right {
  width: 540px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

/* ------------------ 1. TOP 영역 (카테고리 & 가격) ------------------ */

.product_right_top {
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.product_category {
  height: 38px;
  background-color: #E6E0DB;
  border-radius: 10px 10px 0 0;
  display: flex;
  padding-left: 16px;
  line-height: 38px;
}

.product_category li {
  margin-right: 10px;
  font-size: 14px;
  color: #555;
}

.product_category li:nth-child(2) {
  color: #aaa;
}

.product_txt {
  min-height: 80px;
  padding: 12px 16px;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product_txt > p:first-child {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 5px;
}

.product_txt .original_price {
  color: #555;
  text-decoration: line-through;
  font-size: 20px;
}

.product_txt .total_price {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 10px;
  margin-top: 5px;
}

.product_txt .discount_rate {
  color: #2C5C6B;
  font-size: 24px;
  font-weight: bold;
}

.product_txt .current_price {
  font-size: 32px;
  font-weight: bold;
  color: #333;
}

/* ------------------ 2. MIDDLE 영역 (배송 & 옵션) ------------------ */

.product_right_middle {
  border-bottom: 1px solid #eee;
}

.info_delivery {
  border-bottom: 1px solid #eee;
}

.title_delivery {
  height: 40px;
  padding-left: 16px;
  background-color: #E6E0DB;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.title_delivery label {
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.title_delivery label img {
  display: none;
}

.title_delivery label::before {
  content: '\25BC';
  font-size: 14px;
  color: #555;
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  margin-right: 10px;
  transition: transform 0.3s ease-in-out;
}

.sheet_delivery {
  display: none;
  height: 136px;
  background-color: #F5F5F5;
  padding: 20px;
  font-size: 14px;
  color: #444;
}

.sheet_delivery p {
  padding-bottom: 4px;
}

.sheet_delivery b {
  font-weight: bold;
}

#btn_plus {
  display: none;
}

#btn_plus:checked ~ .title_delivery label::before {
  transform: rotate(180deg);
}

#btn_plus:checked ~ .sheet_delivery {
  display: block;
}

.info_product {
  background-color: #F5F5F5;
  padding: 20px 16px;
}

.select_product {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 15px 10px;
  align-items: center;
}

.select_product p {
  font-weight: 600;
  font-size: 15px;
}

.select_product select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-position: right 10px center;
  cursor: pointer;
  background-color: white;
  font-size: 14px;
  color: #333;
}

.select_product select option[disabled] {
  color: #888;
}

.Qty_product {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background-color: #BAD4DD;
  padding: 15px;
  border-radius: 6px;
  margin-top: 20px;
  color: #333;
}

.Qty_result_txt {
  grid-column: 1 / span 2;
  margin-bottom: 10px;
}

.Qty_result_txt h3 {
  display: inline;
  font-size: 15px;
  margin-right: 5px;
}

.Qty_result_txt p {
  display: inline;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

.Qty_result_txt .btn_minus {
  font-weight: bold;
  margin-right: 5px;
}

.Qty_result_txt .btn_plus {
  color: #555;
}

.calc_Qty {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 8%;
}

.btn_Qty {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  height: 28px;
  width: 100px;
}

.Qty_current_price {
  font-weight: bold;
  font-size: 18px;
  text-align: right;
  flex-grow: 1;
}

.btn_Qty div {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex-grow: 1;
  height: 100%;
  background-color: #fff;
  font-weight: bold;
  font-size: 14px;
  line-height: 14px;
  color: #333;
}

.result_price {
  padding: 20px 0 0 0;
  border-top: 1px dashed #ccc;
  margin-top: 20px;
}

.result_price h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.Amount_summation {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.Amount_summation p {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.Amount_summation p span:first-child {
  color: #333;
}

.Amount_summation p span:last-child {
  font-weight: 500;
  color: #333;
}

.Amount_summation p.discount span:last-child {
  color: #44667A;
}

.result_price .total_price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 2px solid #333;
  padding-top: 15px;
}

.result_price .total_price p:first-child {
  font-weight: 600;
  font-size: 18px;
}

.result_price .total_price p:last-child {
  font-weight: bold;
  font-size: 28px;
  color: #2C5C6B;
}

/* ------------------ 3. BOTTOM 영역 (버튼) ------------------ */

.product_right_bottom {
  padding: 10px;
  background-color: white;
}

.btn_btn_product {
  display: flex;
  gap: 10px;
  height: 52px;
}

.btn_like_heart {
  border: 1px solid #ccc;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
  background-color: white;
}

.product_right_bottom .btn_like_heart {
  flex-grow: 0.05;
  flex-shrink: 0;
}

.btn_like_heart::before {
  content: '\2764';
  font-size: 24px;
}

/* 메인 버튼 하트 색상 (빨강) */
.product_right_bottom .btn_like_heart::before {
  color: #E74C3C;
}

.btn_shoppingcart {
  flex-grow: 1;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  font-weight: bold;
  font-size: 18px;
  color: #333;
  cursor: pointer;
}

.btn_pay {
  flex-grow: 1.5;
  background-color: #58798A;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn_pay:hover {
  background-color: #3f7e91;
}

.btn_like_heart:hover,
.btn_shoppingcart:hover {
  background-color: #f0f0f0;
}

/* ---------------- - Content Nav & Board - ---------------- */

.banner_detail {
  width: 1310px;
  margin: 24px auto;
}

.product_board {
  width: 1310px;
  margin: 0 auto 32px auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.notice_board_left {
  width: 870px;
}

.tab_input {
  display: none;
}

.board_tabs_nav {
  position: sticky;
  top: 180px;
  z-index: 50;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.board_tabs_nav ul {
  display: flex;
  background-color: #E6E0DB;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.board_tabs_nav li {
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.board_tabs_nav .tab_label {
  display: block;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  min-width: 100px;
  text-align: center;
}

.tab_content_sheet {
  display: none;
  background-color: #fff;
  padding: 30px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Tab Active Styles */
#tab1:checked ~ .board_tabs_nav .tab_label[for="tab1"],
#tab2:checked ~ .board_tabs_nav .tab_label[for="tab2"],
#tab3:checked ~ .board_tabs_nav .tab_label[for="tab3"],
#tab4:checked ~ .board_tabs_nav .tab_label[for="tab4"] {
  background-color: #fff;
  color: #333;
  font-weight: 600;
  border-bottom: 3px solid #58798A;
  margin-bottom: -1px;
}

#tab1:checked ~ #product_detail_container,
#tab2:checked ~ #review_sheet_container,
#tab3:checked ~ #content3,
#tab4:checked ~ #content4 {
  display: block;
}

/* ---------------- - Tab Content: Review - ---------------- */

.review_header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.review_header b {
  color: #44667A;
  font-weight: 700;
}

.photo_gallery_wrap {
  display: flex;
  gap: 10px;
  overflow: hidden;
  margin-bottom: 30px;
}

.photo_item {
  width: 210px;
  height: 210px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  color: #888;
  font-size: 14px;
  border: 1px solid #ddd;
}

.rating_summary_box {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.rating_score {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0 20px;
  flex-shrink: 0;
}

.rating_score .star_icon {
  font-size: 48px;
  color: #333;
  margin-bottom: 5px;
}

.rating_score .score {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.tag_list {
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.tag_item {
  padding: 4px 10px;
  border-radius: 15px;
  background-color: #f0f0f0;
  color: #555;
  font-weight: 500;
}

.rating_graph_container {
  flex: 1;
  padding-top: 20px;
  padding-right: 10px;
}

.rating_bar {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.rating_bar .label {
  width: 20px;
  color: #888;
  text-align: right;
  margin-right: 10px;
}

.rating_bar .bar_bg {
  flex-grow: 1;
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  position: relative;
}

.rating_bar .bar_fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #44667A;
  border-radius: 4px;
}

.rating_bar .count {
  width: 30px;
  text-align: right;
  color: #888;
}

.sort_write_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.sort_options {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #555;
}

.sort_options p {
  cursor: pointer;
  transition: color 0.1s;
}

.sort_options p:hover {
  color: #333;
  font-weight: 600;
}

.sort_options p.active {
  font-weight: 600;
  color: #333;
}

.write_review_button {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #44667A;
  cursor: pointer;
  transition: background-color 0.1s;
}

.write_review_button:hover {
  background-color: #f9f9f9;
}

.review_item {
  display: flex;
  padding: 20px 0;
  border-top: 1px solid #eee;
}

.review_item:last-child {
  border-bottom: 1px solid #eee;
}

.review_photo_small {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 10px;
  border: 1px solid #eee;
  background-size: cover;
  background-position: center;
}

.review_content_wrap {
  flex-grow: 1;
}

.review_meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.user_info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user_info .id {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.user_info .rating_stars {
  color: #FFC107;
  letter-spacing: 2px;
  font-size: 14px;
}

.review_date_etc {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #888;
  gap: 15px;
}

.review_date_etc .more_icon {
  cursor: pointer;
  font-size: 16px;
  color: #aaa;
}

.review_hashtags {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.review_hashtags .tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  background-color: #E6E0DB;
  color: #555;
  font-weight: 500;
}

.review_text {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.review_no_photo_text {
  padding-left: 0;
}

.more_reivew {
  text-align: center;
  margin-top: 30px;
}

.more_reivew > p {
  font-size: 16px;
  color: #888;
  cursor: pointer;
}

.review_title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.review_title h3 {
  font-size: 24px;
  font-weight: 700;
}

.review_write_button {
  background-color: #2C5C6B;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.review_write_button:hover {
  background-color: #1a424e;
}

/* ---------------- - Tab Content: Product Detail & Others - ---------------- */

.tab_content_wrapper {
  width: 100%;
}

.tab_inner_container {
  width: 1310px;
  margin: 0 auto;
}

.tab_content {
  display: none;
  padding: 50px 0;
  min-height: 500px;
}

.tab_content.active {
  display: block;
}

#product_detail_container img {
  width: 100%;
  height: auto;
  display: block;
}

#review_sheet_container {
  width: 100%;
  margin: 0 auto;
  padding-top: 40px;
}

.review_item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.review_meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #777;
}

.review_rating {
  color: gold;
  font-size: 16px;
}

.review_content p {
  line-height: 1.5;
  margin-bottom: 15px;
}

.review_img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #ddd;
}

#qna_sheet_container {
  width: 100%;
  padding-top: 12px;
}

.qna_header {
  margin-bottom: 20px;
}

.qna_header h3 {
  font-size: 24px;
  font-weight: 700;
}

.qna_write_button {
  background-color: #2C5C6B;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.qna_write_button:hover {
  background-color: #1a424e;
}

.qna_search_box {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 20px;
}

.qna_search_box input {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 250px;
  outline: none;
}

.qna_search_box .btn_search {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  color: #333;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.qna_search_box .btn_search:hover {
  background-color: #e0e0e0;
}

.qna_list_header,
.qna_item {
  display: flex;
  text-align: center;
  font-size: 15px;
  padding: 15px 10px;
  border-bottom: 1px solid #eee;
}

.qna_list_header {
  background-color: #f7f7f7;
  border-top: 2px solid #2C5C6B;
  font-weight: 600;
  color: #333;
}

.qna_item:hover {
  background-color: #fcfcfc;
}

.col_num {
  width: 8%;
  color: #999;
}

.col_title {
  width: 55%;
  text-align: left;
  padding-left: 10px;
  box-sizing: border-box;
}

.col_title a {
  transition: color 0.2s;
}

.col_title a:hover {
  color: #2C5C6B;
}

.col_author {
  width: 12%;
}

.col_date {
  width: 15%;
  color: #777;
}

.col_status {
  width: 10%;
  font-weight: 500;
}

.status_complete {
  color: #2C5C6B;
}

.status_pending {
  color: #ff5555;
}

.qna_secret_icon {
  margin-right: 5px;
  color: #777;
}

.qna_pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0 20px 0;
  gap: 5px;
}

.qna_pagination a {
  display: block;
  min-width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 0 8px;
  color: #333;
  font-size: 14px;
  transition: background-color 0.2s, border-color 0.2s;
}

.qna_pagination a:hover {
  background-color: #f0f0f0;
  border-color: #ddd;
}

.qna_pagination .page_number.active {
  background-color: #2C5C6B;
  color: white;
  border-color: #2C5C6B;
  font-weight: 600;
}

.qna_pagination .page_number.active:hover {
  background-color: #1a424e;
}

.tab_content_sheet p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* ---------------- - Remote Board - ---------------- */

.notice_board_right {
  width: 430px;
  height: 600px;
  flex-shrink: 0;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

  position: sticky;
  top: 240px;
  z-index: 50;
}

.remote_header {
  padding-bottom: 15px;
  border-bottom: 1px solid #A79B89;
  margin-bottom: 15px;
}

.remote_header span a {
  font-size: 12px;
  color: #888;
  margin-right: 5px;
}

.remote_header p {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-top: 5px;
}

.remote_options {
  margin-bottom: 20px;
}

.remote_options p {
  font-size: 14px;
  font-weight: 500;
  margin-top: 15px;
  margin-bottom: 5px;
}

.remote_options select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
}

.remote_qty_box {
  padding: 10px;
  border: 1px solid #BAD4DD;
  background-color: #eaf3f5;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.remote_final_price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 2px solid #333;
}

.remote_final_price p:first-child {
  font-size: 16px;
  font-weight: 600;
}

.remote_final_price p:last-child {
  font-size: 28px;
  font-weight: bold;
  color: #2C5C6B;
}

.remote_buttons {
  display: flex;
  gap: 10px;
  height: 50px;
  margin-top: 20px;
}

/* Remote Board Heart Button */
.notice_board_right .btn_like_heart {
  width: 50px;
  flex-shrink: 0;
}

/* Remote Board Heart Color (파랑 계열) */
.notice_board_right .btn_like_heart::before {
  color: #4897A8;
}

.btn_shoppingcart {
  flex-grow: 1;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.remote_buttons .btn_pay {
  flex-grow: 1.5;
  background-color: #58798A;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}