.cartpage { padding-block: 56px var(--section-pad); }

.cartpage__empty { text-align: center; padding: 60px 0 40px; }
.cartpage__empty h2 { margin-bottom: 14px; }
.cartpage__empty p { color: var(--ink-muted); margin-bottom: 26px; }

.cartpage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

/* Table ------------------------------------------------------------------- */
.carttable { width: 100%; border-collapse: collapse; }
.carttable th {
  text-align: left;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.carttable td { padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.carttable__prod { display: flex; align-items: center; gap: 16px; }
.carttable__thumb { flex: none; width: 80px; background: var(--surface-alt); }
.carttable__thumb img { width: 80px; aspect-ratio: 3 / 4; object-fit: cover; }
.carttable__thumb .ph { width: 80px; }
.carttable__thumb .ph::before { content: ""; }
.carttable__name {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: var(--tracking-head);
  text-transform: uppercase;
}
.carttable__name:hover { color: var(--brand); }
.carttable__rm { font-size: 20px; color: var(--ink-muted); padding: 4px 8px; }
.carttable__rm:hover { color: var(--sale); }

.cartpage__actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
}

/* Summary ----------------------------------------------------------------- */
.cartsum {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 26px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.cartsum__head { font-size: 14px; letter-spacing: var(--tracking-head); margin-bottom: 20px; }
.cartsum__items { display: grid; gap: 11px; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.cartsum__item { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; }
.cartsum__itemname { color: var(--ink-muted); }
.cartsum__itemname em { font-style: normal; opacity: 0.7; }
.cartsum__itemprice { flex: none; }

.cartsum__list { display: grid; gap: 11px; padding: 18px 0; }
.cartsum__list > div { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; }
.cartsum__list dt { color: var(--ink-muted); }
.cartsum__list dd { margin: 0; }

.cartsum__quote { font-size: 11px; color: var(--brand); padding-bottom: 14px; }
.cartsum__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.cartsum__total strong { font-size: 18px; color: var(--brand); letter-spacing: 0; }
.cartsum__note { font-size: 11px; color: var(--ink-muted); margin: 14px 0 0; line-height: 1.6; }
.cartsum .btn + .cartsum__note { margin-top: 14px; }

/* Checkout ---------------------------------------------------------------- */
.checkout__intro { color: var(--ink-muted); max-width: 62ch; margin-bottom: 36px; }
.checkout__head {
  font-size: 13px;
  letter-spacing: var(--tracking-head);
  padding-bottom: 12px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.checkout__fields .checkout__head:not(:first-child) { margin-top: 36px; }
/* Shown instead of the radio group when there is only one payment method. */
.checkout__pay {
  color: var(--ink-muted);
  max-width: 62ch;
  line-height: 1.6;
}
.checkout__pay strong { color: var(--ink); }

@media (max-width: 991px) {
  .cartpage__grid { grid-template-columns: 1fr; gap: 36px; }
  .cartsum { position: static; }
}
@media (max-width: 767px) {
  .carttable thead { display: none; }
  .carttable tr { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .carttable td { border: 0; padding: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .carttable td[data-label]::before {
    content: attr(data-label);
    font-size: 11px;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--ink-muted);
  }
  .carttable__prod { justify-content: flex-start; }
}

/* Mobile tap targets --------------------------------------------------------
   In the stacked cart the quantity stepper measured 20x23 and the remove
   button 28x29 - too small to hit reliably, on the one flow that has to work.
   The controls keep their look and gain a 44px target. */
@media (max-width: 767px) {
  .carttable .qty { min-height: 44px; }
  .carttable .qty__btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }
  .carttable .qty__input {
    min-height: 44px;
    width: 52px;
    font-size: 16px;   /* 16px stops iOS zooming the page on focus */
  }
  .carttable__rm {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
  }
  /* The remove control reads better on its own row than floating mid-stack. */
  .carttable td:last-child { justify-content: flex-end; }
}

/* Payment choice ------------------------------------------------------------
   A fieldset, not a bare div, so the two radios are announced as one group with
   "Payment method" as their label. */
.field--radios { border: 0; padding: 0; margin: 0; }
.field--radios legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  cursor: pointer;
  /* 44px of height even on one line, so the target is thumb-sized. */
  min-height: 44px;
}
.radio input {
  appearance: none;
  flex: none;
  width: 16px; height: 16px;
  margin-top: 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: border-color var(--dur) var(--ease);
}
.radio input:checked { border-color: var(--brand); }
.radio input:checked::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.radio:hover input { border-color: var(--brand); }
.radio em { font-style: normal; color: var(--ink-muted); }

/* Order confirmation ------------------------------------------------------- */
.ordercon { padding-block: 10px var(--section-pad); }
.ordercon__eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
}
/* The reference is the one thing worth reading off this page out loud, so it
   is set large and in a face where 8 and B cannot be confused. */
.ordercon__ref {
  margin: 0 0 22px;
  font-family: var(--font-head);
  font-size: clamp(26px, 6vw, 38px);
  letter-spacing: normal;
  color: var(--brand);
  word-break: break-word;
}
.ordercon__lede { margin: 0 0 26px; max-width: 52ch; }
.ordercon__hint { margin: 12px 0 0; font-size: 13px; color: var(--ink-muted); }
.ordercon__next {
  margin: 44px 0 14px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #000;
}
.ordercon__steps { display: grid; gap: 10px; padding-left: 20px; }
.ordercon__steps li { list-style: decimal; }
.ordercon__foot {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
}
.ordercon__foot strong { color: var(--brand); }
