/*
 * Pinpoint Swag. Colours and type follow pinpointhq.com's own tokens: ebony ink,
 * the ivory scale for surfaces, apricot, red and yellow from the mark, GT Sectra
 * Fine for display and GT Walsheim Pro for everything else (Grilli Type, under
 * Pinpoint's licence, the same files hmi-platform ships).
 */
@font-face {
  font-family: "GT Walsheim Pro";
  src: url("fonts/GT-Walsheim-Pro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "GT Walsheim Pro";
  src: url("fonts/GT-Walsheim-Pro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "GT Walsheim Pro";
  src: url("fonts/GT-Walsheim-Pro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "GT Sectra Fine";
  src: url("fonts/GT-Sectra-Fine-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #1f2729;
  --ink-80: #2e393c;
  --ink-70: #3c4c50;
  --ink-60: #4b5e63;
  --grey-70: #6b6863;
  --grey-50: #9b988f;
  --grey-20: #d1cfc9;
  --ivory-5: #fcfaf2;
  --ivory-10: #f7f3e7;
  --ivory-20: #efe9d7;
  --ivory-30: #e8dfca;
  --ivory-40: #d8ccae;
  --apricot: #ed9d85;
  --apricot-10: #fcf0ed;
  --apricot-60: #e98567;
  --red: #f1564e;
  --red-dark: #c13b33;
  --yellow: #fcb643;
  --yellow-10: #fef3dc;
  --green: #278753;
  --green-10: #daf4e6;
  --forest: #455c51;
  --forest-dark: #22392e;
  --white: #ffffff;

  --display: "GT Sectra Fine", Georgia, serif;
  --text: "GT Walsheim Pro", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 12px;
  --radius-lg: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory-10);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}
h2 {
  font-size: 1.5rem;
}
p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* Header */

.site-header {
  background: var(--ivory-5);
  border-bottom: 1px solid var(--ivory-20);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header.is-admin {
  background: var(--ink);
  color: var(--ivory-5);
  border-bottom-color: var(--ink);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.logotype {
  height: 26px;
  width: auto;
  display: block;
}
.brand-suffix {
  font-family: var(--display);
  font-size: 1.35rem;
  padding-left: 10px;
  border-left: 1px solid currentColor;
  line-height: 1;
  opacity: 0.85;
}
.main-nav {
  display: flex;
  gap: 4px;
}
.main-nav a,
.mobile-nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
}
.main-nav a:hover,
.mobile-nav a:hover {
  background: var(--ivory-20);
}
.main-nav a.current,
.mobile-nav a.current {
  background: var(--ink);
  color: var(--ivory-5);
}
.is-admin .main-nav a:hover,
.is-admin .mobile-nav a:hover {
  background: var(--ink-70);
}
.is-admin .main-nav a.current,
.is-admin .mobile-nav a.current {
  background: var(--yellow);
  color: var(--ink);
}
.mobile-nav {
  display: none;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--yellow-10);
  border: 1px solid var(--yellow);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.coin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset 0 0 0 3px #f9d27f;
}
.basket-link {
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
}
.basket-link.current,
.basket-link:hover {
  background: var(--ivory-20);
}
.basket-link .count {
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
}
.account-menu {
  position: relative;
}
.account-menu summary {
  list-style: none;
  cursor: pointer;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--apricot);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  object-fit: cover;
}
.account-menu .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ivory-20);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgb(31 39 41 / 12%);
  min-width: 240px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.account-menu .menu a,
.account-menu .menu button {
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  color: inherit;
}
.account-menu .menu a:hover,
.account-menu .menu button:hover {
  background: var(--ivory-10);
}
.menu-who {
  padding: 8px 10px;
  margin: 0 0 4px;
  border-bottom: 1px solid var(--ivory-20);
  font-weight: 500;
}
.menu-who small {
  display: block;
  color: var(--grey-70);
  font-weight: 400;
}

/* Page */

.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  flex: 1;
}
.site-footer {
  border-top: 1px solid var(--ivory-20);
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--grey-70);
  font-size: 14px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-60);
  margin-bottom: 8px;
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-70);
  max-width: 40em;
}
.muted {
  color: var(--grey-70);
}
.optional {
  color: var(--grey-70);
  font-weight: 400;
}
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}
.nowrap {
  white-space: nowrap;
}
.negative {
  color: var(--red-dark);
}
.positive {
  color: var(--green);
}
.crumbs {
  margin-bottom: 16px;
  font-size: 14px;
}
.crumbs a {
  color: var(--ink-60);
  text-decoration: none;
}
.crumbs a::before {
  content: "← ";
}
.crumbs a:hover {
  text-decoration: underline;
}

