/* ==========================================================================
   Cbazaar – responsive search & filter
   Mobile-first. Desktop layout starts at 1024px.
   ========================================================================== */

:root {
  --cbz-accent: #D6246E;
  --cbz-accent-dark: #B0124F;
  --cbz-ink: #1A1A1A;
  --cbz-muted: #5E5856;
  --cbz-line: #EFEAE6;
  --cbz-line-strong: #DDD6D1;
  --cbz-soft: #F7F4F2;
  --cbz-hover: #F5EFEC;
  --cbz-white: #FFFFFF;
  --cbz-scrim: rgba(20, 16, 14, 0.45);
  --cbz-radius: 12px;
  --cbz-font: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cbz-header-h: 120px;          /* updated by JS */
  --cbz-max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--cbz-font);
  color: var(--cbz-ink);
  background: var(--cbz-white);
  -webkit-text-size-adjust: 100%;
}
body.cbz-lock { overflow: hidden; }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--cbz-accent); outline-offset: 2px; }

.cbz-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.cbz-icon-btn {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--cbz-ink);
  text-decoration: none;
}
.cbz-icon-btn:hover { background: var(--cbz-soft); }

.cbz-link-btn {
  min-height: 36px; padding: 0 4px; border: 0; background: transparent;
  font-size: 14px; color: var(--cbz-accent);
}
.cbz-link-btn:hover { color: var(--cbz-accent-dark); text-decoration: underline; }

.cbz-h {
  margin: 0; font-size: 15px; font-weight: 600; color: var(--cbz-ink);
}

.cbz-badge {
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--cbz-accent); color: var(--cbz-white);
  font-size: 12px; font-weight: 500; line-height: 1;
}

.cbz-btn {
  height: 48px; padding: 0 18px; border-radius: var(--cbz-radius);
  font-size: 15px; font-weight: 500;
}
.cbz-btn--ghost { border: 1.5px solid var(--cbz-ink); background: var(--cbz-white); }
.cbz-btn--primary { border: 0; background: var(--cbz-accent); color: var(--cbz-white); }
.cbz-btn--primary:hover { background: var(--cbz-accent-dark); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.cbz-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--cbz-white);
  border-bottom: 1px solid var(--cbz-line);
  padding-top: env(safe-area-inset-top, 0px);
}

.cbz-header__bar {
  max-width: var(--cbz-max); margin: 0 auto;
  padding: 5px;
}
.cbz-search { position: relative; }

/* ==========================================================================
   SEARCH FIELD
   ========================================================================== */
.cbz-search__form { display: flex; align-items: center; gap: 4px; margin: 0; }
.cbz-search__back { display: none; }

.cbz-search__field {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 5px 0 14px;
  border: 1px solid var(--cbz-line-strong); border-radius: var(--cbz-radius);
  background: var(--cbz-soft);
  transition: border-color .15s, background-color .15s;
}
.cbz-search__field:focus-within,
.cbz-search.is-open .cbz-search__field {
  border: 1.5px solid var(--cbz-accent);
  background: var(--cbz-white);
}
.cbz-search__icon { flex: 0 0 auto; color: var(--cbz-muted); }

.cbz-search__field input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: none; background: transparent;
  font-size: 16px;                    /* 16px stops iOS from zooming in */
  color: var(--cbz-ink);
}
.cbz-search__field input::placeholder { color: var(--cbz-muted); }
.cbz-search__field input::-webkit-search-cancel-button { -webkit-appearance: none; }

.cbz-search__clear {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: #F2EEEB;
}
.cbz-search__submit { display: none; }

/* ---------- MOBILE: opened search = full screen page ---------- */
.cbz-search.is-open {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0px) 0 0;
  background: var(--cbz-white);
}
.cbz-search.is-open .cbz-search__form {
  padding: 8px 12px 8px 4px;
  border-bottom: 1px solid var(--cbz-line);
}
.cbz-search.is-open .cbz-search__back { display: inline-flex; }

.cbz-search__panel {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--cbz-white);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ==========================================================================
   SEARCH PANEL CONTENT
   ========================================================================== */
.cbz-panel__cols { display: flex; flex-direction: column; }
.cbz-panel__col { display: flex; flex-direction: column; gap: 24px; padding: 15px 16px; }
.cbz-panel__col--side { background: var(--cbz-soft); }

