/*
Theme Name: BLACX Corporate
Theme URI: https://www.blacxcarbide.com/
Author: BLACX Carbide
Author URI: https://www.blacxcarbide.com/
Description: Clean corporate catalog WordPress theme for BLACX Carbide cutting tools.
Version: 2.4.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blacx-corporate
*/

:root {
  --ink: #101820;
  --ink-2: #17212a;
  --steel: #3b4650;
  --muted: #67737d;
  --line: #d9dee2;
  --paper: #f3f5f6;
  --white: #fff;
  --orange: #f4b21b;
  --orange-2: #ffcb47;
  --danger: #b42318;
  --success: #167a3c;
  --shadow: 0 18px 45px rgba(16, 24, 32, 0.12);
  --radius: 8px;
  --container: 1320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(244, 178, 27, 0.75);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - clamp(28px, 5vw, 80px)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1000;
  top: -60px;
  left: 16px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
}

.skip-link:focus {
  top: 16px;
}

.topbar {
  width: 100%;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
}

.topbar__inner,
.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
}

.topbar__inner {
  min-height: 38px;
  justify-content: space-between;
  gap: 18px;
}

.topbar__left,
.topbar__right {
  gap: 18px;
  flex-wrap: wrap;
}

.topbar a {
  color: #6fa4ff;
}

.language-switcher {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.language-switcher__link {
  min-width: 34px;
  padding: 5px 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.language-switcher__link:hover,
.language-switcher__link.is-active {
  color: var(--ink);
  background: var(--orange);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

body.admin-bar .site-header {
  top: 32px;
}

.header__inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(280px, 100%);
}

.brand img {
  width: 100%;
  height: auto;
}

.primary-nav {
  justify-self: end;
  min-width: 0;
}

.primary-nav .menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 13px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav .is-current > a {
  background: #eef1f3;
}

.primary-nav .is-current > a {
  box-shadow: inset 0 -3px 0 var(--orange);
}

.primary-nav .menu-store > a {
  color: var(--white);
  background: var(--ink);
}

.primary-nav .menu-store > a:hover {
  color: var(--white);
  background: #28333d;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 46px;
  height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.site-main {
  min-height: 60vh;
}

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}

.button--primary {
  color: var(--ink);
  background: var(--orange);
}

.button--primary:hover {
  background: var(--orange-2);
}

.button--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

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

.hero {
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(16, 24, 32, 0.98) 0%, rgba(16, 24, 32, 0.92) 46%, rgba(16, 24, 32, 0.62) 100%),
    #121b24;
}

.hero__grid {
  min-height: clamp(520px, 62vh, 760px);
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  padding: clamp(56px, 7vw, 92px) 0;
}

.hero__content {
  max-width: 640px;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.hero p,
.page-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.3vw, 20px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__image {
  margin: 0;
  border-top: 5px solid var(--orange);
  box-shadow: var(--shadow);
}

.hero__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section {
  padding: clamp(58px, 7vw, 96px) 0;
  background: var(--white);
}

.section--tight {
  padding: 28px 0;
}

.section--light {
  background: var(--paper);
}

.section--dark {
  color: var(--white);
  background: var(--ink);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading h2,
.split h2,
.statement h2,
.contact-card h2,
.product-specs h2,
.tech-grid h2 {
  margin: 12px 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 900;
}

.section-heading p,
.split p,
.contact-card p,
.statement p {
  color: var(--muted);
  font-size: 17px;
}

.section--dark .section-heading p,
.section--dark .split p,
.section--dark .statement p {
  color: rgba(255, 255, 255, 0.78);
}

.feature-row,
.value-grid,
.timeline,
.tech-grid,
.product-family-grid,
.catalog-grid,
.contact-grid,
.product-detail,
.split,
.page-hero__grid {
  display: grid;
  gap: 24px;
}

.feature-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-row div,
.value-grid div,
.timeline div,
.tech-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.feature-row strong,
.value-grid strong,
.timeline strong {
  display: block;
  font-weight: 900;
}

.feature-row span,
.value-grid span,
.timeline span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.product-family-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-family-grid a {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.06);
}

.product-family-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef1f3;
}

.product-family-grid strong,
.product-family-grid span {
  display: block;
  padding-inline: 18px;
}

.product-family-grid strong {
  padding-top: 18px;
  font-size: 19px;
  font-weight: 900;
}

.product-family-grid span {
  padding-top: 6px;
  padding-bottom: 20px;
  color: var(--muted);
}

.split {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
}

.factory-card,
.image-frame {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.factory-card img,
.image-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(100deg, var(--ink), #25313b);
  padding: clamp(54px, 7vw, 92px) 0;
}

.page-hero--compact {
  padding: clamp(46px, 6vw, 74px) 0;
}

.page-hero__grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
}

.page-hero__grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-top: 5px solid var(--orange);
  box-shadow: var(--shadow);
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 20px;
  align-items: start;
  margin-bottom: 26px;
}

