/* 장바구니 페이지 */
.cart-page {
  padding-top: 70px;
}

/* .cart-page .page-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  max-height: 90px !important;
  background: #fff !important;
  z-index: 1001 !important;
  border-bottom: 1px solid #e6e6e6 !important;
  display: flex !important;
  align-items: center !important;
  padding: 20px !important;
} */

.cart-page .page-header .btn-back {
  margin-right: 0;
}

.cart-page .page-header .btn-home {
  display:inline-block;
  margin-left: auto;
}

.cart-page .page-header .btn-home i {
  font-size: 24px;
  color:#222;
}

/* 장바구니 헤더 */
.cart-item-count {
  margin-left: 6px;
  font-size: 17px;
  font-weight: 700;
}

.cart-select-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 8px 20px;
}

/* 장바구니 아이템 리스트 */
.cart-items-list {
  list-style: none;
  margin: 0;
  padding: 20px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 30px 0 20px 0;
}

.cart-item-left {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
}

.cart-item-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-option-item {
  background-color: #fafafa;
  padding: 16px 20px;
  border-radius: 8px;
}

.cart-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cart-option-name {
  font-size: 16px;
  color: #5e5e5e;
  flex: 1;
  word-break: keep-all;
}

.cart-option-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.cart-option-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-option-footer .option-set {
  display: flex;
  align-items: center;
  justify-items: center;
  gap: 4px;
}
.cart-option-footer .option-set button {
  height: 32px;
  line-height: 32px;
  display: flex;
  align-items: center;
  justify-items: center;
}
.cart-option-footer .option-set button i {
  font-size: 20px;
}

.cart-option-footer .option-set input {
  max-width: 60px;
  text-align: center;
  min-height: 32px;
}

.cart-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.cart-qty-control button {
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.cart-qty-control button:hover {
  background-color: #f8f9fa;
}

.cart-qty-input {
  width: 50px;
  text-align: center;
  border: none;
  font-size: 14px;
}

.cart-price-info {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.cart-price-main {
  font-size: 17px;
  font-weight: 700;
}

.cart-price-points {
  font-size: 12px;
  color: #a7a7a7;
}

.cart-item-summary {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px;
}

.cart-item-pricing {
  gap: 6px;
  font-size: 15px;
  line-height: 1;
  color: #000;
}

.cart-item-subtotal,
.cart-item-total-amount {
  font-size: 19px;
  font-weight: 700;
}

.cart-shipping-notice {
  display: flex;
  align-items: center;
  color: #a7a7a7;
}

.cart-shipping-notice img {
  width: 24px;
  height: 24px;
  margin-right: 6px;
}

/* 무료배송 CTA*/
.cart-free-shipping-cta {
    padding: 20px 0px 20px 40px;
}

.cart-free-shipping-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.4;
}

.cart-free-shipping-text * {
  font-size: inherit;
  line-height: inherit;
}

.cart-free-shipping-list {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.cart-free-shipping-image-wrap {
  width: 100px;
  height: 95px;
  aspect-ratio: 1 / 1;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0 0 8px;
}

.cart-free-shipping-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-free-shipping-item {
  flex: 0 0 100px;  
  max-width: 100px;
  text-align: start;
}

.cart-free-shipping-item-title {
  font-size: 14px;
  margin: 0 0 4px;
  line-height: 1.4;
  word-break: keep-all;
}

.cart-free-shipping-item-discount {
  font-size: 12px;
  margin-right: 3px;
}

.cart-free-shipping-item-price {
  font-size: 16px;
  font-weight: 700;
}

.cart-recommend-section {
  margin-top: 40px;
}

/* 장바구니 총 합계 금액 */
.cart-summary-section {
  padding: 20px;
  background: #fff;
}

.cart-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-summary-table td {
  padding: 8px 0;
}

.cart-summary-label {
  font-size: 15px;
  font-weight: 500;
}

.cart-summary-shipping-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 500;
}

.cart-summary-shipping-label img {
  width: 16px;
  height: 16px;
}

.cart-summary-amount {
  font-size: 19px;
  font-weight: 700;
  text-align: right;
}

.cart-summary-final {
  font-size: 19px;
  font-weight: 800;
  text-align: right;
}

.modal-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 500;
}

.modal-content p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
}

.modal-btn-group {
  display: flex;
  justify-content: center;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.modal-close img {
  display: block;
  width: 100%;
  height: 100%;
}