/* DÉCAAR site search: desktop panel, touch-menu field, live grouped results (decaar-core 0.2).
   World: DESIGN.md "The Label Sheet" (ink on paper, Figtree, hairlines, square corners, no shadows).
   Layout: 1440 content edge; gutters 40 (>=1025) / 32 (768-1024) / 20 (<=767). */

.dcr-s, .dcr-s-scrim, [data-dcr-search-open] {
  --dcr-ink: #000;
  --dcr-paper: #fff;
  --dcr-plate: #F8F7F7;
  --dcr-grey: #666;
  --dcr-rule: rgba(0, 0, 0, .14);
  --dcr-line: rgba(0, 0, 0, .22);
  --dcr-ink-hover: #222;
  --dcr-ease: cubic-bezier(.16, 1, .3, 1);
  --dcr-gutter: 40px;
}
@media (max-width: 1024px) { .dcr-s { --dcr-gutter: 32px; } }
@media (max-width: 767px) { .dcr-s { --dcr-gutter: 20px; } }

/* ---- Trigger (existing header icon): unchanged at rest, 44px hit area, ink when active ---- */
[data-dcr-search-open] { position: relative; cursor: pointer; }
[data-dcr-search-open]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
[data-dcr-search-open]:focus { outline: none; }
[data-dcr-search-open]:focus-visible { outline: 2px solid var(--dcr-ink); outline-offset: 3px; }
[data-dcr-search-open]:hover svg, [data-dcr-search-open][aria-expanded="true"] svg { fill: var(--dcr-ink) !important; transition: fill .2s var(--dcr-ease); }
[data-dcr-search-open] svg path { transition: fill .2s var(--dcr-ease); }

/* Inline host before enhancement, and the emptied Elementor widget, take no space. */
[data-dcr-search-inline]:not(.dcr-s-host) { display: none; }
.dcr-search-host { display: none !important; }

/* ---- Shared component ---- */
.dcr-s { box-sizing: border-box; font-family: Figtree, system-ui, sans-serif; color: var(--dcr-ink); text-align: left; -webkit-font-smoothing: antialiased; }
.dcr-s *, .dcr-s *::before, .dcr-s *::after { box-sizing: border-box; }
.dcr-s ::selection { background: var(--dcr-ink); color: var(--dcr-paper); }
.dcr-s svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }
.dcr-s__form { margin: 0; }
.dcr-s__label, .dcr-s__status { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.dcr-s__field { position: relative; display: flex; align-items: center; }
.dcr-s__glyph { display: flex; color: var(--dcr-ink); }
.dcr-s .dcr-s__input {
  flex: 1 1 auto; min-width: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font: inherit; color: var(--dcr-ink); caret-color: var(--dcr-ink); outline: none; -webkit-appearance: none; appearance: none;
}
.dcr-s .dcr-s__input::placeholder { color: var(--dcr-grey); opacity: 1; }
.dcr-s .dcr-s__input::-webkit-search-decoration, .dcr-s .dcr-s__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.dcr-s .dcr-s__clear, .dcr-s .dcr-s__close {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; color: var(--dcr-ink); cursor: pointer; box-shadow: none;
  transition: background-color .2s var(--dcr-ease);
}
.dcr-s .dcr-s__clear[hidden] { display: none; }
.dcr-s--panel .dcr-s__clear { width: auto; padding: 0 12px; font: inherit; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--dcr-grey); }
.dcr-s--panel .dcr-s__clear:hover { color: var(--dcr-ink); }
.dcr-s .dcr-s__clear:hover, .dcr-s .dcr-s__close:hover { background: var(--dcr-plate); color: var(--dcr-ink); }
/* Neutralise the theme's button :hover/:focus fill (Hello Elementor reset: #c36). */
.dcr-s .dcr-s__clear:focus, .dcr-s .dcr-s__close:focus { background: transparent; color: var(--dcr-ink); box-shadow: none; outline: none; }
.dcr-s--panel .dcr-s__clear:focus { color: var(--dcr-grey); }
.dcr-s .dcr-s__input:focus, .dcr-s .dcr-s__input:focus-visible { outline: none; box-shadow: none; }
/* Focused field: the rule under it thickens to 2px (drawn inset, no blur). */
.dcr-s__field:focus-within { box-shadow: inset 0 -1px 0 var(--dcr-ink); }
.dcr-s .dcr-s__clear:focus-visible, .dcr-s .dcr-s__close:focus-visible { outline: 2px solid var(--dcr-ink); outline-offset: -2px; background: transparent; color: var(--dcr-ink); }

