/* Shared pages: cart, checkout, thank-you, account, piggy, garage, points, faq, wishlist */

.pg {
  padding: 20px 0 64px;
}
.pg-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: 20px;
}
.pg .breadcrumb {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px !important;
  padding: 0 !important;
  font-size: 13px;
  color: var(--muted);
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  list-style: none !important;
}
.pg .breadcrumb a { color: var(--muted); transition: color .2s var(--ease); }
.pg .breadcrumb a:hover { color: var(--accent); }
.pg .breadcrumb [aria-current="page"] { color: var(--text-strong); }
.pg .bc-sep { opacity: .4; }
.pg .breadcrumb > li {
  padding: 0 !important;
  text-shadow: none !important;
  position: static !important;
  float: none !important;
}
.pg .breadcrumb > li + li:before {
  content: '/' !important;
  padding: 0 8px 0 0 !important;
  opacity: .4;
}
.pg .breadcrumb > li:after { content: none !important; display: none !important; }
.pg .breadcrumb > li:last-child,
.pg .breadcrumb > li:last-child a { color: var(--text-strong); }

.pg-title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text-strong);
  line-height: 1.05;
}
.pg-lead {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--muted);
  max-width: 52ch;
}

/* —— Free shipping widget —— */
.ship-widget {
  padding: 14px 16px;
  border: 1px solid rgba(220,160,52,.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(220,160,52,.1), transparent 55%),
    rgba(255,255,255,.02);
}
.ship-widget.is-free {
  border-color: rgba(61,186,111,.35);
  background:
    linear-gradient(135deg, rgba(61,186,111,.12), transparent 55%),
    rgba(255,255,255,.02);
}
.ship-widget-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}
.ship-widget-top strong { color: var(--accent); font-weight: 700; }
.ship-widget.is-free .ship-widget-top strong { color: var(--ok); }
.ship-widget-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.ship-widget-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
}
.ship-widget.is-free .ship-widget-track i {
  width: 100% !important;
  background: linear-gradient(90deg, #2a9a58, var(--ok));
}

/* —— Cart —— */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px;
  align-items: start;
}
.cart-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.015);
}
.cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: var(--radius);
  background: #1a1c22;
  border: 1px solid var(--line-soft);
}
.cart-item-name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}
.cart-item-name a { color: inherit; }
.cart-item-name a:hover { color: var(--accent); }
.cart-item-meta {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.cart-item-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.cart-price {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 36px;
}
.qty button {
  width: 34px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
}
.qty button:hover { color: var(--accent); background: rgba(220,160,52,.08); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty span {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart-remove {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  align-self: start;
}
.cart-remove:hover { color: var(--danger); }
.cart-side {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 14px;
}
.cart-summary {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 14px 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--muted);
}
.cart-summary-total strong {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: .02em;
}
.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn-primary,
.btn.btn-primary {
  border: 0;
  background: var(--accent);
  background-image: none;
  color: var(--accent-ink);
  text-shadow: none;
  box-shadow: none;
  width: 100%;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:active:focus,
.btn-primary.active:focus,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary.active {
  background: #e8b04a;
  background-image: none;
  background-color: #e8b04a;
  color: var(--accent-ink);
  text-shadow: none;
  box-shadow: none;
  border-color: #e8b04a;
}
.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-1px);
}
.btn-primary.disabled,
.btn-primary[disabled],
.btn.btn-primary.disabled,
.btn.btn-primary[disabled] {
  background: var(--accent);
  background-image: none;
  color: var(--accent-ink);
  text-shadow: none;
  opacity: .55;
  transform: none;
  cursor: not-allowed;
}
.btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-soft {
  border: 1px solid rgba(220,160,52,.35);
  background: rgba(220,160,52,.1);
  color: var(--accent);
}
.btn-soft:hover { background: rgba(220,160,52,.18); }
.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  width: auto;
}

