/* ==========================================================================
   Intrim Mouldings - design system
   --------------------------------------------------------------------------
   Every value in :root was measured off the live site with tools/measure.py,
   not eyeballed. The live theme is Bootstrap 5 with a custom layer on top; this
   sheet keeps Bootstrap's breakpoints (576 / 768 / 992 / 1200 / 1400) so the
   two sites break at the same widths, but owns its own layout rather than
   carrying 200KB of framework.

   Order: tokens, reset, layout, typography, controls, chrome, components,
   page types, portal, utilities, print.
   ========================================================================== */

:root {
  /* Brand ---------------------------------------------------------------- */
  --plum: #5e1534;          /* deepest: hero panels, h2 */
  --primary: #9a3257;       /* buttons, promo bar, purple bands */
  --primary-alt: #933258;   /* h3, tinted surfaces */
  --primary-dark: #7c2846;  /* hover */
  --pink: #d6638b;
  --tint: #f4eaee;

  /* Neutrals ------------------------------------------------------------- */
  --ink: #414042;           /* body copy, footer, utility bar */
  --grey: #939598;
  --grey-line: #c2c2c2;
  --grey-soft: #e6e7e8;
  --grey-bg: #f7f7f9;
  --white: #fff;

  /* Type ----------------------------------------------------------------- */
  --font-display: 'Pridi', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Open Sans', system-ui, -apple-system, sans-serif;

  --fs-h1: 50px;
  --fs-h2: 35px;
  --fs-h3: 20px;
  --fs-body: 16px;
  --lh-body: 1.5;

  /* Layout --------------------------------------------------------------- */
  --container: 1230px;
  --gutter: 12px;
  --section-y: 50px;
  --header-h: 73px;
  --utility-h: 35px;

  /* Effects -------------------------------------------------------------- */
  --shadow-header: 0 8px 16px rgba(0, 0, 0, .05);
  --shadow-card: 0 4px 18px rgba(0, 0, 0, .07);
  --shadow-lift: 0 12px 30px rgba(0, 0, 0, .12);
  --radius: 0;                /* the brand uses square corners throughout */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --speed: .25s;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchors land below the sticky header rather than under it. */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

/* Long unbroken strings - the distributor email, a spec-book filename, a URL
   pasted into body copy - are wider than a 320px phone and push the whole page
   sideways. Break them rather than let one address put a horizontal scrollbar
   on the page. */
p, li, td, th, dd, dt, figcaption, .card__excerpt, .panel, .prose {
  overflow-wrap: break-word;
}
a[href^="mailto:"], a[href^="tel:"], code, kbd, samp {
  overflow-wrap: anywhere;
}

/* A phone number or address that is the whole line is a target people press,
   not a link inside a sentence. Give it a thumb-sized height. */
.panel > p > a[href^="mailto:"],
.panel > p > a[href^="tel:"],
.footer__phone {
  display: inline-block;
  padding-block: 7px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
svg { display: inline-block; vertical-align: middle; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--grey-soft); margin: 2rem 0; }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

/* Clipped rather than parked at left:-9999px. An element 9999px off-canvas
   still has a box that far out, which trips overflow auditing, reverses badly
   under RTL, and on some screen readers reads in the wrong place. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  background: var(--plum);
  color: var(--white);
  padding: 12px 20px;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 576px) { .container { padding-inline: 16px; } }
@media (min-width: 992px) { .container { padding-inline: 24px; } }

.container--narrow { max-width: 860px; }
.container--wide { max-width: 1440px; }

.section { padding-block: 36px; }
@media (min-width: 768px) { .section { padding-block: var(--section-y); } }

.section--tight { padding-block: 24px; }
.section--grey { background: var(--grey-bg); }
.section--tint { background: var(--tint); }
.section--purple { background: var(--primary); color: var(--white); }
.section--plum { background: var(--plum); color: var(--white); }
.section--purple h1, .section--purple h2, .section--purple h3,
.section--plum h1, .section--plum h2, .section--plum h3 { color: var(--white); }
.section--purple a:not(.btn), .section--plum a:not(.btn) {
  color: var(--white); text-decoration: underline;
}

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
/* One column on the narrowest phones: two columns inside 320px works out at
   136px each, which is narrower than a profile card's own content. */
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 480px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 576px) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid { gap: 30px; }
}

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions--center { justify-content: center; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0 0 .6em;
}

