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

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 42px;
}

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

.brand-logo {
  width: auto;
  height: 44px;
  max-width: 210px;
  object-fit: contain;
}

.nav {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
  height: 72px;
}

.nav > ul {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: static;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: color var(--motion-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion-fast);
}

.nav-item:hover .nav-link::after,
.nav-item:focus-within .nav-link::after,
.nav-item.is-active .nav-link::after {
  transform: scaleX(1);
}

.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link,
.nav-item.is-active .nav-link {
  color: var(--ink);
}

.mega-panel,
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  color: var(--ink);
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(18, 24, 33, .06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--motion-fast), transform var(--motion-fast), visibility var(--motion-fast);
  backdrop-filter: blur(16px);
}

.nav-item.is-active .mega-panel,
.nav-item.is-active .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mega Menu Inner Grid */
.mega-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(240px, 1fr) minmax(210px, 1fr) minmax(280px, 0.95fr);
  gap: 36px;
  align-items: start;
}

.mega-feature {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  padding-right: 24px;
}

.mega-kicker {
  display: block;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mega-title {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mega-copy {
  max-width: 230px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.mega-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--orange-deep);
  font-size: 13px;
  font-weight: 600;
  transition: gap 0.18s ease;
}

.mega-feature-link::after {
  content: "->";
  font-size: 12px;
  transform: translateY(-1px);
}
.mega-feature-link:hover {
  color: var(--orange);
  gap: 12px;
}

.mega-group {
  display: grid;
  gap: 4px;
  align-content: start;
}

.mega-group b {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  padding-left: 10px;
}

.mega-group a,
.mega-group div.mega-link-disabled {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--body);
  transition: background var(--motion-fast), color var(--motion-fast);
}

.mega-group a:hover {
  background: #f1f4f9;
  color: var(--ink);
}

.mega-group div.mega-link-disabled {
  color: var(--quiet);
  opacity: 0.5;
  cursor: default;
}

.mega-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f8fb;
  border-radius: 6px;
  color: var(--muted);
  transition: background var(--motion-fast), color var(--motion-fast);
}

.mega-group a:hover .mega-icon {
  background: var(--paper);
  color: var(--orange);
}

.mega-text {
  display: flex;
  flex-direction: column;
}

.mega-text strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.mega-text small {
  font-size: 10.5px;
  color: var(--quiet);
  font-weight: 400;
  line-height: 1.25;
  margin-top: 2px;
}

.mega-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.mega-card::before {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 90px;
  height: 90px;
  background: url("../images/material.jpg") center / cover no-repeat;
  opacity: 0.08;
  border-radius: 50%;
  filter: grayscale(1);
}

.mega-card strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.mega-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

.mega-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--orange-deep);
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 2;
  transition: gap 0.18s ease;
}

.mega-card a:hover {
  color: var(--orange);
  gap: 8px;
}

.mega-card .mega-muted-note {
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}

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

.language {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
}

.language summary {
  list-style: none;
  height: 32px;
  min-width: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 4px;
  padding: 0 8px;
  color: var(--body);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--motion-fast), color var(--motion-fast);
}

.language summary::-webkit-details-marker { display: none; }
.language summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: .7;
  transition: transform var(--motion-fast);
}

.language summary:hover,
.language[open] summary {
  background: var(--canvas);
}

.language[open] summary::after {
  transform: rotate(-135deg) translateY(-1px) translateX(-1px);
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 160px;
  padding: 6px;
  border: 1px solid rgba(18, 24, 33, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 12px 32px -6px rgba(18, 24, 33, 0.08),
    0 0 1px 0 rgba(18, 24, 33, 0.08),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
  z-index: 60;
  transform: translateY(4px);
}

.language-menu::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 22px;
  transform: rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.88);
  border-left: 1px solid rgba(18, 24, 33, 0.08);
  border-top: 1px solid rgba(18, 24, 33, 0.08);
  z-index: -1;
}

.language-menu a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 4px;
  color: var(--body);
  font-size: 13px;
  font-weight: 700;
  transition: background-color var(--motion-fast);
}

