/* ==========================================================================
   Packworks design system
   Direction: clean, modern, industrial, professional, trustworthy.
   Not a marketplace. Not a template. Product-first, generous whitespace,
   strong typography, obvious CTAs.
   ========================================================================== */

/* ------------------------------------------------------------- 1. tokens -- */
:root {
  /* Ink & surface */
  --ink:            #101419;
  --ink-2:          #3c4551;
  --ink-3:          #6a7484;
  --ink-4:          #99a2b0;
  --surface:        #ffffff;
  --surface-2:      #f6f7f9;
  --surface-3:      #eceef2;
  --surface-dark:   #101a26;
  --surface-dark-2: #17253550;

  /* Brand — steel navy with a kraft-orange action colour */
  --brand:          #16324f;
  --brand-600:      #1d4370;
  --brand-100:      #e8eef5;
  --accent:         #d2571c;
  --accent-600:     #b84813;
  --accent-100:     #fdefe7;
  --kraft:          #b5834e;

  /* Status */
  --ok:      #17694a;
  --ok-bg:   #e6f4ee;
  --warn:    #96590a;
  --warn-bg: #fdf2e0;
  --info:    #1d4ed8;
  --info-bg: #e8eeff;
  --danger:  #b42318;
  --danger-bg:#fdeceb;

  --line:      #e2e5ea;
  --line-soft: #eef0f4;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.79rem, 0.77rem + 0.10vw, 0.84rem);
  --step-0:  clamp(0.94rem, 0.92rem + 0.12vw, 1.00rem);
  --step-1:  clamp(1.13rem, 1.08rem + 0.24vw, 1.25rem);
  --step-2:  clamp(1.35rem, 1.26rem + 0.44vw, 1.65rem);
  --step-3:  clamp(1.62rem, 1.46rem + 0.78vw, 2.20rem);
  --step-4:  clamp(1.94rem, 1.66rem + 1.35vw, 2.95rem);
  --step-5:  clamp(2.33rem, 1.86rem + 2.28vw, 3.90rem);

  /* Space */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;

  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  --shadow-1: 0 1px 2px rgba(16, 20, 25, 0.05);
  --shadow-2: 0 4px 16px rgba(16, 20, 25, 0.08);
  --shadow-3: 0 12px 40px rgba(16, 20, 25, 0.12);

  --wrap: 1240px;
  --wrap-narrow: 780px;
  --header-h: 68px;
}

/* --------------------------------------------------------------- 2. base -- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0 0 var(--sp-3); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-600); }

img, svg, video { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: var(--sp-3) var(--sp-4);
}
.skip-link:focus { left: 0; }

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

/* ------------------------------------------------------------ 3. layout --- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-5); }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--sp-8); }
.section-tight { padding-block: var(--sp-6); }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--surface-dark); color: #eef1f5; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #cfe0f2; }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }

.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.between { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between; }

.section-head { margin-bottom: var(--sp-6); max-width: 62ch; }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: var(--step-1); margin: 0; }
.eyebrow {
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--accent-600); margin: 0 0 var(--sp-2);
}
.lede { font-size: var(--step-1); color: var(--ink-2); }

/* ------------------------------------------------------------ 4. header --- */
.topbar {
  background: var(--surface-dark); color: #c9d4e0;
  font-size: var(--step--1); padding-block: var(--sp-2);
}
.topbar .wrap { display: flex; gap: var(--sp-4); justify-content: space-between; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar ul { display: flex; gap: var(--sp-4); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: var(--header-h);
}
.logo {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-600) 60%, var(--accent) 100%);
}

.nav { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; }
.nav > * { flex: none; }
.nav-link {
  display: inline-block; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 0.94rem;
}
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--surface-2); color: var(--ink); }

.has-menu { position: relative; }
.has-menu > .nav-link::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-3); padding: var(--sp-2); list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: block; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: 0.94rem; }
.menu a:hover { background: var(--surface-2); }
.menu .menu-desc { display: block; color: var(--ink-3); font-size: var(--step--1); }

.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.icon-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-weight: 550;
  font-size: 0.92rem; border: 1px solid transparent; background: none; cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.cart-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--accent); color: #fff; border-radius: 99px; font-size: 0.72rem; font-weight: 700;
}

.nav-toggle { display: none; }