h1, .h1 {
  font-size: clamp(30px, 5.2vw, var(--fs-h1));
  line-height: 1.06;
  color: var(--plum);
}

h2, .h2 {
  font-size: clamp(24px, 3.4vw, var(--fs-h2));
  line-height: 1.35;
  color: var(--plum);
  margin-bottom: .9em;
}

h3, .h3 {
  font-size: clamp(18px, 2vw, var(--fs-h3));
  line-height: 1.25;
  color: var(--primary-alt);
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  margin: 0 0 .6em;
}

p { margin: 0 0 15px; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 18px; line-height: 1.6; }
@media (min-width: 992px) { .lead { font-size: 20px; } }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 10px;
}

.section-title { margin-bottom: 30px; }
.section-title--center { text-align: center; }

.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { margin-bottom: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose img { margin-block: 1.5rem; }
.prose a { text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.5rem; }
.prose th, .prose td {
  border: 1px solid var(--grey-soft);
  padding: 10px 12px;
  text-align: left;
}
.prose th { background: var(--grey-bg); font-weight: 600; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--primary);
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--plum);
}
/* Wide content must scroll inside itself, never push the page sideways. */
.prose .table-scroll, .table-scroll { overflow-x: auto; }

/* --------------------------------------------------------------------------
   Controls
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 17px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: background var(--speed) var(--ease),
              color var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--plum); color: var(--white); }

.btn-secondary {
  background: rgba(147, 50, 88, .1);
  color: var(--primary);
  border-color: transparent;
}
.btn-secondary:hover { background: rgba(147, 50, 88, .18); color: var(--plum); }

.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--tint); color: var(--plum); }

.btn-ghost-white { border-color: var(--white); color: var(--white); }
.btn-ghost-white:hover { background: var(--white); color: var(--primary); }

.btn-sm { padding: 11px 20px; font-size: 12px; }
.btn-lg { padding: 20px 40px; font-size: 15px; }
.btn-block { width: 100%; }

.link-arrow {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-arrow:hover { text-decoration: none; }
.link-arrow::after { content: "\00BB"; }

/* Forms ------------------------------------------------------------------ */

.field { margin-bottom: 18px; }
.field label, .form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.field .req { color: var(--primary); }

input[type=text], input[type=email], input[type=tel], input[type=search],
input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--speed) var(--ease);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(154, 50, 87, .15);
}
textarea { min-height: 130px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23414042'%3E%3Cpath d='M8.12 9.29 12 13.17l3.88-3.88 1.41 1.42-5.29 5.29-5.29-5.29z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 38px;
}
.form-note { font-size: 13px; color: var(--grey); margin: 8px 0 0; }
.form-note--error { color: #b3261e; }
.form-note--ok { color: #1c7a4a; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.checkbox input { margin-top: 3px; flex: none; }

/* Staging markers -------------------------------------------------------- */

.staging-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--plum);
  background: var(--tint);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  margin: 12px 0 0;
}

.to-confirm {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #fff4d6;
  color: #7a5a00;
  border: 1px solid #e6cf8f;
  padding: 2px 7px;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Chrome: utility bar
   -------------------------------------------------------------------------- */

.quick-actions {
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
}
.quick-actions__inner {
  display: flex;
  align-items: stretch;
  /* The live bar runs everything hard right, with the INTRADE block flush to
     the viewport edge. Not a left/right split. */
  justify-content: flex-end;
  min-height: var(--utility-h);
  gap: 0;
}
.quick-actions__left { display: flex; align-items: center; gap: 0; }
.quick-actions__left .quick-actions__item + .quick-actions__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, .32);
}
.quick-actions__phone { padding-right: 16px; }
.quick-actions__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--white);
  padding: 8px 10px;
  min-width: 34px;
  text-decoration: none;
  position: relative;
}
.quick-actions__item:hover { color: var(--white); background: rgba(0, 0, 0, .12); }
.quick-actions__phone span { font-weight: 500; letter-spacing: .02em; }

