/* The site's font, served from our own address (one file for every weight) so the first
   paint does not wait on another company's servers. Instrument Sans, SIL Open Font License. */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin.woff2?v=1') format('woff2');
}

/* "hidden" always hides. Without this, any rule that sets display (a badge, a flex row) shows
   an element the page meant to hide. */
[hidden] {
  display: none !important;
}

/* One place for colors, type and spacing. Brand: navy + green, from the Figma style guide. */
:root {
  --navy: #1b2a46;
  --navy-dark: #192640;
  --navy-soft: #49556b;
  /* The live site's greens, each as close as it can be while text on or in it still reads at
     4.5:1 (WCAG AA): buttons #539438 -> #4a8432, green text #428a00 -> #408600, step badges
     #28a745 -> #218838. The accent #55b100 carries no text: underlines and borders only. */
  --green: #4a8432;
  --green-bright: #5dc300;
  --green-dark: #408600;
  --green-accent: #55b100;
  /* The live cart's order subtotal. */
  --orange: #da7d0f;
  --green-badge: #218838;
  --blue: #0660b7;
  --green-deep: #084c2e;
  --green-soft: #eff9e6;
  --ink: #101828;
  --ink-soft: #344054;
  --ink-muted: #475467;
  --ink-faint: #667085;
  --line: #eaecf0;
  --line-strong: #d0d5dd;
  --paper: #ffffff;
  --paper-soft: #f2f4f7;
  --surface: #f9fafb;
  --scroll-thumb: #c4c9d1;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #1e7b45;
  --ok-soft: #e6f4ec;

  --font:
    'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --radius: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-xl: 0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03);
  --page-width: 1200px;
  --admin-sidebar-width: 210px;
  --site-width: 1232px;
  --edge: 80px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'ss01' 1;
}

a {
  color: var(--navy);
}

h1 {
  font-size: 24px;
  margin: 0 0 var(--space-4);
}

h2 {
  font-size: 18px;
  margin: var(--space-5) 0 var(--space-3);
}

button,
.button-quiet {
  font: inherit;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--green-dark);
  background: var(--green);
  color: var(--paper);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover {
  background: var(--green-dark);
}

.button-quiet {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.button-quiet:hover {
  background: var(--paper-soft);
}

input,
select {
  font: inherit;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

label {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 13px;
  color: var(--ink-muted);
}

.muted {
  color: var(--ink-muted);
}

.nowrap {
  white-space: nowrap;
}

/* Starter page */
.starter {
  max-width: 600px;
  margin: var(--space-7) auto;
  padding: 0 var(--space-4);
}

/* Admin frame: a fixed menu down the left, the screen to its right. Desktop only (Solomon). */
.admin-frame {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  flex: 0 0 var(--admin-sidebar-width);
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--paper);
  padding: var(--space-3) 0 var(--space-4);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-brand {
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  padding: var(--space-2) var(--space-5) var(--space-4);
}

.admin-nav {
  flex: 1;
}

.admin-nav h2 {
  margin: var(--space-3) var(--space-5) var(--space-1);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.admin-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-nav a {
  display: block;
  color: var(--paper);
  text-decoration: none;
  padding: 5px var(--space-5);
  border-left: 3px solid transparent;
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav a.current {
  border-left-color: var(--green-bright);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.admin-logout {
  padding: var(--space-4) var(--space-5) 0;
}

.admin-logout .button-quiet {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.4);
}

.admin-main {
  flex: 1;
  min-width: 0;
  max-width: var(--page-width);
  padding: var(--space-5) var(--space-6);
}

/* Login */
.login {
  max-width: 360px;
  margin: var(--space-7) auto;
  padding: 0 var(--space-4);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-error {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: var(--radius);
}

/* Tabs, filters, tables */
.tabs {
  display: flex;
  gap: var(--space-2);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-4);
}

.tabs a {
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.tabs a.current {
  border-bottom-color: var(--green);
  font-weight: 600;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: end;
  margin-bottom: var(--space-3);
}

.log-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.log-table th,
.log-table td,
.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--line);
}

.log-table th,
.data-table th {
  background: var(--paper-soft);
  font-weight: 600;
}

.log-table .details {
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-word;
}

.pager {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-4);
}

/* Status chips */
.status {
  display: inline-block;
  padding: 1px var(--space-2);
  border-radius: var(--radius);
  font-size: 13px;
}

.status-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.status-bad {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-wait {
  background: var(--paper-soft);
  color: var(--ink-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.card h2 {
  margin-top: 0;
}

.status-dot {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: var(--ink-muted);
  vertical-align: middle;
}

.status-dot.is-ok {
  background: var(--green);
}

.status-dot.is-down {
  background: var(--danger);
}

.progress {
  min-width: 16rem;
}

.progress p {
  margin: 0 0 var(--space-1);
}

.progress-bar {
  height: 0.6rem;
  border-radius: 0.3rem;
  background: var(--line);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--green);
  transition: width 0.4s;
}

.progress-bar.is-busy span {
  width: 30%;
  animation: progress-slide 1.4s ease-in-out infinite alternate;
}

@keyframes progress-slide {
  from {
    margin-left: 0;
  }
  to {
    margin-left: 70%;
  }
}

.actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin: var(--space-4) 0;
}

@media (max-width: 700px) {
  .admin-frame {
    flex-direction: column;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .log-table .details {
    max-width: 240px;
  }
}

/* Facts and trees on the read-only catalog pages */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-1) var(--space-4);
  margin: 0;
}

.facts dt {
  color: var(--ink-muted);
}

.facts dd {
  margin: 0;
  word-break: break-word;
}

.tree,
.tree ul {
  list-style: none;
  padding-left: var(--space-5);
  margin: var(--space-1) 0;
}

.tree > li {
  padding: var(--space-1) 0;
}

textarea {
  font: inherit;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  max-width: 900px;
}

/* ------------------------------------------------------------------ */
/* Public site                                                         */
/* ------------------------------------------------------------------ */
.site {
  font-size: 16px;
  color: var(--ink-soft);
}

.site h1,
.site h2,
.site h3 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.site h1 {
  font-size: 36px;
  line-height: 44px;
}

.site h2 {
  font-size: 36px;
  line-height: 44px;
}

.site h3 {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
}

.site a {
  color: inherit;
}

.wrap {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* The header and menu row run the full width, like the live site: logo near the left edge,
   cart near the right. */
.wrap-wide {
  padding: 0 var(--edge);
}

@media (max-width: 1000px) {
  :root {
    --edge: 40px;
  }
}

@media (max-width: 760px) {
  :root {
    --edge: var(--space-4);
  }
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--paper);
  padding: var(--space-2) var(--space-3);
  z-index: 100;
}

.skip:focus {
  left: var(--space-3);
}

.site svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* Buttons (written with .site so they win over the inherited link colour) */
.site .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--green);
  color: var(--paper);
}

.site .btn:hover {
  background: var(--green-dark);
}

.site .btn-light {
  background: var(--paper);
  color: var(--ink-soft);
  border-color: var(--line-strong);
}

.site .btn-light:hover {
  background: var(--paper-soft);
}

.site .btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}

.site .btn-outline:hover {
  background: var(--green-soft);
}

/* A second choice beside a green button that should not compete with it. */
.site .btn-neutral {
  background: var(--paper);
  color: var(--ink-soft);
  border-color: var(--line-strong);
}

.site .btn-neutral:hover {
  background: var(--surface);
}

/* Account pages: one narrow column of plain forms. */
.account {
  max-width: 480px;
  padding: var(--space-7) var(--space-4);
}

.account h1 {
  margin-bottom: var(--space-3);
}

.account-form {
  margin-top: var(--space-5);
}

.account-form label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.account-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  margin-bottom: var(--space-4);
}

.account-form .code-input {
  font-size: 28px;
  letter-spacing: 0.3em;
  text-align: center;
}

.account-again {
  margin-top: var(--space-6);
}

.account-section {
  margin-top: var(--space-6);
}

.account-section h2 {
  font-size: 20px;
  line-height: 28px;
  margin-bottom: var(--space-2);
}

.logo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.logo-card {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.logo-card-picture {
  flex: 0 0 96px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
}

.logo-card-picture img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-card-kind {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.logo-card-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.logo-card-actions {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  font-size: 14px;
}

.logo-card-actions form {
  margin: 0;
}

.form-error {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
}

.cf-turnstile {
  margin-bottom: var(--space-4);
}

/* Top bar, header, menu */
.topbar {
  background: var(--green);
  color: var(--paper);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  padding: 6px var(--space-4);
}

.header {
  background: var(--navy);
  color: var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 72px;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 52px;
  width: auto;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 370px;
  height: 41px;
  margin-left: auto;
  background: var(--navy-soft);
  border-radius: 8px;
  padding: 0 var(--space-3);
  color: var(--paper);
}

.search-icon {
  display: flex;
}

.search input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--paper);
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
}

.search input::placeholder {
  color: var(--paper);
  opacity: 0.9;
}

.search input:focus {
  outline: none;
}

.search:focus-within {
  outline: 2px solid var(--green-bright);
  outline-offset: 1px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--line);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.header-link svg {
  color: var(--green-bright);
}

.header-link:hover {
  color: var(--paper);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--navy-soft);
  border-radius: var(--radius-md);
}

.menu-toggle:hover {
  background: var(--navy-soft);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
}

.menu {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.menu-row {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
}

.menu-item {
  position: static;
}

/* A plain link beside the drop-down menus (Closeouts). */
.menu-link {
  padding: var(--space-4) var(--space-2);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--danger);
  text-decoration: none;
  white-space: nowrap;
}

.menu-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) var(--space-2);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.menu-item summary::-webkit-details-marker {
  display: none;
}

.menu-item[open] summary {
  border-bottom-color: var(--green);
  color: var(--ink);
}

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--paper);
  box-shadow: var(--shadow-xl);
  border-top: 1px solid var(--line);
}

.menu-panel-inner {
  display: flex;
  gap: var(--space-7);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  max-height: 70vh;
  overflow: auto;
}

.menu-columns {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--space-5) var(--space-6);
}

.menu-heading {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: var(--space-2);
}

a.menu-heading:hover {
  color: var(--green-dark);
}

.menu-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-column a {
  text-decoration: none;
  font-size: 15px;
  line-height: 22px;
}

