.brand-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

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

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 142px;
  height: 34px;
  margin-left: 4px;
  padding: 0 28px 0 10px;
  border: 1px solid currentColor;
  border-radius: 5px;
  color: inherit;
  opacity: .82;
  transition: opacity .2s ease, border-color .2s ease, color .2s ease;
}

.language-switcher:hover,
.language-switcher:focus-within {
  opacity: 1;
  border-color: #f3b61f;
  color: #f3b61f;
}

.language-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.language-select {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0 26px 0 33px;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.language-select option {
  background: #fff;
  color: #18212a;
}

.language-chevron {
  position: absolute;
  right: 8px;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

html[lang="ar"] body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

html[lang="hi"] body,
html[lang="th"] body,
html[lang="km"] body {
  font-family: "Nirmala UI", "Leelawadee UI", "Segoe UI", Arial, sans-serif;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .language-switcher {
  padding-right: 10px;
  padding-left: 28px;
}

html[dir="rtl"] .language-select {
  padding-right: 33px;
  padding-left: 26px;
}

html[dir="rtl"] .language-chevron {
  right: auto;
  left: 8px;
}

html[dir="rtl"] .product-body li,
html[dir="rtl"] .home-product-copy li {
  padding-right: 18px;
  padding-left: 0;
}

html[dir="rtl"] .product-body li::before,
html[dir="rtl"] .home-product-copy li::before {
  right: 0;
  left: auto;
}

html[dir="rtl"] .plain-list li {
  border-right: 4px solid #f3b61f;
  border-left: 0;
}

html[dir="rtl"] th,
html[dir="rtl"] td {
  text-align: right;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 140;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  transition: transform .2s ease, filter .2s ease;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 1px solid rgba(37, 211, 102, .45);
  border-radius: 50%;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(5, 25, 18, .3));
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #ffb600;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float::before {
    animation: whatsappPulse 2.4s ease-out infinite;
  }
}

@keyframes whatsappPulse {
  0% { opacity: .8; transform: scale(.9); }
  75%, 100% { opacity: 0; transform: scale(1.25); }
}

.site-header .brand-logo-home {
  width: 166px;
}

.site-header .brand-logo-secondary {
  width: 164px;
}

.site-footer.shared-footer {
  display: block;
  padding: 0;
  background: #071522;
  color: #c2cfda;
}

.shared-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 44px;
  max-width: none;
  padding: 46px max(34px, calc((100% - 1280px) / 2)) 38px;
}

.shared-footer .footer-brand p {
  max-width: 230px;
  margin: 15px 0 0;
  color: #899bab;
  font-size: 12px;
}

.shared-footer .footer-brand .brand-logo-footer {
  width: 164px;
}

.shared-footer .footer-socials {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

.shared-footer .footer-socials a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.shared-footer .footer-socials a:hover {
  transform: translateY(-2px);
  border-color: #ffb600;
  background: #ffb600;
}

.shared-footer .footer-socials a:focus-visible {
  outline: 2px solid #ffb600;
  outline-offset: 3px;
}

.shared-footer .footer-socials img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.shared-footer strong {
  display: block;
  margin-bottom: 17px;
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
}

.shared-footer a,
.shared-footer span {
  display: block;
  margin: 0 0 9px;
  color: #98a9b7;
  font-size: 11px;
  transition: color .2s ease;
}

.shared-footer a:hover {
  color: #ffb600;
}

.shared-footer .footer-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  margin-bottom: 9px;
}

.shared-footer .footer-contact-row img {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  object-fit: contain;
}

.shared-footer .brand-logo-link {
  display: inline-flex;
  margin: 0;
}

.shared-footer .footer-bottom {
  padding: 14px 34px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #718697;
  font-size: 10px;
  text-align: center;
}

@media (max-width: 1100px) {
  .site-nav {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100dvh - 74px);
    flex-direction: column;
    gap: 0;
    padding: 12px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid #d9e1e7;
    background: #fff;
  }

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

  .site-nav a {
    width: 100%;
    padding: 13px 0;
  }

  .nav-toggle {
    display: block;
  }

  .shared-footer .footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .site-header .brand-logo {
    width: 148px;
  }

  .language-switcher {
    width: 100%;
    height: 42px;
    margin: 6px 0 0;
    border-color: rgba(49, 66, 82, .3);
    opacity: 1;
  }

  .home-page .language-switcher {
    border-color: rgba(255, 255, 255, .28);
  }

  .language-select {
    font-size: 13px;
  }
}

@media (max-width: 620px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  .site-header .brand-logo {
    width: 136px;
  }

  .shared-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
    padding: 38px 18px 30px;
  }

  .shared-footer .footer-brand {
    grid-column: 1 / -1;
  }

  .shared-footer .footer-grid > *,
  .shared-footer .footer-contact-row > * {
    min-width: 0;
  }

  .shared-footer a,
  .shared-footer span,
  .shared-footer strong,
  .shared-footer p {
    overflow-wrap: anywhere;
  }

  html[dir="rtl"] .site-nav a {
    text-align: right;
  }
}

/* Shared mobile resilience for translated secondary and product-detail pages. */
@media (max-width: 640px) {
  body:not(.home-page) .page-hero h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .page-hero.slim {
    min-height: auto;
  }

  .page-hero.product-detail {
    gap: 28px;
    padding-bottom: 48px;
  }

  .page-hero.product-detail img {
    max-height: 270px;
  }

  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .detail-layout > *,
  .application-row > *,
  .distributor-layout > *,
  .about-grid > *,
  .contact-layout > *,
  .spec-card,
  .mini-card,
  .contact-card {
    min-width: 0;
  }

  .button,
  .inquiry-form input,
  .inquiry-form select,
  .inquiry-form textarea {
    min-width: 0;
  }

  .button {
    height: auto;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .table-wrap {
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 380px) {
  body:not(.home-page) .page-hero h1 {
    font-size: 32px;
  }

  body:not(.home-page) .section {
    padding-right: 16px;
    padding-left: 16px;
  }

  body:not(.home-page) .page-hero {
    padding: 56px 16px;
  }
}
