/* BASIC css start */
/* 메인 컨테이너 */
.penm-m-product-container{width:100%;max-width:100%;background:#fff}

/* 페이지 타이틀 */
.penm-m-product-page-title{font-size:1.1rem;font-weight:600;color:#333;text-align:center;padding:15px;background:#f8f9ff;border-bottom:1px solid #e4eaff}

/* 이미지 섹션 */
.penm-m-product-images{position:relative;width:100%;background:#fff;border-bottom:1px solid #f0f0f0}
.penm-m-main-image{width:100%;height:320px;position:relative;overflow:hidden;background:#fafafa}
.penm-m-main-image img{width:100%;height:100%;object-fit:contain}
.penm-m-thumbnail-container{display:flex;overflow-x:auto;gap:8px;padding:12px;background:#fff;scrollbar-width:none;-ms-overflow-style:none}
.penm-m-thumbnail-container::-webkit-scrollbar{display:none}
.penm-m-thumbnail{flex-shrink:0;width:60px;height:60px;border:2px solid #f0f0f0;cursor:pointer;background:#fff;transition:border-color .3s;overflow:hidden;border-radius:8px}
.penm-m-thumbnail.active{border-color:#403F6F}
.penm-m-thumbnail img{width:100%;height:100%;object-fit:contain;background:#fff}

/* 가입 혜택 */
.penm-m-join-benefits{padding:14px 15px;border-bottom:1px solid #f0f0f0;background:#f7f9fd}
.penm-m-join-intro{margin:0 0 10px;font-size:.9rem;line-height:1.6;color:#2c344e;letter-spacing:-.2px}
.penm-m-join-list{list-style:none;padding:0;margin:0 0 12px;display:flex;flex-direction:column;gap:8px}
.penm-m-join-list li{background:#fff;border:1px solid #e6ebf7;border-radius:8px;padding:10px 12px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.penm-m-join-list li strong{font-size:.85rem;color:#333}
.penm-m-join-list li span{font-size:.85rem;color:#555}
.penm-m-join-list li b{color:#e64a54}
.penm-m-join-btn{display:inline-block;background:#2f3c66;color:#fff;text-decoration:none;padding:10px 16px;font-size:.9rem;font-weight:700;border-radius:8px}

/* 상품 정보 */
.penm-m-product-info{padding:20px 15px;background:#fff}
.penm-m-product-title{font-size:1.2rem;font-weight:700;color:#333;margin-bottom:8px;line-height:1.4}
.penm-m-product-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:15px;font-size:.8rem;color:#666}
.penm-m-product-meta span{background:#f8f9ff;padding:3px 8px;border-radius:12px}

/* 정보 리스트 */
.penm-m-info-table{border-top:1px solid #f5f5f5;margin:6px 0 16px}
.penm-m-info-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f0f0f0}
.penm-m-info-label{width:90px;min-width:90px;font-weight:700;color:#666;font-size:.85rem}
.penm-m-info-value{flex:1;font-size:.95rem;color:#333}
.penm-m-price-strong{font-weight:800;color:#403F6F}
.penm-m-strike{text-decoration:line-through;color:#999}

/* 액션 버튼(상단) */
.penm-m-action-buttons{padding:20px 15px;background:#fff;border-top:1px solid #f0f0f0;position:relative;z-index:1}
.penm-m-button-row{display:flex;gap:8px;margin-bottom:10px}
.penm-m-btn{height:44px;border:none;font-size:.9rem;font-weight:700;cursor:pointer;transition:all .3s;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;text-decoration:none}
.penm-m-btn-wishlist{flex:0 0 44px;background:#fff;color:#403F6F;border:1.5px solid #403F6F}
.penm-m-btn-cart{flex:1;background:#fff;color:#403F6F;border:1.5px solid #403F6F}
.penm-m-btn-buy{width:100%;background:#403F6F;color:#fff;height:48px;margin-bottom:8px}
.penm-m-btn-gift{width:100%;background:#2f3c66;color:#fff;height:46px}
.penm-m-btn:hover{opacity:.92}

/* 유틸 */
.penm-m-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* 탭/상세 */
.penm-m-tabs-section{margin-top:20px;background:#fff}
.penm-m-tabs-nav{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#f0f0f0;border-top:1px solid #f0f0f0}
.penm-m-tab-btn{height:48px;background:#fff;border:none;font-size:.85rem;font-weight:600;color:#666;cursor:pointer;transition:all .3s;display:flex;align-items:center;justify-content:center;text-decoration:none}
.penm-m-tab-btn.active{color:#403F6F;background:#f8f9ff}
.penm-m-tab-content{display:none;padding:20px 15px;background:#fff}
.penm-m-tab-content.active{display:block}
.penm-m-detail-section img{max-width:100%;height:auto}
.penm-m-product-info-table{margin-top:20px}
.penm-m-product-info-table table{width:100%;border-collapse:collapse;font-size:.8rem}
.penm-m-product-info-table th,.penm-m-product-info-table td{padding:8px;border-bottom:1px solid #f0f0f0;vertical-align:top}
.penm-m-product-info-table th{width:100px;color:#666;font-weight:600;background:#fafafa}

/* 확대보기 버튼 */
.penm-m-viewlarge-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:46px;margin:0 0 14px;border:1px solid #dbe2f2;background:#fff;color:#2f3c66;font-weight:800;font-size:.95rem;border-radius:10px;text-decoration:none;transition:background .2s,border-color .2s,color .2s}
.penm-m-viewlarge-btn:hover{background:#e9edff;border-color:#cfd7f1;color:#24305a}

/* 하단 고정 시트 */
.penm-m-sticky-bottom{position:fixed;bottom:0;left:0;right:0;z-index:2147483647;background:#fff;box-shadow:0 -2px 10px rgba(0,0,0,.1);transform:translateY(100%);transition:transform .3s;pointer-events:none}
.penm-m-sticky-bottom.show{transform:translateY(0);pointer-events:auto}
.penm-m-sticky-collapsed{padding:12px 15px}
.penm-m-sticky-buy-btn{width:100%;height:48px;background:#403F6F;color:#fff;border:none;font-size:.9rem;font-weight:600;border-radius:8px;cursor:pointer}

/* 오버레이 */
.penm-m-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);opacity:0;pointer-events:none;transition:opacity .25s;z-index:2147483646}
.penm-m-overlay.show{opacity:1;pointer-events:auto}
body.penm-m-locked{overflow:hidden}

.penm-m-sticky-expanded{display:none;max-height:70vh;overflow-y:auto;position:relative;border-top-left-radius:12px;border-top-right-radius:12px;background:#fff}
.penm-m-sticky-expanded.active{display:block}
.penm-m-sticky-drag{height:28px;display:flex;align-items:center;justify-content:center;background:#e9e9ef;border-top-left-radius:12px;border-top-right-radius:12px}
.penm-m-sticky-handle{width:120px;height:24px;border:none;border-radius:999px;background:#d9d9e0;color:#333;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:16px}
.penm-m-sticky-content{padding:15px}
.penm-m-sticky-product-info{margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #f0f0f0}
.penm-m-sticky-product-title{font-size:.9rem;font-weight:600;color:#333;margin-bottom:5px}
.penm-m-sticky-product-price{font-size:1.1rem;font-weight:700;color:#403F6F}
.penm-m-sticky-actions{margin-top:20px}
.penm-m-sticky-button-row{display:flex;gap:8px}
.penm-m-sticky-btn{flex:1;height:48px;border:none;font-size:.85rem;font-weight:600;display:flex;align-items:center;justify-content:center;border-radius:8px;text-decoration:none;transition:opacity .2s}
.penm-m-sticky-btn-cart{background:#fff;color:#403F6F;border:1.5px solid #403F6F}
.penm-m-sticky-btn-buy{background:#403F6F;color:#fff}

/* ───────── 메이크샵 ‘모바일 기본’ 옵션 UI 보정 ───────── */

/* 라벨/컨트롤 간격 정리 */
#ms-option-block-m .shopdetailInfoSelect p{margin:12px 0}
#ms-option-block-m .shopdetailInfoName{display:block;margin-bottom:6px;font-size:.86rem;color:#333;font-weight:600}
#ms-option-block-m .shopdetailInfoCont{display:block}

/* 셀렉트/인풋 통일 스타일 */
#ms-option-block-m select,
#ms-option-block-m input[type="text"]{
  width:100%;height:46px;padding:0 12px;font-size:.95rem;line-height:46px;border:1px solid #e1e4ef;border-radius:10px;box-sizing:border-box;background:#fff;outline:none;
}
#ms-option-block-m select:focus,
#ms-option-block-m input[type="text"]:focus{border-color:#403F6F;box-shadow:0 0 0 3px rgba(64,63,111,.06)}

/* ‘옵션 선택 완료’ 버튼 이미지 */
/* #ms-option-block-m .opt-com{text-align:right;margin-top:6px} */
/* #ms-option-block-m .opt-com a img{height:28px !important;width:auto !important;max-width:none !important;display:inline-block;vertical-align:middle} */

#ms-option-block-m .opt-com{ 
  margin-top: 10px;
  text-align: center;           /* 중앙 정렬 */
}

/* 기존 이미지 대비: 새 버튼 스타일 */
#ms-option-block-m .pm-option-complete{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;

  /* 눈에 확 띄는 메인 컬러/그라데이션 */
  background: linear-gradient(135deg, #5a58a0 0%, #403F6F 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  text-decoration: none;
  border-radius: 12px;

  /* 강조 아웃라인 */
  box-shadow: 0 6px 16px rgba(64,63,111,.30), 0 0 0 3px rgba(64,63,111,.10) inset;
  border: 1px solid #36355d;

  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  position: relative;
}

/* 아이콘 크기 */
#ms-option-block-m .pm-option-complete i{
  font-size: 1.1em;
}

/* 터치/호버 피드백 */
#ms-option-block-m .pm-option-complete:active{
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(64,63,111,.25), 0 0 0 2px rgba(64,63,111,.08) inset;
  filter: brightness(0.98);
}
#ms-option-block-m .pm-option-complete:hover{
  filter: brightness(1.03);
}

/* 최초 등장 시 3회만 은은한 펄스로 주목 */
@keyframes pmAttentionPulse{
  0%   { box-shadow: 0 0 0 0 rgba(64,63,111,.0), 0 6px 16px rgba(64,63,111,.30); }
  50%  { box-shadow: 0 0 0 6px rgba(64,63,111,.10), 0 6px 16px rgba(64,63,111,.30); }
  100% { box-shadow: 0 0 0 0 rgba(64,63,111,.0), 0 6px 16px rgba(64,63,111,.30); }
}
#ms-option-block-m .pm-option-complete{
  animation: pmAttentionPulse 1.2s ease-out 0.2s 3;
}

/* 보조 힌트 문구 */
#ms-option-block-m .pm-option-hint{
  display: block;
  margin-top: 8px;
  font-size: .8rem;
  color: #5a6282;
}

/* 접근성: 키보드 포커스 링 */
#ms-option-block-m .pm-option-complete:focus{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255,255,255,1),
    0 0 0 6px rgba(64,63,111,.45),
    0 6px 16px rgba(64,63,111,.30);
}

/* 수량 컨트롤 정돈 */
#ms-option-block-m .shopdetailInfoCount .shopdetailInfoCont{display:flex;align-items:center;gap:6px}
#ms-option-block-m .shopdetailInfoCount input[type="text"]{width:72px;text-align:center}

/* 플러스/마이너스 버튼 */
#ms-option-block-m .mk-qty-up,#ms-option-block-m .mk-qty-dw{
  display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #cfd4e7;border-radius:8px;background:#fff;text-decoration:none;font-weight:700;color:#2f3355
}
#ms-option-block-m .mk-qty-up span,#ms-option-block-m .mk-qty-dw span{display:none}
#ms-option-block-m .mk-qty-up::after{content:"+";font-size:18px;line-height:1}
#ms-option-block-m .mk-qty-dw::after{content:"-";font-size:18px;line-height:1}

/* 선택된 옵션 리스트 카드화 & 삭제 버튼 축소 */
#ms-option-block-m .MK_inner-opt-cm li{list-style:none;margin:10px 0;padding:12px;border:1px solid #eceffa;border-radius:12px;position:relative;background:#fff}
#ms-option-block-m .MK_p-name{display:block;margin-bottom:8px;color:#333;font-weight:600}
#ms-option-block-m .MK_price{color:#403F6F;font-weight:800}
#ms-option-block-m .MK_qty-ctrl{display:flex;align-items:center;gap:6px;margin-top:8px}
#ms-option-block-m .MK_qty-ctrl input{height:36px;border-radius:10px;border:1px solid #cfd4e7;text-align:center;line-height:36px}
#ms-option-block-m .MK_qty-ctrl a{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #cfd4e7;border-radius:8px;background:#fff;text-decoration:none}
#ms-option-block-m .MK_qty-ctrl a span{display:none}
#ms-option-block-m .MK_qty-ctrl a:first-of-type::after{content:"+";font-weight:700;font-size:18px}
#ms-option-block-m .MK_qty-ctrl a:last-of-type::after{content:"-";font-weight:700;font-size:18px}

/* 삭제(X) 버튼 작게 */
#ms-option-block-m .MK_btn-del,#ms-option-block-m .MK_btn-del img{width:26px;height:26px;display:inline-block}
#ms-option-block-m .MK_btn-del{position:absolute;right:10px;top:10px;border:1px solid #d9ddef;border-radius:8px;background:#fff}

/* 합계 영역 정리 */
#MK_innerOptTotal{margin-top:10px;padding:14px 12px;border-top:2px solid #403F6F;text-align:right}
#MK_innerOptTotal .MK_txt-total{margin-right:8px;color:#555}
#MK_innerOptTotal .MK_total,#MK_innerOptTotal #MK_p_total{font-size:1.2rem;font-weight:800;color:#403F6F}

/* 수량 입력 숫자 완전 중앙정렬 보정 */
#ms-option-block-m .shopdetailInfoCount input[type="text"],
#ms-option-block-m .MK_qty-ctrl input{
  height:34px !important; line-height:34px !important; padding:0 !important; text-align:center !important;
}

/* 반응형 */
@media (min-width:375px){
  .penm-m-main-image{height:350px}
  .penm-m-thumbnail{width:70px;height:70px}
  .penm-m-product-title{font-size:1.3rem}
}

/* =========================
   Mobile Coupon (within mobile product page only)
   ========================= */
.penm-m-product-container .shopdetailCoupon{
  padding: 0 15px;
  margin: 18px 0 22px;
}

.penm-m-product-container .shopdetailCoupon h3{
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: #2f3c66;
}

.penm-m-product-container .shopdetailCoupon .shopdetailCouponGet ul{
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 앵커/아이템 클릭영역을 블록화(마크업 순서가 a>li 이든 li>a 이든 커버) */
.penm-m-product-container .shopdetailCoupon .shopdetailCouponGet ul li,
.penm-m-product-container .shopdetailCoupon .shopdetailCouponGet ul a{
  display: block;
  text-decoration: none;
  color: inherit;
}

/* === 1) 이미지 쿠폰 케이스 === */
.penm-m-product-container .shopdetailCoupon .shopdetailCouponGet img.image_src{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border: 1px solid #e9ecf6;
  background: #fff;
  /* 이미지가 흰 배경일 때 가장자리 붙는 느낌 방지 */
  padding: 0;
  line-height: 0;
}

/* === 2) 이미지가 없을 때: 디자인 쿠폰 카드 === */
.penm-m-product-container .shopdetailCoupon .MS_coupon{
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background:
    radial-gradient(circle at left center, transparent 10px, #ffffff 10px) left/50% 100% no-repeat,
    radial-gradient(circle at right center, transparent 10px, #ffffff 10px) right/50% 100% no-repeat,
    linear-gradient(180deg, #ffffff, #ffffff);
  border: 1px dashed #cfd6ef;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(47,60,102,.06);
}

/* 좌우 절취선 점선 (시각 강화) */
.penm-m-product-container .shopdetailCoupon .MS_coupon::before,
.penm-m-product-container .shopdetailCoupon .MS_coupon::after{
  content:"";
  position:absolute;
  top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: #f2f4fb;
  border: 1px solid #e3e7f6;
}
.penm-m-product-container .shopdetailCoupon .MS_coupon::before{ left: -10px; }
.penm-m-product-container .shopdetailCoupon .MS_coupon::after{  right: -10px; }

/* 금액(왼쪽 큰 숫자) */
.penm-m-product-container .shopdetailCoupon .MS_coupon dt{
  margin: 0;
}
.penm-m-product-container .shopdetailCoupon .MS_coupon dt strong{
  display: inline-block;
  min-width: 72px;
  padding: 4px 8px;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 900;
  color: #403F6F;
  background: #eef1ff;
  border: 1px solid #dfe5ff;
  border-radius: 8px;
  text-align: center;
}

/* 타이틀/기간(오른쪽 텍스트) */
.penm-m-product-container .shopdetailCoupon .MS_coupon dd{
  margin: 0;
}
.penm-m-product-container .shopdetailCoupon .MS_coupon dd h4{
  margin: 0 0 4px;
  font-size: .95rem;
  font-weight: 800;
  color: #2e3257;
  line-height: 1.3;
}
.penm-m-product-container .shopdetailCoupon .MS_coupon dd p{
  margin: 0;
  font-size: .8rem;
  color: #666e8a;
}
.penm-m-product-container .shopdetailCoupon .MS_coupon dd p span{
  display: inline-block;
  background: #f7f8fe;
  border: 1px solid #e7eaf7;
  color: #5a6282;
  padding: 4px 8px;
  border-radius: 999px;
}

/* 터치 피드백 */
.penm-m-product-container .shopdetailCoupon a:active .image_src,
.penm-m-product-container .shopdetailCoupon a:active .MS_coupon{
  transform: translateY(1px);
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

/* 작은 기기 미세 조정 */
@media (max-width: 360px){
  .penm-m-product-container .shopdetailCoupon .MS_coupon{
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  .penm-m-product-container .shopdetailCoupon .MS_coupon dt strong{
    min-width: 0;
  }
}


.shopdetailButtonBottom {margin:20px 0; text-align:center;}
.shopdetailButtonBottom img {margin:0 2px; width:45px; height:auto;}

/* 상품 상세 이벤트 공통 정보 */ 
.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 15px 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; color:#777; line-height:20px; }
/* BASIC css end */

