/* ============================================================
   DATAMOLL — CART REDESIGN (drop-in visual layer)
   Refined to match the catalog/home style: clean white cards,
   soft shadows, 18px radii, green accent, slate text, Montserrat.

   Targets the EXISTING markup produced by cart.php + cart.js,
   so no JS logic changes are required. Load this stylesheet
   LAST (after cart.css and redesign.css).

   Covers all 4 states:
     1) Empty        .cart-empty
     2) With items   .cart-content
     3) Confirm       .cart-confirm-content
     4) Success      .cart-success
   plus the stepper and page header.
   ============================================================ */

.storefront-autoreg .cart-page,
.cart-page {
  --cr-ink: #1e293b;
  --cr-ink2: #475569;
  --cr-muted: #64748b;
  --cr-light: #94a3b8;
  --cr-line: #eef1f5;
  --cr-line2: #e6eaf0;
  --cr-surface: #ffffff;
  --cr-soft: #f4f6f9;
  --cr-acc: #8ff451;
  --cr-acc-deep: #16a34a;
  --cr-acc-tint: #eafcdd;
  --cr-acc-ink: #143a07;
  --cr-red: #ff3b3b;
  --cr-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 28px rgba(15, 23, 42, .045);
  --cr-shadow-soft: 0 1px 2px rgba(15, 23, 42, .06);
  --cr-r: 18px;
  --cr-r-md: 13px;
  --cr-r-sm: 10px;
  background: #f8fafc;
  padding: 26px 0 72px;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  color: var(--cr-ink);
}

.cart-page * { box-sizing: border-box; }

/* ============================================================
   STEPPER
   ============================================================ */
.storefront-autoreg .cart-stepper,
.cart-page .cart-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 0;
  background: var(--cr-surface);
  border: 0;
  border-radius: var(--cr-r);
  box-shadow: var(--cr-shadow);
  padding: 20px 28px;
  margin-bottom: 18px;
}
.cart-page .cart-stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 116px;
}
.storefront-autoreg .cart-page .stepper-icon,
.cart-page .stepper-icon {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--cr-soft);
  color: var(--cr-light);
  box-shadow: none;
  transition: background .2s ease, color .2s ease;
}
.cart-page .stepper-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cr-light);
}
.cart-page .cart-stepper-item.active .stepper-icon {
  background: var(--cr-acc);
  color: #0c1c03;
  box-shadow: 0 8px 18px rgba(143, 244, 81, .35);
}
.cart-page .cart-stepper-item.completed .stepper-icon {
  background: var(--cr-acc-tint);
  color: var(--cr-acc-deep);
}
.cart-page .cart-stepper-item.active .stepper-label { color: var(--cr-ink); }
.cart-page .cart-stepper-item.completed .stepper-label { color: var(--cr-ink2); }
.cart-page .stepper-line {
  flex: 1;
  height: 3px;
  max-width: 120px;
  margin: 0 6px 26px;
  border-radius: 3px;
  background: #e7ebf1;
  align-self: center;
}
.cart-page .stepper-line.active { background: var(--cr-acc); }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.storefront-autoreg .cart-page-header,
.cart-page .cart-page-header {
  min-height: 0;
  margin-bottom: 16px;
  border: 0;
  border-radius: var(--cr-r);
  background: var(--cr-surface);
  box-shadow: var(--cr-shadow);
  overflow: hidden;
}
.cart-page .cart-page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}
.cart-page .cart-page-header-left { display: flex; align-items: center; gap: 15px; }
.cart-page .cart-page-header-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--cr-acc-tint);
  color: var(--cr-acc-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}
.storefront-autoreg .cart-page .cart-page-header:hover .cart-page-header-icon,
.storefront-autoreg .cart-page-header:hover .cart-page-header-icon,
.cart-page .cart-page-header:hover .cart-page-header-icon {
  transform: none;
  box-shadow: 0 10px 22px rgba(143, 244, 81, 0.22);
}
.cart-page .cart-icon-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--cr-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(255, 59, 59, .35);
}
.cart-page .cart-page-header-title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--cr-ink);
}
.cart-page .cart-page-header-count {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--cr-light);
}
.cart-page .cart-page-header-count span,
.cart-page .cart-page-header-count b { color: var(--cr-ink2); font-weight: 800; }
.cart-page .cart-page-header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* shared button base for header / actions */
.cart-page .cart-header-btn,
.cart-page .cr-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--cr-r-md);
  background: var(--cr-soft);
  color: var(--cr-ink2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: .18s ease;
}
.cart-page .cart-header-btn:hover,
.cart-page .cr-header-btn:hover { background: #e9edf2; color: var(--cr-ink); }
.cart-page .cart-header-btn i { font-size: 13px; }

/* ============================================================
   1) EMPTY STATE
   ============================================================ */
.cart-page .cart-empty {
  background: var(--cr-surface);
  border-radius: var(--cr-r);
  box-shadow: var(--cr-shadow);
  padding: 70px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cart-page .cart-empty-visual { position: relative; margin-bottom: 28px; }
.cart-page .cart-empty-visual::before {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 244, 81, .35), rgba(143, 244, 81, 0) 68%);
}
.cart-page .cart-empty-icon {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  background: var(--cr-acc);
  color: #0c1c03;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  box-shadow: 0 18px 40px rgba(143, 244, 81, .4);
}
.cart-page .cart-empty-content h3 {
  margin: 0 0 10px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--cr-ink);
}
.cart-page .cart-empty-content p {
  margin: 0 auto 28px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cr-muted);
  max-width: 360px;
}
.cart-page .cart-empty-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}
.cart-page .btn-browse-products,
.cart-page .btn-view-history {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  border: 0;
  border-radius: var(--cr-r-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: .18s ease;
}
.cart-page .btn-browse-products {
  background: var(--cr-acc);
  color: #0c1c03;
  box-shadow: 0 8px 18px rgba(143, 244, 81, .32);
}
.cart-page .btn-browse-products:hover { background: #a1f86a; transform: translateY(-1px); }
.cart-page .btn-view-history {
  height: 46px;
  background: var(--cr-soft);
  color: var(--cr-ink2);
}
.cart-page .btn-view-history:hover { background: #e9edf2; color: var(--cr-ink); }

/* ============================================================
   2) WITH ITEMS
   ============================================================ */
.cart-page .cart-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

/* items column */
.cart-page .cart-items-wrapper {
  background: var(--cr-surface);
  border-radius: var(--cr-r);
  box-shadow: var(--cr-shadow);
  overflow: hidden;
}
.cart-page .cart-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--cr-line);
  font-size: 14px;
  font-weight: 800;
  color: var(--cr-ink);
}
.cart-page .cart-items-header-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.cart-page .cart-items-header-title i { color: var(--cr-acc-deep); }
.cart-page .cart-items-list { display: block; }

/* item row */
.cart-page .cart-item {
  display: flex;
  gap: 15px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--cr-line);
  background: transparent;
}
.cart-page .cart-item:last-child { border-bottom: 0; }
.cart-page .cart-item-image {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cr-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-page .cart-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-page .cart-item-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cr-red);
}
.cart-page .cart-item-info { flex: 1; min-width: 0; }
.cart-page .cart-item-name { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.cart-page .cart-item-name a {
  color: var(--cr-ink);
  text-decoration: none !important;
  transition: color .16s ease;
}
.cart-page .cart-item-name a:hover,
.cart-page .cart-item-name a:focus-visible {
  color: var(--cr-acc-deep);
  text-decoration: none !important;
}
.cart-page .cart-item-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--cr-muted);
}
.cart-page .cart-item-plan i { font-size: 10px; color: var(--cr-light); }