.cart-count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--white);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* The dark INTRADE block that runs to the right edge of the bar. */
.quick-actions__trade {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 22px;
  margin-right: calc(var(--gutter) * -1);
  min-width: 190px;
  justify-content: center;
  font-size: 15px;
  font-family: var(--font-display);
  letter-spacing: .06em;
  text-decoration: none;
}
.quick-actions__trade:hover { background: #2f2e30; color: var(--white); }
.quick-actions__trade-chev { color: var(--pink); font-size: 15px; }
.quick-actions__trade-name b { font-weight: 600; }

@media (max-width: 767.98px) {
  .quick-actions__phone { display: none; }
  .quick-actions__inner { padding-inline: 0; }
  .quick-actions__left { flex: 1; justify-content: center; }
  .quick-actions__trade { flex: 1; justify-content: center; margin-right: 0; }
}
@media (min-width: 992px) {
  .quick-actions__trade { margin-right: -24px; }
}

/* --------------------------------------------------------------------------
   Chrome: header
   -------------------------------------------------------------------------- */

.header {
  background: var(--white);
  box-shadow: var(--shadow-header);
  position: sticky;
  top: 0;
  z-index: 60;
}
.header__main-container {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}
.header__logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  /* The link was only as tall as the image (22-28px). Padding makes it a
     full-height target without moving the mark on the page. */
  padding-block: 8px;
}
.header__logo img { width: auto; height: 28px; }


.header__collapse {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
}

.header__menu { flex: 1; }

.main-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-menu__item { position: static; }
.main-menu__item > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: var(--header-h);
  padding-inline: 17px;
  font-size: 15px;
  font-weight: 400;
  color: #2f2e30;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.main-menu__item > a:hover,
.main-menu__item.is-current > a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.menu-chevron { display: inline-flex; transition: transform var(--speed) var(--ease); }
.main-menu__item.has-mega:hover .menu-chevron,
.main-menu__item.has-mega.is-open .menu-chevron { transform: rotate(180deg); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header__search {
  padding: 14px 26px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 400;
  gap: 10px;
}
.header__search .icon { margin-right: 2px; }
.header__quote { white-space: nowrap; }

.header__toggle,
.header__phone-mobile,
.header__search-mobile { display: none; }

/* Mega menu -------------------------------------------------------------- */

.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-top: 1px solid var(--grey-soft);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--speed) var(--ease),
              transform var(--speed) var(--ease),
              visibility var(--speed) var(--ease);
  z-index: 70;
}
.main-menu__item.has-mega:hover > .mega,
.main-menu__item.has-mega:focus-within > .mega,
.main-menu__item.has-mega.is-open > .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding-block: 32px;
  align-items: start;
}
.mega__inner:has(> .mega__groups:only-child) { grid-template-columns: 1fr; }
.mega__feature {
  background: var(--primary);
  color: var(--white);
  padding: 26px 24px;
}
.mega__feature-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 10px;
}
.mega__feature-copy { font-size: 14px; line-height: 1.55; margin-bottom: 18px; }

.mega__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px 32px;
}
.mega__group-title {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--plum);
  margin-bottom: 6px;
}
.mega__group-title:hover { color: var(--primary); text-decoration: none; }
.mega__group-copy {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--grey);
  margin-bottom: 10px;
}
.mega__cols { display: flex; flex-wrap: wrap; gap: 0 28px; }
.mega__col { list-style: none; margin: 0; padding: 0; min-width: 190px; flex: 1; }
.mega__col li { margin-bottom: 7px; }
.mega__col a {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.4;
  display: inline-block;
}
.mega__col a:hover { color: var(--primary); text-decoration: none; }

/* Strips ----------------------------------------------------------------- */

.notification-bar {
  background: var(--white);
  color: var(--grey);
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid var(--grey-soft);
}
.notification-bar .container {
  position: relative;
  padding-block: 10px;
}
.notification-bar p { margin: 0; }
.notification-bar a { color: var(--grey); text-decoration: underline; }
.notification-bar a:hover { color: var(--primary); }
.notification-bar__close {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--grey);
  width: 40px;
  height: 40px;
  padding: 0;
}
.notification-bar[hidden] { display: none; }

.promo-bar {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}
.promo-bar p { margin: 0; padding-block: 9px; }

/* Search panel ----------------------------------------------------------- */

