/* ===== Custom Cart Styles (prefix .rs-) ===== */
.rs-cart-section {
  padding: 50px 0;
}

.rs-cart-title {
  text-align: center;
  font-weight: 600;
  font-size: 40px;
  margin-bottom: 30px;
}

.rs-cart-table {
  width: 100%;
  border: 1px solid #eee;
  border-collapse: collapse;
}

.rs-cart-table th,
.rs-cart-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  border: 1px solid #dedede;
}

.rs-cart-table th {
  background: #f6efe9;
  font-weight: 600;
  font-size: 15px;
}

.rs-cart-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

.rs-quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.rs-quantity button {
  background: #f5f5f5;
  border: none;
  width: 30px;
  height: 30px;
  font-weight: bold;
  cursor: pointer;
}

.rs-quantity input {
  width: 40px;
  border: none;
  text-align: center;
}

.rs-coupon-area {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.rs-coupon-area input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 10px;
}

.rs-coupon-area button {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-weight: 500;
}

/* Cart totals */
.rs-cart-totals {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  background: #f6efe9;
}

.rs-cart-totals h5 {
  font-weight: 600;
  margin-bottom: 20px;
}

.rs-cart-totals table {
  width: 100%;
}

.rs-cart-totals td {
  padding: 8px 0;
  font-size: 15px;
}

.rs-total {
  font-weight: 600;
}

.rs-checkout-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  width: 100%;
  margin-top: 15px;
  font-weight: 500;
}

.rs-checkout-btn:hover {
  background: #e04a4a;
}

/* ===== Mobile Responsive ===== */

@media (max-width: 767px) {

  .rs-cart-table th:nth-child(3),
  .rs-cart-table td:nth-child(3),
  .rs-cart-table th:nth-child(4),
  .rs-cart-table td:nth-child(4),
  .rs-cart-table th:nth-child(5),
  .rs-cart-table td:nth-child(5) {
    font-size: 14px;
    padding: 10px 5px;
  }

  .rs-cart-img {
    width: 60px;
    height: 60px;
  }

  .rs-coupon-area {
    flex-direction: column;
  }

  .rs-cart-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}