:root {
  --navy: #071b34;
  --ink: #142033;
  --muted: #5d6d7e;
  --line: #dfe6ec;
  --paper: #fbfcf8;
  --panel: #ffffff;
  --mist: #edf5f6;
  --teal: #167070;
  --copper: #b55227;
  --gold: #e2b247;
  --shadow: 0 16px 44px rgba(7, 27, 52, 0.09);
  --header-offset: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(226, 178, 71, 0.55);
  outline-offset: 2px;
}

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

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 248, 0.94);
  border-bottom: 1px solid rgba(7, 27, 52, 0.12);
  backdrop-filter: blur(16px);
}

.store-nav {
  width: min(1160px, calc(100% - 40px));
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 92px;
  height: 56px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(22, 112, 112, 0.1);
  color: var(--teal);
}

.store-hero {
  scroll-margin-top: var(--header-offset);
  padding: clamp(58px, 8vw, 96px) 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 27, 52, 0.96), rgba(7, 27, 52, 0.78)),
    url("../../images/Northific_blue.png") right center / min(620px, 70vw) auto no-repeat,
    var(--navy);
}

.store-hero h1,
.cart-page h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.store-hero p:not(.eyebrow) {
  max-width: 650px;
  color: #d8e5ea;
  font-size: 1.12rem;
}

.gateway-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.gateway-section {
  padding: clamp(54px, 8vw, 88px) 0;
}

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

.gateway-grid article {
  min-height: 100%;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.gateway-grid h2 {
  margin: 16px 0 10px;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.05;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.catalog {
  padding: 70px 0 94px;
}

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 64px;
}

.category-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(7, 27, 52, 0.06);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.2;
}

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

.store-notice {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(226, 178, 71, 0.16);
}

.store-notice p {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.category-section + .category-section {
  margin-top: 72px;
}

.category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.category-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.category-head p:not(.eyebrow) {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

.subtle-link {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

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

.product-card,
.product-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-media,
.detail-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  background: var(--mist);
  text-decoration: none;
}

.product-media img,
.detail-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(7, 27, 52, 0.16);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status,
.category-pill {
  width: max-content;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(181, 82, 39, 0.1);
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-pill {
  background: rgba(22, 112, 112, 0.1);
  color: var(--teal);
}

.status[data-stock="In stock"] {
  background: rgba(22, 112, 112, 0.1);
  color: var(--teal);
}

.status[data-stock="Low stock"],
.status[data-stock="Backorder available"] {
  background: rgba(226, 178, 71, 0.2);
  color: #7d6511;
}

.status[data-stock="Out of stock"],
.status[data-stock="Request quote"] {
  background: rgba(93, 109, 126, 0.12);
  color: var(--muted);
}

.product-card h3 {
  margin: 16px 0 8px;
  color: var(--navy);
  line-height: 1.2;
}

.product-card h3 a {
  text-decoration: none;
}

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

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

.price,
.detail-price {
  color: var(--navy);
  font-weight: 900;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}

.compact-button {
  min-height: 38px;
  padding: 0 13px;
}

.product-page {
  scroll-margin-top: var(--header-offset);
  padding: 54px 0 92px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 58px);
  margin-top: 24px;
  padding: clamp(22px, 4vw, 44px);
}

.detail-gallery {
  display: grid;
  gap: 12px;
  align-self: start;
}

.detail-media {
  min-height: 420px;
  border-radius: 8px;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-thumbs img {
  width: 100%;
  height: 92px;
  padding: 8px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-copy h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.detail-description,
.detail-technical-description,
.detail-commerce-note,
.support-notes {
  color: var(--muted);
}

.detail-technical-description {
  padding-left: 14px;
  border-left: 4px solid rgba(22, 112, 112, 0.28);
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px 0;
}

.detail-section {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.detail-section h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1rem;
}

.detail-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.technical-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.technical-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.technical-table th,
.technical-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

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

.technical-table th {
  width: 34%;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.technical-table td {
  color: var(--navy);
}

.technical-table td strong {
  display: block;
  font-weight: 900;
}

.technical-table td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.capability-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.capability-chart {
  min-height: 154px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(22, 112, 112, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(238, 245, 246, 0.76), rgba(255, 255, 255, 0.92)),
    #fff;
}

.capability-chart span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capability-chart strong {
  color: var(--teal);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.capability-chart small {
  color: var(--navy);
  font-weight: 900;
}

.capability-chart p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.reference-list {
  display: grid;
  gap: 10px;
}

.reference-list a {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.reference-list span {
  color: var(--navy);
}

.reference-list small {
  color: var(--muted);
  font-weight: 700;
}

.store-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.store-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.store-footer a {
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 820px) {
  :root {
    --header-offset: 130px;
  }

  .store-nav,
  .category-head,
  .product-detail,
  .gateway-grid,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .store-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .capability-chart-grid {
    grid-template-columns: 1fr;
  }

  .technical-table {
    min-width: 0;
  }

  .technical-table,
  .technical-table tbody,
  .technical-table tr,
  .technical-table th,
  .technical-table td {
    display: block;
    width: 100%;
  }

  .technical-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .technical-table tr:last-child {
    border-bottom: 0;
  }

  .technical-table th,
  .technical-table td {
    padding: 0;
    border-bottom: 0;
  }

  .technical-table td {
    margin-top: 5px;
  }

}

@media (max-width: 520px) {
  :root {
    --header-offset: 110px;
  }

  .wrap,
  .store-nav {
    width: min(100% - 28px, 1160px);
  }

  .store-nav {
    min-height: 0;
    gap: 10px;
    padding: 10px 0 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 74px;
    height: 46px;
  }

  .brand strong {
    font-size: 0.82rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .product-bottom,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .gateway-actions {
    width: 100%;
  }
}
