/* v48ac — overflow, hero, language toggle, compact catalogue toolbar.
   Loaded after the storefront bundle. Idempotent if included twice. */

/* 1. Root cause: closed cart/saved drawers sit position:fixed just to the
   right of the viewport (translateX ~100%). On iOS Safari that extends the
   scrollable page sideways, so the whole layout shifts right and clips the
   logo, hero and CTA. Hide closed drawers from the scrollable overflow.
   overflow-x: clip on html is a safety net, not the only fix. */
html { overflow-x: clip; }
body { overflow-x: clip; }

.cart-drawer:not(.is-open),
.saved-drawer:not(.is-open),
aside.cart-drawer:not(.is-open),
aside.saved-drawer:not(.is-open) {
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  left: auto !important;
  right: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.cart-drawer.is-open,
.saved-drawer.is-open {
  visibility: visible !important;
  pointer-events: auto !important;
  width: min(390px, 100vw) !important;
  max-width: 100vw !important;
  height: auto !important;
  overflow: hidden auto !important;
}

/* Prevent any wide child from stretching the page. */
img, svg, video, canvas { max-width: 100%; }
.vp2-marquee, .vp2-marquee__track { max-width: 100%; overflow: hidden; }

/* 2. Hero: centred, wrapping, no broken words. The gradient line is the
   second heading line and must wrap cleanly at 360/390. */
.vp2-hero,
.lab-hero,
.v27-hero {
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}
.vp2-hero__copy,
.lab-hero__copy {
  margin-inline: auto;
  max-width: 42rem;
  text-align: center;
}
.vp2-hero h1,
.lab-hero h1,
.v27-hero h1 {
  text-align: center;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  max-width: 100%;
}
.vp2-hero h1 .grad,
.lab-hero h1 .grad,
.v27-hero h1 .grad {
  display: block;
  margin-top: 0.15em;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  max-width: 100%;
}
.vp2-hero__actions,
.hero-status,
.vp2-hero .lab-ruo,
.lab-hero .lab-ruo {
  text-align: center;
  max-width: 100%;
}
.vp2-hero .button,
.v27-cta {
  max-width: 100%;
  box-sizing: border-box;
}

/* 3. Language toggle: flag + language code must both be visible and aligned.
   The previous 40×40 circle clipped the "EN" label. */
html body .lang-switcher--bar,
html body details.lang-toggle,
html body details.lang-switcher.lang-switcher--bar {
  flex: none;
}
html body .lang-switcher--bar > summary,
html body details.lang-toggle > summary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 44px;
  height: 40px;
  min-height: 40px;
  padding: 0 10px !important;
  box-sizing: border-box;
}
html body .lang-toggle .lang-flag,
html body .lang-switcher--bar .lang-flag {
  display: block !important;
  width: 20px !important;
  height: 14px !important;
  flex: none !important;
  object-fit: cover;
  border-radius: 2px;
}
html body .lang-toggle__code {
  display: inline-block !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  position: static !important;
}

/* 4. Catalogue toolbar — small assortment, centred heading with rules,
   centred search, pill chips, price-sort pills. Old More / SORT hidden. */
