/* BASIC css start */
.addition {
    margin: 0;
    padding: 0;
    position: fixed;
    bottom: 142px;
    right: 5px;
    opacity: .8;
    z-index: 100;
}

.addition ul { width: 38px; }
.addition li.review,
.addition li.qnna {
    background: #fff;
    border: 1px solid #717171;
    color: #fff;
    text-align: center;
}
.addition a {
    color: #717171;
    font-family: 'Pretendard', sans-serif;
    font-size: 10px;
    letter-spacing: -0.5px;
}
.addition li {
    position: relative;
    clear: left;
    padding: 0;
    margin: 3px 0;
    width: 36px;
    height: 36px;
    line-height: 36px;
}
.addition span.count {
    position: absolute;
    top: -3px;
    left: -10px;
    width: 13px;
    max-height: 20px;
    border: 1px solid #000;
    border-radius: 13px;
    padding: 2px;
    text-align: center;
    line-height: 1.2;
    color: #fff;
    font-weight: bold;
    font-size: 10px;
    background-color: #000;
}

/* 전체 폰트 및 상단 영역 */
.shopdetail {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "맑은 고딕", sans-serif;
    color: #111111;
    background: #ffffff;
}

.shopdetail .shopdetailInfo {
    background-color: #ffffff;
    border-top: 0;
}

.shopdetail .shopdetailInfo .shopdetailInfoTop.mPdiTop figure {
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 0 !important;
}

.shopdetail .shopdetailInfo .shopdetailInfoTop.mPdiTop figure img.response100 {
    display: block;
    width: 100%;
    height: auto;
}

.mPdiHeader {
    padding: 20px 16px 18px 16px;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
}

/* 상품명 + 우측 공유 버튼 */
.mPdiTitleRow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.shopdetail .shopdetailInfo .mPdiHeader .mPdiTitleRow h2.mPdiName {
    flex: 1;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "맑은 고딕", sans-serif !important;
    text-transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    color: #111111 !important;
    line-height: 1.45 !important;
    letter-spacing: -0.3px !important;
}

.mPdiShareBtn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: -2px -4px 0 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mPdiShareBtn:active {
    opacity: 0.6;
}

.mPdiSubName,
.mPdiSubName *,
.mPdiSubName p,
.mPdiSubName font,
.mPdiSubName span {
    font-size: 13px !important;
    line-height: 1.5 !important;
    letter-spacing: -0.2px !important;
}

.mPdiSubName {
    font-weight: 400;
    color: #888888;
    margin: 0 0 14px 0;
}

.mPdiSubName p {
    margin: 0 !important;
}

.mPdiOriginPrice {
    font-size: 13px;
    color: #b5b5b5;
    text-decoration: line-through;
    margin-bottom: 3px;
}

.mPdiSaleRow {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 12px;
}

.mPdiDcRate {
    font-size: 17px;
    font-weight: 700;
    color: #d92b2b;
}

.mPdiSalePrice {
    font-size: 17px;
    font-weight: 700;
    color: #111111;
}

.mPdiReviewLine {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #111111;
    text-decoration: none;
}

.mPdiReviewLine .mPdiStar {
    font-size: 13px;
    color: #111111;
}

.mPdiReviewLine .mPdiScore {
    font-weight: 600;
}

.mPdiReviewLine .mPdiBar {
    color: #dddddd;
}

