/* ============================================================
   CART PAGE — STYLES
   ============================================================ */

.page-hero { padding: calc(var(--header-h) + 80px) 0 80px; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

/* Cart items — image | info+actions */
.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
}

.cart-item-img {
  width: 88px; height: 88px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
}
.cart-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.cart-item-info .overline { margin-bottom: 0; }
.cart-item-name-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.cart-item-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}
.cart-item-price {
  font-size: .95rem;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 60px;
  overflow: hidden;
  flex: 0 0 auto;
}
.cart-item-controls .qty-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--fg);
  cursor: pointer;
  transition: background .2s;
}
.cart-item-controls .qty-btn:hover { background: rgba(0,0,0,.06); }
.cart-item-controls .qty-val {
  width: 28px;
  text-align: center;
  font-weight: 600;
  font-size: .875rem;
}

.cart-remove {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: background .2s, color .2s, border-color .2s;
  flex-shrink: 0;
  cursor: pointer;
}
.cart-remove:hover { background: var(--red); border-color: var(--red); color: #fff; }

@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 14px;
  }
  .cart-item-img { width: 72px; height: 72px; }
  .cart-item-name { font-size: .95rem; }
  .cart-summary { padding: 28px 20px; }
}

/* Empty cart */
.cart-empty { text-align: center; padding: 80px 24px; }
.cart-empty-icon {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 32px;
}

/* Summary */
.cart-summary { padding: 40px; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .cart-summary { position: static; } }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .9375rem;
  margin-bottom: 16px;
}
.summary-divider { border: none; border-top: 1px solid var(--glass-border); margin: 24px 0; }
.summary-total-row { font-size: 1.25rem; font-weight: 700; }

/* Trust badges */
.trust-badges {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  color: var(--text-dim);
}
