.container {
}
/* 컨테이너: 화면 99% */
.container{
  width: 98%;
  max-width: 98%;
  padding: 10px;
  margin: 0 auto;
}
/* ✅ 993px 이상(PC)에서는 Grid로 2열 고정 (지그재그/공백 해결) */
/* ✅ 993px 이상(PC)에서는 Grid로 2열 고정 (지그재그/공백 해결) */
@media (min-width: 993px){

  .product_view{
    display: grid !important;
    grid-template-columns: 1fr 37.2%;
    column-gap: 27px;
    align-items: start;
  }

  /* ✅ code_detail_name은 전체 너비 사용 (1~2열 모두) */
  .product_view .code_detail_name{
    grid-column: 1 / -1;  /* 전체 열 차지 */
    grid-row: 1;
    margin-bottom: 10px;
  }

  /* ✅ left는 1열, 2행 */
  .product_view .left{
    grid-column: 1;
    grid-row: 2;
    width: auto !important;
    float: none !important;
    display: block !important;
  }

  /* ✅ right는 2열, 2~3행 차지 + sticky */
  .product_view .right{
    grid-column: 2;
    grid-row: 2 / 4;
    width: 100% !important;
    min-width: 200px !important;
    max-width: 881px;
    margin-left: 0 !important;
    float: none !important;
    display: block !important;

    position: sticky;
    top: 130px;
    align-self: start;
  }

  /* ✅ 상세영역(.pd_content_con)은 1열, 3행 */
  .product_view .pd_content_con{
    grid-column: 1;
    grid-row: 3;
    width: auto !important;
    display: block !important;
    clear: none !important;
    margin-top: 40px;
  }

  /* 화면 줄어들면 간격만 줄이기 */
  @media (max-width: 1800px){
    .product_view{ column-gap: 30px; }
  }
}


@media (min-width: 1921px){

  .product_view{
    display: grid !important;
    grid-template-columns: 1fr 36.7%;
    column-gap: 27px;
    align-items: start;
  }
}










.sub-thumbnails{
    padding-bottom: 66.6%;
    position: relative;
    overflow: hidden;
    /* border: 1px solid #eee; */
}
.sub-thumbnails .main-image{
    max-width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    width: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.sub-thumbnails .bg-main-image{
    filter: blur(6px);
    height: 100%;
    left: 0;
    -o-object-fit: cover;
    object-fit: cover;
    opacity: .3;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
}
/*
.main-image {
	width: 100%;
	max-height: 500px;
	object-fit: cover;
}
*/
.thumbnails {
	display: flex;
    flex-wrap: wrap;
	gap: 5px;
	margin-top: 10px;
}
.thumbnail {
	width: 100px;
	height: 100px;
	object-fit: cover;
	cursor: pointer;
    border-radius: 0;
}
.thumbnail.active{
    border: 2px solid #000;
}
.product-info{
    padding: 30px 20px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}
.purchase-info {
	margin-top: 20px;
}
.purchase-info.order-quantity-box{
    margin: 40px 0;
    border-top: 2px solid #000;
    padding: 30px 0;
    border-bottom: 2px solid #000;
}
.purchase-info.order-quantity-box label{
    margin-bottom: 10px;
}
.product-name {
	font-size: 24px;
	font-weight: bold;
}
.product-description {
	margin-top: 20px;
	font-size: 16px;
	color: #555;
    padding: 20px 0 0;
    word-break: keep-all;
}
.option {
	margin-top: 30px;
}
.button-group{
    margin: 0 -5px;
}
.color-option .selected_values {
	background: #fff;
    border: 2px solid #ddd;
    width: calc(100% / 4 - 10px);
    margin: 5px;
    padding: 10px;
}
.option-img-wrap {
  position: relative;
  display: inline-block;
}

.soldout-diagonal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.soldout-diagonal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top left,
    transparent 49%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 1) 50%,
    transparent 51%
  );
 z-index: 1;
}
.color-option .selected_values.active .soldout-diagonal::before {
    background: linear-gradient(
    to top left,
    transparent 49%,
    rgba(43,179, 165, 1) 50%,
    rgba(43,179, 165, 1) 50%,
    transparent 51%
  );
}
.soldout-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.selected_values.soldout .soldout-line::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
    to top left,
    transparent 47.5%,
    rgba(221,221, 221, 1) 50%,
    rgba(221,221, 221, 1) 50%,
    transparent 51.5%
  );
}
.selected_values.soldout.active .soldout-line::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
    to top left,
    transparent 47.5%,
    rgba(43,179, 165, 1) 50%,
    rgba(43,179, 165, 1) 50%,
    transparent 51.5%
  );
}
.color-option .selected_values.active {
    border: 2px solid #2bb3a5;
    color: #2bb3a5;
}

