:root {
  --bg: #eef1ee;
  --card: #ffffff;
  --ink: #12211c;
  --muted: #5c6b64;
  --line: rgba(18, 33, 28, 0.14);
  --accent-green: #2cb22c;
  --accent-blue: #4456a6;
  --accent-orange: #eb4a17;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(18, 33, 28, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--bg);
  font-family: "Archivo", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

.wrap {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

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

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1;
  transform: scaleX(1.12);
  transform-origin: left center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  color: var(--accent-orange);
  font-weight: 600;
  content: "+";
}

.eyebrow--light {
  color: rgba(244, 246, 244, 0.64);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  color: #f4f6f4;
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: #24463a;
  box-shadow: 0 10px 20px rgba(18, 33, 28, 0.16);
  transform: translateY(-1px);
}

.button--wide {
  width: 100%;
}

.button--light {
  color: var(--ink);
  background: #f4f6f4;
}

.button--light:hover {
  background: #ffffff;
}

.button--outline {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.button--outline:hover {
  background: #fff;
}

/* Acceso */

.access-gate {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: minmax(340px, 0.9fr) minmax(440px, 1.1fr);
  background: var(--card);
}

.access-gate--single {
  grid-template-columns: 1fr;
}

.access-gate--single .access-gate__form-wrap {
  min-height: 100vh;
  min-height: 100dvh;
}

.access-gate__brand {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 5vw, 72px);
  overflow: hidden;
  color: #f4f6f4;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(244, 246, 244, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 246, 244, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 12% 12%, rgba(44, 178, 44, 0.22), transparent 30%),
    radial-gradient(circle at 85% 72%, rgba(68, 86, 166, 0.28), transparent 36%);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.access-gate__brand::after {
  position: absolute;
  right: -100px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(244, 246, 244, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(244, 246, 244, 0.035),
    0 0 0 112px rgba(244, 246, 244, 0.025);
  content: "";
}

.access-gate__wordmark {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.07em;
  transform: scaleX(1.12);
  transform-origin: left center;
}

.access-gate__statement {
  position: relative;
  z-index: 1;
  max-width: 530px;
  margin: auto 0;
  padding: 80px 0;
}

.access-gate__statement p {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.access-gate__marks {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.access-gate__mark {
  padding: 8px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-gate__mark--green {
  color: #77dd77;
}

.access-gate__mark--blue {
  color: #9dabf2;
}

.access-gate__mark--orange {
  color: #ff8c68;
}

.access-gate__form-wrap {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(28px, 6vw, 96px);
  background: var(--bg);
}

.access-card {
  width: min(100%, 430px);
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(18, 33, 28, 0.12);
}

.access-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--bg);
}

.access-card__icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.access-card h1 {
  margin-bottom: 13px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1;
}

.access-card__intro {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.password-field {
  position: relative;
  margin-bottom: 14px;
}

.password-field input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(18, 33, 28, 0.28);
  border-radius: 9px;
  background: #fff;
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.password-field input:focus {
  border-color: var(--ink);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(18, 33, 28, 0.1);
}

.password-field input[aria-invalid="true"] {
  border-color: #bd2f2f;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--ink);
  background: var(--bg);
}

.form-error {
  margin: -2px 0 16px;
  color: #a62525;
  font-size: 0.78rem;
  line-height: 1.45;
}

.access-card__help {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.access-card__help a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.noscript-message {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 16px;
  border-radius: 9px;
  color: #fff;
  background: #a62525;
  text-align: center;
}

/* Catálogo */

.main-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}

.main-header > form {
  justify-self: end;
  margin: 0;
}

.catalog-label {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  min-height: 40px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.text-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.page-head-band {
  background-image: linear-gradient(to bottom, rgba(238, 241, 238, 0) 45%, #eef1ee 94%),
    linear-gradient(rgba(18, 33, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 33, 28, 0.045) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: end;
  gap: 32px;
  padding: clamp(48px, 7vh, 84px) 0 clamp(46px, 7vh, 72px);
}

.page-head h1 {
  max-width: 640px;
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 3.6vw, 3.3rem);
  line-height: 1.05;
}

.page-head h1 em {
  padding-bottom: 4px;
  font-style: normal;
  background-image: linear-gradient(
    90deg,
    var(--accent-green),
    var(--accent-blue),
    var(--accent-orange)
  );
  background-repeat: no-repeat;
  background-position: 0 96%;
  background-size: 100% 4px;
}

.page-head .lead {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.page-head__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 6px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-align: right;
  text-transform: uppercase;
}

.page-head__meta b {
  color: var(--ink);
  font-weight: 600;
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  align-items: end;
  gap: 48px;
  padding-top: clamp(48px, 7vh, 74px);
  padding-bottom: clamp(42px, 6vh, 64px);
  border-bottom: 1px solid var(--line);
}

.catalog-controls__copy .eyebrow {
  margin-bottom: 9px;
}

.catalog-controls__copy > p:last-child {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 21px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.7;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 54px;
  padding: 0 46px;
  border: 1px solid rgba(18, 33, 28, 0.24);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(18, 33, 28, 0.05);
  font-size: 0.92rem;
}

.search-field input:focus {
  border-color: var(--ink);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(18, 33, 28, 0.1), 0 8px 24px rgba(18, 33, 28, 0.05);
}

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

.results-count {
  min-height: 1em;
  margin: 0 2px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.results-toolbar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 9px;
}

.view-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.58);
}

.view-switch__button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 0.66rem;
  font-weight: 600;
  cursor: pointer;
}

.view-switch__button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.view-switch__button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 2px 8px rgba(18, 33, 28, 0.1);
}

.view-switch__button:hover {
  color: var(--ink);
}

.line-section {
  padding: clamp(54px, 8vh, 80px) 0 0;
}

.line-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--brand-color);
}

.line-head h2 {
  margin: 0;
  line-height: 0;
}

.line-head h2 img {
  display: block;
  width: auto;
  height: 46px;
}

.line-head > p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.line-head .mono {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.product-card:hover {
  box-shadow: 0 24px 48px rgba(18, 33, 28, 0.12);
  transform: translateY(-4px);
}

.product-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f4f6f4;
}

.product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__media--group {
  background-image: radial-gradient(circle at 50% 42%, #ffffff 0, #f5f7fb 60%, #e8ebf4 100%);
}

.product-card__media--group img {
  padding: 22px 10px;
  object-fit: contain;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.product-card__copy,
.product-card__meta {
  display: flex;
  flex-direction: column;
}

.product-card__copy {
  gap: 8px;
}

.product-card__meta {
  margin-top: auto;
}

.product-card__sku {
  color: var(--brand-text, var(--brand-color));
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-card__foot .mono {
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-card__foot a {
  padding-bottom: 2px;
  border-bottom: 2px solid var(--brand-color);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-card__foot a:hover {
  color: var(--brand-text, var(--brand-color));
}

.empty-state {
  padding-top: clamp(70px, 10vh, 110px);
  padding-bottom: clamp(20px, 3vh, 40px);
  text-align: center;
}

.empty-state__symbol {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.2rem;
}

.empty-state h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.empty-state p {
  margin-bottom: 24px;
  color: var(--muted);
}

.band-section {
  padding: clamp(64px, 9vh, 96px) 0;
}

.catalogue-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 36px;
  padding: clamp(36px, 5vw, 60px);
  border-radius: 20px;
  color: #f4f6f4;
  background: var(--ink);
}

.catalogue-band h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.08;
}

.catalogue-band p:not(.eyebrow) {
  max-width: 490px;
  margin: 0;
  color: rgba(244, 246, 244, 0.66);
  font-size: 0.94rem;
  line-height: 1.6;
}

.catalogue-band__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalogue-band__actions .mono {
  color: rgba(244, 246, 244, 0.55);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.footer {
  padding: 60px 0 26px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 40px;
}

.footer-intro {
  max-width: 320px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-col .mono {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 52px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .access-gate {
    grid-template-columns: minmax(280px, 0.75fr) minmax(400px, 1.25fr);
  }

  .access-gate__statement p {
    font-size: clamp(2rem, 5vw, 3.2rem);
  }

  .page-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .page-head__meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
    text-align: left;
  }

  .catalog-controls {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .line-head {
    grid-template-columns: auto 1fr;
  }

  .line-head > p {
    grid-column: 1 / -1;
    order: 3;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalogue-band {
    grid-template-columns: 1fr;
  }

  .catalogue-band__actions {
    align-items: flex-start;
  }

  .catalogue-band__actions .mono {
    text-align: left;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body.is-locked {
    overflow: auto;
  }

  .access-gate {
    min-height: 100vh;
    grid-template-columns: 1fr;
  }

  .access-gate__brand {
    min-height: auto;
    padding: 24px;
  }

  .access-gate__statement {
    padding: 52px 0 42px;
  }

  .access-gate__statement p {
    max-width: 520px;
    font-size: clamp(2.1rem, 9vw, 3.5rem);
  }

  .access-gate__marks {
    display: none;
  }

  .access-gate__form-wrap {
    padding: 24px 18px 44px;
  }

  .access-card {
    margin-top: -14px;
  }

  .main-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px 0;
  }

  .catalog-label {
    display: none;
  }

  .catalog-controls {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 32px, 1180px);
  }

  .brand {
    transform: none;
  }

  .text-button {
    gap: 6px;
    font-size: 0.62rem;
  }

  .page-head h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.4rem);
  }

  .line-head {
    gap: 14px;
  }

  .line-head h2 img {
    height: 34px;
  }

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

  .catalogue-band {
    padding: 30px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Catálogo normalizado */

.filter-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding-top: 2px;
}

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

.filter-row label > span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-row select {
  width: 100%;
  min-height: 44px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--card);
}

.filter-reset,
.product-card__foot button {
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  border-bottom: 2px solid var(--brand-color, var(--ink));
  color: var(--ink);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-reset {
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.product-card__foot button::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: var(--radius);
  content: "";
}

.product-card__foot button:focus-visible {
  outline: 0;
}

.product-card__foot button:focus-visible::after {
  box-shadow: inset 0 0 0 3px var(--accent-orange);
}

.catalog-status {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 64px;
  padding-bottom: 36px;
}

.catalog-status__dot {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: catalog-spin 800ms linear infinite;
}

.catalog-status > span:not(.catalog-status__dot) {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #8f2727;
  background: #ffe9e9;
  font-weight: 700;
}

.catalog-status h2 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.catalog-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.catalog-status--error {
  align-items: flex-start;
}

.catalog-status--error .button {
  margin-top: 14px;
}

@keyframes catalog-spin {
  to {
    transform: rotate(360deg);
  }
}

.line-section {
  --brand-color: #315f51;
  --brand-text: #315f51;
}

.line-section--purespet {
  --brand-color: #158f89;
  --brand-text: #0e716d;
}

.line-section--paiqipet {
  --brand-color: #b56e42;
  --brand-text: #8a4b26;
}

.line-section--portpets-pending {
  --brand-color: #58758b;
  --brand-text: #405e75;
}

.line-section--mima-ipeti {
  --brand-color: #3f7486;
  --brand-text: #315d6b;
}

.line-section--ningbo-zhehe {
  --brand-color: #6c8157;
  --brand-text: #53673f;
}

.supplier-wordmark {
  display: block;
  max-width: 300px;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.product-card__media {
  position: relative;
  background-image: radial-gradient(circle at 50% 45%, #ffffff, #eef2ef 78%);
}

.product-card__media img {
  padding: 12px;
  object-fit: contain;
}

.status-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(18, 33, 28, 0.16);
  border-radius: 999px;
  color: #31443c;
  background: rgba(255, 255, 255, 0.92);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card__media > .status-badge {
  position: absolute;
  top: 11px;
  right: 11px;
}

.status-badge--needs-confirmation {
  color: #7e4a05;
  background: #fff3d6;
}

.status-badge--quoted {
  color: #31521f;
  background: #eaf5df;
}

.status-badge--candidate {
  color: #40556a;
  background: #e9f0f6;
}

.product-card__supplier {
  color: var(--brand-text, var(--ink));
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__price {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding: 14px 0 12px;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.product-card__price span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__price strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.product-card__price small {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.35;
}

.product-card__price--missing strong {
  font-size: 0.88rem;
}

#catalogSections[data-view="row"] .product-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

#catalogSections[data-view="row"] .product-card {
  display: grid;
  min-height: 224px;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
}

#catalogSections[data-view="row"] .product-card:hover {
  transform: translateX(3px);
}

#catalogSections[data-view="row"] .product-card__media {
  height: 100%;
  min-height: 224px;
  aspect-ratio: auto;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

#catalogSections[data-view="row"] .product-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.36fr);
  gap: 28px;
  padding: 22px 24px;
}

#catalogSections[data-view="row"] .product-card__meta {
  margin-top: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

#catalogSections[data-view="row"] .product-card__price {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#catalogSections[data-view="row"] .product-card__foot {
  margin-top: auto;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg);
  font-size: 0.65rem;
}

.feature-list--large li {
  padding: 7px 10px;
  font-size: 0.72rem;
}

.product-dialog {
  width: min(1180px, calc(100% - 36px));
  max-height: min(900px, calc(100dvh - 36px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 32px 100px rgba(7, 17, 13, 0.34);
}

.product-dialog::backdrop {
  background: rgba(8, 18, 14, 0.72);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: sticky;
  z-index: 5;
  top: 12px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 12px 12px -54px 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  min-height: 620px;
}

.dialog-gallery {
  min-width: 0;
  padding: clamp(22px, 4vw, 48px);
  background: var(--bg);
}

.dialog-hero {
  position: relative;
  display: grid;
  min-height: 330px;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.dialog-hero a {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  cursor: zoom-in;
}

.dialog-hero img {
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
}

.dialog-hero a > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(18, 33, 28, 0.78);
  font-size: 0.55rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dialog-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 420px;
  margin-top: 10px;
  overflow-y: auto;
}

.dialog-thumbnails button {
  display: grid;
  grid-template-rows: 64px auto;
  gap: 5px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.dialog-thumbnails button[aria-current="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.dialog-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dialog-thumbnails button > span {
  padding: 0 3px 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.48rem;
  line-height: 1.25;
  text-align: left;
  text-overflow: ellipsis;
}

.dialog-image-caption {
  margin: 9px 2px 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  line-height: 1.45;
}

.dialog-copy {
  min-width: 0;
  padding: clamp(34px, 5vw, 68px);
}

.dialog-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dialog-copy h2 {
  max-width: 640px;
  margin-bottom: 8px;
  padding-right: 30px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.dialog-model {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog-summary {
  max-width: 680px;
  margin-bottom: 20px;
  color: #33473f;
  font-size: 1rem;
  line-height: 1.7;
}

.dialog-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.dialog-section .eyebrow {
  margin-bottom: 12px;
}

.dialog-section--pricing {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(108, 129, 87, 0.32);
  border-radius: 12px;
  color: var(--ink);
  background: #f2f6ed;
  font-variant-numeric: tabular-nums;
}

.dialog-section--pricing .eyebrow {
  margin-bottom: 0;
}

.dialog-section--pricing > strong {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.1;
}

.dialog-section--pricing > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.dialog-section--pricing-missing {
  border-color: var(--line);
  background: var(--bg);
}

.pricing-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-list li {
  padding: 10px 12px;
  border: 1px solid rgba(108, 129, 87, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.dialog-section--private {
  padding: 22px;
  border: 1px solid rgba(108, 129, 87, 0.32);
  border-radius: 12px;
  background: #f2f6ed;
}

.dialog-section--review {
  padding: 22px;
  border: 1px solid #ead49f;
  border-radius: 12px;
  background: #fff8e7;
}

.dialog-section--provenance {
  font-size: 0.76rem;
}

.dialog-small {
  font-size: 0.74rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.spec-grid > div {
  padding: 12px;
  background: var(--card);
}

.spec-grid dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.spec-grid dd {
  margin: 0;
  color: var(--ink);
}

.variant-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.variant-table-wrap:focus-visible {
  outline: 3px solid var(--brand-color);
  outline-offset: 3px;
}

.variant-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.74rem;
  line-height: 1.45;
}

.variant-table th,
.variant-table td {
  min-width: 120px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.variant-table th {
  color: var(--muted);
  background: var(--bg);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.variant-table .variant-row-heading {
  color: var(--ink);
  background: var(--card);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.variant-table tr:last-child td,
.variant-table tr:last-child th {
  border-bottom: 0;
}

.variant-table tr.is-image-linked td,
.variant-table tr.is-image-linked th {
  background: #eef4ef;
}

.variant-detail-copy {
  margin: 0;
}

.size-table-wrap {
  max-width: 100%;
  margin-top: 8px;
  overflow-x: auto;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.66rem;
  white-space: nowrap;
}

.size-table th,
.size-table td {
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid var(--line);
}

.size-table th {
  color: var(--muted);
  background: #f7f8f7;
  font-size: 0.52rem;
}

.table-note-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 16px;
  color: #7e4a05;
}

.pricing-table-list {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.table-source {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
}

.table-internal-details {
  margin-top: 8px;
}

.table-internal-details summary {
  color: var(--ink);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
}

.table-internal-details dl {
  display: grid;
  gap: 8px;
  margin: 9px 0 0;
}

.table-internal-details dt {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 600;
  text-transform: uppercase;
}

.table-internal-details dd {
  margin: 2px 0 0;
}

.commercial-list,
.note-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.dialog-contact {
  margin-top: 32px;
}

@media (max-width: 960px) {
  .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #catalogSections[data-view="row"] .product-card {
    grid-template-columns: minmax(170px, 205px) minmax(0, 1fr);
  }

  #catalogSections[data-view="row"] .product-card__body {
    gap: 20px;
  }

  #catalogSections[data-view="row"] .product-card__meta {
    padding-left: 20px;
  }

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

  .dialog-gallery {
    padding-bottom: 24px;
  }

  .dialog-hero {
    position: static;
    min-height: 280px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-switch {
    width: 100%;
  }

  .view-switch__button {
    flex: 1;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  #catalogSections[data-view="row"] .product-card {
    min-height: 164px;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  #catalogSections[data-view="row"] .product-card:hover {
    transform: none;
  }

  #catalogSections[data-view="row"] .product-card__media {
    min-height: 164px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  #catalogSections[data-view="row"] .product-card__media img {
    padding: 8px;
  }

  #catalogSections[data-view="row"] .product-card__body {
    display: flex;
    gap: 0;
    padding: 14px;
  }

  #catalogSections[data-view="row"] .product-card__copy {
    gap: 5px;
  }

  #catalogSections[data-view="row"] .product-card__copy > p,
  #catalogSections[data-view="row"] .product-card__copy > .feature-list {
    display: none;
  }

  #catalogSections[data-view="row"] .product-card__meta {
    margin-top: auto;
    padding-left: 0;
    border-left: 0;
  }

  #catalogSections[data-view="row"] .product-card__price {
    padding: 9px 0 7px;
    border-top: 1px solid var(--line);
  }

  #catalogSections[data-view="row"] .product-card__price strong {
    font-size: 0.84rem;
  }

  #catalogSections[data-view="row"] .product-card__price small {
    display: none;
  }

  #catalogSections[data-view="row"] .product-card__foot {
    gap: 8px;
    padding-top: 7px;
  }

  #catalogSections[data-view="row"] .product-card__foot .mono {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #catalogSections[data-view="row"] .product-card__foot button {
    min-height: 32px;
    font-size: 0.6rem;
  }

  .line-head .supplier-wordmark {
    font-size: 1.3rem;
  }

  .product-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }

  .dialog-gallery,
  .dialog-copy {
    padding: 22px;
  }

  .dialog-hero {
    min-height: 220px;
    aspect-ratio: 1 / 1;
  }

  .dialog-kicker {
    flex-wrap: wrap;
  }

  .dialog-section--pricing {
    padding: 17px;
  }

  .dialog-section--pricing > strong {
    font-size: 1.45rem;
  }

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