/* Northpass Supply: packs category page.
   White ground, black rules, safety orange used as a fill, never as
   small text on white. Square corners throughout. */

.np-page {
  --np-night: #111111;
  --np-night-2: #2b2b2b;
  --np-on-night: #ffffff;
  --np-orange-ink-text: #b53a0b;
  --np-green-text: #1d6b3a;
  --np-card-hover: #ffe7dc;
  --np-on-fill: #111111;
  --np-white: #ffffff;
  --np-ink: #111111;
  --np-ink-2: #2b2b2b;
  --np-paper: #f3f2ee;
  --np-line: #d6d4cc;
  --np-muted: #595959;
  --np-orange: #ff5a1f;
  --np-orange-ink: #b53a0b;
  --np-green: #1d6b3a;
  --np-error: #b3261e;
  --np-on-dark: #d4d4d4;
  --np-ring: var(--np-ink);

  --np-display: "Bahnschrift", "Arial Narrow", "Roboto Condensed", "Liberation Sans Narrow", "Helvetica Neue", Arial, sans-serif;
  --np-sans: "Helvetica Neue", Arial, system-ui, sans-serif;
  --np-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;

  margin: 0;
  background: var(--np-white);
  color: var(--np-ink);
  font-family: var(--np-sans);
  line-height: 1.55;
}

/* Dark mode, the default: the shop at night. Near-black stone,
   white type, signal orange kept as the one loud colour (PRD section 13.10). Only this template's own tokens
   change; screen only, so print always uses the light palette. */
@media screen {
  :root[data-theme="dark"] .np-page {
    --np-night: #050505;
    --np-night-2: #050505;
    --np-orange-ink-text: #ff9466;
    --np-green-text: #62d08f;
    --np-card-hover: #2a1a12;
    --np-white: #141413;
    --np-paper: #1c1c1a;
    --np-ink: #f1f0ec;
    --np-ink-2: #dddcd6;
    --np-line: #363633;
    --np-muted: #aaa9a3;
    color-scheme: dark;
  }
}

.np-theme-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.np-theme-btn:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.np-page [hidden] {
  display: none !important;
}

html:has(.np-page) {
  scroll-behavior: smooth;
}

html.np-locked {
  overflow: hidden;
}

.np-page :focus-visible {
  outline: 3px solid var(--np-ring);
  outline-offset: 3px;
}

/* Resets wrap the page class in :where() so they weigh the same as
   base.css's element rules (and win by order), while any class rule on
   a paragraph or heading can still set its own margins. */
:where(.np-page) h1,
:where(.np-page) h2,
:where(.np-page) h3 {
  margin-top: 0;
  color: inherit;
}

:where(.np-page) p,
:where(.np-page) li {
  margin: 0;
}

:where(.np-page) ul,
:where(.np-page) ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(.np-page) a {
  color: inherit;
}

:where(.np-page) svg {
  display: inline-block;
}

#products,
#sizes,
#repairs,
#delivery,
.np-results-title {
  scroll-margin-top: 96px;
}

.np-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.np-kicker {
  margin-bottom: 12px;
  font-family: var(--np-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.np-kicker span {
  color: var(--np-orange-ink-text);
}

.np-kicker--dark {
  color: var(--np-orange);
}

.np-section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.np-section-head h2,
.np-repairs h2 {
  margin-bottom: 16px;
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

.np-section-head p {
  color: var(--np-ink-2);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */

.np-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 2px solid var(--np-ink);
  border-radius: 0;
  background: var(--np-white);
  color: var(--np-ink);
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.np-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.np-btn:hover {
  background: var(--np-night);
  color: var(--np-on-night);
}

.np-btn--primary {
  background: var(--np-orange);
  color: var(--np-on-fill);
}

.np-btn--primary:hover {
  background: var(--np-night);
  color: var(--np-orange);
}

.np-btn--block {
  width: 100%;
}

.np-btn--sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 1rem;
}

.np-btn:disabled {
  border-style: dashed;
  background: var(--np-paper);
  color: var(--np-muted);
  cursor: not-allowed;
}

.np-link {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--np-ink);
  font-family: var(--np-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--np-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.np-link:hover {
  text-decoration-color: var(--np-ink);
}

.np-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--np-ink);
  background: var(--np-white);
  color: var(--np-ink);
  cursor: pointer;
}

.np-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.np-close:hover {
  background: var(--np-night);
  color: var(--np-on-night);
}

/* ---------- Announcement bar and header ---------- */

.np-announce-bar {
  padding: 8px 16px;
  background: var(--np-night);
  color: var(--np-on-night);
  font-family: var(--np-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.np-announce-bar span {
  margin: 0 8px;
  color: var(--np-orange);
}

.np-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--np-white);
  border-bottom: 3px solid var(--np-ink);
}

.np-header-in {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 32px;
}

.np-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--np-ink);
  text-decoration: none;
}

.np-logo:hover {
  color: var(--np-ink);
  text-decoration: none;
}

