:root {
  --ink: #17202a;
  --muted: #617084;
  --line: #dbe2ea;
  --paper: #f6f8fa;
  --white: #ffffff;
  --teal: #007c89;
  --teal-dark: #005f68;
  --amber: #ffb000;
  --green: #2f7d32;
  --blue: #2458d3;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

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

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
  padding: 7px clamp(18px, 4vw, 56px);
  color: #eef8f9;
  background: #12343d;
  font-size: 12px;
  font-weight: 760;
}

.utility-message {
  min-width: 0;
  color: #f5fbfc;
}

.utility-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #d5e6eb;
}

.utility-links a {
  position: relative;
  white-space: nowrap;
}

.utility-links a:hover {
  color: var(--white);
}

.utility-links a + a::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-50%);
}

.header-main {
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(300px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(18px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 78px;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  font-size: 26px;
}

.brand-copy span {
  color: var(--teal);
  font-size: 16px;
  font-weight: 700;
}

.site-search,
.inline-search {
  display: grid;
  grid-template-columns: 1fr auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.site-search input,
.inline-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 13px 14px;
  color: var(--ink);
  outline: none;
}

.site-search button,
.inline-search button,
.contact-form button {
  border: 0;
  padding: 0 18px;
  color: var(--white);
  background: var(--teal);
  font-weight: 700;
  cursor: pointer;
}

.site-search button,
.inline-search button {
  min-width: 90px;
}

.quote-link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.header-main .quote-link {
  justify-self: end;
  min-width: 116px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
}

.quote-link,
.btn.primary {
  color: var(--white);
  background: var(--teal);
}

.btn.secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.quote-link:hover,
.btn.primary:hover,
.site-search button:hover,
.inline-search button:hover,
.contact-form button:hover {
  background: var(--teal-dark);
}

.cart-button,
.saved-items-button {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cdd9e4;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.saved-items-button {
  justify-self: end;
  min-width: 122px;
  min-height: 40px;
  padding: 0 10px;
  font-size: 13px;
}

.cart-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber);
  font-size: 12px;
}

.saved-items-button strong {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber);
  font-size: 12px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.language-switcher button {
  min-width: 48px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.language-switcher button.active {
  color: var(--white);
  background: var(--teal);
}

.footer-language {
  justify-content: flex-end;
  width: max-content;
  margin-left: auto;
  overflow: hidden;
}

.language-globe {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  font-size: 18px;
}

.footer-language button {
  max-width: 0;
  min-width: 0;
  padding: 0;
  opacity: 0;
  transition: max-width 180ms ease, opacity 180ms ease, padding 180ms ease;
}

.footer-language:hover button,
.footer-language:focus-within button {
  max-width: 58px;
  min-width: 48px;
  padding: 0 10px;
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 34px);
  padding: 2px clamp(18px, 4vw, 56px) 12px;
}

.primary-nav a {
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 850;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--teal-dark);
  background: #e9f7f8;
}

.shop-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 9px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #f6fafb;
  color: #32445a;
  font-size: 13px;
  font-weight: 850;
}

.shop-nav a,
.shop-nav span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid #dce5ed;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero {
  position: relative;
  isolation: isolate;
  width: calc(100% - clamp(32px, 5vw, 96px));
  height: min(560px, calc(100vh - 164px));
  min-height: 420px;
  margin: 14px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/meko-lighting-hero.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 31%, rgba(255, 255, 255, 0.22) 58%, rgba(255, 255, 255, 0) 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 590px;
  height: 100%;
  padding: 40px clamp(20px, 5vw, 72px);
}

.hero-content h1 {
  max-width: 560px;
  font-size: clamp(42px, 4.6vw, 64px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  font-size: 16px;
  letter-spacing: 0;
}

.hero-copy,
.lead {
  max-width: 540px;
  color: #435266;
  font-size: clamp(16px, 1.8vw, 19px);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-metrics span,
.trust-row span,
.market-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 124, 137, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.hero-metrics strong {
  margin-right: 5px;
  color: var(--teal-dark);
}

.promo-carousel,
.section-block,
.market-band,
.page-hero,
.subcategory-strip,
.catalog-layout,
.product-detail,
.detail-panels,
.alphabet-index,
.brand-grid,
.social-strip,
.resource-grid,
.service-layout,
.site-footer {
  width: calc(100% - clamp(32px, 5vw, 96px));
  margin-inline: auto;
}

.promo-carousel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 24px;
  color: var(--ink);
  background: #f3fbfa;
  border: 1px solid #cfe7e8;
  border-radius: 8px;
}

.promo-carousel h2 {
  margin-bottom: 6px;
  font-size: clamp(24px, 3vw, 34px);
}

.promo-carousel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.carousel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slide-dots {
  display: flex;
  gap: 7px;
}

.slide-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #9fb4bd;
  cursor: pointer;
}

