/* main-search — the parts every view shares (template/blocks/main-search/_*.twig): the kicker and title, the line of numbers, the
   department links, «Фільтри» and the panel of elbuz_filter, the sort, the price, the purchase, dense rows, «Можливо…» and similar
   searches, the contacts, the empty result and «Показано …». Tokens only; the views (answer, spread, console, columns) set the composition.
   The default view does not use these classes. */
.et-found { --fd-gap: clamp(1rem, 2.4vw, 2rem); padding-block: 0 var(--et-section-gap); color: var(--et-text); }
.et-found :is(p, h1, h2, h3, ul, ol) { margin: 0; }
.et-found :is(ul, ol)[role="list"] { padding: 0; list-style: none; }
.et-found__muted { color: var(--et-text-secondary); }
.et-found__crumbs { padding: 0; margin-bottom: 0.5rem; background: none; }
.et-found__kicker { display: block; color: var(--et-text-secondary); font-size: var(--et-text-xs); font-weight: 700; letter-spacing: var(--et-eyebrow-tracking, 0.08em); text-transform: uppercase; }
.et-found__title {
  font-family: var(--et-font-display); font-weight: var(--et-heading-weight); font-style: var(--et-heading-style); text-transform: var(--et-heading-transform);
  font-size: clamp(1.875rem, 4.4vw, 3.75rem); letter-spacing: -0.035em; line-height: 1.05; overflow-wrap: anywhere; hyphens: auto;
}
.et-found__line { color: var(--et-text-secondary); font-size: var(--et-text-lg); }
.et-found__line a, .et-found__all, .et-found__mail { color: var(--et-accent-text, var(--et-accent)); font-weight: 600; text-underline-offset: 0.2em; }
.et-found__h2 { margin-block: clamp(1.5rem, 3vw, 2.5rem) 1rem !important; font-family: var(--et-font-display); font-size: clamp(1.25rem, 2.2vw, 1.875rem); font-weight: var(--et-heading-weight); letter-spacing: -0.02em; line-height: 1.15; }
.et-found__h3, .et-found__gh { color: var(--et-text-secondary); font-size: var(--et-text-xs); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.et-found__label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--et-text-sm); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* departments (links with numbers) */
.et-found__depts { display: flex; gap: 0.375rem; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 0.125rem; }
.et-found__depts::-webkit-scrollbar { display: none; }
.et-found__dept {
  display: inline-flex; flex: none; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem; border-radius: var(--et-radius-full);
  background: var(--et-surface); box-shadow: inset 0 0 0 1.5px var(--et-border); color: var(--et-text); font-size: var(--et-text-md, 0.875rem); text-decoration: none; white-space: nowrap;
}
.et-found__dept span { color: var(--et-text-secondary); font-variant-numeric: tabular-nums; }
.et-found__dept:hover { box-shadow: inset 0 0 0 1.5px var(--et-text); }
.et-found__dept.is-on { background: var(--et-text); color: var(--et-bg); box-shadow: none; }
.et-found__dept.is-on span { color: inherit; opacity: 0.72; }

/* the bar: departments | filters · sort */
.et-found__bar { position: sticky; top: var(--et-sticky-top, 0px); z-index: 5; margin-top: 1rem; border-bottom: var(--et-border-width) solid var(--et-border); background: color-mix(in oklab, var(--et-bg) 92%, transparent); backdrop-filter: blur(12px); }
.et-found__bar-in { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.625rem; }
.et-found__bar-sp { flex: 1; }
.et-found__bar .et-found__depts { flex: 1; }
.et-found__tools { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.et-found__ft {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem; border: 1.5px solid var(--et-border); border-radius: var(--et-radius-full);
  background: var(--et-surface); color: var(--et-text); font: inherit; font-weight: 600; cursor: pointer;
}
.et-found__ft[aria-expanded="true"] { border-color: var(--et-text); }
/* phones and tablets: elbuz_filter opens its own panel from its own side tab (≤ 991 px), the theme button steps aside as in the listing */
@media (max-width: 991.98px) { .et-found__ft { display: none; } }
.et-found__sort { display: flex; gap: 0.375rem; }
.et-found__sort .et-sort-select { min-height: 2.75rem; border-radius: var(--et-radius-full); }
.et-found__filter { padding-block: 1rem; }
.et-found__filter[hidden] { display: none; }
.et-found__filter-top { margin-bottom: 0.75rem; }
@media (max-width: 767.98px) {
  .et-found__bar-in { flex-wrap: wrap; }
  .et-found__bar .et-found__depts { flex-basis: 100%; }
  .et-found__tools { width: 100%; }
  .et-found__tools > * { flex: 1; }
  .et-found__sort .et-sort-select { width: 100%; }
}

/* price, purchase */
.et-found__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.125rem 0.5rem; font-variant-numeric: tabular-nums; }
.et-found__price s { color: var(--et-text-secondary); font-size: var(--et-text-sm); }
.et-found__price b { font-family: var(--et-font-price, inherit); font-size: var(--et-text-lg); font-weight: 700; }
.et-found__buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.125rem; border: 0;
  border-radius: var(--et-btn-radius, var(--et-radius)); background: var(--et-accent); color: var(--et-accent-contrast); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.et-found__buy:hover { filter: brightness(1.06); }