.np-logo-mark {
  width: 38px;
  height: 38px;
}

.np-logo-mark rect {
  fill: var(--np-ink);
}

.np-logo-mark path {
  fill: var(--np-orange);
}

.np-logo-text {
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
}

.np-logo-text span {
  display: block;
  font-family: var(--np-mono);
  font-size: 0.56rem;
  letter-spacing: 0.42em;
}

.np-nav ul {
  display: flex;
  gap: 22px;
}

.np-nav a {
  display: inline-block;
  padding: 8px 0;
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.np-nav a:hover {
  color: var(--np-ink);
  text-decoration: underline;
  text-decoration-color: var(--np-orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.np-menu-btn {
  display: none;
}

.np-search {
  display: flex;
  margin-left: auto;
}

.np-page .np-search-input {
  width: 220px;
  height: 44px;
  padding: 0 12px;
  border: 2px solid var(--np-ink);
  border-right: 0;
  border-radius: 0;
  background: var(--np-white);
  color: var(--np-ink);
  font-family: var(--np-sans);
  font-size: 0.95rem;
}

.np-page .np-search-input::placeholder {
  color: var(--np-muted);
}

.np-page .np-search-input:focus-visible {
  outline-offset: 0;
}

.np-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--np-ink);
  background: var(--np-night);
  color: var(--np-on-night);
  cursor: pointer;
}

.np-search-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.np-search-btn:hover {
  background: var(--np-orange);
  color: var(--np-on-fill);
}

.np-bag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 44px;
  padding: 0 12px;
  border: 2px solid var(--np-ink);
  background: var(--np-white);
  color: var(--np-ink);
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.np-bag-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.np-bag-btn:hover {
  background: var(--np-paper);
}

.np-bag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 2px solid var(--np-ink);
  border-radius: var(--radius-full);
  background: var(--np-white);
  font-family: var(--np-mono);
  font-size: 0.78rem;
  font-stretch: normal;
}

.np-bag-btn.has-items .np-bag-count {
  background: var(--np-orange);
  color: var(--np-on-fill);
}

.np-bag-btn.is-bumped .np-bag-count {
  animation: np-bump 360ms ease-out;
}

@keyframes np-bump {
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ---------- Hero ---------- */

.np-hero {
  border-bottom: 3px solid var(--np-ink);
}

.np-hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 32px 40px;
}

.np-hero-title {
  margin: 0 0 20px;
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: clamp(5rem, 13vw, 11.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.82;
  text-transform: uppercase;
}

.np-lede {
  max-width: 34em;
  margin-bottom: 28px;
  color: var(--np-ink-2);
  font-size: 1.12rem;
}

.np-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.np-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 6px 0 14px;
  border: 2px solid var(--np-ink);
  background: var(--np-white);
  color: var(--np-ink);
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.np-quick-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: var(--np-paper);
  font-family: var(--np-mono);
  font-size: 0.8rem;
  font-stretch: normal;
}

.np-quick-btn:hover {
  background: var(--np-paper);
}

.np-quick-btn[aria-pressed="true"] {
  background: var(--np-night);
  color: var(--np-on-night);
}

.np-quick-btn[aria-pressed="true"] span {
  background: var(--np-orange);
  color: var(--np-on-fill);
}

.np-hero-art {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 3px solid var(--np-ink);
  background: var(--np-paper);
}

.np-hero-sun {
  position: absolute;
  top: 12%;
  right: 14%;
  width: 22%;
  aspect-ratio: 1;
  border: 3px solid var(--np-ink);
  border-radius: 50%;
  background: var(--np-orange);
}

.np-hero-contours {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(ellipse at 30% 110%, transparent 0 22px, rgba(17, 17, 17, 0.1) 22px 24px);
}

.np-hero-ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.np-hero-ridge--back {
  height: 62%;
  background: #c8c5bb;
  clip-path: polygon(0 58%, 14% 30%, 24% 44%, 40% 8%, 55% 38%, 66% 26%, 82% 52%, 100% 30%, 100% 100%, 0 100%);
}

.np-hero-ridge--mid {
  height: 44%;
  background: #6f6c63;
  clip-path: polygon(0 40%, 18% 62%, 34% 22%, 48% 48%, 62% 30%, 78% 60%, 90% 42%, 100% 56%, 100% 100%, 0 100%);
}

.np-hero-ridge--front {
  height: 24%;
  background: var(--np-night);
  clip-path: polygon(0 30%, 22% 0, 44% 26%, 70% 8%, 100% 36%, 100% 100%, 0 100%);
}

.np-hero-art .np-hero-pack {
  position: absolute;
  left: 30%;
  bottom: 7%;
  width: 38%;
  background: none;
}

.np-hero-art .np-hero-pack::after {
  display: none;
}

.np-hero-tag {
  position: absolute;
  top: 14%;
  left: 6%;
  padding: 6px 10px;
  border: 2px solid var(--np-ink);
  background: var(--np-white);
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
}