.option select {
	padding: 10px;
	width: 100%;
    border: 1px solid #ddd;
}
.purchase-line ul {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  padding: 10px 0;
  margin: 0;
}

.purchase-line .purchase-name {
  font-weight: 700;
}

.purchase-line .scrollable-text {
  overflow-x: auto;
  white-space: nowrap;
}

.purchase-line .scrollable-text::-webkit-scrollbar {
  height: 4px;
}
.purchase-line .scrollable-text::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 2px;
}
.purchase-line .remove{
    position: absolute;
    top: 15px;
    right: 15px;
}
.purchase-line .remove button {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0px solid #ccc;
  cursor: pointer;
  font-weight: bold;
  color: #999;
  transform: scaleY(0.9);
}
.order-quantity-bg{
    background: #f7f7f7;
    padding: 30px 20px;
    border-radius: 10px;
    position: relative;
}
.order-quantity-bg + .order-quantity-bg{
    margin-top: 20px;
}
.order-quantity-bg .qty input {
  width: 50px;
  height: 34px;
  text-align: center;
}
.order-quantity-bg .qty input::-webkit-outer-spin-button,
.order-quantity-bg .qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.order-quantity-list{
    margin-top: 10px;
    overflow: hidden;
}
.order-quantity-list .qty{
    float: right;
}
.order-quantity-list .price{
    float: left;
    margin-top: 5px;
}
.order-quantity-list .item-quantity{
    width: 34px;
    height: 34px;
    background: #000;
    color: #fff;
    border: 0;
}
.purchase-info.final-order-amount{
    margin: 30px 0;
    padding: 30px 0 0;
    border-top: 2px solid #2bb3a5;
}
.final-order-amount .final-order-amount-title{
    display: inline-block;
    width: 160px;
    vertical-align: middle;
}
.final-order-amount .final-order-amount-txt{
    display: inline-block;
    width: calc(100% - 184px);
    margin-left: 20px;
    vertical-align: middle;
    text-align: right;
}
.store-footer-buttons > button{
    height: 60px;
    border: 0;
    border-radius: 0;
    vertical-align: middle;
}
.store-footer-buttons .sfb-1{
    width: 60px;
    background: #fff;
    border:1px solid #2bb3a5;
}
.store-footer-buttons .sfb-2{
    background: #2bb3a5;
    border:1px solid #2bb3a5;
    color: #fff;
}
.store-footer-buttons .sfb-3{
    background: #000;
    border:1px solid #000;
    color: #fff;
}
.store-footer-buttons .sfb-4{
    background: #fff;
    border:1px solid #2bb3a5;
    color: #2bb3a5;
}
.store-footer-buttons .sfb-1 img{
    max-width: 30px;
}
.store-footer-buttons button:nth-child(n+2){
    width: calc((100% - 72px) / 3);
}
.pd_content_con .pd_content_tab{
    vertical-align: top;
    position: sticky;
    top: 90px;
    background: #fff;
    width: 100%;
    border-bottom: 1px solid #ddd;
    margin-bottom: 40px;
    z-index: 2;
}
.pd_content_tab .tab{
    opacity: 0.3;
    width: calc(100% / 5 - 4px);
    text-align: center;
    display: inline-block;
    position: relative;
    padding: 20px 0;
}
.pd_content_tab .tab.active{
    opacity: 1;
}
.pd_content_tab .tab.active:before{
    content: "";
    position: absolute;
    width: 100%;
    height: 3px; 
    background: #000;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
}
/* .pd_content_con{
    width: 50%;
} */
.pd_content_con .h-screen + .h-screen{
    margin-top: 60px;
}
.pd_content_con .h-screen .h-screen-title{
    margin: 20px 0 30px;
    padding-left: 15px;
    position: relative;
}
.pd_content_con .h-screen .h-screen-title:before{
    content: "";
    position: absolute;
    top: calc(50% - 8px);
    left: 0;
    transform: translateX(-50%);
    width: 4px; 
    height: 16px;
    background: #000;
}
/* .vertical-scroll-box{
    height:600px;
    overflow-x: hidden;
    overflow-y: auto;
}

@media (min-width: 993px){
  .vertical-scroll-box{
    height: clamp(1048px, 52vh, 1050px);
     padding-right: 20px;
  }
} */
/* @media (min-width: 2000px){
  .vertical-scroll-box{
    height: clamp(528px, 69vh, 980px);
     padding-right: 20px;
  }
} */