.search-panel {
  background: var(--plum);
  color: var(--white);
  padding-block: 26px;
}
.search-panel[hidden] { display: none; }
.search-panel__form { display: flex; gap: 10px; position: relative; }
.search-panel__form input {
  flex: 1;
  border: 0;
  padding: 15px 16px;
}
.search-panel__close {
  background: none;
  border: 0;
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  padding: 0 8px;
}
.search-panel__results { margin-top: 18px; }
.search-panel__results ul { list-style: none; margin: 0; padding: 0; }
.search-panel__results li { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.search-panel__results a {
  display: block;
  padding: 11px 2px;
  color: var(--white);
  text-decoration: none;
}
.search-panel__results a:hover { background: rgba(255, 255, 255, .08); }
.search-panel__results .kind {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .7;
  margin-left: 8px;
}

/* --------------------------------------------------------------------------
   Header: tablet and mobile
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .main-menu__item > a { padding-inline: 9px; font-size: 13px; }
  .header__search span { display: none; }
  .header__search { padding-inline: 14px; }
}

@media (max-width: 991.98px) {
  .header__toggle,
  .header__phone-mobile,
  .header__search-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    color: var(--ink);
    flex: none;
  }
  .header__phone-mobile,
  .header__search-mobile {
    background: var(--tint);
    border-radius: 50%;
    color: var(--primary);
  }
  .header__toggle { order: 4; margin-left: 2px; }
  .header__search-mobile { order: 2; margin-left: auto; }
  .header__phone-mobile { order: 3; }

  .header__toggle-bars { display: block; width: 24px; }
  .header__toggle-bars i {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: transform var(--speed) var(--ease),
                opacity var(--speed) var(--ease);
  }
  .header__toggle[aria-expanded="true"] .header__toggle-bars i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .header__toggle[aria-expanded="true"] .header__toggle-bars i:nth-child(2) {
    opacity: 0;
  }
  .header__toggle[aria-expanded="true"] .header__toggle-bars i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header__collapse {
    order: 5;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(400px, 88vw);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 20px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--speed) var(--ease);
    box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
    z-index: 80;
  }
  .header__collapse.is-open { transform: translateX(0); }

  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 70;
  }

  .main-menu { flex-direction: column; align-items: stretch; }
  .main-menu__item > a {
    height: auto;
    padding: 15px 4px;
    border-bottom: 1px solid var(--grey-soft);
    justify-content: space-between;
    font-size: 16px;
  }
  .main-menu__item.has-mega > a .menu-chevron { margin-left: auto; }

  /* Accordion, not hover: the panel only opens when JS sets .is-open */
  .mega {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    display: none;
    background: var(--grey-bg);
  }
  .main-menu__item.has-mega.is-open > .mega { display: block; }
  .main-menu__item.has-mega:hover > .mega { display: none; }
  .main-menu__item.has-mega.is-open:hover > .mega { display: block; }

  .mega__inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 14px;
  }
  .mega__feature { padding: 18px; }
  .mega__groups { grid-template-columns: 1fr; gap: 18px; }
  .mega__cols { flex-direction: column; gap: 0; }
  .mega__col { min-width: 0; }

  .header__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
  }
  .header__actions .btn { width: 100%; }
  .header__search span { display: inline; }
  .header__mobile-extra { margin-top: 18px; display: block; }
  .header__mobile-socials {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 18px;
    color: var(--primary);
  }
  .header__mobile-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 992px) {
  .header__mobile-extra { display: none; }
}

/* Narrowest phones, last so it wins.
   At 320px the row is logo 163 + three 40px controls + gaps, which overflows
   by 13px and puts a horizontal scrollbar on every page in the site. The logo
   gives up the space: the controls are already at the smallest comfortable
   tap size. This block has to sit after the max-width:991.98px rules above,
   because those set the control size at the same specificity and whichever
   comes last wins. */
