.cart-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.cart-page h1 {
  font-size: 28px;
  font-weight: 800;
  color: #111;
  margin-bottom: 8px;
}
.cart-count-label {
  font-size: 14px;
  color: #999;
  margin-bottom: 32px;
}

/* Empty state */
.cart-empty {
  text-align: center;
  padding: 80px 20px;
}
.cart-empty h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}
.cart-empty p {
  font-size: 15px;
  color: #999;
  margin-bottom: 24px;
}
.cart-empty a {
  display: inline-block;
  padding: 14px 32px;
  background: #F5A623;
  color: #111;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.cart-empty a:hover {
  background: #e5961f;
  transform: translateY(-2px);
  text-decoration: none;
  color: #111;
}

/* Cart items */
.cart-items {
  border-top: 2px solid #eee;
}
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item-img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-info {
  min-width: 0;
}
.cart-item-name {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
  line-height: 1.3;
}
.cart-item-name a {
  color: #111;
  text-decoration: none;
}
.cart-item-name a:hover {
  color: #1D19FA;
}
.cart-item-price-each {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 999px;
  overflow: hidden;
}
.qty-control button {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 18px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.qty-control button:hover {
  background: #f5f5f5;
}
.qty-control span {
  width: 40px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #111;
}
.remove-btn {
  border: none;
  background: none;
  color: #bbb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
}
.remove-btn:hover {
  color: #DC2626;
}

/* Right column — line total */
.cart-item-total {
  text-align: right;
  min-width: 80px;
}
.cart-item-total .line-price {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

/* Summary */
.cart-summary {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}
.cart-summary-box {
  width: 340px;
  background: #fafafa;
  border-radius: 12px;
  padding: 28px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 12px;
}
.summary-row .label {
  color: #777;
}
.summary-row .value {
  font-weight: 600;
  color: #111;
}
.summary-row.shipping .value {
  color: #16A34A;
  font-weight: 600;
}
.summary-divider {
  border: none;
  height: 1px;
  background: #e5e5e5;
  margin: 16px 0;
}
.summary-row.total {
  font-size: 20px;
  margin-bottom: 20px;
}
.summary-row.total .label {
  font-weight: 700;
  color: #111;
}
.summary-row.total .value {
  font-weight: 800;
  color: #111;
}
.checkout-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 999px;
  background: #F5A623;
  color: #111;
  font: 700 16px/1 'Inter', sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(245,166,35,0.3);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.checkout-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.checkout-btn:hover {
  background: #e5961f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}
.checkout-btn:hover::after {
  left: 125%;
}
.checkout-btn:active {
  transform: translateY(0);
}
.checkout-note {
  text-align: center;
  font-size: 12px;
  color: #bbb;
  margin-top: 12px;
}
.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #1D19FA;
  text-decoration: none;
}
.continue-shopping:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 14px;
  }
  .cart-item-total {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .cart-summary-box {
    width: 100%;
  }
  .cart-summary {
    justify-content: stretch;
  }
}
