/* BASIC css start */
/* BASIC css start */
/* BASIC css start */
/* 공통 컬러 변수 */
  :root {
    --border-color: #dbdbdb;
  }

  /* ----------------- 컨테이너 ----------------- */
  .cart-container {
    margin: 0 auto;
    max-width: 1400px;
  }

  .page-title {
    text-align: center;
    margin-top: 64px;
    font-weight: 600;
    font-size: 40px;
    margin-bottom: 32px;
  }
 .form-check label {
    font-size: 18px;
}
  /* ----------------- 장바구니 리스트 상단 제어 ----------------- */
  .cart-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-top: 8px;
  }
  .cart-top-bar .total-count {
    font-size: 22px;
    font-weight: 600;
  }
  .btn-del-sel {
    border: 1px solid #000;
    background: #fff;
    padding: 11px 16px;
    font-size: 15px;
    border-radius: 5px;
    color: #000;
    font-weight: 600;
    display: flex;
    gap: 6px;
    justify-content: center;
  }

  /* ----------------- 장바구니 리스트 영역 ----------------- */
  .cart-main {
    border-top: 2px solid #000;
  }
  
  /* PC 헤더 */
  .cart-thead {
    display: flex;
    align-items: center;
    padding: 23.5px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    font-weight: 500;
    font-size: 18px;
    background: #FAFAFA;
  }
  .th-chk {width: 140px;text-align: left;/* padding-left: 10px; */}
  .th-info { flex: 1; text-align: center; }
  .th-qty {width: 102px;}
  .th-price { width: 150px; }
  .th-del { width: 40px; }

  /* 모바일 전용 전체선택 헤더 (PC에선 숨김) */
  .cart-thead-mobile {
    display: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
  }

  /* 개별 상품 아이템 (PC 기본 레이아웃 - Flex) */
  .cart-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
  }
  .td-chk {width: 50px;}
  .td-img {width: 100px;}
  .td-img img {width: 100%;height: auto;display: block;/* background: #f5f5f5; *//* aspect-ratio: 1/1; *//* object-fit: cover; */}
  .td-info {flex: 1;padding-left: 28px;}