/* —— Checkout —— */
.co-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.co-mode {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.co-mode strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-strong);
}
.co-mode span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.co-mode.is-active {
  border-color: var(--accent);
  background: rgba(220,160,52,.08);
}
.co-mode.is-active strong { color: var(--accent); }
.co-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px;
  align-items: start;
}
.co-block {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.015);
}
.co-block h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.co-fields {
  display: grid;
  gap: 12px;
}
.co-fields.two {
  grid-template-columns: 1fr 1fr;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0,0,0,.25);
  color: var(--text-strong);
  font: inherit;
}
.field textarea {
  height: auto;
  min-height: 72px;
  padding: 10px 12px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.co-radio {
  display: grid;
  gap: 8px;
}
.co-radio label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
}
.co-radio label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(220,160,52,.06);
}
.co-radio input {
  accent-color: var(--accent);
  margin-top: 3px;
  flex: none;
}
.co-radio-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.co-radio-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
}
.co-radio-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.co-method-group {
  margin-bottom: 14px;
}
.co-method-group:last-of-type {
  margin-bottom: 0;
}
.co-method-group-title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.co-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.co-note.warn {
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(220,160,52,.35);
  background: rgba(220,160,52,.08);
  color: #e8c878;
}
.co-note.ok {
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(61,186,111,.35);
  background: rgba(61,186,111,.1);
  color: var(--ok);
}
.co-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--text);
}
.co-pay .footer-badge { margin: 0; }
.co-side { position: sticky; top: 20px; }
.co-order-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}
.co-order-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 2px;
  background: #1a1c22;
  border: 1px solid var(--line-soft);
}
.co-order-item strong { display: block; color: var(--text-strong); font-size: 13px; }
.co-order-item em { color: var(--muted); font-style: normal; font-size: 12px; }
.co-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  font-size: 13px;
}
.co-points input {
  width: 88px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0,0,0,.25);
  color: var(--text-strong);
  font: inherit;
}
.co-hide[hidden] { display: none !important; }

/* —— Thank you —— */
.ty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 28px 0 40px;
}
.ty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(61,186,111,.15);
  color: var(--ok);
  font-size: 28px;
}
.ty-box {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  text-align: left;
  background: rgba(255,255,255,.02);
}
.ty-box-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 14px;
  color: var(--muted);
}
.ty-box-row:last-child { border-bottom: 0; }
.ty-box-row strong { color: var(--text-strong); }

.order-items {
  margin: 0 0 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.015);
}
.order-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.order-item:last-child { border-bottom: 0; }
.order-item-media {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1c22;
  border: 1px solid var(--line-soft);
}
.order-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.order-item-name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}
.order-item-name a { color: inherit; }
.order-item-name a:hover { color: var(--accent); }
.order-item-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.order-item-price {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
  white-space: nowrap;
}
.ty-steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
}
.ty-steps li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}
.ty-steps i { color: var(--accent); margin-top: 2px; }
.ty-tg {
  margin-top: 22px;
  width: 100%;
  min-height: 52px;
  background: #229ED9;
  color: #fff;
  text-shadow: none;
  border: 0;
}
.ty-tg:hover,
.ty-tg:focus,
.ty-tg:active {
  background: #1b8bc0;
  background-image: none;
  color: #fff;
  text-shadow: none;
  box-shadow: none;
  transform: translateY(-1px);
}
.ty-msg { margin-inline: auto; }
.ty-msg p { margin: 0 0 10px; }
.ty-msg p:last-child { margin-bottom: 0; }
.ty-msg a { color: var(--accent); font-weight: 700; }
.ty-continue { text-align: center; margin: 28px 0 0; }
.ty-continue .btn-ghost { min-width: 200px; }

/* —— Account shell —— */
.acc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.acc-layout.is-guest {
  grid-template-columns: minmax(0, 1fr);
}
.acc-nav {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.015);
}
.acc-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.acc-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.acc-nav a.is-active {
  color: var(--accent-ink);
  background: var(--accent);
}
.acc-nav i { width: 18px; text-align: center; opacity: .9; }
.acc-panel { min-width: 0; }
.acc-panel .pg-title { margin-bottom: 18px; }