.cbz-panel__sec { display: flex; flex-direction: column; gap: 10px; }
.cbz-panel__sec-head { display: flex; align-items: center; justify-content: space-between; }

.cbz-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cbz-pill {
  display: inline-flex; align-items: center;
  border: 1px solid #E3DDD8; border-radius: 999px; background: var(--cbz-white);
}
.cbz-pill__main {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 4px 0 12px; border: 0; background: transparent; font-size: 14px;
}
.cbz-pill__main svg { color: var(--cbz-muted); }
.cbz-pill__x {
  width: 32px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--cbz-muted);
}
.cbz-pill--accent {
  height: 38px; padding: 0 14px; border: 1px solid var(--cbz-accent);
  color: var(--cbz-accent); font-size: 14px;
}
.cbz-pill--plain { height: 38px; padding: 0 14px; font-size: 14px; }

.cbz-trend { list-style: none; margin: 0; padding: 0; }
.cbz-trend button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  min-height: 46px; padding: 0 6px;
  border: 0; border-bottom: 1px solid #F2EEEB; background: transparent;
  font-size: 15px; text-align: left;
}
.cbz-trend button:hover { background: var(--cbz-hover); }
.cbz-trend__rank { width: 20px; font-size: 13px; font-weight: 600; color: var(--cbz-accent); }
.cbz-trend__label { flex: 1; }
.cbz-trend svg { color: var(--cbz-muted); }

.cbz-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cbz-tile {
  display: flex; align-items: flex-end; height: 80px; padding: 12px;
  border: 0; border-radius: 10px; font-size: 15px; font-weight: 500; text-align: left;
}

/* suggestion rows */
.cbz-suggest { list-style: none; margin: 0; padding: 6px 0; }
.cbz-suggest__item { display: flex; align-items: center; border-bottom: 1px solid #F2EEEB; padding-left: 6px; }
.cbz-suggest__item.is-active,
.cbz-suggest__item:hover { background: var(--cbz-hover); }
.cbz-suggest__go {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 0 10px; border: 0; background: transparent;
  font-size: 15px; color: #4A4542; text-align: left;
}
.cbz-suggest__go svg { flex: 0 0 auto; color: var(--cbz-muted); }
.cbz-suggest__go > span { display: block; }
.cbz-suggest__go > span > mark,
.cbz-suggest__go > span > b { display: inline; margin: 0; padding: 0; }
.cbz-suggest__go mark { background: none; color: var(--cbz-accent); font-weight: 600; }
.cbz-suggest__go b { font-weight: 500; color: var(--cbz-ink); }
.cbz-suggest__fill {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--cbz-muted);
}

.cbz-minis { display: flex; flex-direction: column; gap: 8px; }
.cbz-mini {
  color: inherit; text-decoration: none;
  display: flex; align-items: center; gap: 12px; padding: 4px 0;
  border: 0; background: transparent; text-align: left;
}
.cbz-mini__img { width: 52px; height: 66px; flex: 0 0 52px; border-radius: 8px; }
.cbz-mini__txt { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.cbz-mini__txt strong { font-weight: 600; }

.cbz-seeall {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; height: 50px; padding: 0 16px;
  border: 0; border-radius: var(--cbz-radius); background: var(--cbz-soft);
  font-size: 15px; font-weight: 500; color: var(--cbz-accent); text-align: left;
}

.cbz-panel__none { display: flex; flex-direction: column; gap: 12px; padding: 24px 16px; }
.cbz-panel__none p { margin: 0; }
.cbz-panel__none .cbz-muted { font-size: 14px; color: var(--cbz-muted); }

.cbz-panel__keys { display: none; }

/* ==========================================================================
   SCRIM (desktop dropdown)
   ========================================================================== */
.cbz-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(20, 16, 14, 0.35); }

/* ==========================================================================
   HOME (demo)
   ========================================================================== */