.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.catalog-tabs button {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid #cfd6dc;
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.catalog-tabs button:hover,
.catalog-tabs button.is-active {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.catalog-search span {
  display: block;
  margin-bottom: 6px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 900;
}

.catalog-search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #cfd6dc;
  border-radius: 7px;
  background: var(--white);
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-widget--compact .catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.06);
}

.catalog-card[hidden] {
  display: none;
}

.catalog-card__image {
  display: block;
  background: #eef1f3;
}

.catalog-card__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 14px;
}

.catalog-card__body {
  padding: 18px;
}

.catalog-card__group {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 900;
}

.catalog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.catalog-card h3 a:hover {
  color: var(--orange);
}

.catalog-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.catalog-card dl,
.product-specs dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.catalog-card dl div,
.product-specs dl div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #edf0f2;
}

.catalog-card dt,
.product-specs dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-card dd,
.product-specs dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.catalog-empty {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 800;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.tech-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tech-grid article span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--orange);
  border-radius: 999px;
  font-weight: 900;
}

.tech-grid h2 {
  font-size: 22px;
}

.contact-grid {
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  align-items: start;
}

.contact-card,
.contact-form,
.product-specs {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.06);
}

.contact-card a,
.site-footer a {
  display: block;
  margin-top: 10px;
  color: inherit;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label span {
  display: block;
  margin-bottom: 6px;
  color: var(--steel);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cfd6dc;
  border-radius: 7px;
  background: var(--white);
}

.form-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 7px;
  font-weight: 800;
}

.form-message--success {
  color: var(--success);
  background: #eaf7ef;
}

.form-message--error {
  color: var(--danger);
  background: #fff0ed;
}

.product-detail {
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
}

.prose {
  max-width: 860px;
}

.post-summary {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.product-single {
  padding: clamp(34px, 5vw, 58px) 0 clamp(56px, 7vw, 92px);
  background: var(--paper);
}

.product-single__grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.product-single__visuals {
  display: grid;
  gap: 16px;
}

.product-single__media,
.product-single__technical,
.meta-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.06);
}

.product-single__media {
  padding: clamp(18px, 3vw, 30px);
}

.product-single__media img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: contain;
}

