.stocks_wrapper,
.stocks_detail_wrapper {
  margin: 0 auto;
  padding-top: 6.08888vw;
  width: auto;
}

.stocks_detail_wrapper {
  margin: 0 auto;
  padding-top: 3.08888vw;
  width: auto;
}

#cat-breadcrumbs {
  margin-top: 1.877777vw;
  font-size: .72917vw;
  overflow: hidden;
  position: relative;
}

#cat-breadcrumbs ul li {
  display: flex;
  float: left;
  align-items: center;
}

#cat-breadcrumbs ul li a:hover {
  color: #ee001e;
}

#cat-breadcrumbs ul li a {
  transition: 0.3s;
}

#cat-breadcrumbs ul li+li {
  position: relative;
  padding-left: 1.875vw;
}

#cat-breadcrumbs ul li+li:before {
  content: ">";
  position: absolute;
  left: 0.78125vw;
  letter-spacing: 0.07em;
  color: #777;
}

.detail_section_wrapper {
  margin-bottom: 3em;
}

.stocks_wrapper .section.layout01,
.stocks_detail_wrapper .section.layout01 {
  padding: 0;
  overflow: hidden;
}

.detail_section_wrapper .block_column_img,
.detail_section_wrapper .block_column_desc {
  width: 100%;
  overflow: hidden;
}

/* 오른쪽 */
.detail_section_wrapper .block_column_desc {
  padding: 1em;
}

.product_detail_wrapper01 {
  margin-top: 1.25417vw;
}

.product_detail_desc {
  font-size: 1.25417vw;
  line-height: 2.5;
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}

.product_detail_desc span {
  font-weight: normal;
  color: #222;
  min-width: 6em;
  flex-shrink: 0;
}

.product_detail_price {
  font-size: 1.82227vw;
  color: #ee001e;
  font-weight: bold;
}

.product_detail_wrapper03 {
  margin: 2.33333vw 0;
}

.product_detail_wrapper03 a:hover {
  color: #ee001e;
  border: 1px solid #ee001e;
  background: #fff;
}

.product_detail_wrapper03 a {
  color: #fff;
  padding: 0.4vw 1vw;
  border-radius: 3vw;
  background: #ee001e;
  transition: 0.3s;
}

.product_detail_wrapper04 {
  padding: 1.5625vw;
  background: #f1f1f1;
}

.product_detail_wrapper04 .product_detail_desc span {
  display: block;
  font-weight: bold;
  font-size: 0.897777vw;
}

/* 왼쪽 - 이미지 컬럼 */
.detail_section_wrapper .block_column_img {
  position: relative;
}

/* 메인 이미지 스타일 - 세로 긴 이미지 문제 해결 */
.detail_section_wrapper .block_column_img > img {
  width: 100%;
  max-width: 100%;
  max-height: 500px; /* 높이 제한 추가 */
  object-fit: contain; /* 비율 유지 */
  background-color: #f1f1f1;
}

/* 메모 텍스트 */
.block_column_img p.memo {
  display: none;
  margin-top: 10px;
  clear: both;
}