.cbz-main { max-width: var(--cbz-max); margin: 0 auto; }
.cbz-home { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.cbz-home__cats { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.cbz-home__cat {
  flex: 0 0 72px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 0; background: transparent; font-size: 12px; text-align: center;
}
.cbz-home__cat span:first-child { width: 68px; height: 68px; border-radius: 50%; }
.cbz-home__hero {
  height: 340px; border-radius: 16px; background: #EADCD6;
  display: flex; align-items: center; justify-content: center; color: var(--cbz-muted);
}

/* ==========================================================================
   RESULTS
   ========================================================================== */
.cbz-results { padding: 0 0 40px; }
.cbz-results__head { padding: 14px 16px 10px; }
.cbz-results__crumb { margin: 0 0 2px; font-size: 13px; color: var(--cbz-muted); }
.cbz-results__title { margin: 0; font-size: 19px; font-weight: 500; line-height: 1.3; }
.cbz-results__count { font-size: 14px; font-weight: 400; color: var(--cbz-muted); white-space: nowrap; }

.cbz-sort { display: none; }

.cbz-toolbar {
  position: sticky; top: var(--cbz-header-h); z-index: 20;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--cbz-white);
  border-top: 1px solid var(--cbz-line); border-bottom: 1px solid var(--cbz-line);
}
.cbz-toolbar button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; border: 0; background: var(--cbz-white);
  font-size: 14px; font-weight: 500;
}
.cbz-toolbar button + button { border-left: 1px solid var(--cbz-line); }

.cbz-sidebar { display: none; }

.cbz-results__content { display: flex; flex-direction: column; gap: 12px; padding: 12px; min-width: 0; }

.cbz-chips {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  margin: 0 -12px; padding: 0 12px;
}
.cbz-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 10px 0 12px;
  border: 1px solid #E3DDD8; border-radius: 999px; background: var(--cbz-soft);
  font-size: 13px;
}
.cbz-chips .cbz-link-btn { flex: 0 0 auto; font-size: 13px; }

.cbz-results__note { margin: 0; font-size: 14px; color: var(--cbz-muted); }

.cbz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 10px;
}
@media (min-width: 640px) {
  .cbz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cbz-card { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.cbz-card__img { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; }
.cbz-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbz-card__image-link { display: block; height: 100%; }
.cbz-card__name a { color: inherit; text-decoration: none; }
.cbz-card__name a:hover { text-decoration: underline; }
.cbz-card__wish {
  position: absolute; top: 8px; right: 8px;
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--cbz-white);
}
.cbz-card__name { margin: 0; font-size: 13px; font-weight: 400; line-height: 1.35; }
.cbz-card__price { margin: 0; font-size: 14px; font-weight: 600; }
.cbz-product-gross { margin-inline-start: 4px; color: var(--cbz-muted); font-weight: 400; text-decoration: line-through; }
.cbz-mini__img { position: relative; }
.cbz-card__img .cbz-product-offer,
.cbz-mini__img .cbz-product-offer {
  position: absolute; right: 0; bottom: 0; width: auto; height: auto;
  max-width: 100%; max-height: 18px; pointer-events: none;
}
.cbz-empty { grid-column: 1 / -1; padding: 40px 8px; text-align: center; color: var(--cbz-muted); }

/* ==========================================================================
   FILTER OPTIONS (shared by sheet + sidebar)
   ========================================================================== */
.cbz-checks { display: flex; flex-direction: column; }
.cbz-check {
  display: flex; align-items: center; gap: 12px;
  min-height: 46px; border-bottom: 1px solid #F2EEEB;
  font-size: 14px; cursor: pointer;
}
.cbz-check input {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 20px; height: 20px; flex: 0 0 20px;
  border: 1.5px solid #B8AFAA; border-radius: 5px; background: var(--cbz-white);
  display: grid; place-content: center; cursor: pointer; position: relative !important;  left: 0px !important;
}
.cbz-check input:checked {
  border-color: var(--cbz-accent);
  background: var(--cbz-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.cbz-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cbz-size { position: relative; cursor: pointer; }
.cbz-size input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.cbz-size span {
  height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #B8AFAA; border-radius: 10px; background: var(--cbz-white);
  font-size: 14px; font-weight: 500;
}
.cbz-size input:checked + span { background: var(--cbz-accent); border-color: var(--cbz-accent); color: var(--cbz-white); }
.cbz-size input:focus-visible + span { outline: 2px solid var(--cbz-accent); outline-offset: 2px; }

.cbz-swatch input {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 26px; height: 26px; flex: 0 0 26px;
  border: 1px solid #CFC7C2; border-radius: 50%; background: var(--sw);
  cursor: pointer;
}
.cbz-swatch input:checked {
  background: var(--sw); border-color: #CFC7C2;
  box-shadow: 0 0 0 2px var(--cbz-white), 0 0 0 4px var(--cbz-accent);
}
.cbz-panel__col--list { padding: 4px 0 16px; gap: 8px; }

/* ==========================================================================
   BOTTOM SHEETS (mobile)
   ========================================================================== */
.cbz-sheet {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cbz-sheet__backdrop { position: absolute; inset: 0; background: var(--cbz-scrim); }
.cbz-sheet__panel {
  position: relative;
  display: flex; flex-direction: column;
  max-height: 90vh;
  background: var(--cbz-white);
  border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: cbz-up .24s ease-out;
}
.cbz-sheet__panel--tall { height: min(85vh, 680px); }
@keyframes cbz-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cbz-sheet__panel { animation: none; } }

.cbz-sheet__handle { width: 40px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: #D9D2CD; }
.cbz-sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 12px; border-bottom: 1px solid var(--cbz-line);
}
.cbz-sheet__head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.cbz-sheet__foot {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  padding: 12px 16px 14px; border-top: 1px solid var(--cbz-line);
}

.cbz-fsheet__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 136px minmax(0, 1fr); }
.cbz-fsheet__tabs { overflow-y: auto; background: var(--cbz-soft); }
.cbz-fsheet__tab {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-height: 52px; padding: 0 10px 0 14px;
  border: 0; border-bottom: 1px solid var(--cbz-line); background: transparent;
  font-size: 13px; text-align: left;
}
.cbz-fsheet__tab[aria-pressed="true"] { background: var(--cbz-white); color: var(--cbz-accent); font-weight: 600; }
.cbz-fsheet__tab .cbz-badge { min-width: 18px; height: 18px; font-size: 11px; }
.cbz-fsheet__opts { overflow-y: auto; padding: 12px 14px 20px; }
.cbz-fsheet__opts h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--cbz-muted); }