.menu-column a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.notice {
  background: var(--green-soft);
  border-bottom: 1px solid var(--line);
  padding: var(--space-3) 0;
  font-size: 15px;
}

.notice .wrap > *:first-child {
  margin-top: 0;
}

.notice .wrap > *:last-child {
  margin-bottom: 0;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--paper-soft);
}

.section-navy {
  background: var(--navy);
  color: var(--line);
}

.section-navy h2 {
  color: var(--paper);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.section-head p {
  margin: var(--space-2) 0 0;
  color: var(--ink-muted);
}

.accent {
  color: var(--green);
}

/* Hero */
.hero {
  background: var(--paper-soft);
  padding: 56px 0 40px;
}

.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--space-6);
  scrollbar-width: none;
}

.slides::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
}

.slide:nth-child(3n + 2) {
  background: var(--green-deep);
}

.slide:nth-child(3n) {
  background: var(--navy-soft);
}

.slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A slide with its picture: the picture shows whole at its own shape, with the text on its
   coloured panel at the left, as on the live site. Its top edge is see-through where the people
   stand out above the panel, so the slide paints no colour of its own. */
.slide:has(.slide-image) {
  aspect-ratio: 1136 / 489;
  min-height: 0;
  background: none;
  border-radius: 0;
}

.slide:has(.slide-image) .slide-image {
  object-fit: contain;
}

.slide-link {
  position: absolute;
  inset: 0;
}

.slide:has(.slide-image) .slide-text {
  max-width: 36%;
  gap: var(--space-5);
}

.slide-text {
  position: relative;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 620px;
}

.slide-text h2 {
  color: var(--paper);
  font-size: 30px;
  line-height: 38px;
  font-weight: 600;
}

.slide-text p {
  margin: 12px 0 0;
  color: var(--line);
}

.slide-text .btn {
  align-self: flex-start;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 40px;
}

.dots button {
  width: 20px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--line-strong);
  cursor: pointer;
}

.dots button[aria-current='true'] {
  background: var(--ink-muted);
}

/* Homepage "Shop top brands", compact: the title on the left and the logos on the same line,
   in 140 x 80 tiles so six fit beside the title; the row slides sideways when they do not. */
.home .home-brands {
  padding: var(--space-5) 0;
}

.home-brands-line {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.home-brands-title {
  flex: none;
}

.home-brands-title h2 {
  font-size: 28px;
  line-height: 36px;
}

.home-brands-all {
  display: inline-block;
  margin-top: var(--space-1);
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
}

.home-brand-row {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.home-brand-list {
  flex: 1;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.home-brand-list::-webkit-scrollbar {
  display: none;
}

.home-brand-list li {
  flex: none;
  scroll-snap-align: start;
}

.home-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 80px;
  padding: 10px;
}

.home-brand img {
  width: 120px;
  height: 60px;
  object-fit: contain;
}

/* The homepage, like the live site: every section sits in a centred 1440px column (white beyond
   it), its content 1136px wide like a slide, and the grey and navy sections are boxes inside the
   column rather than full-width bands. */
.home {
  --home-edge: 40px;
}

.home .hero,
.home .section {
  max-width: 1440px;
  margin-inline: auto;
}

.home .section > .wrap {
  max-width: none;
  padding-inline: max(var(--home-edge), calc((100% - 1136px) / 2));
}

/* The slides: the middle one centred at the pictures' own shape, 34px apart, its neighbours
   peeking in; on a phone one slide across the width. */
.home .hero {
  background: none;
  padding: var(--space-3) 0 var(--space-6);
}

.carousel {
  /* Measured against the slider itself (cqi), not the row of slides inside its padding. */
  container-type: inline-size;
  --slide-width: min(1102px, calc(100cqi - 114px));
  position: relative;
  overflow: hidden;
}

.home .slides {
  gap: 34px;
  padding-inline: calc((100cqi - var(--slide-width)) / 2);
}

.home .slide {
  flex: 0 0 var(--slide-width);
  scroll-snap-align: center;
}

.home .slide:has(.slide-image) {
  aspect-ratio: 1102 / 474;
}

.home .slide:has(.slide-image) .slide-image {
  object-fit: cover;
}

.home .hero .dots {
  margin-top: var(--space-4);
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 40px);
  z-index: 1;
}

.carousel-prev {
  left: var(--space-4);
}

.carousel-next {
  right: var(--space-4);
}

/* Reasons */
.reasons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.reason {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4);
  text-align: center;
  font-size: 18px;
  line-height: 28px;
  color: var(--ink);
}

.reason svg {
  width: 72px;
  height: 72px;
}

/* How it works */
.steps-layout {
  display: grid;
  grid-template-columns: 464px 1fr;
  gap: 40px;
  align-items: start;
}

.steps-image {
  border-radius: var(--radius-xl);
  background: var(--navy-soft);
  min-height: 100%;
  overflow: hidden;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 28px;
}

.step-title {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 20px;
  flex-shrink: 0;
}

.step p {
  margin: 0;
}

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--navy);
  display: block;
}

/* Testimonials */
.quotes {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--space-6);
  scrollbar-width: none;
  margin-top: var(--space-7);
}

.quotes::-webkit-scrollbar {
  display: none;
}

.quote {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: var(--paper);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.quote-mark {
  color: var(--green);
}

.quote-mark svg {
  width: 48px;
  height: 40px;
}

.quote blockquote {
  margin: 0;
  font-size: 24px;
  line-height: 34px;
  font-weight: 500;
  color: var(--ink);
}

.quote-by {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.quote-by img,
.quote-by .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--green-soft);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.quote-by strong {
  display: block;
  color: var(--ink-soft);
}

.quote-by span {
  color: var(--ink-faint);
}

/* Your logo, our passion */
.passion {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 72px;
}

.passion-text p {
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-muted);
  margin: var(--space-5) 0 0;
  max-width: 640px;
}

.passion-quote {
  margin: var(--space-6) 0 0;
  padding: var(--space-5);
  background: var(--navy);
  color: var(--paper);
  border-radius: 12px;
  max-width: 560px;
}

.passion-quote p {
  margin: 0;
  color: var(--paper);
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
}

.passion-quote footer {
  margin-top: var(--space-4);
  font-size: 18px;
  color: var(--line);
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: var(--line);
  padding-top: 72px;
  font-size: 14px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
}

.footer h2 {
  color: var(--paper);
  font-size: 18px;
  line-height: 30px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer a {
  color: var(--line);
  text-decoration: none;
  line-height: 24px;
}

.footer a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.footer-contact a,
.contact-details a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-details {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.footer-bottom {
  border-top: 1px solid var(--navy-soft);
  margin-top: 56px;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.footer-bottom p {
  margin: 0;
}

/* Plain pages (placeholders, content pages, search) */
.page {
  padding: 56px 0 96px;
}

.page h1 {
  margin-bottom: var(--space-4);
}

.page h2 {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-3);
}

.page .lead {
  font-size: 18px;
  color: var(--ink-muted);
}

.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 28px;
}

.prose p {
  margin: 0 0 var(--space-4);
}

@media (max-width: 1000px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-layout {
    grid-template-columns: 1fr;
  }

  .steps-image {
    min-height: 320px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site h1,
  .site h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .section {
    padding: 56px 0;
  }

  .header-row {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .header-links {
    margin-left: auto;
    gap: var(--space-4);
  }

  .header-link span {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .menu {
    display: none;
  }

  .menu.open {
    display: block;
  }

  .menu-row {
    flex-direction: column;
  }

  .menu-item summary {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-panel {
    position: static;
    box-shadow: none;
    border: 0;
  }

  .menu-panel-inner {
    padding: var(--space-3) 0 var(--space-4);
    max-height: none;
  }

  .hero {
    padding: var(--space-5) 0;
  }

  .slide {
    min-height: 360px;
  }

  .slide-text {
    gap: var(--space-5);
    padding: var(--space-5);
  }

  .slide-text h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .quote blockquote {
    font-size: 20px;
    line-height: 30px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* Admin edit forms */
.edit-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 640px;
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.edit-form h2 {
  margin: 0;
}

.check {
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
  font-size: 15px;
  color: var(--ink);
}

.thumb {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
  background: var(--paper-soft);
  border-radius: var(--radius);
}

.inline {
  display: inline;
}

/* Listing pages: categories, brands, search */
.crumbs {
  padding: var(--space-5) 0 var(--space-4);
  font-size: 14px;
}

.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--ink-faint);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
}

.crumbs li + li::before {
  content: '';
  width: 14px;
  height: 14px;
  margin-right: var(--space-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7.5 15l5-5-5-5' stroke='%23667085' stroke-width='1.667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.crumbs a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.crumbs [aria-current='page'] {
  color: var(--ink-faint);
}

.crumbs a:hover {
  text-decoration: underline;
}

.page-head {
  margin-bottom: var(--space-6);
}

.page-head h1 {
  margin-bottom: var(--space-2);
}

.page-sub {
  margin: 0 0 var(--space-3);
  font-size: 18px;
  color: var(--ink-muted);
}

.brand-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}

.cat-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 240px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

/* The banner picture carries its own colour panel on the left for the heading, people on the
   right, as on the live site; it shows whole at its own shape. */
.cat-banner:has(.cat-banner-image) {
  aspect-ratio: 2613 / 596;
  min-height: 0;
  /* The picture's top is see-through where the people stand out above the panel. */
  background: none;
}

.cat-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.cat-banner-text {
  position: relative;
  padding: var(--space-6);
  max-width: 560px;
}

.cat-banner:has(.cat-banner-image) .cat-banner-text {
  max-width: 62%;
  padding: 0 var(--space-6);
}

.cat-banner-text h1 {
  color: var(--paper);
  font-size: 30px;
  line-height: 38px;
  font-weight: 600;
}

.cat-banner-text p {
  margin: var(--space-3) 0 0;
  color: var(--line);
}

.section-tight {
  padding: var(--space-6) 0;
}

/* Hot brands: title, arrows and logos on one line, as on the live site; the row slides sideways
   (arrows on desktop, a swipe on touch screens). */
.hot-brands {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
}

.hot-brands h2 {
  flex: none;
  margin: 0 var(--space-4) 0 0;
  font-size: 28px;
  line-height: 36px;
}

.brand-circles {
  flex: 1;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.brand-circles::-webkit-scrollbar {
  display: none;
}

.brand-circles li {
  flex: none;
  scroll-snap-align: start;
}

.brand-circles a {
  display: block;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
}

.row-arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.row-arrow:hover:not(:disabled) {
  background: var(--paper-soft);
}

.row-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.row-arrow[hidden] {
  display: none;
}

.tiles-section {
  padding: var(--space-3) 0 var(--space-6);
}

.brand-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--paper-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--navy);
}

.brand-circle > span {
  padding: 0 var(--space-3);
}

/* The old logo files draw their own grey circle. */
.brand-circle:has(img) {
  background: none;
}

.brand-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tiles {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  /* Four 260px tiles and their gaps, centred under the banner as on the live site. */
  max-width: calc(4 * 260px + 3 * var(--space-6));
  margin: 0 auto;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.tile-count {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-faint);
}

.tile-image {
  aspect-ratio: 285 / 311;
  border-radius: 12px;
  background: var(--paper-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 14px;
}

.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tile:hover {
  color: var(--green-dark);
}

.seo-text {
  padding: var(--space-7) 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 24px;
  max-width: none;
}

.listing {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

/* The phone's "View and filter" button and its tick box: not shown on wider screens. */
.filters-open,
.filters-toggle {
  display: none;
}

.sidebar {
  background: var(--paper-soft);
  border-radius: 12px;
  padding: var(--space-4) var(--space-5);
}

.facet {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}

.facet:last-of-type {
  border-bottom: 0;
}

.facet summary {
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.facet summary::-webkit-details-marker {
  display: none;
}

.facet summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg);
  margin-right: 4px;
  transition: transform 0.15s ease;
}

.facet[open] summary::after {
  transform: rotate(-135deg);
}

.facet-links,
.facet-values {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.facet-links li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}

.facet-links a {
  text-decoration: none;
  color: var(--ink);
}

.facet-links a[aria-current='page'] {
  color: var(--green-dark);
  font-weight: 600;
}

.facet-count {
  color: var(--ink-faint);
}

.facet-value {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--ink);
}

.facet-box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  flex-shrink: 0;
  position: relative;
}

.facet-value[aria-current='true'] {
  color: var(--green-dark);
}

.facet-value[aria-current='true'] .facet-box {
  background: var(--green);
  border-color: var(--green);
}

.facet-value[aria-current='true'] .facet-box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(45deg);
}

.facet-label {
  flex: 1;
}

/* A long list of values shows about ten and scrolls inside its box, like the colours. */
.facet-values.is-long {
  max-height: 270px;
  overflow-y: auto;
  padding-right: var(--space-2);
  scrollbar-width: thin;
}

.price-form {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: var(--space-3);
}

.price-form label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.price-form input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
}

.price-form span {
  padding-bottom: 10px;
}

.sidebar-clear {
  font-size: 14px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
  font-size: 14px;
  color: var(--ink-muted);
}

.toolbar-count {
  margin: 0;
}

.toolbar-choices {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.toolbar-choices a {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink-soft);
}

.toolbar-choices a[aria-current='true'] {
  background: var(--paper-soft);
  font-weight: 600;
}

.toolbar-sort {
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
}

.toolbar-sort select {
  border-radius: 8px;
  padding: 6px 10px;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6) var(--space-4);
}

.card-product {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

/* Product photos are portrait (2:3 at SanMar, 4:5 at S&S): the whole picture shows, centred on
   the grey panel, so models keep their heads and feet. */
.card-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: var(--paper-soft);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  /* Vendor photos come on white; multiply lets the grey panel show through the white. */
  mix-blend-mode: multiply;
}

/* Feature icons stacked up from the picture's bottom-right corner, as on the live site. */
.card-icons {
  position: absolute;
  right: var(--space-2);
  bottom: var(--space-2);
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-1);
}

