.cart-page {
  padding-top: 24px;
  padding-bottom: 48px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-items h1 {
  font: 700 32px var(--font-head);
  margin: 0 0 24px 0;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vendor-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vendor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--mint);
  border-radius: var(--radius);
}

.vendor-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vendor-icon {
  font-size: 24px;
}

.vendor-info strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.vendor-info small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.vendor-subtotal {
  text-align: right;
}

.subtotal-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.vendor-subtotal strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.vendor-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  align-items: center;
}

@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }
}

.cart-item-image {
  width: 100px;
  height: 100px;
  background: var(--mint);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 48px;
  color: var(--ink-2);
}

@media (max-width: 600px) {
  .cart-item-image {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-details small {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
}

.cart-item-details h3 {
  font: 600 18px var(--font-body);
  margin: 0;
  color: var(--ink);
}

.cart-item-variant {
  font-size: 13px;
  color: var(--muted);
}

.cart-item-price {
  font: 600 18px var(--font-body);
  color: var(--ink);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

@media (max-width: 600px) {
  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.quantity-controls input {
  width: 50px;
  text-align: center;
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--white);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--mint);
}

.remove-btn {
  font-size: 13px;
  color: var(--deal);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
}

.remove-btn:hover {
  color: #a02028;
}

.empty-cart {
  text-align: center;
  padding: 64px 24px;
  background: var(--white);
  border-radius: var(--radius);
}

.empty-icon {
  font-size: 64px;
  color: var(--line);
  margin-bottom: 16px;
}

.empty-cart h2 {
  font: 700 24px var(--font-head);
  margin: 0 0 8px 0;
  color: var(--ink);
}

.empty-cart p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 24px 0;
}

.summary-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  position: sticky;
  top: 100px;
}

.summary-card h2 {
  font: 700 20px var(--font-head);
  margin: 0 0 20px 0;
  color: var(--ink);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
}

.summary-row.total {
  font-size: 18px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 2px solid var(--line);
}

.summary-row.total strong {
  font: 700 24px var(--font-head);
  color: var(--ink);
}

.summary-divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.delivery-note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 16px 0 20px 0;
}

.btn-large {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  margin-bottom: 12px;
}

.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--mint);
  border-radius: 12px;
}

.trust-item span {
  width: 32px;
  height: 32px;
  background: var(--lime);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.trust-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-item strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.trust-item small {
  font-size: 12px;
  color: var(--muted);
}