.dcr-s__hint { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--dcr-grey); }
.dcr-s__hint[hidden], .dcr-s__list[hidden] { display: none; }
.dcr-s__list { margin-top: 24px; transition: opacity .2s var(--dcr-ease); }
.dcr-s.is-loading .dcr-s__list { opacity: .55; transition-delay: .15s; }

/* Group: tracked label + tabular count over a full-ink rule (a list opener). */
.dcr-s__group { min-width: 0; }
.dcr-s__group + .dcr-s__group { margin-top: 32px; }
.dcr-s__ghead {
  display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--dcr-ink);
  font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; color: var(--dcr-grey);
}
.dcr-s__gcount { color: var(--dcr-ink); font-variant-numeric: tabular-nums; letter-spacing: .08em; }

/* Options: hairline-ruled rows. */
.dcr-s .dcr-s__opt {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--dcr-rule); color: var(--dcr-ink); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--dcr-ease);
}
.dcr-s .dcr-s__opt:hover, .dcr-s .dcr-s__opt[aria-selected="true"] { background: var(--dcr-plate); color: var(--dcr-ink); }
/* The row's content settles 12px right on hover/selection: transform only (no layout per frame). */
.dcr-s .dcr-s__opt > span { transition: transform .25s var(--dcr-ease); }
.dcr-s .dcr-s__opt:hover > span, .dcr-s .dcr-s__opt[aria-selected="true"] > span { transform: translateX(12px); }
.dcr-s .dcr-s__all > span, .dcr-s--inline.is-idle .dcr-s__opt--q > span { transform: none !important; }
.dcr-s .dcr-s__opt[aria-selected="true"] { outline: 2px solid var(--dcr-ink); outline-offset: -2px; }
.dcr-s .dcr-s__opt:hover .dcr-s__title, .dcr-s .dcr-s__opt[aria-selected="true"] .dcr-s__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dcr-s .dcr-s__opt:focus { outline: none; }
.dcr-s .dcr-s__opt > svg { margin-left: auto; transition: transform .25s var(--dcr-ease); }
.dcr-s .dcr-s__opt:hover > svg, .dcr-s .dcr-s__opt[aria-selected="true"] > svg { transform: translateX(4px); }

.dcr-s__media {
  flex: none; display: block; width: 56px; height: 56px; background: var(--dcr-plate); overflow: hidden;
}
.dcr-s__media img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.dcr-s .dcr-s__opt:hover .dcr-s__media, .dcr-s .dcr-s__opt[aria-selected="true"] .dcr-s__media { background: var(--dcr-paper); }
.dcr-s__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.dcr-s__title {
  font-size: 16px; font-weight: 400; line-height: 1.35; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dcr-s__sub { font-size: 13px; line-height: 1.45; color: var(--dcr-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcr-s mark { background: none; color: inherit; font-weight: 600; padding: 0; }
.dcr-s__sub mark { color: var(--dcr-ink); font-weight: 500; }

.dcr-s .dcr-s__more { min-height: 44px; border-bottom: 0; }
.dcr-s .dcr-s__more .dcr-s__title { font-size: 13px; font-weight: 500; letter-spacing: .02em; }

/* The one solid black action: See all N results. */
.dcr-s .dcr-s__all {
  margin-top: 32px; min-height: 58px; padding: 0 22px; gap: 16px; border: 1px solid var(--dcr-ink); background: var(--dcr-ink); color: var(--dcr-paper);
}
.dcr-s .dcr-s__all .dcr-s__title { font-size: 15px; font-weight: 500; letter-spacing: .02em; -webkit-line-clamp: 1; }
.dcr-s .dcr-s__all:hover, .dcr-s .dcr-s__all[aria-selected="true"] { background: var(--dcr-ink-hover); color: var(--dcr-paper); }
.dcr-s .dcr-s__all[aria-selected="true"] { outline: 2px solid var(--dcr-ink); outline-offset: 3px; }
.dcr-s .dcr-s__all:hover .dcr-s__title, .dcr-s .dcr-s__all[aria-selected="true"] .dcr-s__title { text-decoration: none; }

.dcr-s .dcr-s__contact { margin-top: 24px; border-bottom: 0; }
.dcr-s .dcr-s__opt--dym .dcr-s__title { font-size: 20px; font-weight: 300; }

/* ---- Desktop panel (>=1025) ---- */
.dcr-s--panel {
  position: fixed; left: 0; right: 0; top: var(--dcr-top, 72px); z-index: 9990;
  max-height: calc(100vh - var(--dcr-top, 72px)); max-height: calc(100dvh - var(--dcr-top, 72px));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--dcr-paper); border-top: 1px solid var(--dcr-rule); border-bottom: 1px solid var(--dcr-rule);
  opacity: 0; transform: translateY(-8px); transition: opacity .24s var(--dcr-ease), transform .24s var(--dcr-ease);
}
.dcr-s--panel.is-open { opacity: 1; transform: none; }
.dcr-s--panel[hidden], .dcr-s-scrim[hidden] { display: none; }
.dcr-s--panel .dcr-s__inner { max-width: 1440px; margin: 0 auto; padding: 32px var(--dcr-gutter) 48px; }
.dcr-s--panel .dcr-s__field { gap: 16px; border-bottom: 1px solid var(--dcr-ink); }
.dcr-s--panel .dcr-s__glyph svg { width: 22px; height: 22px; stroke-width: 1.25; }
.dcr-s--panel .dcr-s__input { height: 72px; padding: 0; font-size: 32px; font-weight: 300; line-height: 1.15; letter-spacing: -.01em; }
.dcr-s--panel .dcr-s__list { margin-top: 32px; }
.dcr-s--panel .dcr-s__list--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: start; }
.dcr-s--panel .dcr-s__list--split > .dcr-s__group:first-child { grid-column: 1; grid-row: 1 / span var(--dcr-rows, 1); }
.dcr-s--panel .dcr-s__list--split > .dcr-s__group:not(:first-child) { grid-column: 2; }
.dcr-s--panel .dcr-s__list--split > .dcr-s__group + .dcr-s__group:nth-child(2) { margin-top: 0; }
.dcr-s--panel .dcr-s__list--split > .dcr-s__opt { grid-column: 1 / -1; }
.dcr-s--panel .dcr-s__group[data-type="product"] .dcr-s__media { width: 64px; height: 80px; }
.dcr-s--panel.is-idle .dcr-s__opt--q .dcr-s__title { font-size: 20px; font-weight: 300; }

.dcr-s-scrim {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--dcr-top, 72px); z-index: 9989;
  background: rgba(0, 0, 0, .24); opacity: 0; transition: opacity .24s var(--dcr-ease);
}
.dcr-s-scrim.is-open { opacity: 1; }
@media (max-width: 1024px) { .dcr-s--panel, .dcr-s-scrim { display: none !important; } }