/* discount badges */
.cart-page .cart-item-discounts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.cart-page .cart-item-discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.cart-page .cart-item-discount-badge i { font-size: 10px; }
.cart-page .cart-item-discount-member { background: #fef3c7; color: #b45309; }
.cart-page .cart-item-discount-flash { background: #fee2e2; color: #dc2626; }
.cart-page .cart-item-discount-sale { background: #e0f2fe; color: #0369a1; }
.cart-page .cart-item-discount-coupon { background: var(--cr-acc-tint); color: var(--cr-acc-deep); }

/* order info fields */
.cart-page .cart-item-fields {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--cr-r-sm);
  background: var(--cr-soft);
  font-size: 12px;
}
.cart-page .cart-item-fields-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--cr-ink2);
  margin-bottom: 6px;
}
.cart-page .cart-item-field { color: var(--cr-muted); margin-top: 2px; }
.cart-page .cart-item-field strong { color: var(--cr-ink2); }

/* notices */
.cart-page .cart-item-unavailable,
.cart-page .cart-item-price-changed {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-size: 12px;
  font-weight: 700;
}
.cart-page .cart-item-unavailable { color: var(--cr-red); }
.cart-page .cart-item-price-changed.price-increased { color: #dc2626; }
.cart-page .cart-item-price-changed.price-decreased { color: var(--cr-acc-deep); }
.cart-page .cart-item-disabled { opacity: .6; }

/* item side */
.cart-page .cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.cart-page .cart-item-remove {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: var(--cr-soft);
  color: var(--cr-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: .18s ease;
}
.cart-page .cart-item-remove:hover { background: #fee2e2; color: var(--cr-red); }
.cart-page .cart-item-price { text-align: right; }
.cart-page .cart-item-final-price { font-size: 16px; font-weight: 800; color: var(--cr-ink); }
.cart-page .cart-item-original-price {
  display: block;
  font-size: 12px;
  color: var(--cr-light);
  text-decoration: line-through;
  margin-top: 1px;
}
.cart-page .cart-item-price-na { color: var(--cr-light); }

/* qty stepper */
.cart-page .cart-item-qty {
  display: inline-flex;
  align-items: center;
  background: var(--cr-soft);
  border-radius: 10px;
  padding: 3px;
  transition: box-shadow .28s ease-out;
  will-change: transform;
}
.cart-page .cart-item-qty button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cr-ink2);
  cursor: pointer;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .15s ease;
}
.cart-page .cart-item-qty button:hover { background: #fff; color: var(--cr-acc-deep); box-shadow: var(--cr-shadow-soft); }
.cart-page .cart-item-qty input,
.cart-page .cart-qty-input {
  width: 36px;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--cr-ink);
  -moz-appearance: textfield;
}
.cart-page .cart-qty-input::-webkit-outer-spin-button,
.cart-page .cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* qty limit-exceeded effect (driven by cart-redesign.js) */
.cart-page .cart-item-qty.is-error { box-shadow: inset 0 0 0 1.5px var(--cr-red); }
.cart-page .cart-item-qty.is-shaking { animation: cr-shake 280ms linear; }

/* «макс. N шт.» — лимит наличия под степпером (моментальные товары); muted, по центру степпера */
.cart-page .cart-item-qty-box { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cart-page .cart-item-qty-max { font-size: 11.5px; font-weight: 700; color: var(--cr-light); white-space: nowrap; }
@keyframes cr-shake {
  0%     { transform: translateX(0);    animation-timing-function: cubic-bezier(.22,1,.36,1); }
  28.57% { transform: translateX(6px);  animation-timing-function: cubic-bezier(.22,1,.36,1); }
  57.14% { transform: translateX(-6px); animation-timing-function: cubic-bezier(.22,1,.36,1); }
  78.57% { transform: translateX(4px);  animation-timing-function: cubic-bezier(.22,1,.36,1); }
  100%   { transform: translateX(0); }
}

/* summary column */
.cart-page .cart-summary-wrapper {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-page .cart-summary,
.cart-page .cart-coupon-card,
.cart-page .cart-payment-card {
  background: var(--cr-surface);
  border-radius: var(--cr-r);
  box-shadow: var(--cr-shadow);
  overflow: hidden;
}
.cart-page .cart-summary-header,
.cart-page .cart-coupon-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 18px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--cr-light);
}
.cart-page .cart-summary-header i { color: var(--cr-acc-deep); }
.cart-page .cart-summary-body { padding: 4px 18px 18px; }
.cart-page .cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}
.cart-page .cart-summary-label { color: var(--cr-ink2); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.cart-page .cart-summary-label i { font-size: 12px; }
.cart-page .cart-summary-row-user-discount .cart-summary-label i { color: #d97706; }
.cart-page .cart-summary-row-flash .cart-summary-label i { color: #dc2626; }
.cart-page .cart-summary-row-sale .cart-summary-label i { color: #0369a1; }
.cart-page .confirm-summary-row.cart-summary-row-sale .cart-summary-label i { color: #0369a1; }
.cart-page .cart-summary-value { font-weight: 700; color: var(--cr-ink); }
.cart-page .cart-summary-value.discount { color: var(--cr-acc-deep); }
.cart-page .cart-summary-total {
  padding-top: 12px;
  margin-top: 6px;
  border-top: 2px dashed var(--cr-line2);
}
.cart-page .cart-summary-total .cart-summary-label { font-size: 16px; font-weight: 800; color: var(--cr-ink); }
.cart-page .cart-summary-total .cart-summary-value { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }

/* available balance row */
.cart-page .cart-summary-balance {
  border-top: 1px solid var(--cr-line);
  margin-top: 6px;
  padding-top: 13px;
}
.cart-page .cart-summary-balance.is-ok .cart-summary-label,
.cart-page .cart-summary-balance.is-ok .cart-summary-label i,
.cart-page .cart-summary-balance.is-ok .cart-summary-value { color: var(--cr-acc-deep); }
.cart-page .cart-summary-balance.is-low .cart-summary-label,
.cart-page .cart-summary-balance.is-low .cart-summary-label i,
.cart-page .cart-summary-balance.is-low .cart-summary-value { color: var(--cr-red); }
.cart-page .cart-summary-shortfall .cart-summary-label { color: var(--cr-light); }
.cart-page .cart-summary-shortfall .cart-summary-value { color: var(--cr-red); font-weight: 800; }

/* coupon */
.cart-page .cart-coupon-header { cursor: pointer; justify-content: space-between; }
.cart-page .cart-coupon-form {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: max-height .28s ease, padding .28s ease, opacity .18s ease, visibility 0s linear .28s;
}
.cart-page .cart-coupon-form.show {
  max-height: 340px;
  padding: 14px 18px 18px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.cart-page .cart-coupon-input { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cart-page .cart-coupon-input input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 0;
  background: var(--cr-soft);
  border-radius: var(--cr-r-md);
  padding: 0 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--cr-ink);
}
.cart-page .cart-coupon-input input::placeholder { color: var(--cr-light); font-weight: 500; }
.cart-page .cart-coupon-input input:focus { outline: none; box-shadow: 0 0 0 2px rgba(140, 255, 63, .45); }
.cart-page .cart-coupon-form.has-error .cart-coupon-input input {
  background: #fff8f8;
  box-shadow: inset 0 0 0 2px rgba(255, 59, 67, .38), 0 10px 24px rgba(255, 59, 67, .08);
}
.cart-page .cart-coupon-form.has-error .cart-coupon-input input:focus {
  box-shadow: inset 0 0 0 2px rgba(255, 59, 67, .58), 0 0 0 4px rgba(255, 59, 67, .1);
}
.cart-page .btn-apply-coupon {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--cr-r-md);
  background: var(--cr-ink);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: .18s ease;
}
.cart-page .btn-apply-coupon:hover { background: #0f172a; }
.cart-page .cart-coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--cr-acc-tint);
  border-radius: var(--cr-r-md);
  padding: 11px 14px;
}
.cart-page .cart-coupon-applied .coupon-info { display: flex; align-items: center; gap: 14px; }
.cart-page .coupon-code { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: var(--cr-acc-deep); }
.cart-page .coupon-discount { font-size: 13.5px; font-weight: 800; color: var(--cr-acc-deep); }
.cart-page .btn-remove-coupon {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  color: var(--cr-acc-deep);
  cursor: pointer;
}
.cart-page .cart-coupon-message {
  display: none;
  align-items: center;
  min-height: 54px;
  margin-top: 6px;
  padding: 13px 16px;
  border-radius: var(--cr-r-md);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}
.cart-page .cart-coupon-message.error,
.cart-page .cart-coupon-message.success {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.cart-page .cart-coupon-message.error {
  border: 1px solid rgba(255, 59, 67, .34);
  background: rgba(255, 59, 67, .07);
  color: #ff3b43;
}
.cart-page .cart-coupon-message.success {
  border: 1px solid rgba(22, 163, 74, .22);
  background: var(--cr-acc-tint);
  color: var(--cr-acc-deep);
}

/* payment card */
.cart-page .cart-payment-card { padding: 16px 18px; }
.cart-page .cart-unavailable-warning {
  display: flex;
  gap: 9px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: var(--cr-r-md);
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12.5px;
  font-weight: 600;
}
.cart-page .cart-checkout-buttons { display: flex; flex-direction: column; gap: 10px; }
.cart-page .btn-pay-balance,
.cart-page .btn-topup,
.cart-page .btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: var(--cr-r-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: .18s ease;
}
.cart-page .btn-pay-balance {
  background: var(--cr-acc);
  color: #0c1c03;
  box-shadow: 0 8px 18px rgba(143, 244, 81, .32);
}
.cart-page .btn-pay-balance:hover:not(:disabled) { background: #a1f86a; transform: translateY(-1px); }
.cart-page .btn-pay-balance:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; box-shadow: none; }
.cart-page .btn-topup { background: var(--cr-acc); color: var(--cr-acc-ink); text-decoration: none; }
.cart-page .btn-topup:hover { background: #a1f86a; }
.cart-page .cart-login-required {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.cart-page .cart-login-icon {
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 16px;
  background: var(--cr-soft);
  color: #0b1220;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.cart-page .cart-login-icon i {
  color: currentColor;
  font-size: 22px;
}
.cart-page .cart-login-required p {
  max-width: 290px;
  margin: 0;
  color: var(--cr-muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}
.cart-page .btn-login {
  height: 54px;
  min-height: 54px;
  background: var(--cr-acc);
  color: #0c1c03;
  box-shadow: 0 8px 18px rgba(143, 244, 81, .32);
}
.cart-page .btn-login:hover {
  background: #a1f86a;
  color: #0c1c03;
  transform: translateY(-1px);
}

/* actions card (Мои заказы / Обновить / Очистить) */
.cart-page .cart-actions-card { display: flex; flex-direction: column; gap: 9px; }
.cart-page .btn-view-orders,
.cart-page .btn-refresh-prices,
.cart-page .btn-clear-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border: 0;
  border-radius: var(--cr-r-md);
  background: var(--cr-surface);
  box-shadow: inset 0 0 0 1px var(--cr-line2);
  color: var(--cr-ink2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: .16s ease;
}
.cart-page .btn-view-orders:hover,
.cart-page .btn-refresh-prices:hover { background: var(--cr-soft); color: var(--cr-ink); }
.cart-page .btn-clear-cart:hover { background: #fee2e2; color: var(--cr-red); box-shadow: inset 0 0 0 1px #fecaca; }

/* Per approved design: drop "Обновить цены", and the duplicate
   "Мои заказы" (it now lives in the page header). Only the
   "Очистить корзину" button remains in the actions card.
   To keep them, delete the two rules below. */
.cart-page .cart-actions-card .btn-refresh-prices { display: none; }
.cart-page .cart-actions-card .btn-view-orders { display: none; }

/* ============================================================
   3) CONFIRMATION
   ============================================================ */
.cart-page .cart-confirm-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}
.cart-page .confirm-summary-wrapper {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-page .confirm-section-card {
  background: var(--cr-surface);
  border-radius: var(--cr-r);
  box-shadow: var(--cr-shadow);
  overflow: hidden;
}
.cart-page .confirm-section-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--cr-line);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--cr-light);
}
.cart-page .confirm-section-header i { color: var(--cr-acc-deep); font-size: 14px; }
.cart-page .confirm-section-header h3 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--cr-light); }
.cart-page .confirm-item-count { margin-left: auto; color: var(--cr-acc-deep); text-transform: none; letter-spacing: 0; }
.cart-page .confirm-items-list { padding: 4px 0; }
.cart-page .confirm-item {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--cr-line);
}
.cart-page .confirm-item:last-child { border-bottom: 0; }
.cart-page .confirm-item-image {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  overflow: hidden;
  background: var(--cr-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-page .confirm-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-page .confirm-item-info { flex: 1; min-width: 0; }
.cart-page .confirm-item-name { font-size: 14px; font-weight: 700; color: var(--cr-ink); line-height: 1.35; }
.cart-page .confirm-item-qty { color: var(--cr-muted); font-weight: 800; }
.cart-page .confirm-item-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cr-muted);
}
.cart-page .confirm-item-plan i { font-size: 10px; color: var(--cr-light); }
.cart-page .confirm-item-price-col { text-align: right; flex: 0 0 auto; }
.cart-page .confirm-item-price { font-size: 15px; font-weight: 800; color: var(--cr-ink); }
.cart-page .confirm-item-original { display: block; font-size: 11.5px; color: var(--cr-light); text-decoration: line-through; margin-top: 1px; }

/* payment method */
.cart-page .confirm-payment-method { padding: 16px 18px; }
.cart-page .payment-method-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: var(--cr-r-md);
  background: var(--cr-soft);
  box-shadow: inset 0 0 0 1.5px transparent;
}
.cart-page .payment-method-item.active { background: var(--cr-acc-tint); box-shadow: inset 0 0 0 1.5px #bff08a; }
.cart-page .payment-method-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--cr-acc-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.cart-page .payment-method-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cart-page .payment-method-name { font-size: 13.5px; font-weight: 700; color: var(--cr-ink); }
.cart-page .payment-method-balance { font-size: 12.5px; font-weight: 700; color: var(--cr-acc-deep); }
.cart-page .payment-method-check { color: var(--cr-acc-deep); font-size: 18px; }

.cart-page .confirm-summary-body { padding: 4px 18px 18px; }
.cart-page .confirm-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}
.cart-page .confirm-summary-row .cart-summary-label { color: var(--cr-ink2); font-weight: 600; }
.cart-page .confirm-summary-row.discount span:last-child { color: var(--cr-acc-deep); font-weight: 700; }
.cart-page .confirm-summary-row span:last-child { font-weight: 700; color: var(--cr-ink); }
.cart-page .confirm-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 2px dashed var(--cr-line2);
}
.cart-page .confirm-summary-total span:first-child { font-size: 16px; font-weight: 800; color: var(--cr-ink); }
.cart-page .confirm-summary-total span:last-child { font-size: 24px; font-weight: 800; color: var(--cr-ink); letter-spacing: -.02em; }