.slide-dots button.active {
  width: 26px;
  background: var(--teal);
}

.section-block {
  padding: 64px 0 0;
}

.shopping-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: -4px 0 18px;
}

.shopping-tools span {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d7e6e8;
  border-radius: 8px;
  color: #21454d;
  background: #f2fbfb;
  font-size: 14px;
  font-weight: 850;
}

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

.section-heading a {
  color: var(--teal-dark);
  font-weight: 850;
}

.category-grid,
.product-grid,
.resource-grid,
.service-list,
.brand-grid {
  display: grid;
  gap: 18px;
}

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

.category-tile,
.product-card,
.resource-grid article,
.service-block,
.service-list article,
.brand-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(23, 32, 42, 0.03);
}

.category-tile {
  display: grid;
  grid-template-rows: 220px auto auto;
  gap: 12px;
  padding: 14px;
  min-width: 0;
}

.category-tile strong {
  font-size: 19px;
}

.category-tile span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.tile-visual,
.product-image,
.gallery-main,
.gallery-thumbs button {
  display: block;
  border-radius: 6px;
  background-repeat: no-repeat;
  background-color: #fff;
}

.tile-visual {
  min-height: 220px;
  border: 1px solid #edf1f4;
  background-size: contain;
  background-position: center;
}

img.tile-visual.uploaded-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fff;
}

.visual-highbay {
  background-image: url("assets/hb01-main.png");
  background-position: center;
  background-size: contain;
}

.visual-highbay-side {
  background-image: url("assets/hb01-side.png");
  background-position: center;
  background-size: contain;
}

.visual-highbay-bracket {
  background-image: url("assets/hb01-bracket.png");
  background-position: center;
  background-size: contain;
}

.visual-highbay-chain {
  background-image: url("assets/hb01-chain.png");
  background-position: center;
  background-size: contain;
}

.visual-area {
  background-image: url("assets/meko-lighting-hero.png");
  background-size: 180% auto;
  background-position: 88% 42%;
}

.visual-wallpack {
  background-image: url("assets/meko-lighting-hero.png");
  background-size: 180% auto;
  background-position: 92% 66%;
}

.visual-flood {
  background-image: url("assets/meko-lighting-hero.png");
  background-size: 180% auto;
  background-position: 82% 72%;
}

.visual-linear {
  background-image: url("assets/meko-lighting-hero.png");
  background-size: 180% auto;
  background-position: 72% 16%;
}

.visual-panel {
  background-image: url("assets/meko-lighting-hero.png");
  background-size: 180% auto;
  background-position: 78% 48%;
}

.visual-outdoor {
  background-image: url("assets/meko-lighting-hero.png");
  background-size: 180% auto;
  background-position: 94% 66%;
}

.visual-downlight {
  background-image: url("assets/meko-lighting-hero.png");
  background-size: 180% auto;
  background-position: 52% 92%;
}

.visual-tube {
  background-image: url("assets/meko-lighting-hero.png");
  background-size: 180% auto;
  background-position: 70% 78%;
}

.market-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 64px;
  padding: 34px;
  color: var(--white);
  background: #1d2f36;
  border-radius: 8px;
}

.market-band .eyebrow {
  color: #9ce0e1;
}

.market-band h2 {
  margin: 0;
}

.market-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.market-points span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
}

.product-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.product-image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background-size: contain;
  background-position: center;
}

img.product-image.uploaded-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 8px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  background-image: none;
  background-color: #fff;
}

.product-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.product-card h3 {
  margin: 0;
  font-size: 18px;
}

.product-meta,
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-meta span {
  color: var(--muted);
  font-size: 13px;
}

.product-meta .featured-pill {
  padding: 2px 8px;
  border-radius: 999px;
  color: #075e59;
  background: #dff5f2;
  font-size: 12px;
  font-weight: 900;
}