.card-image .card-icons img {
  width: 28px;
  height: 28px;
}

.card-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-weight: 600;
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--green);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

/* One line of colour squares; the arrow at the end opens the rest. */
.card-colors {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.swatches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 16px;
  overflow: hidden;
}

.card-colors.is-open .swatches {
  max-height: none;
}

.swatches li {
  display: flex;
}

.swatch {
  position: relative;
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 2px;
  overflow: hidden;
  border: 0;
  background: none;
  cursor: pointer;
}

/* The colour on show: a white dot in the middle, readable on any colour. */
.swatch[aria-pressed='true']::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
}

.swatches-toggle {
  flex: none;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.swatches-toggle::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  margin: 2px auto 0;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg);
}

.swatches-toggle[aria-expanded='true']::before {
  margin-top: 6px;
  transform: rotate(-135deg);
}

.swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swatch-plain {
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0 var(--space-2);
}

.card-price {
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink-faint);
  font-size: 12px;
}

.card-price strong {
  color: var(--green-dark);
  font-size: 16px;
}

.card-closeout {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
}

.card-price-now {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.card-price s {
  font-size: 13px;
}

.card-sale {
  position: absolute;
  top: 10px;
  left: 10px;
}

.card-brand {
  max-height: 20px;
  max-width: 80px;
  object-fit: contain;
}

.card-brand-name {
  color: var(--ink-faint);
  font-size: 12px;
  white-space: nowrap;
}

.card-product h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.card-product h3 a {
  text-decoration: none;
  color: var(--ink);
}

.card-product h3 a:hover {
  color: var(--green-dark);
}

.card-text {
  margin: 0;
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pager-site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.pager-site ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.pager-site li a {
  display: inline-block;
  min-width: 36px;
  text-align: center;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-soft);
}

.pager-site li a[aria-current='page'] {
  background: var(--paper-soft);
  font-weight: 600;
  color: var(--ink);
}

.pager-gap {
  padding: 6px 4px;
  color: var(--ink-faint);
}

.site .btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.search-large {
  max-width: 560px;
  margin: var(--space-4) 0 0;
  background: var(--paper-soft);
  color: var(--ink);
  padding: 4px 4px 4px var(--space-4);
}

.search-large input {
  color: var(--ink);
}

.search-large input::placeholder {
  color: var(--ink-faint);
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .listing {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* The filters start closed; "View and filter" opens them above the products. */
  .listing > .sidebar {
    display: none;
  }

  .filters-open:checked ~ .sidebar {
    display: block;
  }

  /* The tick box stays reachable by keyboard; only its label is seen. */
  .filters-open {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  .filters-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px var(--space-4);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--paper);
    color: var(--navy);
    font-weight: 600;
    cursor: pointer;
  }

  .filters-open:focus-visible + .filters-toggle {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
  }

  .filters-toggle-hide,
  .filters-open:checked + .filters-toggle .filters-toggle-show {
    display: none;
  }

  .filters-open:checked + .filters-toggle .filters-toggle-hide {
    display: inline;
  }

  .filters-toggle-count {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 13px;
  }

  /* On a phone the panel only fits the button, as on the live site, which may run onto the
     picture a little. */
  .slide:has(.slide-image) .slide-text {
    max-width: none;
    padding: var(--space-3);
  }

  .slide:has(.slide-image) .slide-text > div {
    display: none;
  }

  .slide:has(.slide-image) .slide-text .btn {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
    white-space: nowrap;
  }

  .home {
    --home-edge: var(--space-4);
  }

  .carousel {
    --slide-width: calc(100cqi - 2 * var(--space-4));
  }

  .home .slides {
    gap: var(--space-4);
  }

  .home-brands-line {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .home-brands-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }

  .home-brands-title h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .home-brand {
    width: 120px;
    height: 64px;
  }

  .home-brand img {
    width: 100px;
    height: 50px;
  }

  .hot-brands {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .hot-brands h2 {
    flex-basis: 100%;
    font-size: 24px;
  }

  .brand-circle {
    width: 88px;
    height: 88px;
  }

  .row-arrow {
    display: none;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .cat-banner {
    min-height: 180px;
  }

  .cat-banner-text {
    padding: var(--space-5);
  }

  /* On a phone the banner is too short to carry the heading: the picture shows on its own,
     the heading and text sit below it as ordinary page text. */
  .cat-banner:has(.cat-banner-image) {
    display: block;
    aspect-ratio: auto;
    border-radius: 0;
    overflow: visible;
    color: var(--ink);
  }

  .cat-banner:has(.cat-banner-image) .cat-banner-image {
    position: static;
    display: block;
    height: auto;
  }

  .cat-banner:has(.cat-banner-image) .cat-banner-text {
    max-width: none;
    padding: var(--space-4) 0 0;
  }

  .cat-banner:has(.cat-banner-image) .cat-banner-text h1 {
    color: var(--ink);
  }

  .cat-banner:has(.cat-banner-image) .cat-banner-text p {
    color: var(--ink-muted);
  }

  .pager-site {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* The Color block: parent colours with a hex square, each opening to its colour names. */
.facet-swatch {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--paper);
}

.facet-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.facet-parent summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font: inherit;
  cursor: default;
}

.facet-parent summary::-webkit-details-marker {
  display: none;
}

.facet-parent summary::after {
  content: none;
}

.facet-parent summary .facet-value {
  flex: 1;
}

.facet-parent-toggle {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg);
  margin: 0 6px 4px 0;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.facet-parent[open] .facet-parent-toggle {
  transform: rotate(-135deg);
  margin-bottom: 0;
}

/* About ten colours tall; the rest scroll inside the box (Solomon, 2026-11-10). */
.facet-children {
  margin: 10px 0 0 var(--space-4);
  gap: 10px;
  max-height: 270px;
  overflow-y: auto;
  padding-right: var(--space-2);
  scrollbar-width: thin;
}

/* Product page */
.product {
  display: grid;
  grid-template-columns: minmax(0, 512px) minmax(0, 600px);
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

.product-image {
  aspect-ratio: 4 / 5;
  background: var(--paper-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.15s ease-out;
}

/* Hover zoom: the photo doubles in size around the mouse pointer (see site.js). */
.product-image.can-zoom {
  cursor: zoom-in;
}

.product-image.is-zoomed img {
  transform: scale(2);
}

@media (prefers-reduced-motion: reduce) {
  .product-image img {
    transition: none;
  }
}

.product-thumbs {
  list-style: none;
  display: flex;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
}

.product-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb.is-current {
  border-color: var(--green);
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.product-head h1 {
  font-size: 18px;
  line-height: 28px;
  margin: 0;
}

/* The product's features: icon and name, in a row that wraps. */
.product-features {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: 14px;
  color: var(--ink-soft);
}

.product-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.product-style {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
}

.product-brand {
  max-height: 44px;
  max-width: 80px;
  object-fit: contain;
}

.product-brand-name {
  color: var(--ink-muted);
  white-space: nowrap;
}

.product-buy {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--space-5);
  margin-top: var(--space-4);
}

.method-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-4);
}

.method-tabs a {
  flex: 1;
  text-align: center;
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.method-tabs a.is-current {
  color: var(--green-dark);
  border-bottom-color: var(--green-accent);
}

/* The six tiers in one box, thin lines between them, even columns. */
.tier-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 20px;
  caption-side: bottom;
}

.tier-table th,
.tier-table td {
  padding: 2px 12px;
  text-align: left;
  font-size: 16px;
  border-left: 1px solid var(--line);
}

.tier-table th:first-child,
.tier-table td:first-child {
  border-left: 0;
  padding-left: 0;
}

.tier-table th {
  font-weight: 400;
  color: var(--ink);
}

.tier-table td {
  color: var(--green-dark);
  font-weight: 600;
}

/* The regular price, crossed out above the sale price; takes no room when there is no sale. */
.tier-table s {
  display: block;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 400;
}

.tier-table s:empty {
  display: none;
}

.sale-badge {
  display: inline-block;
  background: var(--danger);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  padding: 0 8px;
  border-radius: 6px;
}

.tier-table .sale-badge {
  margin-right: 6px;
}

/* "Save 23%": the gap between the crossed-out regular price and the sale or closeout price. */
.save-tag {
  display: inline-block;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.tier-table .save-tag {
  margin-right: 6px;
}

.tier-table caption {
  font-size: 13px;
  color: var(--ink-faint);
  padding-top: var(--space-2);
  text-align: left;
}

.product-also .section-head h2 {
  font-size: 18px;
  line-height: 28px;
}

.product .product-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 24px;
}

/* The "1", "2" in front of the product page's steps. */
.step-badge {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-badge);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  flex: none;
}

/* Step 1 ends with the "Selected:" line and a thin rule; step 2 starts below it. */
.product-colors {
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}

.product-sizes {
  padding-top: var(--space-5);
}

/* A colour the vendor is ending: a red dot on its square's corner (its own element, so a ticked
   closeout colour keeps its tick and its name on hover), and the same dot in the legend below. */
.closeout-dot {
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--paper);
}

.color-choice .closeout-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  z-index: 1;
}