.catalogue-heading-v6 {
  text-align: center;
  margin-bottom: 1.25rem;
}
.catalogue-heading-v6 > div { display: contents; }
#catalogue-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  text-align: center;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  max-width: 100%;
  white-space: nowrap;
}
#catalogue-title::before,
#catalogue-title::after {
  content: "";
  flex: 1 1 2rem;
  height: 1px;
  max-width: 9rem;
  background: rgba(243, 240, 250, 0.28);
}
#catalogue .vp2-search__box,
.catalogue-section .vp2-search__box,
#home-search-form.vp2-search__box {
  margin-inline: auto;
  max-width: 32rem;
  width: 100%;
}
.catalogue-section .v27-search,
#catalogue .v27-search {
  display: flex;
  justify-content: center;
  margin: 0 auto 1rem;
  width: 100%;
}
.vp2-chips.quick-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
  margin: 0 auto 1rem;
}
.vp2-chips.quick-categories button {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  line-height: 1.2;
  border: 1px solid rgba(196, 178, 255, 0.35);
  background: #16131f;
  color: #f3f0fa;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.vp2-chips.quick-categories button[aria-pressed="true"],
.vp2-chips.quick-categories button.is-active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

/* Hide the old toolbar (More, Sort/Relevance, duplicate search) at every
   width. Keep the nodes in the DOM so existing catalogue JS keeps working.
   Specificity must beat bundle rules such as:
     html body #catalogue-filters { display: grid/flex !important } (max-width 720/899)
     html body .v37-more-filters { display: inline-block !important }
     body.theme-v22 .toolbar--v6 { display: flex !important }
   Those won over the v48ac/v48ac2 rule, so More + Relevance still showed at 390 px. */
html body #catalogue #catalogue-filters,
html body #catalogue .toolbar--v6,
html body #catalogue .toolbar.toolbar--v6,
html body #catalogue .v37-more-filters,
html body #catalogue .v37-more-filters > summary,
html body #catalogue #sort-filter,
html body #catalogue .field:has(#sort-filter),
html body #catalogue #load-more,
html body #catalogue #show-all-products,
html body #catalogue .catalogue-footer,
html body #catalogue .result-help,
html body .filter-toggle[aria-controls="catalogue-filters"],
html body .v48ac-legacy-hidden,
html body .v48ac-legacy-hidden > summary {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  clip: rect(0, 0, 0, 0) !important;
}
/* Result count is not in the reference; keep it for assistive tech only. */
.result-bar--v6 #result-count {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.result-bar--v6 { min-height: 0; margin: 0; padding: 0; border: 0; }

.product-grid,
.product-grid--v6 {
  justify-content: center;
  margin-inline: auto;
}

/* Price-sort pills, injected by v48ac-layout.js */
.v48ac-price-sort {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 1.25rem;
  max-width: 100%;
}
.v48ac-price-sort button {
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.2;
  border: 1px solid rgba(196, 178, 255, 0.35);
  background: #16131f;
  color: #f3f0fa;
  cursor: pointer;
}
.v48ac-price-sort button[aria-pressed="true"] {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

@media (max-width: 639px) {
  #catalogue-title { gap: 0.7rem; white-space: nowrap; }
  #catalogue-title::before,
  #catalogue-title::after { max-width: 3.5rem; }
  #catalogue .vp2-search__box,
  .catalogue-section .vp2-search__box,
  #home-search-form.vp2-search__box {
    max-width: none;
    width: calc(100% - 0.5rem);
  }
  /* Chips wrap centred; if a single chip is long it stays in-box.
     Horizontal scroll is contained here — not on the page. */
  .vp2-chips.quick-categories {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding-bottom: 0.15rem;
  }
}

@media (min-width: 1280px) {
  .catalogue-section .shell,
  #catalogue > .shell {
    max-width: 72rem;
  }
}

/* Small icons on category pills, including the new Skin & beauty research chip. */
.vp2-chips.quick-categories button::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6'/></svg>");
}
.vp2-chips.quick-categories button[data-category-target="all"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='2' y='2' width='5' height='5' rx='1'/><rect x='9' y='2' width='5' height='5' rx='1'/><rect x='2' y='9' width='5' height='5' rx='1'/><rect x='9' y='9' width='5' height='5' rx='1'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='2' y='2' width='5' height='5' rx='1'/><rect x='9' y='2' width='5' height='5' rx='1'/><rect x='2' y='9' width='5' height='5' rx='1'/><rect x='9' y='9' width='5' height='5' rx='1'/></svg>");
}
.vp2-chips.quick-categories button[data-category-target="metabol"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 12h2l2-5 3 7 2-4h3' fill='none' stroke='black' stroke-width='1.5'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 12h2l2-5 3 7 2-4h3' fill='none' stroke='black' stroke-width='1.5'/></svg>");
}
.vp2-chips.quick-categories button[data-category-target="skin"]::before,
.vp2-chips.quick-categories button[data-category-target="beauty"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 2c-3 0-5 3-5 6 0 4 2 7 5 7s5-3 5-7c0-3-2-6-5-6z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 2c-3 0-5 3-5 6 0 4 2 7 5 7s5-3 5-7c0-3-2-6-5-6z'/></svg>");
}
.vp2-chips.quick-categories button[data-category-target="neuro"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='7' r='4'/><path d='M5 11c-2 1-3 3-3 4h12c0-1-1-3-3-4'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='7' r='4'/><path d='M5 11c-2 1-3 3-3 4h12c0-1-1-3-3-4'/></svg>");
}
.vp2-chips.quick-categories button[data-category-target="recovery"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 10h2.5l1.5-4 2 6 1.5-3H13'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 10h2.5l1.5-4 2 6 1.5-3H13'/></svg>");
}
.vp2-chips.quick-categories button[data-category-target="aging"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='5'/><path d='M8 4v4l3 2'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='5'/><path d='M8 4v4l3 2'/></svg>");
}
.vp2-chips.quick-categories button[data-category-target="endocrine"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='5' r='2'/><circle cx='5' cy='11' r='2'/><circle cx='11' cy='11' r='2'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='5' r='2'/><circle cx='5' cy='11' r='2'/><circle cx='11' cy='11' r='2'/></svg>");
}
.vp2-chips.quick-categories button[data-category-target="lab"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6 2h4v5l3 6H3l3-6z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6 2h4v5l3 6H3l3-6z'/></svg>");
}

