/* PERF FIX: @import removed — fonts now loaded non-blocking via <link> in header.ejs */

:root {
  --brand: #1e3157;
  --brand-2: #2f4a7f;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.74);
  --text: #162133;
  --muted: #5f6f83;
  --border: #d7deea;
  --shadow-soft: 0 10px 34px rgba(16, 33, 60, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 15% 0%, #f8fbff 0%, var(--bg) 40%),
    radial-gradient(circle at 100% 0%, #f2f6ff 0%, var(--bg) 48%);
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--brand);
  letter-spacing: -0.01em;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  padding-inline: 5%;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.85);
}

.nav-top-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--brand);
  text-decoration: none;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: multiply;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-title {
  font-weight: 800;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
}

.header-search-wrap {
  position: relative;
}

.header-search-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(21, 37, 63, 0.06);
  font: inherit;
}

.header-search-input:focus {
  outline: 0;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(47, 74, 127, 0.15);
}

.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.45rem);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid #eef2f8;
  padding: 0.7rem 0.8rem;
}

.search-result-item:hover {
  background: #f7f9fd;
}

.search-result-meta {
  color: var(--muted);
  font-size: 0.83rem;
}

.search-empty {
  padding: 0.8rem;
  color: var(--muted);
}

.nav-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.35rem 0.7rem 0.45rem;
  cursor: pointer;
}

.main-nav {
  border-top: 1px solid #e8edf6;
  padding: 0.15rem 0 0.5rem;
}

.nav-list {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
}

.nav-list > li > a {
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.94rem;
}

.mega-menu-item {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  width: min(850px, 92vw);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 120ms ease,
    transform 120ms ease,
    visibility 0ms linear 180ms;
}

.mega-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 18px;
  background: transparent;
}

.mega-menu h4 {
  margin: 0 0 0.5rem;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.mega-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.mega-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}

.mega-menu-item:hover .mega-menu,
.mega-menu-item:focus-within .mega-menu,
.mega-menu-item.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 120ms ease,
    transform 120ms ease,
    visibility 0ms;
}

main.container {
  padding: 1.5rem 0 2.8rem;
}

main.container > section + section {
  margin-top: 4rem;
}

main p {
  max-width: 75ch;
  margin-block: 0 1.5rem;
}

.hero,
.card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.hero {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
}

.hero-logo {
  width: 100%;
  max-width: 360px;
  justify-self: center;
}

.home-section h2 {
  margin-bottom: 1rem;
}

.home-hero {
  min-height: 420px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.home-hero-overlay {
  min-height: inherit;
  display: grid;
  align-items: center;
  background: linear-gradient(120deg, rgba(9, 19, 38, 0.68) 0%, rgba(17, 35, 71, 0.44) 55%, rgba(17, 35, 71, 0.22) 100%);
  padding: 2rem;
}

.home-hero-content {
  max-width: 700px;
  padding: 1.6rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
}

.home-hero-content h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.home-hero-content p {
  color: rgba(255, 255, 255, 0.95);
}

.industry-bento {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
}

.industry-tile {
  flex: 0 1 calc((100% - 2rem) / 3);
  max-width: calc((100% - 2rem) / 3);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #1b2944;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 28, 58, 0.09);
  padding: 1.25rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.industry-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(8, 14, 27, 0.78) 0%, rgba(9, 17, 31, 0.56) 42%, rgba(9, 17, 31, 0.84) 100%);
  z-index: 0;
}

.industry-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(15, 28, 58, 0.15);
}

.industry-tile h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.industry-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.industry-tile-1,
.industry-tile-4 {
  flex-basis: calc((100% - 2rem) / 3);
}

.industry-tile-2,
.industry-tile-3,
.industry-tile-5,
.industry-tile-6 {
  flex-basis: calc((100% - 2rem) / 3);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.15rem;
  background: #fff;
}

.feature-icon-image {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border: none;
  flex-shrink: 0;
}

.feature-item h3 {
  margin: 0 0 0.3rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.featured-card {
  position: relative;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 200ms ease;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 30, 55, 0.15) 0%, rgba(10, 20, 39, 0.72) 100%);
  transition: background 200ms ease;
}