.closeout-legend {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.closeout-notice,
.product-gone {
  margin: var(--space-2) 0 0;
  padding: var(--space-3) var(--space-4);
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
}

.closeout-notice,
.product-gone {
  margin: 0 0 var(--space-5);
  font-size: 15px;
}

.color-selected {
  margin: var(--space-4) 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* The colour's name appears at once on hover, above the swatch. */
.color-picker li {
  position: relative;
}

.color-choice:hover::before,
.color-choice:focus-visible::before {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 2;
}

.color-choice img,
.color-choice-plain {
  border-radius: 4px;
}

.product-label small {
  font-weight: 400;
  color: var(--ink-faint);
  font-size: 14px;
}

.color-picker {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.color-choice {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

/* A ticked swatch: thicker green ring and a white check with a dark edge, readable on any colour. */
.color-choice[aria-pressed='true'] {
  border-color: var(--green-badge);
  box-shadow: 0 0 0 2px var(--green-badge);
}

.color-choice[aria-pressed='true']::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 70% no-repeat;
}

.color-choice img,
.color-choice-plain {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.color-choice-plain {
  background: var(--surface);
}

/* Size table, as the live site: the ticked colours' chips in a fixed column on the left; on the
   right the size names (with any upcharge) and one row of boxes per colour, sliding sideways
   under its own scrollbar with an arrow at each end. Nothing overlaps; phones swipe the same. */
.size-table {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.size-chips {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: none;
}

.size-chips-spacer,
.size-head-cell {
  height: 48px;
}

.size-chip {
  position: relative;
  display: flex;
  align-items: center;
  height: 41px;
}

.size-chip img,
.size-chip .color-choice-plain {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 2px solid var(--line-strong);
}

.size-chip:hover::before {
  content: attr(data-name);
  position: absolute;
  left: 0;
  bottom: calc(100% - 2px);
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 2;
}

.size-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.size-scroll::-webkit-scrollbar {
  display: none;
}

.size-sheet {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: max-content;
}

.size-head,
.size-grid {
  display: grid;
  grid-template-columns: repeat(var(--sizes), 80px);
  column-gap: var(--space-4);
}

.size-head-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  scroll-snap-align: start;
}

.size-upcharge {
  min-height: 18px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  color: var(--green-dark);
}

.size-cell {
  position: relative;
  display: block;
  font-size: 16px;
  color: var(--ink);
}

.size-cell input::-webkit-outer-spin-button,
.size-cell input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* The size names are in the header row; each box still carries its own label for screen readers. */
.size-cell > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.size-cell input {
  appearance: textfield;
  -moz-appearance: textfield;
  width: 80px;
  height: 41px;
  text-align: center;
  font: inherit;
  padding: var(--space-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-xs);
}

.size-cell.is-missing input {
  background: var(--paper-soft);
  color: var(--ink-faint);
  box-shadow: none;
}

/* The scrollbar under the sizes, lined up with them (past the chip column). */
.size-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-3) 0 0 46px;
}

.size-bar[hidden] {
  display: none;
}

.size-bar button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.size-bar button:hover:not(:disabled) {
  background: var(--paper-soft);
}

.size-bar button:disabled {
  opacity: 0.35;
  cursor: default;
}

.size-track {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--paper-soft);
  cursor: pointer;
  touch-action: none;
}

.size-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--scroll-thumb);
  cursor: grab;
}

.size-total {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin: var(--space-3) 0 0;
  color: var(--ink-muted);
}

.product-actions,
.product-quote-link {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  gap: var(--space-3);
}

.product-actions {
  margin-top: var(--space-5);
}

.product-actions .btn {
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.product-actions .btn-outline {
  border-color: var(--green-accent);
  color: var(--green);
}

.product-companions {
  margin-top: var(--space-5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
}

.product-companions h2 {
  font-size: 18px;
  margin: 0 0 var(--space-2);
}

.product-companions > p {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  color: var(--ink);
}

.product-companions ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 300px));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
}

.companion {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-2);
  background: var(--paper);
}

.companion-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 105px;
  flex: none;
  background: var(--paper-soft);
  border-radius: 12px;
  overflow: hidden;
}

.companion-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  flex: 1;
}

.companion-label {
  font-size: 14px;
  font-weight: 600;
}

.site .btn-small {
  justify-content: center;
  width: 100%;
  max-width: 192px;
  height: 29px;
  padding: 0 var(--space-4);
  font-size: 14px;
  border-color: var(--green-accent);
  color: var(--green);
}

.product-quote-link {
  margin: var(--space-2) 0 0;
}

.product-quote-link .link-button {
  justify-self: start;
  font-size: 14px;
  font-weight: 500;
}

.product-quote-link .link-button + .link-button {
  justify-self: end;
}

.turnaround {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: 10px 12px;
  background: var(--paper-soft);
  border-radius: 8px;
  font-size: 14px;
}

.turnaround-time {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--ink-faint);
}

/* A white field that looks like the design; the real date box lies on top, invisible, so a
   click opens the browser's own date picker and keyboards still reach it. */
.turnaround-date {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
  min-width: 200px;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-xs);
  color: var(--ink-faint);
  cursor: pointer;
}

.turnaround-date input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.turnaround-date:focus-within {
  outline: 2px solid var(--green-accent);
  outline-offset: 1px;
}

/* A "?" that tells on hover or focus what a method includes. */
.help-mark {
  position: relative;
  margin-left: 6px;
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
  cursor: help;
}

.help-mark:hover::after,
.help-mark:focus-visible::after {
  content: attr(data-help);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 260px;
  white-space: normal;
  text-align: left;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  background: var(--ink);
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  z-index: 3;
}

.companion-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.product-details {
  margin-top: var(--space-6);
}

.product-details .tabs {
  gap: 0;
}

.product-details .tabs a {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-faint);
  border-bottom-width: 2px;
}

.product-details .tabs a.current {
  color: var(--green-dark);
  border-bottom-color: var(--green-accent);
}

.product-details .prose {
  max-width: none;
  font-size: 16px;
  line-height: 26px;
}

.tab-panel h2 {
  font-size: 18px;
  margin: var(--space-5) 0 var(--space-3);
}

.facts-table {
  border-collapse: collapse;
  margin-top: var(--space-3);
}

.facts-table th,
.facts-table td {
  padding: 6px var(--space-4) 6px 0;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.facts-table th {
  color: var(--ink-muted);
  width: 180px;
}

@media (max-width: 800px) {
  .product {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Six price tiers must fit a phone screen side by side. */
  .tier-table {
    table-layout: fixed;
  }

  .tier-table th,
  .tier-table td {
    padding: 6px 4px;
    font-size: 13px;
    text-align: center;
  }

  .product .product-label {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .product-label small {
    flex-basis: 100%;
    padding-left: 42px;
  }

  .product-actions,
  .product-quote-link {
    grid-template-columns: minmax(0, 1fr);
  }

  .turnaround {
    flex-direction: column;
    align-items: stretch;
  }
}

.check-list.is-long {
  max-height: 320px;
  overflow-y: auto;
  padding-right: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-2);
}

/* Decorate step */
.decorate {
  padding: var(--space-5) var(--space-4) var(--space-7);
}

.decorate-errors {
  margin-bottom: var(--space-4);
}

.decorate-errors ul {
  margin: 0;
  padding-left: var(--space-4);
}

.decorate-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 580px);
  gap: var(--space-7);
  align-items: start;
}

.decorate-main h1 {
  font-size: 24px;
  line-height: 32px;
  margin: 0 0 var(--space-4);
}

.decorate-photo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.decorate-photo img {
  max-width: 100%;
  height: auto;
  max-height: 820px;
  object-fit: contain;
}

.decorate-card {
  position: sticky;
  top: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  display: grid;
  gap: var(--space-4);
}

.decorate-card h2,
.decorate-card .decorate-section h2 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  margin: 0;
}

.decorate-card .decorate-section {
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.decorate-item {
  display: grid;
  gap: var(--space-3);
}

.decorate-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.decorate-change {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.decorate-change:hover {
  text-decoration: underline;
}

.decorate-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-muted);
}

