/* The trade shop (src/trade.tsx). Loaded after styles.css, on pages with body.trade only.

   The trade design system, on top of the site's tokens:
   - one dominant dark colour: the site's deep green (--secondary, EMPForce can change it), with a darker step of the
     same green for the welcome bar and footer;
   - one accent for actions: the site's orange (--action). Nothing else is orange, and nothing else is coloured;
   - neutral greys for text, lines and the soft ground;
   - the site's display face (mensch) for headings only, Oxygen for everything else, on one scale:
     54 display, 36 page title, 28 section, 20 tile and panel, 18 lead, 16 body, 14 small;
   - a 12 column grid, 24px gutters, spacing in steps of 8. */

body.trade {
  --t-ink: var(--secondary);
  --t-ink-deep: color-mix(in srgb, var(--secondary) 70%, #000);
  --t-accent: var(--action);
  --t-accent-hover: color-mix(in srgb, var(--action) 86%, #000);
  --t-text: #1f211d;
  --t-muted: #5e615a;
  --t-faint: #a3a59f;
  --t-line: #e3e3e0;
  --t-line-strong: #c5c6c1;
  --t-soft: #f4f4f2;
  --t-on-ink: #ffffff;
  --t-on-ink-muted: rgb(255 255 255 / 78%);
  --t-fs-display: clamp(34px, 4vw, 52px);
  --t-fs-title: clamp(28px, 3.4vw, 36px);
  --t-fs-section: clamp(24px, 2.6vw, 28px);
  --t-fs-tile: 20px;
  --t-fs-lead: 18px;
  --t-fs-body: 16px;
  --t-fs-small: 14px;
  --t-gutter: 24px;
  --t-radius: 8px;
  --t-control: 44px;
  background: #fff;
  color: var(--t-text);
  font: 400 var(--t-fs-body)/1.5 var(--font-body);
}
.trade h1, .trade h2 { font-family: var(--font-brand); font-weight: 700; color: var(--t-ink); letter-spacing: .01em; }
.trade h1 { font-size: var(--t-fs-title); line-height: 1.1; }
.trade h2 { font-size: var(--t-fs-section); line-height: 1.15; }
.t-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--t-gutter); }
.t-narrow { max-width: 808px; }
.t-dim { color: var(--t-muted); }
.t-small { font-size: var(--t-fs-small); }
.t-main { min-height: 60vh; padding: 32px 0 64px; }
:where(.trade) a { color: inherit; }
.trade .t-main a:not(.t-btn):not(.t-card) { color: var(--t-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.trade .t-main a:not(.t-btn):not(.t-card):hover { text-decoration-thickness: 2px; }
.trade :focus-visible { outline: 3px solid var(--t-accent); outline-offset: 2px; }

/* The welcome line */
.t-top { background: var(--t-ink-deep); color: var(--t-on-ink); font-size: var(--t-fs-small); line-height: 1.3; }
.t-top .t-wrap { display: flex; justify-content: center; padding-block: 8px; text-align: center; }
.t-top a { color: var(--t-on-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Header: one dark green band */
.t-header { background: var(--t-ink); color: var(--t-on-ink); }
.t-header-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 40px; min-height: 80px; padding-block: 12px; }
.t-logo { display: flex; align-items: center; gap: 14px; color: var(--t-on-ink); text-decoration: none; }
.t-logo img { width: auto; height: 56px; }
.t-logo-word { padding-left: 14px; border-left: 2px solid rgb(255 255 255 / 45%); font: 700 22px/1 var(--font-brand); letter-spacing: .08em; }
.t-search { position: relative; display: flex; width: 100%; max-width: 560px; margin: 0; justify-self: center; }
.t-search input { min-height: var(--t-control); padding: 10px 52px 10px 16px; border: 0; border-radius: var(--t-radius); background: #fff; color: var(--t-text); font-size: var(--t-fs-body); }
.t-search button { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 48px; height: var(--t-control); border: 0; border-radius: 0 var(--t-radius) var(--t-radius) 0; background: none; color: var(--t-ink); cursor: pointer; }
.t-search button .icon { width: 20px; height: 20px; }
.t-actions { display: flex; align-items: center; gap: 8px; font-size: var(--t-fs-small); font-weight: 700; }
.t-action { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: var(--t-control); padding: 0 12px; border-radius: var(--t-radius); color: var(--t-on-ink); text-decoration: none; }
.t-action:hover { background: rgb(255 255 255 / 10%); }
.t-action .icon { width: 20px; height: 20px; }
.t-cart.is-current { background: rgb(255 255 255 / 12%); }
.t-count { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: var(--t-accent); color: var(--on-action); font-size: 12px; line-height: 18px; text-align: center; }
.t-signout { display: flex; align-items: center; gap: 12px; padding-right: 4px; }
.t-who { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.t-who .icon { width: 20px; height: 20px; }
.t-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.t-header .t-link { font-weight: 400; color: var(--t-on-ink-muted); }
.t-nav { border-top: 1px solid rgb(255 255 255 / 14%); }
.t-nav ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.t-nav a { display: block; padding: 14px 12px 11px; border-bottom: 3px solid transparent; color: var(--t-on-ink-muted); font-size: var(--t-fs-small); font-weight: 700; text-decoration: none; white-space: nowrap; }
.t-nav li:first-child a { margin-left: -12px; }
.t-nav a:hover { color: var(--t-on-ink); }
.t-nav a[aria-current='page'] { color: var(--t-on-ink); border-bottom-color: var(--t-on-ink); }

/* Buttons: dark green, orange for the one main action, ghost on dark, quiet on white */
.t-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--t-control); padding: 10px 20px; border: 2px solid var(--t-ink); border-radius: var(--t-radius); background: var(--t-ink); color: var(--t-on-ink); font: 700 var(--t-fs-small)/1.2 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.t-btn:hover { background: var(--t-ink-deep); border-color: var(--t-ink-deep); }
.t-btn--action { background: var(--t-accent); border-color: var(--t-accent); color: var(--on-action); }
.t-btn--action:hover { background: var(--t-accent-hover); border-color: var(--t-accent-hover); }
.t-btn--ghost { background: transparent; border-color: rgb(255 255 255 / 70%); color: var(--t-on-ink); }
.t-btn--ghost:hover { background: rgb(255 255 255 / 10%); border-color: #fff; }
.t-btn--quiet { background: #fff; border: 1px solid var(--t-line-strong); color: var(--t-text); }
.t-btn--quiet:hover { background: #fff; border-color: var(--t-text); }
.t-btn--small { min-height: 36px; padding: 6px 14px; }
.t-btn--large { min-height: 52px; padding: 12px 24px; font-size: var(--t-fs-body); }
.t-btn--wide { width: 100%; margin-top: 24px; }

/* ---------- The landing page ---------- */
.t-landing { display: grid; gap: 64px; margin-top: -8px; }

/* Hero: the line, two buttons and the farm, on the 12 column grid (5 and 7) */
.t-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 0; }
.t-hero-copy { grid-column: span 5; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 56px 48px; border-radius: var(--t-radius) 0 0 var(--t-radius); background: var(--t-ink); color: var(--t-on-ink); }
.t-hero h1 { color: var(--t-on-ink); font-size: var(--t-fs-display); line-height: 1.02; }
.t-hero p { max-width: 30em; color: var(--t-on-ink-muted); font-size: var(--t-fs-lead); line-height: 1.5; }
.t-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.t-hero-photo { grid-column: span 7; width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: 50% 50%; border-radius: 0 var(--t-radius) var(--t-radius) 0; background: var(--t-soft); }

/* Three photo tiles (4 columns each) */
.t-tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--t-gutter); }
.t-tile { grid-column: span 4; }
.t-tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--t-radius); background: var(--t-soft); }
.trade .t-tile h2 { margin-top: 16px; font-size: var(--t-fs-tile); line-height: 1.2; }
.t-tile p { margin-top: 4px; color: var(--t-muted); }

/* The full-width strip: one message, one button */
.t-strip { background: var(--t-ink); color: var(--t-on-ink); overflow: hidden; }
.t-strip-row { position: relative; display: flex; align-items: center; justify-content: center; gap: 24px 40px; min-height: 128px; padding-block: 32px; }
.trade .t-strip h2 { color: var(--t-on-ink); font-size: var(--t-fs-section); }
.t-strip-motif { position: absolute; left: var(--t-gutter); top: 50%; width: auto; height: 150px; transform: translateY(-50%) rotate(-14deg); filter: brightness(0) invert(1); opacity: .28; pointer-events: none; }

/* Best sellers: six photos across (2 columns each) */
.t-popular h2 { margin-bottom: 24px; }
.t-cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--t-gutter); }
.t-cards li { grid-column: span 2; }
.t-card { display: grid; gap: 4px; text-decoration: none; color: var(--t-text); }
.t-card img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 8px; border-radius: var(--t-radius); background: var(--t-soft); }
.t-card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.35; }
.t-card:hover .t-card-name { text-decoration: underline; text-underline-offset: 3px; }
.t-card-meta { color: var(--t-muted); font-size: var(--t-fs-small); }

