/* detail.css - 상품 상세 및 본문 스타일 */
/* font */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;600;700;900&display=swap");
@font-face {
  font-family: "Noto Sans KR";
  src: local("NotoSansKR-Regular");
  src: url("/fonts/NotoSansKR-Regular.eot") format("embedded-opentype"),
  url("/fonts/NotoSansKR-Regular.woff") format("woff"),
  url("/fonts/NotoSansKR-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Noto Sans KR";
  src: local("NotoSansKR-Medium");
  src: url("/fonts/NotoSansKR-Medium.eot") format("embedded-opentype"),
  url("/fonts/NotoSansKR-Medium.woff") format("woff"),
  url("/fonts/NotoSansKR-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
}
@font-face {
  font-family: "Noto Sans KR";
  src: local("NotoSansKR-Bold");
  src: url("/fonts/NotoSansKR-Bold.eot") format("embedded-opentype"),
  url("/fonts/NotoSansKR-Bold.woff") format("woff"),
  url("/fonts/NotoSansKR-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
}
@font-face {
  font-family: "Noto Sans KR";
  src: local("NotoSansKR-Black");
  src: url("/fonts/NotoSansKR-Black.eot") format("embedded-opentype"),
  url("/fonts/NotoSansKR-Black.woff") format("woff"),
  url("/fonts/NotoSansKR-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
}

@font-face {
  font-family: "Tahoma";
  src: local("Tahoma");
  src: url("/fonts/Tahoma-Regular.otf") format("embedded-opentype"),
  url("/fonts/Tahoma-Regular.woff") format("woff"),
  url("/fonts/Tahoma-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: "Tahoma";
  src: local("Tahoma");
  src: url("/fonts/Tahoma-Bold.otf") format("embedded-opentype"),
  url("/fonts/Tahoma-Bold.woff") format("woff"),
  url("/fonts/Tahoma-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: bold;
}

/* 공통 */
*, *::before, *::after {
  box-sizing: border-box;
}


article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
.contents {
  display: block; /* 단일 컬럼 유지 */
  padding: 20px 0 150px 0;
  max-width: 740px; /* 이미지에 보이는 컨텐츠 최대 너비 가정 */
  margin: 0 auto; /* 중앙 정렬 */
  /* contents 영역 배경 및 border 제거 */
  background-color: transparent;
  border-radius: 0;
  box-sizing: border-box; /* 패딩 포함하여 너비 계산 */
}
.contents_wrap {
  margin: auto;
}
/* 공통 추가 */
a {
  font: inherit;
  text-decoration: none;
}
section {
  width: 1210px;
  margin: auto;
}
button,
label {
  cursor: pointer;
}
@media screen and (max-width: 1024px) {
  .contents {
    padding: 20px; /* 모바일 패딩 유지 */
    max-width: 100%;
    background-color: transparent; /* 모바일에서도 배경 제거 */
    border-radius: 0;
  }
  .contents_wrap {
    min-width: unset;
    margin: auto;
    overflow: hidden;
  }
  section {
    width: 100%;
  }
  section.detail_visual {
    height: 57px;
  }
}

@media screen and (max-width: 500px) {
  div.paging a {
    padding: 2px 3px;
  }
  .tab-menu {
    margin-bottom: 0;
  }
  .detail-infos {
    margin-top: 0;
  }
}


body {
  background: #fafafa;
}
.main {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  padding: 0 24px 40px 24px;
  align-items: flex-start;
}
.img-section {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.main-img {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 16px;
  background: #eee;
}
.thumb-list {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.thumb {
  width: 40px;
  height: 40px;
  background: #ddd;
  border-radius: 4px;
  border: 2px solid #eee;
  cursor: pointer;
}
.info-section {
  flex: 1 1 45%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 32px 32px 32px 32px;
  min-width: 340px;
}
.product-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.product-sub {
  font-size: 16px;
  color: #444;
  margin-bottom: 12px;
}
.tag-list {
  margin-bottom: 8px;
}
.tag {
  display: inline-block;
  background: #f5f5f5;
  color: #d32f2f;
  font-size: 13px;
  border-radius: 12px;
  padding: 2px 10px;
  margin-right: 4px;
  margin-bottom: 2px;
}
.price-big {
  color: #d32f2f;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}
.info-list {
  font-size: 15px;
  color: #222;
  margin-bottom: 18px;
  padding: 0;
}
.info-list li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-list li .icon {
  font-size: 15px;
  color: #888;
}
.select-row {
  margin-bottom: 12px;
}
.select-row select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  background: #fafafa;
}
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 16px 0;
}
.total-row .label {
  color: #888;
  font-size: 16px;
  font-weight: 400;
}
.buy-btn {
  width: 100%;
  background: #002855;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 16px 0;
  cursor: pointer;
  transition: background 0.2s;
}
.buy-btn:hover {
  background: #001a40;
}
.pay-btn {
  width: 100%;
  background: #002855;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 16px 0;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.pay-btn:hover {
  background: #001a40;
}
.point-btn {
  background: #343B40;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.2s;
}
.point-btn:hover {
  background: #001a40;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
}
.btn-group .btn {
  font-weight: 700;
}
.btn-group.is-single .btn {
  width: 100%;
  padding: 16px 0;
  background: #002855;
}

.btn-group.is-double .btn {
  width: calc(50% - 5px); /* gap 고려해서 반씩 나누기 */
}

.btn {
  border: none;
  font-size: 16px;
  padding: 12px 0;
  border-radius: 4px;
  cursor: pointer;
  color: #fff;
  text-align: center;
}
.btn a {
  color: #fff;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}
.btn-home {
  background-color: #343B40;
}
.btn-cancel-modal {
  background-color: #FF4349;
}
.is_show {
  display: block !important;
}

@media (max-width: 900px) {
  .main {
    flex-direction: column;
    gap: 24px;
  }
  .info-section, .img-section {
    min-width: unset;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .main {
    flex-direction: column;
    gap: 16px;
    padding: 0 2vw 24px 2vw;
  }
  .img-section {
    align-items: stretch;
  }
  .main-img {
    max-width: 100vw;
    min-width: 0;
    border-radius: 6px;
    margin-bottom: 10px;
  }
  .thumb-list {
    gap: 4px;
    flex-wrap: wrap;
  }
  .thumb {
    width: 32px;
    height: 32px;
  }
  .info-section {
    padding: 16px 8px;
    font-size: 14px;
    min-width: unset;
    width: 100%;
  }
  .product-title {
    font-size: 20px;
  }
  .price-big {
    font-size: 22px;
  }
  .total-row {
    font-size: 15px;
  }
  .buy-btn, .pay-btn {
    font-size: 16px;
    padding: 12px 0;
  }
  .detail-section {
    padding: 0 2vw;
  }
  .tab-menu {
    justify-content: flex-start;
    font-size: 13px;
    gap: 12px;
  }
  .detail-img {
    max-width: 100vw;
  }
}
@media (max-width: 640px) {
  .btn-group.is-double .btn {
    width: 100%;
  }
}
/* 상품 상세 설명 영역 */
.detail-section {
  max-width: 1200px;
  margin: 0 auto 150px auto;
  padding: 0 24px;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tab-menu {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 32px;
  max-width: 800px;
  width: 100%;
  border-bottom: 2px solid #222;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 500;
}
.tab {
  padding: 12px 0 10px 0;
  cursor: pointer;
  color: #888;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}
.tab.active {
  color: #222;
  border-bottom: 2px solid #222;
  font-weight: 700;
}
.product-no {
  width: 100%;
  text-align: left;
  font-size: 14px;
  color: #444;
  margin-bottom: 24px;
  margin-top: 8px;
  max-width: 800px;
}
.quote {
  width: 100%;
  max-width: 800px;
  font-size: 20px;
  font-style: italic;
  color: #222;
  margin: 0 0 24px 0;
  padding-left: 8px;
  border-left: 4px solid #222;
  background: #fafafa;
}
.divider {
  width: 100%;
  max-width: 800px;
  border: none;
  border-top: 2px solid #eee;
  margin: 24px 0;
}
.detail-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.detail-img {
  max-width: 800px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  background: #eee;
}
.selected-options {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 16px auto;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px 16px;
  box-sizing: border-box;
  min-height: 32px;
}
.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}
.option-item:last-child {
  border-bottom: none;
}
.option-label {
  flex: 1 1 auto;
  color: #222;
}
.option-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ccc;
  background: #fff;
  color: #002855;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.qty-btn:hover {
  background: #e3eaf6;
}
.qty {
  width: 32px;
  text-align: center;
  font-size: 15px;
  border: none;
  background: transparent;
}
.option-price {
  min-width: 70px;
  text-align: right;
  color: #002855;
  font-weight: 700;
}
.option-del {
  background: none;
  border: none;
  color: #e53935;
  font-size: 18px;
  cursor: pointer;
  margin-left: 8px;
}