.cart-page .confirm-action-buttons { display: flex; gap: 10px; }
.cart-page .btn-go-back,
.cart-page .btn-confirm-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  border: 0;
  border-radius: var(--cr-r-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}
.cart-page .btn-go-back { flex: 0 0 auto; width: 56px; background: var(--cr-soft); color: var(--cr-ink2); }
.cart-page .btn-go-back:hover { background: #e9edf2; color: var(--cr-ink); }
.cart-page .btn-go-back span { display: none; }
.cart-page .btn-confirm-checkout {
  flex: 1;
  background: var(--cr-acc);
  color: #0c1c03;
  box-shadow: 0 8px 18px rgba(143, 244, 81, .32);
}
.cart-page .btn-confirm-checkout:hover:not(:disabled) { background: #a1f86a; transform: translateY(-1px); }
.cart-page .btn-confirm-checkout:disabled { opacity: .7; cursor: not-allowed; }

/* Final confirm step alignment: keep the exported template above older cart themes. */
.storefront-autoreg .cart-page .cart-confirm-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.storefront-autoreg .cart-page .confirm-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.storefront-autoreg .cart-page .confirm-summary-wrapper {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.storefront-autoreg .cart-page .confirm-section-card {
  overflow: hidden;
  border: 0;
  border-radius: var(--cr-r);
  background: var(--cr-surface);
  box-shadow: var(--cr-shadow);
}

.storefront-autoreg .cart-page .confirm-section-header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--cr-line);
  background: var(--cr-surface);
  color: var(--cr-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.storefront-autoreg .cart-page .confirm-section-header i {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cr-acc-deep);
  font-size: 14px;
}

.storefront-autoreg .cart-page .confirm-section-header h3 {
  flex: 1 1 auto;
  margin: 0;
  color: var(--cr-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.storefront-autoreg .cart-page .confirm-item-count {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cr-acc-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.storefront-autoreg .cart-page .confirm-items-list {
  max-height: none;
  overflow: visible;
  padding: 4px 0;
}

.storefront-autoreg .cart-page .confirm-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 0;
  margin: 0;
  padding: 14px 20px;
  border: 0;
  border-bottom: 1px solid var(--cr-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.storefront-autoreg .cart-page .confirm-item:hover {
  border-color: var(--cr-line);
  background: transparent;
  transform: none;
}

.storefront-autoreg .cart-page .confirm-item:last-child {
  border-bottom: 0;
}

.storefront-autoreg .cart-page .confirm-item-image {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: var(--cr-soft);
  box-shadow: none;
}

.storefront-autoreg .cart-page .confirm-item-image img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
}

.storefront-autoreg .cart-page .confirm-item-info {
  flex: 1 1 auto;
  min-width: 0;
}

.storefront-autoreg .cart-page .confirm-item-name {
  color: var(--cr-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.storefront-autoreg .cart-page .confirm-item-qty {
  color: var(--cr-muted);
  font-weight: 800;
}

.storefront-autoreg .cart-page .confirm-item-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--cr-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.storefront-autoreg .cart-page .confirm-item-plan i {
  color: var(--cr-light);
  font-size: 10px;
}

.storefront-autoreg .cart-page .confirm-item-price-col {
  flex: 0 0 auto;
  min-width: 68px;
  text-align: right;
}

.storefront-autoreg .cart-page .confirm-item-price {
  display: block;
  color: var(--cr-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.storefront-autoreg .cart-page .confirm-item-original {
  display: block;
  margin-top: 1px;
  color: var(--cr-light);
  font-size: 11.5px;
  line-height: 1.1;
  text-decoration: line-through;
}

.storefront-autoreg .cart-page .confirm-payment-method {
  padding: 16px 18px;
}

.storefront-autoreg .cart-page .payment-method-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 0;
  border-radius: var(--cr-r-md);
  background: var(--cr-soft);
  box-shadow: inset 0 0 0 1.5px transparent;
  transform: none;
}

.storefront-autoreg .cart-page .payment-method-item.active {
  border: 0;
  background: var(--cr-acc-tint);
  box-shadow: inset 0 0 0 1.5px #bff08a;
}

.storefront-autoreg .cart-page .payment-method-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--cr-acc-deep);
  font-size: 17px;
}

.storefront-autoreg .cart-page .payment-method-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.storefront-autoreg .cart-page .payment-method-name {
  color: var(--cr-ink);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
}

.storefront-autoreg .cart-page .payment-method-balance {
  color: var(--cr-acc-deep);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
}

.storefront-autoreg .cart-page .payment-method-check {
  color: var(--cr-acc-deep);
  font-size: 18px;
}

.storefront-autoreg .cart-page .confirm-summary-body {
  padding: 4px 18px 18px;
}

.storefront-autoreg .cart-page .confirm-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border: 0;
  color: var(--cr-ink2);
  font-size: 14px;
  line-height: 1.35;
}

.storefront-autoreg .cart-page .confirm-summary-row .cart-summary-label {
  color: var(--cr-ink2);
  font-weight: 600;
}

.storefront-autoreg .cart-page .confirm-summary-row span:last-child {
  color: var(--cr-ink);
  font-weight: 700;
}

.storefront-autoreg .cart-page .confirm-summary-row.discount span:last-child {
  color: var(--cr-acc-deep);
  font-weight: 700;
}

.storefront-autoreg .cart-page .confirm-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 12px 0 0;
  border: 0;
  border-top: 2px dashed var(--cr-line2);
  border-radius: 0;
  background: transparent;
}

.storefront-autoreg .cart-page .confirm-summary-total span:first-child {
  color: var(--cr-ink);
  font-size: 16px;
  font-weight: 800;
}

.storefront-autoreg .cart-page .confirm-summary-total span:last-child {
  color: var(--cr-ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: none;
}

.storefront-autoreg .cart-page .confirm-action-buttons {
  display: flex;
  gap: 10px;
}

.storefront-autoreg .cart-page .btn-go-back,
.storefront-autoreg .cart-page .btn-confirm-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  min-height: 54px;
  border: 0;
  border-radius: var(--cr-r-md);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.storefront-autoreg .cart-page .btn-go-back {
  flex: 0 0 auto;
  width: 56px;
  padding: 0;
  background: var(--cr-soft);
  color: var(--cr-ink2);
  box-shadow: none;
}

.storefront-autoreg .cart-page .btn-go-back:hover {
  background: #e9edf2;
  color: var(--cr-ink);
}

.storefront-autoreg .cart-page .btn-go-back span {
  display: none;
}

.storefront-autoreg .cart-page .btn-confirm-checkout {
  flex: 1 1 auto;
  padding: 0 18px;
  background: var(--cr-acc);
  color: #0c1c03;
  box-shadow: 0 8px 18px rgba(143, 244, 81, .32);
}

.storefront-autoreg .cart-page .btn-confirm-checkout:hover:not(:disabled) {
  background: #a1f86a;
  transform: translateY(-1px);
}

.storefront-autoreg .cart-page .btn-confirm-checkout:disabled {
  opacity: .7;
  cursor: not-allowed;
}

/* ============================================================
   4) SUCCESS
   ============================================================ */
.cart-page .cart-success {
  background: var(--cr-surface);
  border-radius: var(--cr-r);
  box-shadow: var(--cr-shadow);
  padding: 64px 32px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cart-page .cart-success-visual {
  position: relative;
  width: 208px;
  height: 208px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-page .success-circles { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cart-page .success-circles .circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--cr-acc-tint);
}
.cart-page .success-circles .circle-1 { width: 128px; height: 128px; opacity: 1; }
.cart-page .success-circles .circle-2 { width: 168px; height: 168px; opacity: .6; }
.cart-page .success-circles .circle-3 { width: 208px; height: 208px; opacity: .32; }
.cart-page .success-icon {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--cr-acc);
  color: #0c1c03;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  opacity: 1;
  box-shadow: 0 16px 36px rgba(143, 244, 81, .45);
}
/* Reset positioning/animation leaking from the legacy cart.css success rules. Those
   assume the icon + ripple circles are absolutely centered via translate(-50%,-50%);
   this redesign centers them with flexbox instead, so without these resets the ring is
   flung to the top-left and the check is pushed off-centre ("криво"). */
.cart-page .success-circles { transform: none; }
.cart-page .success-circles .circle { animation: none; }
.cart-page .success-icon { top: auto; left: auto; transform: none; animation: none; }
.cart-page .success-confetti { display: none; }
.cart-page .success-title { margin: 0 0 8px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--cr-ink); }
.cart-page .success-message { margin: 0 0 28px; font-size: 15px; color: var(--cr-muted); }
.cart-page .cart-success-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; }
.cart-page .btn-success-primary,
.cart-page .btn-success-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  border: 0;
  border-radius: var(--cr-r-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: .18s ease;
}
.cart-page .btn-success-primary { background: var(--cr-acc); color: #0c1c03; box-shadow: 0 8px 18px rgba(143, 244, 81, .32); }
.cart-page .btn-success-primary:hover { background: #a1f86a; transform: translateY(-1px); }
.cart-page .btn-success-secondary { height: 46px; background: var(--cr-soft); color: var(--cr-ink2); }
.cart-page .btn-success-secondary:hover { background: #e9edf2; color: var(--cr-ink); }

/* ============================================================
   FINAL CART ALIGNMENT
   Keeps this redesign layer authoritative over older cart rules.
   ============================================================ */
.storefront-autoreg .cart-page .cart-content {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}

.storefront-autoreg .cart-page .cart-items-wrapper,
.storefront-autoreg .cart-page .cart-summary,
.storefront-autoreg .cart-page .cart-coupon-card,
.storefront-autoreg .cart-page .cart-payment-card,
.storefront-autoreg .cart-page .cart-actions-card {
  background: var(--cr-surface);
  border: 0;
  border-radius: var(--cr-r);
  box-shadow: var(--cr-shadow);
  overflow: hidden;
}

.storefront-autoreg .cart-page .cart-items-header,
.storefront-autoreg .cart-page .cart-summary-header,
.storefront-autoreg .cart-page .cart-coupon-header {
  min-height: 0;
  border-bottom: 1px solid var(--cr-line);
  background: var(--cr-surface);
}

.storefront-autoreg .cart-page .cart-items-header {
  padding: 17px 20px;
  gap: 12px;
  justify-content: space-between;
  color: var(--cr-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.storefront-autoreg .cart-page .cart-items-header-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.storefront-autoreg .cart-page .cart-summary-header,
.storefront-autoreg .cart-page .cart-coupon-header {
  padding: 16px 18px 12px;
  gap: 9px;
  color: var(--cr-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.storefront-autoreg .cart-page .cart-items-header-title > i,
.storefront-autoreg .cart-page .cart-summary-header i,
.storefront-autoreg .cart-page .cart-coupon-header i:first-child {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 0;
  border-radius: 9px;
  background: var(--cr-acc);
  color: #0c1c03;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.storefront-autoreg .cart-page .cart-coupon-header > i:last-child {
  flex: 0 0 auto;
  margin-left: 12px;
  color: #0f172a;
  font-size: 14px;
}

.storefront-autoreg .cart-page .cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(128px, 148px);
  align-items: center;
  column-gap: 18px;
  row-gap: 12px;
  min-height: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--cr-line);
  border-radius: 0;
  background: var(--cr-surface);
}

.storefront-autoreg .cart-page .cart-item:hover {
  background: var(--cr-surface);
}

.storefront-autoreg .cart-page .cart-item-image {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 14px;
  background: var(--cr-soft);
}

.storefront-autoreg .cart-page .cart-item-image img {
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 0;
  object-fit: contain;
}

.storefront-autoreg .cart-page .cart-item-name {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.storefront-autoreg .cart-page .cart-item-name a {
  color: var(--cr-ink);
  text-decoration: none !important;
  transition: color .16s ease;
}

.storefront-autoreg .cart-page .cart-item-name a:hover,
.storefront-autoreg .cart-page .cart-item-name a:focus-visible {
  color: var(--cr-acc-deep);
  text-decoration: none !important;
}

.storefront-autoreg .cart-page .cart-item-plan {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 7px 0 0;
  color: var(--cr-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.storefront-autoreg .cart-page .cart-item-plan i {
  color: var(--cr-light);
  font-size: 11px;
}

.storefront-autoreg .cart-page .cart-item-info {
  min-width: 0;
  padding-right: 14px;
}

.storefront-autoreg .cart-page .cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  justify-self: end;
  width: 120px;
  min-width: 0;
  min-height: 0;
  padding-top: 0;
  margin-left: 0;
}

.storefront-autoreg .cart-page .cart-item-remove {
  position: static;
  top: auto;
  right: auto;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: var(--cr-soft);
  color: var(--cr-light);
  font-size: 13px;
  opacity: 1;
  box-shadow: none;
  transform: none;
}

.storefront-autoreg .cart-page .cart-item-remove:hover {
  background: #fee2e2;
  color: var(--cr-red);
  box-shadow: none;
}

.storefront-autoreg .cart-page .cart-item-price {
  display: block;
  width: 120px;
  max-width: 100%;
  min-width: 0;
  text-align: right;
  line-height: 1;
}

.storefront-autoreg .cart-page .cart-item-final-price,
.storefront-autoreg .cart-page .cart-item-original-price {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-autoreg .cart-page .cart-item-final-price {
  color: var(--cr-ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.storefront-autoreg .cart-page .cart-item-original-price {
  margin-top: 3px;
  color: var(--cr-light);
  font-size: 12px;
  line-height: 1.1;
}

.storefront-autoreg .cart-page .cart-item-qty {
  display: grid;
  grid-template-columns: 34px 48px 34px;
  align-items: center;
  justify-items: center;
  width: 120px;
  max-width: none;
  height: 36px;
  padding: 2px;
  overflow: hidden;
  border: 0 !important;
  border-radius: 10px;
  background: var(--cr-soft);
  box-shadow: none;
}

.storefront-autoreg .cart-page .cart-item-qty button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cr-ink2);
  font-size: 11px;
  line-height: 1;
  box-shadow: none;
}

.storefront-autoreg .cart-page .cart-item-qty button:hover,
.storefront-autoreg .cart-page .cart-item-qty button:focus-visible {
  background: #fff;
  color: var(--cr-acc-deep);
  box-shadow: var(--cr-shadow-soft);
}

.storefront-autoreg .cart-page .cart-item-qty input,
.storefront-autoreg .cart-page .cart-qty-input {
  width: 48px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cr-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 32px;
  text-align: center;
  outline: 0;
}

.storefront-autoreg .cart-page .cart-item-qty.is-error {
  background: var(--cr-soft);
  box-shadow: inset 0 0 0 1.5px var(--cr-red) !important;
}

.storefront-autoreg .cart-page .cart-item-qty.is-error button:hover,
.storefront-autoreg .cart-page .cart-item-qty.is-error button:focus-visible {
  background: transparent;
  color: var(--cr-red);
  box-shadow: none;
}

.storefront-autoreg .cart-page .cart-summary-body {
  padding: 4px 18px 18px;
}

.storefront-autoreg .cart-page .cart-summary-row {
  padding: 8px 0;
  border: 0;
  font-size: 14px;
}

.storefront-autoreg .cart-page .cart-summary-total {
  padding-top: 12px;
  margin-top: 6px;
  border-top: 2px dashed var(--cr-line2);
}

.storefront-autoreg .cart-page .cart-summary-total .cart-summary-label {
  color: var(--cr-ink);
  font-size: 16px;
  font-weight: 800;
}

.storefront-autoreg .cart-page .cart-summary-total .cart-summary-value {
  color: #000;
  font-size: 24px;
  font-weight: 800;
}

.storefront-autoreg .cart-page .cart-coupon-form {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: max-height .28s ease, padding .28s ease, opacity .18s ease, visibility 0s linear .28s;
}

.storefront-autoreg .cart-page .cart-coupon-form.show {
  max-height: 340px;
  padding: 14px 18px 18px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.storefront-autoreg .cart-page .cart-coupon-input {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px;
}

.storefront-autoreg .cart-page .cart-coupon-input input {
  width: 100%;
  min-width: 0;
  height: 52px;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--cr-r-md);
  background: var(--cr-soft);
  color: var(--cr-ink);
  font-size: 14px;
  font-weight: 600;
}

.storefront-autoreg .cart-page .btn-apply-coupon {
  width: 100%;
  min-width: 0;
  height: 52px;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--cr-r-md);
  background: var(--cr-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.storefront-autoreg .cart-page .cart-coupon-form.has-error .cart-coupon-input input {
  background: #fff8f8;
  box-shadow: inset 0 0 0 2px rgba(255, 59, 67, .38), 0 10px 24px rgba(255, 59, 67, .08);
}

.storefront-autoreg .cart-page .cart-coupon-form.has-error .cart-coupon-input input:focus {
  box-shadow: inset 0 0 0 2px rgba(255, 59, 67, .58), 0 0 0 4px rgba(255, 59, 67, .1);
}

.storefront-autoreg .cart-page .cart-coupon-message.error,
.storefront-autoreg .cart-page .cart-coupon-message.success {
  display: flex;
}

.cart-page .cart-coupon-form.is-shaking .cart-coupon-input input {
  animation: cartCouponShake .36s ease;
}

@keyframes cartCouponShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.storefront-autoreg .cart-page .cart-payment-card,
.storefront-autoreg .cart-page .cart-actions-card {
  padding: 16px 18px;
}

.storefront-autoreg .cart-page .btn-pay-balance,
.storefront-autoreg .cart-page .btn-clear-cart {
  border-radius: var(--cr-r-md);
  font-weight: 800;
  letter-spacing: 0;
}

.storefront-autoreg .cart-page .btn-pay-balance {
  height: 54px;
  min-height: 54px;
  font-size: 15px;
}

.storefront-autoreg .cart-page .btn-clear-cart {
  height: 44px;
  min-height: 44px;
  background: var(--cr-surface);
  color: var(--cr-ink2);
  box-shadow: inset 0 0 0 1px var(--cr-line2);
  font-size: 13px;
}

.storefront-autoreg .cart-page .cart-items-clear {
  flex: 0 0 auto;
  width: auto;
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--cr-soft);
  box-shadow: none;
  color: var(--cr-ink2);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
}

.storefront-autoreg .cart-page .cart-items-clear i {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  font-size: 12px;
}

.storefront-autoreg .cart-page .cart-items-clear:hover {
  background: #fee2e2;
  color: var(--cr-red);
  box-shadow: none;
}

@media (max-width: 640px) {
  .storefront-autoreg .cart-page .cart-coupon-input {
    grid-template-columns: 1fr;
  }

  .storefront-autoreg .cart-page .btn-apply-coupon {
    width: 100%;
  }
}

/* ============================================================
   CR ENHANCEMENTS injected by cart-redesign.js
   (trust strip + upsell + header "Мои заказы")
   ============================================================ */
.cart-page .cr-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--cr-surface);
  border-radius: var(--cr-r-md);
  box-shadow: var(--cr-shadow-soft);
  padding: 13px 16px;
  margin-bottom: 16px;
}
.cart-page .cr-trust__i { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; color: var(--cr-ink2); }
.cart-page .cr-trust__i .ic { width: 28px; height: 28px; border-radius: 9px; background: var(--cr-acc-tint); color: var(--cr-acc-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.cart-page .cr-trust__sep { width: 1px; height: 18px; background: var(--cr-line2); }

.cart-page #cartContainer.cr-soft-refresh {
  transition: min-height .4s cubic-bezier(.4, 0, .2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .cart-page #cartContainer.cr-soft-refresh { transition: none; }
}

/* ---- Cart tile add / remove animation (parity with Favorites) ----
   Both states animate max-height/padding so neighbouring tiles slide
   smoothly instead of jumping; the JS drives the from/to heights. */
.cart-page .cart-item.cr-adding {
  overflow: hidden;
  will-change: max-height, opacity, transform;
  transition: max-height .32s cubic-bezier(.16, 1, .3, 1),
              padding-top .32s cubic-bezier(.16, 1, .3, 1),
              padding-bottom .32s cubic-bezier(.16, 1, .3, 1),
              opacity .3s ease, transform .3s ease;
}

.cart-page .cart-item.cr-removing {
  overflow: hidden;
  opacity: 0;
  transform: translateX(-16px);
  border-bottom-width: 0 !important;
  pointer-events: none;
  will-change: max-height, opacity, transform;
  transition: max-height .3s ease, padding-top .3s ease, padding-bottom .3s ease,
              opacity .26s ease, transform .26s ease;
}

@media (prefers-reduced-motion: reduce) {
  .cart-page .cart-item.cr-adding,
  .cart-page .cart-item.cr-removing { transition: none; }
}

.cart-page .cr-upsell {
  border-top: 1px solid var(--cr-line);
  padding: 16px 20px 18px;
  min-height: 286px;
  background: linear-gradient(180deg, rgba(248, 250, 252, .75), rgba(255, 255, 255, 0));
  opacity: 1;
  transition: opacity .22s ease, max-height .26s ease, margin .26s ease, padding .26s ease;
  contain: layout paint;
}
.cart-page #cartContainer > .cr-upsell {
  margin-top: 16px;
  border-top: 0;
  border-radius: var(--cr-r);
  background: var(--cr-surface);
  box-shadow: var(--cr-shadow);
}
.cart-page .cr-upsell.is-loading,
.cart-page .cr-upsell.is-refreshing {
  pointer-events: none;
}
.cart-page .cr-upsell.is-collapsing {
  min-height: 0;
  pointer-events: none;
}
.cart-page .cr-upsell__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}
.cart-page .cr-upsell__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--cr-acc);
  color: #0c1c03;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.cart-page .cr-upsell__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--cr-ink);
}
.cart-page .cr-upsell__grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .45) transparent;
}
.cart-page .cr-upsell__grid::-webkit-scrollbar { height: 6px; }
.cart-page .cr-upsell__grid::-webkit-scrollbar-track { background: transparent; }
.cart-page .cr-upsell__grid::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .35);
  border-radius: 999px;
}
.cart-page .cr-pcard {
  flex: 0 0 190px;
  min-width: 190px;
  min-height: 212px;
  border: 1px solid var(--cr-line);
  border-radius: 16px;
  background: var(--cr-surface);
  padding: 10px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: border-color .18s ease, background-color .18s ease;
}
.cart-page .cr-pcard:hover {
  border-color: rgba(148, 163, 184, .36);
  background: #fff;
}
.cart-page .cr-pcard.is-disabled { opacity: .58; }
.cart-page .cr-pcard__link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none !important;
}
.cart-page .cr-pcard__img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--cr-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--cr-light);
}
.cart-page .cr-pcard__img img { width: 38px; height: 38px; object-fit: contain; }
.cart-page .cr-pcard__cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  max-width: 100%;
  height: 24px;
  margin-top: 9px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--cr-soft);
  color: var(--cr-ink2);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-page .cr-pcard__cat i { color: var(--cr-light); font-size: 10px; }
