.cart-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 30px 100px;
}

.cart-title {
  font-size: 52px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 48px;
  color: var(--black);
}

.empty-cart {
  padding: 80px 40px;
  text-align: center;
  border: 1px solid var(--border);
}
.empty-cart h3 {
  font-size: 22px;
  font-weight: 400;
  color: var(--mid);
}

/* ── TABLE ── */
.cart-table {
  width: 100%;
  background: #fff;
}

.cart-table th {
  padding: 13px 20px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--black);
  border: none;
}
.cart-table th.col-qty   { text-align: center; width: 200px; }
.cart-table th.col-price { text-align: right;  width: 150px; }
.cart-table th.col-remove { width: 50px; }

/* Body rows — fully separate bordered boxes with gap */
.cart-table {
  border-collapse: separate;
  border-spacing: 0 10px;
}

.cart-table tbody tr {
  background: #fff;
}

.cart-table tbody td {
  padding: 22px 20px;
  vertical-align: middle;
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
}
.cart-table tbody td:first-child {
  border-left: 1px solid #dddddd;
}
.cart-table tbody td:last-child {
  border-right: 1px solid #dddddd;
}

/* ── PRODUCT CELL ── */
.cart-product {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.cart-product img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-product-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--black);
}
.cart-product-price {
  font-size: 14px;
  font-weight: 400;
  color: var(--mid);
  margin-bottom: 5px;
}
.cart-attr {
  font-size: 12px;
  color: var(--light);
  line-height: 1.7;
}

/* ── PHOTOS ── */
.cart-photos { margin-top: 10px; }
.cart-photos-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}
.cart-photos-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.cart-photos-grid img { width: 48px; height: 48px; object-fit: cover; border: 1px solid #c0e9e6; }
.cart-photo-slot { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cart-photo-slot span { font-size: 9px; color: var(--light); font-weight: 500; }

/* ── QTY ── */
.qty-cell { text-align: center; }
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dddddd;
  height: 38px;
}
.qty-btn {
  width: 38px;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  color: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.qty-btn:hover { background: #f4f4f4; color: var(--black); }
.qty-input {
  width: 48px;
  height: 100%;
  border: none;
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  background: none;
  outline:none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── PRICE ── */
.price-cell {
  text-align: right;
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
}

/* ── REMOVE ── */
.remove-cell { text-align: center; }
.btn-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--light);
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  transition: color .15s;
  font-weight: 300;
}
.btn-remove:hover { color: #e53e3e; }

/* ── DIVIDER after table ── */
.cart-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0 0;
}

/* ── ACTIONS BAR ── */
.cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.coupon-group { display: flex; align-items: center; }
.coupon-input {
  height: 42px;
  width: 230px;
  border: 1px solid #dddddd;
  border-right: none;
  padding: 0 16px;
  font-size: 13px;
  color: var(--mid);
  background: #fff;
  outline: none;
}
.coupon-input::placeholder { color: #bbb; }
.btn-coupon {
  height: 42px;
  padding: 0 22px;
  background: var(--black);
  color: #fff;
  border: 1px solid var(--black);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
}
.btn-coupon:hover { background: #333; }

.cart-action-links { display: flex; align-items: center; gap: 20px; }

.btn-continue {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 22px;
  border: 1px solid #dddddd;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  background: #fff;
  transition: background .15s;
}
.btn-continue:hover { background: #f4f4f4; }

.btn-clear {
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}
.btn-clear:hover { color: #e53e3e; }

/* ── TOTALS PANEL — bottom right ── */
.cart-totals-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 36px;
}

.cart-totals {
  width: 360px;
  border: 1px solid var(--border);
  background: #fff;
}

/* Gift wrap option */
.gift-wrap-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.gift-wrap-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--black);
  flex-shrink: 0;
  cursor: pointer;
}
.gift-wrap-row label {
  font-size: 13px;
  color: var(--mid);
  cursor: pointer;
  line-height: 1.5;
}

/* Totals body */
.totals-body { padding: 20px; }

.totals-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.totals-subtotal-row .label {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}
.totals-subtotal-row .value {
  font-size: 26px;
  font-weight: 700;
  color: var(--black);
}

.totals-note {
  font-size: 12px;
  color: var(--light);
  margin-bottom: 18px;
  line-height: 1.5;
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 15px 10px;
  background: var(--black);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.checkout-btn:hover { background: #333; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .cart-wrapper { padding: 30px 16px 70px; }
  .cart-title { font-size: 36px; }
  .cart-totals-wrap { justify-content: stretch; }
  .cart-totals { width: 100%; }
  .cart-table th, .cart-table td { padding: 14px 12px; }
}