.mPdiReviewLine .mPdiRevText {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 혜택 아코디언 */
.mPdiBenefitBox {
    padding: 16px;
    border-bottom: 1px solid #eeeeee;
    font-size: 13px;
    background: #ffffff;
}

.mPdiBenefitHead {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.mPdiBenefitLabel {
    width: 84px;
    flex-shrink: 0;
    color: #222222;
    font-weight: 500;
}

.mPdiBenefitMain {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #111111;
}

.mPdiBenefitMain strong {
    font-weight: 700;
}

.mPdiArrow {
    font-size: 12px;
    color: #333333;
    transition: transform 0.2s ease;
}

.mPdiArrow.isClosed {
    transform: rotate(180deg);
}

.mPdiBenefitBody {
    padding-left: 84px;
    margin-top: 10px;
}

.mPdiBenefitRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #999999;
    line-height: 1.9;
}

/* 옵션 셀렉트박스 */
.shopdetail .shopdetailInfo .shopdetailInfoBottom {
    background-color: #ffffff;
}

.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect {
    padding: 14px 16px 0 16px;
}

.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect p.mPdiOptRow {
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
    background: #ffffff !important;
}

.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect p.mPdiOptRow .shopdetailInfoName {
    display: none !important;
}

.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect p.mPdiOptRow .shopdetailInfoCont {
    display: block !important;
    width: 100% !important;
    margin-left: 0 !important;
}

.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect select {
    width: 100% !important;
    height: 44px !important;
    padding: 0 12px !important;
    border: 1px solid #e0e0e0 !important;
    background-color: #ffffff !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 13px !important;
    color: #666666 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect p {
    background-color: #fff;
    padding: 6px 0;
}

.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect .shopdetailInfoCount .txt-qnty {
    text-align: right;
    padding: 0 6px;
    width: 50px !important;
}

.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect .shopdetailInfoCount .fa-plus,
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoSelect .shopdetailInfoCount .fa-minus {
    background-color: #bbb;
    width: 35px;
    height: 35px;
    text-align: center;
    vertical-align: middle;
    line-height: 35px;
    color: #fff;
    margin: 0 4px;
}

/* 옵션 선택 전 총 상품금액 0원 박스 숨김 */
.mPdiSelectedBox {
    display: none;
    margin: 6px 16px 0 16px;
    border-top: 1px solid #eeeeee !important;
    background-color: #ffffff !important;
}

.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailInfoMultiSelect .MK_optAddWrap #MK_innerOptScroll {
    background-color: #fafafa;
    padding: 0 12px;
}

.MK_optAddWrap .MK_inner-opt-cm li {
    position: relative;
    border-bottom: 1px solid #eeeeee;
    padding: 12px 0;
}

.MK_optAddWrap .MK_inner-opt-cm li:last-child {
    border-bottom: 0 none;
}

.MK_optAddWrap .MK_inner-opt-cm .MK_p-name {
    padding-right: 30px;
    display: block;
    font-size: 13px;
}

.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: 44px;
    height: 30px;
    border: 1px solid #dddddd;
    text-align: center;
}

.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: 18px;
}

.MK_optAddWrap .MK_inner-opt-cm .MK_price {
    position: absolute;
    bottom: 16px;
    right: 0;
    font-size: 14px;
    font-weight: 600;
}

.MK_optAddWrap .MK_inner-opt-cm .MK_qty-ctrl .btn-type-02 {
    background-color: #bbbbbb;
    width: 30px;
    height: 30px;
    text-align: center;
    vertical-align: middle;
    line-height: 30px;
    color: #fff;
    display: inline-block;
}

.MK_optAddWrap .total {
    text-align: right;
    padding: 14px 4px;
    font-size: 13px;
    border-bottom: 1px solid #eeeeee;
}

.MK_optAddWrap .total .MK_txt-total {
    float: left;
    font-weight: 500;
    color: #222222;
}

.MK_optAddWrap .MK_total {
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    margin-left: 8px;
}

.MK_optAddWrap .MK_txt-won {
    font-size: 14px;
    font-weight: 600;
}

/* 통합 구매 바 + 네이버페이(1줄)·페이코(2줄) 커스텀 버튼 */
.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailButton.mPdiActionBtns {
    padding: 12px 16px 18px 16px;
    border-top: 0;
    text-align: center;
}

.mPdiSoldoutBtn {
    display: block;
    width: 100%;
    height: 48px;
    line-height: 48px;
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.mPdiBuyBar {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 48px;
    border: 1px solid #111111;
    box-sizing: border-box;
    background: #ffffff;
}

.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailButton .shopdetailButtonTop a.mPdiBtnBuyMain {
    flex: 1;
    height: 100% !important;
    line-height: normal !important;
    padding: 0 8px !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #111111 !important;
    color: #ffffff !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: 0 !important;
    box-sizing: border-box !important;
}

.mPdiBuyTotal {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
}

.mPdiBuyTotal em {
    font-style: normal;
    font-weight: 600;
}

.mPdiBuyLabel {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.shopdetail .shopdetailInfo .shopdetailInfoBottom .shopdetailButton .shopdetailButtonTop a.mPdiBtnIcon {
    width: 48px !important;
    flex-shrink: 0;
    height: 100% !important;
    line-height: normal !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 0 !important;
    border-left: 1px solid #111111 !important;
    box-sizing: border-box !important;
}

/* 네이버페이 1줄 + 페이코 2줄 커스텀 테두리 & 풀폭 오버레이 */
.mPdiPayStack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}

.mPdiPayItem {
    position: relative;
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #dddddd;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
}

.mPdiPayNaver {
    border-color: #03c75a;
}

.mPdiPayNaver .mPdiPayText {
    color: #03c75a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.2px;
    pointer-events: none;
}

.mPdiPayPayco {
    border-color: #fa2828;
}

.mPdiPayPayco .mPdiPayText {
    color: #fa2828;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.2px;
    pointer-events: none;
}

.mPdiPayRealWrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.01;
    z-index: 5;
    overflow: hidden;
}