/* --------------------------------------------------------- 5. components -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.72rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease, transform .06s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-600); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink-3); color: var(--ink); background: #fff; }
.btn-ghost { background: transparent; color: var(--brand-600); }
.btn-ghost:hover { background: var(--brand-100); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: var(--step-1); }
.btn-sm { padding: 0.45rem 0.8rem; font-size: var(--step--1); }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card-pad { padding: var(--sp-5); }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-5);
}
.panel-alt { background: var(--surface-2); border-color: var(--line-soft); }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  background: var(--surface-3); color: var(--ink-2); white-space: nowrap;
}
.badge-ok   { background: var(--ok-bg);   color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-off  { background: var(--surface-3); color: var(--ink-3); }
.badge-accent { background: var(--accent-100); color: var(--accent-600); }

.notice {
  border: 1px solid var(--line); border-left: 4px solid var(--ink-3);
  background: var(--surface-2); padding: var(--sp-4); border-radius: var(--radius-sm);
}
.notice-ok     { border-left-color: var(--ok);     background: var(--ok-bg); }
.notice-warn   { border-left-color: var(--warn);   background: var(--warn-bg); }
.notice-info   { border-left-color: var(--info);   background: var(--info-bg); }
.notice-danger { border-left-color: var(--danger); background: var(--danger-bg); }

.estimate-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--warn); background: var(--warn-bg); padding: 3px 8px; border-radius: 4px;
}

.breadcrumbs { font-size: var(--step--1); color: var(--ink-3); padding-block: var(--sp-4); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--ink-4); }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------------------- 6. forms --- */
.field { display: block; margin-bottom: var(--sp-4); }
.field > label, .label {
  display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink);
}
.field .hint { display: block; font-size: var(--step--1); color: var(--ink-3); margin-top: 5px; }
.req { color: var(--danger); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], input[type="date"], input[type="search"], input[type="url"],
select, textarea {
  width: 100%; padding: 0.65rem 0.8rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .12s ease, box-shadow .12s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-4); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100);
}
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
input[type="file"] { padding: 0.5rem; background: var(--surface-2); }

.field-error input, .field-error select, .field-error textarea { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: var(--step--1); margin-top: 5px; display: block; }

.check { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.check label { font-weight: 450; font-size: 0.94rem; }

.form-grid { display: grid; gap: 0 var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }

.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------------------------------- 7. product bits -- */
.product-card { position: relative; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.product-card:hover { border-color: var(--ink-4); box-shadow: var(--shadow-2); }
.product-card .thumb {
  aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center;
  border-bottom: 1px solid var(--line-soft); overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { font-size: 1.02rem; margin: 0; letter-spacing: -0.01em; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card .meta { font-size: var(--step--1); color: var(--ink-3); margin: 0; }
.price-from { font-weight: 750; font-size: 1.08rem; color: var(--ink); }
.price-from small { font-weight: 500; color: var(--ink-3); font-size: 0.78rem; }

.tier-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.tier-table th, .tier-table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.tier-table th { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); font-weight: 700; }
.tier-table tr:last-child td { border-bottom: 0; }
.tier-table tr.is-active { background: var(--accent-100); }
.tier-table td.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.tier-table .save { color: var(--ok); font-weight: 650; font-size: var(--step--1); }

.qty-row { display: flex; gap: var(--sp-2); align-items: stretch; }
.qty-row input { max-width: 130px; font-variant-numeric: tabular-nums; font-weight: 600; }

.gallery-main {
  aspect-ratio: 1 / 1; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-2); margin-top: var(--sp-2); }
.gallery-thumbs button {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); cursor: pointer; aspect-ratio: 1 / 1;
}
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-100); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td { padding: 0.65rem 0; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec-table th { width: 42%; color: var(--ink-3); font-weight: 600; }

details.faq { border-bottom: 1px solid var(--line); padding: var(--sp-4) 0; }
details.faq summary { font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--sp-3); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--ink-3); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "\2212"; }
details.faq .faq-body { padding-top: var(--sp-3); color: var(--ink-2); }

