/* BASIC css start */
/* ================================================================
   SWEETYSPOON | melee vichi   모바일 장바구니 CSS
================================================================ */


@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
.right_fixed { display: none; }


.prd_grey_top { padding: 0 !important; }
.sale-minus {     
    font-size: 11px !important;
    color: #fa5500 !important;
}
.benefit-desc { 
    font-size: 11px !important;
    color: #fa5500 !important;
}

/* ──1. MakeShop 외부 CSS 강제 오버라이드 ── */

#cart-page,
#cart-page .cart-page-title,
#cart-page .cart-body,
#cart-page .cart-list,
#cart-page .cart-item,
#cart-page .cart-item-inner,
#cart-page .cart-item-details,
#cart-page .cart-summary,
#cart-page .cart-summary-row,
#cart-page .cart-giftbox,
#cart-page .cart-info-blocks,
#cart-page .cart-info-block {
  visibility: visible !important;
  opacity: 1 !important;
}
#cart-page .cart-page-title { display: flex !important; }
#cart-page .cart-body       { display: block !important; }
#cart-page .cart-list       { display: block !important; }
#cart-page .cart-item       { display: block !important; }
#cart-page .cart-item-inner { display: flex !important; }
#cart-page .cart-summary    { display: block !important; }
#cart-page .cart-giftbox    { display: flex !important; }
#cart-page .cart-info-blocks{ display: flex !important; }


/* ── 2. 스코프 리셋 ── */
#cart-page,
#cart-page * { box-sizing: border-box; }
#cart-page ul,
#cart-page li { list-style: none; margin: 0; padding: 0; }
#cart-page p  { margin: 0; }
#cart-page a  { text-decoration: none; color: inherit; }
#cart-page button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

#cart-page {
  max-width: 720px;
  margin: 0 auto;
  /* overflow-x: hidden 제거   WebKit 에서 콘텐츠 전체 클리핑 유발 */
}

.cart-checkbox-hidden { display: none !important; }


/* ── 3. 페이지 타이틀 ── */
.cart-page-title {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 16px;
  border-bottom: 1px solid #e8e8e8;
}
.cart-page-h {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: #222222;
    letter-spacing: 0.02em;
}
.cart-item-count {
    font-size: 12px;
    color: #222;
    font-weight: 400;
}


/* ── 4. 본문 컨테이너 ── */
.cart-body {
  display: block !important;
  padding: 0 18px;
}


/* ── 5. 상품 목록 ── */
.cart-list {
  display: block !important;
  margin: 0;
}

/* MakeShop basket JS 가 form 내부에 동적 삽입하는 수량변경 패널 CSS 차단
   (JS 로도 제거하지만 CSS 로 이중 방어) */
#cart-page .cart-item form > *:not(.cart-item-inner) {
  display: none !important;
}
#cart-page .cart-item > *:not(.cart-item-inner):not(.cart-checkbox-hidden):not(form) {
  display: none !important;
}

.cart-item {
  display: block !important;
  padding: 0;
}

/* 썸네일 + 상세 가로 배치 + 아이템 구분선 */
.cart-item-inner {
  display: flex !important;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  border-bottom: 1px solid #e8e8e8;
  padding: 30px 0;
}
/* 마지막 아이템은 border-bottom 없음 */
.cart-item:last-child .cart-item-inner {
  border-bottom: none;
}

/* 썸네일 */
.cart-item-thumb {
  width: 86px;
  flex-shrink: 0;
  display: block;
}
.cart-item-thumb img {
  width: 100%;
  height: auto;
  display: block;  
}

/* 상세 영역
   · overflow: hidden 제거   flex 자식 height 오류 시 전체 숨김 유발
   · min-width: 0 만 유지 (flex 말줄임 핵심) */
.cart-item-details {
  flex: 1;
  min-width: 0;
  /* overflow: hidden 제거 */
}


/* ── 5-1. 제품명 + 삭제 아이콘 (같은 라인) ── */
.cart-item-title-row {
  display: flex;
    align-items: center;
    justify-content: center;
  gap: 6px;
  margin-bottom: 5px;
  width: 100%;
}
.cart-item-name {
    
    flex: 1;
    min-width: 0;
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-del {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: end;
  color: #b0b0b0;
  margin-top: 1px;
}
.cart-item-del .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 30;
}


/* ── 5-2. 옵션 텍스트 ── */
.cart-item-options {
    font-size: 11px;
    color: #333;
    line-height: 1.65;
    margin-bottom: 10px;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    letter-spacing: -0.02rem;
    max-width: 95%;
}


/* ── 5-3. 수량 + 단품 가격 (같은 라인) ── */
.cart-item-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.cart-qty-wrap {
  display: flex;
  align-items: center;
  gap: 0px;
  flex-shrink: 0;
}
.cart-qty-label {
  font-size: 12px;
  color: #888888;
  flex-shrink: 0;
  margin-right: 2px;
}
/* 인라인 "/+ 버튼 (박스 없음, Material Symbols 아이콘) */
.cart-step-inline {
  display: inline-flex;
  align-items: center;
  padding: 0 3px;
  color: #1a1a1a;
  text-decoration: none;
  line-height: 1;
}
.cart-step-inline .material-symbols-outlined {
  font-size: 15px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
}