.product-tags span {
  padding: 4px 8px;
  color: #31515b;
  background: #eef6f6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.product-price {
  display: grid;
  gap: 3px;
  color: var(--ink);
  font-weight: 850;
}

.product-price small {
  color: var(--green);
  font-weight: 850;
}

.product-card a {
  color: var(--teal-dark);
  font-weight: 850;
}

.card-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.card-links span {
  font-weight: 800;
}

.product-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-resource-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #d7e6e8;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #f2fbfb;
  font-size: 12px;
  font-weight: 850;
}

.product-sku {
  color: #6a7788;
  font-size: 12px;
  font-weight: 800;
}

.purchase-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}

.purchase-row input,
.detail-buy-box input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--ink);
}

.purchase-row button,
.detail-buy-box button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
  cursor: pointer;
}

.purchase-row button:hover,
.detail-buy-box button:hover {
  background: var(--teal-dark);
}

.purchase-row button.saved,
.detail-buy-box button.saved {
  color: #21454d;
  background: #dff2f2;
}

.purchase-row button.saved:hover,
.detail-buy-box button.saved:hover {
  background: #cfe8e8;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 54px 0 26px;
}

.page-hero.slim h1 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 56px);
}

.inline-search {
  width: min(450px, 100%);
}

.subcategory-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 18px;
}

.subcategory-strip button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.subcategory-strip button.active,
.subcategory-strip button:hover {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 70px;
}

.filters {
  position: sticky;
  top: 146px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-header h2 {
  margin: 0;
  font-size: 22px;
}

.filter-header button {
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.filter-group {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-group:last-child {
  border-bottom: 0;
}

.filter-group h3 {
  margin-bottom: 10px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  color: #3f4c5d;
  font-size: 14px;
}

.filter-group input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.toolbar p {
  margin: 0;
}

.toolbar-controls {
  display: flex;
  gap: 12px;
}

.toolbar-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.toolbar select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.pagination button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.pagination button.active {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: 42px;
  align-items: center;
  padding: 58px 0 36px;
}

.gallery-main {
  aspect-ratio: 1.1 / 1;
  min-height: 380px;
  border: 1px solid var(--line);
  background-color: var(--paper);
  background-size: 170% auto;
  box-shadow: var(--shadow);
}

.gallery-main.visual-highbay,
.gallery-main.visual-highbay-side,
.gallery-main.visual-highbay-bracket,
.gallery-main.visual-highbay-chain,
.gallery-thumbs button.visual-highbay,
.gallery-thumbs button.visual-highbay-side,
.gallery-thumbs button.visual-highbay-bracket,
.gallery-thumbs button.visual-highbay-chain {
  background-position: center;
  background-size: contain;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumbs button {
  aspect-ratio: 1 / 0.72;
  border: 2px solid transparent;
  background-size: 180% auto;
  background-color: var(--paper);
  cursor: pointer;
  overflow: hidden;
}

.gallery-thumbs button.active {
  border-color: var(--teal);
}

.gallery-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.detail-media-image,
.detail-media-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.media-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  font-weight: 800;
  color: #1d4f59;
  background: #e6f3f5;
}

.detail-summary h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.stock-line {
  display: grid;
  gap: 9px;
  margin: 24px 0;
  padding: 18px;
  border-left: 4px solid var(--amber);
  background: #fff8e7;
}

.detail-buy-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d7e6e8;
  border-radius: 8px;
  background: #f5fbfb;
}

.detail-buy-box label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.detail-buy-box small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.comparison-block {
  padding-top: 34px;
}

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

.comparison-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  background: var(--white);
}

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

.comparison-table thead th {
  color: #31515b;
  background: #eef6f6;
  font-size: 13px;
  text-transform: uppercase;
}

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

.stock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.stock-badge.in {
  color: #1d5f24;
  background: #e8f6e9;
}

.stock-badge.out {
  color: #8a4f00;
  background: #fff4dc;
}

.detail-panels {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.detail-panels article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 34%;
  color: var(--muted);
  font-weight: 850;
}

.alphabet-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0 20px;
}

.alphabet-index a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  font-weight: 900;
}

.brand-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 24px;
}