/* --------------------------------------------------------------- 8. hero -- */
.hero { background: var(--surface-dark); color: #e9eef4; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% 12%, rgba(210, 87, 28, 0.20), transparent 62%),
    radial-gradient(700px 380px at 8% 92%, rgba(29, 67, 112, 0.55), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: var(--sp-7); align-items: center; padding-block: var(--sp-9); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { font-size: var(--step-5); color: #fff; text-wrap: balance; margin-bottom: var(--sp-4); }
.hero p.lede { color: #b9c6d6; max-width: 52ch; font-size: var(--step-1); }
.hero-points { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.hero-points li { display: flex; align-items: center; gap: 7px; font-size: 0.92rem; color: #cdd8e4; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.1); box-shadow: var(--shadow-3); aspect-ratio: 5 / 4; background: #0c1620; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.cat-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: var(--ink); }
.cat-card .cat-img { aspect-ratio: 16 / 10; background: var(--surface-2); }
.cat-card .cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .cat-body { padding: var(--sp-4); }
.cat-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.cat-card p { font-size: var(--step--1); color: var(--ink-3); margin: 0; }

.value-item { display: flex; gap: var(--sp-4); }
.value-item .vi-num {
  flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand); font-weight: 800; font-size: 0.85rem;
}
.value-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.value-item p { font-size: 0.94rem; color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------------ 9. tables --- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
.data-table th, .data-table td { padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.data-table th { background: var(--surface-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); position: sticky; top: 0; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table td.wrap-cell { white-space: normal; min-width: 220px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------- 10. footer --- */
.site-footer { background: var(--surface-dark); color: #a9b8c9; padding-block: var(--sp-8) var(--sp-6); margin-top: var(--sp-9); }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.site-footer a { color: #a9b8c9; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer-brand { max-width: 320px; }
.footer-brand p { font-size: 0.9rem; color: #8fa0b3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.09); margin-top: var(--sp-7); padding-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; font-size: 0.85rem; }

/* --------------------------------------------------------- 11. utilities -- */
.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); }
.tnum { font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.sticky-side { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--sp-7); font-size: var(--step-2); }
.prose h3 { margin-top: var(--sp-6); font-size: var(--step-1); }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: var(--sp-4); }
.prose li { margin-bottom: var(--sp-2); }
.prose img { border-radius: var(--radius); margin-block: var(--sp-5); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-5); font-size: 0.94rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.5rem 0.7rem; text-align: left; }
.prose th { background: var(--surface-2); }

/* ---------------------------------------------------------- 12. mobile ---- */
@media (max-width: 899px) {
  :root { --header-h: 60px; }

  /* Keep the header to a single row: logo · actions · menu. */
  .header-inner { gap: var(--sp-2); }
  .logo { font-size: 1.05rem; margin-right: auto; }
  .topbar .wrap { justify-content: center; }
  .topbar > .wrap > span { display: none; }

  .nav-toggle {
    display: inline-flex; order: 3;
    border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
    padding: 0.5rem 0.7rem; cursor: pointer; font: inherit; font-weight: 600; gap: 7px; align-items: center;
  }
  .nav {
    display: none; order: 10; width: 100%; flex-direction: column; align-items: stretch;
    gap: 0; padding-bottom: var(--sp-4); border-top: 1px solid var(--line); margin: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-header.open .nav { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .nav-link { padding: 0.8rem var(--sp-2); border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .has-menu > .nav-link::after { float: right; margin-top: 8px; }
  .menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0;
    padding: 0 0 var(--sp-2) var(--sp-4); display: none;
  }
  .has-menu.open .menu { display: block; }
  .header-actions { order: 2; gap: 2px; }
  .header-actions .btn-primary { padding: .5rem .7rem; font-size: .82rem; }
  .header-actions .label-text { display: none; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .section { padding-block: var(--sp-7); }
  .hero-grid { padding-block: var(--sp-7); }
  .btn-lg { width: 100%; }
  .hero .cluster .btn { flex: 1 1 100%; }
}

@media (min-width: 900px) {
  .product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr); gap: var(--sp-7); align-items: start; }
  .checkout-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr); gap: var(--sp-6); align-items: start; }
}

@media print {
  .site-header, .site-footer, .topbar, .no-print { display: none !important; }
  body { color: #000; }
}

/* ---------------------------------------------- 13. trade-buyer clarity ---
   Additions for a bulk B2B audience: quantity figures must be scannable, the
   minimum must be impossible to miss, and dense specification tables must stay
   readable at length. */

/* The single most important number on a product page. */
.moq-callout {
  display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap;
  background: var(--brand-100); border: 1px solid #cfdcea;
  border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4);
  margin-block: var(--sp-4);
}
.moq-callout .moq-figure {
  font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em;
  color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1;
}
.moq-callout .moq-note { font-size: var(--step--1); color: var(--ink-2); margin: 0; }

/* Price the eye should land on first. */
.price-lead { display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; }
.price-lead .amount {
  font-size: var(--step-3); font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.price-lead .per { font-size: 0.95rem; font-weight: 500; color: var(--ink-3); }

/* Long specification tables: zebra striping earns its keep past ~8 rows. */
.spec-table tbody tr:nth-child(even) th,
.spec-table tbody tr:nth-child(even) td { background: var(--surface-2); }
.spec-table th, .spec-table td { padding-inline: var(--sp-2); }

/* Section labelling for dense reference pages. */
.eyebrow-sm {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 var(--sp-2);
}

/* A definition row used on the how-to-order and catalogue pages. */
.deflist { display: grid; gap: var(--sp-4); }
@media (min-width: 700px) { .deflist { grid-template-columns: 1fr 1fr; } }
.deflist > div { padding-left: var(--sp-4); border-left: 3px solid var(--line); }
.deflist h3 { font-size: 1rem; margin-bottom: .25rem; }
.deflist p { font-size: 0.94rem; color: var(--ink-2); margin: 0; }

/* Numbered process steps read better with a rule connecting them. */
.value-item .vi-num { font-variant-numeric: tabular-nums; }

/* Keep the catalogue's per-product blocks visually separated when printed. */
@media print {
  .panel { break-inside: avoid; border-color: #999; }
  a[href^="/"]::after { content: ""; }
  .tier-table, .spec-table { font-size: 10pt; }
}