.decorate-item-row strong {
  color: var(--ink);
}

.decorate-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

.decorate-chip {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper-soft);
}

.decorate-chip.is-current,
.decorate-chip:hover {
  border-color: var(--green);
}

.decorate-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.decorate-method {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.decorate-method-pick {
  display: grid;
  gap: var(--space-1);
  justify-items: end;
}

.help-icon {
  width: auto;
  height: auto;
  border: 0;
  vertical-align: middle;
  color: var(--ink-faint);
}

.help-icon svg {
  width: 18px;
  height: 18px;
}

/* Our own look for every select: the arrow is drawn here, not by the browser. */
.select-wrap {
  position: relative;
  display: inline-block;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 40px 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.decorate-inline-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.decorate-locations {
  display: grid;
  gap: var(--space-3);
}

.decorate-location {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  overflow: hidden;
}

.decorate-location-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.decorate-location-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.decorate-location-icon {
  display: inline-flex;
  color: var(--green-accent);
}

.decorate-location-icon svg {
  width: 20px;
  height: 20px;
}

.decorate-location-icon svg:last-child,
.decorate-location.is-open .decorate-location-icon svg:first-child {
  display: none;
}

.decorate-location.is-open .decorate-location-icon svg:last-child {
  display: block;
}

.decorate-location-remove {
  display: none;
  margin-right: var(--space-3);
  padding: var(--space-2);
  border: 0;
  background: none;
  color: var(--green-accent);
  cursor: pointer;
}

.decorate-location.is-open .decorate-location-remove {
  display: inline-flex;
}

.decorate-location-remove svg {
  width: 20px;
  height: 20px;
}

.decorate-location-body {
  padding: 0 var(--space-4) var(--space-4);
  display: grid;
  gap: var(--space-4);
}

.decorate-location-body input[type='text'],
.decorate-location-body textarea,
.decorate-card input[type='email'],
.decorate-card input[type='date'] {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
  width: 100%;
}

.decorate-color-remove svg {
  width: 20px;
  height: 20px;
}

.decorate-color-remove {
  order: 1;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--danger);
  cursor: pointer;
}

.decorate-color-price {
  order: 2;
}

.decorate-add-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
}

.decorate-add-link svg {
  width: 18px;
  height: 18px;
}

.decorate-remove-text {
  color: var(--ink-muted);
  font-weight: 500;
}

.decorate-text {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.decorate-text-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.decorate-text-line .select-wrap select {
  width: 100%;
  font-weight: 500;
}

.decorate-label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0 0 var(--space-3);
  font-size: 16px;
  font-weight: 500;
}

.decorate-colors {
  display: grid;
  gap: var(--space-3);
}

.decorate-color-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-2);
}

.decorate-color-price {
  min-width: 88px;
  text-align: right;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Our own checkbox: a square that fills green when ticked. */
.decorate-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}

.decorate-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  display: grid;
  place-content: center;
  cursor: pointer;
}

.decorate-check input::before {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}

.decorate-check input:checked {
  background: var(--green);
  border-color: var(--green);
}

.decorate-check input:checked::before {
  opacity: 1;
}

.decorate-notes {
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--space-2);
}

.decorate-notes-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}

.decorate-chevron {
  display: inline-flex;
  transition: transform 0.15s ease-out;
}

.decorate-chevron svg {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
}

.decorate-notes-toggle[aria-expanded='true'] .decorate-chevron {
  transform: rotate(180deg);
}

.decorate-fee {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--space-3);
}

.decorate-summary {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
}

.decorate-summary .price-lines dt,
.decorate-summary .price-lines dd {
  font-size: 14px;
}

/* The imprint fee line: its make-up by location shows on hover, and on a tap or the keyboard. */
.price-fee {
  position: relative;
  cursor: help;
}

.price-fee-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.price-fee-label svg {
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
}

.fee-breakdown {
  display: none;
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-xl);
  color: var(--ink);
  font-size: 13px;
  cursor: default;
}

.price-fee:hover .fee-breakdown,
.price-fee:focus .fee-breakdown,
.price-fee:focus-within .fee-breakdown {
  display: grid;
  gap: var(--space-3);
}

.fee-location {
  display: grid;
  gap: 4px;
}

.fee-location strong {
  font-size: 14px;
}

.fee-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 72px;
  gap: var(--space-3);
  color: var(--ink-muted);
}

.fee-line em {
  font-style: normal;
  color: var(--ink);
}

.fee-line > :last-child {
  text-align: right;
  color: var(--ink);
}

.fee-setup > :first-child {
  color: var(--green-dark);
}

.decorate-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.decorate-date {
  display: grid;
  gap: var(--space-1);
  font-size: 13px;
}

.decorate-date svg {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}

.decorate-add {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.decorate-add svg {
  width: 18px;
  height: 18px;
}

.decorate-note {
  margin: 0;
}

.decorate-signin {
  margin-top: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  display: grid;
  gap: var(--space-3);
}

.decorate-bar {
  display: none;
}

.btn-wide {
  width: 100%;
}

.small {
  font-size: 13px;
  line-height: 18px;
}

.price-lines {
  margin: 0;
  display: grid;
  gap: var(--space-1);
}

.price-lines > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.price-lines dt {
  color: var(--ink-soft);
}

.price-lines dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.price-lines .price-total {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 18px;
}

/* Cart */
/* The cart's sizes are the live cart's, measured (Solomon, 2026-11-15). */
.cart {
  max-width: calc(1115px + 2 * var(--space-4));
  padding: var(--space-6) var(--space-4) var(--space-7);
}

.cart h1 {
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  margin: 0 0 var(--space-4);
}

/* The cart as the live site's: the lines on the left, the order summary on the right. */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 338px;
  gap: 33px;
  align-items: start;
}

.cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
}

.cart-line {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}

.cart-product {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
}

.cart-picture img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--surface);
  border-radius: var(--radius);
}

.cart-line h2 {
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  margin: 0;
}

.cart-line h2 a {
  color: var(--ink);
  text-decoration: none;
}

.cart-style {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
}

.cart-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font-size: 14px;
  cursor: pointer;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

a.cart-remove {
  text-decoration: none;
}

a.cart-remove:hover {
  color: var(--green-dark);
}

.cart-remove:hover {
  background: none;
  color: var(--danger);
}

.cart-remove svg {
  width: 18px;
  height: 18px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 22px;
}

.cart-table th {
  height: 48px;
  padding: 6px var(--space-3);
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-weight: 500;
  text-align: left;
}

.cart-table td {
  height: 48px;
  padding: 6px var(--space-3);
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
}

.cart-table th:first-child,
.cart-table td:first-child {
  padding-left: var(--space-5);
}

.cart-table tfoot td {
  border-bottom: 0;
}

.cart-table input[type='number'] {
  width: 72px;
  padding: 4px 8px;
  font: inherit;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
}

.cart-table .cart-amount {
  color: var(--ink);
  font-weight: 500;
}

.cart-table .cart-subtotal {
  color: var(--green-accent);
  font-weight: 600;
}

.cart-swatch {
  display: inline-block;
  object-fit: cover;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  vertical-align: middle;
}

.site .cart-update {
  padding: 5px 12px;
  font-size: 13px;
  box-shadow: none;
}

.cart-artwork td {
  color: var(--green-dark);
}

.cart-artwork a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
}

.cart-artwork svg {
  width: 16px;
  height: 16px;
}

/* A value whose make-up opens under it: on hover, on a tap, from the keyboard. */
.cart-pop {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: help;
}

.cart-pop-value::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 3px 8px;
  border-right: 1.5px solid var(--ink-muted);
  border-bottom: 1.5px solid var(--ink-muted);
  transform: rotate(45deg);
}

.cart-pop-box {
  display: none;
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin-top: 8px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-xl);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 400;
  cursor: default;
}

.cart-pop:hover .cart-pop-box,
.cart-pop:focus .cart-pop-box,
.cart-pop:focus-within .cart-pop-box {
  display: grid;
  gap: var(--space-2);
}

.cart-pop-line {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  white-space: nowrap;
}

.cart-pop-line strong {
  color: var(--ink);
}

.cart-side {
  display: grid;
  gap: var(--space-4);
  position: sticky;
  top: var(--space-4);
}

.cart-summary {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.cart-summary h2 {
  margin: 0;
  font-size: 18px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  color: var(--ink-faint);
}

.cart-summary-row strong {
  color: var(--ink);
}

.cart-summary-total {
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.cart-summary-total strong {
  color: var(--orange);
  font-size: 16px;
  font-weight: 600;
}

.cart-shipping {
  display: grid;
  gap: var(--space-3);
}

.cart-shipping label {
  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: center;
  color: var(--ink-faint);
  font-size: 16px;
  font-weight: 400;
}

.cart-shipping select,
.cart-shipping input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.site .cart-calculate {
  justify-self: end;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--green);
  background: var(--green-soft);
  box-shadow: none;
  color: var(--ink);
}

.site .cart-calculate:hover {
  background: var(--paper);
}

.cart-summary .btn-wide {
  justify-content: center;
}

.cart-shipping-result h3 {
  margin: 0 0 var(--space-2);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
}

.cart-shipping-result dl {
  margin: 0;
  display: grid;
  gap: var(--space-2);
  font-size: 14px;
}

/* Each service on one row: its name with the delivery days under it, the price in its own
   column, so a long name never runs into the price. */
.cart-shipping-result dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: start;
}

.cart-shipping-result dt {
  line-height: 1.3;
}

.cart-ship-days {
  display: block;
  color: var(--ink-faint);
  font-size: 12px;
}

.cart-shipping-result dd {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

/* The proof note, as on the live site: a bulb beside the promise and "View how it works". */
.cart-proof-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--paper);
  font-size: 14px;
}

.cart-proof-icon {
  display: flex;
  margin-top: 10px;
}

.cart-proof-text {
  display: grid;
  gap: 4px;
}

.cart-proof-how {
  position: relative;
  justify-self: start;
  cursor: pointer;
}

