/* Корзина — отдельная страница: строки слева, итог справа. */
.cartpage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.cartpage h1 { display: flex; align-items: baseline; gap: 12px; font-size: var(--fs-2xl); }
.cartpage__count { font-family: var(--font); font-size: var(--fs-sm); font-weight: 500; color: var(--faint); }
.cartpage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.lines { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.line { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 12px 14px 12px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.line__img { width: 60px; height: 80px; object-fit: cover; border-radius: 8px; }
.line__main { display: grid; gap: 3px; min-width: 0; }
.line__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.line__name:hover { color: var(--accent); }
.line__variant { color: var(--muted); font-size: var(--fs-sm); }
.line__login { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: var(--fs-xs); }
.line__login svg { width: 13px; height: 13px; }
.line__price { font-family: var(--font-display); color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }
.line__remove { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--faint); cursor: pointer; }
.line__remove:hover { background: var(--surface-2); color: var(--bad); }
.line__remove svg { width: 15px; height: 15px; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-strong); }
.summary__row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.summary__row.is-short span:last-child { color: var(--warn); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.summary__total strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.summary__note { color: var(--faint); font-size: var(--fs-xs); }
.cart-empty { display: grid; justify-items: start; gap: 14px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px dashed var(--line-strong); color: var(--muted); }
.cart-suggest { display: grid; gap: 14px; margin-top: 12px; }
.cart-suggest h2 { font-size: var(--fs-xl); }
@media (max-width: 900px) {
  .cartpage__grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .line { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "img main remove" "img step price"; gap: 8px 12px; }
  .line__img { grid-area: img; width: 52px; height: 70px; }
  .line__main { grid-area: main; }
  .line .stepper { grid-area: step; justify-self: start; }
  .line__price { grid-area: price; min-width: 0; }
  .line__remove { grid-area: remove; }
}