/* ---- Touch: field at the top of the hamburger panel (<=1024) ---- */
@media (min-width: 1025px) { .dcr-s-host { display: none !important; } }
.dcr-s-host { display: block; width: 100%; flex: none; }
.dcr-s--inline .dcr-s__inner { padding: 16px var(--dcr-gutter) 8px; }
.dcr-s--inline .dcr-s__field { min-height: 48px; background: var(--dcr-plate); border-bottom: 1px solid var(--dcr-ink); padding-left: 14px; }
.dcr-s--inline .dcr-s__input { height: 48px; padding: 0 4px 0 10px; font-size: 16px; line-height: 1.4; }
.dcr-s--inline .dcr-s__clear { width: 48px; height: 48px; }
.dcr-s--inline .dcr-s__list { margin-top: 16px; padding-bottom: 24px; }
.dcr-s--inline .dcr-s__opt { min-height: 52px; }
.dcr-s--inline .dcr-s__media { width: 48px; height: 48px; }
.dcr-s--inline .dcr-s__group[data-type="product"] .dcr-s__media { width: 48px; height: 60px; }
.dcr-s--inline .dcr-s__all { min-height: 52px; margin-top: 24px; }
/* Idle: suggested searches as a wrap of square chips above the menu. */
.dcr-s--inline.is-idle .dcr-s__list { margin-top: 12px; padding-bottom: 8px; }
.dcr-s--inline.is-idle .dcr-s__group { display: flex; flex-wrap: wrap; gap: 8px; }
.dcr-s--inline.is-idle .dcr-s__ghead { flex: 1 0 100%; border-bottom: 0; padding-bottom: 0; }
.dcr-s--inline.is-idle .dcr-s__opt--q { min-height: 44px; padding: 0 14px; border: 1px solid var(--dcr-line); }
.dcr-s--inline.is-idle .dcr-s__opt--q:hover, .dcr-s--inline.is-idle .dcr-s__opt--q[aria-selected="true"] { border-color: var(--dcr-ink); }
.dcr-s--inline.is-idle .dcr-s__opt--q .dcr-s__title { font-size: 14px; }
/* While searching, results replace the menu list in the same panel. */
@media (max-width: 1024px) { .dcr-menu-searching > :not(.dcr-s-host) { display: none !important; } }
/* While the desktop panel is open, hover-opened mega-menu panels stay shut so they never sit over or under it. */
@media (min-width: 1025px) { html.dcr-search-open [data-elementor-type="header"] .e-n-menu-content { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .dcr-s *, .dcr-s, .dcr-s-scrim, [data-dcr-search-open] svg path { transition: none !important; }
  .dcr-s--panel { transform: none; }
}