.order-list { display: grid; gap: 10px; }
.order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 20px;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}
.order-id {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-strong);
}
.order-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.order-meta a { color: var(--accent); }
.order-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge--ok { background: rgba(61,186,111,.15); color: var(--ok); }
.badge--warn { background: rgba(220,160,52,.15); color: #e8c878; }
.badge--mute { background: rgba(255,255,255,.06); color: var(--muted); }
.badge--stock { background: rgba(220,160,52,.12); color: #e8c878; }
.badge--pack { background: rgba(61,186,111,.12); color: var(--ok); }
.order-timer {
  font-size: 12px;
  color: var(--danger);
  font-variant-numeric: tabular-nums;
}

/* —— Dashboard stats —— */
.dash {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.dash-card {
  padding: 18px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}
.dash-card--wide { grid-column: span 1; }
.dash-num {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text-strong);
  line-height: 1;
}
.dash-num .star { color: var(--accent); margin-right: 4px; }
.dash-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.dash-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.pill {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

/* —— Piggy / garage grids —— */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stock-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.02);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s var(--ease);
}
.stock-card:hover { border-color: var(--accent); }
.stock-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #1a1c22;
}
.stock-card-body {
  flex: none;
  padding: 10px 12px 12px;
  background: var(--bg-elev, #15171c);
  border-top: 1px solid var(--line-soft);
}
.stock-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  background: rgba(12, 14, 18, .82);
  color: #d8ffe8;
  backdrop-filter: blur(8px);
}
.stock-card .badge.badge--stock { color: #e8c878; }
.stock-card .badge.badge--pack { color: #8ef0b4; }
.stock-card h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stock-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.piggy-cta {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8,10,14,.82);
  backdrop-filter: blur(5px);
}
.modal[hidden] { display: none; }
.modal-box {
  width: min(100%, 460px);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.modal-box h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.modal-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.modal-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.modal-list li:last-child { border-bottom: 0; }
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.modal-actions .btn-primary { width: auto; flex: 1; }
.modal-actions .btn-ghost { flex: 1; }

/* Garage share */
.garage-share {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  min-width: 0;
}
.garage-share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
}
.garage-share-row label {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.garage-share-row input,
.garage-share-row code {
  min-width: 0;
  width: 100%;
}
.garage-share-row input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0,0,0,.25);
  color: var(--text-strong);
  font: inherit;
}
.garage-share-row code {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(0,0,0,.2);
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.garage-share-row button {
  flex: none;
  white-space: nowrap;
}

/* Points */
.points-hist {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.015);
}
.points-hist h2 {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
}
.points-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.points-row:last-child { border-bottom: 0; }
.points-row time { color: var(--muted); font-variant-numeric: tabular-nums; }
.points-row strong.plus { color: var(--ok); }
.points-row strong.minus { color: var(--accent); }
.points-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* Public garage */
.pg-public {
  text-align: center;
  padding-top: 12px;
}
.pg-public .pg-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pg-public .dash {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 28px;
  text-align: left;
}
.pg-public .stock-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Profile form */
.profile-form {
  max-width: 520px;
  display: grid;
  gap: 14px;
}
.profile-form .btn-primary { width: auto; justify-self: start; }

/* FAQ page */
.faq-page .faq-list {
  max-width: 720px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: visible;
  background: rgba(255,255,255,.015);
}
.faq-page .faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-page .faq-item:last-child { border-bottom: 0; }
.faq-page .faq-body {
  height: auto !important;
  max-height: none;
  overflow: visible;
  padding: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(248,248,248,.72);
}
.faq-page .faq-body-inner {
  padding: 0 18px 16px;
}
.faq-page details:not([open]) .faq-body {
  display: none;
}

/* Wishlist */
.wish-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.wish-item { display: flex; flex-direction: column; gap: 8px; }
.wish-remove {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.wish-remove:hover { color: var(--accent); }

/* Login modal extras */
.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.login-tabs button {
  height: 42px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.login-tabs button.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* —— Auth pages (login / register) —— */
.auth-page {
  display: grid;
  place-items: center;
  padding: 28px 0 48px;
  min-height: min(70vh, 640px);
}
.auth-card {
  width: min(100%, 420px);
  padding: 28px 26px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255,255,255,.04), transparent 42%),
    rgba(255,255,255,.02);
}
.auth-card .pg-title {
  margin-bottom: 8px;
  text-align: center;
  font-size: clamp(26px, 3vw, 34px);
}
.auth-lead {
  margin: 0 0 22px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-form .btn-primary { width: 100%; margin-top: 4px; }
.auth-switch {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth-switch a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }
.auth-extra {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}
.auth-extra a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.auth-extra a:hover { color: var(--accent); }
.auth-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(248,248,248,.5);
}
.auth-card--success { width: min(100%, 460px); }
.auth-card--success .auth-lead a { color: var(--accent); font-weight: 700; }
.ty-next {
  display: grid;
  gap: 8px;
  margin: 4px 0 16px;
}
.ty-next a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  text-align: left;
  background: rgba(255,255,255,.02);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.ty-next a:hover { border-color: var(--accent); background: rgba(220,160,52,.06); }
.ty-next i { color: var(--accent); margin-top: 3px; font-size: 14px; }
.ty-next strong { display: block; color: var(--text-strong); font-size: 13px; font-weight: 700; }
.ty-next em { display: block; margin-top: 2px; font-style: normal; color: var(--muted); font-size: 12px; }
.auth-card--success .ty-tg { margin-top: 0; }
.auth-success-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.auth-success-actions .btn-ghost { width: 100%; }