.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 500;
}
.flash-ok {
  background: var(--green-10);
  border: 1px solid #a3e8c3;
}
.flash-error {
  background: var(--apricot-10);
  border: 1px solid var(--apricot);
}

.card {
  background: var(--ivory-5);
  border: 1px solid var(--ivory-20);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.card.narrow {
  max-width: 640px;
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--ink-70);
}

/* Buttons and forms */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory-5);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease;
}
.button:hover {
  background: var(--ink-80);
}
.button:disabled {
  background: var(--grey-20);
  border-color: var(--grey-20);
  color: var(--grey-70);
  cursor: not-allowed;
}
.button-small {
  padding: 7px 14px;
  font-size: 14px;
}
.button-wide {
  width: 100%;
}
.button-ghost,
.button-secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.button-ghost:hover,
.button-secondary:hover {
  background: var(--ivory-20);
}
.is-admin .button-ghost:hover {
  background: var(--ink-70);
}
.button-danger {
  background: var(--red-dark);
  border-color: var(--red-dark);
}
.button-danger:hover {
  background: #a3302a;
}
.button-google {
  background: var(--white);
  color: var(--ink);
  border-color: var(--grey-20);
  width: 100%;
  padding: 14px 22px;
}
.button-google:hover {
  background: var(--ivory-5);
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--ink-60);
  text-decoration: underline;
  cursor: pointer;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  flex: 1;
  min-width: 0;
}
.field-row {
  display: flex;
  gap: 16px;
}
label,
legend {
  font-weight: 500;
  font-size: 15px;
}
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ivory-40);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  outline: 2px solid var(--yellow);
  outline-offset: 0;
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: var(--ink);
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin: 0 16px 16px 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
.radio-group legend {
  margin-bottom: 8px;
}
.hint {
  font-size: 14px;
  color: var(--grey-70);
  margin-top: 12px;
}
.problem {
  color: var(--red-dark);
  font-weight: 500;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.inline-form input,
.inline-form select {
  width: auto;
  padding: 7px 10px;
  font-size: 14px;
}
.inline-form .short {
  width: 140px;
}
.inline-form .tiny {
  width: 72px;
}
.inline-form .checkbox {
  margin: 0;
  font-size: 14px;
}
.inline-form .mini-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.inline-form .mini-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-60);
}
.inline-form:has(.mini-field) {
  align-items: flex-end;
}

/* Login */

.login {
  display: grid;
  place-items: center;
  min-height: 60vh;
}
.login-card {
  background: var(--ivory-5);
  border: 1px solid var(--ivory-20);
  border-radius: 24px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}
.login-mark {
  margin-bottom: 16px;
}
.login-card .lede {
  font-size: 1rem;
  margin-bottom: 24px;
}
.dev-login {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--ivory-40);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Shop */