.featured-content {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  color: #fff;
  z-index: 2;
}

.featured-content h3 {
  margin: 0 0 0.2rem;
  color: #fff;
}

.featured-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.featured-card:hover img {
  transform: scale(1.05);
}

.featured-card:hover .featured-overlay {
  background: linear-gradient(180deg, rgba(16, 30, 55, 0.08) 0%, rgba(10, 20, 39, 0.58) 100%);
}

.button-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--brand);
  text-decoration: none;
  padding: 0.62rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  transition: all 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand-2) 0%, var(--brand) 100%);
  color: #fff;
}

.btn-outline {
  background: #fff;
}

.quick-order-btn {
  box-shadow: 0 6px 16px rgba(34, 54, 94, 0.2);
}

section {
  margin-top: 0;
}

.tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.7rem 0 1rem;
}

.tab {
  text-decoration: none;
  color: var(--brand);
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.38rem 0.82rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.tab-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.clickable {
  text-decoration: none;
  color: inherit;
}

.industry-grid,
.category-grid,
.three-up,
.product-grid {
  display: grid;
  gap: 1rem;
}

.industry-grid,
.category-grid,
.three-up {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.5rem;
}

.product-card {
  flex: 1 1 360px;
  padding: 1.5rem;
  min-width: 0;
  min-height: 220px;
  display: flex;
  align-items: stretch;
}

.product-accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f2;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.product-row-toggle {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 1rem 2.6rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
  cursor: pointer;
  overflow: visible;
  min-height: 0;
  height: auto;
  position: relative;
  z-index: 2;
}

.product-row-toggle:hover {
  background: #f8fbff;
}

.product-row-content {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.product-row-thumb {
  width: 104px;
  height: 104px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #fff;
  flex: 0 0 auto;
}

.product-row-name {
  font-weight: 700;
  color: #10203a;
  font-size: 1.05rem;
  line-height: 1.25;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
}

.product-row-category {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
  min-width: 0;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: break-word;
}

.product-row-price {
  color: var(--brand);
  font-size: 1.08rem;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-row-chevron {
  display: inline-block;
  font-size: 1rem;
  color: var(--brand);
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  transition: transform 180ms ease;
}

.product-accordion.is-open .product-row-chevron {
  transform: rotate(180deg);
}

.product-row-panel {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height 240ms ease, opacity 150ms ease;
  position: relative;
  z-index: 1;
}

.product-accordion.is-open .product-row-panel {
  max-height: 1200px;
  opacity: 1;
  visibility: visible;
}

.product-row-panel-inner {
  overflow: visible;
  padding: 0 1rem 1rem;
}

.product-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.form {
  display: grid;
  gap: 0.8rem;
  max-width: 700px;
}

.form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 500;
}

input,
textarea,
select {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.58rem;
  font: inherit;
  background: #fff;
}

.inline-form {
  display: flex;
  gap: 0.6rem;
  align-items: end;
  flex-wrap: wrap;
}

.tag {
  color: var(--muted);
}

.catalog-panel {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.spec-sheet {
  margin: 1rem 0;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e3e8f0;
  background: #f8f9fa;
}

.spec-dropdown-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
}

.spec-select {
  width: 100%;
  background: #fff;
  margin-bottom: 0.55rem;
}

.spec-selected-value {
  margin: 0;
  color: #0f1d33;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 0;
}

.spec-grid dt {
  font-weight: 700;
  color: #3f4f67;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  margin: 0;
}

.spec-grid dd {
  margin: 0;
  margin-top: 0.3rem;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #101a2c;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
}

.spec-item {
  min-width: 0;
  text-align: left;
}

.stock-badge {
  font-size: 0.74rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.16rem 0.52rem;
  font-weight: 700;
  flex-shrink: 0;
}

.stock-in {
  color: #10693e;
  background: #eafaf2;
  border-color: #b5e6cb;
}

.stock-low {
  color: #8f5400;
  background: #fff4e2;
  border-color: #f0d3a5;
}

.stock-backorder {
  color: #8a1f2f;
  background: #fdeef1;
  border-color: #efbcc7;
}

.success {
  color: #10693e;
  font-weight: 700;
}

.error {
  color: #8a2020;
  font-weight: 700;
}

.table-shell {
  position: relative;
  margin-bottom: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-skeleton {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
  display: none;
}

.table-shell.is-loading .table-skeleton {
  display: grid;
  gap: 0.7rem;
}

.table-shell.is-loading .data-table {
  display: none;
}

.skeleton-line {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf2f8 25%, #f6f9fd 50%, #edf2f8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.1s infinite linear;
}

.w-30 {
  width: 30%;
}
.w-35 {
  width: 35%;
}
.w-40 {
  width: 40%;
}
.w-60 {
  width: 60%;
}
.w-75 {
  width: 75%;
}
.w-80 {
  width: 80%;
}
.w-85 {
  width: 85%;
}
.w-90 {
  width: 90%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.cart-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.cart-table th {
  background: #f6f9fd;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4d607b;
}

.cart-table th,
.cart-table td {
  border-bottom: 1px solid #e9eff7;
  padding: 0.66rem;
  text-align: left;
}

.narrow {
  max-width: 780px;
}

.order-confirmation-card {
  padding: 1.2rem;
}

.order-confirmation-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
  margin-bottom: 0.8rem;
}

.order-confirmation-meta p {
  margin: 0;
}

.about-hero {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(84, 123, 194, 0.25) 0%, rgba(84, 123, 194, 0) 42%),
    linear-gradient(135deg, rgba(30, 49, 87, 0.08) 0%, rgba(47, 74, 127, 0.16) 100%);
}

.about-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47, 74, 127, 0.24) 0%, rgba(47, 74, 127, 0.04) 58%, transparent 80%);
  pointer-events: none;
}