.cart-proof-link {
  color: var(--green-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-proof-steps {
  display: none;
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  margin: 8px 0 0;
  padding: var(--space-3) var(--space-4);
  list-style: none;
  counter-reset: proof;
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-xl);
  color: var(--ink-muted);
  white-space: nowrap;
}

.cart-proof-steps li {
  padding: 4px 0;
  counter-increment: proof;
}

.cart-proof-steps li::before {
  content: counter(proof) '. ';
}

.cart-proof-how:hover .cart-proof-steps,
.cart-proof-how:focus .cart-proof-steps,
.cart-proof-how:focus-within .cart-proof-steps {
  display: block;
}

@media (max-width: 900px) {
  .decorate {
    padding-bottom: 96px;
  }

  .decorate-columns {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .decorate-photo img {
    max-height: 420px;
  }

  .decorate-card {
    position: static;
    padding: var(--space-4);
  }

  .decorate-method {
    flex-direction: column;
  }

  .decorate-method-pick {
    justify-items: start;
  }

  .decorate-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .decorate-foot .decorate-add {
    display: none;
  }

  /* The total and the button stay at the bottom of the screen on a phone. */
  .decorate-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgb(16 24 40 / 0.08);
  }

  .decorate-bar[hidden] {
    display: none;
  }

  .decorate-bar strong {
    font-size: 18px;
  }

  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-side {
    position: static;
  }

  .cart-line {
    overflow-x: auto;
  }
}

/* Pop-ups */
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--green);
  cursor: pointer;
  text-decoration: underline;
}

/* A button that looks like a link keeps looking like one on hover, not like a green button. */
.link-button:hover {
  background: none;
  color: var(--green-dark);
}

.dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgb(16 24 40 / 0.2);
}

.dialog::backdrop {
  background: rgb(16 24 40 / 0.5);
}

.dialog-form,
.dialog-done {
  position: relative;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
}

.dialog-form h2,
.dialog-done h2 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  padding-right: var(--space-6);
}

.dialog-form label {
  display: grid;
  gap: var(--space-1);
  font-size: 14px;
  font-weight: 600;
}

.dialog-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* Request forms */
.step-number {
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin-right: var(--space-2);
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 15px;
}

/* The quote and mockup forms (Solomon, 2026-11-13): photo left, one card of numbered steps. */
.request {
  padding: var(--space-5) var(--space-4) var(--space-7);
}

.request-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-6);
  align-items: start;
  margin-top: var(--space-5);
}

.request-layout-mockup {
  grid-template-columns: 9fr 11fr;
}

/* A grid column would otherwise grow to its widest content (nine size boxes on a phone). */
.request-layout > * {
  min-width: 0;
}

.request-photo {
  position: sticky;
  top: var(--space-4);
  text-align: center;
}

.request-photo-box img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
}

.request-photo-box .card-placeholder {
  min-height: 320px;
}

.request-photo-name {
  margin: var(--space-3) 0 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
}

.request-photo-style {
  margin: var(--space-1) 0 0;
  color: var(--ink-muted);
}

.request-card {
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xl);
}

/* ".request" in front: the site's own heading sizes would win otherwise. */
.request .request-title {
  margin: 0 0 var(--space-2);
  text-align: center;
  font-size: 28px;
}

.request-lead {
  margin: 0 0 var(--space-5);
  text-align: center;
  color: var(--ink-muted);
}

.request-errors {
  margin-bottom: var(--space-4);
}

.request-errors ul {
  margin: 0;
  padding-left: var(--space-4);
}

.request-step {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
}

.request-step:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.request .request-step-title {
  display: flex;
  align-items: center;
  margin: 0 0 var(--space-4);
  font-size: 18px;
}

.request-submit {
  justify-content: center;
  margin-top: var(--space-3);
  padding: 14px;
  font-size: 17px;
}

.request-thanks {
  padding: var(--space-6) 0;
  text-align: center;
}

.request-thanks p {
  margin: 0 0 var(--space-3);
}

/* The robots' field: off screen, never seen or tabbed to by people. */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Colour swatches: small squares; a long list scrolls inside its box (about four rows). */
.pick-swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 156px;
  padding: 4px;
  overflow-y: auto;
}

.pick-swatch {
  position: relative;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.pick-swatch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pick-swatch-face {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.pick-swatch-face img,
.pick-swatch-plain {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pick-swatch input:checked + .pick-swatch-face {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.pick-swatch input:checked + .pick-swatch-face::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 45%;
  width: 7px;
  height: 13px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.9));
}

.pick-swatch input:focus-visible + .pick-swatch-face {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.pick-swatch-chosen {
  margin: var(--space-2) 0 0;
  font-size: 14px;
}

/* Pieces per size for the colours picked. */
.pieces {
  margin-top: var(--space-4);
}

.pieces-scroll {
  overflow-x: auto;
}

.pieces-table {
  border-collapse: separate;
  border-spacing: 4px;
}

.pieces-table thead th {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.pieces-table input {
  width: 46px;
  padding: 6px 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  text-align: center;
  -moz-appearance: textfield;
}

.pieces-table input::-webkit-outer-spin-button,
.pieces-table input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pieces-table .is-missing {
  color: var(--ink-faint);
  text-align: center;
}

.pieces-total {
  margin: var(--space-2) 0 0;
}

.pieces-short {
  display: block;
  color: var(--ink-muted);
  font-size: 13px;
}

/* Location rows: location, method, upload, and an x on every row after the first. */
.location-row {
  margin-bottom: var(--space-4);
}

.location-row-choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-2);
}

.location-row-choices .select-wrap {
  flex: 1 1 150px;
}

.location-row-choices select {
  width: 100%;
}

.location-remove {
  display: inline-flex;
  padding: var(--space-1);
  border: 0;
  background: none;
  color: var(--ink-faint);
  cursor: pointer;
}

.location-remove svg {
  width: 16px;
  height: 16px;
}

.link-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-1) 0;
  border: 0;
  background: none;
  color: var(--green-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.link-add svg {
  width: 16px;
  height: 16px;
}

/* Logo colour notes. */
.color-notes {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.radio-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 15px;
  gap: var(--space-2);
  cursor: pointer;
}

.radio-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.request-notes span,
.your-info span {
  display: block;
  margin-bottom: var(--space-1);
  font-size: 14px;
  font-weight: 600;
}

.request-notes textarea,
.your-info input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font: inherit;
}

/* Your info: name and email side by side. */
.your-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.your-info-known {
  margin: 0;
}

/* The mockup's green banner, with the live site's shirt picture. */
.mockup-banner {
  display: flex;
  justify-content: space-between;
  min-height: 240px;
  margin-top: var(--space-4);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    url('/img/mockup-swirl-1.svg?v=1') no-repeat left 22% top -60px,
    url('/img/mockup-swirl-2.svg?v=1') no-repeat right 30% bottom -110px,
    var(--green-deep);
  color: #fff;
}

.mockup-banner-text {
  align-self: center;
  padding: var(--space-6);
}

.mockup-banner h1 {
  margin: 0 0 var(--space-3);
  color: #fff;
  font-size: 32px;
}

.mockup-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.mockup-banner-picture {
  position: relative;
  flex: none;
  align-self: flex-end;
  margin-right: var(--space-6);
}

.mockup-banner-picture > img {
  display: block;
}

.mockup-your-logo {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
}

@media (max-width: 900px) {
  .request-layout,
  .request-layout-mockup {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .request-photo {
    position: static;
  }

  .request-photo-box img {
    max-height: 380px;
  }

  .request-card {
    padding: var(--space-4);
  }

  .your-info {
    grid-template-columns: 1fr;
  }

  .mockup-banner {
    min-height: 0;
  }

  .mockup-banner-text {
    padding: var(--space-5) var(--space-4);
  }

  .mockup-banner h1 {
    font-size: 24px;
  }

  .mockup-banner-picture {
    display: none;
  }
}

/* The decorate step's own buttons keep their look on hover (the site's button is green). */
.decorate-location-toggle:hover,
.decorate-location-remove:hover,
.decorate-add-link:hover,
.decorate-notes-toggle:hover,
.decorate-color-remove:hover,
.decorate-chip:hover {
  background: none;
}

.decorate-location-toggle:hover {
  color: var(--green-dark);
}

.decorate-color-row [data-color-remove][hidden] {
  display: inline-flex;
  visibility: hidden;
}

/* Logos at a location (Solomon, 2026-11-13): a dashed box until one is chosen, then square cards
   with the art on a checkerboard, so white or see-through logos still show. */
.logo-field {
  --logo-card: 96px;
}

.logo-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-5) var(--space-4);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
  text-align: center;
  cursor: pointer;
}

.logo-drop.is-dragging,
.logo-field.is-dragging .logo-drop,
.logo-drop:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.logo-drop:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* The real file field fills the box, unseen, so a click or a tap anywhere opens the picker. */
.logo-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.logo-drop-text {
  font-weight: 600;
  color: var(--navy);
}

.logo-drop-link {
  color: var(--green-dark);
  text-decoration: underline;
}

.logo-drop-hint {
  color: var(--ink-muted);
  font-size: 13px;
}

.logo-saved-link {
  display: inline-block;
  margin-top: var(--space-2);
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-dark);
  font-size: 14px;
  text-decoration: underline;
}

.logo-saved-link:hover {
  background: none;
  color: var(--green-deep);
}

.logo-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-3);
}

.logo-item {
  width: var(--logo-card);
}

.logo-tile {
  position: relative;
}

.logo-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--logo-card);
  height: var(--logo-card);
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  /* Mid-grey squares, so a white logo shows as clearly as a dark one. */
  background: repeating-conic-gradient(#cfd4dc 0% 25%, #e9ecf0 0% 50%) 0 0 / 12px 12px;
  overflow: hidden;
}

/* The picture is a link that downloads the file; the mark in its corner says so. */
.logo-download {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  color: var(--navy);
  text-decoration: none;
}

.logo-download:hover .logo-thumb,
.logo-download:focus-visible .logo-thumb {
  border-color: var(--green);
}

.logo-download-mark {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
}

.logo-download:hover .logo-download-mark {
  color: var(--green-dark);
}

.logo-download-mark svg {
  width: 13px;
  height: 13px;
}

.logo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-kind {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--navy);
}

.logo-kind svg {
  width: 30px;
  height: 30px;
}

.logo-kind b {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.logo-name {
  display: block;
  margin-top: var(--space-1);
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
  box-shadow: var(--shadow-xs);
}

.logo-remove:hover {
  background: var(--paper);
  color: var(--danger);
}

.logo-remove svg {
  width: 14px;
  height: 14px;
}

.logo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  width: var(--logo-card);
  height: var(--logo-card);
  padding: 0;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
}