#catalogue-summary,
.catalogue-heading-v6 #catalogue-summary {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* v48ac: never show "N strength(s)" beside a price. Kit item counts stay. */
.product-card .variant-count:not(.variant-count--kit),
.product-card--compact .variant-count:not(.variant-count--kit),
.product-card--featured .variant-count:not(.variant-count--kit),
.vp2-suggest .variant-count:not(.variant-count--kit) {
  display: none !important;
}


/* Trust row between featured products and All products. Wraps on small screens
   so four items never create overflow-x at 360/390. */
.vp-trust-row {
  max-width: 72rem;
  margin: 0.5rem auto 1.25rem;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
}
.vp-trust-row__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vp-trust-row__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
  color: #F3F0FA;
}
.vp-trust-row__item svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: #C4B5FD;
  stroke-width: 1.7;
  margin-top: 0.1rem;
}
.vp-trust-row__item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
.vp-trust-row__item span {
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #D9D4E8;
  overflow-wrap: anywhere;
}
.vp-trust-row__link {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
@media (max-width: 899px) {
  .vp-trust-row__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .vp-trust-row {
    margin-inline: 0.75rem;
    padding-inline: 0.25rem;
    max-width: 100%;
  }
  .vp-trust-row__list { grid-template-columns: 1fr 1fr; gap: 0.85rem 0.6rem; }
  .vp-trust-row__item strong { font-size: 0.8rem; }
  .vp-trust-row__item span { font-size: 0.68rem; }
}

/* ===================== v48ac7 ===================== */
/* 7. Android: no text inflation (font boosting / text autosizing). */
html { -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; text-size-adjust: 100%; }

/* 7 + 9. Header buttons: at most 44 × 44 px whatever the font size or theme layer.
   Root cause found by Power (punkt 9): body.theme-v12-mobile .header-icon-button { width: 100%; height: 54px }
   together with a 3-column .nav__actions grid; later themes set 42–44 px without !important, so on some
   Android setups the buttons could take half the row. Locked here with px sizes and !important (the
   selectors use header:not(#v48ac7-lock), id-level specificity, so they outrank both the theme rule and the 44px lock in the
   bundle). Icons 22 px. The language button is a pill: width auto with padding, height 40 px, px font. */
html body header:not(#v48ac7-lock) .menu-button,
html body header:not(#v48ac7-lock) #menu-button,
html body header:not(#v48ac7-lock) .header-icon-button,
html body header:not(#v48ac7-lock) .mobile-account-link,
html body header:not(#v48ac7-lock) .mobile-cart-button,
html body header:not(#v48ac7-lock) .nav-saved-button,
html body header:not(#v48ac7-lock) .cart-header-button {
  box-sizing: border-box !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 44px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 44px !important;
  flex: 0 0 40px !important;
  padding: 0 !important;
  overflow: hidden !important;
  font-size: 14px !important;
  line-height: 1 !important;
}
html body header:not(#v48ac7-lock) .nav__actions--v11 { width: auto !important; }
html body header:not(#v48ac7-lock) .menu-button svg,
html body header:not(#v48ac7-lock) #menu-button svg,
html body header:not(#v48ac7-lock) .header-icon-button svg,
html body header:not(#v48ac7-lock) .mobile-account-link svg,
html body header:not(#v48ac7-lock) .mobile-cart-button svg,
html body header:not(#v48ac7-lock) .header-icon-button img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex: none !important;
}
html body header:not(#v48ac7-lock) details.lang-toggle,
html body header:not(#v48ac7-lock) .lang-switcher--bar {
  width: auto !important;
  max-width: 72px !important;
  min-width: 40px !important;
  height: 40px !important;
  max-height: 44px !important;
  flex: 0 0 auto !important;
}
html body header:not(#v48ac7-lock) details.lang-toggle > summary,
html body header:not(#v48ac7-lock) .lang-switcher--bar > summary {
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: auto !important;
  min-width: 40px !important;
  max-width: 72px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 44px !important;
  padding: 0 9px !important;
  overflow: hidden !important;
  border-radius: 999px;
  font-size: 12px !important;
  line-height: 1 !important;
}
html body header:not(#v48ac7-lock) .lang-toggle .lang-flag,
html body header:not(#v48ac7-lock) .lang-switcher--bar .lang-flag {
  width: 20px !important;
  height: 14px !important;
  max-width: 20px !important;
  flex: none !important;
}
html body header:not(#v48ac7-lock) .lang-toggle__code {
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  max-width: 28px;
  overflow: hidden !important;
}
html body header:not(#v48ac7-lock) .brand__mark { width: 40px !important; height: 40px !important; max-width: 40px !important; }
@media (max-width: 340px) {
  html body header:not(#v48ac7-lock) .header-inner { gap: 4px !important; padding-inline: 8px !important; }
  html body header:not(#v48ac7-lock) .brand__mark { width: 34px !important; height: 34px !important; }
}

/* 7 + 8. Hero heading scales with clamp(), may break long words, never clipped. */
html body #top.v27-hero h1,
.vp2-hero h1,
.lab-hero h1 {
  font-size: clamp(1.5rem, 0.9rem + 3.4vw, 3.4rem) !important;
  line-height: 1.08 !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  min-width: 0;
  box-sizing: border-box;
}
html body #top.v27-hero h1 .grad,
.vp2-hero h1 .grad,
.lab-hero h1 .grad { overflow-wrap: break-word !important; hyphens: auto !important; -webkit-hyphens: auto !important; }
.vp2-hero, .lab-hero, .v27-hero, .vp2-hero__copy, .lab-hero__copy { min-width: 0; }

/* 8. Three vials in the hero (v48w labels). Mobile: under a smaller heading. Desktop: beside it. */
.v48ac7-hero-vials { margin: 0; text-align: center; min-width: 0; }
.v48ac7-hero-vials img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 720 / 597;
  margin-inline: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}
.v48ac7-hero-vials figcaption {
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.3;
  opacity: 0.7;
}
/* 9.5: on narrow screens the theme-bold clamp(2.75rem, 7vw, 5.75rem) must never win. */
@media (max-width: 699.98px) {
  html body #top.v27-hero h1,
  html body :is(.vp2-hero, .lab-hero, .v27-hero) h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.15rem) !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: auto !important;
    text-wrap: pretty !important;
  }
}
@media (max-width: 899.98px) {
  html body #top.v27-hero.v48ac7-has-vials { display: flex !important; flex-direction: column; align-items: stretch; }
  html body #top.v27-hero.v48ac7-has-vials .vp2-hero__copy { display: contents; }
  html body #top.v27-hero.v48ac7-has-vials h1 { order: 1; }
  html body #top.v27-hero.v48ac7-has-vials .v48ac7-hero-vials { order: 2; margin: 12px auto 6px; width: min(78vw, 320px); }
  html body #top.v27-hero.v48ac7-has-vials .vp2-hero__copy > :not(h1) { order: 3; }
}
@media (min-width: 900px) {
  html body #top.v27-hero.v48ac7-has-vials {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    text-align: left;
  }
  html body #top.v27-hero.v48ac7-has-vials .vp2-hero__copy { margin: 0; max-width: 40rem; text-align: left; }
  html body #top.v27-hero.v48ac7-has-vials h1,
  html body #top.v27-hero.v48ac7-has-vials .hero-status,
  html body #top.v27-hero.v48ac7-has-vials .vp2-hero__actions,
  html body #top.v27-hero.v48ac7-has-vials .lab-ruo { text-align: left; justify-content: flex-start; }
  html body #top.v27-hero.v48ac7-has-vials .v48ac7-hero-vials img { max-width: 520px; }
  html body #top.v27-hero.v48ac7-has-vials .vp2-hero__copy > * { margin-left: 0 !important; margin-right: auto !important; }
}

/* 1. #products alias inside the product section (old #catalogue still works: the section keeps its id). */
.v48ac7-anchor { display: block; position: relative; height: 0; width: 0; overflow: hidden; }

/* 2. COA page */
.coa-v48ac7 { display: grid; gap: 14px; }
.coa-v48ac7__product { border: 1px solid rgba(127, 127, 127, 0.25); border-radius: 12px; padding: 12px 14px; }
.coa-v48ac7__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.coa-v48ac7__name { margin: 0; font-size: 1.05rem; }
.coa-v48ac7__spec { opacity: 0.75; font-size: 0.9rem; }
.coa-v48ac7__table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.92rem; }
.coa-v48ac7__table th, .coa-v48ac7__table td { text-align: left; padding: 6px 4px; border-top: 1px solid rgba(127, 127, 127, 0.18); overflow-wrap: anywhere; }
.coa-v48ac7__table th { font-weight: 600; opacity: 0.8; }
.coa-v48ac7__coming { font-weight: 600; }

/* 9. Product images: one square well everywhere, object-fit contain. Mobile: product list in two
   columns like "Selected products" (no 96 px list thumbnail). Desktop: same well size in both sections. */
html body[class] :is(#product-grid, #featured-product-grid, #available-now-grid, .product-grid) .product-card .product-card__visual {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  grid-row: auto !important;
}
html body[class] :is(#product-grid, #featured-product-grid, #available-now-grid, .product-grid) .product-card .product-card__visual :is(img, picture, picture img, svg) {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  aspect-ratio: auto !important;
}
html body.theme-bold .product-card--compact .product-card__visual {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  grid-row: auto !important;
}
@media (max-width: 699.98px) {
  html body #product-grid,
  html body .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }
  html body #product-grid .product-card,
  html body #product-grid .product-card--compact,
  html body #product-grid .product-card--compact .product-card__link {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    min-width: 0 !important;
  }
}
@media (min-width: 900px) {
  /* Same column count (4) and therefore the same well size in both sections. */
  html body #product-grid,
  html body #featured-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
/* 9.3: same well size in "Selected products" and the product list in the same view: same gap,
   same outer width and the same 12 px inset around the well as the featured cards. */
html body #product-grid { column-gap: 18px !important; }
@media (min-width: 700px) and (max-width: 899.98px) {
  html body #product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 900px) {
  html body #product-grid { width: min(100%, 1120px) !important; max-width: 1120px !important; margin-inline: auto !important; }
  html body[class] #product-grid .product-card .product-card__visual {
    width: calc(100% - 24px) !important;
    margin: 12px 12px 0 !important;
  }
}

/* v48ac7 (rättelse 10:36): hero-knappen läste "Shop theproducts" på mobil. Inter Tight i fet stil
   har ett mellanslag på bara 0,2 em (3 px vid 15 px) och knappen har negativ bokstavsavstånd, så
   ordgränsen försvann visuellt vid DPR 3. Texten i DOM var rätt ("Shop the products"). */
html body #top .v27-cta,
html body .vp2-hero__actions .button {
  word-spacing: 0.16em !important;
  letter-spacing: 0 !important;
  white-space: normal;
}

/* ===================== v48ac8 (30 nov 2026) =====================
   A. Hjälp-knappen med VeraPep-loggan (assets/media/hjalp/hjalp-logga.svg).
   B. Kundchatten i helskärm på mobil (≤640 px), tangentbordet via visualViewport.
   C. Produktlistan: tom resultatrad dold, kategori- och sorteringsknappar centrerade. */

/* A. Dator: mörk pill med loggan till vänster om texten. */
html body .vp-chat .vp-chat__toggle.vp-chat__toggle--logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: 48px;
  min-width: 48px;
  padding: 0 18px 0 7px;
  border: 1px solid rgba(196, 178, 255, 0.32);
  border-radius: 999px;
  background: var(--b-drawer, #16131F);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
}
html body .vp-chat .vp-chat__toggle.vp-chat__toggle--logo:hover {
  border-color: rgba(196, 178, 255, 0.6);
  background: #1d1929;
}
html body .vp-chat .vp-chat__toggle.vp-chat__toggle--logo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
html body .vp-chat .vp-chat__logo {
  flex: none;
  display: block;
  width: 34px;
  height: 34px;
  background: url("/assets/media/hjalp/hjalp-logga.svg?v=c2f5d93b6b") center / contain no-repeat;
}
html body .vp-chat .vp-chat__label { white-space: nowrap; }
/* Mobil: hela bubblan är loggan (samma 56 px-yta som förut), texten finns kvar för skärmläsare. */
@media (max-width: 720px) {
  html body .vp-chat .vp-chat__toggle.vp-chat__toggle--logo {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
  }
  html body .vp-chat .vp-chat__toggle.vp-chat__toggle--logo:hover { background: transparent; }
  html body .vp-chat .vp-chat__logo {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  }
  html body .vp-chat .vp-chat__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
  }
}
@media (forced-colors: active) {
  html body .vp-chat .vp-chat__toggle.vp-chat__toggle--logo { border: 1px solid ButtonText; }
}

/* B. Kundchatten i helskärm på mobil. Datorvyn (>640 px) är oförändrad. */
@media (max-width: 640px) {
  html.vp-chat-open,
  html.vp-chat-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
  }
  html.vp-chat-open body {
    position: fixed !important;
    left: 0;
    right: 0;
    width: 100%;
  }
  html.vp-chat-open .vp-chat { z-index: 2147483000; }
  html.vp-chat-open .vp-chat .vp-chat__toggle { display: none !important; }
  html body .vp-chat .vp-chat__panel:not([hidden]) {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 2147483001;
  }
  /* visualViewport: höjd och offset när tangentbordet är uppe (sätts av v48l-chat.js). */
  html.vp-chat-vv body .vp-chat .vp-chat__panel:not([hidden]) {
    top: var(--vp-chat-top, 0px);
    bottom: auto;
    height: var(--vp-chat-vh, 100dvh);
  }
  html.vp-chat-kbd body .vp-chat .vp-chat__panel:not([hidden]) { padding-bottom: 0; }
  html.vp-chat-kbd .vp-chat .vp-chat__intro,
  html.vp-chat-kbd .vp-chat .vp-chat__faqs,
  html.vp-chat-kbd .vp-chat .vp-chat__faq-answer { display: none; }
  html body .vp-chat .vp-chat__head { flex: none; min-height: 56px; }
  html body .vp-chat .vp-chat__close { min-width: 48px; min-height: 48px; font-size: 1.6rem; line-height: 1; }
  html body .vp-chat .vp-chat__intro,
  html body .vp-chat .vp-chat__offline,
  html body .vp-chat .vp-chat__faq-answer { flex: none; }
  html body .vp-chat .vp-chat__faqs { flex: none; max-height: 30vh; overflow-y: auto; }
  html body .vp-chat .vp-chat__log { flex: 1 1 auto; min-height: 0; }
  html body .vp-chat .vp-chat__form { flex: none; }
  /* minst 16 px, annars zoomar iOS Safari in vid fokus */
  html body .vp-chat .vp-chat__form textarea,
  html body .vp-chat .vp-chat__form input { font-size: 16px !important; }
}

/* C. Produktlistan. .result-bar--v6 var en tom, mörk avrundad rad under sorteringen
   (#result-count är dold tills den har text och .result-help visas inte). Raden döljs visuellt,
   men #result-count (aria-live) finns kvar för skärmläsare. */
html body #catalogue .result-bar.result-bar--v6 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
/* Kategoriknappar och sortering centrerade. "safe center": får raden inte plats börjar den
   från vänster i stället för att klippas. */
html body #catalogue .vp2-chips.quick-categories,
html body #catalogue .v48ac-price-sort {
  justify-content: center !important;
  justify-content: safe center !important;
}
html body #catalogue .vp2-chips.quick-categories > button,
html body #catalogue .v48ac-price-sort > button { max-width: 100%; }
/* C2. Mobil (≤640 px): symmetriskt. Sökrutan, kategorirutnätet, sorteringsraden och korten
   linjerar mot samma kanter (verktygsradens bredd). Kategorierna i två lika breda kolumner med
   lika höga knappar; vid ett udda antal tar "Alla produkter" (första knappen) hela bredden överst.
   Sorteringen är tre lika breda knappar i en rad. */
@media (max-width: 640px) {
  html body #catalogue .vp2-toolbar > #search { width: 100% !important; }
  html body #catalogue #home-search-form.vp2-search__box {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }
  html body #catalogue .vp2-chips.quick-categories {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }
  html body #catalogue .vp2-chips.quick-categories > button:first-child:nth-last-child(odd) { grid-column: 1 / -1 !important; }
  html body #catalogue .vp2-chips.quick-categories > button,
  html body #catalogue .v48ac-price-sort > button {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
  }
  /* Ikonen (::before) tas bort i rutnätet: texten blir mitt i knappen och långa tyska/franska ord får plats. */
  html body #catalogue .vp2-chips.quick-categories > button::before { display: none !important; }
  html body #catalogue .vp2-chips.quick-categories > button { font-size: 13.5px !important; padding: 6px 8px !important; }
  html body #catalogue .v48ac-price-sort {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }
  html body #catalogue .v48ac-price-sort > button { min-height: 40px !important; padding: 6px 6px !important; }
}

/* C3. Dator/surfplatta (≥641 px): kategorierna som lika breda knappar (210 px) i centrerade rader,
   högst fyra per rad. Varje rad centreras för sig, så en udda sista rad (t.ex. 4 + 3 med sju knappar)
   hamnar mitt under raden ovanför i stället för till vänster som i ett rutnät. */
@media (min-width: 641px) {
  /* Varje grupp på egen rad, centrerad (annars hamnar kategorierna bredvid sorteringen). */
  html body #catalogue .vp2-toolbar { flex-direction: column !important; align-items: center !important; }
  html body #catalogue .vp2-toolbar > #search { width: 100% !important; }
  html body #catalogue .vp2-chips.quick-categories {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: calc(4 * 210px + 3 * 8px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  html body #catalogue .vp2-chips.quick-categories > button {
    flex: 0 0 210px !important;
    width: 210px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 40px !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }
}

/* D. Antalsbrickan på varukorgen (och favoriter). v48ac7:s 40 px-lås ovan satte overflow: hidden
   på header-knapparna, så brickan (top/right -6 px) klipptes till en halv cirkel. Knapparna med
   bricka får overflow: visible; brickan är 18 px, centrerad text, padding för två siffror. */
html body header:not(#v48ac7-lock) .cart-header-button,
html body header:not(#v48ac7-lock) .mobile-cart-button,
html body header:not(#v48ac7-lock) .nav-saved-button {
  position: relative !important;
  overflow: visible !important;
}
html body header:not(#v48ac7-lock) :is(#cart-header-count, #mobile-cart-count, #saved-count, .cart-header-button > strong, .mobile-cart-button > strong, .nav-saved-button > span):not([data-empty="true"]) {
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
  display: block !important;
  box-sizing: border-box !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  line-height: 18px !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums;
  overflow: visible !important;
  /* den vita ringen (tidigare border: 2px) ritas utanför, så 18 px och line-height 18 px centrerar texten */
  border: 0 !important;
  box-shadow: 0 0 0 2px #fff !important;
}

/* A2. Sista raden i sidfoten ("Till toppen") hamnade under Hjälp-knappen när man scrollat
   till slutet. Sidfoten får plats nedtill för knappen (och för köpraden på produktsidan). */
html body .site-footer.site-footer--v15 {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
}
@media (max-width: 720px) {
  html body:has(.product-sticky-buy) .site-footer.site-footer--v15 {
    padding-bottom: calc(156px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
