/* 장바구니 전체 래퍼 */
.sts-cart-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* 장바구니 타이틀 */
.sts-cart-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

/* 단계 표시 */
.sts-cart-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 20px;
}

.sts-cart-steps .step {
  margin: 0 20px;
  color: #999;
  font-size: 14px;
  position: relative;
}

.sts-cart-steps .step.active {
  color: #333;
  font-weight: 600;
}

.sts-cart-steps .step:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -25px;
  color: #ddd;
}

/* 장바구니 컨테이너 */
.sts-cart-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* 장바구니 컨텐츠 영역 */
.sts-cart-content {
  flex: 1;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px;
}

/* 장바구니 헤더 */
.sts-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 2px solid #333;
  margin-bottom: 20px;
}

.sts-cart-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.sts-cart-count {
  font-size: 14px;
  color: #666;
}

/* 장바구니 아이템 */
.sts-cart-item {
  display: flex;
  align-items: flex-start;
  padding: 25px 0;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  gap: 15px;
}

.sts-cart-item-checkbox {
  flex-shrink: 0;
  padding-top: 30px;
}

.sts-cart-item-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.sts-cart-item-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.sts-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sts-cart-item-info {
  flex: 1;
  min-width: 0;
  padding-right: 20px;
}

.sts-cart-item-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #333;
  line-height: 1.4;
}

.sts-cart-item-title a {
  color: #333;
  text-decoration: none;
}

.sts-cart-item-title a:hover {
  text-decoration: underline;
}

.sts-cart-item-price {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 8px 0;
}

.sts-cart-item-category {
  font-size: 13px;
  color: #666;
  margin: 5px 0;
}

.sts-cart-item-options {
  margin-top: 8px;
}

.sts-option-display {
  font-size: 13px;
  color: #666;
  margin: 3px 0;
}

/* 수량 조절 */
.sts-cart-item-quantity {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 15px;
}

.sts-quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.sts-qty-minus,
.sts-qty-plus {
  width: 35px;
  height: 35px;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sts-qty-minus:hover,
.sts-qty-plus:hover {
  background: #e5e5e5;
}

.sts-qty-input {
  width: 60px;
  height: 35px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

.sts-qty-update {
  padding: 5px 15px;
  border: 1px solid #333;
  background: #fff;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
}

.sts-qty-update:hover {
  background: #333;
  color: #fff;
}

/* 액션 버튼 */
.sts-cart-item-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 15px;
}

.sts-item-order,
.sts-item-delete {
  padding: 10px 25px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
}

.sts-item-order:hover,
.sts-item-delete:hover {
  background: #f5f5f5;
}

/* 삭제 버튼 */
.sts-item-remove {
  position: absolute;
  top: 25px;
  right: 15px;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sts-item-remove:hover {
  color: #333;
}

/* 장바구니 푸터 */
.sts-cart-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

.sts-cart-footer-info {
  margin-bottom: 15px;
}

.sts-cart-footer-info p {
  margin: 5px 0;
  font-size: 14px;
  color: #666;
}

.sts-cart-footer-actions {
  display: flex;
  gap: 10px;
}

.sts-continue-shopping,
.sts-selected-delete {
  padding: 10px 20px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}

.sts-continue-shopping:hover,
.sts-selected-delete:hover {
  background: #f5f5f5;
}

/* 사이드바 */
.sts-cart-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.sts-cart-summary {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 20px;
}

.sts-cart-summary h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.sts-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.sts-summary-total {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid #e5e5e5;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.sts-total-amount {
  color: #e74c3c;
  font-size: 20px;
}

/* 주문 버튼 */
.sts-checkout-btn,
.sts-selected-checkout-btn {
  width: 100%;
  padding: 15px;
  margin-bottom: 10px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.sts-checkout-btn {
  background: #333;
  color: #fff;
}

.sts-checkout-btn:hover {
  background: #555;
}

.sts-selected-checkout-btn {
  background: #fff;
  color: #333;
  border: 1px solid #333;
}

.sts-selected-checkout-btn:hover {
  background: #f5f5f5;
}

/* 네이버페이 안내 */
.sts-payment-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  margin: 20px 0;
}

.sts-payment-notice img {
  width: 30px;
  height: 30px;
}

.sts-payment-notice div {
  flex: 1;
}

.sts-naver-badge {
  display: block;
  font-size: 11px;
  color: #666;
}

.sts-naver-text {
  font-size: 14px;
  font-weight: 600;
  color: #03c75a;
}

.sts-naverpay-btn {
  padding: 8px 20px;
  background: #03c75a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sts-naverpay-btn:hover {
  background: #02b351;
}

.sts-payment-info {
  font-size: 12px;
  color: #666;
  margin: 10px 0;
}

.sts-payment-warning {
  font-size: 12px;
  color: #e74c3c;
  margin: 10px 0;
}

/* 빈 장바구니 */
.sts-cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.sts-cart-empty p {
  font-size: 16px;
  color: #666;
}

/* 장바구니 옵션 스타일 */
.sts-cart-item-options {
  margin-top: 5px;
}

.sts-option-display {
  font-size: 13px;
  color: #666;
  background: #f5f5f5;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  margin: 2px 5px 2px 0;
}

/* WooCommerce variation 스타일 */
.sts-cart-item dl.variation {
  margin: 8px 0 0 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sts-cart-item dl.variation dt {
  display: none; /* 라벨 숨김 - 값만 표시 */
}

.sts-cart-item dl.variation dd {
  margin: 0;
  font-size: 12px;
  color: #666;
  background: #f5f5f5;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  display: inline-block;
}

.sts-cart-item dl.variation dd p {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
}

/* 또는 라벨을 표시하려면 아래 스타일 사용 */
/*
.sts-cart-item dl.variation dt {
  font-weight: normal;
  font-size: 12px;
  color: #999;
  margin: 0;
  display: inline-block;
}

.sts-cart-item dl.variation dt:after {
  content: ":";
  margin-right: 4px;
}

.sts-cart-item dl.variation dd {
  margin: 0 12px 0 0;
  font-size: 12px;
  color: #333;
  font-weight: 600;
  display: inline-block;
}

.sts-cart-item dl.variation dd p {
  margin: 0;
  display: inline;
}
*/

/* 입력 필드 스타일 통일 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
  height: auto;
}

/* 반응형 */
@media (max-width: 768px) {
  .sts-cart-container {
    flex-direction: column;
  }

  .sts-cart-sidebar {
    width: 100%;
  }

  .sts-cart-item {
    flex-wrap: wrap;
    padding: 15px 0;
  }

  .sts-cart-item-checkbox {
    padding-top: 20px;
  }

  .sts-cart-item-image {
    width: 80px;
    height: 80px;
  }

  .sts-cart-item-info {
    width: 100%;
    margin-top: 10px;
    padding-right: 0;
  }

  .sts-cart-item-quantity,
  .sts-cart-item-actions {
    margin-top: 10px;
    padding: 0;
  }

  .sts-cart-item-actions {
    flex-direction: row;
    width: 100%;
  }

  .sts-item-order,
  .sts-item-delete {
    flex: 1;
    min-width: auto;
  }
}