.logo-add:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.logo-add svg {
  width: 18px;
  height: 18px;
}

.logo-name-field {
  display: block;
  margin-top: var(--space-1);
}

.logo-name-field span {
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
}

.logo-name-field input {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: 12px;
}

/* The saved-logos pop-up: thumbnails four across, three on a phone. */
.logo-picker,
.logo-upload {
  width: min(560px, calc(100vw - 2 * var(--space-4)));
  max-height: calc(100vh - 2 * var(--space-5));
  padding: var(--space-5);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.logo-picker::backdrop,
.logo-upload::backdrop {
  background: rgba(16, 24, 40, 0.5);
}

.logo-picker-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.logo-picker-head h2 {
  flex: 1;
  margin: 0;
  font-size: 20px;
}

.logo-picker-upload {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.logo-picker-upload svg {
  width: 16px;
  height: 16px;
}

.logo-picker-close {
  display: flex;
  padding: var(--space-1);
  border: 0;
  background: none;
  color: var(--ink-soft);
}

.logo-picker-close:hover {
  background: none;
  color: var(--ink);
}

.logo-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  max-height: 52vh;
  overflow-y: auto;
  padding: 4px;
}

.logo-pick {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: center;
}

.logo-pick:hover {
  background: none;
}

/* In the pop-up the thumbnails fill their column: about 110px across on a computer. */
.logo-pick .logo-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.logo-pick:hover .logo-thumb {
  border-color: var(--green);
}

.logo-pick[aria-pressed='true'] .logo-thumb {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green);
}

.logo-check {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.logo-check svg {
  width: 14px;
  height: 14px;
}

.logo-pick[aria-pressed='true'] .logo-check {
  display: flex;
}

.logo-picker-note {
  margin: var(--space-3) 0 0;
  color: var(--danger);
  font-size: 14px;
}

.logo-picker-foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

@media (max-width: 600px) {
  .logo-field {
    --logo-card: 84px;
  }

  .logo-picker {
    padding: var(--space-4);
  }

  .logo-picker-head h2 {
    flex-basis: calc(100% - 48px);
  }

  .logo-picker-upload {
    order: 3;
    justify-content: center;
    width: 100%;
  }

  .logo-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== Admin design (Solomon, 2026-11-15): the admin's own look, on computers only. Every rule
   starts with .admin so the shop's styles (which share some names, such as .cards) never reach
   in, and nothing here reaches the shop. ===== */
.admin {
  background: #f4f6f9;
  color: var(--ink);
  font-size: 14px;
}

.admin .admin-main {
  max-width: 1280px;
  padding: var(--space-6) var(--space-7) var(--space-7);
}

.admin .admin-main > h1 {
  margin: 0 0 var(--space-2);
  font-size: 26px;
  letter-spacing: -0.01em;
}

.admin .admin-main > h1 + p,
.admin .admin-main > h1 + p.muted {
  margin-top: 0;
}

.admin .admin-main h2 {
  margin: var(--space-5) 0 var(--space-3);
  font-size: 17px;
}

.admin .muted {
  color: var(--ink-muted);
}

/* Links read as links, without the underline everywhere. */
.admin .admin-main a {
  color: var(--green-dark);
  text-decoration: none;
}

.admin .admin-main a:hover {
  text-decoration: underline;
}

/* Cards: white panels on the grey page. */
.admin .card,
.admin .admin-section {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.admin .card h2:first-child {
  margin-top: 0;
}

.admin .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-4);
  margin: var(--space-4) 0;
}

/* Forms: labels above their boxes; tick boxes and radio buttons beside their words. */
.admin label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.admin label:has(> input[type='checkbox']),
.admin label:has(> input[type='radio']),
.admin label.check {
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.admin input:not([type='checkbox']):not([type='radio']):not([type='file']),
.admin select,
.admin textarea {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
}

.admin input:focus,
.admin select:focus,
.admin textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 132, 50, 0.15);
}

.admin input[type='checkbox'],
.admin input[type='radio'] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}

.admin input[readonly] {
  background: var(--paper-soft);
  color: var(--ink-muted);
}

.admin .edit-form,
.admin .form {
  display: grid;
  gap: var(--space-4);
}

/* Buttons: green for the main action, white outline for the rest, red for deleting. */
.admin button,
.admin a.button,
.admin .button-quiet,
.admin a.button-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.admin a.button {
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--paper);
}

.admin a.button:hover {
  background: var(--green-dark);
  text-decoration: none;
}

.admin .button-quiet,
.admin a.button-quiet {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--navy);
}

.admin .button-quiet:hover,
.admin a.button-quiet:hover {
  border-color: var(--navy-soft);
  background: var(--paper-soft);
  text-decoration: none;
}

.admin .button-danger {
  color: var(--danger);
}

.admin .button-danger:hover {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.admin form.inline {
  display: inline;
}

.admin .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

/* Tables: a white panel with quiet headings; the row's actions sit together on the right. */
.admin .data-table,
.admin .log-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.admin .data-table th,
.admin .log-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.admin .data-table td,
.admin .log-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin .data-table tbody tr:last-child td,
.admin .log-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin .data-table tbody tr:hover td {
  background: #fafbfc;
}

.admin .data-table td.nowrap:last-child {
  text-align: right;
}

.admin .data-table td.nowrap:last-child > a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-right: var(--space-2);
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 600;
}

.admin .data-table td.nowrap:last-child > a:hover {
  background: var(--paper-soft);
  text-decoration: none;
}

.admin .data-table td.nowrap:last-child button {
  min-height: 32px;
  padding: 4px 12px;
}

.admin .data-table input:not([type='checkbox']):not([type='radio']) {
  min-height: 32px;
  padding: 4px 8px;
}

/* Tabs: a row of soft pills. */
.admin .tabs {
  display: inline-flex;
  gap: 4px;
  margin: var(--space-2) 0 var(--space-5);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.admin .tabs a {
  margin: 0;
  padding: 6px 14px;
  border: 0;
  border-radius: 7px;
  color: var(--ink-soft);
  font-weight: 600;
}

.admin .tabs a:hover {
  background: var(--paper-soft);
  text-decoration: none;
}

.admin .tabs a.current {
  background: var(--navy);
  color: var(--paper);
}

/* Status chips. */
.admin .status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* Facts: label and value side by side. */
.admin .facts {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px var(--space-4);
  margin: 0;
}

.admin .facts dt {
  color: var(--ink-muted);
}

.admin .facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Lists of tick boxes: no bullets, in columns, the ticked ones lightly marked. */
.admin .check-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 2px var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin .check-list.is-long {
  max-height: none;
  overflow: visible;
}

.admin .check-list li {
  padding: 4px 8px;
  border-radius: 6px;
}

.admin .check-list li:has(input:checked) {
  background: var(--green-soft);
}

/* Collapsible sections: a header line that says what is chosen, opened only when needed. */
.admin .admin-section {
  padding: 0;
}

.admin .admin-section + .admin-section {
  margin-top: var(--space-3);
}

.admin .admin-section > summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  list-style: none;
  cursor: pointer;
}

.admin .admin-section > summary::-webkit-details-marker {
  display: none;
}

.admin .admin-section > summary::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.admin .admin-section[open] > summary::after {
  transform: rotate(-135deg);
}

.admin .admin-section > summary:hover {
  background: #fafbfc;
}

.admin .section-title {
  flex: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.admin .section-summary {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin .section-body {
  padding: 0 var(--space-5) var(--space-5);
  border-top: 1px solid var(--line);
}

.admin .section-body > :first-child {
  margin-top: var(--space-4);
}

/* A filter group inside a section: its own small collapsible line. */
.admin .section-body .facet {
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.admin .section-body .facet > summary {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-3);
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
}

.admin .section-body .facet > summary .muted {
  font-weight: 400;
}

.admin .section-body .facet .check-list {
  padding-bottom: var(--space-3);
}

/* The page header: back link, title, status, and the page's main actions. */
.admin .page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.admin .page-head-actions {
  display: flex;
  gap: var(--space-2);
}

.admin .back-link {
  display: block;
  width: fit-content;
  margin-bottom: var(--space-2);
  color: var(--ink-muted);
  font-size: 13px;
}

/* The product page: sections on the left, the product's facts on the right. */
.admin .product-admin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-5);
  align-items: start;
}

.admin .product-aside {
  position: sticky;
  top: var(--space-5);
  display: grid;
  gap: var(--space-4);
}

.admin .product-aside .card h2 {
  margin: 0 0 var(--space-3);
  font-size: 15px;
}

.admin .product-aside .facts {
  grid-template-columns: 110px 1fr;
  font-size: 13px;
}

.admin .rich-text {
  max-height: 360px;
  overflow: auto;
}

.admin .page-head-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}

.admin .section-body h3 {
  margin: var(--space-4) 0 var(--space-2);
  font-size: 14px;
  color: var(--navy);
}

.admin .section-body .facet > summary::after {
  margin-left: auto;
}

.admin .form > button,
.admin .edit-form > button {
  justify-self: start;
  min-width: 160px;
}

/* Short fields with their button beside them, not stacked. */
.admin .form-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: var(--space-3);
}

.admin .form-row > label {
  flex: 0 1 340px;
}

.admin .form-row > button {
  justify-self: auto;
  min-width: 0;
}

/* The imprint method page: name and vendor side by side, the two price tables side by side. */
.admin .method-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}

.admin .method-pricing > .card h2 {
  margin-top: 0;
}

.admin .tier-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.admin .tier-pair .tier-table input {
  width: 100%;
  min-width: 0;
}