@media (max-width: 359.98px) {
  .header__logo img { height: 22px; }
  .header__main-container { gap: 4px; }
  .header__toggle,
  .header__phone-mobile,
  .header__search-mobile { width: 34px; height: 34px; }
  .quick-actions__item { padding: 8px 7px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--plum);
  color: var(--white);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 320px;
}
.hero__media { order: 1; position: relative; }
.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}
.hero__panel {
  order: 2;
  /* Left and right padding clears the carousel arrows, which sit at the
     vertical centre of the panel on small screens. */
  padding: 32px 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1, .hero .h1 { color: var(--white); margin-bottom: 20px; }
.hero__copy { font-size: 16px; line-height: 1.6; max-width: 46ch; }
.hero__actions { margin-top: 26px; }

.hero__rating {
  background: var(--primary);
  color: var(--white);
  padding: 14px 22px;
  text-align: center;
  /* Stacked and centred below the copy on small screens; absolutely placed
     over the photograph from 768px up, where there is room for it. */
  display: block;
  width: fit-content;
  margin: 0 auto 26px;
}
.hero__rating-source {
  font-size: 12px;
  letter-spacing: .04em;
  display: block;
  margin-bottom: 2px;
}
.hero__rating-value {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  display: block;
}
.hero__rating-stars { color: #f7b500; letter-spacing: 2px; font-size: 14px; }
.hero__rating-count { font-size: 11px; opacity: .85; display: block; margin-top: 4px; }

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 46% 54%;
    min-height: 420px;
    align-items: stretch;
  }
  .hero__panel {
    order: 1;
    /* The 44px floor clears the previous-slide arrow, which sits at the left
       edge of the hero. Above 1230px the container gutter is already wider
       than that and takes over. */
    padding: 48px 40px 48px
             max(44px, calc((100vw - var(--container)) / 2 + 24px));
    position: relative;
    z-index: 2;
  }
  .hero__media { order: 2; }
  .hero__media img { position: absolute; inset: 0; min-height: 0; }
  /* The angled cut between the plum panel and the photograph. */
  .hero__panel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -70px;
    width: 90px;
    background: var(--plum);
    clip-path: polygon(0 0, 100% 0, 22% 100%, 0 100%);
  }
  .hero__rating {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    margin: 0;
  }
}

@media (min-width: 1200px) {
  .hero__inner { min-height: 480px; }
  .hero__panel { padding-right: 60px; }
  .hero__panel::after { right: -90px; width: 120px; }
}

.hero--simple { background: var(--plum); }
.hero--simple .hero__inner { grid-template-columns: 1fr; min-height: 0; }
.hero--simple .hero__panel {
  order: 1;
  padding-block: 44px;
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
}
.hero--simple .hero__panel::after { display: none; }

/* Carousel arrows -------------------------------------------------------- */

.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  padding: 12px;
  z-index: 4;
  opacity: .8;
}
.hero__nav:hover { opacity: 1; }
.hero__nav--prev { left: 0; }
.hero__nav--next { right: 0; }
/* The glyph is narrow, so the button was 20px wide. Give it a real target
   without moving the arrow off the edge it belongs on. */
.hero__nav { min-width: 44px; }
@media (max-width: 575.98px) {
  .hero__nav { font-size: 28px; padding: 10px 6px; }
}
.hero__slide { display: none; }
.hero__slide.is-active { display: block; }
.hero__dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.hero__dot {
  /* 9px is the dot; the padding is the tap target. background-clip keeps the
     padding transparent so the dot still reads as 9px. */
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 11px solid transparent;
  background: rgba(255, 255, 255, .45);
  background-clip: content-box;
  padding: 0;
  box-sizing: border-box;
}
.hero__dot.is-active { background: var(--white); background-clip: content-box; }

/* --------------------------------------------------------------------------
   Promo cards: image with an inset white body overlapping its lower edge
   -------------------------------------------------------------------------- */

.promo-card { display: flex; flex-direction: column; }
.promo-card__media { position: relative; }
.promo-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.promo-card__body {
  background: var(--white);
  padding: 22px 22px 26px;
  margin: -46px 16px 0;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-card);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.promo-card__eyebrow {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.promo-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  color: var(--primary-alt);
  margin: 0 0 10px;
}
.promo-card__copy { font-size: 14px; line-height: 1.55; margin-bottom: 18px; }
.promo-card__body .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   Split feature (image beside copy, on a coloured band)
   -------------------------------------------------------------------------- */

.split { display: grid; gap: 0; grid-template-columns: 1fr; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body {
  background: var(--white);
  padding: 28px 24px;
  /* The split sits inside .section--purple, which sets color:white on the
     whole band. Without resetting it here the body copy is white on white. */
  color: var(--ink);
}
.split__body .eyebrow { color: var(--grey); }
.section--purple .split__body h2,
.section--plum .split__body h2 { color: var(--plum); }
.section--purple .split__body h3,
.section--plum .split__body h3 { color: var(--primary-alt); }
.section--purple .split__body a:not(.btn),
.section--plum .split__body a:not(.btn) { color: var(--primary); }

@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .split__body { padding: 40px 44px; display: flex; flex-direction: column;
                 justify-content: center; }
  .split--reverse .split__media { order: 2; }
}
@media (min-width: 1200px) {
  .split__body { padding: 52px 56px; }
}

/* --------------------------------------------------------------------------
   Cards: projects, posts, categories, profiles
   -------------------------------------------------------------------------- */

