/* NUSFAB Production V4 overrides */

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

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

#metal .section-head {
  display: grid;
  grid-template-columns: minmax(360px, .85fr) minmax(0, 1.15fr);
  align-items: end;
}

#metal .section-head h2 {
  max-width: 620px;
}

.product-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 280px 1fr;
  isolation: isolate;
}

.product-image {
  min-width: 0;
  height: 280px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none;
  object-fit: contain !important;
  object-position: center;
}

.metal-grid .product-card {
  grid-template-rows: 250px 1fr;
}

.metal-grid .product-image {
  height: 250px;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 15%, rgba(255,255,255,.95), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
}

.metal-grid .product-image::after {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(11, 18, 32, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 5px 18px rgba(11, 18, 32, .06);
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
}

.metal-grid .product-card:nth-child(1) .product-image::after { content: "NUS-120M"; }
.metal-grid .product-card:nth-child(2) .product-image::after { content: "NUS-220M"; }
.metal-grid .product-card:nth-child(3) .product-image::after { content: "NUS-330M"; }
.metal-grid .product-card:nth-child(4) .product-image::after { content: "NUS-400M"; }

.metal-grid .product-image img {
  filter: drop-shadow(0 16px 18px rgba(11, 18, 32, .1));
}

.metal-grid .product-body p {
  min-height: 3.2em;
}

.product-body {
  min-width: 0;
  background: #fff;
  position: relative;
  z-index: 2;
}

.product-body h3,
.product-body b {
  overflow-wrap: anywhere;
}

.product-body p {
  margin-top: 0;
}

.product-body .link {
  padding-top: 8px;
}

.spec-mini {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.spec-mini div {
  min-width: 0;
}

.status {
  max-width: 100%;
  white-space: normal;
}

.form input,
.form select,
.form textarea {
  background: #fff;
}

.form input:focus,
.form select:focus,
.form textarea:focus,
.btn:focus-visible,
.menu a:focus-visible,
.hamb:focus-visible {
  outline: 3px solid rgba(242, 105, 34, 0.3);
  outline-offset: 2px;
  border-color: var(--accent);
}

.privacy-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.availability-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
}

.availability-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.availability-legend b {
  color: var(--ink);
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.ready-dot { background: #2d9b62; }
.reference-dot { background: #3e72b8; }
.qualify-dot { background: #d88716; }

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

  #metal .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 680px) {
  .product-grid,
  .metal-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: 260px 1fr;
  }

  .product-image {
    height: 260px;
    padding: 14px;
  }

  .product-body {
    padding: 21px;
  }

  .metal-grid .product-card {
    grid-template-rows: 250px 1fr;
  }

  .metal-grid .product-image {
    height: 250px;
  }

  .metal-grid .product-body p {
    min-height: 0;
  }
}

/* SHTITECH bilingual extensions */
.lang-switch{padding-inline:14px}.footer-contact{display:block;color:#9eb0c6;font-size:13px;margin:8px 0}.brand span:nth-child(2){white-space:nowrap}@media(max-width:1080px){.nav-cta .lang-switch{display:inline-flex}}