/* 이미지 리스트 */
.picture_list {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.picture_list li {
  float: left;
}

/* 썸네일 아이템 */
.picture_list_item {
  background-color: rgb(241, 241, 241);
  display: block;
  position: relative;
  overflow: hidden;
}

/* 썸네일 이미지 */
.picture_list_item img {
  width: 100%;
  object-fit: contain;
  transition: 0.3s;
  cursor: pointer;
}

/* 제품 상세 스타일 - key 라벨 */
.product_detail_wrapper01 .product_detail_desc span,
.product_detail_wrapper02 .product_detail_desc span {
  font-weight: normal;
  font-size: 0.9vw;
  padding: 0.2em 0.8em;
  color: #fff;
  background: #001b2d;
  border-radius: 3px;
  text-align: center;
  white-space: nowrap;
}

/* 모바일 환경 설정 */
@media (max-width: 768px) {
  /* 메인 이미지 - 표시되도록 설정 변경 */
  .detail_section_wrapper .block_column_img > img {
    display: block; /* none에서 block으로 변경 */
    max-height: 350px;
    width: 100%;
    margin: 0 auto;
  }
  
  /* 썸네일 컨테이너 세로 정렬 */
  .picture_list {
    display: block;
    width: 100%;
  }

  /* 썸네일 리스트 아이템 - 세로로 한 열로 배치 */
  .picture_list li {
    width: 100%;
    padding: 5px 0;
    float: none;
  }
  
  /* 썸네일 아이템 크기 설정 */
  .picture_list_item {
    width: 100%;
    height: auto;
    padding-bottom: 0;
  }
  
  /* 썸네일 이미지 크기 설정 */
  .picture_list_item img {
    position: static;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
  }
  
  /* 모바일 텍스트 크기 조정 */
  #cat-breadcrumbs {
    font-size: 16px;
    padding: 0 1em;
  }
  
  .product_detail_desc {
    font-size: 14px;
    line-height: 2;
    display: flex;
    align-items: baseline;
    gap: 0.5em;
  }

  .product_detail_desc span {
    min-width: 5em;
    font-size: 14px;
  }

  .product_detail_wrapper04 .product_detail_desc span {
    font-size: 14px;
  }

  .product_detail_wrapper03 a {
    padding: 1vw 2vw;
  }

  .product_detail_wrapper01 .product_detail_desc span {
    font-size: 14px;
  }
  
  .detail_section_wrapper {
    margin-bottom: 0;
  }
  
  /* 메모 텍스트 표시 설정 */
  .block_column_img p.memo {
    display: block;
    font-size: 12px;
    text-align: center;
    margin: 10px 0;
  }
}

/* no-image 스타일 */
.detail_section_wrapper.no-image .block_column_img > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  background-color: #f1f1f1;
  font-size: 1.9167vw;
  color: rgba(0,0,0,0.5);
}

.detail_section_wrapper.no-image .block_column_desc {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

.detail_section_wrapper.no-image .block_column_desc > div:not(:first-child) {
  width: 50%;
  height: fit-content;
  margin-top: 20px;
}

/* 데스크톱 환경 설정 */
@media (min-width: 768px) {
  .stocks_detail_wrapper {
    margin: 0 auto;
    width: 75vw;
  }

  .section.layout01 {
    padding: 0 40px;
  }

  /* 오른쪽 컬럼 */
  .detail_section_wrapper .section_ttl {
    font-size: 1.9167vw;
  }

  .detail_section_wrapper .block_column_desc {
    padding: 0;
    display: block;
    float: right;
    width: 32vw;
  }

  .product_detail_desc {
    line-height: 2.2;
    display: flex;
    align-items: baseline;
    gap: 0.8em;
  }

  .product_detail_desc span {
    min-width: 6em;
  }

  /* 왼쪽 컬럼 */
  .detail_section_wrapper .block_column_img {
    width: 52.88888%;
    float: left;
    padding-top: 0.9vw;
  }

  /* 메모 텍스트 표시 */
  .block_column_img p.memo {
    display: inline-block;
    margin-top: 1vw;
    font-size: .87777vw;
  }

  /* 썸네일 설정 */
  .picture_list_item {
    margin: 0;
    margin-top: 1.5625vw;
    width: calc(25% - 1.35417vw);
    padding: 0;
    height: 0;
    padding-bottom: calc(25% - 1.35417vw); /* 비율 유지 */
  }

  .picture_list_item:nth-child(4n),
  .picture_list_item:nth-child(4n-2),
  .picture_list_item:nth-child(4n-1) {
    margin-left: 1.79417vw;
  }
  
  .picture_list_item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .picture_list_item img:hover {
    transform: scale(1.05);
    opacity: .6;
  }

  .picture_list_item.is-selected img {
    transform: scale(1.05);
    opacity: .6;
  }

  /* no-image */
  .detail_section_wrapper.no-image .block_column_img {
    width: 100%;
  }
}

/* 대형 화면 설정 */
@media (min-width: 1920px) {
  .detail_section_wrapper .block_column_img > img {
    max-height: 600px;
  }
}

/* 작은 모바일 화면 설정 */
@media (max-width: 767px) {
  .detail_section_wrapper.no-image .block_column_img > div {
    height: 100px;
    font-size: 16px;
  }
  
  /* no-image */
  .detail_section_wrapper.no-image .block_column_desc > div:not(:first-child) {
    width: 100%;
  }
}
