/* HI5 Collections header. Tokens come from the saved design: HI5 Ink and Signal Red. */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/urbanist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --hi5-bg: #FFFFFF;
  --hi5-surface: #F5F5F5;
  --hi5-ink: #000000;
  --hi5-ink-soft: #4D4E4E;
  --hi5-line: #E3E3E3;
  --hi5-accent: #EB2027;
  --hi5-font: 'Urbanist', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --hi5-r-sm: 4px;
  --hi5-r-pill: 999px;
  --hi5-h: 72px;
  --hi5-pad: clamp(16px, 2.4vw, 36px);
  --hi5-adminbar: 0px;
  --hi5-fg: var(--hi5-ink);
}
body.admin-bar { --hi5-adminbar: 32px; }
@media (max-width: 782px) { body.admin-bar { --hi5-adminbar: 46px; } }
@media (max-width: 900px) { :root { --hi5-h: 64px; } }

/* Page offset: the header is fixed, so inner pages start below it. The homepage hero sits underneath. */
body:not(.home) #page { padding-top: var(--hi5-h); }
html.hi5-lock, html.hi5-lock body { overflow: hidden; }

/* Optional: add the body class hi5-hero-dark when the homepage hero image is dark. */
body.hi5-hero-dark.home .hi5-header:not(.is-scrolled) { --hi5-fg: var(--hi5-bg); }
body.hi5-hero-dark.home .hi5-header:not(.is-scrolled) .hi5-logo img { filter: brightness(0) invert(1); }

.hi5-header, .hi5-header *, .hi5-drawer, .hi5-drawer *, .hi5-backdrop { box-sizing: border-box; }
.hi5-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Neutralise theme button styling inside our components */
.hi5-header button, .hi5-header button:hover, .hi5-header button:focus,
.hi5-drawer button, .hi5-drawer button:hover, .hi5-drawer button:focus {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-shadow: none;
  text-transform: none;
}
.hi5-header :is(a, button, input):focus-visible,
.hi5-drawer :is(a, button, input, summary):focus-visible {
  outline: 2px solid var(--hi5-accent);
  outline-offset: 3px;
}

/* ---------- Header bar ---------- */
.hi5-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--hi5-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  color: var(--hi5-fg);
  font-family: var(--hi5-font);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}


.hi5-header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 0 var(--hi5-pad);
}
.hi5-header__left { display: flex; align-items: center; justify-self: start; min-width: 0; }
.hi5-header__right { display: flex; align-items: center; justify-self: end; gap: clamp(14px, 1.8vw, 28px); min-width: 0; }

/* Menu button */
.hi5-header .hi5-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin: 0 0 0 -10px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--hi5-r-sm);
  color: var(--hi5-fg);
  cursor: pointer;
}
.hi5-header .hi5-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: left center;
  transition: transform .2s ease;
}
.hi5-header .hi5-burger span:nth-child(2) { transform: scaleX(.66); }
.hi5-header .hi5-burger:hover span:nth-child(2) { transform: scaleX(1); }

/* Logo (source image has generous padding, so it is cropped to the artwork) */
.hi5-header .hi5-logo {
  position: relative;
  display: block;
  width: 96px;
  aspect-ratio: 520 / 240;
  overflow: hidden;
  color: var(--hi5-fg);
  text-decoration: none;
}
.hi5-header .hi5-logo img {
  position: absolute;
  display: block;
  width: 192.31%;
  max-width: none;
  height: auto;
  left: -46.15%;
  top: -75%;
}
.hi5-header .hi5-logo__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 22px/1 var(--hi5-font);
}

/* Search pill */
.hi5-search { position: relative; display: flex; align-items: center; width: clamp(170px, 16vw, 250px); }
.hi5-header .hi5-search input[type='search'],
.hi5-drawer .hi5-search input[type='search'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 46px 0 20px;
  border: 1px solid var(--hi5-line);
  border-radius: var(--hi5-r-pill);
  background: var(--hi5-bg);
  color: var(--hi5-ink);
  font: 500 15px/1 var(--hi5-font);
  box-shadow: none;
}
.hi5-header .hi5-search input[type='search']:hover,
.hi5-drawer .hi5-search input[type='search']:hover { border-color: var(--hi5-ink-soft); }
.hi5-header .hi5-search input[type='search']::placeholder,
.hi5-drawer .hi5-search input[type='search']::placeholder { color: var(--hi5-ink-soft); opacity: 1; }
.hi5-header .hi5-search button,
.hi5-drawer .hi5-search button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--hi5-r-pill);
  color: var(--hi5-ink);
  cursor: pointer;
}
.hi5-header .hi5-search button:hover,
.hi5-drawer .hi5-search button:hover { background: var(--hi5-surface); }
.hi5-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Account and basket */
.hi5-header .hi5-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--hi5-fg);
  font: 700 14px/1 var(--hi5-font);
  text-decoration: none;
  white-space: nowrap;
}
.hi5-header .hi5-action:hover { color: var(--hi5-fg); }
.hi5-header .hi5-action:hover .hi5-action__label {
  text-decoration: underline;
  text-decoration-color: var(--hi5-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.hi5-header .hi5-action:hover svg { color: var(--hi5-accent); }
.hi5-action__icon { position: relative; display: inline-flex; }
.hi5-action__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hi5-header .hi5-cart__count {
  position: absolute;
  top: -7px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--hi5-r-pill);
  background: var(--hi5-ink);
  color: var(--hi5-bg);
  font: 800 11px/18px var(--hi5-font);
  text-align: center;
}

/* ---------- Menu drawer ---------- */
.hi5-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.hi5-backdrop.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

.hi5-drawer {
  position: fixed;
  top: var(--hi5-adminbar);
  left: 0;
  bottom: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  width: min(460px, 100vw);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--hi5-bg);
  color: var(--hi5-ink);
  font-family: var(--hi5-font);
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .3s;
}
.hi5-drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }

.hi5-drawer__top { flex: none; display: flex; align-items: center; min-height: var(--hi5-h); padding: 0 var(--hi5-pad); }
.hi5-drawer .hi5-close {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 0 -2px;
  padding: 10px 12px 10px 0;
  border: 0;
  color: var(--hi5-ink);
  font: 800 16px/1 var(--hi5-font);
  cursor: pointer;
}
.hi5-drawer .hi5-close:hover { color: var(--hi5-accent); }
.hi5-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.hi5-drawer .hi5-search--drawer { display: none; width: auto; margin: 16px var(--hi5-pad) 8px; }

.hi5-nav { flex: 1 0 auto; padding: 20px var(--hi5-pad) 8px; }
.hi5-nav ul { list-style: none; margin: 0; padding: 0; }
.hi5-nav li { position: relative; margin: 0; padding: 0; }
.hi5-nav a {
  display: block;
  padding: 12px 44px 12px 0;
  color: var(--hi5-ink);
  font: 800 24px/1.1 var(--hi5-font);
  letter-spacing: -.005em;
  text-decoration: none;
}
.hi5-nav a:hover, .hi5-nav .current-menu-item > a { color: var(--hi5-accent); }
.hi5-nav .menu-item.is-accent > a { color: var(--hi5-accent); }

.hi5-nav .hi5-sub-toggle {
  position: absolute;
  top: 3px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: var(--hi5-ink);
  cursor: pointer;
}
.hi5-nav .hi5-sub-toggle::before {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .2s ease;
}
.hi5-nav .menu-item.is-open > .hi5-sub-toggle::before { transform: rotate(45deg); }
.hi5-nav .hi5-sub-toggle:hover { color: var(--hi5-accent); }

.hi5-nav .sub-menu { display: none; padding: 0 0 12px 0; }
.hi5-nav .menu-item.is-open > .sub-menu { display: block; }
.hi5-nav .sub-menu a { padding: 9px 0 9px 16px; color: var(--hi5-ink-soft); font: 600 18px/1.2 var(--hi5-font); }
.hi5-nav .sub-menu a:hover {
  color: var(--hi5-ink);
  text-decoration: underline;
  text-decoration-color: var(--hi5-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.hi5-nav .sub-menu .sub-menu { padding-left: 14px; }

/* Help section */
.hi5-help { flex: none; margin: 8px var(--hi5-pad) 32px; border-top: 1px solid var(--hi5-line); }
.hi5-help summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  list-style: none;
  font: 800 17px/1.2 var(--hi5-font);
  cursor: pointer;
}
.hi5-help summary::-webkit-details-marker { display: none; }
.hi5-help summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.hi5-help[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.hi5-help__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--hi5-ink);
  color: var(--hi5-bg);
  font: 800 16px/1 var(--hi5-font);
}
.hi5-help ul { list-style: none; margin: 0; padding: 0 0 12px 42px; }
.hi5-help li { margin: 0; }
.hi5-help a { display: block; padding: 8px 0; color: var(--hi5-ink-soft); font: 600 16px/1.2 var(--hi5-font); text-decoration: none; }
.hi5-help a:hover {
  color: var(--hi5-ink);
  text-decoration: underline;
  text-decoration-color: var(--hi5-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hi5-action__label { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 900px) {
  .hi5-header__right .hi5-search { display: none; }
  .hi5-drawer .hi5-search--drawer { display: flex; }
}
@media (max-width: 720px) {
  .hi5-header .hi5-logo { width: 84px; }
  .hi5-header__right { gap: 12px; }
  .hi5-drawer { width: 100vw; }
  .hi5-drawer__top { justify-content: flex-end; min-height: 64px; background: var(--hi5-ink); }
  .hi5-drawer .hi5-close { margin: 0 -8px 0 0; padding: 10px 8px 10px 12px; color: var(--hi5-bg); }
  .hi5-drawer .hi5-close:hover { color: var(--hi5-bg); }
  .hi5-close__text { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hi5-drawer .hi5-search--drawer { margin: 16px var(--hi5-pad) 4px; }
  .hi5-nav { padding: 8px 0 0; }
  .hi5-nav__list > li { border-bottom: 1px solid var(--hi5-line); }
  .hi5-nav__list > li > a { padding: 18px calc(var(--hi5-pad) + 44px) 18px var(--hi5-pad); font: 700 19px/1.2 var(--hi5-font); }
  .hi5-nav .hi5-sub-toggle { top: 8px; right: calc(var(--hi5-pad) - 12px); }
  .hi5-nav .sub-menu { padding: 4px var(--hi5-pad) 10px; background: var(--hi5-surface); }
  .hi5-nav .sub-menu a { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hi5-header, .hi5-drawer, .hi5-backdrop, .hi5-header .hi5-burger span,
  .hi5-nav .hi5-sub-toggle::before, .hi5-help summary::after { transition: none !important; }
}

@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/urbanist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