.language-menu a:hover {
  background: rgba(18, 24, 33, 0.03);
}

/* Button & Shimmer */
.btn,
.rfq-submit-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(18, 24, 33, 0.12);
  border-radius: 4px;
  padding: 0 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  color: var(--body);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 
    inset 0 1px 0 #ffffff, 
    0 1px 2px rgba(18, 24, 33, 0.04);
  transition: background var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast), box-shadow var(--motion-fast);
}

.btn::after,
.rfq-submit-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -80%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: none;
  pointer-events: none;
  z-index: 1;
}

.btn:hover::after,
.rfq-submit-btn:hover::after {
  left: 120%;
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 24, 33, 0.2);
  box-shadow: 
    inset 0 1px 0 #ffffff, 
    0 4px 12px rgba(18, 24, 33, 0.06);
}

.btn-primary {
  border-color: #d4561b;
  color: var(--paper);
  background: linear-gradient(180deg, #ff814a 0%, #ef6b2f 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2), 
    0 2px 4px rgba(18, 24, 33, 0.08);
  text-shadow: 0 1px 1px rgba(18, 24, 33, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ef6b2f 0%, #d4561b 100%);
  border-color: #bd4812;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1), 
    0 6px 20px rgba(239, 107, 47, 0.25);
  transform: translateY(-1px);
}

.actions .btn-primary {
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: var(--paper);
  background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1), 
    0 1px 2px rgba(0, 0, 0, 0.2);
}

.actions .btn-primary:hover {
  color: var(--paper);
  background: linear-gradient(180deg, #ff814a 0%, #ef6b2f 100%);
  border-color: #d4561b;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2), 
    0 6px 16px rgba(239, 107, 47, 0.16);
}

.quote-popover {
  position: fixed;
  top: 94px;
  right: max(20px, calc((100vw - var(--max)) / 2));
  z-index: 50;
  width: min(390px, calc(100vw - 32px));
  border: 1px solid rgba(18, 24, 33, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 16px 40px -10px rgba(18, 24, 33, 0.12),
    0 0 1px 0 rgba(18, 24, 33, 0.08),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-6px);
  opacity: 0;
  transition: opacity var(--motion-fast), transform var(--motion-fast);
}

.quote-popover.is-open {
  opacity: 1;
  transform: translateY(0);
}

.quote-popover[hidden] {
  display: none;
}

.quote-popover-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(18, 24, 33, 0.06);
}

.quote-popover-head strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.quote-popover-head span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.quote-popover-body {
  padding: 16px 20px 20px;
}

.quote-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 4px;
  transition: background-color var(--motion-fast);
}

.checklist-item:hover {
  background: rgba(18, 24, 33, 0.02);
}

.checklist-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 107, 47, 0.08);
  color: var(--orange);
  margin-top: 2px;
}

.checklist-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checklist-content b {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.checklist-content span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.quote-popover .quote-action-btn {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, #ff814a 0%, #ef6b2f 100%);
  border: 1px solid #d4561b;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2), 
    0 2px 4px rgba(18, 24, 33, 0.08);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper);
  text-shadow: 0 1px 1px rgba(18, 24, 33, 0.1);
  transition: background var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast);
}

.quote-popover .quote-action-btn:hover {
  background: linear-gradient(180deg, #ef6b2f 0%, #d4561b 100%);
  border-color: #bd4812;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1), 
    0 4px 16px rgba(239, 107, 47, 0.25);
  transform: translateY(-1px);
}

.media-zoom {
  overflow: hidden;
  background: var(--canvas);
}

.media-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-zoom:hover img { transform: scale(1.035); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 0;
  }
  .nav {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    contain: paint;
  }
  .nav > ul {
    min-width: max-content;
  }
  .mega-panel,
  .nav-dropdown {
    display: none !important;
  }
  .language-menu {
    right: 0;
    left: auto;
    max-width: calc(100vw - 32px);
  }
  .actions { justify-content: flex-start; }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0;
  }
}

.mega-link-disabled {
  color: var(--muted) !important;
  opacity: 0.6;
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
  display: inline-flex;
  cursor: not-allowed;
  pointer-events: none;
}