.goods-review + .goods-review{
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px dashed #ddd;
}
.goods-review{
    position: relative;
}
.goods-review .date{
    position: absolute;
    top: 0;
    right: 0;
}
.goods-review .state-btn{
    position: absolute;
    top: 30px;
    right: 0;
}
.goods-review .state-btn > button{
    background: #fff;
    border: 1px solid #999;
    color: #999;
    padding: 4px 10px;
    border-radius: 5px;
}
.goods-review + .goods-review .date{
    top: 40px;
}
.goods-review + .goods-review .delete-btn{
    top: 70px;
}
.goods-review .review-summary{
    margin-top: 20px;
}
.goods-review .photo-review{
    margin: 0 -10px;
}
.goods-review .photo-review > div{
    width: calc(100% / 3 - 24px);
    margin: 10px;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
}
.personal-id{display: inline-block; vertical-align: middle;}
.sts-score-box{display: inline-block; vertical-align: middle; overflow: hidden; margin-left: 10px;}
.sts-score-box .sts-score{float: left;}
.sts-score-box .sts-score-txt{float: right; margin-left: 5px; margin-top: 3px;}
.sts-score {
	transform-origin:center center;
}
.sts-score > * + * {padding-left:4px !important; }
.sts-score .ico-icon {
	position:relative;
	background-position:0 0;
	background-size:18px;
	background-image:url('../../images/content/star.svg');
	width:18px;
	height:18px;
    display: inline-block;
}
.sts-score .ico-icon:after {
	display:block;
	content:"";
	width:100%;
	height:100%;
	background-repeat:no-repeat;
	background-position:0 0;
	background-size:18px;
	background-image:url('../../images/content/star-full.svg');
	background-color:#fff;
	position:absolute;
	left:0;
	top:0;
	opacity:0;
}

.sts-score.score5 > *:nth-child(-n + 5) .ico-icon:after {opacity:1; }
.sts-score.score4 > *:nth-child(-n + 4) .ico-icon:after {opacity:1; }
.sts-score.score3 > *:nth-child(-n + 3) .ico-icon:after {opacity:1; }
.sts-score.score2 > *:nth-child(-n + 2) .ico-icon:after {opacity:1; }
.sts-score.score1 > *:nth-child(-n + 1) .ico-icon:after {opacity:1; }

