:root {
  --ink: #071827;
  --ink-soft: #183247;
  --acid: #b8ef19;
  --acid-dark: #88b900;
  --paper: #f5f7f9;
  --white: #ffffff;
  --line: #dce3e8;
  --muted: #607180;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(7, 24, 39, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
}

.label-lookup-page { background: #f3f6f8; }

.label-lookup-shell {
  display: grid;
  gap: 24px;
  padding-block: 48px 72px;
}

.label-lookup-heading span,
.label-lookup-card span,
.label-internal-heading span {
  color: #5c6873;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.label-lookup-heading h1 {
  margin: 6px 0;
  color: #071827;
  font-size: clamp(48px, 10vw, 96px);
  line-height: .95;
}

.label-lookup-heading p { max-width: 680px; color: #52606b; }

.label-lookup-card,
.label-internal-card,
.label-public-note {
  border: 1px solid #d8e0e5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 36px rgb(7 24 39 / 8%);
}

.label-lookup-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.label-lookup-card > div {
  display: grid;
  gap: 6px;
  padding: 20px 24px;
  border-bottom: 1px solid #e4e9ed;
}

.label-lookup-card > div:nth-child(odd) { border-right: 1px solid #e4e9ed; }
.label-lookup-card .label-lookup-wide { grid-column: 1 / -1; border-right: 0; }
.label-lookup-card strong { overflow-wrap: anywhere; font-size: 20px; }

.label-internal-card { overflow: hidden; }
.label-internal-heading { padding: 22px 24px; background: #071827; color: #fff; }
.label-internal-heading span { color: #87d6bc; }
.label-internal-heading h2 { margin: 5px 0 0; }
.label-internal-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.label-internal-card dl > div { padding: 16px 24px; border-bottom: 1px solid #e4e9ed; }
.label-internal-card dt { color: #5c6873; font-size: 13px; }
.label-internal-card dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.label-public-note { padding: 20px 24px; color: #52606b; }

.label-picking-action {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  overflow: hidden;
  border: 1px solid #b9d8cc;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgb(7 24 39 / 10%);
}

.label-part-photo {
  display: grid;
  min-height: 280px;
  place-content: center;
  gap: 8px;
  padding: 28px;
  color: #52606b;
  background: linear-gradient(145deg, #e7edf0, #f7f9fa);
  text-align: center;
}

.label-part-photo span,
.label-picking-action-body > span,
.label-picking-progress span {
  color: #5c6873;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.label-picking-action-body { display: grid; align-content: center; gap: 16px; padding: 28px; }
.label-picking-action-body h2 { margin: 0; font-size: clamp(30px, 6vw, 56px); line-height: 1; }
.label-picking-action-body p { margin: 0; color: #52606b; }
.label-picking-progress { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.label-accept-button,
.label-shipment-ready a {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: #087a4f;
  cursor: pointer;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  padding: 22px 24px;
  text-align: center;
  text-decoration: none;
}

.label-accepted-state,
.label-unavailable-state,
.label-shipment-ready {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 16px;
}

.label-accepted-state { color: #075f40; background: #dff7ec; }
.label-accepted-state strong { font-size: 24px; }
.label-unavailable-state { color: #7a271a; background: #fee4e2; }
.label-shipment-ready { gap: 10px; border: 1px solid #b9d8cc; background: #f2fbf7; }
.label-shipment-ready a { font-size: 18px; padding: 16px 18px; }

@media (max-width: 640px) {
  .label-lookup-shell { padding-block: 28px 48px; }
  .label-lookup-card,
  .label-internal-card dl { grid-template-columns: 1fr; }
  .label-lookup-card > div:nth-child(odd) { border-right: 0; }
  .label-lookup-card .label-lookup-wide { grid-column: auto; }
  .label-picking-action { grid-template-columns: 1fr; }
  .label-part-photo { min-height: 180px; }
  .label-picking-action-body { padding: 22px; }
  .label-picking-progress { align-items: flex-start; flex-direction: column; gap: 4px; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #5b8cff;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(7, 24, 39, 0.08);
  background: rgba(245, 247, 249, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
}

.brand-light {
  color: var(--white);
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.public-nav a {
  text-decoration: none;
}

.public-nav a:hover {
  color: var(--acid-dark);
}

.public-nav .nav-login {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.nav-logout {
  margin: 0;
}

.hero {
  overflow: hidden;
  padding: 82px 0 96px;
  background:
    radial-gradient(circle at 85% 10%, rgba(184, 239, 25, 0.2), transparent 25%),
    linear-gradient(180deg, #f8fafb 0%, var(--paper) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  display: inline-block;
  color: #4a6400;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 24px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: #577400;
}

.hero-lead {
  max-width: 670px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 19px;
}

.part-search {
  max-width: 720px;
}

.part-search > label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
}

.search-row {
  display: flex;
  padding: 7px;
  border: 1px solid #ccd6dd;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 15px 50px rgba(7, 24, 39, 0.1);
}

.search-row input {
  min-width: 0;
  flex: 1;
  padding: 13px 16px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-row button,
.primary-button {
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  background: var(--acid);
  font-weight: 900;
  cursor: pointer;
}

.search-row button {
  padding: 0 26px;
}

.search-row button:hover,
.primary-button:hover {
  background: #c8ff26;
}

.part-search > p {
  margin: 9px 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.search-notice {
  display: grid;
  max-width: 720px;
  margin-top: 16px;
  padding: 15px 18px;
  border-left: 4px solid var(--acid-dark);
  border-radius: 10px;
  background: #eef8d2;
}

.search-notice span {
  color: var(--ink-soft);
  font-size: 13px;
}

.hero-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 40%),
    var(--ink);
  box-shadow: var(--shadow);
}

.panel-glow {
  position: absolute;
  right: -120px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(184, 239, 25, 0.22);
  filter: blur(30px);
}

.panel-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d9e2e8;
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 7px rgba(184, 239, 25, 0.12);
}

.part-visual {
  position: relative;
  display: grid;
  width: 280px;
  height: 280px;
  margin: 50px auto 36px;
  place-items: center;
}

.ring {
  position: absolute;
  border: 2px solid rgba(184, 239, 25, 0.36);
  border-radius: 50%;
}

.ring-one {
  inset: 0;
}

.ring-two {
  inset: 38px;
  border-style: dashed;
}

.hex-core {
  display: grid;
  width: 128px;
  height: 146px;
  place-items: center;
  color: var(--ink);
  background: var(--acid);
  clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
  font-size: 64px;
  font-weight: 1000;
}

.panel-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.panel-metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.panel-metrics strong,
.panel-metrics span {
  display: block;
}

.panel-metrics strong {
  font-size: 24px;
}

.panel-metrics span {
  color: #a9bac6;
  font-size: 12px;
}

.advantages {
  padding: 96px 0;
  background: var(--white);
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.stage-banner h2 {
  margin: 12px 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading p,
.stage-banner p {
  color: var(--muted);
  font-size: 18px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 46px;
}

.advantage-grid article {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, var(--white), #f4f7f8);
}

.card-number {
  color: var(--acid-dark);
  font-size: 12px;
  font-weight: 900;
}

.advantage-grid h3 {
  margin: 42px 0 10px;
  font-size: 24px;
}

.advantage-grid p {
  margin: 0;
  color: var(--muted);
}

.stage-banner {
  padding: 60px 0 80px;
  background: var(--white);
}

.stage-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 46px;
  border-radius: var(--radius-lg);
  background: #eef6d8;
}

.stage-banner h2 {
  margin-bottom: 5px;
}

.stage-banner p {
  margin: 0;
}

.stage-pill {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  padding: 42px 0;
  color: #b8c7d1;
  background: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: var(--white);
  font-size: 20px;
  letter-spacing: 0.08em;
}

.footer-inner p {
  margin: 6px 0 0;
  font-size: 13px;
}

.footer-inner > span {
  font-size: 12px;
}

.error-page {
  min-height: 65vh;
  padding-top: 110px;
  padding-bottom: 110px;
}

.error-page h1 {
  margin: 14px 0;
  font-size: clamp(42px, 6vw, 74px);
  letter-spacing: -0.05em;
}

.error-page p {
  max-width: 600px;
  color: var(--muted);
  font-size: 18px;
}

.primary-link {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--acid);
  font-weight: 800;
  text-decoration: none;
}

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

.catalog-page {
  min-height: 64vh;
  padding: 68px 0 96px;
  background:
    radial-gradient(circle at 92% 5%, rgba(184, 239, 25, 0.14), transparent 22%),
    var(--paper);
}

.catalog-shell {
  max-width: 1120px;
}

.catalog-heading {
  max-width: 720px;
}

.catalog-heading h1,
.product-copy h1,
.quick-order-page h1,
.success-page h1 {
  margin: 12px 0;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.catalog-heading p,
.quick-order-page > .narrow-shell > p,
.success-page p {
  color: var(--muted);
  font-size: 18px;
}

.catalog-search {
  margin-top: 36px;
}

.catalog-message {
  display: grid;
  gap: 3px;
  margin-top: 32px;
  padding: 20px 22px;
  border: 1px solid #dce6bf;
  border-left: 5px solid var(--acid-dark);
  border-radius: 14px;
  background: #f1f7df;
}

.catalog-message span {
  color: var(--ink-soft);
}

.catalog-message-error {
  border-color: #efc7c2;
  border-left-color: var(--danger);
  background: #fff1ef;
}

.catalog-message-warning {
  border-color: #f2d699;
  border-left-color: #b86e00;
  background: #fff8e7;
}

.result-heading,
.offers-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 58px;
}

.result-heading h2,
.offers-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.035em;
}

.result-heading p,
.offers-heading p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
}

.product-results {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.product-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 9px 30px rgba(7, 24, 39, 0.05);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.product-result:hover {
  border-color: #9abb37;
  transform: translateY(-2px);
}

.product-result-main,
.product-result-offer {
  display: grid;
  gap: 3px;
}

.product-result-main strong {
  font-size: 25px;
  line-height: 1.15;
}

.product-brand {
  color: #526d00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.product-result-main > span:last-child,
.product-result-offer small {
  color: var(--muted);
}

.product-result-offer {
  min-width: 220px;
  text-align: right;
}

.product-result-offer > span {
  font-size: 21px;
  font-weight: 900;
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.product-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 46px;
}

.product-photo-placeholder {
  display: grid;
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  color: #8a9aa5;
  background:
    linear-gradient(145deg, rgba(184, 239, 25, 0.12), transparent 55%),
    var(--white);
  text-align: center;
}

.product-catalog-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.product-catalog-photos img {
  width: min(100%, 24rem);
  max-height: 24rem;
  object-fit: contain;
  border-radius: 0.75rem;
  background: #fff;
}

.product-photo-placeholder span {
  color: #c4ced5;
  font-size: 38px;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.product-photo-placeholder small {
  margin-top: 8px;
}

.product-copy h1 {
  overflow-wrap: anywhere;
}

.product-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.offer-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.offer-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 9px 30px rgba(7, 24, 39, 0.05);
}

.offer-buy-form {
  display: grid;
  grid-template-columns: minmax(130px, 1.15fr) minmax(95px, 0.75fr) minmax(120px, 0.9fr) minmax(150px, 1fr) minmax(120px, 0.8fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.offer-kind,
.offer-availability,
.offer-price,
.offer-quantity,
.offer-total {
  display: grid;
  gap: 5px;
}

.offer-kind span,
.offer-availability span,
.offer-price span,
.offer-quantity > span,
.offer-total span {
  color: var(--muted);
  font-size: 12px;
}

.offer-kind strong,
.offer-availability strong,
.offer-price strong,
.offer-total strong {
  line-height: 1.2;
}

.quantity-control {
  display: grid;
  grid-template-columns: 36px 54px 36px;
  width: max-content;
  overflow: hidden;
  border: 1px solid #cbd5dc;
  border-radius: 11px;
  background: var(--white);
}

.quantity-control button,
.quantity-control input {
  min-height: 38px;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: center;
}

.quantity-control button {
  cursor: pointer;
  font-weight: 900;
}

.quantity-control button:hover {
  background: #eef6d8;
}

.quantity-control input {
  width: 54px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  appearance: textfield;
}

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

.offer-submit,
.quick-submit {
  min-height: 46px;
  padding: 0 22px;
}

.quick-order-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(7, 24, 39, 0.3);
}

.quick-order-dialog::backdrop {
  background: rgba(7, 24, 39, 0.67);
  backdrop-filter: blur(5px);
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-heading h2 {
  margin: 8px 0 0;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.dialog-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.quick-summary {
  display: grid;
  gap: 5px;
  margin: 24px 0;
  padding: 18px;
  border-radius: 14px;
  background: var(--paper);
}

.quick-summary span {
  color: var(--muted);
}

.quick-order-form {
  display: grid;
  gap: 18px;
}

.field-stack {
  display: grid;
  gap: 7px;
}

.field-stack label {
  font-size: 13px;
  font-weight: 800;
}

.field-stack input {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #bcc9d2;
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
}

.field-stack small {
  color: var(--muted);
}

.quick-submit {
  width: 100%;
  min-height: 52px;
}

.narrow-shell {
  max-width: 720px;
}

.quick-order-page h1,
.success-page h1 {
  max-width: 680px;
}

.quick-order-card {
  overflow: hidden;
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(7, 24, 39, 0.06);
}

.quick-product {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.quick-product h2 {
  margin: 5px 0;
  font-size: 32px;
}

.quick-product p {
  margin: 0;
  color: var(--muted);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}

.quick-facts div {
  display: grid;
  gap: 4px;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.quick-facts dd {
  margin: 0;
  font-weight: 800;
}

.quick-facts .quick-fact-total {
  grid-column: 1 / -1;
  border-bottom: 0;
}

.quick-fact-total dd {
  font-size: 24px;
}

.quick-order-form-page {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.field-errors,
.field-errors ul {
  padding: 0;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  list-style: none;
}

.success-page {
  text-align: center;
}

.success-mark {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  font-size: 38px;
  font-weight: 900;
}

.success-page .primary-link {
  margin-top: 28px;
}

.public-messages {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.message {
  padding: 14px 18px;
  border: 1px solid #dce6bf;
  border-radius: 12px;
  background: #f1f7df;
  font-weight: 700;
}

.message-error {
  border-color: #efc7c2;
  color: var(--danger);
  background: #fff1ef;
}

.message-warning {
  border-color: #f2d699;
  background: #fff8e7;
}

.auth-page,
.account-page,
.cart-page {
  min-height: 64vh;
  padding: 64px 0 92px;
  background:
    radial-gradient(circle at 92% 5%, rgba(184, 239, 25, 0.12), transparent 22%),
    var(--paper);
}

.auth-card {
  width: min(540px, calc(100% - 32px));
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 18px 60px rgba(7, 24, 39, 0.08);
}

.auth-card-wide {
  width: min(760px, calc(100% - 32px));
}

.auth-card h1,
.account-content h1,
.cart-heading h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.auth-card > p,
.account-content > p {
  color: var(--muted);
}

.account-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.account-form > p {
  display: grid;
  gap: 7px;
  margin: 0;
}

.account-form > p > label {
  font-size: 13px;
  font-weight: 800;
}

.account-form .field-stack input,
.account-form .field-stack select,
.account-form .field-stack textarea,
.account-form > p > input,
.account-form > p > select,
.account-form > p > textarea,
.checkout-form .field-stack select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #bcc9d2;
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
}

.account-form .field-stack textarea {
  min-height: 96px;
  resize: vertical;
}

.account-form > p > textarea {
  min-height: 96px;
  resize: vertical;
}

.account-form > p > input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  padding: 0;
  justify-self: start;
}

.account-form .field-stack select,
.checkout-form .field-stack select {
  cursor: pointer;
}

.account-form .primary-button,
.checkout-form .primary-button,
.auth-card > .primary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  text-decoration: none;
}

.field-error input,
.field-error select,
.field-error textarea {
  border-color: var(--danger) !important;
}

.errorlist {
  padding: 0;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  list-style: none;
}

.auth-links {
  margin: 24px 0 0;
  font-size: 14px;
}

.auth-links a,
.account-section-heading a,
.cart-line-main a,
.cart-line-actions a {
  color: #486300;
  font-weight: 800;
}

.account-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.account-nav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 5px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(7, 24, 39, 0.05);
}

.account-nav > strong {
  padding: 6px 10px 12px;
  font-size: 18px;
}

.account-nav a,
.account-nav .link-button {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.account-nav a:hover,
.account-nav .link-button:hover {
  background: #eef6d8;
}

.account-content {
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 16px 52px rgba(7, 24, 39, 0.06);
}

.account-content .catalog-message {
  margin-top: 20px;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.account-stats a {
  display: grid;
  gap: 2px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-decoration: none;
}

.account-stats strong {
  font-size: 30px;
}

.account-stats span,
.account-order-list span,
.order-public-lines span {
  color: var(--muted);
  font-size: 13px;
}

.account-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
}

.account-section-heading h2 {
  margin: 0;
}

.account-order-list,
.order-public-lines,
.address-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.account-order-list a,
.order-public-lines article,
.address-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfd;
  text-decoration: none;
}

.account-order-list a:hover {
  border-color: #9abb37;
}

.order-public-lines article > div {
  display: grid;
  gap: 3px;
}

.order-public-lines article > div:last-child {
  text-align: right;
}

.account-order-total {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 22px;
  font-size: 18px;
}

.account-order-total strong {
  font-size: 28px;
}

.address-card {
  align-items: flex-start;
}

.address-card > div:first-child {
  display: grid;
  gap: 5px;
}

.address-card p {
  margin: 0;
  color: var(--muted);
}

.address-card.is-muted {
  opacity: 0.62;
}

.address-actions,
.cart-select-actions,
.cart-line-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.address-actions form,
.cart-select-actions form,
.cart-line-actions form,
.account-nav form {
  margin: 0;
}

.link-button {
  padding: 0;
  border: 0;
  color: #486300;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
}

.danger-link {
  color: var(--danger);
}

.cart-shell {
  max-width: 1240px;
}

.cart-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}

.cart-heading .eyebrow {
  width: 100%;
}

.cart-heading h1 {
  margin-bottom: 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 22px;
}

.cart-lines,
.cart-group {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.cart-group + .cart-group {
  margin-top: 28px;
}

.cart-group h2 {
  margin: 0;
  font-size: 21px;
}

.cart-line {
  display: grid;
  grid-template-columns: 38px 78px minmax(180px, 1fr) 126px 136px;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(7, 24, 39, 0.04);
}

.cart-line.is-selected {
  border-color: #a6c94b;
  box-shadow: 0 0 0 2px rgba(184, 239, 25, 0.16);
}

.cart-line.is-unavailable {
  grid-template-columns: 78px minmax(0, 1fr);
  border-color: #efc7c2;
}

.cart-line.cart-line-guest {
  grid-template-columns: minmax(0, 1fr) 112px 136px;
}

.cart-line.cart-line-guest.is-unavailable {
  grid-template-columns: minmax(0, 1fr);
}

.cart-line-guest .cart-line-price {
  grid-column: auto;
}

.cart-line-select button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #9fb12d;
  border-radius: 10px;
  color: var(--ink);
  background: #eef6d8;
  cursor: pointer;
  font-weight: 900;
}

.cart-product-placeholder {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: #8a9aa5;
  background: linear-gradient(145deg, #f7fade, var(--paper));
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.cart-line-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cart-line-main > a,
.cart-line-main > strong {
  overflow-wrap: anywhere;
}

.cart-line-main small,
.cart-line-price span,
.cart-quantity label {
  color: var(--muted);
  font-size: 12px;
}

.cart-line-actions {
  margin-top: 6px;
  font-size: 12px;
}

.cart-quantity {
  display: grid;
  gap: 5px;
}

.cart-quantity input {
  width: 100%;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #bcc9d2;
  border-radius: 9px;
}

.cart-quantity button {
  padding: 0;
  border: 0;
  color: #486300;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.cart-line-price {
  display: grid;
  gap: 4px;
  text-align: right;
}

.cart-line-price strong {
  font-size: 20px;
}

.cart-summary {
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 14px 44px rgba(7, 24, 39, 0.08);
}

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

.cart-summary dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.cart-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.cart-summary dd {
  margin: 0;
  font-weight: 800;
}

.cart-summary-total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  font-size: 20px;
}

.checkout-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.checkout-form fieldset {
  padding: 0;
  border: 0;
  margin: 0;
}

.checkout-form legend {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.checkout-form fieldset > div {
  display: grid;
  gap: 7px;
}

.checkout-form fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-form .primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 480px;
  }

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

  .advantage-grid article {
    min-height: 190px;
  }

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

  .offer-submit {
    width: 100%;
  }

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

  .cart-summary {
    position: static;
  }

  .cart-line {
    grid-template-columns: 38px 68px minmax(160px, 1fr) 116px;
  }

  .cart-line-price {
    grid-column: 3 / -1;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 72px;
  }

  .brand {
    font-size: 20px;
  }

  .public-nav {
    gap: 8px;
  }

  .public-nav > .nav-marketing {
    display: none;
  }

  .public-nav .nav-login {
    padding: 9px 11px;
    font-size: 12px;
  }

  .account-shell {
    grid-template-columns: 1fr;
  }

  .account-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 12px;
    white-space: nowrap;
  }

  .account-nav > strong {
    display: none;
  }

  .account-nav a,
  .account-nav .link-button {
    width: auto;
  }

  .account-content {
    padding: 24px;
  }

  .account-stats {
    grid-template-columns: 1fr;
  }

  .account-order-list a,
  .order-public-lines article,
  .address-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-public-lines article > div:last-child {
    text-align: left;
  }

  .cart-line,
  .cart-line.is-unavailable {
    grid-template-columns: 34px 62px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .cart-line.is-unavailable .cart-product-placeholder {
    grid-column: 1 / 3;
    width: 62px;
  }

  .cart-line.is-unavailable .cart-line-main {
    grid-column: 3;
  }

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

  .cart-line-guest .cart-line-main,
  .cart-line-guest.is-unavailable .cart-line-main,
  .cart-line-guest .cart-quantity,
  .cart-line-guest .cart-line-price {
    grid-column: 1 / -1;
  }

  .cart-quantity {
    grid-column: 2 / 4;
    grid-template-columns: minmax(0, 110px) auto;
    align-items: center;
  }

  .cart-quantity label {
    grid-column: 1 / -1;
  }

  .cart-line-price {
    grid-column: 2 / 4;
    text-align: left;
  }

  .hero {
    padding: 56px 0 68px;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .search-row {
    display: grid;
    gap: 7px;
  }

  .search-row input {
    min-height: 52px;
  }

  .search-row button {
    min-height: 48px;
  }

  .hero-panel {
    min-height: 430px;
    padding: 20px;
  }

  .part-visual {
    width: 230px;
    height: 230px;
    margin-top: 46px;
    margin-bottom: 28px;
  }

  .hex-core {
    width: 105px;
    height: 120px;
    font-size: 52px;
  }

  .panel-metrics strong {
    font-size: 20px;
  }

  .advantages {
    padding: 72px 0;
  }

  .stage-banner-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage-banner-inner {
    padding: 28px;
  }

  .catalog-page {
    padding: 48px 0 72px;
  }

  .result-heading,
  .offers-heading,
  .product-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-result-offer {
    min-width: 0;
    text-align: left;
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-photo-placeholder {
    width: min(100%, 280px);
  }

  .offer-buy-form {
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
  }

  .offer-submit {
    grid-column: 1 / -1;
  }

  .quick-order-dialog {
    padding: 22px;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .quick-facts .quick-fact-total {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .offer-buy-form {
    grid-template-columns: 1fr;
  }

  .offer-submit {
    grid-column: auto;
  }
}

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

/* Minimal storefront home */
body.home-page {
  --home-background: #f3f3f0;
  --home-surface: #ffffff;
  --home-ink: #11110f;
  --home-muted: #696962;
  --home-line: #d7d7d0;
  --home-red: #c91f2b;
  --home-red-hover: #ad1721;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--home-ink);
  background: var(--home-background);
}

.home-page #main-content {
  min-height: 100vh;
  min-height: 100svh;
}

.home-header {
  position: absolute;
  z-index: 20;
  top: 22px;
  right: 0;
  left: 0;
}

.home-header-shell {
  width: min(1120px, calc(100% - 56px));
  height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 10px 8px 25px;
  border-radius: 999px;
  margin-inline: auto;
  color: #f7f7f3;
  background: var(--home-ink);
}

.home-brand {
  justify-self: start;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.home-brand span,
.home-account span:last-child,
.home-landing h1 span {
  color: var(--home-red);
}

.home-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 44px);
}

.home-navigation a,
.home-account {
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.home-navigation a {
  color: #ddddda;
}

.home-navigation a:hover {
  color: #ffffff;
}

.home-account-form {
  justify-self: end;
  margin: 0;
}

.home-account {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: var(--home-ink);
  background: var(--home-background);
  cursor: pointer;
}

.home-account:hover {
  background: var(--home-surface);
}

.home-account span:last-child {
  font-size: 15px;
}

.home-landing {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 150px 36px 102px;
  overflow: hidden;
}

.home-hero-content {
  width: min(980px, 100%);
  transform: translateY(-18px);
  text-align: center;
}

.home-eyebrow {
  margin: 0 0 22px;
  color: var(--home-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-landing h1 {
  margin: 0;
  font-size: clamp(46px, 6.2vw, 82px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
  white-space: nowrap;
}

.home-search {
  width: min(860px, 100%);
  height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  padding: 7px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  margin: 54px auto 0;
  background: var(--home-surface);
  box-shadow: 0 18px 48px rgba(17, 17, 15, 0.08);
}

.home-search input {
  min-width: 0;
  height: 66px;
  padding: 0 25px;
  border: 0;
  outline: 0;
  color: var(--home-ink);
  background: transparent;
  font-size: 16px;
}

.home-search input::placeholder {
  color: var(--home-muted);
  opacity: 1;
}

.home-search button {
  height: 66px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--home-red);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.home-search button:hover {
  background: var(--home-red-hover);
}

.home-search-notes {
  width: min(820px, calc(100% - 24px));
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 14px auto 0;
  color: var(--home-muted);
  font-size: 11px;
}

.home-search-notes a {
  color: var(--home-ink);
  text-underline-offset: 3px;
}

.home-site-footer {
  position: absolute;
  z-index: 10;
  right: 34px;
  bottom: 0;
  left: 34px;
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 15px;
  border-top: 1px solid var(--home-line);
}

.home-site-footer a {
  color: var(--home-muted);
  font-size: 11px;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .home-header {
    top: 16px;
  }

  .home-header-shell {
    width: calc(100% - 28px);
    height: auto;
    min-height: 92px;
    grid-template-columns: 1fr auto;
    gap: 9px 16px;
    padding: 10px 11px 10px 18px;
    border-radius: 28px;
  }

  .home-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 12px;
    padding: 0 5px 2px;
  }

  .home-account {
    min-height: 36px;
    gap: 12px;
    padding: 0 14px;
  }

  .home-landing {
    min-height: 790px;
    padding: 174px 17px 92px;
  }

  .home-hero-content {
    transform: translateY(-26px);
  }

  .home-landing h1 {
    font-size: clamp(38px, 10vw, 56px);
    white-space: normal;
  }

  .home-search {
    height: 68px;
    grid-template-columns: minmax(0, 1fr) 92px;
    padding: 5px;
    margin-top: 44px;
  }

  .home-search input {
    height: 56px;
    padding: 0 17px;
  }

  .home-search button {
    height: 56px;
    padding: 0 16px;
  }

  .home-search-notes {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    text-align: left;
  }

  .home-site-footer {
    right: 17px;
    left: 17px;
  }
}

@media (max-width: 420px) {
  .home-navigation a,
  .home-account {
    font-size: 11px;
  }

  .home-account span:first-child {
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-landing h1 {
    font-size: 42px;
  }

  .home-search {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .home-search input {
    padding: 0 14px;
  }

  .home-search button {
    padding: 0 12px;
  }
}

/* Compact public search results */
body.search-results-page {
  --home-background: #f3f3f0;
  --home-surface: #ffffff;
  --home-ink: #11110f;
  --home-muted: #696962;
  --home-line: #d7d7d0;
  --home-red: #c91f2b;
  --home-red-hover: #ad1721;
  min-height: 100vh;
  color: var(--home-ink);
  background: var(--home-background);
}

.search-results-page .search-results-header {
  position: absolute;
}

.search-results-stage {
  min-height: 100vh;
  padding: 124px 28px 72px;
}

.search-results-shell {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.results-search {
  height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  padding: 6px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: var(--home-surface);
  box-shadow: 0 12px 34px rgba(17, 17, 15, 0.06);
}

.results-search input {
  min-width: 0;
  padding: 0 22px;
  border: 0;
  outline: 0;
  color: var(--home-ink);
  background: transparent;
  font-size: 14px;
}

.results-search input::placeholder {
  color: var(--home-muted);
  opacity: 1;
}

.results-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--home-red);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.results-search button:hover {
  background: var(--home-red-hover);
}

.results-search-help {
  margin: 8px 20px 0;
  color: var(--home-muted);
  font-size: 11px;
}

.results-titlebar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--home-line);
  margin-top: 32px;
}

.results-titlebar h1 {
  margin: 0;
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.results-titlebar p,
.results-titlebar > span {
  margin: 7px 0 0;
  color: var(--home-muted);
  font-size: 12px;
}

.results-titlebar > span {
  flex: 0 0 auto;
  margin-bottom: 2px;
}

.results-titlebar-empty {
  margin-top: 32px;
}

.exact-results {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.exact-result {
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 14px;
  background: var(--home-surface);
}

.exact-result-header {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--home-line);
}

.exact-result-identity {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.exact-match-label {
  flex: 0 0 auto;
  color: #1d5ab8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exact-match-label > span {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentcolor;
  border-radius: 50%;
  margin-right: 6px;
  font-size: 11px;
}

.exact-result h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.15;
}

.exact-result h2 a,
.exact-result-summary {
  text-decoration: none;
}

.exact-result h2 a:hover,
.exact-result-summary:hover strong {
  color: var(--home-red);
}

.exact-result-name {
  min-width: 0;
  overflow: hidden;
  color: var(--home-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exact-result-summary {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
}

.exact-result-summary span {
  color: var(--home-muted);
}

.offer-grid-head,
.search-offer-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.45fr) minmax(130px, 1.1fr) minmax(92px, 0.72fr) minmax(124px, 0.85fr) 124px;
  align-items: center;
  column-gap: 14px;
}

.offer-grid-head {
  min-height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--home-line);
  color: var(--home-muted);
  font-size: 10px;
}

.offer-grid-head span:nth-child(3) {
  text-align: center;
}

.search-offer-row {
  position: relative;
  min-height: 64px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid #e4e4df;
  margin: 0;
  background: #ffffff;
}

.compact-offer-list > .search-offer-row:last-child {
  border-bottom: 0;
}

.search-offer-row.is-stock {
  background: #edf6ed;
  box-shadow: inset 3px 0 0 #21834f;
}

.search-offer-availability,
.search-offer-delivery,
.search-offer-price,
.search-offer-quantity {
  min-width: 0;
}

.search-offer-availability {
  font-size: 13px;
}

.search-offer-availability strong {
  display: inline-flex;
  align-items: center;
  color: #126b3c;
}

.search-offer-availability > span {
  color: #494943;
}

.stock-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  margin-right: 8px;
  background: #21834f;
}

.search-offer-delivery {
  display: grid;
  gap: 1px;
  font-size: 13px;
}

.search-offer-delivery small {
  color: var(--home-muted);
  font-size: 10px;
}

.search-offer-price {
  text-align: center;
}

.search-offer-price strong {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.compact-quantity {
  grid-template-columns: 30px 42px 30px;
  border-color: #c9c9c3;
  border-radius: 9px;
}

.compact-quantity button,
.compact-quantity input {
  min-height: 34px;
}

.compact-quantity input {
  width: 42px;
  font-size: 13px;
}

.search-offer-submit {
  position: relative;
  min-height: 42px;
  overflow: hidden;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: var(--home-red);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.search-offer-submit:hover {
  background: var(--home-red-hover);
}

.purchase-action-text,
.purchase-action-total {
  transition: opacity 170ms ease, transform 170ms ease;
}

.purchase-action-total {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(6px);
  font-variant-numeric: tabular-nums;
}

.search-offer-submit[data-show-total="true"] .purchase-action-text {
  opacity: 0;
  transform: translateY(-6px);
}

.search-offer-submit[data-show-total="true"] .purchase-action-total {
  opacity: 1;
  transform: translateY(0);
}

.search-offer-submit[data-show-total="true"]:hover .purchase-action-text,
.search-offer-submit[data-show-total="true"]:focus-visible .purchase-action-text {
  opacity: 1;
  transform: translateY(0);
}

.search-offer-submit[data-show-total="true"]:hover .purchase-action-total,
.search-offer-submit[data-show-total="true"]:focus-visible .purchase-action-total {
  opacity: 0;
  transform: translateY(6px);
}

.more-offers {
  border-top: 1px solid var(--home-line);
}

.more-offers summary {
  padding: 11px 14px;
  color: #4f4f49;
  background: #f7f7f4;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.more-offers[open] summary {
  border-bottom: 1px solid var(--home-line);
}

.all-offers-link {
  display: block;
  padding: 12px 14px;
  border-top: 1px solid var(--home-line);
  color: #4f4f49;
  background: #f7f7f4;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-underline-offset: 3px;
}

.results-state {
  display: grid;
  gap: 2px;
  padding: 17px 19px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  margin-top: 24px;
  background: var(--home-surface);
}

.results-state span {
  color: var(--home-muted);
  font-size: 12px;
}

.results-state-error {
  border-color: #ddbbb8;
}

.search-results-page .quick-order-dialog {
  color: var(--home-ink);
}

.search-results-page .quick-submit {
  color: #ffffff;
  background: var(--home-red);
}

.search-results-page .quick-submit:hover {
  background: var(--home-red-hover);
}

@media (max-width: 920px) {
  .exact-result-header {
    align-items: flex-start;
  }

  .exact-result-identity {
    display: grid;
    gap: 4px;
  }

  .exact-result-name {
    white-space: normal;
  }

  .offer-grid-head,
  .search-offer-row {
    grid-template-columns: minmax(145px, 1.25fr) minmax(115px, 1fr) minmax(80px, 0.75fr) 104px 112px;
    column-gap: 10px;
  }
}

@media (max-width: 760px) {
  .search-results-stage {
    padding: 132px 14px 54px;
  }

  .results-search {
    height: 58px;
    grid-template-columns: minmax(0, 1fr) 90px;
    padding: 5px;
  }

  .results-search input {
    padding: 0 15px;
  }

  .results-search-help {
    margin-inline: 8px;
  }

  .results-titlebar,
  .exact-result-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-titlebar {
    gap: 2px;
  }

  .exact-result-header {
    gap: 10px;
  }

  .exact-result-summary {
    width: 100%;
    justify-content: space-between;
  }

  .offer-grid-head {
    display: none;
  }

  .search-offer-row {
    grid-template-columns: 1fr 1fr;
    gap: 13px 16px;
    padding: 14px;
  }

  .search-offer-row [data-column]::before {
    display: block;
    margin-bottom: 3px;
    color: var(--home-muted);
    content: attr(data-column);
    font-size: 9px;
  }

  .search-offer-price {
    text-align: left;
  }

  .search-offer-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .search-results-stage {
    padding-top: 142px;
  }

  .results-titlebar h1 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .purchase-action-text,
  .purchase-action-total {
    transition: none;
  }
}

/* Product detail in the compact storefront system */
.product-detail-stage {
  min-height: 100vh;
  padding: 124px 28px 72px;
}

.product-detail-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 25px 4px 11px;
  color: var(--home-muted);
  font-size: 10px;
}

.product-detail-breadcrumbs a {
  color: inherit;
  text-underline-offset: 3px;
}

.product-detail-breadcrumbs a:hover {
  color: var(--home-red);
}

.product-detail-card {
  margin-top: 0;
}

.product-detail-header {
  min-height: 82px;
}

.product-detail-identity {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.product-detail-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product-detail-title h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.product-detail-title p {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: var(--home-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail-summary {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 3px;
}

.product-detail-summary > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
}

.product-detail-summary span,
.product-detail-summary small {
  color: var(--home-muted);
}

.product-detail-summary small {
  font-size: 9px;
}

.product-empty-state {
  border: 0;
  border-radius: 0;
  margin: 0;
}

.product-offer-limit {
  padding: 11px 14px;
  border-top: 1px solid var(--home-line);
  margin: 0;
  color: var(--home-muted);
  background: #f7f7f4;
  font-size: 11px;
  text-align: center;
}

.miles-catalog-facts {
  padding: 24px;
  border: 1px solid var(--home-line);
  margin-top: 18px;
  background: #fff;
}

.miles-catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.miles-catalog-heading h2,
.miles-package-title {
  margin: 5px 0 0;
  font-size: 17px;
}

.miles-source-status {
  padding: 5px 9px;
  border: 1px solid var(--home-line);
  color: var(--home-muted);
  font-size: 11px;
}

.miles-source-categories,
.miles-package-card dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 18px;
  margin: 18px 0 0;
}

.miles-source-categories div,
.miles-package-card dl div {
  min-width: 0;
}

.miles-source-categories dt,
.miles-package-card dt {
  color: var(--home-muted);
  font-size: 10px;
}

.miles-source-categories dd,
.miles-package-card dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.miles-package-title {
  margin-top: 24px;
}

.miles-package-note {
  margin: 6px 0 0;
  color: var(--home-muted);
  font-size: 11px;
}

.miles-package-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.miles-package-card {
  padding: 16px;
  border: 1px solid var(--home-line);
  background: #fbfbf9;
}

.miles-package-card h4 {
  margin: 0;
  font-size: 13px;
}

.miles-package-card dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.miles-barcode {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .product-detail-stage {
    padding: 132px 14px 54px;
  }

  .product-detail-header,
  .product-detail-identity,
  .product-detail-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-detail-header,
  .product-detail-identity {
    gap: 10px;
  }

  .product-detail-title {
    gap: 5px;
  }

  .product-detail-title p {
    overflow: visible;
    text-overflow: initial;
    white-space: normal;
  }

  .product-detail-summary {
    width: 100%;
    justify-items: start;
  }
}

@media (max-width: 430px) {
  .product-detail-stage {
    padding-top: 142px;
  }

  .miles-catalog-facts {
    padding: 18px 14px;
  }

  .miles-package-card dl {
    grid-template-columns: 1fr;
  }
}

.technical-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:1rem; }
.technical-facts dt { color:#5a626c; font-size:.85rem; }
.technical-facts dd { margin:.25rem 0 0; font-weight:600; overflow-wrap:anywhere; }