.card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card__media { position: relative; overflow: hidden; }
.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 16px 0 20px; flex: 1; display: flex; flex-direction: column; }
.card__kind {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 7px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  color: var(--plum);
  margin: 0 0 8px;
}
.card__title a { color: inherit; }
.card__title a:hover { color: var(--primary); text-decoration: none; }
.card__excerpt { font-size: 14px; line-height: 1.55; color: var(--ink); margin: 0; }
.card__meta { font-size: 13px; color: var(--grey); margin-bottom: 8px; }
.card__foot { margin-top: auto; padding-top: 16px; }

/* Blog card variant: date above, boxed body, centred, button */
.card--boxed .card__body {
  background: var(--white);
  margin: -40px 16px 0;
  padding: 20px 20px 24px;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-card);
  align-items: center;
}
.card--boxed .card__title { color: var(--primary-alt); }

/* Product / profile card ------------------------------------------------- */

.profile-card {
  background: var(--white);
  border: 1px solid var(--grey-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.profile-card:hover { border-color: var(--primary); box-shadow: var(--shadow-card); }
.profile-card__media {
  padding: 18px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}
.profile-card__media img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.profile-card__body {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.profile-card__code {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--plum);
  margin: 0;
}
.profile-card__code a { color: inherit; }
.profile-card__name { font-size: 13px; color: var(--grey); margin: 0; }
.profile-card__dims {
  font-size: 12.5px;
  color: var(--ink);
  margin: 0;
  letter-spacing: .01em;
}
.profile-card__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin: 4px 0 0;
}
.profile-card__price--poa { font-weight: 500; font-size: 12.5px; color: var(--grey); }
.profile-card__foot { margin-top: auto; padding-top: 12px; display: grid; gap: 8px; }
.profile-card__badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.badge {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 7px;
  background: var(--tint);
  color: var(--primary);
}
.badge--stock { background: #e4f3ea; color: #1c7a4a; }
.badge--exclusive { background: var(--plum); color: var(--white); }

/* --------------------------------------------------------------------------
   Breadcrumbs, pagination, filters
   -------------------------------------------------------------------------- */

.breadcrumbs {
  font-size: 12.5px;
  color: var(--grey);
  padding-block: 14px;
  border-bottom: 1px solid var(--grey-soft);
}
.breadcrumbs ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumbs li::after { content: "›"; margin-left: 6px; color: var(--grey-line); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--grey); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current] { color: var(--ink); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--grey-soft);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination [aria-current] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.filters {
  background: var(--white);
  border: 1px solid var(--grey-soft);
  padding: 18px;
}
.filters__group + .filters__group { margin-top: 18px; padding-top: 18px;
                                    border-top: 1px solid var(--grey-soft); }
.filters__legend {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--plum);
  font-weight: 600;
  margin-bottom: 10px;
}
.filters__options { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 7px 12px;
  border: 1px solid var(--grey-line);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--speed) var(--ease),
              background var(--speed) var(--ease);
}
.filters__option:hover { border-color: var(--primary); }
.filters__option input { position: absolute; opacity: 0; pointer-events: none; }
.filters__option:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.filters__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.filters__count { font-size: 14px; color: var(--grey); }
.filters__toggle { display: none; }