/* Trade sign in: a dialog over the page, opened by #sign-in (no script needed) or open after a failed sign in */
.t-modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 16px; overflow-y: auto; }
.t-modal:target, .t-modal.is-open { display: grid; }
.t-modal.is-closed { display: none; }
.t-modal-scrim { position: fixed; inset: 0; background: rgb(16 20 12 / 60%); }
.t-modal-panel { position: relative; width: min(440px, 100%); padding: 32px; border-radius: var(--t-radius); background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 8%), 0 12px 40px rgb(0 0 0 / 18%); }
.trade .t-modal-panel h2 { margin-bottom: 8px; font-size: var(--t-fs-section); }
.t-modal-panel p.t-small { margin-top: 12px; }
.trade .t-modal-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--t-radius); color: var(--t-muted); }
.t-modal-close:hover { background: var(--t-soft); color: var(--t-text); }
.t-modal-close .icon { width: 20px; height: 20px; }
.trade .t-modal a:not(.t-btn) { color: var(--t-ink); text-decoration: underline; text-underline-offset: 3px; }
.trade .t-modal .t-modal-close { text-decoration: none; }

/* ---------- Forms ---------- */
.t-form label, .t-panel label { margin: 16px 0 6px; font-size: var(--t-fs-small); font-weight: 700; }
.trade .t-form input, .trade .t-form textarea, .trade .t-form select, .trade .t-panel input, .trade .t-panel textarea, .trade .t-filters input, .trade .t-filters select { min-height: var(--t-control); padding: 10px 12px; border: 1px solid var(--t-line-strong); border-radius: var(--t-radius); font-size: var(--t-fs-body); }
.trade input:focus, .trade select:focus, .trade textarea:focus { border-color: var(--t-ink); outline: 2px solid var(--t-ink); outline-offset: -1px; }
.trade .t-search input:focus { outline: 3px solid var(--t-accent); outline-offset: 0; }
.trade .flash { margin: 0 0 16px; font-size: var(--t-fs-small); }