.cbz-sortlist { margin: 0; padding: 6px 16px 16px; border: 0; }
.cbz-sortlist label {
  display: flex; align-items: center; gap: 12px; min-height: 50px;
  border-bottom: 1px solid #F2EEEB; font-size: 15px; cursor: pointer;
}
.cbz-sortlist input { width: 20px; height: 20px; margin: 0; accent-color: var(--cbz-accent); }

/* ==========================================================================
   DESKTOP  (≥ 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .cbz-search { max-width: 760px; margin: 0 auto; }

  /* search stays in the header, panel drops down */
  .cbz-search.is-open {
    position: relative; inset: auto; z-index: auto;
    display: block; padding: 0; background: none;
  }
  .cbz-search.is-open .cbz-search__form { padding: 0; border: 0; }
  .cbz-search.is-open .cbz-search__back { display: none; }
  .cbz-search__field { padding-left: 16px; }
  .cbz-search__submit {
    display: inline-flex; align-items: center; height: 38px; padding: 0 18px;
    border: 0; border-radius: 9px; background: var(--cbz-accent); color: var(--cbz-white);
    font-size: 14px; font-weight: 500;
  }
  .cbz-search__submit:hover { background: var(--cbz-accent-dark); }

  .cbz-search__panel {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
    max-height: calc(100vh - 140px);
    border: 1px solid #E6E0DC; border-radius: 14px;
    box-shadow: 0 18px 48px rgba(26, 16, 12, 0.18);
    padding-bottom: 0;
  }
  .cbz-panel__cols { flex-direction: row; }
  .cbz-panel__col { flex: 1 1 0; min-width: 0; padding: 20px 22px; gap: 22px; }
  .cbz-panel__col--side { border-left: 1px solid #F0EBE7; background: #FAF8F6; }
  .cbz-panel__col--list { padding: 10px; gap: 12px; }

  .cbz-tile { height: 96px; }
  .cbz-trend button { min-height: 40px; border-bottom: 0; border-radius: 8px; }

  .cbz-suggest { padding: 0; }
  .cbz-suggest__item { border: 0; border-radius: 8px; padding-left: 0; }
  .cbz-suggest__go { min-height: 42px; padding: 0 12px; }
  .cbz-suggest__fill { display: none; }

  .cbz-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .cbz-mini { flex-direction: column; align-items: stretch; gap: 6px; padding: 0; }
  .cbz-mini__img { width: 100%; height: 150px; flex: none; }
  .cbz-mini__txt { font-size: 13px; }
  .cbz-seeall { background: transparent; padding: 0 2px; height: 40px; width: auto; justify-content: flex-start; }

  .cbz-panel__keys {
    display: flex; gap: 18px; margin: 0; padding: 10px 20px;
    border-top: 1px solid #F0EBE7; font-size: 12px; color: var(--cbz-muted);
  }
  #cbzPanelEmpty:not([hidden]) ~ .cbz-panel__keys,
  #cbzPanelNone:not([hidden]) ~ .cbz-panel__keys { display: none; }

  /* home */
  .cbz-home { padding: 24px 32px 40px; gap: 24px; flex-direction: column-reverse; }
  .cbz-home__hero { height: 420px; border-radius: 18px; }
  .cbz-home__cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; overflow: visible; }
  .cbz-home__cat { flex: none; align-items: stretch; font-size: 16px; font-weight: 500; text-align: left; }
  .cbz-home__cat span:first-child { width: 100%; height: 200px; border-radius: 14px; }

  /* results */
  .cbz-results { padding: 0 32px 48px; }
  .cbz-results__head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px;
    padding: 22px 0 18px;
  }
  .cbz-results__title { font-size: 26px; }
  .cbz-sort { display: flex; align-items: center; gap: 10px; }
  .cbz-sort label { font-size: 14px; color: var(--cbz-muted); }
  .cbz-sort select {
    height: 40px; padding: 0 12px; border: 1px solid var(--cbz-line-strong); border-radius: 10px;
    background: var(--cbz-white); font-size: 14px;
  }
  .cbz-toolbar { display: none; }

  .cbz-results__layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
  .cbz-results__content { padding: 0; gap: 16px; }

  .cbz-sidebar {
    display: block;
    position: sticky; top: calc(var(--cbz-header-h) + 16px);
    max-height: calc(100vh - var(--cbz-header-h) - 32px); overflow-y: auto;
    border: 1px solid var(--cbz-line); border-radius: 14px;
  }
  .cbz-sidebar__head {
    display: flex; align-items: center; justify-content: space-between;
    height: 52px; padding: 0 16px; border-bottom: 1px solid var(--cbz-line);
  }
  .cbz-sidebar__head h2 { margin: 0; font-size: 16px; font-weight: 600; }
  .cbz-facet { border-bottom: 1px solid #F2EEEB; }
  .cbz-facet:last-child { border-bottom: 0; }
  .cbz-facet__head {
    width: 100%; display: flex; align-items: center; gap: 8px;
    height: 48px; padding: 0 16px; border: 0; background: var(--cbz-white);
    font-size: 14px; font-weight: 600; text-align: left;
  }
  .cbz-facet__head span:first-child { flex: 1; }
  .cbz-facet__head .cbz-badge { min-width: 18px; height: 18px; font-size: 11px; }
  .cbz-facet__head svg { transition: transform .15s; }
  .cbz-facet__head[aria-expanded="true"] svg { transform: rotate(180deg); }
  .cbz-facet__body { padding: 0 16px 14px; }
  .cbz-facet__body .cbz-check { min-height: 36px; border: 0; }
  .cbz-facet__body .cbz-check input { width: 18px; height: 18px; flex-basis: 18px; border-radius: 4px; }
  .cbz-facet__body .cbz-size span { height: 38px; font-size: 13px; }
  .cbz-facet__body .cbz-swatch input { width: 24px; height: 24px; flex-basis: 24px; border-radius: 50%; }

  .cbz-chips { flex-wrap: wrap; overflow: visible; white-space: normal; margin: 0; padding: 0; }
  .cbz-chips__label { font-size: 13px; color: var(--cbz-muted); }

  .cbz-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px 18px; }
  .cbz-card__name { font-size: 14px; }
  .cbz-card__price { font-size: 15px; }

  /* sheets never show on desktop */
  .cbz-sheet { display: none !important; }
}


.cbz-loader { grid-column: 1 / -1; min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--cbz-ink); }
.cbz-loader__spinner { width: 28px; height: 28px; border: 3px solid var(--cbz-line); border-top-color: var(--cbz-accent); border-radius: 50%; animation: cbz-spin 0.8s linear infinite; }

@keyframes cbz-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .cbz-loader__spinner { animation: none; }
}

.cbz-card__wish[aria-pressed="true"] { color: var(--cbz-accent); }
    .cbz-card__wish[aria-pressed="true"] svg { fill: currentColor; }
@media (min-width: 768px) {
    span.cbz-mini__txt span { font-weight: normal; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
}
    @media (max-width: 767px) {
        span.cbz-mini__txt span { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 14px; line-height: 1.35; }
    }