.brand-tile {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.brand-tile span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  color: var(--white);
  background: #1d2f36;
  font-weight: 900;
  font-size: 23px;
}

.brand-tile strong {
  font-size: 21px;
}

.brand-tile small {
  color: var(--muted);
}

.social-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 70px;
  padding: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.social-strip span {
  margin-right: auto;
  font-weight: 900;
}

.social-strip a {
  color: var(--teal-dark);
  font-weight: 850;
}

.resource-grid,
.resource-download-panel {
  padding-bottom: 70px;
}

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

.resource-grid article {
  padding: 22px;
}

.resource-download-panel {
  width: calc(100% - clamp(32px, 5vw, 96px));
  margin-inline: auto;
}

.resource-download-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfb;
}

.resource-download-toolbar h2 {
  margin: 0;
  font-size: 24px;
}

.resource-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resource-download-actions button,
.resource-product-select {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.resource-download-actions .primary-action {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

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

.resource-product-card {
  display: grid;
  grid-template-columns: auto 128px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.resource-product-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.resource-product-image {
  aspect-ratio: 4 / 3;
  border: 1px solid #edf1f4;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.resource-product-image img,
.resource-product-image span {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.resource-product-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.resource-product-main strong {
  font-size: 18px;
}

.resource-product-main small {
  color: var(--muted);
}

.resource-file-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-file-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef6f6;
  color: #21454d;
  font-size: 13px;
  font-weight: 850;
}

.resource-file-options label.disabled {
  color: #8a99a8;
  background: #f3f5f7;
}

.resource-file-options span {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
}

.resource-type {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #e9f7f8;
  font-size: 12px;
  font-weight: 900;
}

.resource-grid h2,
.service-block h2,
.service-list h2 {
  font-size: 22px;
}

.resource-grid p,
.service-block p,
.service-list p,
.detail-panels p {
  color: var(--muted);
}

.resource-grid a {
  color: var(--teal-dark);
  font-weight: 850;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 70px;
}

.service-block {
  padding: 24px;
}

.contact-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: #415166;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
}

.contact-form textarea {
  min-height: 128px;
  resize: vertical;
}

.contact-form button {
  min-height: 46px;
  border-radius: 8px;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: #516276;
  font-weight: 800;
}

.form-message.success {
  color: #067647;
}

.form-message.danger {
  color: #b42318;
}

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

.service-list article {
  padding: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - clamp(32px, 5vw, 96px));
  padding: 42px 28px 48px;
  color: #d8e4e7;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-company {
  display: grid;
  gap: 8px;
}

.footer-brand {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.footer-tagline {
  max-width: 520px;
  margin: 0;
  color: #aebfc5;
  font-size: 14px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #d8e4e7;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  color: var(--white);
  background: var(--teal);
  transform: translateY(-1px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-contact {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: #c8d7dc;
  font-size: 14px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--teal);
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-actions {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.saved-items-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(23, 32, 42, 0.38);
}

.saved-items-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 46;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  width: min(460px, 100%);
  height: 100vh;
  background: var(--white);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.saved-items-drawer.open {
  transform: translateX(0);
}

.saved-drawer-header,
.saved-drawer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.saved-drawer-header {
  justify-content: space-between;
}

.saved-drawer-header h2 {
  margin: 0;
  font-size: 28px;
}

.saved-items-list {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 20px;
}

.saved-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.saved-main {
  display: grid;
  gap: 12px;
}

.saved-section {
  display: grid;
  gap: 6px;
}

.saved-section h3 {
  margin: 0;
  color: #2d4650;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.saved-section p {
  margin: 0;
  color: #4a5a6f;
  font-size: 13px;
}

.saved-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-resource-actions button {
  min-height: 30px;
  border: 1px solid #d7e6e8;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--teal-dark);
  background: #f2fbfb;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.saved-qty-row,
.saved-note-row {
  display: grid;
  gap: 4px;
  color: #415166;
  font-size: 12px;
  font-weight: 850;
}

.saved-qty-row input,
.saved-note-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
}

.saved-qty-row input {
  max-width: 120px;
  min-height: 36px;
}

.saved-note-row textarea {
  min-height: 68px;
  resize: vertical;
}

.saved-item span,
.saved-item small,
.saved-empty {
  color: var(--muted);
}

.saved-item button {
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.saved-drawer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.saved-drawer-actions .btn {
  border: 0;
  cursor: pointer;
}

.saved-drawer-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.saved-request-fields {
  display: grid;
  gap: 8px;
  padding: 0 20px 16px;
}

.saved-request-fields label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3f4c5d;
  font-size: 14px;
  font-weight: 800;
}

.saved-request-fields input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.saved-customer-fields {
  display: grid;
  gap: 10px;
  padding: 0 20px 16px;
}

.saved-customer-fields label {
  display: grid;
  gap: 6px;
  color: #3f4c5d;
  font-size: 13px;
  font-weight: 800;
}

.saved-customer-fields input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
}

footer {
  background: #13282e;
}

.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer nav a {
  color: #eef8f9;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  max-width: min(360px, calc(100% - 40px));
  padding: 13px 16px;
  border-radius: 8px;
  color: var(--white);
  background: #12343d;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1050px) {
  .utility-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .utility-links {
    justify-content: flex-start;
  }

  .header-main {
    grid-template-columns: auto 1fr auto auto;
  }

  .quote-link {
    display: none;
  }

  .category-grid,
  .product-grid,
  .product-grid.compact,
  .resource-grid,
  .resource-product-list,
  .brand-grid,
  .shopping-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-layout,
  .product-detail,
  .detail-panels,
  .service-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }
}

@media (max-width: 780px) {
  .utility-bar {
    display: none;
  }

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

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 64px;
    height: 46px;
  }

  .brand-copy {
    font-size: 21px;
  }

  .site-search {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    order: 3;
  }

  .cart-button {
    grid-template-columns: 20px auto;
    padding: 0 10px;
  }

  .cart-button span {
    display: none;
  }

  .saved-items-button {
    min-width: 46px;
    grid-template-columns: auto;
  }

  .saved-items-button span {
    display: none;
  }

  .site-search button {
    min-height: 42px;
    padding: 0 12px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    flex-direction: column;
    padding: 0 18px 14px;
  }

  .primary-nav.open {
    display: flex;
  }

  .hero {
    height: auto;
    min-height: 0;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 58%, rgba(255, 255, 255, 0.22) 100%);
  }

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

  .hero-content h1 {
    max-width: 330px;
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.05;
  }

  .hero-copy {
    max-width: 330px;
    font-size: 16px;
  }

  .promo-carousel h2,
  .promo-carousel p {
    max-width: 310px;
  }

  .promo-carousel h2 {
    font-size: 24px;
  }

  .promo-carousel,
  .market-band,
  .page-hero,
  .toolbar,
  .section-heading {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }

  .promo-carousel {
    display: grid;
  }

  .market-points {
    justify-content: flex-start;
  }

  .catalog-layout,
  .product-detail,
  .detail-panels,
  .service-layout,
  .promo-carousel,
  .section-block,
  .market-band,
  .page-hero,
  .subcategory-strip,
  .alphabet-index,
  .brand-grid,
  .resource-grid,
  .service-list,
  .site-footer {
    width: calc(100% - 28px);
  }

  .category-grid,
  .product-grid,
  .product-grid.compact,
  .resource-grid,
  .resource-product-list,
  .service-list,
  .brand-grid,
  .shopping-tools {
    grid-template-columns: 1fr;
  }

  .resource-download-toolbar,
  .resource-product-card {
    grid-template-columns: 1fr;
  }

  .resource-download-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .resource-product-image {
    width: 100%;
    max-width: 220px;
  }

  .category-tile {
    grid-template-rows: 220px auto auto;
  }

  .toolbar-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .product-detail {
    padding-top: 34px;
  }

  .gallery-main {
    min-height: 300px;
  }

  .service-list {
    gap: 14px;
  }

  .site-footer {
    flex-direction: column;
    padding-inline: 22px;
  }

  .footer-actions {
    justify-items: start;
  }

  .footer-language {
    margin-left: 0;
  }
}

@media (max-width: 460px) {
  .site-search,
  .inline-search {
    grid-template-columns: 1fr;
  }

  .site-search button,
  .inline-search button {
    min-height: 42px;
  }

  .hero-actions,
  .detail-actions,
  .detail-buy-box,
  .purchase-row {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .promo-carousel,
  .market-band {
    padding: 20px;
  }

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

  .saved-drawer-actions {
    grid-template-columns: 1fr;
  }
}