.hero {
  background: var(--forest-dark);
  color: var(--ivory-5);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  background: url("mark.svg") no-repeat center / contain;
}
.hero .eyebrow {
  color: var(--ivory-20);
}
.hero .lede {
  color: var(--ivory-5);
  font-size: 1.2rem;
  margin: 0;
  position: relative;
  z-index: 1;
  max-width: 30em;
}
.hero strong {
  color: var(--yellow);
  font-weight: 700;
}

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card a {
  display: block;
  text-decoration: none;
  background: var(--ivory-5);
  border: 1px solid var(--ivory-20);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.product-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(31 39 41 / 10%);
}
.product-card-body {
  padding: 16px 20px 20px;
}
.product-card h2 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.price {
  font-weight: 500;
  margin: 0;
}
.price.big {
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.stock-note {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
}
.stock-note.low {
  color: var(--apricot-60);
}
.stock-note.out {
  color: var(--red-dark);
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--ivory-20);
}
.product-image.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ivory-20), var(--ivory-30));
}
.product-image.placeholder img {
  width: 30%;
  opacity: 0.8;
}
.product-image.large {
  border-radius: var(--radius-lg);
}
.product-image.thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  flex-shrink: 0;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.description {
  color: var(--ink-70);
  margin-bottom: 24px;
}
.variant-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variant-picker legend {
  width: 100%;
  margin-bottom: 8px;
}
.variant-option {
  position: relative;
  cursor: pointer;
}
.variant-option input {
  position: absolute;
  opacity: 0;
}
.variant-option span {
  display: inline-block;
  min-width: 56px;
  text-align: center;
  padding: 10px 16px;
  border: 1px solid var(--ivory-40);
  border-radius: 10px;
  background: var(--white);
  font-weight: 500;
}
.variant-option small {
  position: absolute;
  top: -8px;
  right: -6px;
  background: var(--apricot);
  font-size: 11px;
  border-radius: 999px;
  padding: 0 6px;
}
.variant-option input:checked + span {
  background: var(--ink);
  color: var(--ivory-5);
  border-color: var(--ink);
}
.variant-option input:focus-visible + span {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
.variant-option.disabled {
  cursor: not-allowed;
}
.variant-option.disabled span {
  color: var(--grey-50);
  text-decoration: line-through;
  background: var(--ivory-10);
}
.add-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.qty {
  width: 80px;
}

/* Basket and checkout */

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
}
.basket-lines {
  background: var(--ivory-5);
  border: 1px solid var(--ivory-20);
  border-radius: var(--radius-lg);
  padding: 8px 24px 24px;
}
.basket-line {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--ivory-20);
}
.basket-line.has-problem {
  background: var(--apricot-10);
  margin: 0 -24px;
  padding: 16px 24px;
}
.line-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.line-info a {
  text-decoration: none;
}
.line-info .muted {
  font-size: 14px;
}
.line-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.line-qty .qty {
  width: 64px;
  padding: 6px 8px;
}
.line-total {
  min-width: 96px;
  text-align: right;
  font-weight: 500;
}
.basket-total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  font-size: 1.15rem;
}
.basket-total.sub {
  font-size: 15px;
  padding-top: 6px;
  color: var(--ink-70);
}
.checkout-form {
  background: var(--ivory-5);
  border: 1px solid var(--ivory-20);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 88px;
}

/* Orders */