/* ---------- Page heads, panels, messages ---------- */
.t-head { display: grid; gap: 4px; margin-bottom: 24px; }
.t-head p { font-size: var(--t-fs-body); }
.t-crumbs { margin-bottom: 16px; color: var(--t-muted); font-size: var(--t-fs-small); }
.t-panel { padding: 32px; border: 1px solid var(--t-line); border-radius: var(--t-radius); background: #fff; }
.t-panel h2 { margin-bottom: 4px; }
.t-panel p { margin-top: 12px; }
.t-message { padding-block: 24px; }
.t-message > p { margin-top: 16px; font-size: var(--t-fs-lead); }
.t-intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.t-message form { margin-top: 24px; }
.t-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; padding: 16px 20px; border-left: 4px solid var(--t-ink); background: var(--t-soft); }
.t-empty { padding: 64px 24px; border-top: 1px solid var(--t-line); text-align: center; }
.trade .t-empty h2 { font-size: var(--t-fs-tile); }
.t-empty p { margin-top: 8px; color: var(--t-muted); }
.t-empty p:has(.t-btn) { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.t-pair { display: grid; gap: 0 var(--t-gutter); }
.t-form > .t-btn--action { margin-top: 24px; }
.t-table + p, form + p.t-small, .t-bulkbar + p { margin-top: 16px; }

/* ---------- The product list ---------- */
.t-filters { display: grid; grid-template-columns: 1fr; gap: 8px 12px; margin-bottom: 24px; }
.t-filters .t-instock { min-height: var(--t-control); margin: 0; font-size: var(--t-fs-small); font-weight: 400; }
.t-filters .t-instock input { accent-color: var(--t-ink); }

/* Tables: one row height, numbers right aligned in tabular figures, colour only where it means something */
.t-table { width: 100%; border-collapse: collapse; background: #fff; font-size: var(--t-fs-small); font-variant-numeric: tabular-nums; }
.t-table th { position: sticky; top: 0; z-index: 1; height: 44px; padding: 0 12px; border-bottom: 2px solid var(--t-ink); background: #fff; color: var(--t-muted); font-size: var(--t-fs-small); font-weight: 700; text-align: left; white-space: nowrap; }
.t-table td { height: 64px; padding: 8px 12px; border-bottom: 1px solid var(--t-line); vertical-align: middle; }
.t-table tbody tr:hover td { background: var(--t-soft); }
.t-table .num { text-align: right; }
.t-table tfoot td { height: 56px; border-bottom: 0; border-top: 2px solid var(--t-ink); font-weight: 700; }
.t-img { width: 64px; }
.t-table td.t-img { padding-right: 0; }
.t-img img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--t-soft); }
.t-name { font-size: var(--t-fs-body); }
.trade .t-name a { color: var(--t-text) !important; font-weight: 700; text-decoration: none !important; }
.trade .t-name a:hover { text-decoration: underline !important; }
.t-code { color: var(--t-muted); white-space: nowrap; }
.t-stock { color: var(--t-text); font-weight: 700; }
.t-stock.is-none { color: var(--t-faint); font-weight: 400; }
.t-retail { color: var(--t-muted); }
.t-price { color: var(--t-text); font-size: var(--t-fs-body); font-weight: 700; white-space: nowrap; }
.t-note { display: block; color: var(--t-muted); font-size: 12px; font-weight: 400; }
.t-warn { display: block; color: var(--danger); font-size: var(--t-fs-small); font-weight: 700; }
.t-items { max-width: 420px; color: var(--t-muted); }
.t-overdue { color: var(--danger); font-weight: 700; }
.t-table td.num:last-child { padding-right: 0; }
.t-table th.num:last-child { padding-right: 0; }

/* Quantity stepper */
.t-qty { display: inline-flex; align-items: stretch; height: 40px; border: 1px solid var(--t-line-strong); border-radius: var(--t-radius); background: #fff; overflow: hidden; vertical-align: middle; }
.t-qty button { display: grid; place-items: center; width: 36px; border: 0; background: var(--t-soft); color: var(--t-text); cursor: pointer; }
.t-qty button:hover { background: var(--t-line); }
.t-qty button .icon { width: 14px; height: 14px; }
.trade .t-qty input { width: 56px; min-height: 0; height: 100%; padding: 0 4px; border: 0; border-radius: 0; outline: 0; text-align: center; font-size: var(--t-fs-body); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.t-qty input::-webkit-outer-spin-button, .t-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.t-qty:focus-within { border-color: var(--t-ink); box-shadow: inset 0 0 0 1px var(--t-ink); }
.t-qty.is-set { border-color: var(--t-ink); box-shadow: inset 0 0 0 1px var(--t-ink); }
.t-qty.is-set input { font-weight: 700; }
.t-askquote { display: inline-flex; align-items: center; height: 40px; font-size: var(--t-fs-small); }

/* The bar under a list with the one main button: it stays at the bottom of the screen while the list scrolls */
.t-bulkbar { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 12px 0; border-top: 1px solid var(--t-line); background: #fff; box-shadow: 0 -8px 16px -12px rgb(0 0 0 / 18%); }
.t-bulkbar p { color: var(--t-muted); font-size: var(--t-fs-small); }
.t-bulkbar .t-btn--action { min-height: 48px; min-width: 180px; font-size: var(--t-fs-body); }
.t-bulkbar-left { display: flex; flex-wrap: wrap; gap: 12px; }
.t-pager { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; font-size: var(--t-fs-small); }

/* A product */
.t-product { display: grid; gap: 24px var(--t-gutter); margin-bottom: 32px; }
.t-product-img { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; border-radius: var(--t-radius); background: var(--t-soft); }
.t-botanical { margin-top: 4px; color: var(--t-muted); font-size: var(--t-fs-lead); font-style: italic; }
.t-facts { margin-top: 16px; font-weight: 700; }
.t-summary { max-width: 640px; margin-top: 8px; color: var(--t-muted); line-height: 1.55; }
.t-product-main .t-small { margin-top: 16px; }

/* Invoices: three figures in a row */
.t-summary-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--t-gutter); margin-bottom: 32px; }
.t-summary-row > div { padding: 16px 0; border-top: 2px solid var(--t-ink); }
.t-summary-row dt { color: var(--t-muted); font-size: var(--t-fs-small); }
.t-summary-row dd { margin: 4px 0 0; font: 700 var(--t-fs-section)/1.15 var(--font-body); font-variant-numeric: tabular-nums; color: var(--t-text); }
.t-summary-row .is-overdue dd { color: var(--danger); }
.t-facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin-top: 24px; }
.t-facts-list dt { font-weight: 700; }
.t-facts-list dd { margin: 0; }

/* Checkout and the application form: the shop's own forms in the trade layout */
.t-checkout .page { padding-top: 0; }
.trade .page { padding-top: 0; }
.trade .container { max-width: 1280px; padding-inline: var(--t-gutter); }
.trade .btn { border-radius: var(--t-radius); }

/* Footer: one quiet band */
.t-footer { background: var(--t-ink-deep); color: var(--t-on-ink-muted); font-size: var(--t-fs-small); }
.t-footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; padding-block: 24px; }
.t-footer-stores { display: grid; gap: 4px; }
.t-footer strong { color: var(--t-on-ink); }
.t-footer a { color: var(--t-on-ink); }
.t-footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Phones ---------- */
@media (max-width: 759px) {
  body.trade { --t-gutter: 16px; }
  .t-main { padding-top: 24px; }
  .t-top-ask { display: none; }
  .t-header-row { grid-template-columns: 1fr auto; gap: 12px; min-height: 0; }
  .t-logo img { height: 44px; }
  .t-logo-word { padding-left: 10px; font-size: 18px; }
  .t-search, .t-search-gap { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .t-search-gap { display: none; }
  .t-who, .t-action span { display: none; }
  .t-action { padding: 0 10px; }
  .t-nav a { padding-inline: 10px; }
  .t-nav ul { gap: 0; }

  .t-landing { gap: 48px; margin-top: -24px; }
  .t-hero { padding-inline: 0; }
  .t-hero-photo { grid-column: 1 / -1; order: -1; min-height: 0; aspect-ratio: 16 / 10; border-radius: 0; }
  .t-hero-copy { grid-column: 1 / -1; padding: 32px var(--t-gutter) 40px; border-radius: 0; }
  .t-hero-actions .t-btn { flex: 1 1 100%; }
  .t-tiles { gap: 24px; }
  .t-tile { grid-column: 1 / -1; display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; align-items: center; }
  .t-tile img { grid-row: span 2; aspect-ratio: 1; }
  .trade .t-tile h2 { margin-top: 0; align-self: end; }
  .t-tile p { align-self: start; }
  .t-strip-row { flex-direction: column; align-items: flex-start; padding-block: 40px; }
  .t-strip-motif { left: auto; right: -8px; height: 140px; }
  .t-strip h2 { max-width: 14em; }
  .t-cards { gap: 24px 16px; }
  .t-cards li { grid-column: span 6; }

  .t-modal { align-items: end; padding: 0; }
  .t-modal-panel { width: 100%; padding: 24px var(--t-gutter) 32px; border-radius: var(--t-radius) var(--t-radius) 0 0; }

  .t-table tfoot td { border: 0; padding: 0; height: auto; }
  .t-table tfoot tr { border-top: 2px solid var(--t-ink); }
  .t-bulkbar { flex-direction: column; align-items: stretch; padding: 12px 0; }
  .t-bulkbar .t-btn--action { width: 100%; }
  .t-bulkbar-left { display: grid; grid-template-columns: 1fr 1fr; }
  .t-bulkbar-left .t-btn { white-space: normal; text-align: center; }
  .t-table thead { display: none; }
  .t-table, .t-table tbody, .t-table tfoot { display: block; }
  .t-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--t-line); }
  .t-table tbody tr:hover td { background: none; }
  .t-table td { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: auto; padding: 2px 0; border: 0; text-align: left !important; }
  .t-table td[data-label]::before { content: attr(data-label); color: var(--t-muted); font: 400 var(--t-fs-small)/1.45 var(--font-body); }
  .t-table td.t-name, .t-table td.t-items { grid-column: 1 / -1; display: block; }
  .t-table td.t-name::before, .t-table td.t-items::before { content: none; }
  .t-table td.t-img { display: none; }
  .t-table td[data-label='Quantity'] { grid-column: 1 / -1; margin-top: 8px; }
  .t-table td:empty { display: none; }
  .t-table td:not([data-label]) { grid-column: 1 / -1; justify-content: flex-end; }
  .t-table tfoot tr { display: flex; justify-content: space-between; padding-block: 16px; }
  .t-summary-row { gap: 12px; }
  .t-summary-row dd { font-size: 20px; }
  .t-panel { padding: 24px 16px; }
  .t-footer-row { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 760px) {
  .t-filters { grid-template-columns: minmax(200px, 5fr) minmax(180px, 4fr) auto auto; align-items: center; }
  .t-pair { grid-template-columns: 1fr 1fr; }
  .t-product { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .t-product-img { grid-column: span 3; }
  .t-product-main { grid-column: span 9; align-self: start; padding-top: 8px; }
}

@media (min-width: 760px) and (max-width: 1099px) {
  .t-hero-copy { grid-column: span 6; padding: 40px 32px; }
  .t-hero-photo { grid-column: span 6; }
  .t-cards li { grid-column: span 4; }
  .t-header-row { gap: 16px 24px; }
}

.t-panel > label:first-of-type { margin-top: 8px; }
/* Checkout's one main button is the accent, like Add to cart */
.trade .checkout button.btn--wide[type=submit] { background: var(--t-accent); border-color: var(--t-accent); color: var(--on-action); }
.trade .checkout button.btn--wide[type=submit]:hover { background: var(--t-accent-hover); border-color: var(--t-accent-hover); filter: none; }
@media (max-width: 759px) {
  .t-product-img { max-width: 200px; }
  .t-filters { grid-template-columns: 1fr auto; }
  .t-filters input[type=search], .t-filters select { grid-column: 1 / -1; }
  .t-filters .t-btn { min-width: 112px; }
}