.np-hero-tag b {
  margin-left: 6px;
  padding: 1px 6px;
  background: var(--np-night);
  color: var(--np-on-night);
  font-family: var(--np-mono);
  font-size: 0.7rem;
}

.np-hero-alt {
  position: absolute;
  right: 4%;
  bottom: 4%;
  color: var(--np-on-night);
  font-family: var(--np-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.np-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.np-facts div {
  padding: 18px 20px 20px 0;
  border-top: 2px solid var(--np-ink);
}

.np-facts div + div {
  padding-left: 20px;
  border-left: 2px solid var(--np-ink);
}

.np-facts dt {
  font-family: var(--np-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--np-muted);
  text-transform: uppercase;
}

.np-facts dd {
  margin: 4px 0 0;
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Drawn packs ---------- */

.np-c-ember { --np-pc: #ff5a1f; }
.np-c-black { --np-pc: #2a2a28; }
.np-c-olive { --np-pc: #5b6340; }
.np-c-slate { --np-pc: #4a5a68; }
.np-c-sand { --np-pc: #cdb893; }

.np-art {
  --np-pc: #ff5a1f;
  --np-bw: 3px;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background:
    linear-gradient(var(--np-line) 1px, transparent 1px) 0 0 / 100% 25%,
    var(--np-paper);
}

.np-art.np-c-ember { --np-pc: #ff5a1f; }
.np-art.np-c-black { --np-pc: #2a2a28; }
.np-art.np-c-olive { --np-pc: #5b6340; }
.np-art.np-c-slate { --np-pc: #4a5a68; }
.np-art.np-c-sand { --np-pc: #cdb893; }

.np-art::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 6%;
  height: 4%;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.16);
}

.np-art span {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  border: var(--np-bw) solid var(--np-ink);
  background: var(--np-pc);
}

.np-art-body {
  left: 29%;
  right: 29%;
  top: 25%;
  bottom: 11%;
  border-radius: 22% 22% 12% 12% / 14% 14% 8% 8%;
}

.np-art-lid {
  left: 31%;
  right: 31%;
  top: 16%;
  height: 17%;
  border-radius: 45% 45% 12% 12% / 60% 60% 14% 14%;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.2);
}

.np-art-lid::before {
  content: "";
  position: absolute;
  left: 42%;
  width: 16%;
  top: -48%;
  height: 48%;
  box-sizing: border-box;
  border: var(--np-bw) solid var(--np-ink);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.np-art-pocket {
  left: 36%;
  right: 36%;
  top: 56%;
  bottom: 17%;
  border-radius: 10% 10% 18% 18%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18));
}

.np-art .np-art-strap {
  left: 25%;
  right: 25%;
  top: 43%;
  height: 7%;
  border-radius: 2px;
  background: var(--np-night);
}

.np-art-strap::before,
.np-art-strap::after {
  content: "";
  position: absolute;
  top: -40%;
  width: 12%;
  height: 180%;
  box-sizing: border-box;
  border: 2px solid var(--np-ink);
  background: #ffd9c9;
}

.np-art-strap::before {
  left: 8%;
}

.np-art-strap::after {
  right: 8%;
}

.np-art--night .np-art-body {
  top: 21%;
  bottom: 9%;
  left: 28%;
  right: 28%;
}

.np-art--night .np-art-lid {
  top: 12%;
}

.np-art--exp .np-art-body {
  top: 17%;
  bottom: 8%;
  left: 30%;
  right: 30%;
}

.np-art--exp .np-art-lid {
  top: 8%;
  height: 16%;
}

.np-art--exp .np-art-strap {
  top: 36%;
}

.np-art--exp::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 24%;
  right: 24%;
  bottom: 5%;
  height: 11%;
  box-sizing: border-box;
  border: var(--np-bw) solid var(--np-ink);
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #e6dfcc 0 14%, #cfc6ae 14% 16%);
}

.np-art--vest .np-art-body {
  left: 33%;
  right: 33%;
  top: 18%;
  bottom: 16%;
  border-radius: 34% 34% 18% 18% / 20% 20% 10% 10%;
}

.np-art--vest .np-art-lid {
  left: 36%;
  right: auto;
  width: 10%;
  top: 30%;
  height: 22%;
  border-radius: 30% 30% 14% 14%;
  background: #dfeaf0;
  box-shadow: none;
}

.np-art--vest .np-art-lid::before {
  left: 20%;
  width: 60%;
  top: -24%;
  height: 24%;
  border: 0;
  border-radius: 2px;
  background: var(--np-night);
}

.np-art--vest .np-art-lid::after {
  content: "";
  position: absolute;
  top: calc(var(--np-bw) * -1);
  left: 170%;
  width: 100%;
  height: 100%;
  box-sizing: content-box;
  border: var(--np-bw) solid var(--np-ink);
  border-radius: 30% 30% 14% 14%;
  background: #dfeaf0;
}

.np-art--vest .np-art-pocket {
  left: 38%;
  right: 38%;
  top: 60%;
  bottom: 22%;
}

.np-art--vest .np-art-strap {
  left: 31%;
  right: 31%;
  top: 25%;
  height: 5%;
}

/* ---------- Shop layout ---------- */

.np-shop-in {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 32px 88px;
}

.np-filters {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding: 0 6px 16px 4px;
}

.np-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}

.np-filters-title {
  margin: 0;
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.np-filters-close,
.np-filters-done {
  display: none;
}

.np-group {
  margin: 0;
  padding: 0 0 18px;
  border: 0;
  border-top: 2px solid var(--np-ink);
}

.np-group legend {
  float: left;
  width: 100%;
  padding: 14px 0 8px;
  font-family: var(--np-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.np-opts {
  clear: both;
  display: grid;
  gap: 2px;
}

.np-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-size: 0.95rem;
  cursor: pointer;
}

.np-page .np-opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.np-opt-box {
  flex: none;
  position: relative;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid var(--np-ink);
  background: var(--np-white);
}

.np-opt input:checked + .np-opt-box {
  background: var(--np-night);
}

.np-opt input:checked + .np-opt-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid var(--np-white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.np-opt input:focus-visible + span {
  outline: 3px solid var(--np-ring);
  outline-offset: 2px;
}

.np-opt:hover .np-opt-label {
  text-decoration: underline;
  text-decoration-color: var(--np-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.np-fc {
  margin-left: auto;
  color: var(--np-muted);
  font-family: var(--np-mono);
  font-size: 0.78rem;
}

.np-opt.is-empty .np-opt-label {
  color: var(--np-muted);
}

.np-opt--colour .np-dot {
  width: 20px;
  height: 20px;
}

.np-opt--colour input:checked + .np-dot {
  box-shadow: 0 0 0 2px var(--np-white), 0 0 0 4px var(--np-ink);
}

.np-switch {
  flex: none;
  position: relative;
  width: 40px;
  height: 22px;
  box-sizing: border-box;
  border: 2px solid var(--np-ink);
  border-radius: var(--radius-full);
  background: var(--np-white);
  transition: background-color var(--transition-fast);
}

.np-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--np-night);
  transition: transform var(--transition-fast);
}

.np-opt input:checked + .np-switch {
  background: var(--np-orange);
}

.np-opt input:checked + .np-switch::after {
  transform: translateX(18px);
}

/* ---------- Toolbar, chips ---------- */

.np-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--np-ink);
}

.np-results-title {
  margin: 0;
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.np-results-title:focus {
  outline: none;
}

.np-count {
  margin-top: 6px;
  color: var(--np-muted);
  font-family: var(--np-mono);
  font-size: 0.85rem;
}

.np-toolbar-tools {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.np-filter-toggle {
  display: none;
}

.np-filter-n {
  font-family: var(--np-mono);
  font-size: 0.85rem;
}

.np-sort label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--np-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.np-page .np-select {
  height: 46px;
  padding: 0 40px 0 12px;
  border: 2px solid var(--np-ink);
  border-radius: 0;
  background:
    linear-gradient(45deg, transparent 50%, var(--np-ink) 50%) no-repeat right 18px center / 7px 7px,
    linear-gradient(135deg, var(--np-ink) 50%, transparent 50%) no-repeat right 11px center / 7px 7px,
    var(--np-white);
  color: var(--np-ink);
  font-family: var(--np-sans);
  font-size: 0.95rem;
  appearance: none;
  cursor: pointer;
}

.np-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 16px 0 0;
}

.np-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.np-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px 0 12px;
  border: 2px solid var(--np-ink);
  background: var(--np-paper);
  color: var(--np-ink);
  font-family: var(--np-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.np-chip svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}

.np-chip:hover {
  background: var(--np-night);
  color: var(--np-on-night);
}

/* ---------- Product cards ---------- */

.np-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 40px 24px;
  margin-top: 28px;
}

.np-card-in {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.np-card-media {
  position: relative;
  border: 2px solid var(--np-ink);
}

.np-card-in:hover .np-card-media .np-art {
  background-color: var(--np-card-hover);
}

.np-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border: 2px solid var(--np-ink);
  background: var(--np-white);
  font-family: var(--np-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.np-badge--new {
  background: var(--np-night);
  color: var(--np-on-night);
}

.np-badge--sale {
  background: var(--np-orange);
  color: var(--np-on-fill);
}

.np-badge--low {
  color: var(--np-orange-ink-text);
}

.np-badge--out {
  border-style: dashed;
  background: var(--np-paper);
}

.np-wish {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid var(--np-ink);
  background: var(--np-white);
  color: var(--np-ink);
  cursor: pointer;
}

.np-wish svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.np-wish:hover {
  background: var(--np-paper);
}

.np-wish[aria-pressed="true"] svg {
  fill: var(--np-orange);
}

.np-kind {
  margin-top: 14px;
  color: var(--np-muted);
  font-family: var(--np-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.np-card-title {
  margin: 2px 0 2px;
  font-size: 1rem;
  line-height: 1;
}

.np-qv-open {
  padding: 0;
  border: 0;
  background: none;
  color: var(--np-ink);
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.np-qv-open:hover {
  text-decoration: underline;
  text-decoration-color: var(--np-orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.np-spec {
  font-family: var(--np-mono);
  font-size: 0.8rem;
  color: var(--np-ink-2);
}

.np-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 700;
}

.np-star {
  width: 16px;
  height: 16px;
  fill: var(--np-orange);
  stroke: var(--np-ink);
  stroke-width: 1.2;
}

.np-reviews {
  color: var(--np-muted);
  font-weight: 400;
}

.np-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}

.np-now {
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.np-now--sale {
  color: var(--np-orange-ink-text);
}

.np-was {
  color: var(--np-muted);
  font-size: 0.9rem;
}

.np-swatches {
  margin: 12px 0 14px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.np-swatch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.np-swatch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.np-page .np-swatch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.np-dot {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 2px solid var(--np-ink);
  border-radius: 50%;
  background: var(--np-pc);
}

.np-swatch--lg .np-dot {
  width: 34px;
  height: 34px;
}

.np-swatch input:checked + .np-dot {
  box-shadow: 0 0 0 2px var(--np-white), 0 0 0 4px var(--np-ink);
}

.np-swatch input:focus-visible + .np-dot {
  outline: 3px solid var(--np-orange-ink);
  outline-offset: 5px;
}

.np-swatch:hover .np-dot {
  transform: scale(1.1);
}

.np-colour-name {
  margin-left: 4px;
  color: var(--np-ink-2);
  font-family: var(--np-mono);
  font-size: 0.78rem;
}

.np-btn--add {
  margin-top: auto;
  width: 100%;
}

.np-btn--add.is-added,
.np-btn--add.is-added:hover {
  border-color: var(--np-green);
  background: var(--np-green);
  color: var(--np-on-night);
}

/* ---------- Empty state, show more ---------- */

.np-empty {
  margin-top: 28px;
  padding: 56px 24px;
  border: 2px dashed var(--np-ink);
  text-align: center;
}

.np-empty-art {
  position: relative;
  width: 96px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--np-night);
  clip-path: polygon(0 100%, 34% 20%, 50% 52%, 66% 0, 100% 100%);
}

.np-empty-art span {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--np-orange);
}

.np-empty h3 {
  margin-bottom: 8px;
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 2rem;
  text-transform: uppercase;
}

.np-empty p {
  max-width: 30em;
  margin: 0 auto 20px;
  color: var(--np-ink-2);
}

.np-more-row {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 56px;
}

.np-more-note {
  font-family: var(--np-mono);
  font-size: 0.82rem;
}

.np-more-bar {
  width: 240px;
  max-width: 100%;
  height: 6px;
  border: 1px solid var(--np-ink);
  background: var(--np-paper);
}

.np-more-bar span {
  display: block;
  height: 100%;
  background: var(--np-night);
}

/* ---------- Size guide ---------- */

.np-sizes {
  padding: 88px 0;
  border-top: 3px solid var(--np-ink);
  background: var(--np-paper);
}

.np-size-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.np-size {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 2px solid var(--np-ink);
  background: var(--np-white);
}

.np-size-scale {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
  height: 132px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--np-ink);
  background: repeating-linear-gradient(0deg, var(--np-line) 0 1px, transparent 1px 33px);
}

.np-size-fill {
  width: 34%;
  box-sizing: border-box;
  border: 2px solid var(--np-ink);
  border-bottom: 0;
  background: repeating-linear-gradient(135deg, var(--np-orange) 0 8px, #ff7a4a 8px 16px);
}

.np-size-fill--s { height: 34%; }
.np-size-fill--m { height: 64%; }
.np-size-fill--l { height: 100%; }

.np-size-range {
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.np-size h3 {
  margin: 6px 0 8px;
  font-size: 1.1rem;
}

.np-size p:not(.np-size-range) {
  margin-bottom: 20px;
  color: var(--np-ink-2);
}

.np-size .np-btn {
  margin-top: auto;
}

/* ---------- Repairs ---------- */

.np-repairs {
  --np-ring: var(--np-orange);
  padding: 96px 0;
  background: var(--np-night);
  color: var(--np-on-night);
}

.np-repairs-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px 64px;
}

.np-repairs-copy p:not(.np-kicker) {
  max-width: 32em;
  color: var(--np-on-dark);
  font-size: 1.08rem;
}

.np-steps {
  display: grid;
  gap: 0;
  counter-reset: none;
}

.np-steps li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #3d3d3d;
}

.np-steps li:last-child {
  border-bottom: 1px solid #3d3d3d;
}

.np-step-n {
  grid-row: span 2;
  color: var(--np-orange);
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.9;
}

.np-steps h3 {
  margin: 0 0 4px;
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.np-steps p {
  color: var(--np-on-dark);
}

.np-repair-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.np-repair-stats div {
  padding-top: 16px;
  border-top: 3px solid var(--np-orange);
}

.np-repair-stats dt {
  color: var(--np-on-dark);
  font-family: var(--np-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.np-repair-stats dd {
  margin: 6px 0 0;
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

/* ---------- Delivery ---------- */

.np-delivery {
  padding: 88px 0;
}

.np-delivery-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 48px;
}

.np-faq details {
  border-top: 2px solid var(--np-ink);
}

.np-faq details:last-child {
  border-bottom: 2px solid var(--np-ink);
}

.np-faq summary {
  position: relative;
  padding: 18px 48px 18px 0;
  font-size: 1.1rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.np-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border: 2px solid var(--np-ink);
  font-family: var(--np-mono);
  font-size: 1.2rem;
  line-height: 28px;
  text-align: center;
}

.np-faq details[open] summary::after {
  content: "\2212";
  background: var(--np-orange);
}

.np-faq summary:hover {
  text-decoration: underline;
  text-decoration-color: var(--np-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.np-faq details p {
  max-width: 40em;
  padding: 0 0 20px;
  color: var(--np-ink-2);
}

.np-faq a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--np-orange);
  text-decoration-thickness: 2px;
}

/* ---------- Footer ---------- */

.np-footer {
  --np-ring: var(--np-orange);
  padding: 72px 0 0;
  background: var(--np-night);
  color: var(--np-on-night);
}

.np-footer-in {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
  gap: 48px;
  padding-bottom: 56px;
}

.np-footer-title {
  margin-bottom: 12px;
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.np-footer p {
  color: var(--np-on-dark);
}

.np-news {
  margin-top: 20px;
}

.np-news-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--np-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.np-news-row {
  display: flex;
  max-width: 480px;
}

.np-page .np-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 2px solid var(--np-muted);
  border-radius: 0;
  background: var(--np-white);
  color: var(--np-ink);
  font-family: var(--np-sans);
  font-size: 1rem;
}

.np-page .np-input:focus-visible {
  outline-offset: 2px;
}

.np-page .np-input[aria-invalid="true"] {
  border-color: #ff8a80;
  box-shadow: inset 0 0 0 2px #ff8a80;
}

.np-news .np-btn {
  flex: none;
  border-color: var(--np-white);
}

.np-footer .np-error {
  margin-top: 8px;
  color: #ff9d94;
  font-size: 0.9rem;
  font-weight: 700;
}

.np-news-status {
  max-width: 480px;
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 4px solid var(--np-orange);
  background: var(--np-night-2);
  font-size: 0.9rem;
}

.np-footer .np-news-status {
  color: var(--np-on-night);
}

.np-news-status:empty,
.np-bag-status:empty {
  display: none;
}

.np-footer-nav ul {
  display: grid;
  gap: 6px;
}

.np-footer-nav a {
  text-decoration: none;
}

.np-footer-nav a:hover {
  color: var(--np-on-night);
  text-decoration: underline;
  text-decoration-color: var(--np-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.np-small {
  padding: 20px 32px 28px;
  border-top: 1px solid #3d3d3d;
  font-family: var(--np-mono);
  font-size: 0.76rem;
  text-align: center;
}

/* ---------- Toast ---------- */

.np-toast {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 400px;
  padding: 12px 10px 12px 16px;
  border: 2px solid var(--np-ink);
  border-left: 8px solid var(--np-orange);
  background: var(--np-night);
  color: var(--np-on-night);
  box-shadow: 6px 6px 0 var(--np-orange);
  animation: np-toast-in 220ms ease-out;
  --np-ring: var(--np-orange);
}

@keyframes np-toast-in {
  from { transform: translateY(16px); }
  to { transform: none; }
}

.np-toast-text {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 700;
}

.np-toast-view {
  flex: none;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--np-orange);
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
  cursor: pointer;
}

.np-toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--np-on-night);
  cursor: pointer;
}

.np-toast-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

/* ---------- Dialogs ---------- */

.np-qv,
.np-bag {
  padding: 0;
  border: 0;
  color: var(--np-ink);
  background: var(--np-white);
}

.np-qv::backdrop,
.np-bag::backdrop {
  background: rgba(17, 17, 17, 0.62);
}

.np-qv {
  width: min(940px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  border: 3px solid var(--np-ink);
  box-shadow: 10px 10px 0 var(--np-orange);
}

.np-qv-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.np-qv-media {
  position: relative;
  border-right: 3px solid var(--np-ink);
  background: var(--np-paper);
}

.np-qv-media .np-art {
  --np-bw: 4px;
  width: 100%;
}

.np-qv-body {
  position: relative;
  padding: 32px 32px 28px;
  overflow-y: auto;
}

.np-qv-body .np-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.np-qv-body .np-kind {
  margin-top: 0;
  padding-right: 56px;
}

.np-qv-title {
  margin: 4px 56px 6px 0;
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

.np-qv-price .np-now {
  font-size: 2rem;
}

.np-qv-desc {
  margin: 16px 0 18px;
}

.np-qv-desc p {
  margin-bottom: 14px;
  color: var(--np-ink-2);
}

.np-qv-desc dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin: 0;
}

.np-qv-desc dl div {
  padding: 8px 0;
  border-top: 1px solid var(--np-line);
}

.np-qv-desc dt {
  color: var(--np-muted);
  font-family: var(--np-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.np-qv-desc dd {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.np-qv-colours {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.np-qv-colours legend {
  margin-bottom: 10px;
  padding: 0;
  font-family: var(--np-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.np-qv-colours .np-swatch-row {
  gap: 12px;
}

.np-qv-note {
  margin-top: 12px;
  color: var(--np-muted);
  font-size: 0.85rem;
  text-align: center;
}

.np-bag {
  width: min(440px, 100vw);
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  border-left: 3px solid var(--np-ink);
  animation: np-drawer-in 260ms ease-out;
}

@keyframes np-drawer-in {
  from { transform: translateX(100%); }
  to { transform: none; }
}

.np-bag-in {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.np-bag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 3px solid var(--np-ink);
}

.np-bag-title {
  margin: 0;
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.np-bag-title:focus {
  outline: none;
}

.np-bag-demo {
  padding: 8px 24px;
  background: var(--np-paper);
  color: var(--np-ink-2);
  font-family: var(--np-mono);
  font-size: 0.76rem;
}

.np-ship {
  padding: 16px 24px 14px;
  border-bottom: 1px solid var(--np-line);
}

.np-ship-text {
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.np-ship-text.is-free {
  color: var(--np-green-text);
}

.np-ship-bar {
  height: 8px;
  border: 1px solid var(--np-ink);
  background: var(--np-paper);
}

.np-ship-bar span {
  display: block;
  height: 100%;
  background: var(--np-orange);
  transition: width var(--transition-base);
}

.np-ship-text.is-free + .np-ship-bar span {
  background: var(--np-green);
}

.np-lines {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
}

.np-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--np-line);
}

.np-line .np-art {
  --np-bw: 2px;
  border: 2px solid var(--np-ink);
}

.np-line-name {
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.np-line-meta {
  margin: 4px 0 10px;
  color: var(--np-muted);
  font-family: var(--np-mono);
  font-size: 0.76rem;
}

.np-qty {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--np-ink);
  vertical-align: middle;
}

.np-qty-btn {
  width: 36px;
  height: 34px;
  padding: 0;
  border: 0;
  background: var(--np-white);
  color: var(--np-ink);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.np-qty-btn:hover:not(:disabled) {
  background: var(--np-paper);
}

.np-qty-btn:disabled {
  color: #a3a3a3;
  cursor: not-allowed;
}

.np-qty-n {
  min-width: 30px;
  font-family: var(--np-mono);
  font-weight: 700;
  text-align: center;
}

.np-line-remove {
  margin-left: 14px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--np-ink);
  font-family: var(--np-mono);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  vertical-align: middle;
}

.np-line-remove:hover {
  text-decoration-color: var(--np-orange);
  text-decoration-thickness: 2px;
}

.np-line-total {
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 1.3rem;
  font-weight: 700;
}

.np-bag-empty {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 48px 24px;
  text-align: center;
}

.np-bag-empty .np-art {
  width: 140px;
  border: 2px solid var(--np-ink);
}

.np-bag-empty p {
  font-weight: 700;
}

.np-bag-foot {
  padding: 18px 24px 24px;
  border-top: 3px solid var(--np-ink);
}

.np-totals {
  margin: 0 0 16px;
}

.np-totals div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.np-totals dt {
  color: var(--np-ink-2);
}

.np-totals dd {
  margin: 0;
  font-weight: 700;
}

.np-totals .np-totals-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--np-line);
  font-family: var(--np-display);
  font-stretch: 75%;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.np-totals .np-totals-total dt {
  color: var(--np-ink);
  font-weight: 700;
}

.np-bag-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 4px solid var(--np-orange);
  background: var(--np-paper);
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .np-header-in {
    gap: 20px;
  }

  .np-nav ul {
    gap: 16px;
  }

  .np-page .np-search-input {
    width: 160px;
  }
}

@media (max-width: 1023px) {
  .np-header {
    position: static;
  }

  #products,
  #sizes,
  #repairs,
  #delivery,
  .np-results-title {
    scroll-margin-top: 16px;
  }

  .np-header-in {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 24px;
  }

  .np-menu-btn {
    display: inline-flex;
    align-items: center;
    order: 3;
    height: 44px;
    padding: 0 14px;
    border: 2px solid var(--np-ink);
    background: var(--np-white);
    color: var(--np-ink);
    font-family: var(--np-display);
    font-stretch: 75%;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
  }

  .np-menu-btn[aria-expanded="true"] {
    background: var(--np-night);
    color: var(--np-on-night);
  }

  .np-search {
    order: 2;
  }

  .np-bag-btn {
    order: 4;
  }

  .np-nav {
    display: none;
    order: 10;
    width: 100%;
  }

  .np-nav.is-open {
    display: block;
  }

  .np-nav ul {
    flex-direction: column;
    gap: 0;
    border-top: 2px solid var(--np-ink);
  }

  .np-nav li + li {
    border-top: 1px solid var(--np-line);
  }

  .np-nav a {
    display: block;
    padding: 12px 0;
    font-size: 1.3rem;
  }

  .np-hero-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .np-hero-art {
    aspect-ratio: 16 / 9;
  }

  .np-hero-art .np-hero-pack {
    left: 38%;
    width: 24%;
  }

  .np-shop-in {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 32px;
  }

  .np-filters {
    display: none;
  }

  .np-filters.is-open {
    display: block;
    position: fixed;
    z-index: 60;
    inset: 0;
    max-height: none;
    padding: 20px 20px 0;
    background: var(--np-white);
    overflow-y: auto;
  }

  .np-filters.is-open .np-filters-head {
    padding-bottom: 16px;
  }

  .np-filters.is-open .np-filters-close {
    display: inline-flex;
    margin-left: auto;
  }

  .np-filters.is-open .np-filters-done {
    display: flex;
    position: sticky;
    bottom: 0;
    margin: 8px -20px 0;
    width: calc(100% + 40px);
    min-height: 56px;
    border-width: 3px 0 0;
  }

  .np-filter-toggle {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .np-size-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .np-size {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 24px;
  }

  .np-size-scale {
    grid-row: span 4;
    height: 100%;
    min-height: 150px;
    margin-bottom: 0;
  }

  .np-size .np-btn {
    justify-self: start;
  }

  .np-repairs-in,
  .np-delivery-in,
  .np-footer-in {
    grid-template-columns: minmax(0, 1fr);
  }

  .np-footer-in {
    gap: 36px;
  }

  .np-qv-in {
    grid-template-columns: minmax(0, 1fr);
  }

  .np-qv-media {
    border-right: 0;
    border-bottom: 3px solid var(--np-ink);
  }

  .np-qv-media .np-art {
    width: min(100%, 300px);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .np-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .np-facts div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .np-toolbar-tools {
    width: 100%;
  }

  .np-sort {
    flex: 1;
  }

  .np-page .np-select {
    width: 100%;
  }

  .np-qv {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .np-qv-body {
    padding: 24px 20px;
  }

  .np-qv-body .np-close {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 2;
  }
}

@media (max-width: 560px) {
  .np-wrap,
  .np-facts {
    padding: 0 16px;
  }

  .np-header-in {
    padding: 10px 16px;
  }

  .np-search {
    order: 9;
    flex-basis: 100%;
  }

  .np-page .np-search-input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .np-menu-btn {
    margin-left: auto;
  }

  .np-hero-in {
    padding: 28px 16px 28px;
  }

  .np-hero-art {
    aspect-ratio: 4 / 3;
  }

  .np-hero-art .np-hero-pack {
    left: 33%;
    width: 34%;
  }

  .np-shop-in {
    padding: 28px 16px 64px;
  }

  .np-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 12px;
  }

  .np-qv-open {
    font-size: 1.3rem;
  }

  .np-wish {
    top: 6px;
    right: 6px;
    width: 36px;
    height: 36px;
  }

  .np-badge {
    top: 6px;
    left: 6px;
    padding: 2px 5px;
    font-size: 0.66rem;
  }

  .np-btn--add {
    padding: 0 8px;
    font-size: 1rem;
  }

  .np-dot {
    width: 24px;
    height: 24px;
  }

  .np-colour-name {
    flex-basis: 100%;
    margin-left: 0;
  }

  .np-size {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 16px;
    padding: 18px;
  }

  .np-size-range {
    font-size: 1.8rem;
  }

  .np-sizes,
  .np-delivery {
    padding: 64px 0;
  }

  .np-repairs {
    padding: 72px 0;
  }

  .np-repair-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .np-steps li {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .np-step-n {
    font-size: 2.4rem;
  }

  .np-news-row {
    flex-direction: column;
    gap: 10px;
  }

  .np-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .np-line {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .np-line-total {
    grid-column: 2;
  }

  .np-small {
    padding: 20px 16px 28px;
  }
}

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

@media (max-width: 380px) {
  .np-header-in {
    gap: 8px;
  }

  .np-logo {
    gap: 8px;
  }

  .np-logo-mark {
    width: 32px;
    height: 32px;
  }

  .np-logo-text {
    font-size: 1.15rem;
  }

  .np-menu-btn,
  .np-bag-btn {
    padding: 0 10px;
  }

  /* Keep "Bag" in the accessible name; only hide it visually. */
  .np-bag-btn > span:not(.np-bag-count):not(.visually-hidden) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.np-page) {
    scroll-behavior: auto;
  }

  .np-page *,
  .np-page *::before,
  .np-page *::after,
  .np-page::backdrop {
    animation: none !important;
    transition: none !important;
  }
}
