/* Atlantis Formulations — approved responsive updates 1, 3, 4 and 5 only. */

/* Keep product search and filters fully below the sticky contact/header stack. */
.product-toolbar,
.product-toolbar.is-compact {
  top: 124px;
}

@media (min-width: 721px) and (max-width: 900px) {
  .product-toolbar,
  .product-toolbar.is-compact {
    top: 128px;
  }
}

@media (max-width: 720px) {
  .product-toolbar,
  .product-toolbar.is-compact {
    top: 112px;
  }
}

/* Keep the full medical-specialty line visible in homepage latest-product cards. */
.latest-copy {
  min-height: 0;
  padding-bottom: 16px;
}

.latest-card h3 {
  margin-top: 16px;
  margin-bottom: 6px;
}

.latest-card b {
  flex: 0 0 auto;
  display: block;
  margin-top: auto;
  padding-top: 10px;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .latest-copy {
    padding-bottom: 13px;
  }

  .latest-card h3 {
    margin-top: 11px;
    margin-bottom: 5px;
  }

  .latest-card b {
    padding-top: 8px;
  }
}

/* Keep tablet product filters readable without hiding any controls. */
@media (min-width: 721px) and (max-width: 900px) {
  .product-toolbar,
  .product-toolbar.is-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-toolbar .search-box,
  .product-toolbar.is-compact .search-box {
    grid-column: 1 / -1;
  }
}

/* Show current vacancies before the long application form. */
.career-board > aside {
  order: -1;
}

@media (min-width: 1051px) {
  .career-board {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* Keep the Operations partnership action visually consistent with other CTAs. */
.partner-section > a {
  border-radius: 10px;
}

/* Prevent narrow-screen clipping and keep floating controls clear of footer links. */
@media (max-width: 720px) {
  .franchise-benefits {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-bottom {
    padding: 22px 0 64px;
  }
}

/* Keep the rotating portfolio clear of the introduction on landscape tablets. */
@media(min-width:821px) and (max-width:1050px){
  .home-copy{width:48%;max-width:540px}
  .home-copy h1{font-size:clamp(42px,5.6vw,59px)}
  .essentia-orbit{width:min(32vw,330px);right:6vw}
}
/* Grid tracks must be able to shrink below the footer logo's desktop width. */
@media(max-width:720px){
  footer.site-footer{grid-template-columns:minmax(0,1fr)}
  footer.site-footer>*{min-width:0}
}


/* Responsive product layout audit, 23 November 2026. Presentation only. */
html .product-quick-view__panel { width: min(1180px, 100%); min-width: 0; max-width: 100%; }
html .product-quick-view__image { align-self: start; min-height: 0; }
html .product-quick-view__image > button { height: auto; min-height: 0; }
html .product-quick-view__image img { height: clamp(240px, 30vw, 500px); object-fit: contain; }
@media (max-width: 720px) {
  html .catalogue { padding-inline: 20px; }
  html .catalogue .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; border-radius: 0; overflow: visible; }
  html .catalogue .product-card { min-width: 0; padding: 12px; }
  html .catalogue .product-card h2 { min-height: 2.6em; line-height: 1.3; overflow-wrap: anywhere; }
}
@media (max-width: 900px) {
  html .product-quick-view { padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); align-items: center; }
  html .product-quick-view__panel { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 100%; max-height: calc(100dvh - 24px); border-radius: 20px; overscroll-behavior: contain; }
  html .product-quick-view__image { min-width: 0; padding: 16px 20px; }
  html .product-quick-view__image > button { min-width: 0; min-height: 0; padding: 12px; }
  html .product-quick-view__image img { height: clamp(180px, 55vw, 240px); object-fit: contain; }
  html .product-quick-view__content { min-width: 0; padding: 24px 20px; }
  html .product-quick-view__content h2 { margin: 0 0 18px; font-size: clamp(26px, 7.5vw, 34px); line-height: 1.12; overflow-wrap: anywhere; }
  html .product-quick-view__eyebrow { max-width: 100%; }
  html .product-quick-view__sharing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; align-items: stretch; }
  html .product-quick-view__sharing > button { min-width: 0; min-height: 44px; justify-content: center; padding: 8px; font-size: 12px; line-height: 1.35; white-space: normal; }
  html .product-quick-view__sharing .product-quick-view__whatsapp { width: 44px; height: 44px; min-height: 44px; align-self: center; }
  html .product-quick-view__sharing > button { height: 100%; align-self: stretch; }
  html .product-quick-view__sharing .product-literature-options { grid-column: 1 / -1; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html .product-quick-view__sharing .product-literature-options > button { min-width: 0; min-height: 44px !important; }
  html .product-quick-view__close { width: 44px; height: 44px; top: 12px; right: 12px; }
  html .product-quick-view__facts { grid-template-columns: minmax(0, 1fr); }
  html .product-quick-view__facts > div { border-right: 0; border-bottom: 1px solid var(--line); }
  html .product-quick-view__facts > div:last-child { border-bottom: 0; }
  html .product-quick-view__facts > div, html .product-quick-view__composition { padding: 16px; min-width: 0; }
  html .product-quick-view__facts strong, html .product-quick-view__composition strong { overflow-wrap: anywhere; }
}
@media (max-height: 500px) and (min-width: 901px) {
  html .product-quick-view { padding: 12px; }
  html .product-quick-view__panel { width: 100%; max-height: calc(100dvh - 24px); grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  html .product-quick-view__image { min-height: 0; padding: 20px; }
  html .product-quick-view__image > button { min-height: 220px; padding: 12px; }
  html .product-quick-view__image img { height: 200px; }
  html .product-quick-view__content { padding: 28px 24px; }
}

/* Include both the contact strip and header in the menu's available height. */
@media (max-width: 1050px) {
  html .site-header nav.open { max-height: calc(100dvh - 124px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 900px) {
  html .site-header nav.open { max-height: calc(100dvh - 128px); }
}
@media (max-width: 720px) {
  html .site-header nav.open { max-height: calc(100dvh - 112px); }
}