.cart-page .cr-pcard__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 39px;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--cr-ink);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.55;
}
.cart-page .cr-pcard__link:hover .cr-pcard__title,
.cart-page .cr-pcard__link:focus-visible .cr-pcard__title {
  color: var(--cr-ink);
}
.cart-page .cr-pcard__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 8px;
  min-height: 22px;
}
.cart-page .cr-pcard__now { font-size: 15px; font-weight: 900; color: var(--cr-ink); }
.cart-page .cr-pcard__old { font-size: 12px; color: var(--cr-light); text-decoration: line-through; }
.cart-page .cr-pcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid var(--cr-line);
}
.cart-page .cr-pcard__meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--cr-acc-deep);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-page .cr-pcard__meta i { font-size: 10px; }
.cart-page .cr-pcard__meta-muted { color: var(--cr-light); }
.cart-page .cr-pcard__add {
  flex: 0 0 auto;
  width: 104px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--cr-acc-tint);
  color: var(--cr-acc-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 900;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cart-page .cr-pcard__add span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-page .cr-pcard__add:hover {
  background: var(--cr-acc);
  color: #0c1c03;
  box-shadow: none;
}
.cart-page .cr-pcard__add.is-added {
  background: var(--cr-acc);
  color: #0c1c03;
}
.cart-page .cr-pcard__add.is-error {
  background: #fee2e2;
  color: var(--cr-red);
  animation: cr-shake 280ms linear;
}
.cart-page .cr-pcard__add:disabled {
  cursor: not-allowed;
  background: var(--cr-soft);
  color: var(--cr-light);
  box-shadow: none;
}
.cart-page .cr-pcard--skeleton {
  pointer-events: none;
}
.cart-page .cr-pcard--skeleton .cr-pcard__foot {
  width: 100%;
}
.cart-page .cr-skel {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(226, 232, 240, .68), rgba(248, 250, 252, .96), rgba(226, 232, 240, .68));
  background-size: 220% 100%;
  animation: crSkeleton 1.15s ease-in-out infinite;
}
.cart-page .cr-pcard--skeleton .cr-pcard__img {
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(226, 232, 240, .72), rgba(248, 250, 252, .96), rgba(226, 232, 240, .72));
  background-size: 220% 100%;
}
.cart-page .cr-skel--cat {
  width: 96px;
  height: 24px;
  margin-top: 9px;
}
.cart-page .cr-skel--title {
  width: 100%;
  height: 15px;
  margin-top: 11px;
}
.cart-page .cr-skel--title-short {
  width: 74%;
  margin-top: 8px;
}
.cart-page .cr-skel--price {
  width: 72px;
  height: 18px;
  margin-top: 13px;
}
.cart-page .cr-skel--meta {
  width: 54px;
  height: 16px;
}
.cart-page .cr-skel--button {
  width: 104px;
  height: 32px;
}
@keyframes crSkeleton {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

/* loading spinner */
.cart-page .cart-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 0; color: var(--cr-muted); }
.cart-page .cart-loading-spinner { font-size: 28px; color: var(--cr-acc-deep); }

