/* P0 commerce stability: isolated responsive conversion fixes. */

@media (max-width: 760px) {
  /* The product page already has a fixed order/RFQ bar. Hiding the duplicate
     rail prevents it from covering purchase controls and third-party widgets. */
  body.single-product .contact-rail {
    display: none !important;
  }

  body:not(.single-product) .contact-rail {
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 1101px) and (max-width: 1280px) {
  /* Compact the last desktop breakpoint so language and quote controls remain
     fully visible before the mobile navigation takes over. */
  .header-row {
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: 16px;
  }

  .primary-nav ul {
    gap: 16px;
  }

  .language-control label {
    display: none;
  }

  .language-control select {
    max-width: 96px;
  }

  .header-actions {
    min-width: 0;
    gap: 6px;
  }

  .header-cta {
    padding-right: 14px;
    padding-left: 14px;
    white-space: nowrap;
  }
}
