/* BASIC css start */
.ftInst{display:block !important}

/* ✅ 폰트 설정 */
body, input, button, select, textarea {
    font-family: 'Pretendard', -apple-system, sans-serif !important;
    letter-spacing: -0.3px !important;
}

/* ✅ 상품명 */
.shopdetail .shopdetailInfo h2 {
    font-size: 1.2em !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 16px 15px !important;
    word-break: keep-all !important;  /* 한글 단어 안 잘림 */
    overflow-wrap: break-word !important; /* 긴 영문도 줄바꿈 */
    white-space: normal !important;   /* 자동 줄바꿈 허용 */
    line-height: 1.5 !important;
    color: #111 !important;
    letter-spacing: -0.5px !important;
}

/* ✅ 원본 유지 */
.shopdetail .shopdetailInfo {background-color: #f8f8f8;}
.shopdetail h3 {font-weight:bold; padding:10px 15px; margin-bottom:10px; background-color:#f0f0f0;}
.shopdetail h3 .fa {float:right; font-size: 1.5em;}
.shopdetail .shopdetailInfo .shopdetailInfoTop figure {padding:16px 15px; border-bottom:1px solid #c7c7c7;}
.shopdetail .shopdetailInfo .shopdetailInfoTop figcaption {text-align:left; margin-top:16px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom {background-color:#fff;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoValue {position: relative; border-bottom:1px solid #c7c7c7; padding:18px 15px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoValue p {margin-bottom:8px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoValue p:last-child {margin-bottom:0px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoValue .shopdetailInfoName {width:30%; display:inline-block;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoValue .shopdetailInfoCont {width:70%; display:inline-block; margin-left: -4px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoValue .region {margin-left: 10px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoValue .btn_relation {position:absolute; top:50%; right:10px; text-align:center; margin-top: -25px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoValue .btn_relation a {width:50px; height:50px; color:#fff; background-color:#636363; display: inline-block; font-size:0.917em; border-radius: 4px; border:1px solid #424242;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoValue .btn_relation a .fa {display:block; margin:6px 0 3px 0;}
.shopdetailInfoDelivery {padding:10px 15px;}

/* ✅ 할인 전 가격 */
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoValue del {
    color: #888 !important;
    font-size: 0.9em !important;
    text-decoration: line-through !important;
    margin-right: 4px !important;
    display: inline !important;
    visibility: visible !important;
}

/* ✅ 할인가 표시 */
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoValue em {
    color: #e74c3c !important;
    font-size: 1.333em !important;
    font-weight: 700 !important;
}
.shopdetail .shopdetailInfoDiscount {
    color: #e74c3c !important;
}
.shopdetail .shopdetailInfoDiscount .shopdetailInfoCont em {
    color: #e74c3c !important;
    font-size: 1.4em !important;
    font-weight: 700 !important;
}

/* ✅ 구매 버튼 개선 */
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailButton {
    text-align: center;
    padding: 15px;
}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailButton .shopdetailButtonTop a {
    padding: 15px 8px !important;
    display: inline-block !important;
    margin: 0 1px !important;
    font-weight: bold !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    text-align: center !important;
    border-radius: 6px !important;
}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailButton .shopdetailButtonTop a.wish {
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    color: #555 !important;
}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailButton .shopdetailButtonTop a.cart {
    color: #fff !important;
    background-color: #888 !important;
    border: 1px solid #777 !important;
}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailButton .shopdetailButtonTop a.buy {
    color: #fff !important;
    background-color: #222 !important;
    border: 1px solid #222 !important;
    padding: 15px 8px !important;
    border-radius: 6px !important;
}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailButton .shopdetailButtonBottom {margin:20px 0;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailButton .shopdetailButtonBottom img {margin:0 2px; width:45px; height:auto;}

/* ✅ 리뷰/Q&A 탭 */
.shopdetail .shopdetailBoard {
    text-align: center !important;
    border-top: 1px solid #bbb !important;
    border-bottom: 1px solid #ddd !important;
    margin-bottom: 32px !important;
    background: #fff !important;
}
.shopdetail .shopdetailBoard a {
    width: 33.33% !important;
    background-color: #f8f8f8 !important;
    border-left: 1px solid #ddd !important;
    display: inline-block !important;
    margin-left: -1px !important;
    font-weight: bold !important;
    padding: 20px 0 !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    color: #333 !important;
    letter-spacing: -0.3px !important;
}

/* ✅ 상품옵션 */
.shopdetail .shopdetailInfo .shopdetailInfoBottom .option_area {}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .option_area.fixed {width: 100%; position: fixed; z-index: 101; bottom: 0; left: 0; right: 0;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .option_area.fixed {-webkit-animation: qbuy 150ms linear 1 normal; animation: qbuy 150ms linear 1 normal;}
@-webkit-keyframes qbuy {
    from {bottom:-65px;}
    to {bottom:0;}
}
@keyframes qbuy {
    from {bottom:-65px;}
    to {bottom:0;}
}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .option_area.fixed .option_tk {height:150px; overflow-y:auto; background-color: #fff;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .fixed-btn {width:100%; box-sizing: border-box; position:relative; bottom:0; left:0; right:0; background-color:#f6f6f6; border-top:1px solid #dfdfdf; z-index: 101; text-align: center; padding:6px; margin:0 auto; display:none;}

.shopdetail .shopdetailInfo .shopdetailInfoBottom .fixed-btn.fixed {
    display: block; 
    position: fixed;
    bottom: 60px;  /* 👈 하단 네비게이션 높이만큼 추가 */
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    left: 0;
    width: 100%;
    z-index: 200;
}

.shopdetail .shopdetailInfo .shopdetailInfoBottom .option_area.fixed .fixed-btn.fixed {
    display: block; position: relative; bottom: auto;
}


.shopdetail .shopdetailInfo .shopdetailInfoBottom .fixed-btn .btn_option {position: absolute; top: -16px; left: 50%; margin-left:-33px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoMultiSelect {background-color: #fff;border-top: 1px solid #ccc;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .buy_on {background-color: #f6f6f6; text-align: center; padding: 10px 15px; display:none;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .buy_on a {width:48%;color: #3b3b3b;background-color:#fff;border: 1px solid #ccc;display: inline-block;padding:6px 0;margin: 0;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .buy_on a.buy {background-color: #3b3b3b;color: #fff;border: 1px solid #3b3b3b;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect {}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect .opt-com {text-align: right;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect p {background-color:#f6f6f6; padding: 5px 15px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect p:last-child {margin-bottom:0px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect .shopdetailInfoName {width: 28%; padding-right: 5px; display:inline-block;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect .shopdetailInfoCont {width:70%; display:inline-block; margin-left: -4px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect .shopdetailInfoCont input {padding: 0 10px 0 0;}

/* ✅ 옵션 셀렉트박스 — iOS 글씨 보임 수정 */
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect .shopdetailInfoCont select {
    width: 100%;
    height: 38px;
    padding: 0 30px 0 10px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect .shopdetailInfoCount .txt-qnty {text-align:right; padding:0 6px; width: 50px !important;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect .shopdetailInfoCount .fa-plus {background-color: #bbb;width: 32px;height: 32px;text-align: center;vertical-align: middle;line-height: 32px;color: #fff;margin: 0 5px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect .shopdetailInfoCount .fa-minus {background-color: #bbb;width: 32px;height: 32px;text-align: center;vertical-align: middle;line-height: 32px;color: #fff;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoMultiSelect .MK_optAddWrap #MK_innerOptScroll {background-color: #f6f6f6; padding:0 15px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect .add-option-sel {font-weight: bold; font-size: 1.1em; padding-top: 10px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect .add-option select {margin-bottom: 10px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect .add-option .shopdetailInfoName {vertical-align: top; padding-top: 11px;}
.MK_optAddWrap .MK_inner-opt-cm li {position:relative; border-bottom:1px solid #c7c7c7; padding: 12px 0;}
.MK_optAddWrap .MK_inner-opt-cm li:last-child {border-bottom:0px none;}
.MK_optAddWrap .MK_inner-opt-cm .MK_p-name {padding-right: 30px; display: block;}
.MK_optAddWrap .MK_inner-opt-cm .MK_qty-ctrl {margin-top:8px;}
.MK_optAddWrap .MK_inner-opt-cm .MK_qty-ctrl input[type="tel"] {padding:0 6px; width: 50px;}
.MK_optAddWrap .MK_inner-opt-cm .MK_btn-del {position:absolute; top:12px; right:0;}
.MK_optAddWrap .MK_inner-opt-cm .MK_btn-del img {width: 20px;}
.MK_optAddWrap .MK_inner-opt-cm .MK_price {position:absolute; bottom:21px; right:0; font-size: 1.3em;}
.MK_optAddWrap .MK_inner-opt-cm .MK_qty-ctrl .btn-type-02 {background-color: #bbb; width: 35px; height: 35px; text-align: center; vertical-align: middle; line-height: 35px; color: #fff; display: inline-block;}
.MK_optAddWrap .total {text-align:right; padding:10px 15px; font-size: 1.3em;}
.MK_optAddWrap .MK_total {font-size:18px; color:#e74c3c; margin-left:15px;}
.MK_optAddWrap .MK_txt-won {font-size:17px;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailTotal {background-color:#fff; text-align:right; padding:15px; font-size:1.2em;}
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailTotal em {color:#e74c3c; font-size:1.333em; margin-left:16px;}

/* ✅ 쿠폰 */
.shopdetail .shopdetailCoupon {margin-top:15px;}
.shopdetail .shopdetailCoupon .shopdetailCouponGet {padding:0 15px;}
.shopdetail .shopdetailCoupon .shopdetailCouponGet .image_src {max-width: 100%; padding-bottom: 5px;}
.shopdetail .shopdetailCoupon .shopdetailCouponGet li dl {height:34px; background:url("/images/d3/m_04/bg_coupon@2x.gif") no-repeat left center; padding:10px 0 10px 92px; border-bottom:1px dashed #cbcbcb; position:relative; background-size: 81px auto;}
.shopdetail .shopdetailCoupon .shopdetailCouponGet li:last-child {border-bottom:0px none;}
.shopdetail .shopdetailCoupon .shopdetailCouponGet .MS_coupon dt {width:82px; position:absolute; top:10px; left:0; color:#fff; text-align:center;}
.shopdetail .shopdetailCoupon .shopdetailCouponGet .MS_coupon dt strong {font-weight: normal;}
.shopdetail .shopdetailCoupon .shopdetailCouponGet .MS_coupon h4 {font-weight:bold;}

/* ✅ 상세이미지 영역 */
.shopdetail .shopdetailItem .shopdetailItemPopup {text-align:center; padding:0 15px; margin:22px 0;}
.shopdetail .shopdetailItem .shopdetailItemPopup a {font-weight:bold; color:#fff; background-color:#636363; display:block; padding:10px 0;}
.shopdetail .shopdetailItem .shopdetailItemPopup .shopdetailItemZoom {height:60px; padding:0 0 0 75px; margin-top:10px; background:url("/images/d3/m_04/bg_hand@2x.gif") no-repeat 20px center; line-height: 60px; background-size: 50px auto;}
.shopdetail .shopdetailItem .shopdetailImage img {max-width:100% !important; height: auto !important;}
.shopdetail .shopdetailItem .shopdetailImage table {width:100% !important;}
.shopdetail .shopdetailItem .shopdetailImage object {width:100% !important;}
.shopdetail .shopdetailItem .shopdetailImage iframe {width:100% !important;}
.shopdetail .shopdetailItem .shopdetailImage table {table-layout: auto !important;}
.shopdetail .shopdetailItem .shopdetailImage div {width:100% !important;}
.shopdetail .shopdetailItem .shopdetailNotify {margin-top:24px;}
.shopdetail .shopdetailItem .shopdetailNotify .shopdetailNotifyInfo {padding:0 15px;}
.shopdetail .shopdetailItem .shopdetailNotify .shopdetailNotifyInfo dt {font-weight:bold; margin-bottom:2px;}
.shopdetail .shopdetailItem .shopdetailNotify .shopdetailNotifyInfo dd {margin:0 0 25px 6px;}

/* ✅ 관련상품 */
.shopdetail .shopdetailRelationItem {padding:0 15px 30px 15px;}
.shopdetail .shopdetailRelationItem .listName input {float:right;}
.shopdetail .shopdetailRelationItem .btn_cart {width:290px; text-align:center; font-weight:bold; color:#fff; background-color:#393939; display:block; padding:10px 0; margin:0 auto;}
.shopdetailRelation {margin-bottom:30px;}
.shopdetailRelation .list_shoppingRelationItem1x {padding: 0 7px;}
.shopdetailRelation .list_shoppingRelationItem1x ul {width:100%; display:table; table-layout: fixed; box-sizing: border-box;}
.shopdetailRelation .list_shoppingRelationItem1x li {width:100%; display:inline-block; vertical-align: top; border-top:1px solid #d9d9d9; padding:18px 0;}
.shopdetailRelation .list_shoppingRelationItem1x li figure {padding:0 7px;}
.shopdetailRelation .list_shoppingRelationItem1x li:first-child {border:0px none;}
.shopdetailRelation .list_shoppingRelationItem1x li img.listPic {width:40%; float:left;}
.shopdetailRelation .list_shoppingRelationItem1x .list_shoppingInfo {width:57%; float:left; padding-left:3%; position: relative;}
.shopdetailRelation .list_shoppingRelationItem1x .list_shoppingInfo .listName {border-bottom: 1px solid #dedede; padding: 0 15px 2px 0; margin-bottom: 5px;}
.shopdetailRelation .list_shoppingRelationItem1x .list_shoppingInfo .options-select {width:100%;}
.shopdetailRelation .list_shoppingRelationItem1x .MS_related_checkbox {position:absolute; top:0; right:0;}
.shopdetailRelation .list_shoppingRelationItem1x .list_shoppingInfo .listCount {margin: 12px 0;}
.shopdetailRelation .list_shoppingRelationItem1x .list_shoppingInfo .listCount .amount-input {text-align:right;}
.shopdetailRelation .list_shoppingRelationItem1x .list_shoppingInfo .listCount .fa-plus {background-color: #bbb; width: 30px; height: 30px; text-align: center; vertical-align: middle; line-height: 30px; color: #fff;}
.shopdetailRelation .list_shoppingRelationItem1x .list_shoppingInfo .listCount .fa-minus {background-color: #bbb; width: 30px; height: 30px; text-align: center; vertical-align: middle; line-height: 30px; color: #fff;}
.shopdetailRelation .list_shoppingRelationItem1x .btn_Black {width:290px; margin: 0 auto;}

/* ✅ 기타 */
.shopdetail .okdgg-checkout {margin-top: 15px;}
.shopdetail .okdgg-checkout img {max-width: 90%; height: auto;}
.cs-button { display: none !important;}
.shopdetail .soldout_anchor { display:block !important; }
.shopdetail .MK_btn-sms {
    display: inline-block; width: 100%; height: 35px; line-height: 35px; text-align: center; border: 1px solid #808080;
    color: #fff; font-weight: bold; background-color: #636363;
    background-image: linear-gradient(to bottom, #636363, #5e5e5e);
    border-radius: 3px !important;
}
.shopdetail .MK_btn-sms span { padding-left: 24px; background: url(/images/d3/m_01/bull/alarm_fff@2x.png) no-repeat 0 50%; background-size: 18px 14px; }

/* ✅ 반응형 미디어쿼리 */
@media screen and (min-width:540px) and (max-width:767px) {
    .shopdetail .shopdetailInfo {position:relative; overflow:hidden; zoom:1; border-bottom:1px solid #c7c7c7; background-color: #fff;}
    .shopdetail .shopdetailInfo h2 {border-bottom:1px solid #c7c7c7; padding-bottom:16px; background-color: #f5f5f5;}
    .shopdetail .shopdetailInfo .shopdetailInfoTop {float:left;}
    .shopdetail .shopdetailInfo .shopdetailInfoTop figure {border-bottom:0px none;}
    .shopdetail .shopdetailInfo .shopdetailInfoTop, .shopdetail .shopdetailInfo .shopdetailInfoBottom {width:50%;}
    .shopdetail .shopdetailInfo .shopdetailInfoBottom {float:right; background-color:#fff;}
    .shopdetailInfoBottom .shopdetailInfoMultiSelect .MK_optAddWrap #MK_innerOptScroll {background-color: #fff;}
    .shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailTotal {border-top:1px solid #c7c7c7;}
    .shopdetail .shopdetailCoupon .shopdetailCouponGet {width:335px; margin:0 auto;}
    .shopdetail .shopdetailRelationItem {padding:0 0 30px 0;}
    .shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailButton .shopdetailButtonTop a {padding:10px 8px;}
    .shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailButton .shopdetailButtonTop a.buy {padding:10px 8px;}
    .shopdetail .shopdetailItem .shopdetailItemPopup {width:335px; margin:22px auto;}
    .shopdetail .shopdetailRelationItem .btn_cart {margin:34px auto;}
    .shopdetailRelation .list_shoppingRelationItem1x li {width:50%;}
    .shopdetailRelation .list_shoppingRelationItem1x li:nth-child(2) {border:0px none;}
}
@media screen and (min-width:768px) {
    .shopdetail .shopdetailInfo {position:relative;overflow:hidden;zoom:1;background-color: #fff;}
    .shopdetail .shopdetailInfo h2 {border-bottom:1px solid #c7c7c7; padding-bottom:16px; background-color: #f5f5f5;}
    .shopdetail .shopdetailInfo .shopdetailInfoTop {float:left;}
    .shopdetail .shopdetailInfo .shopdetailInfoTop figure {border-bottom:0px none;}
    .shopdetail .shopdetailInfo .shopdetailInfoTop, .shopdetail .shopdetailInfo .shopdetailInfoBottom {width:50%;}
    .shopdetailInfoBottom .shopdetailInfoMultiSelect .MK_optAddWrap #MK_innerOptScroll {background-color: #fff;}
    .shopdetail .shopdetailInfo .shopdetailInfoBottom {float:right; background-color:#fff;}
    .shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailTotal {border-top:1px solid #c7c7c7;}
    .shopdetail .shopdetailCoupon .shopdetailCouponGet {width:335px; margin:0 auto;}
    .shopdetail .shopdetailRelationItem {padding:0 0 30px 0;}
    .shopdetail .shopdetailItem .shopdetailItemPopup {width:335px; margin:22px auto;}
    .shopdetail .shopdetailItem .shopdetailNotify {margin-top:36px;}
    .shopdetail .shopdetailRelationItem .btn_cart {margin:34px auto;}
    .shopdetailRelation .list_shoppingRelationItem1x li {width:50%;}
    .shopdetailRelation .list_shoppingRelationItem1x li:nth-child(2) {border:0px none;}
}


/* BASIC css end */