.layout-with-aside { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 992px) {
  .layout-with-aside { grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
  .layout-with-aside > aside { position: sticky; top: calc(var(--header-h) + 16px); }
}
@media (max-width: 991.98px) {
  .filters__toggle { display: inline-flex; }
  /* Collapsed by default. Expanded, this panel is about 1,000px tall on a
     phone - four facet groups and fifty-odd chips - so leaving it open pushes
     the first product a full screen and a half below the fold. The "Filters"
     button is what opens it, which is what the button implies. */
  .filters { display: none; }
  .filters.is-open { display: block; }
  .filters[hidden] { display: none; }
}

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */

.product { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 992px) {
  .product { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
}

.product__gallery { position: relative; }
.product__figure {
  background: var(--white);
  border: 1px solid var(--grey-soft);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.product__figure img { max-height: 420px; width: auto; object-fit: contain; }
.product__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.product__thumb {
  width: 76px; height: 76px;
  border: 1px solid var(--grey-soft);
  background: var(--white);
  padding: 4px;
  cursor: pointer;
}
.product__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product__thumb.is-active { border-color: var(--primary); }

.product__code {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.product__price {
  font-size: 26px;
  font-family: var(--font-display);
  color: var(--plum);
  margin: 0 0 4px;
}
.product__price--poa { font-size: 17px; color: var(--primary); }
.product__price-note { font-size: 13px; color: var(--grey); margin-bottom: 20px; }

.specs { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.specs th, .specs td {
  border-bottom: 1px solid var(--grey-soft);
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
}
.specs th { width: 42%; font-weight: 600; color: var(--plum); }

.option-row { margin-bottom: 16px; }
.option-row__label {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 7px;
}
.option-row__options { display: flex; flex-wrap: wrap; gap: 8px; }
.option-chip {
  border: 1px solid var(--grey-line);
  background: var(--white);
  padding: 9px 15px;
  font-size: 13px;
  cursor: pointer;
}
.option-chip.is-active { border-color: var(--primary); background: var(--primary);
                         color: var(--white); }

.qty { display: inline-flex; border: 1px solid var(--grey-line); }
.qty button {
  width: 42px; height: 46px;
  border: 0;
  background: var(--white);
  font-size: 18px;
  color: var(--primary);
}
.qty input {
  width: 60px;
  border: 0;
  border-inline: 1px solid var(--grey-line);
  text-align: center;
  height: 46px;
  padding: 0;
}
.product__buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.product__buy .btn { flex: 1 1 190px; }

.tier-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; }
.tier-table th, .tier-table td {
  border: 1px solid var(--grey-soft);
  padding: 8px 10px;
  text-align: left;
}
.tier-table th { background: var(--grey-bg); color: var(--plum); font-weight: 600; }

/* --------------------------------------------------------------------------
   Gallery / masonry
   -------------------------------------------------------------------------- */

.gallery-grid {
  columns: 1;
  column-gap: 16px;
}
@media (min-width: 576px) { .gallery-grid { columns: 2; } }
@media (min-width: 992px) { .gallery-grid { columns: 3; column-gap: 20px; } }
@media (min-width: 1400px) { .gallery-grid { columns: 4; } }
.gallery-grid figure {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
}
.gallery-grid img { width: 100%; }
.gallery-grid figcaption {
  font-size: 12.5px;
  color: var(--grey);
  padding-top: 6px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 6, 13, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  padding: 12px;
}
.lightbox__close { top: 8px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__caption {
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  text-align: center;
  color: var(--white);
  font-size: 13px;
  padding-inline: 60px;
}

/* --------------------------------------------------------------------------
   Accordion (FAQs, help centre)
   -------------------------------------------------------------------------- */

.accordion { border-top: 1px solid var(--grey-soft); }
.accordion__item { border-bottom: 1px solid var(--grey-soft); }
.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  padding: 18px 2px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--plum);
}
.accordion__btn:hover { color: var(--primary); }
.accordion__btn::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--primary);
  flex: none;
}
.accordion__btn[aria-expanded="true"]::after { content: "\2212"; }
.accordion__panel { padding: 0 2px 20px; font-size: 15px; }
.accordion__panel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */

.tabs { border-bottom: 1px solid var(--grey-soft); display: flex;
        gap: 4px; overflow-x: auto; }
.tabs button {
  border: 0;
  background: none;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.tabs button[aria-selected="true"] { color: var(--primary);
                                     border-bottom-color: var(--primary); }
.tabpanel { padding-top: 24px; }
.tabpanel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Portal (INTRADE)
   -------------------------------------------------------------------------- */

.portal-shell { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 992px) {
  .portal-shell { grid-template-columns: 250px 1fr; min-height: 70vh; }
}
.portal-side {
  background: var(--plum);
  color: var(--white);
  padding: 26px 20px;
}
.portal-side__brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.portal-side__who { font-size: 13px; opacity: .8; margin-bottom: 22px; }
.portal-side nav ul { list-style: none; margin: 0; padding: 0; }
.portal-side nav a {
  display: block;
  padding: 11px 12px;
  color: var(--white);
  font-size: 14px;
  border-left: 3px solid transparent;
  text-decoration: none;
}
.portal-side nav a:hover { background: rgba(255, 255, 255, .1); }
.portal-side nav a[aria-current] {
  background: rgba(255, 255, 255, .14);
  border-left-color: var(--pink);
}
.portal-main { padding: 28px 20px 44px; background: var(--grey-bg); }
@media (min-width: 992px) { .portal-main { padding: 36px 40px 56px; } }

.portal-login {
  max-width: 460px;
  margin-inline: auto;
  background: var(--white);
  padding: 32px 28px 36px;
  box-shadow: var(--shadow-card);
}
.portal-login h1 { font-size: 28px; margin-bottom: 6px; }

.stat-row { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--white);
  padding: 18px 20px;
  border-left: 3px solid var(--primary);
}
.stat__label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 6px;
}
.stat__value {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--plum);
  margin: 0;
  line-height: 1.1;
}