.sts-score.score1.half > *:nth-child(2) .ico-icon:after,
.sts-score.score2.half > *:nth-child(3) .ico-icon:after,
.sts-score.score3.half > *:nth-child(4) .ico-icon:after,
.sts-score.score4.half > *:nth-child(5) .ico-icon:after {
	width:calc(50% + 1px);
	opacity:1;
}
.sts-score .score-value {
	font-weight:500;
	color:#000;
	opacity:.4;
	padding-left:8px !important;
	font-size:14px;
	padding-top:2px;
}
.sts-score > button {
	border:0;
	background:transparent;
	padding-left:0;
	padding-right:0;
}
/* 공통 갤러리 부분 */
.gallery-comm-box .swiper-button-next,
.gallery-comm-box .swiper-button-prev {
    padding: 10px;
    width: 50px; 
    height: 50px;
    background-color: rgba(0, 0, 0, 0.8); 
    border-radius: 50%;
    background-image: url(../../images/content/gallery-swiper-button.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 21px;
}

.gallery-comm-box .swiper-button-prev {
  left: 10px;
  transform: scaleX(-1);
}
.gallery-comm-box .swiper-button-next {
  right: 10px;
}
.gallery-comm-box .swiper-button-next:after, .gallery-comm-box .swiper-button-prev:after{
    content: none;
}
.product_view > .right {
    top: 80px; /* ← 헤더 높이에 맞게 수정 */
}
@media screen and (max-width: 1200px) {
    .product_view .right{
        position: relative;
        top: 0;
    }
    .pd_content_con{
        margin-top: 0;
    }
    .pd_content_con .pd_content_tab{
        top: 64px;    
    }
    .pd_content_tab .tab.active:before{
        bottom: -1px;
    }
}
.vertical-scroll-box::-webkit-scrollbar { width: 10px;}
.vertical-scroll-box::-webkit-scrollbar-thumb { background-color: #2f3542; border-radius: 10px; }
.vertical-scroll-box::-webkit-scrollbar-track {
    background-color: #D7D7D7;
    border-radius: 10px;
}
.gallery-comm-box .veiw-modal{
    cursor: pointer;
}
.gallery-comm-box .veiw-modal-2{
    cursor: pointer;
}
.gallery-comm-box .swiper-slide{
    border: 1px solid rgb(238, 238, 238);
    padding-bottom: 31.6%;
    position: relative;
    overflow: hidden;
    margin-right: 20px;
}
.gallery-comm-box .swiper-slide img{
    display: block;
    max-width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.guide-modal-box .guide-modal-btn{
    display: inline-block;
    margin-left: 10px;
    cursor: pointer;
}
/* .product_view .left{float: left;} */
@media screen and (max-width: 992px) {
    .vertical-scroll-box::-webkit-scrollbar { width: 6px;}
    .thumbnail{
        width: calc(100% / 5 - 4px);
        height: 50px;
        margin: 0;
    }
    .product_view .right {
        width: 100%;
        margin-left: 0px;
        margin-top: 20px;
    }
    .product_view .left {
        width: 100%;
        display: block;
        float: none;
    }
    .color-option .selected_values {
        width: calc(100% / 3 - 10px);
        margin: 5px;
        word-break: break-all;
    }
    .store-footer-buttons{
        position: fixed;
        bottom: 0;
        width: 100%;
        left: 0;
        z-index: 3;
        padding: 0px 10px 50px;
        background: #fff;
    }
    .store-footer-buttons .sfb-1 img{
        max-width: 20px;
    }
    .pd_content_con{
        width: 100%;
    }
    .vertical-scroll-box{
        height: auto;
        overflow-y: inherit;
    }
    .goods-review .photo-review > div{
        width: calc(100% / 3 - 14px);
        margin: 5px;
    }
    .gallery-comm-box .swiper-slide{
        padding-bottom: 44.6%;
    }
    .gallery-comm-box .swiper-button-next,
    .gallery-comm-box .swiper-button-prev {
        width: 40px;
        height: 40px;
        background-size: 6px 10px;
    }
    .pd_content_con .h-screen .h-screen-title:before{
        top: calc(50% - 6px);
        width: 3px;
        height: 12px;
    }
    
  /* 모바일에서 순서 바꾸기 시작 */
   .container.product_view {
    display: flex;
    flex-direction: column;
  }

  .product_view .left {
    order: 0;
  }

  .product_view .right {
    order: 1;
  }

  .product_view .pd_content_con {
    order: 2; /* 항상 마지막 */
  }

  .product_view .left, .product_view .right, .product_view .pd_content_con {
    width: 100%;
  }
 /* 모바일에서 순서 바꾸기 끝 */
}



/* Swiper 이미지 렌더링 버그 수정 */
.gallery-comm-box{
max-width: 56vw;

}

@media screen and (max-width: 992px) {
.gallery-comm-box{
max-width: 100vw;

}

}





/* 샵뷰 배송방법 선택*/

/* 커스텀 셀렉트 박스 스타일 */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%; /* 필요에 따라 조절 */
}
.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}
.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 14px;
    height: 35px; /* 기존 셀렉트박스 높이 */
    color: #3b3b3b;
    background: #fff;
    border: 1px solid #ddd; /* 테두리 */
    cursor: pointer;
}
.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ddd;
    border-top: 0;
    background: #fff;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 99;
}
.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.custom-option {
    position: relative;
    display: block;
    padding: 10px;
    font-size: 14px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: all 0.3s;
}
.custom-option:hover {
    background-color: #f9f9f9;
}
.custom-option.selected {
    background-color: #f2f2f2;
    font-weight: bold;
}
/* 화살표 아이콘 */
.custom-select-trigger:after {
    content: '▼';
    font-size: 10px;
    color: #999;
}

/* ✅ 요청하신 포인트 텍스트 스타일 */
.delivery-point {
    font-size: 12px;  /* 작게 */
    color: #50b8b0;   /* 청록색 */
    font-weight: 500;
    margin-left: 5px;
}







/* PC 화면 (1201px 이상) */
@media (min-width: 1201px) {
    
    /* .right: sticky 고정, 스크롤 없음 */
    .product_view > .right {
        position: sticky !important;
        top: 130px !important;
        align-self: flex-start;
        overflow: visible !important; /* ★ 스크롤바 없음 */
        max-height: none !important;
    }
    
    /* ★ .vertical-scroll-box만 스크롤 */
    .product_view > .right .vertical-scroll-box {
        max-height: calc(100vh - 400px) !important; /* 상단여백 + 하단버튼 높이 제외 */
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-right: 10px;
    }
    
    /* 스크롤바 스타일 (.vertical-scroll-box에만) */
    .product_view > .right .vertical-scroll-box::-webkit-scrollbar {
        width: 8px;
    }
    .product_view > .right .vertical-scroll-box::-webkit-scrollbar-track {
        background: #e0e0e0;
        border-radius: 4px;
    }
    .product_view > .right .vertical-scroll-box::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    .product_view > .right .vertical-scroll-box::-webkit-scrollbar-thumb:hover {
        background: #666;
    }
}

/* 모바일 (1200px 이하) */
@media (max-width: 1200px) {
    .product_view > .right {
        position: relative !important;
        top: auto !important;
        overflow: visible !important;
    }
    
    .product_view > .right .vertical-scroll-box {
        max-height: none !important;
        overflow: visible !important;
        height: auto !important;
    }
}









