/* ======================
   ✅ 공통
====================== */
.container {
  max-width: 900px;
}
.signup-title {
  text-align: left;  /* ✅ 왼쪽 정렬 */
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #dc3545;
  padding-bottom: 10px;
}

/* ======================
   ✅ 테이블 (PC)
====================== */
#cartTable {
  width: 100%;
  border-collapse: collapse;
}

#cartTable th, 
#cartTable td {
  text-align: center !important;
  vertical-align: middle;
}

#cartTable th {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* ✅ 체크박스 중앙 정렬 */
#cartTable input[type="checkbox"] {
  display: block;
  margin: 0 auto;
}

/* ✅ 버튼 중앙 정렬 */
#cartButtonsContainer {
  display: flex;
  justify-content: center !important;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ✅ 카드 리스트는 왼쪽 정렬 */
.cart-card-list {
  text-align: left;
}

/* ✅ 빈 장바구니 메시지는 중앙 유지 */
.empty-cart-msg {
  text-align: center;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.qty-btn:hover {
  background: #f5f5f5;
}

/* ======================
   ✅ 모바일 카드형
====================== */
@media (max-width: 768px) {
  #cartTable {
    display: none;
  }

  .cart-card-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .cart-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  .cart-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .cart-item-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  .cart-item-name {
    font-weight: 600;
    color: #222;
    font-size: 15px;
    line-height: 1.4;
  }

  .cart-item-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin: 4px 0;
  }

  .cart-item-price {
    font-weight: 700;
    color: #d92323;
    text-align: right;
  }

  .cart-item-delete {
    text-align: right;
    margin-top: 6px;
  }

  .cart-item-delete button {
    border: 1px solid #d92323;
    background: transparent;
    color: #d92323;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 13px;
  }

  #cartButtonsContainer {
    flex-direction: column;
    gap: 10px;
    justify-content: center !important;
  }

  #cartButtonsContainer button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    font-weight: 600;
  }
}