.mPdiPayNaver .mPdiPayRealWrap > div,
.mPdiPayNaver .mPdiPayRealWrap .npay_storebtn_bx,
.mPdiPayNaver .mPdiPayRealWrap .npay_button_box,
.mPdiPayNaver .mPdiPayRealWrap .npay_button_box2 {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mPdiPayNaver .mPdiPayRealWrap a.npay_btn_pay,
.mPdiPayNaver .mPdiPayRealWrap a.npay_btn_link,
.mPdiPayNaver .mPdiPayRealWrap a[id^="NPAY_BUY_LINK"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    z-index: 10 !important;
}

.mPdiPayNaver .mPdiPayRealWrap a.npay_btn_zzim,
.mPdiPayNaver .mPdiPayRealWrap a[id^="NPAY_ZZIM_LINK"],
.mPdiPayNaver .mPdiPayRealWrap .npay_event {
    display: none !important;
    pointer-events: none !important;
}

.mPdiPayPayco .mPdiPayRealWrap,
.mPdiPayPayco .mPdiPayRealWrap > div,
.mPdiPayPayco .mPdiPayRealWrap > span,
.mPdiPayPayco .mPdiPayRealWrap > a,
.mPdiPayPayco .mPdiPayRealWrap > button {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mPdiPayPayco .mPdiPayRealWrap a,
.mPdiPayPayco .mPdiPayRealWrap button,
.mPdiPayPayco .mPdiPayRealWrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    opacity: 0.01;
}

/* 기존 하단 고정바 (Q&A / BUY IT NOW / REVIEW) 보존 */
.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 .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; margin: 0 auto; display: none; }
.shopdetail .shopdetailInfo .shopdetailInfoBottom .fixed-btn a { width: 100%; float: left; font-family: 'Pretendard', sans-serif; font-weight: 600; font-size: 12px; text-align: center; }
.shopdetail .shopdetailInfo .shopdetailInfoBottom .fboard { z-index: 10000; width: 30%; background: #f6f6f6; position: fixed; left: 0; bottom: 0; }
.shopdetail .shopdetailInfo .shopdetailInfoBottom .fboard1 { z-index: 10000; width: 30%; background: #f6f6f6; position: fixed; right: 0; bottom: 0; }
.btn_Red { background: #000000; border: 1px solid #000000; font-weight: bold; color: #ffffff !important; }
.shopdetail .shopdetailInfo .shopdetailInfoBottom .fixed-btn div { height: 40px; line-height: 40px; display: block; }
.shopdetail .shopdetailInfo .shopdetailInfoBottom .fixed-btn.fixed { display: block; position: fixed; width: 100%; }
.shopdetail .shopdetailInfo .shopdetailInfoBottom .option_area.fixed .fixed-btn.fixed { display: block; position: relative; }
.shopdetail .shopdetailInfo .shopdetailInfoBottom .fixed-btn .btn_option { position: absolute; top: -18px; left: 50%; margin-left: -33px; }
.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 #000000; display: inline-block; padding: 6px 0; margin: 0; }
.shopdetail .shopdetailInfo .shopdetailInfoBottom .buy_on a.buy { background-color: #000000; color: #fff; }
.shopdetailInfoDelivery { padding: 10px 16px; font-size: 12px; }

/* WITH ITEM (가로 스와이프 & 마우스 드래그 카드) */
.mWithItemWrap {
    padding: 36px 0 32px 0;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.shopdetail h3.mWithItemTitle {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "맑은 고딕", sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    letter-spacing: 0.3px !important;
    padding: 0 16px !important;
    margin: 0 0 16px 0 !important;
    background: transparent !important;
    text-align: left !important;
}

.mWithItemScroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px;
    box-sizing: border-box;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.mWithItemScroll::-webkit-scrollbar {
    display: none;
}

.mWithItemScroll.isDragging {
    cursor: grabbing;
}

.mWithItemList {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mWithItemCard {
    flex: 0 0 38%;
    width: 38%;
    min-width: 132px;
    max-width: 170px;
}

.mWithItemLink {
    display: block;
    text-decoration: none;
    color: #111111;
}

.mWithItemThumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f5f5f5;
    overflow: hidden;
    margin-bottom: 10px;
}

.mWithItemThumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mWithItemInfo {
    text-align: left;
    padding: 0 2px;
}

.mWithItemName {
    font-size: 12px;
    font-weight: 400;
    color: #222222;
    line-height: 1.4;
    margin: 0 0 5px 0;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mWithItemPrice {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mWiOriginPrice {
    font-size: 11px;
    color: #a8a8a8;
    text-decoration: line-through;
    line-height: 1.2;
}

.mWiSaleRow {
    display: flex;
    align-items: baseline;
    gap: 5px;
    line-height: 1.3;
}

.mWiDcRate {
    font-size: 12px;
    font-weight: 700;
    color: #d92b2b;
}

.mWiSalePrice {
    font-size: 12px;
    font-weight: 700;
    color: #111111;
}

/* 상세 이미지 및 고시 정보 */
.detail-common-info-event { padding: 0 0 20px; word-break: break-all; }
.detail-common-info-event img { max-width: 100%; }
.detail-common-info-event div { margin-top: 10px; }

.detail-common-info { padding: 0 0 20px; word-break: break-all; }
.detail-common-info img { max-width: 100%; }
.detail-common-info dl { padding-top: 20px; font-size: inherit; font-weight: normal; letter-spacing: -0.5px; }
.detail-common-info dl dt { padding-bottom: 10px; color: #444; font-weight: bold; }
.detail-common-info dl dd { padding-left: 10px; text-indent: -10px; color: #777; line-height: 20px; }

.shopdetail .shopdetailItem .shopdetailItemPopup { display: none; }
.shopdetail .shopdetailItem .shopdetailImage img { max-width: 100% !important; height: auto !important; }
.shopdetail .shopdetailItem .shopdetailImage table { width: 100% !important; table-layout: auto !important; }
.shopdetail .shopdetailItem .shopdetailImage object,
.shopdetail .shopdetailItem .shopdetailImage iframe,
.shopdetail .shopdetailItem .shopdetailImage div { width: 100% !important; }

.shopdetail h3.btn_toggle { font-weight: bold; padding: 14px 16px; margin-bottom: 10px; background-color: #fff; border-top: 1px solid #eeeeee; font-size: 13px; }
.shopdetail h3.btn_toggle .fa { float: right; font-size: 1.3em; }
.shopdetail .shopdetailItem .shopdetailNotify { margin-top: 16px; }
.shopdetail .shopdetailItem .shopdetailNotify .shopdetailNotifyInfo { padding: 0 16px; font-size: 12px; }
.shopdetail .shopdetailItem .shopdetailNotify .shopdetailNotifyInfo dt { font-weight: bold; margin-bottom: 2px; }
.shopdetail .shopdetailItem .shopdetailNotify .shopdetailNotifyInfo dd { margin: 0 0 20px 6px; color: #666; }

.shopdetailCouponGet ul { padding: 0; margin: 0; text-align: center; }
.shopdetailCouponGet li { list-style: none; }
.shopdetailCouponGet img { width: 100%; max-width: 100%; height: auto; display: block; margin: 0 auto; }

.cs-button { bottom: 53px !important; }
.shopdetailItemp img,
.abcd img { width: 100%; height: auto; }


/* 장바구니 팝업 최근 본 상품 썸네일 원본 비율 유지 */
#cartPop .BA-recommend-wrap .BA-recommend-item dl .BA-thumb,
#rel_product_list .BA-thumb {
    height: auto !important;
    overflow: hidden !important;
}

#cartPop .BA-recommend-wrap .BA-recommend-item dl .BA-thumb a,
#rel_product_list .BA-thumb a {
    display: block !important;
    height: auto !important;
}

#cartPop .BA-recommend-wrap .BA-recommend-item dl .BA-thumb img,
#rel_product_list .BA-thumb img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}
/* BASIC css end */

