/* main-brands — the parts every view shares (template/blocks/main-brands/_*.twig): crumbs on a plane, the numbers, the search, «Немає
   бренду», the department links, the listing bar, chips, the price and the purchase, a photo on a tone plane (.et-brands__pic: scene /
   cut / framed), the logo chip. Tokens only (the plane: --et-plane, --et-plane-text, --et-plane-btn of elbuz_theme.css .et-plane); the views
   (roster, faces, scrubber, clusters) set the composition. */
.et-brands { padding-block: 0 var(--et-section-gap); color: var(--et-text); }
.et-brands :is(p, h1, h2, h3, ul, ol) { margin: 0; }
.et-brands :is(ul, ol)[role="list"] { padding: 0; list-style: none; }
.et-brands [hidden] { display: none !important; }
.et-brands__crumbs { padding: 0; margin-block: 0.75rem 0.5rem; background: none; }
.et-brands__crumbs--plane { color: var(--et-plane-text); }
.et-brands__crumbs--plane :is(.et-breadcrumbs__link, .et-breadcrumbs__text, .et-breadcrumbs__separator) { color: inherit; }
.et-brands__crumbs--plane .et-breadcrumbs__link { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.et-brands__muted { color: var(--et-text-secondary); }
.et-plane .et-brands__muted { color: inherit; opacity: 0.85; }
.et-brands__sum { font-size: var(--et-text-lg); font-variant-numeric: tabular-nums; }
.et-brands__sum b { font-weight: 700; }
.et-brands__desc { max-width: 64ch; margin-top: 0.875rem; font-size: var(--et-text-base); }
.et-brands__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-size: var(--et-text-sm); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.et-brands__h2 { font-family: var(--et-font-display); font-size: clamp(1.25rem, 2.3vw, 1.875rem); font-weight: var(--et-heading-weight); font-style: var(--et-heading-style); letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.et-brands__n { color: var(--et-text-secondary); font-family: var(--et-font); font-size: 0.6em; font-weight: 600; font-variant-numeric: tabular-nums; vertical-align: 0.15em; }
.et-brands__empty { padding-block: 2rem; color: var(--et-text-secondary); font-size: var(--et-text-lg); }
.et-brands__empty a, .et-brands__link { color: var(--et-accent-text, var(--et-accent)); font-weight: 600; text-underline-offset: 0.2em; }
.et-brands__link { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; }

/* the brand search and «Немає бренду» */
.et-brands__find {
  display: flex; align-items: center; gap: 0.625rem; min-width: 0; min-height: 3.25rem; padding: 0 1.125rem; border: 1.5px solid var(--et-border); border-radius: var(--et-radius-full);
  background: var(--et-surface); color: var(--et-text-secondary); cursor: text;
}
.et-brands__find:focus-within { border-color: var(--et-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--et-accent) 25%, transparent); }
.et-brands__find input { flex: 1; min-width: 0; min-height: 3rem; border: 0; background: none; color: var(--et-text); font-size: max(1rem, var(--et-text-base)); outline: none; }
.et-brands__none:not(:empty) { padding-block: 2rem; font-family: var(--et-font-display); font-size: clamp(1.25rem, 2.4vw, 1.75rem); }

/* chips and the department links */
.et-brands__chip, .et-brands__sec {
  display: inline-flex; flex: none; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem; border: 0; 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: inherit; font-size: var(--et-text-md, 0.9375rem);
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: box-shadow var(--et-transition), background-color var(--et-transition);
}
.et-brands__chip:hover, .et-brands__sec:hover { box-shadow: inset 0 0 0 1.5px var(--et-text); }
.et-brands__chip.is-on, .et-brands__sec.is-on { background: var(--et-text); box-shadow: none; color: var(--et-bg); }
.et-brands__sn { color: var(--et-accent-text, var(--et-accent)); font-weight: 700; font-variant-numeric: tabular-nums; }
.et-brands__chip.is-on .et-brands__sn, .et-brands__sec.is-on .et-brands__sn { color: inherit; opacity: 0.75; }
.et-brands__secs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.et-brands__secs-more > details > summary { list-style: none; }
.et-brands__secs-more > details > summary::-webkit-details-marker { display: none; }
.et-brands__sec--more { color: var(--et-accent-text, var(--et-accent)); font-weight: 600; }
.et-brands__secs-more:has(> details[open]) { flex-basis: 100%; }
.et-brands__secs-more > details[open] > .et-brands__secs { margin-top: 0.5rem; }
.et-brands__secs--row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0.125rem; }
.et-brands__secs--row::-webkit-scrollbar { display: none; }

/* the listing of a brand page */
.et-brands__all { padding-top: clamp(1.75rem, 3.5vw, 2.75rem); scroll-margin-top: calc(var(--et-sticky-top, 0px) + 1rem); }
.et-brands__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.et-brands__bar .et-brands__h2 { margin-right: auto; }
.et-brands__sort { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.et-brands__hits { padding-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.et-brands__hits .et-brands__h2 { margin-bottom: 1rem; }

/* the price and the purchase (_buy.twig) */
.et-brands__price { font-variant-numeric: tabular-nums; }
.et-brands__price b { font-size: var(--et-text-lg); font-weight: 700; }
.et-brands__price s { margin-right: 0.25rem; opacity: 0.7; }
.et-brands__buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-width: 2.75rem; 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; transition: filter var(--et-transition);
}
.et-brands__buy:hover { filter: brightness(1.08); }
.et-plane .et-brands__buy { background: var(--et-plane-btn); color: var(--et-plane-btn-text); }
.et-brands__out { color: var(--et-text-secondary); font-size: var(--et-text-sm); }
.et-plane .et-brands__out { color: inherit; opacity: 0.85; }
.et-brands__go {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0 1.375rem; border-radius: var(--et-btn-radius, var(--et-radius));
  background: var(--et-plane-btn, var(--et-accent)); color: var(--et-plane-btn-text, var(--et-accent-contrast)); font-weight: 600; text-decoration: none;
}

/* a product photo on a tone plane (_pic.twig): scene — covers its place; cut — free with a shadow; framed — on a soft frame of the plane's
   tone, the white of the photo melts into it */
.et-brands__pic { display: grid; place-items: center; min-width: 0; min-height: 0; }
.et-brands__pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.et-brands__pic.is-scene img { object-fit: cover; }
.et-brands__pic.is-cut img { filter: drop-shadow(0 1rem 1.5rem rgb(var(--et-shadow-rgb) / 0.35)); }
.et-brands__pic.is-framed { border-radius: var(--et-radius-lg, var(--et-radius)); background: color-mix(in oklab, var(--et-plane, var(--et-surface)) 62%, var(--et-surface)); padding: 8%; }
.et-brands__pic.is-framed img { mix-blend-mode: multiply; }
html.dark-theme .et-brands__pic.is-framed { background: color-mix(in oklab, var(--et-plane, var(--et-surface)) 55%, var(--et-plane-text, var(--et-text))); }

/* the logo of a brand (its own image, 240×120 on its white): a small chip */
.et-brands__logo { display: inline-grid; place-items: center; flex: none; width: 6rem; height: 3rem; padding: 0.25rem; border-radius: var(--et-radius-sm, var(--et-radius)); background: var(--et-surface); overflow: hidden; }
.et-brands__logo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

@media (prefers-reduced-motion: reduce) {
  .et-brands *, .et-brands *::before, .et-brands *::after { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .et-brands [class*="__abc"], .et-brands [class*="__panel"], .et-brands [class*="__secs"] { backdrop-filter: none !important; }
}