.et-found__out { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--et-text-secondary); font-size: var(--et-text-sm); }
/* on a tone plane: the button of the plane contract (--et-plane-btn holds 4.5 on the field) */
.et-found__price--plane s { color: inherit; opacity: 0.78; }
.et-found__price--plane b { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.et-found__buy--plane { min-height: 3.25rem; padding-inline: 1.75rem; background: var(--et-plane-btn); color: var(--et-plane-btn-text); font-size: var(--et-text-lg); }
.et-plane .et-found__out { color: inherit; opacity: 0.85; }
.et-found__open { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; color: inherit; font-weight: 600; text-underline-offset: 0.25em; }

/* a photo on a tone plane: without a background (.is-cut, tone.clear) it stands free with a shadow; on white (.is-framed) it lies on a soft
   frame of the plane's tone and its white melts into it (multiply) — no white slabs on the colour (docs/35 §7) */
.et-plane .is-cut img { filter: drop-shadow(0 1.5rem 1.875rem color-mix(in srgb, var(--et-plane-text) 28%, transparent)); }
.et-plane .is-framed { display: block; padding: 6%; border-radius: var(--et-radius); background: color-mix(in oklab, var(--et-plane) 64%, var(--et-surface)); }
.et-plane .is-framed img { mix-blend-mode: multiply; }
html.dark-theme .et-plane .is-framed { background: color-mix(in oklab, var(--et-plane) 55%, var(--et-plane-text)); }

/* dense rows (console, columns) */
.et-found__rows { display: grid; }
.et-found__row { display: flex; align-items: center; gap: 0.375rem; padding-right: 0.5rem; border-radius: var(--et-radius); transition: background-color 0.15s; }
.et-found__row:hover { background: color-mix(in oklab, var(--et-bg) 70%, var(--et-surface)); }
.et-found__pick {
  display: grid; flex: 1; grid-template-columns: 3.5rem minmax(0, 1fr) auto; align-items: center; gap: 0.875rem; min-width: 0; min-height: 4.5rem;
  padding: 0.5rem 0.625rem; border-radius: var(--et-radius); color: inherit; text-decoration: none;
}
.et-found__row-ph { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; overflow: hidden; border-radius: var(--et-radius-sm); background: var(--et-surface-2, var(--et-bg)); }
.et-found__row-ph img { width: 82%; height: 82%; object-fit: contain; }
.et-found__row-tx { display: grid; gap: 0.125rem; min-width: 0; }
.et-found__row-n { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.et-found__row-m { overflow: hidden; color: var(--et-text-secondary); font-size: var(--et-text-sm); white-space: nowrap; text-overflow: ellipsis; }
.et-found__row-ex { color: var(--et-success-text, var(--et-success)); }
html.dark-theme .et-found__row-ex { color: var(--et-success); }
.et-found__price--row { display: grid; justify-items: end; white-space: nowrap; }
.et-found__price--row b { font-size: var(--et-text-base); }
.et-found__buy--row { flex: none; width: 2.75rem; padding: 0; }
.et-found__row .et-found__out { width: 4.5rem; font-size: var(--et-text-xs); line-height: 1.2; text-align: center; }
.et-found__row.is-out .et-found__row-ph img { opacity: 0.5; }

/* nothing found: the fix, similar searches, the contacts */
.et-found__none { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.et-found__none-h { font-size: clamp(1.125rem, 1.8vw, 1.5rem); font-weight: 600; overflow-wrap: anywhere; }
.et-found__fix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.et-found__fix-k { color: var(--et-text-secondary); }
.et-found__fix-w { display: inline-flex; align-items: center; gap: 0.25em; color: var(--et-accent-text, var(--et-accent)); font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; text-decoration: none; overflow-wrap: anywhere; }
.et-found__fix-w i { font-size: 0.7em; }
.et-found__fix-w:hover { text-decoration: underline; text-decoration-thickness: 0.08em; }
.et-found__fix-n { color: var(--et-text-secondary); }
.et-found__similar { display: grid; gap: 0.5rem; }
.et-found__similar ul { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.et-found__similar a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem; border-radius: var(--et-radius-full);
  background: var(--et-surface); box-shadow: inset 0 0 0 1.5px var(--et-border); color: var(--et-text); text-decoration: none;
}
.et-found__similar a:hover { box-shadow: inset 0 0 0 1.5px var(--et-text); }
.et-found__similar i { color: var(--et-text-secondary); font-size: 0.85em; }
.et-found__contacts { display: grid; gap: 0.5rem; }
.et-found__phones { display: grid; gap: 0.375rem; }
.et-found__phones li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.75rem; }
.et-found__tel { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; color: inherit; font-size: var(--et-text-lg); font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; }
.et-found__tel:hover { text-decoration: underline; }
.et-found__hours span { color: var(--et-text-secondary); }
.et-found__help {
  display: grid; gap: 1.25rem 3rem; align-items: center; margin-top: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: calc(var(--et-radius) * 1.5); background: var(--et-surface); box-shadow: inset 0 0 0 1.5px var(--et-border);
}
.et-found__help .et-found__h2 { margin: 0 0 0.375rem !important; }
@media (min-width: 768px) { .et-found__help { grid-template-columns: minmax(0, 1fr) auto; } }

/* the list of the page */
.et-found__grid { margin-top: 1.25rem; }
.et-found__showing { margin-top: 1.25rem; color: var(--et-text-secondary); font-size: var(--et-text-sm); text-align: center; }
.et-found__zero { padding-block: 2.5rem; font-size: var(--et-text-lg); }
.et-found__zero a { color: var(--et-accent-text, var(--et-accent)); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .et-found *, .et-found *::before, .et-found *::after { animation: none !important; transition: none !important; }
}