/* A table cell must stay a table cell, or the row's lines break apart. */
.admin td.actions {
  display: table-cell;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.admin td.actions > * + * {
  margin-left: var(--space-2);
}

/* The upload pop-up: the file, the logo's name and the email, then the code when needed. */
.logo-upload {
  width: min(500px, calc(100vw - 2 * var(--space-4)));
}

.logo-upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.logo-upload-head h2 {
  margin: 0;
  font-size: 20px;
}

.logo-upload-step {
  display: grid;
  gap: var(--space-3);
}

.logo-upload-step[hidden] {
  display: none;
}

.logo-upload-step h3,
.logo-upload-step p {
  margin: 0;
}

.logo-upload-step input[type='text'],
.logo-upload-step input[type='email'] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.logo-upload-step .btn {
  width: 100%;
  justify-content: center;
}

.logo-upload-step .link-button {
  justify-self: center;
  font-size: 14px;
}

.logo-upload [data-upload-code] {
  font-size: 20px;
  letter-spacing: 0.3em;
  text-align: center;
}

.logo-upload .form-error {
  margin: var(--space-3) 0 0;
}

/* Admin, Shipping: the category table groups rows by menu group; subcategories sit under their main one. */
.admin .shipping-rules .group-row th {
  padding-top: var(--space-4);
  font-size: 15px;
  color: var(--ink);
  background: none;
  border-bottom: 2px solid var(--line);
}
.admin .shipping-rules .sub-row td:first-child {
  padding-left: var(--space-5);
  color: var(--ink-soft);
}
.admin .shipping-rules .sub-mark {
  margin-right: var(--space-2);
  color: var(--ink-faint);
}

/* Checkout (Stage 8): the cart's two columns, the form in cards on the left. */
.checkout-steps {
  display: flex;
  gap: var(--space-5);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
  color: var(--ink-faint);
  font-size: 14px;
}

.checkout-steps .current {
  color: var(--ink);
  font-weight: 600;
}

.checkout-steps .done {
  color: var(--green);
}

.checkout-form {
  display: grid;
  gap: var(--space-4);
}

.checkout-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.checkout-card h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  font-size: 18px;
}

.checkout-card p {
  margin: 0;
}

.checkout-card label > span:first-child {
  display: block;
  margin-bottom: var(--space-1);
  font-size: 14px;
  font-weight: 600;
}

.checkout-card input[type='text'],
.checkout-card input[type='tel'],
.checkout-card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font: inherit;
}

.checkout-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
}

.checkout-card [data-bill-fields] {
  display: grid;
  gap: var(--space-3);
}

.checkout-card [hidden] {
  display: none;
}

.checkout-card .checkout-check,
.checkout-card .checkout-choice {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.checkout-card .checkout-check > span:first-child,
.checkout-card .checkout-choice > span:first-child {
  margin: 0;
}

.checkout-choice {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.checkout-choice:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft, #f3faec);
}

.checkout-card .checkout-choice > span {
  flex: 1;
  margin: 0;
  font-weight: 600;
}

.checkout-choice .muted {
  font-weight: 400;
}

/* The card panel: one framed block that reads as the secure part of the page. Sola's frames
   sit inside our boxes, so the border, focus ring and tick are ours and match the site. */
.pay-panel {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5) var(--space-5);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper-soft);
}

.checkout-card .pay-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
}

.pay-panel-head span:first-child {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.pay-panel-head svg {
  color: var(--green);
}

.pay-brand {
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
}

.pay-brand:empty {
  display: none;
}

.pay-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.pay-field {
  display: grid;
  gap: var(--space-1);
}

.pay-field-number {
  grid-column: 1 / -1;
}

.pay-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.pay-box {
  position: relative;
  display: block;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.pay-box.is-focus,
.pay-box:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.pay-box.is-bad {
  border-color: var(--danger);
}

.pay-box iframe,
.checkout-card .pay-box input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 40px 0 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: none;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.pay-box iframe {
  padding: 0;
}

.pay-ok {
  position: absolute;
  top: 13px;
  right: 12px;
  display: none;
  color: var(--green);
}

.pay-box.is-ok .pay-ok {
  display: block;
}

.checkout-card .pay-secure {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 18px;
}

.pay-secure svg {
  flex: none;
  color: var(--green);
}

.pay-secure strong {
  color: var(--ink);
}

.pay-button {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.pay-button [hidden] {
  display: none;
}

.pay-button span {
  display: inline-flex;
}

.checkout-form .btn-wide {
  justify-content: center;
  text-align: center;
}

.checkout-items {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  font-size: 14px;
}

.checkout-item img,
.checkout-item-blank {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--paper-soft, #f9fafb);
  object-fit: contain;
}

.checkout-item > span {
  display: grid;
}

.checkout-item-total {
  font-weight: 600;
}

/* The thank-you page and an order in My account. */

.account-orders {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-orders li {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
}

.order-actions {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

/* Admin, Payments, "Preview": says plainly that nothing can be charged. */
.checkout-card .pay-preview {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

/* An order, laid out like an invoice: thank-you page, My account and the admin (2026-11-15). */
.order-view {
  display: grid;
  gap: var(--space-5);
  margin: var(--space-5) 0;
}

.order-invoice {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6, 32px);
  margin: 0;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.order-meta dt,
.order-view .order-party h2 {
  margin: 0 0 4px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.order-parties {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.order-party p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.order-lines {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-line {
  display: grid;
  gap: var(--space-3);
}

.order-line-head {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.order-line-head > div {
  flex: 1;
  min-width: 0;
}

.order-line-head img {
  border-radius: var(--radius-md);
  object-fit: contain;
}

.order-line-head h3 {
  margin: 0;
  font-size: 16px;
}

.order-line-head p {
  margin: 2px 0 0;
}

.order-line-total {
  font-size: 16px;
}

.order-imprint-details {
  color: var(--ink-muted);
  font-size: 13px;
}

/* An old order's artwork file: its small picture, when it is one, beside its name. */
.old-artwork {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.old-artwork img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.order-view .order-totals {
  justify-self: end;
  display: grid;
  gap: var(--space-2);
  min-width: 320px;
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.order-view .order-totals div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.order-view .order-totals dd {
  margin: 0;
  font-weight: 600;
}

.order-view .order-total {
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.order-view .order-total dd {
  color: var(--orange);
}

.order-page .order-next {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--ink);
}

.order-page .order-next h2 {
  margin: 0;
  font-size: 18px;
}

.order-page .order-next p {
  margin: 0;
  color: var(--ink-muted);
}

.order-artwork {
  margin: 0;
  padding-left: var(--space-4);
}

@media (max-width: 900px) {
  .order-parties {
    grid-template-columns: 1fr;
  }

  .order-view .order-totals {
    justify-self: stretch;
    min-width: 0;
  }
}

/* Admin, an order's production sheet: what prints where. */
.admin .production-sheet {
  display: grid;
  gap: var(--space-5);
}

.admin .production-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.admin .production-item h3 .muted {
  margin-left: var(--space-2);
  font-size: 13px;
  font-weight: 400;
}

.admin .production-pieces {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: 0 0 var(--space-3);
  color: var(--ink-muted);
}

.admin .production-locations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-3);
}

.admin .production-location {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
}

.admin .production-location h4 {
  margin: 0;
  font-size: 15px;
}

.admin .production-location h4 span {
  margin-left: var(--space-2);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
}

.admin .production-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.admin .production-logo {
  display: grid;
  gap: 4px;
  justify-items: center;
  max-width: 120px;
  font-size: 12px;
  text-align: center;
}

.admin .production-logo img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: repeating-conic-gradient(#f2f4f7 0% 25%, #ffffff 0% 50%) 50% / 16px 16px;
}

.admin .production-location dl {
  display: grid;
  gap: 4px;
  margin: 0;
}

.admin .production-location dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: var(--space-2);
}

.admin .production-location dt {
  color: var(--ink-faint);
}

.admin .production-location dd {
  margin: 0;
}

/* The order's title with Print and Share beside it. */
.order-title {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: flex-start;
}

.order-tools {
  display: flex;
  gap: var(--space-2);
  margin: 0;
}

.order-tools .btn {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
}

/* Printed, an order is the order alone: no menus, footer or buttons. */
@media print {
  .header,
  .menu,
  .footer,
  .site-footer,
  .order-tools,
  .order-actions,
  .skip {
    display: none !important;
  }

  .order-page {
    padding: 0;
  }

  .order-invoice,
  .order-view .order-totals,
  .order-page .order-next {
    break-inside: avoid;
  }
}

/* Our story (/our-story.html) */
.story-hero {
  background: var(--navy);
  color: var(--paper);
  padding: 72px 0 64px;
}

.story-hero h1 {
  color: var(--paper);
  font-size: 44px;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 0 var(--space-6);
}

.story-hero h1 span {
  display: block;
  color: var(--green-bright);
}

.story-intro {
  max-width: 760px;
  font-size: 18px;
  line-height: 30px;
  color: var(--line);
}

.story-intro p {
  margin: 0 0 var(--space-4);
}

.story-section {
  padding: 64px 0;
}

.story-section-soft {
  background: var(--paper-soft);
}

.story-section h2,
.story-cta h2 {
  font-size: 30px;
  line-height: 38px;
  margin: 0 0 var(--space-6);
}

.story-audiences,
.story-values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.story-audiences li,
.story-values li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.story-audiences li {
  border-top: 4px solid var(--green);
}

.story-audiences h3,
.story-values h3 {
  font-size: 18px;
  line-height: 26px;
  margin: 0 0 var(--space-2);
  color: var(--navy);
}

.story-audiences p,
.story-values p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 24px;
}

.story-value-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
}

.story-value-icon svg {
  width: 100%;
  height: 100%;
}

.story-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-4);
  position: relative;
}

/* The line the years sit on. */
.story-timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line-strong);
}

.story-timeline li {
  position: relative;
}

.story-year {
  position: relative;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  font-weight: 600;
  font-size: 15px;
}

.story-timeline li:last-child .story-year {
  background: var(--green);
}

.story-timeline p {
  margin: var(--space-3) 0 0;
  color: var(--ink-soft);
  line-height: 22px;
  font-size: 15px;
}

.story-cta {
  background: var(--green-deep);
  color: var(--paper);
  padding: 56px 0;
  text-align: center;
}

.story-cta h2 {
  color: var(--paper);
}

.story-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

@media (max-width: 1000px) {
  .story-audiences,
  .story-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-timeline {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding-left: var(--space-5);
  }

  .story-timeline::before {
    top: 0;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 2px;
    height: auto;
  }
}

@media (max-width: 640px) {
  .story-hero {
    padding: 48px 0 40px;
  }

  .story-hero h1 {
    font-size: 32px;
  }

  .story-section {
    padding: 48px 0;
  }

  .story-section h2,
  .story-cta h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .story-audiences,
  .story-values {
    grid-template-columns: 1fr;
  }
}

/* Admin zip upload progress */
.upload-progress {
  width: 100%;
  height: 12px;
  accent-color: var(--green);
}
