.cart-section {
  padding: 40px 0 70px;
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 30px;
  align-items: flex-start;
}

.cart-items-panel {
  flex: 2 1 480px;
}
.cart-items-panel h2 {
  margin-bottom: 18px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f2f2f2;
}
.cart-item-row:last-child {
  border-bottom: none;
}
.cart-item-row img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-info h4 {
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-info p {
  font-size: 13px;
  color: var(--ink-soft, #777);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-qty button {
  width: 30px;
  height: 30px;
  border: none;
  background: #f6f6f6;
  cursor: pointer;
}
.cart-item-qty input {
  width: 36px;
  height: 30px;
  border: none;
  text-align: center;
}

.cart-item-total {
  width: 90px;
  text-align: right;
  font-weight: 700;
  flex-shrink: 0;
}

.cart-item-remove {
  border: none;
  background: none;
  color: var(--brand-dark, #c0392b);
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
}

.cart-summary-panel {
  flex: 1 1 320px;
  max-width: 380px;
  position: sticky;
  top: 100px;
}

.cart-empty {
  text-align: center;
  padding: 70px 20px;
}
.cart-empty .fa-shopping-cart {
  font-size: 44px;
  color: #ddd;
  margin-bottom: 16px;
}
.cart-empty h2 {
  margin-bottom: 8px;
}
.cart-empty p {
  color: var(--ink-soft, #777);
  margin-bottom: 22px;
}

.active-link .cart-badge {
  opacity: 1;
  color: #ff007f;
}

@media only screen and (max-width: 700px) {
  .cart-section {
    flex-direction: column-reverse;
  }
  .cart-summary-panel {
    position: static;
    max-width: 100%;
  }
}
