/* v48ac16 (1 dec 2026): sökruta under rubriken, inga sorteringsknappar, ikoner på kategorichipsen. Laddas efter v48ac12-mobil.css. */

/* ---------- 1. Sökrutan på startsidan ---------- */
html body .vp2-hero__copy > .v48ac16-sok {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 34rem;
  min-height: 52px;
  margin: 0 auto;
  padding: 0 6px 0 16px;
  gap: 10px;
  box-sizing: border-box;
  border: 1px solid var(--b-line-strong, #3E3754);
  border-radius: 999px;
  background: var(--b-surface, #16131F);
  color: var(--b-ink, #F3F0FA);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  opacity: 1;
  transform: none;
  animation: none;
  text-align: left;
}
/* Mobil: hero-texten är ett eget block (.vp2-hero__copy { display: contents }) och flaskbilden har order 2 (som sökrutan, men senare i DOM). Sökrutan ligger direkt under rubriken, före bilden. */
@media (max-width: 899px) {
  html body #top.v27-hero.v48ac7-has-vials .vp2-hero__copy > .v48ac16-sok { order: 2; margin: 18px auto 0; width: 100%; }
}
@media (min-width: 900px) {
  html body .vp2-hero__copy > .v48ac16-sok { margin-left: 0; margin-right: auto; }
}
html body .v48ac16-sok:focus-within { border-color: var(--b-accent, #7C3AED); box-shadow: 0 0 0 3px rgba(124, 58, 237, .35), 0 10px 30px rgba(0, 0, 0, .28); }
html body .v48ac16-sok__ikon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
html body .v48ac16-sok__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: inherit;
  font: inherit;
  font-size: 16px; /* 16 px: iPhone zoomar inte in vid fokus */
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  text-overflow: ellipsis;
}
/* id i väljaren: butikens regler för input:focus (body.theme-v15 :is(input…:not(#header-product-search))) väger annars tyngre. */
html body #v48ac16-sok #v48ac16-sok-input,
html body #v48ac16-sok #v48ac16-sok-input:focus,
html body #v48ac16-sok #v48ac16-sok-input:focus-visible { outline: 0 !important; outline-offset: 0 !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
html body .v48ac16-sok__input::placeholder { color: var(--b-muted, #A9A3BA); opacity: 1; }
html body .v48ac16-sok__input::-webkit-search-cancel-button,
html body .v48ac16-sok__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
html body .v48ac16-sok__rensa {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--b-muted, #A9A3BA);
  cursor: pointer;
}
html body .v48ac16-sok__rensa[hidden] { display: none; }
html body .v48ac16-sok__rensa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
html body .v48ac16-sok__rensa:hover { background: rgba(255, 255, 255, .08); color: var(--b-ink, #F3F0FA); }
html body .v48ac16-sok__lista {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  max-height: min(60vh, 24rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid var(--b-line-strong, #3E3754);
  border-radius: 20px;
  background: var(--b-surface-2, #1C1828);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}
html body .v48ac16-sok__lista[hidden] { display: none; }
html body .v48ac16-sok__rad,
html body .v48ac16-sok__alla {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 10px;
  box-sizing: border-box;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--b-ink, #F3F0FA);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
html body .v48ac16-sok__rad:hover, html body .v48ac16-sok__rad:focus-visible,
html body .v48ac16-sok__alla:hover, html body .v48ac16-sok__alla:focus-visible { background: rgba(124, 58, 237, .18); outline: 0; }
html body .v48ac16-sok__bild { display: flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; overflow: hidden; border-radius: 10px; background: rgba(255, 255, 255, .05); }
html body .v48ac16-sok__bild img { display: block; width: 100% !important; height: 100% !important; max-width: none; margin: 0; object-fit: contain; }
html body .v48ac16-sok__bild .premium-vial-photo { width: 24px; }
html body .v48ac16-sok__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
html body .v48ac16-sok__text b { font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
html body .v48ac16-sok__text span { color: var(--b-muted, #A9A3BA); font-size: .8125rem; overflow-wrap: anywhere; }
html body .v48ac16-sok__alla { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; margin-top: 4px; border-top: 1px solid var(--b-line, #2A2538); border-radius: 0 0 14px 14px; padding-top: 12px; }
html body .v48ac16-sok__alla b { color: var(--b-accent-text, #C4B2FF); font-weight: 600; font-size: .9375rem; overflow-wrap: anywhere; }
html body .v48ac16-sok__alla span { color: var(--b-muted, #A9A3BA); font-size: .8125rem; }
html body .v48ac16-sok__tom { margin: 0; padding: 16px 12px; color: var(--b-muted, #A9A3BA); font-size: .9375rem; overflow-wrap: anywhere; }

/* Chattikonen ur vägen (samma teknik som v48ac12). */
html body .vp-chat .vp-chat__toggle { transition: opacity .15s ease, visibility 0s linear 0s; }
html.vp-chat-undan-sok body .vp-chat .vp-chat__toggle { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { html body .v48ac16-sok, html body .vp-chat .vp-chat__toggle { transition: none; } }

/* ---------- 2. Inga sorteringsknappar ---------- */
html body #catalogue .v48ac-price-sort { display: none !important; }


/* ---------- 3. Egna linjeikoner per kategorichip (v48ac16). Samma stil som v35-ui: 24×24, 1.8, runda ändar, currentColor via mask. Sätts på --vpi så v35-ui:s ::before används. */
html body #catalogue .vp2-chips.quick-categories > button { --vpi-v48ac16: none; }
html body #catalogue .vp2-chips.quick-categories > button[data-category-target="all"] { --vpi: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%271.8%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Crect%20x=%224%22%20y=%224%22%20width=%226.5%22%20height=%226.5%22%20rx=%221.5%22/%3E%3Crect%20x=%2213.5%22%20y=%224%22%20width=%226.5%22%20height=%226.5%22%20rx=%221.5%22/%3E%3Crect%20x=%224%22%20y=%2213.5%22%20width=%226.5%22%20height=%226.5%22%20rx=%221.5%22/%3E%3Crect%20x=%2213.5%22%20y=%2213.5%22%20width=%226.5%22%20height=%226.5%22%20rx=%221.5%22/%3E%3C/svg%3E"); } /* rutnät */
html body #catalogue .vp2-chips.quick-categories > button[data-category-target="metabol"] { --vpi: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%271.8%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%22M12%2021c4.2-2.6%206.5-6.2%206.5-10%200-3.5-2.2-5.8-4.2-7%200%202.2-1%203.6-2%204.6C12.2%206.2%2011.2%203.8%2012%203c-3.3%201.7-5.8%204.8-5.8%208%200%203.8%202.3%207.4%205.8%2010z%22/%3E%3Cpath%20d=%22M10.2%2015.2c.5-1.6%201.4-2.7%202.3-3.5%22/%3E%3C/svg%3E"); } /* flamma */
html body #catalogue .vp2-chips.quick-categories > button[data-category-target="skin"] { --vpi: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%271.8%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%22M12%203.5c-1.8%203.2-6%206.8-6%2011a6%206%200%200%200%2012%200c0-4.2-4.2-7.8-6-11z%22/%3E%3C/svg%3E"); } /* droppe */
html body #catalogue .vp2-chips.quick-categories > button[data-category-target="beauty"] { --vpi: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%271.8%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%22M12%203.2%2013.3%209%2019%2010.2%2013.3%2011.5%2012%2017.2%2010.7%2011.5%205%2010.2%2010.7%209z%22/%3E%3Cpath%20d=%22M18.2%2014.2%2018.9%2016.4%2021.1%2017.1%2018.9%2017.8%2018.2%2020%2017.5%2017.8%2015.3%2017.1%2017.5%2016.4z%22/%3E%3Cpath%20d=%22M5.6%2014.8%206.2%2016.6%208%2017.2%206.2%2017.8%205.6%2019.6%205%2017.8%203.2%2017.2%205%2016.6z%22/%3E%3C/svg%3E"); } /* gnistor */
html body #catalogue .vp2-chips.quick-categories > button[data-category-target="forher"] { --vpi: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%271.8%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Ccircle%20cx=%2212%22%20cy=%228.5%22%20r=%224.5%22/%3E%3Cpath%20d=%22M12%2013v8M8.5%2017.8h7%22/%3E%3C/svg%3E"); } /* venustecken */
html body #catalogue .vp2-chips.quick-categories > button[data-category-target="recovery"] { --vpi: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%271.8%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%228%22/%3E%3Cpath%20d=%22M12%208v8M8%2012h8%22/%3E%3C/svg%3E"); } /* plus */
html body #catalogue .vp2-chips.quick-categories > button[data-category-target="aging"] { --vpi: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%271.8%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%228%22/%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%223%22/%3E%3Ccircle%20cx=%228.2%22%20cy=%228.5%22%20r=%221.1%22/%3E%3Ccircle%20cx=%2216%22%20cy=%2214.5%22%20r=%221.1%22/%3E%3C/svg%3E"); } /* cell */
html body #catalogue .vp2-chips.quick-categories > button[data-category-target="endocrine"] { --vpi: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%271.8%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%22M9%203.5h6M10%203.5v5.8l-5.3%209.1A1.8%201.8%200%200%200%206.3%2021h11.4a1.8%201.8%200%200%200%201.6-2.6L14%209.3V3.5M7.3%2015h9.4%22/%3E%3C/svg%3E"); } /* kolv */

/* Ikonerna syns alltid, även i mobilens 2-kolumnsrutnät. Hellre mindre ikon och radbrytning än att dölja ikonen. */
@media (max-width: 640px) {
  html body #catalogue .vp2-chips.quick-categories > button::before {
    display: inline-block !important;
    visibility: visible !important;
    flex: none !important;
    width: 0.95em !important;
    height: 0.95em !important;
    margin: 0 !important;
    margin-inline-end: 0 !important;
    vertical-align: middle;
  }
  html body #catalogue .vp2-chips.quick-categories > button {
    gap: 4px !important;
    padding: 6px 6px !important;
    font-size: 12.5px !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    line-height: 1.2 !important;
    align-items: center !important;
    justify-content: center !important;
  }
}
@media (max-width: 380px) {
  /* Ikonen ovanför texten: hela knapparnas bredd går till ordet (t.ex. Stoffwechselforschung) utan att ikonen döljs. */
  html body #catalogue .vp2-chips.quick-categories > button {
    flex-direction: column !important;
    gap: 2px !important;
    padding: 7px 8px !important;
    font-size: 12px !important;
  }
  html body #catalogue .vp2-chips.quick-categories > button::before { width: 0.95em !important; height: 0.95em !important; }
}
