/* Lusa UX 2026-09-08. Additive presentation patch for the deployed theme.
   Native product, form and carousel behavior remains owned by PrestaShop.
   The checkout is deliberately outside these component overrides. */
body:not(#checkout) {
  min-width: 300px;
  --lusa-ink: #143c50;
  --lusa-blue: #064e71;
  --lusa-blue-dark: #143c50;
  --lusa-blue-hover: #043d59;
  --lusa-surface: #f5f8fa;
  --lusa-radius-sm: .375rem;
  --lusa-radius: .75rem;
  --lusa-radius-lg: .75rem;
  --lusa-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bs-primary: #064e71;
  --bs-primary-rgb: 6, 78, 113;
  --bs-link-color: #064e71;
  --bs-link-hover-color: #043d59;
  --bs-body-font-family: var(--lusa-font-sans);
  font-family: var(--lusa-font-sans);
}
html:has(body:not(#checkout)) { min-width: 300px; }

body:not(#checkout) :where(.btn, .lusa-button, .lusa-home-carousel__link) {
  border-radius: 6px;
  font-family: inherit;
  font-weight: 650;
}

body:not(#checkout) .btn-primary {
  --bs-btn-bg: #064e71;
  --bs-btn-border-color: #064e71;
  --bs-btn-hover-bg: #043d59;
  --bs-btn-hover-border-color: #043d59;
  --bs-btn-active-bg: #043d59;
  --bs-btn-active-border-color: #043d59;
  border-radius: 6px;
  border-color: #064e71;
  background: #064e71;
}

body:not(#checkout) .btn-primary:where(:hover, :focus-visible, :active, .show) {
  border-color: #043d59;
  background: #043d59;
}

/* Native template additions remain separate from the monetary amount. */
body:not(#checkout) .product__prices:has(.lusa-product-tax-label, .lusa-product-packaging) { flex-wrap: wrap; }
body:not(#checkout) :where(.lusa-product-tax-label, .lusa-product-packaging) {
  flex: 0 0 100%;
  width: 100%;
  margin-bottom: 0;
  color: #526271;
  font-size: .8125rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
body:not(#checkout) a.lusa-product-packaging { color: #064e71; }
body:not(#checkout) .lusa-product-tax-suffix { display: inline; flex: 0 0 auto; width: auto; margin-left: .3em; color: #526271; font-size: .75em; font-weight: 600; white-space: nowrap; }
body:not(#checkout) .lusa-product-advice {
  padding: 1rem;
  border: 1px solid #d6e0e8;
  border-radius: 12px;
  color: #143c50;
  background: #f5f8fa;
  font-size: .875rem;
  line-height: 1.5;
}
body:not(#checkout) .lusa-product-advice a { display: inline-flex; align-items: center; min-height: 44px; color: #064e71; font-weight: 650; }

body:not(#checkout) :where(.lusa-button, .lusa-home-carousel__link):focus-visible,
body:not(#checkout) .lusa-ux-sites a:focus-visible {
  outline: 3px solid #064e71;
  outline-offset: 3px;
}

.lusa-ux-sites {
  border-bottom: 1px solid #d6e0e8;
  color: #143c50;
  background: #fff;
}

.lusa-ux-sites__inner {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: min(calc(100% - 2rem), 75rem);
  min-height: 3rem;
  margin-inline: auto;
}

.lusa-ux-sites a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem .85rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #064e71;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}

.lusa-ux-sites a[aria-current="location"] {
  border-color: #d6e0e8;
  color: #143c50;
  background: #eef4f7;
}

.lusa-ux-sites a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* A filter on the header creates the wrong containing block for Bootstrap's
   fixed offcanvas: the menu was only as tall as the header (about 77 px).
   Keep native overlays viewport-bound while the complete header stays fixed. */
body:not(#checkout) #header.header {
  position: sticky;
  top: 0;
  z-index: 1030;
  overflow: visible;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}
body:not(#checkout) #header .header-bottom { padding-block: .375rem; background: #fff; }
body:not(#checkout) #header .header-bottom__row { min-height: 3.25rem; }
body:not(#checkout) #header .header-bottom__container { width: min(calc(100% - 2rem), 75rem); max-width: none; padding-inline: 0; }
body:not(#checkout) #header .header-bottom .navbar-brand .logo { max-height: 2.5rem; }
body:not(#checkout) #header .ps-mainmenu--desktop .ps-mainmenu__tree-dropdown-toggle { padding-block: .625rem; }
body:not(#checkout) #header .ps-mainmenu--mobile { max-height: 100dvh; border-radius: 0; }
body:not(#checkout) #header .ps-mainmenu--mobile .offcanvas-header { flex-shrink: 0; min-height: 64px; padding: .75rem 1rem; }
body:not(#checkout) #header .ps-mainmenu--mobile .menu__toggle-child { min-width: 44px; min-height: 44px; }
body:not(#checkout) #header .ps-searchbar__offcanvas .offcanvas-header { gap: .5rem; }
body:not(#checkout) #header .ps-searchbar__offcanvas .ps-searchbar__container { flex: 1; min-width: 0; }
body:not(#checkout) #header :where(button, a):focus-visible { outline: 3px solid #064e71; outline-offset: 2px; }
body:not(#checkout) #header .lusa-ux-menu-title { color: #143c50; font-size: 1rem; }
body:not(#checkout) #header .ps-mainmenu--mobile:has(.js-back-button:not(.d-none)) .lusa-ux-menu-title { display: none; }

@media (min-width: 768px) {
  body:not(#checkout) #header .header-top { min-height: 40px; padding-block: 0; }
  body:not(#checkout) #header .header-top .container-md { width: min(calc(100% - 2rem), 75rem); max-width: none; padding-inline: 0; }
  body:not(#checkout) #header .header-top .row { min-height: 40px; align-items: center; }
  body:not(#checkout) #header .header-top .header-block__action-btn { min-height: 40px; padding: .375rem .625rem; font-size: .875rem; }
  body:not(#checkout) #header .header-top .ps-contactinfo__phone { font-size: .8125rem; line-height: 1.3; }
}

@media (max-width: 767px) {
  body:not(#checkout) #header .header-bottom__row { --bs-gutter-x: 0; }
  body:not(#checkout) #header .header-bottom .navbar-brand .logo { width: clamp(84px, calc(100vw - 208px), 128px); max-width: none; max-height: 2.125rem; }
  body:not(#checkout) #header :where(.menu-toggle, .header-block__action-btn) { display: inline-flex; justify-content: center; align-items: center; width: 44px; min-width: 44px; height: 44px; padding: .5rem; }
  body:not(#checkout) #header .ps-searchbar__offcanvas .offcanvas-header { padding: .75rem; }
}

/* Keep the approved image, copy and controls together in normal flow. */
body#index .lusa-home-carousel { margin-block: 1.25rem; }
body#index .lusa-home-carousel .lusa-home-carousel__slide { min-height: 360px; }
body#index .lusa-home-carousel .lusa-home-carousel__copy { width: min(580px, 54%); padding: 2rem; }
body#index .lusa-home-carousel .lusa-home-carousel__eyebrow { margin-bottom: .65rem; font-size: .6875rem; }
body#index .lusa-home-carousel .lusa-home-carousel__copy :is(h1,h2) { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.14; }
body#index .lusa-home-carousel .lusa-home-carousel__description { margin: .85rem 0 1rem; font-size: .9375rem; line-height: 1.5; }
body#index .lusa-home-carousel .lusa-home-carousel__link { min-height: 44px; padding: .65rem .9rem; font-size: .8125rem; }
body#index .lusa-home-carousel .lusa-home-carousel__toolbar { min-height: 60px; padding: .625rem 1rem; }
body#index .lusa-home-carousel .lusa-home-carousel__controls > button { border-radius: 6px; }

/* These selectors apply only after the exact legacy home structure is found. */
body#index.lusa-ux-home-ready #content .ps-customtext > .container:has(> .lusa-home-intro) {
  width: min(calc(100% - 2rem), 75rem);
  max-width: none;
  margin-inline: auto;
  padding: 0;
}

body#index.lusa-ux-home-ready #content .ps-customtext .lusa-home-intro {
  width: 100%;
  margin: 0;
  padding: clamp(1rem, 2.3vw, 1.5rem);
  border: 1px solid #d6e0e8;
  border-radius: 12px;
  box-shadow: none;
}

body#index.lusa-ux-home-ready #content .lusa-home-intro__copy { max-width: none; }
body#index.lusa-ux-home-ready #content .lusa-home-intro h1 { max-width: 40ch; margin: 0 0 .6rem; font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.2; }
body#index.lusa-ux-home-ready #content .lusa-home-intro .lusa-lede { max-width: 70ch; font-size: 1rem; line-height: 1.5; }
body#index.lusa-ux-home-ready #content .lusa-home-intro .lusa-eyebrow { margin-bottom: .5rem; }
body#index.lusa-ux-home-ready #content .lusa-home-intro .lusa-hero__actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .85rem; }
body#index.lusa-ux-home-ready #content .lusa-home-intro .lusa-button { min-height: 44px; padding: .65rem .8rem; font-size: .875rem; }
body#index.lusa-ux-home-ready #content .lusa-home-intro .lusa-ux-advice-link { display: inline-flex; align-items: center; min-height: 44px; color: #064e71; font-size: .875rem; font-weight: 650; }

body#index.lusa-ux-home-ready #content .lusa-home-intro::before { top: -4rem; right: 1rem; width: 12rem; }
body#index.lusa-ux-home-ready #content .lusa-home-intro::after { top: -1rem; right: -2rem; width: 9rem; }

body#index.lusa-ux-home-ready #content .lusa-ux-usage { width: 100%; margin: 0; padding: 1.5rem 0; }
body#index.lusa-ux-home-ready #content .lusa-ux-usage > .lusa-eyebrow { margin-bottom: .4rem; }
body#index.lusa-ux-home-ready #content .lusa-ux-usage > h2 { max-width: none; margin-bottom: 1rem; font-size: clamp(1.3rem, 2.3vw, 1.65rem); }
body#index.lusa-ux-home-ready #content .lusa-ux-usage .lusa-grid { gap: .875rem; }
body#index.lusa-ux-home-ready #content .lusa-ux-usage .lusa-card { display: flex; flex-direction: column; min-height: 0; padding: 1rem; border-radius: 12px; }
body#index.lusa-ux-home-ready #content .lusa-ux-usage h3 { margin: 0 0 .45rem; font-size: 1.0625rem; line-height: 1.3; }
body#index.lusa-ux-home-ready #content .lusa-ux-usage p { margin-bottom: .5rem; font-size: .875rem; line-height: 1.45; }
body#index.lusa-ux-home-ready #content .lusa-ux-usage .lusa-card__link { min-height: 44px; margin-top: auto; font-size: .875rem; }

body#index.lusa-ux-home-ready #content :where(.ps-featuredproducts, .ps-bestsellers, .ps-specials) { margin-block: 0 2rem; padding-block: 0; }
body#index.lusa-ux-home-ready #content :where(.ps-featuredproducts, .ps-bestsellers, .ps-specials) .module-products { width: min(calc(100% - 2rem), 75rem); max-width: none; margin-inline: auto; padding-inline: 0; }
body#index.lusa-ux-home-ready #content :where(.ps-featuredproducts, .ps-bestsellers, .ps-specials) .section-title { margin: 0 0 1rem; font-size: clamp(1.4rem, 2.3vw, 1.8rem); }
body#index.lusa-ux-home-ready #content #lusa-products { scroll-margin-top: 1.5rem; }
body#index.lusa-ux-home-ready #footer .footer__main > .container { width: min(calc(100% - 2rem), 75rem); max-width: none; padding-inline: 0; }

/* The original editorial nodes are moved after all native product sections. */
body#index .lusa-ux-secondary {
  width: min(calc(100% - 2rem), 75rem);
  margin: 0 auto 2rem;
  padding-top: 1rem;
  border-top: 1px solid #d6e0e8;
}

body#index .lusa-ux-secondary > .lusa-crosspromo,
body#index .lusa-ux-secondary > .lusa-trust,
body#index .lusa-ux-secondary > .lusa-cta { width: 100%; margin: 1.5rem 0; border-radius: 12px; }
body#index .lusa-ux-secondary .lusa-crosspromo { border-color: #d6e0e8; color: #143c50; background: #f5f8fa; box-shadow: none; }
body#index .lusa-ux-secondary .lusa-crosspromo::after { border-color: rgb(6 78 113 / 25%); }
body#index .lusa-ux-secondary .lusa-crosspromo__brand { border-color: #d6e0e8; }
body#index .lusa-ux-secondary .lusa-crosspromo__copy h2 { max-width: none; color: #143c50; font-size: clamp(1.25rem, 2.3vw, 1.65rem); }
body#index .lusa-ux-secondary .lusa-crosspromo__copy > p { display: block; color: #526271; }
body#index .lusa-ux-secondary .lusa-crosspromo__copy .lusa-eyebrow { color: #064e71; }
body#index .lusa-ux-secondary .lusa-crosspromo__label { border-color: #d6e0e8; color: #064e71; background: #fff; }
body#index .lusa-ux-secondary .lusa-crosspromo__offer { border-color: #d6e0e8; color: #143c50; background: #fff; }
body#index .lusa-ux-secondary .lusa-crosspromo__offer strong,
body#index .lusa-ux-secondary .lusa-crosspromo__offer span { color: inherit; }
body#index .lusa-ux-secondary .lusa-crosspromo__terms { font-size: .75rem; line-height: 1.5; }
body#index .lusa-ux-secondary .lusa-crosspromo__terms a { color: #064e71; }
body#index .lusa-ux-secondary .lusa-crosspromo .lusa-button { border: 1px solid #064e71; color: #064e71; background: #fff; box-shadow: none; }
body#index .lusa-ux-secondary .lusa-crosspromo .lusa-button:hover { background: #eef4f7; }
body#index .lusa-ux-secondary .lusa-trust { padding-block: 1.5rem; }
body#index .lusa-ux-secondary .lusa-trust h2 { max-width: none; font-size: clamp(1.3rem, 2.3vw, 1.65rem); }
body#index .lusa-ux-secondary .lusa-trust .lusa-lede { font-size: .9375rem; }
body#index .lusa-ux-secondary .lusa-trust__reference { min-height: 0; padding: .85rem; }
body#index .lusa-ux-secondary .lusa-cta { padding: 1.5rem; }
body#index .lusa-ux-secondary .lusa-cta h2 { max-width: none; font-size: clamp(1.3rem, 2.3vw, 1.65rem); }

@media (max-width: 800px) {
  body#index .lusa-home-carousel .lusa-home-carousel__copy { width: 59%; padding: 1.5rem; }
  body#index .lusa-home-carousel .lusa-home-carousel__slide { min-height: 340px; }
  body#index .lusa-home-carousel .lusa-home-carousel__copy :is(h1,h2) { font-size: 1.8rem; }
}

@media (max-width: 540px) {
  body#index .lusa-home-carousel { margin-block: 1rem; }
  body#index .lusa-home-carousel .lusa-home-carousel__slide { min-height: 0; }
  body#index .lusa-home-carousel .lusa-home-carousel__copy { width: 100%; min-height: 240px; padding: 1rem; }
  body#index .lusa-home-carousel .lusa-home-carousel__copy :is(h1,h2) { font-size: 1.5rem; }
  body#index .lusa-home-carousel .lusa-home-carousel__eyebrow { margin-bottom: .5rem; }
  body#index .lusa-home-carousel .lusa-home-carousel__description { margin: .625rem 0 .75rem; font-size: .875rem; }
  body#index .lusa-home-carousel .lusa-home-carousel__toolbar { padding: .5rem .65rem; }
  body#index.lusa-ux-home-ready #content .lusa-ux-usage .lusa-grid { grid-template-columns: 1fr; gap: .625rem; }
  body#index.lusa-ux-home-ready #content .lusa-ux-usage .lusa-card { padding: .75rem 1rem; }
  body#index.lusa-ux-home-ready #content .lusa-ux-usage h3 { margin-bottom: .25rem; }
  body#index.lusa-ux-home-ready #content .lusa-ux-usage .lusa-card__link { min-height: 44px; }
}

@media (max-width: 359px) {
  body#index .lusa-home-carousel .lusa-home-carousel__copy { min-height: 254px; }
}

@media (prefers-reduced-motion: reduce) {
  .lusa-ux-sites *, body#index .lusa-ux-usage * { transition: none !important; }
}


/* Native fixed panels moved outside the sticky header; IDs and listeners stay native. */
body:not(#checkout) .lusa-ux-overlay { color: #143c50; font-family: var(--lusa-font-sans); background: #fff; }
body:not(#checkout) #mobileMenu.lusa-ux-overlay { max-height: 100dvh; border-radius: 0; }
body:not(#checkout) #mobileMenu.lusa-ux-overlay .offcanvas-header { flex-shrink: 0; min-height: 64px; padding: .75rem 1rem; border-bottom: 1px solid var(--lusa-line); }
body:not(#checkout) #mobileMenu.lusa-ux-overlay .menu__title { color: #143c50; }
body:not(#checkout) #mobileMenu.lusa-ux-overlay .menu__link { min-height: 44px; color: #143c50; font-weight: 600; }
body:not(#checkout) #mobileMenu.lusa-ux-overlay .menu__toggle-child { min-width: 44px; min-height: 44px; }
body:not(#checkout) #mobileMenu.lusa-ux-overlay .lusa-ux-menu-title { color: #143c50; font-size: 1rem; }
body:not(#checkout) #mobileMenu.lusa-ux-overlay:has(.js-back-button:not(.d-none)) .lusa-ux-menu-title { display: none; }
body:not(#checkout) .lusa-ux-overlay :where(button, a):focus-visible { outline: 3px solid #064e71; outline-offset: 2px; }
#searchCanvas.lusa-ux-overlay .ps-searchbar {
  position: relative;
  width: min(32rem, 42vw);
  min-width: min(24rem, 34vw);
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__form {
  position: relative;
  display: block;
  min-height: 3rem;
  border: 1px solid rgb(148 163 184 / 78%);
  border-radius: 0.5rem;
  background: var(--lusa-white);
  box-shadow: none;
  transition:
    border-color 180ms ease,
    box-shadow 220ms var(--lusa-ease),
    background-color 180ms ease;
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__form:focus-within {
  border-color: var(--lusa-blue);
  background: var(--lusa-white);
  box-shadow:
    0 0 0 0.1875rem rgb(8 124 184 / 14%),
    0 0.55rem 1.25rem rgb(7 27 44 / 7%);
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__magnifier {
  position: absolute !important;
  top: 50% !important;
  right: auto;
  bottom: auto !important;
  left: 0.25rem;
  z-index: 2;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  color: var(--lusa-blue-dark);
  font-size: 1.5rem;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%) !important;
  place-items: center;
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__magnifier :where(svg) {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

#searchCanvas.lusa-ux-overlay button.ps-searchbar__magnifier,
#searchCanvas.lusa-ux-overlay a.ps-searchbar__magnifier {
  pointer-events: auto;
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__input {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.875rem;
  padding: 0.625rem 3rem 0.625rem 3.75rem !important;
  border: 0;
  border-radius: 0;
  color: var(--lusa-ink);
  background: transparent;
  box-shadow: none;
  line-height: 1.35;
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__input:focus {
  background: transparent;
  box-shadow: none;
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__input:focus-visible {
  outline: 0;
  outline-offset: 0;
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__form:has(.ps-searchbar__input:is(.is-invalid, [aria-invalid="true"], :user-invalid)) {
  border-color: var(--lusa-danger);
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__form:has(.ps-searchbar__input:is(.is-invalid, [aria-invalid="true"], :user-invalid)):focus-within {
  box-shadow: var(--lusa-danger-focus);
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__input::placeholder {
  color: #64748b;
  opacity: 1;
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__clear {
  position: absolute !important;
  top: 50%;
  right: 0.25rem;
  z-index: 3;
  min-width: 2.5rem;
  min-height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  color: var(--lusa-muted);
  background: transparent;
  transform: translateY(-50%);
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__clear:where(:hover, :focus-visible) {
  color: var(--lusa-white);
  background: var(--lusa-blue-dark);
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__input::-webkit-search-cancel-button {
  display: none;
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__dropdown {
  margin-top: 0.55rem;
  overflow: hidden;
  border: 1px solid var(--lusa-line);
  border-radius: var(--lusa-radius);
  background: var(--lusa-white);
  box-shadow: var(--lusa-shadow);
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__result-link {
  min-height: 3.5rem;
  padding: 0.65rem 0.8rem;
  color: var(--lusa-ink);
  text-decoration: none;
}

#searchCanvas.lusa-ux-overlay .ps-searchbar__result-link:hover,
#searchCanvas.lusa-ux-overlay .ps-searchbar__result-link:focus-visible {
  color: var(--lusa-blue-dark);
  background: var(--lusa-ice);
}

body:not(#checkout) #searchCanvas.lusa-ux-overlay .offcanvas-header { align-items: center; gap: .5rem; padding: .75rem; }
body:not(#checkout) #searchCanvas.lusa-ux-overlay .ps-searchbar__container { flex: 1; min-width: 0; }
body:not(#checkout) #searchCanvas.lusa-ux-overlay :where(.ps-searchbar__container, .ps-searchbar) { width: 100%; min-width: 0; }
body:not(#checkout) #searchCanvas.lusa-ux-overlay .ps-searchbar__input { font-size: 1rem; }