.product-single__technical h2,
.meta-panel h2 {
  margin: 0;
  padding: 14px 16px;
  color: var(--white);
  background: var(--ink);
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-single__technical-image {
  padding: 16px;
  background: var(--white);
}

.product-single__technical-img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.product-single__summary h1 {
  margin: 8px 0 8px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-single__summary .sku {
  color: var(--muted);
  font-weight: 900;
}

.product-single__summary > p {
  margin: 18px 0;
  color: var(--steel);
  font-size: 18px;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.product-facts div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.product-facts span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-facts strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.product-detail-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 6px;
}

.meta-panel {
  margin-top: 22px;
}

.meta-panel__body {
  padding: 16px;
  color: var(--steel);
}

.data-table,
.quality-table,
.variant-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td,
.quality-table th,
.quality-table td,
.variant-table th,
.variant-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th,
.quality-table th,
.variant-table th {
  background: #eef0f1;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.variant-table-wrap {
  overflow-x: auto;
}

.variant-table {
  min-width: 760px;
  font-size: 14px;
}

.variant-table thead th {
  color: var(--ink);
  background: #f3f5f6;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.variant-table tbody tr:nth-child(even) {
  background: #f5f6f7;
}

.variant-table tbody tr:hover {
  background: #fff7df;
}

.variant-table td {
  text-align: center;
}

.variant-table td:first-child,
.variant-table th:first-child {
  text-align: left;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.stock-badge--available {
  color: #0b4b22;
  background: #dff4e8;
}

.variant-table-note {
  margin: 0;
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 13px;
}

.quality-materials {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.quality-material {
  min-width: 44px;
  padding: 7px 12px;
  color: var(--white);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.quality-material--p {
  background: #1f76bd;
}

.quality-material--m {
  color: var(--ink);
  background: #ffd426;
}

.quality-material--k {
  background: #f43d2e;
}

.quality-material--n {
  background: #19a86b;
}

.quality-material--s {
  background: #f59a23;
}

.quality-material--h {
  color: var(--ink);
  background: #b9c0c6;
}

.quality-material-empty {
  color: var(--muted);
}

.blacx-quality-guide__body {
  padding: 16px;
}

.blacx-quality-guide__body p {
  margin: 0 0 14px;
  color: var(--muted);
}

.blacx-quality-guide__scroll {
  overflow-x: auto;
}

.quality-guide-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--white);
}

.quality-guide-table th:nth-child(1),
.quality-guide-table td:nth-child(1) {
  width: 16%;
}

.quality-guide-table th:nth-child(2),
.quality-guide-table td:nth-child(2) {
  width: 17%;
}

.quality-guide-table th:nth-child(3),
.quality-guide-table td:nth-child(3) {
  width: 15%;
}

.quality-guide-table th:nth-child(4),
.quality-guide-table td:nth-child(4) {
  width: 30%;
}

.quality-guide-table th:nth-child(5),
.quality-guide-table td:nth-child(5) {
  width: 22%;
}

.quality-guide-table th,
.quality-guide-table td {
  height: 42px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: var(--white);
  vertical-align: middle;
}

.quality-guide-table th {
  height: 50px;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.quality-guide-badge {
  display: inline-flex;
  min-width: 34px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 5px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.quality-guide-badge--coating-pvd,
.quality-guide-badge--app-k {
  color: var(--white);
  background: #f43d2e;
}

.quality-guide-badge--coating-cvd,
.quality-guide-badge--app-m {
  background: #ffd426;
}

.quality-guide-badge--app-p {
  color: var(--white);
  background: #1f76bd;
}

.quality-guide-badge--app-n {
  color: var(--white);
  background: #19a86b;
}

.quality-guide-badge--app-s {
  color: var(--white);
  background: #f59a23;
}

.quality-guide-badge--app-h {
  background: #b9c0c6;
}

.quality-guide-badge--toughness-0 {
  background: #edf0f2;
}

.quality-guide-badge--toughness-1 {
  background: #dce1e5;
}

.quality-guide-badge--toughness-2 {
  background: #c9d0d6;
}

.quality-guide-badge--toughness-3 {
  background: #b5bec6;
}

.quality-guide-badge--toughness-4 {
  background: #9ba6b0;
}

.quality-guide-badge--toughness-5 {
  color: var(--white);
  background: #7b8792;
}

.quality-guide-badge--toughness-6 {
  color: var(--white);
  background: #56616b;
}

.quality-guide-badge--type-0 {
  background: #fde7ef;
}

.quality-guide-badge--type-1 {
  background: #f9ccdc;
}

.quality-guide-badge--type-2 {
  background: #f4adc8;
}

.quality-guide-badge--type-3 {
  background: #eb89ad;
}

.quality-guide-badge--type-4 {
  background: #df6591;
}

.quality-guide-badge--style-0 {
  background: #e4f6ec;
}

.quality-guide-badge--style-1 {
  background: #c8ecd7;
}

.quality-guide-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.quality-guide-legend__item {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.quality-guide-legend .quality-guide-badge {
  min-width: 28px;
  min-height: 22px;
  padding: 4px 9px;
  font-size: 12px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
  padding: 52px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  width: 220px;
  height: auto;
  margin-bottom: 18px;
  filter: brightness(1.08);
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 16px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1180px) {
  .header__inner {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
  }

  .primary-nav a {
    padding: 9px 9px;
    font-size: 13px;
  }

  .product-family-grid,
  .catalog-widget--compact .catalog-grid,
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
  }

  .header__inner {
    min-height: 78px;
    grid-template-columns: minmax(170px, 220px) 48px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    left: clamp(14px, 5vw, 40px);
    right: clamp(14px, 5vw, 40px);
    top: calc(100% - 1px);
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .menu {
    display: grid;
    gap: 4px;
    justify-content: stretch;
  }

  .primary-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .hero__grid,
  .split,
  .page-hero__grid,
  .contact-grid,
  .product-detail,
  .product-single__grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    min-height: 0;
  }

  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand {
    width: 188px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .section {
    padding: 48px 0;
  }

  .feature-row,
  .value-grid,
  .timeline,
  .tech-grid,
  .product-family-grid,
  .catalog-grid,
  .catalog-widget--compact .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card dl div,
  .product-specs dl div,
  .product-facts {
    grid-template-columns: 1fr;
  }

  .product-single__summary h1 {
    font-size: 38px;
  }
}

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

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