.about-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.about-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-2);
  font-weight: 800;
}

.about-hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
}

.about-glow-badge {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  display: inline-grid;
  gap: 0.2rem;
  border: 1px solid rgba(30, 49, 87, 0.24);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(24, 38, 68, 0.12);
}

.about-glow-badge span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.about-glow-badge strong {
  color: var(--brand);
  font-size: 1rem;
}

.about-why h2 {
  margin: 0 0 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 10px 24px rgba(18, 33, 59, 0.07);
  position: relative;
  overflow: hidden;
}

.about-feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
}

.about-feature-card h3 {
  margin: 0.2rem 0 0.5rem;
}

.about-feature-card p {
  margin: 0;
}

.checkout-header {
  margin-bottom: 1.15rem;
}

.checkout-header p {
  margin-bottom: 0;
}

.checkout-shell {
  width: 100%;
}

.checkout-layout-b2b {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  align-items: start;
  gap: 1.2rem;
}

.checkout-main-stack {
  display: grid;
  gap: 1rem;
}

.checkout-card {
  padding: 1.2rem;
}

.checkout-section-title {
  margin: 0 0 0.75rem;
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand);
}

.checkout-stack {
  display: grid;
  gap: 0.75rem;
}

.checkout-grid-two,
.checkout-grid-three {
  display: grid;
  gap: 0.75rem;
}

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

.checkout-grid-three {
  grid-template-columns: 1.9fr 0.8fr 1fr;
}

.checkout-card label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e3157;
}

.checkout-card input,
.checkout-card select {
  min-height: 44px;
  border: 1px solid #cbd6e7;
  border-radius: 10px;
  padding: 0.58rem 0.72rem;
  font: inherit;
  background: #fff;
}

.checkout-card textarea {
  min-height: 88px;
  border: 1px solid #cbd6e7;
  border-radius: 10px;
  padding: 0.58rem 0.72rem;
  font: inherit;
  background: #fff;
  resize: vertical;
}

.checkout-card input:focus,
.checkout-card select:focus,
.checkout-card textarea:focus {
  outline: 0;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(47, 74, 127, 0.16);
}

.checkout-summary-sticky {
  position: sticky;
  top: 90px;
  padding: 1.15rem;
}

.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.45rem;
}