.storefront-autoreg .cart-page .cart-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 520px;
  padding: 70px 32px;
  overflow: hidden;
  text-align: center;
}

.storefront-autoreg .cart-page .cart-empty-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  margin: 0 auto 28px;
}

.storefront-autoreg .cart-page .cart-empty-visual::before {
  inset: -34px;
}

.storefront-autoreg .cart-page .cart-empty-icon {
  position: relative !important;
  inset: auto !important;
  width: 104px;
  height: 104px;
  margin: 0 !important;
  transform: none !important;
}

.storefront-autoreg .cart-page .cart-empty-content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
}

.storefront-autoreg .cart-page .cart-empty-content h3 {
  margin: 0 0 10px;
}

/* ============================================================
   DARK THEME
   ============================================================ */
[data-theme="dark"] .cart-page {
  --cr-ink: #f1f5f9;
  --cr-ink2: #cbd5e1;
  --cr-muted: #94a3b8;
  --cr-light: #64748b;
  --cr-line: #243044;
  --cr-line2: #334155;
  --cr-surface: #1e293b;
  --cr-soft: #0f172a;
  background: #0f172a;
}
[data-theme="dark"] .cart-page .stepper-icon { background: #0f172a; }
[data-theme="dark"] .cart-page .cart-item-image,
[data-theme="dark"] .cart-page .confirm-item-image,
[data-theme="dark"] .cart-page .cr-pcard__img { background: #0f172a; }
[data-theme="dark"] .cart-page .payment-method-icon { background: #0f172a; }
[data-theme="dark"] .cart-page .btn-view-orders,
[data-theme="dark"] .cart-page .btn-refresh-prices,
[data-theme="dark"] .cart-page .btn-clear-cart { box-shadow: inset 0 0 0 1px var(--cr-line2); }
[data-theme="dark"] .cart-page .cart-page-header-icon,
[data-theme="dark"] .cart-page .cart-empty-icon { color: #0c1c03; }
[data-theme="dark"] .cart-page .cr-upsell { background: linear-gradient(180deg, rgba(15, 23, 42, .36), rgba(15, 23, 42, 0)); }
[data-theme="dark"] .cart-page .cr-pcard { border-color: var(--cr-line2); }
[data-theme="dark"] .cart-page .cr-skel,
[data-theme="dark"] .cart-page .cr-pcard--skeleton .cr-pcard__img {
  background-image: linear-gradient(90deg, rgba(51, 65, 85, .62), rgba(71, 85, 105, .8), rgba(51, 65, 85, .62));
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .storefront-autoreg .cart-page .cart-content,
  .storefront-autoreg .cart-page .cart-confirm-content,
  .cart-page .cart-content,
  .cart-page .cart-confirm-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .storefront-autoreg .cart-page .confirm-items-wrapper,
  .cart-page .confirm-items-wrapper,
  .storefront-autoreg .cart-page .cart-summary-wrapper,
  .storefront-autoreg .cart-page .confirm-summary-wrapper,
  .cart-page .cart-summary-wrapper,
  .cart-page .confirm-summary-wrapper {
    position: static;
    width: 100%;
    min-width: 0;
  }

  .cart-page .cr-pcard {
    flex-basis: 180px;
    min-width: 180px;
  }
}
@media (max-width: 640px) {
  .cart-page .cart-stepper { padding: 16px 12px; }
  .cart-page .cart-stepper-item { min-width: 0; }
  .cart-page .stepper-label { font-size: 11px; }
  .cart-page .cart-page-header-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cart-page .cart-page-header-right { width: 100%; }
  .cart-page .cart-page-header-right .cart-header-btn,
  .cart-page .cart-page-header-right .cr-header-btn { flex: 1; justify-content: center; }
  .cart-page .cr-trust { flex-direction: column; align-items: flex-start; }
  .cart-page .cr-trust__sep { display: none; }
  .cart-page .cr-upsell {
    min-height: 278px;
    padding: 15px 14px 17px;
  }
  .cart-page .cr-pcard {
    flex-basis: 172px;
    min-width: 172px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-page .cr-upsell,
  .cart-page .cr-skel {
    transition: none;
    animation: none;
  }
}

@media (max-width: 640px) {
  .storefront-autoreg .cart-page,
  .cart-page {
    padding: 16px 0 40px;
  }

  .storefront-autoreg .cart-page .container {
    width: min(100% - 24px, var(--autoreg-container-max, 1180px)) !important;
  }

  .storefront-autoreg .cart-page .cart-stepper,
  .cart-page .cart-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
    padding: 14px 10px;
    border-radius: 20px;
  }

  .storefront-autoreg .cart-page .cart-stepper-item,
  .cart-page .cart-stepper-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    gap: 8px;
  }

  .storefront-autoreg .cart-page .stepper-icon,
  .cart-page .stepper-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 18px;
  }

  .storefront-autoreg .cart-page .stepper-label,
  .cart-page .stepper-label {
    width: 100%;
    max-width: 82px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9.5px;
    line-height: 1.15;
    letter-spacing: 0;
  }

  .storefront-autoreg .cart-page .stepper-line,
  .cart-page .stepper-line {
    flex: 0 0 18px;
    width: 18px;
    max-width: 18px;
    margin: 23px 2px 0;
  }

  .storefront-autoreg .cart-page .cart-page-header-inner,
  .cart-page .cart-page-header-inner {
    align-items: stretch;
    gap: 16px;
    padding: 18px;
  }

  .storefront-autoreg .cart-page .cart-page-header-left,
  .cart-page .cart-page-header-left {
    min-width: 0;
  }

  .storefront-autoreg .cart-page .cart-page-header-icon,
  .cart-page .cart-page-header-icon {
    flex: 0 0 52px;
  }

  .storefront-autoreg .cart-page .cart-page-header-title,
  .cart-page .cart-page-header-title {
    font-size: 24px;
    line-height: 1.1;
  }

  .storefront-autoreg .cart-page .cart-page-header-right,
  .cart-page .cart-page-header-right {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .storefront-autoreg .cart-page .cart-page-header-right .cart-header-btn,
  .storefront-autoreg .cart-page .cart-page-header-right .cr-header-btn,
  .cart-page .cart-page-header-right .cart-header-btn,
  .cart-page .cart-page-header-right .cr-header-btn {
    width: 100%;
    min-width: 0;
    height: 46px;
    justify-content: center;
    padding: 0 12px;
    overflow: hidden;
    text-align: center;
    line-height: 1.15;
    white-space: normal;
  }

  .storefront-autoreg .cart-page .cart-empty,
  .cart-page .cart-empty {
    overflow: hidden;
    padding: 42px 20px;
  }

  .storefront-autoreg .cart-page .cart-empty-visual,
  .cart-page .cart-empty-visual {
    width: 84px;
    height: 84px;
    margin: 0 0 22px;
  }

  .storefront-autoreg .cart-page .cart-empty-icon,
  .cart-page .cart-empty-icon {
    width: 84px;
    height: 84px;
    margin: 0;
    top: auto;
    right: auto;
    left: auto;
    border-radius: 22px;
    font-size: 34px;
  }

  .storefront-autoreg .cart-page .cart-empty-content,
  .cart-page .cart-empty-content {
    width: 100%;
    margin: 0;
  }

  .storefront-autoreg .cart-page .cart-empty-content h3,
  .cart-page .cart-empty-content h3 {
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.15;
  }

  .storefront-autoreg .cart-page .cart-empty-content p,
  .cart-page .cart-empty-content p {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.45;
  }

  .storefront-autoreg .cart-page .cart-empty-actions,
  .cart-page .cart-empty-actions {
    max-width: none;
  }

  .storefront-autoreg .cart-page .btn-browse-products,
  .storefront-autoreg .cart-page .btn-view-history,
  .cart-page .btn-browse-products,
  .cart-page .btn-view-history {
    width: 100%;
    min-height: 50px;
    height: auto;
    padding: 13px 14px;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
  }

  .storefront-autoreg .cart-page .cart-item,
  .cart-page .cart-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 16px;
  }

  .storefront-autoreg .cart-page .cart-item-image,
  .cart-page .cart-item-image {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 14px;
  }

  .storefront-autoreg .cart-page .cart-item-side,
  .cart-page .cart-item-side {
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-left: 0;
  }

  .storefront-autoreg .cart-page .cart-item-remove,
  .cart-page .cart-item-remove {
    position: static;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    opacity: 1;
  }

  .storefront-autoreg .cart-page .cart-item-price,
  .cart-page .cart-item-price {
    width: auto;
    min-width: 62px;
    text-align: left;
  }

  .storefront-autoreg .cart-page .cart-item-qty,
  .cart-page .cart-item-qty {
    flex: 0 0 120px;
    width: 120px;
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-page .cart-item-qty.is-shaking { animation: none !important; }
}