.panel { background: var(--white); padding: 22px; margin-top: 24px; }
.panel__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.panel h2 { font-size: 20px; margin: 0; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td {
  border-bottom: 1px solid var(--grey-soft);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}
.data-table th {
  /* The other 11px rules are uppercase badges and micro-labels, which read
     larger than their size. This one heads a table a seller reads numbers
     out of, so it goes up to 12. */
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 600;
}
.data-table tbody tr:hover { background: var(--grey-bg); }
.data-table td.num, .data-table th.num { text-align: right; }

.status {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
}
.status--open { background: #e4f3ea; color: #1c7a4a; }
.status--pending { background: #fff4d6; color: #7a5a00; }
.status--closed { background: var(--grey-soft); color: var(--ink); }

.download-list { list-style: none; margin: 0; padding: 0; }
.download-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-soft);
}
.download-list__meta { font-size: 12.5px; color: var(--grey); }

/* --------------------------------------------------------------------------
   Cart drawer
   -------------------------------------------------------------------------- */

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 92vw);
  background: var(--white);
  z-index: 120;
  transform: translateX(100%);
  transition: transform var(--speed) var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, .2);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--plum);
  color: var(--white);
}
.cart-drawer__head h2 { margin: 0; font-size: 18px; color: var(--white); }
.cart-drawer__close {
  background: none; border: 0; color: var(--white);
  font-size: 26px; line-height: 1; padding: 0 4px;
}
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.cart-drawer__foot { padding: 18px 20px; border-top: 1px solid var(--grey-soft); }
.cart-line { display: flex; gap: 12px; padding: 12px 0;
             border-bottom: 1px solid var(--grey-soft); }
.cart-line img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.cart-line__title { font-size: 14px; margin: 0 0 4px; }
.cart-line__meta { font-size: 12.5px; color: var(--grey); }
.cart-total { display: flex; justify-content: space-between;
              font-size: 16px; margin-bottom: 14px; }
.cart-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 110;
}
.cart-backdrop[hidden], .cart-drawer[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { background: var(--ink); color: #f2f3f3; padding-top: 44px; }
.footer__inner {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}
@media (min-width: 576px) { .footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) {
  .footer__inner { grid-template-columns: 1.1fr .8fr 1.1fr 1.3fr; gap: 36px; }
}
.footer__heading {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 16px;
}
.footer__heading--socials { margin-top: 26px; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 2px; }
.footer__links a {
  display: inline-block;
  padding-block: 7px;   /* 18px of text becomes a 32px target */
}
.footer__links a, .footer p { color: #d9dadb; font-size: 14px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--white); text-decoration: underline; }
.footer__logo { width: auto; height: 25px; margin-bottom: 18px; }
.footer__phone {
  display: inline-block;
  padding-block: 6px;
  color: var(--white);
  font-size: 16px;
  margin-bottom: 10px;
  text-decoration: none;
}
.footer__postal, .footer__owned { font-size: 13.5px; color: #b8babc; margin-bottom: 6px; }
.footer__form input {
  margin-bottom: 10px;
  border: 0;
  background: #56555a;
  color: var(--white);
}
.footer__form input::placeholder { color: #b8babc; }
.footer__socials { display: flex; gap: 12px; }
.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid #6c6b70;
  border-radius: 50%;
  color: #d9dadb;
}
.footer__socials a:hover { background: var(--primary); border-color: var(--primary);
                           color: var(--white); }
.footer__legal { background: #333235; padding-block: 14px; }
.footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
}
.footer__legal p { font-size: 12px; color: #a7a8aa; margin: 0; line-height: 1.5; }
.footer__legal a { color: #a7a8aa; text-decoration: none; }
.footer__legal a:hover { color: var(--white); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.muted { color: var(--grey); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--grey-line);
  color: var(--grey);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .quick-actions, .header, .notification-bar, .promo-bar, .search-panel,
  .footer, .cart-drawer, .cart-backdrop, .btn { display: none !important; }
  body { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 11px; }
}