.summary-total {
  margin-top: 0.9rem;
  font-size: 1.07rem;
  margin-bottom: 0.75rem;
}

.checkout-submit-btn {
  width: 100%;
  min-height: 46px;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(30, 49, 87, 0.2);
}

.checkout-back-link {
  display: inline-block;
  margin-top: 0.8rem;
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
}

.checkout-back-link:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
}

.footer-meta {
  margin: 0.4rem 0 0;
}

.footer-admin-link {
  font-size: 0.78rem;
  color: #73829a;
  text-decoration: none;
}

.footer-admin-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
}

@media (max-width: 1024px) {
  .nav-top-row {
    grid-template-columns: 1fr;
  }

  .nav-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    padding-top: 0.55rem;
  }
}

@media (max-width: 860px) {
  body.menu-lock {
    overflow: hidden;
  }

  .site-header {
    transition:
      box-shadow 140ms ease,
      background-color 140ms ease;
  }

  .site-header::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(12, 20, 35, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
    z-index: 30;
  }

  .site-header.is-menu-open::after {
    opacity: 1;
    pointer-events: auto;
  }

  .site-header .nav-top-row {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand menu"
      "search search"
      "actions actions";
    align-items: center;
    gap: 0.65rem;
    transition: padding 140ms ease;
  }

  .site-header .brand {
    grid-area: brand;
  }

  .site-header .header-search-wrap {
    grid-area: search;
  }

  .site-header .nav-actions {
    grid-area: actions;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-area: menu;
    justify-self: end;
  }

  .site-header .brand-logo {
    transition:
      width 140ms ease,
      height 140ms ease;
  }

  .site-header .brand-subtitle {
    transition:
      opacity 120ms ease,
      max-height 120ms ease;
    max-height: 20px;
    overflow: hidden;
  }

  .site-header.is-condensed {
    box-shadow: 0 8px 24px rgba(22, 33, 51, 0.14);
    background: rgba(255, 255, 255, 0.95);
  }

  .site-header.is-condensed .nav-top-row {
    padding: 0.45rem 0;
  }

  .site-header.is-condensed .brand-logo {
    width: 40px;
    height: 40px;
  }

  .site-header.is-condensed .brand-subtitle {
    opacity: 0;
    max-height: 0;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(84vw, 320px);
    height: 100dvh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
    overflow-y: auto;
    z-index: 35;
    transform: translateX(106%);
    transition: transform 180ms ease;
  }

  .site-header.is-menu-open .main-nav {
    transform: translateX(0);
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nav-list > li {
    display: block;
    width: 100%;
  }

  .nav-list > li > a {
    display: block;
    width: 100%;
    text-align: left;
  }

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

  .home-hero-overlay {
    padding: 1rem;
  }

  .home-hero-content {
    padding: 1rem;
  }

  .industry-bento {
    flex-direction: column;
  }

  .industry-tile {
    flex-basis: 100%;
    max-width: 100%;
  }

  .industry-tile-1,
  .industry-tile-2,
  .industry-tile-3,
  .industry-tile-4,
  .industry-tile-5,
  .industry-tile-6 {
    flex-basis: 100%;
  }

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

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

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

  .order-confirmation-meta {
    grid-template-columns: 1fr;
  }

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

  .checkout-summary-sticky {
    position: static;
  }

  .checkout-grid-two,
  .checkout-grid-three {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.2rem;
  }

  .cart-table {
    min-width: 560px;
  }

  .product-row-toggle {
    align-items: flex-start;
    padding-block: 1rem;
  }

  .product-row-thumb {
    width: 88px;
    height: 88px;
  }

  .product-grid {
    gap: 1rem;
  }

  .product-card {
    flex-basis: 300px;
  }

  .mega-menu {
    position: static;
    width: 100%;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .mega-menu::before {
    display: none;
  }

  .mega-menu-item:hover .mega-menu,
  .mega-menu-item:focus-within .mega-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    margin-top: 0;
    padding: 0;
    border: 0;
  }

  .mega-menu-item.is-open .mega-menu {
    margin-top: 0.5rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 1200px;
    padding: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
  }
}