/* MakeShop 수량 input → 읽기 전용 숫자 텍스트처럼 보이게 */
.cart-qty-input-wrap { display: inline-flex; align-items: center; }
.cart-qty-num,
.cart-qty-input-wrap input[type="text"],
.cart-qty-input-wrap input {
  width: 20px !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 500;
  color: #1a1a1a;
  text-align: center;
  outline: none;
  padding: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: "Open Sans", sans-serif !important;
}
.cart-edit-btn {
    font-family: 'Lato', 'Noto Sans KR', sans-serif;    
    font-size: 10px;
    letter-spacing: -0.02em;
    color: #222 !important;
    border: none;
    border-bottom: 1px solid #222;
    line-height: 1.2;
    cursor: pointer;
    margin-left: 25px;
    background: none;
    padding: 0 5px;
    font-weight: 600;
}

/* 단품 가격   레귤러, '원' 없음 */
.cart-item-price {
    font-size: 13px;
    font-weight: 400;
    color: #222222;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: "Open Sans", sans-serif !important;
}
.cart-item-reserve {
  font-size: 11px;
  color: #c2935f;
  margin-top: 5px;
}

.cart-summary-delivery {
  padding-bottom: 45px !important;
}

/* ── 7. 주문 금액 요약
   · 음수 마진 없음
   · 배경 #f8f7f3
   · 좌우 풀블리드: cart-body 패딩 상쇄 후 viewport 끝까지
── */
.cart-summary {
  display: block !important;
  margin-top: 0px;
  margin-left: -18px;
  margin-right: -18px;
  padding: 30px 18px 10px 18px;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
}
.cart-summary-row {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  padding: 0px 0px 25px 0px;
  font-size: 13px;
  color: #3b3b3b;
  gap: 10px;  
  width: 100%;
}
.cart-summary-label { 
    flex: 1;
    letter-spacing: -0.02rem;
    font-size: 12px;
    font-weight: 600 !important;
    color: #222;
}
.cart-summary-desc {
    font-size: 10px;
    font-weight: 400;
    color: #1a1a1a;
    display: inline-block;
    white-space: normal;
    padding-left: 10px;
}
.cart-summary-value {
    font-family: "Open Sans", sans-serif !important;
    flex-shrink: 0;
    text-align: right;
    font-size: 13px;
    font-weight: 400;
    color: #222222;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.cart-summary-total {
    border-bottom: 1px solid #ebebeb !important;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.cart-delivery-total {    
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    padding-bottom: 25px;
}
.cart-total-price {
    font-size: 13px;
    font-weight: 600;
    color: #222222;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: "Open Sans", sans-serif !important;
}


/* ── 8. SIGNATURE GIFT BOX
   · 음수 마진 없음
   · border-right·border-top 없음 (요청사항)
── */
.cart-giftbox {
    align-items: center;
    gap: 16px;
    margin-left: -18px;
    margin-right: -18px;
    padding: 40px 18px 40px 18px;        
}
.cart-giftbox-img-wrap {
  width: 76px;
  flex-shrink: 0;
}
.cart-giftbox-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.cart-giftbox-text { flex: 1; min-width: 0; }
.cart-giftbox-title {
  display: block;
  font-family: 'Noto Serif KR', serif !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;   
  color: #222;
  line-height: 1.4;
  margin-bottom: 7px;  
}
.cart-giftbox-desc {
    font-size: 11px;
    color: #333;
    line-height: 1.65;
    margin-bottom: 10px;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    letter-spacing: -0.02rem;
    max-width: 95%;
}

.MK_change_price {
    font-family: "Open Sans", sans-serif !important;
    flex-shrink: 0;
    text-align: right;
    font-size: 13px;
    font-weight: 400;
    color: #fa5500;
    letter-spacing: 0.03em;
    white-space: nowrap;
}



/* 문의 링크 (div/div 구조   li 간섭 없음) */

/* 결제수단 목록 (div/p 구조   li 간섭 없음) */


/* ── 10. 네이버페이 ── */
.cart-naverpay { margin-bottom: 50px;}


/* ── 11. 빈 장바구니 ── */
.cart-empty {
  padding: 180px 0 180px;
  text-align: center;
}
.cart-empty p {
    font-size: 12px;
    color: #222;
    line-height: 1.8;
    letter-spacing: 0.01rem;
}
.cart-contact-us {
    font-family: 'Josefin Sans';
    font-size: 12.5px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 8px;
    font-weight: 500;
    color: #222;
    letter-spacing: 0.02rem;
}


/* ── 12. 주문하기 (하단 고정)── */
.cart-checkout {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e8e8e8;
}
.cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  height: 52px;
  margin: 0 auto;
  background: #222;
  color: #fff !important;  
  font-size: 13px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.cart-checkout-spacer { height: 88px; }



/* BASIC css end */