.thanks {
  background: var(--green-10);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.order-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--ivory-5);
  border: 1px solid var(--ivory-20);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.order-list.compact {
  border: 0;
  background: none;
}
.order-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto 96px;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--ivory-20);
}
.compact .order-row {
  grid-template-columns: 56px 1fr auto 88px;
  padding: 10px 0;
}
.order-row:hover {
  background: var(--ivory-10);
}
.order-number {
  font-weight: 700;
}
.order-items {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-detail {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 24px;
}
address {
  font-style: normal;
  margin-bottom: 16px;
  line-height: 1.6;
}
.note {
  background: var(--ivory-10);
  border-radius: 10px;
  padding: 10px 14px;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  gap: 0;
}
.timeline li {
  flex: 1;
  padding-top: 18px;
  position: relative;
  color: var(--grey-70);
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 3px;
  background: var(--ivory-30);
  margin-right: 6px;
}
.timeline li.done {
  color: var(--ink);
}
.timeline li.done::before {
  background: var(--green);
}
.timeline li.cancelled::before {
  background: var(--red);
}
.timeline span {
  display: block;
  font-weight: 500;
}
.timeline small {
  font-size: 13px;
}

.chip {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
  margin-right: 4px;
}
h1 .chip {
  font-family: var(--text);
  position: relative;
  top: -4px;
}
.chip-placed {
  background: var(--yellow-10);
  color: #7a5404;
  border: 1px solid var(--yellow);
}
.chip-packed {
  background: #d2f0f4;
  color: #145560;
}
.chip-shipped {
  background: var(--green-10);
  color: #1f6c42;
}
.chip-cancelled {
  background: var(--ivory-20);
  color: var(--grey-70);
}

/* Tables */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-60);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ivory-30);
}
td {
  padding: 12px;
  border-bottom: 1px solid var(--ivory-20);
  vertical-align: middle;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
tfoot td {
  font-weight: 700;
  border-bottom: 0;
}
.data-table {
  background: var(--ivory-5);
  border: 1px solid var(--ivory-20);
  border-radius: var(--radius-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin-bottom: 24px;
}
.card .data-table {
  border: 0;
  background: none;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table tr.inactive td {
  color: var(--grey-50);
}
.thumb-cell {
  width: 80px;
}
.thumb-cell .product-image.thumb {
  width: 48px;
  height: 48px;
}
.items-table {
  background: var(--ivory-5);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

/* Account and admin */

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.balance-figure {
  font-family: var(--display);
  font-size: 2.75rem;
  line-height: 1;
  margin-bottom: 24px;
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tabs a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ivory-40);
  font-size: 14px;
  font-weight: 500;
}
.tabs a.current {
  background: var(--ink);
  color: var(--ivory-5);
  border-color: var(--ink);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: var(--ivory-5);
  border: 1px solid var(--ivory-20);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.stat:hover {
  border-color: var(--ink);
}
.stat-value {
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1.1;
}
.stat-label {
  color: var(--ink-60);
  font-weight: 500;
}
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}
.actions-grid .card {
  margin: 0;
}
.product-admin {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
  align-items: start;
}
.product-admin .product-image.large {
  max-width: 280px;
  margin-bottom: 16px;
}
.variants-table td {
  vertical-align: top;
}
.ledger td {
  padding: 10px 8px;
}

/* Small screens */

@media (max-width: 900px) {
  .product-detail,
  .checkout,
  .order-detail,
  .account-grid,
  .product-admin {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .checkout-form {
    position: static;
  }
  .main-nav {
    display: none;
  }
  .mobile-nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 0 16px 12px;
  }
  .data-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 12px 16px;
    gap: 12px;
  }
  .logotype {
    height: 20px;
  }
  .brand-suffix {
    font-size: 1.1rem;
    padding-left: 8px;
  }
  .basket-link {
    padding: 6px 4px;
  }
  .balance-pill {
    padding: 4px 10px;
    font-size: 14px;
  }
  .page {
    padding: 24px 16px 48px;
  }
  .hero {
    padding: 28px 24px;
  }
  .hero::after {
    width: 120px;
    height: 120px;
    right: -24px;
    bottom: -24px;
    opacity: 0.35;
  }
  .field-row {
    flex-direction: column;
    gap: 0;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-card-body {
    padding: 12px;
  }
  .product-card h2 {
    font-size: 1.1rem;
  }
  .basket-line {
    flex-wrap: wrap;
  }
  .line-qty {
    order: 3;
    width: 100%;
  }
  .order-row {
    grid-template-columns: auto 1fr auto;
  }
  .order-row .order-items {
    grid-column: 1 / -1;
    order: 5;
  }
  .timeline small {
    font-size: 11px;
  }
  .login-card {
    padding: 28px 20px;
  }
}

/* Packing slip */

@media print {
  .site-header,
  .site-footer,
  .no-print,
  .crumbs,
  .title-row .button,
  .flash {
    /* biome-ignore lint/complexity/noImportantStyles: print must hide these whatever else applies */
    display: none !important;
  }
  body {
    background: var(--white);
  }
  .order-detail {
    grid-template-columns: 1fr 1fr;
  }
  .card,
  .items-table {
    border: 0;
    background: none;
  }
}