.td-info a {
    color: #000;
}
  .td-info .item-name {font-size: 20px;font-weight: 600;margin-bottom: 8px;line-height: 1.4;}
  .td-info .item-desc {font-size: 18px;color: #888;font-weight: 500;}
.td-info .btn {
    border: 1px solid #dbdbdb;
    background: #fff;
    padding: 0 10px;
    font-size: 15px;
    border-radius: 5px;
    color: #000;
    font-weight: 500;
    display: inline-flex;
    gap: 6px;
    justify-content: center;
        align-items: center;
    margin-left: 8px;
    height: 38px;
}
  .td-qty {width: 102px;display: flex;justify-content: center;}
  .qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #DBDBDB;
    width: 100%;
    height: 40px;
  }
  .qty-box a {
    flex: 1;
    text-align: center;
}
  .qty-box button { width: 28px; height: 100%; font-size: 16px; color: #333; }
  .qty-box input {flex: 1;width: 100%;height: 100%;text-align: center;border: none;outline: none;font-size: 18px;padding: 0;}
  
  .td-price { width: 150px; text-align: center; }
  .price-now {display: block;font-size: 22px;font-weight: 700;}
  .price-old {display: block;font-size: 18px;color: #BBBBBB;text-decoration: line-through;margin-top: 2px;font-weight: 500;}
  
  .td-del { width: 40px; text-align: right; }
  .btn-item-del { font-size: 20px; color: #999; }

/* ----------------- 결제 금액 요약 (하나로 통합) ----------------- */
.cart-summary-unified {
  margin-top: 40px;
}

/* 모바일 전용 타이틀 PC에선 숨김 */
.cart-summary-unified .mo-title {
  display: none; 
}

/* PC 기본 스타일 (가로 정렬) */
.summary-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fafafa;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 0;
}
.summary-box > span {
    display: flex;
    align-items: center;
}
.sum-item {
  display: inline-flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 20px;
  width: clamp(100px, 15vw, 245px);
}
.sum-item .label {font-size: 18px;color: #000000;font-weight: 500;}
.sum-item .val {font-weight: 700;/* font-size: 0; */font-size: 28px;}
.sum-item .val > span {
    font-size: 28px;
}
.sum-op {font-size: 40px;font-weight: 400;color: #888;font-family: "Jost", sans-serif;}

/* PC 최종 합계 영역 */
.sum-item.total .val { color: var(--main-color); }
.sum-item.total .point {font-size: 18px;color: #000000;font-weight: 500;}
.sum-item.total .val-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.pc-hidden { display: none; } 
  /* ----------------- 하단 버튼 그룹 ----------------- */
  .btn-group {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    border: 0;
  }
  .btn-group a {
    width: 216px;
    height: 64px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-gift { background: #fff; border: 1px solid var(--main-color); color: var(--main-color); }
  .btn-order { background: #000; color: #fff; border: 1px solid #000; }
/* ----------------- 장바구니 빈 화면 ----------------- */

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 58px;
  text-align: center;
  /* border-top: 2px solid #000; */
  /* border-bottom: 1px solid var(--border-color); */
}

.empty-icon {
  margin-bottom: 20px;
}

.empty-text {
  font-size: 20px;
  color: #bbb;
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: 500;
}

.btn-continue {
  padding: 20px 28px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  background-color: var(--main-color);
  border: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.btn-continue:hover {
  opacity: 0.9;
} 





.stepper {
  display: flex;
  align-items: center;
  gap: 24px; /* 단계와 화살표 사이 간격 */
  margin: 32px 0 48px; /* 폰트 설정 */
  justify-content: center;
}
.stepper .step {
  display: flex;
  align-items: center;
  gap: 10px; /* 숫자와 텍스트 사이 간격 */
  color: #bbb; /* 기본 비활성 색상 */
}
.stepper .step.active {
  color: var(--main-color); /* 강조될 남색/보라색 */
  font-weight: 700;
}
.stepper .step.active .label {
    color: #000;
    font-weight: 700;
}
.stepper .step .number {
  font-size: 20px;
}
.stepper .step .label {
  font-size: 20px;
  font-weight: 500;
}
.stepper .arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

  /* ==========================================================
     반응형 모바일 (1024px 이하)  
  ========================================================== */
  @media (max-width: 1024px) {
    .page-title {font-size: 19px;margin-bottom: 16px;margin-top: 32px;}
    
    /* PC 헤더 숨김 및 모바일 전체선택 노출 */
    .cart-thead { display: none; }
    .cart-thead-mobile {display: block;}

    /* 모바일 아이템 레이아웃 (Grid 활용) */
    .cart-item {
      display: grid;
      grid-template-columns: 64px 1fr 12px;
      grid-template-rows: auto auto auto auto;
      grid-template-areas:
        "chk   .      del"
        "img   info  info"
        "img   price price"
        "img   qty   qty";
      gap: 6px 20px;
      padding: 12px 0;
      align-items: start;
    }
    
    .td-chk {grid-area: chk;width: auto;}
    .td-del { grid-area: del; width: auto; text-align: right; }
    .td-img {grid-area: img;width: 64px; /* 체크박스 라인 고려하여 위로 당김 */}
    
    .td-info { grid-area: info; padding-left: 0; }
    .td-info .item-name {font-size: 15px;margin-bottom: 0;line-height: 1.2;}
    
    .td-price {grid-area: price;text-align: left;width: auto;display: flex;align-items: center;gap: 4px;}
    .price-now {font-size: 14px;margin-bottom: 0;font-weight: 600;}
    .price-old {font-size: 12px;}
    
    .td-qty {grid-area: qty;width: auto;justify-content: flex-start;width: 70px;}


  .cart-summary-unified .mo-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16.5px;
  }
  
  .summary-box {
    display: block; /* Flex 해제 */
    background: transparent;
    border: none;
    border-top: 2px solid #000;
    border-bottom: 0;
    border-radius: 0;
    padding: 16px 0 0;
  }
  
  .sum-op {
    display: none; /* +, = 기호 모바일에서 숨김 */
  }
  
  .sum-item {
    flex-direction: row;
    justify-content: space-between;
    padding: 4.5px 0;
    border-bottom: 0;
    width: 100%;
    display: flex;
  }
  .MK_total_price .sum-item {border-top: 1px solid var(--border-color);}
  
  .sum-item .label {font-size: 14px;font-weight: 600;}
  .sum-item .val {font-size: 14px;font-weight: 600;}
  .sum-item .val > span {font-size: 14px;}
  /* 모바일 최종 합계 영역 영수증 스타일로 재배치 */
  .sum-item.total {align-items: flex-start;padding: 16px 0 0;margin-top: 16px;position: relative;}
  .sum-item.total .label {font-size: 16px;color: var(--main-color);}
  .pc-hidden { display: block; } /* '주문금액' 텍스트 모바일 노출 */
  
  .sum-item.total .val-group { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    gap: 4px; 
  }
  .sum-item.total .val {font-size: 18px;font-weight: 700;}
    .sum-item.total .val > span {font-size: 18px;}
  .sum-item.total .point {color: #888;margin-top: 8px;/* display: flex; *//* align-items: center; *//* justify-content: space-between; */font-size: 13px;font-weight: 400;}
 .sum-item.total .point > span:first-child {
    position: absolute;
    bottom: 2px;
    left: 0;
}
    /* 하단 버튼 50:50 분할 */
    .btn-group a {flex: 1;width: auto;height: 48px;border-radius: 6px;font-size: 14px;}
    
      .cart-empty {
    padding: 16px;
  }
  .empty-text {
    font-size: 14px;
  }
  .btn-continue {
    width: 100%;
    max-width: 240px;
    font-size: 14px;
    padding: 16px 20px;
  }
    .cart-top-bar {
    padding-top: 11px;
    margin-bottom: 11px;
}

.cart-top-bar .total-count {
    font-size: 13px;
}

.btn-del-sel {
    font-size: 11px;
    padding: 6.5px 10px;
    gap: 4px;
    border: 1px solid #DBDBDB;
    border-radius: 4px;
}

.btn-del-sel img {
    width: 10px;
} 
.form-check label {
    font-size: 13px;
    gap: 6px;
}

.btn-item-del img {
    width: 12px;
}

.btn-item-del {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.td-info .item-desc {
    font-size: 13px;
    font-weight: 400;
}

.td-info .btn {
        font-size: 12px;
        padding: 0 6px;
        font-weight: 400;
        margin-left: 4px;
        height: 26px;
    }

.qty-box {
    height: 28px;
    margin-top: 6px;
}

.qty-box a img {
    width: 8px;
}

.qty-box input {
    font-size: 13px;
}

.cart-summary-unified {
    margin-top: 48px;
} 




    
  
  
.stepper {
    gap: 12px;
    margin: 16px 0 24px;
}
.stepper .step {
    gap: 6px;
}
.stepper .step .label {
    font-size: 14px;
}

.stepper .step .number {
    font-size: 14px;
}

  }
/* BASIC css end */


/* BASIC css end */


/* BASIC css end */

