/* Cart page styles with premium lowpoly design language. */

.marketplace-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.marketplace-qty-control button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(226, 186, 67, 0.2);
  border-radius: var(--radius-md);
  background: rgba(226, 186, 67, 0.08);
  color: var(--accent-strong);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.marketplace-qty-control button:hover:not(:disabled) {
  background: rgba(226, 186, 67, 0.18);
  border-color: rgba(226, 186, 67, 0.4);
}

.marketplace-qty-control strong {
  min-width: 24px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.marketplace-qty-control button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cart-page-shell,
.cart-items-card,
.cart-summary-card,
.cart-empty-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft) 0%, rgba(18, 18, 23, 0.6) 100%);
  box-shadow: var(--shadow);
}

.cart-page-shell {
  padding: 32px;
}

.cart-page-header h1,
.cart-empty-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cart-page-header p,
.cart-empty-card p {
  color: var(--muted);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin-top: 24px;
}

.cart-items-card,
.cart-summary-card,
.cart-empty-card {
  padding: 24px;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 200px;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cart-item-image {
  display: block;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.4);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.cart-item-title {
  display: inline-block;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

.cart-item-meta {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cart-item-price,
.cart-line-total {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.cart-item-actions {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.cart-qty-form {
  margin: 0;
}

.cart-qty-control button {
  cursor: pointer;
}

.cart-remove-button {
  border: 0;
  background: transparent;
  color: #f87171;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cart-remove-button:hover {
  color: #ef4444;
}

.cart-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.cart-summary-line.total {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.cart-summary-action {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
  min-height: 48px;
  border-radius: var(--radius-lg);
}

.cart-empty-card {
  margin-top: 24px;
  text-align: center;
  padding: 48px;
}

@media (max-width: 1199.98px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .cart-item-row {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 16px;
  }

  .cart-item-actions {
    justify-items: start;
    width: 100%;
  }
}
