/* Filters and gender on the home page (BNN-0071, 2026-10-31; banan-filter.js). The site's own look: white on black, Helvetica,
   small spaced capitals like CART, outline chips, no shadows, no frames on focus (a brighter line instead, §14). */

/* ---------- the toolbar over the grid, two levels (2026-11-03)
   Level 1: the audience All / Women / Men (where you are) and FILTER (n) (what you can open). Level 2, only while a filter is on: the chosen
   filters as chips and "Clear filters". From 768 px both levels sit right: the fixed logo is top left and would cover the row while it passes
   under. On a phone level 1 spans the width (audience left, FILTER right) and level 2 is one line that scrolls sideways, so the grid never moves far down. */
.bnn-filter-section { flex: 0 0 100%; min-width: 0; }
.bnn-filterbar { display: flex; flex-direction: column; gap: 14px; padding: 20px var(--bc-m, 24px); color: #fff;
  font: 400 13px/16px "Helvetica Neue", HelveticaNeue, Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.bnn-filterbar button, .bnn-f-panel button, .bnn-f-empty button { -webkit-appearance: none; appearance: none; margin: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
  color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bnn-f-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bnn-f-open { position: relative; padding: 8px 0; white-space: nowrap; }
.bnn-f-open::before, .bnn-g::before, .bnn-f-link::before { content: ""; position: absolute; inset: -6px -4px; }   /* hit area 44px, invisible */
.bnn-f-gender { display: flex; gap: 20px; }
.bnn-g { position: relative; padding: 8px 0; white-space: nowrap; color: rgba(255, 255, 255, .55) !important; transition: color .2s ease; }
.bnn-g[aria-pressed="true"] { color: #fff !important; text-decoration: underline; text-underline-offset: 5px; }
.bnn-f-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.bnn-f-chips[hidden] { display: none; }
.bnn-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 12px; border: 1px solid rgba(255, 255, 255, .4) !important; transition: border-color .2s ease; white-space: nowrap; }
.bnn-chip::before { content: ""; position: absolute; inset: -7px -2px; }   /* hit area 44px high */
.bnn-chip .sw { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.bnn-chip .x { display: flex; align-items: center; justify-content: center; width: 10px; height: 10px; line-height: 0; opacity: .7; }
.bnn-chip .x svg { display: block; }
.bnn-f-link { position: relative; padding: 8px 0; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .5); }
@media (hover: hover) {
  .bnn-f-open:hover, .bnn-f-link:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #fff; }
  .bnn-chip:hover { border-color: #fff !important; }
  .bnn-g:hover { color: #fff !important; }
}
.bnn-filterbar button:focus-visible, .bnn-f-panel button:focus-visible, .bnn-f-empty button:focus-visible { outline: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.bnn-chip:focus-visible, .bnn-opt:focus-visible { border-color: #fff !important; box-shadow: inset 0 0 0 1px #fff; text-decoration: none !important; }
html.bnn-filtered .bnn-filterbar { padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .15); }   /* the line where the controls end and the products begin */
@media (min-width: 768px) {
  .bnn-f-main { justify-content: flex-end; gap: 40px; }
  .bnn-f-chips { justify-content: flex-end; }
}
@media (max-width: 400px) { .bnn-f-gender { gap: 14px; } .bnn-f-main { gap: 12px; } }   /* the longest words (Ukrainian) still fit one line at 360 px */
@media (max-width: 767px) {
  .bnn-filterbar { padding: 16px var(--bc-m, 16px); gap: 10px; }
  .bnn-f-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--bc-m, 16px)); padding: 0 var(--bc-m, 16px); scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .bnn-f-chips::-webkit-scrollbar { display: none; }
  .bnn-f-chips > * { flex: none; }
  .bnn-f-chips::after { content: ""; flex: 0 0 20px; }   /* the last item can leave the faded edge */
}
/* zero results (2026-11-03): a short statement, then the ways back counted from the real tiles. On a computer the block sits in the right
   column, under the toolbar's own edge; on a phone it is the full width. Quiet: type and hairlines only, nothing to fill the space. */
.bnn-f-empty { padding: 32px var(--bc-m, 24px) 64px; color: #fff; }
.bnn-f-empty[hidden] { display: none; }
.bnn-f-empty-in { max-width: 440px; }
@media (min-width: 768px) { .bnn-f-empty-in { margin-left: auto; } }
.bnn-f-empty-t { margin: 0 0 6px; color: #fff; font: 300 22px/28px "Helvetica Neue", HelveticaNeue, Arial, sans-serif; letter-spacing: .2px; }
.bnn-f-empty-s { margin: 0 0 18px; color: rgba(255, 255, 255, .6); font: 300 16px/24px "Helvetica Neue", HelveticaNeue, Arial, sans-serif; letter-spacing: .4px; }
.bnn-ways { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.bnn-ways li { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.bnn-way { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; padding: 0; text-align: left;
  font: 400 13px/16px "Helvetica Neue", HelveticaNeue, Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.bnn-way .n { flex: none; color: rgba(255, 255, 255, .55); transition: color .2s ease; }
.bnn-f-empty-all { display: inline-block; margin-top: 8px; }
@media (hover: hover) { .bnn-way:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; } .bnn-way:hover .n { color: #fff; } }
@media (max-width: 767px) { .bnn-f-empty { padding: 24px var(--bc-m, 16px) 48px; } .bnn-f-empty-t { font-size: 20px; line-height: 26px; } }
.bnn-f-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- filtered: the collage gives way to an even grid (as "photos per row" does on phones), other tiles hidden */
html.bnn-filtered .product-grid-section .hover-image-container.bnn-off { display: none !important; }
html.bnn-filtered #MainContent:has(.product-grid-section) { display: flex; flex-wrap: wrap; }
html.bnn-filtered #MainContent > .shopify-section:not(:has(.product-grid-section)) { flex: 0 0 100%; min-width: 0; }
html.bnn-filtered #MainContent > .shopify-section:has(.product-grid-section),
html.bnn-filtered #MainContent .product-grid-layout-container,
html.bnn-filtered #MainContent .product-grid-section,
html.bnn-filtered #MainContent .partition-wrapper { display: contents; }
html.bnn-filtered .product-grid-section .hover-image-container { flex: 0 0 25%; aspect-ratio: 3 / 4 !important; align-self: flex-start; min-width: 0; }
html.bnn-filtered .product-grid-section .hover-image-container img { object-fit: cover; }
@media (min-width: 768px) and (max-width: 1199px) {
  html.bnn-filtered .product-grid-section .hover-image-container { flex-basis: calc(100% / 3); }
  html.bnn-filtered[data-bnn-cols="2"] .product-grid-section .hover-image-container { flex-basis: 50%; }
  html.bnn-filtered[data-bnn-cols="4"] .product-grid-section .hover-image-container { flex-basis: 25%; }
}
@media (max-width: 767px) {
  html.bnn-filtered .product-grid-section .hover-image-container { flex-basis: 100%; }
  html.bnn-filtered[data-bnn-cols="2"] .product-grid-section .hover-image-container { flex-basis: 50%; }
  html.bnn-filtered[data-bnn-cols="3"] .product-grid-section .hover-image-container { flex-basis: calc(100% / 3); }
  html.bnn-filtered[data-bnn-cols="4"] .product-grid-section .hover-image-container { flex-basis: 25%; }
}

/* ---------- the panel: from the right on a computer, the whole screen on a phone */
html.bnn-f-lock, html.bnn-f-lock body { overflow: hidden; }
.bnn-f-shade { position: fixed; inset: 0; z-index: 1100; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s ease; }
.bnn-f-shade.on { opacity: 1; }
.bnn-f-panel { position: fixed; top: 0; right: 0; bottom: 0; max-height: 100vh; max-height: 100dvh; z-index: 1101; display: flex; flex-direction: column; box-sizing: border-box; width: min(440px, 100vw);
  background: #000; color: #fff; border-left: 1px solid rgba(255, 255, 255, .2); transform: translateX(100%); transition: transform .25s ease;
  font: 400 13px/16px "Helvetica Neue", HelveticaNeue, Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.bnn-f-panel.on { transform: none; }
@media (max-width: 767px) { .bnn-f-panel { width: 100vw; border-left: 0; } }
@media (prefers-reduced-motion: reduce) { .bnn-f-panel, .bnn-f-shade { transition: none; } }
.bnn-f-head { flex: 0 0 auto; display: flex; align-items: center; gap: 20px; padding: 22px var(--bc-m, 24px) 8px; }
.bnn-f-head h2 { margin-right: auto; }
/* CLEAR ALL lives in the header (secondary, quiet); with nothing chosen it keeps its place but cannot be seen or reached */
.bnn-f-head .bnn-f-link { color: rgba(255, 255, 255, .7); }
.bnn-f-head .bnn-f-link:disabled { visibility: hidden; }
.bnn-f-head h2 { margin: 0; color: #fff; font: inherit; letter-spacing: inherit; }
.bnn-f-x { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: -8px !important; line-height: 0 !important; }
.bnn-f-x svg { display: block; width: 16px; height: 16px; }
.bnn-f-x::before { content: ""; position: absolute; inset: -6px; }
.bnn-f-body { flex: 1 1 auto; overflow-y: auto; padding: 8px var(--bc-m, 24px) 24px; overscroll-behavior: contain; }
.bnn-f-group { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.bnn-f-group:first-child { margin-top: 12px; }
.bnn-f-group legend { float: left; width: 100%; padding: 0 0 12px; color: rgba(255, 255, 255, .6); font-size: 12px; letter-spacing: .16em; }   /* float: no fieldset gap under it */
.bnn-f-opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.bnn-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px !important; border: 1px solid rgba(255, 255, 255, .35) !important; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.bnn-opt[aria-pressed="true"] { background: #fff !important; color: #000 !important; border-color: #fff !important; }
.bnn-opt[aria-disabled="true"] { opacity: .3; cursor: default; }
@media (hover: hover) { .bnn-opt:not([aria-disabled="true"]):not([aria-pressed="true"]):hover { border-color: #fff !important; } }
.bnn-opt .sw { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.bnn-opt[aria-pressed="true"] .sw { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }
/* the bottom bar: one action, the line-row button of the site (.bc-cta in banan-cart.css: the same as ADD TO CART and JOIN), nothing new. Fixed under the
   scrolling options (the panel is a column: head, options that scroll, this bar), so it never scrolls away and the options never go behind it.
   The reset above (.bnn-f-panel button, 0,1,1) is stronger than .bc-cta (0,1,0), so what the reset takes away is given back here. 56 px tall;
   the home-indicator space is added below. */
.bnn-f-foot { flex: 0 0 auto; padding: 8px var(--bc-m, 24px) calc(14px + env(safe-area-inset-bottom)); background: #000; }
.bnn-f-panel .bnn-f-show { height: 56px; padding: 0 28px 0 0; border-bottom: 1px solid rgba(255, 255, 255, .5); font: 400 16px/24px "Helvetica Neue", HelveticaNeue, Arial, sans-serif;
  letter-spacing: 1px; text-transform: uppercase; text-align: left; }
.bnn-f-panel .bnn-f-show:focus-visible { text-decoration: none; }
.bnn-f-panel .bnn-f-show:disabled { border-bottom-color: rgba(255, 255, 255, .3); }