/* —— Info / CMS text pages —— */
.info-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  max-width: 960px;
}
.info-nav {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.015);
}
.info-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.info-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.info-nav a.is-active {
  color: var(--accent-ink);
  background: var(--accent);
}
.info-body { min-width: 0; }
.info-body .pg-title { margin-bottom: 18px; }
.info-prose {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(248,248,248,.78);
}
.info-prose h2 {
  margin: 28px 0 10px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.info-prose h2:first-child { margin-top: 0; }
.info-prose p { margin: 0 0 14px; }
.info-prose ul,
.info-prose ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
}
.info-prose li { margin-bottom: 6px; }
.info-prose strong { color: var(--text-strong); font-weight: 700; }
.info-prose a { color: var(--accent); }
.info-prose a:hover { text-decoration: underline; }
.info-contacts {
  display: grid;
  gap: 12px;
  margin: 8px 0 20px;
}
.info-contact {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s var(--ease);
}
.info-contact:hover { border-color: var(--accent); }
.info-contact i {
  color: var(--accent);
  font-size: 18px;
  text-align: center;
}
.info-contact strong {
  display: block;
  font-size: 14px;
  color: var(--text-strong);
}
.info-contact em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

/* —— All brands —— */
.brands-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.makes-page-grid .brands-page-tile {
  min-height: 96px;
}
.brands-page-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  padding: 18px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.brands-page-tile:hover {
  border-color: rgba(220,160,52,.5);
  background: rgba(220,160,52,.05);
  transform: translateY(-2px);
}
.brands-page-tile .brand-logo { height: 44px; width: 100%; }
.brands-page-tile .brand-logo img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.brands-page-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
  text-align: center;
}
.brands-page-count {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.brands-page-tile--text .brands-page-name {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* —— Search results —— */
.search-bar-page {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 640px;
}
.search-bar-page input {
  flex: 1;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0,0,0,.25);
  color: var(--text-strong);
  font: inherit;
  font-size: 15px;
}
.search-bar-page input:focus {
  outline: none;
  border-color: var(--accent);
}
.search-bar-page .btn-primary {
  width: auto;
  min-width: 120px;
}
.search-meta {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}
.search-meta strong { color: var(--text-strong); }
.search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.search-empty {
  padding: 36px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}
.search-empty strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--text-strong);
}

/* —— 404 —— */
.err-404 {
  max-width: 560px;
  padding: 12px 0 40px;
}
.err-404-code {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(64px, 12vw, 112px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: .9;
  color: var(--accent);
}
.err-404 .pg-title { margin-bottom: 12px; }
.err-404 .pg-lead { margin-bottom: 22px; }
.err-404-search { margin-bottom: 18px; }
.err-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.err-404-actions .btn-primary,
.err-404-actions .btn-ghost {
  width: auto;
  min-width: 160px;
}

@media (max-width: 980px) {
  .cart-layout,
  .co-layout,
  .acc-layout,
  .info-layout { grid-template-columns: 1fr; }
  .acc-nav { position: static; grid-template-columns: repeat(2, 1fr); }
  .info-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-side,
  .co-side { position: static; }
  .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-public .stock-grid,
  .wish-grid,
  .search-grid,
  .brands-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash { grid-template-columns: 1fr; }
  .co-fields.two { grid-template-columns: 1fr; }
  .order-card { grid-template-columns: 1fr; }
  .order-side { align-items: flex-start; }
}
@media (max-width: 720px) {
  .pg { padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
  .pg-inner { padding-inline: 14px; }
  .garage-share-row {
    grid-template-columns: 1fr;
  }
  .garage-share-row button {
    width: 100%;
    min-height: 42px;
  }
  .stock-grid { margin-bottom: 8px; }
  .cart-item {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
  }
  .order-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .order-item-media {
    width: 72px;
    height: 72px;
  }
  .order-item-price {
    grid-column: 2;
    justify-self: start;
  }
  .cart-remove { grid-column: 2; justify-self: end; }
  .co-modes { grid-template-columns: 1fr; }
  .acc-nav,
  .info-nav { grid-template-columns: 1fr; }
  .auth-card { padding: 22px 16px 20px; }
  .search-bar-page { flex-direction: column; }
  .search-bar-page .btn-primary { width: 100%; }
}







