
  .vcat { --vcat-ink: #0f172a; --vcat-line: #e2e8f0; --vcat-muted: #64748b; --vcat-accent: #c5a880; min-width: 0; }
  .vcat *, .vcat *::before, .vcat *::after { box-sizing: border-box; }
  .vcat button, .vcat input, .vcat select { font-family: inherit; }

  .vcat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.85rem; }
  .vcat-heading { min-width: 0; }
  .vcat-title { margin: 0; font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 900; color: var(--vcat-ink); line-height: 1.5; }
  .vcat-count { font-size: 0.8rem; color: var(--vcat-muted); margin-top: 2px; }
  .vcat-count b { color: var(--vcat-ink); }
  .vcat-tools { display: flex; align-items: center; gap: 0.5rem; }
  .vcat-sort, .vcat-open-filters {
    min-height: 42px; border: 1px solid var(--vcat-line); border-radius: 12px; background: #fff; color: var(--vcat-ink);
    font-size: 0.82rem; font-weight: 700; padding: 0 0.85rem; cursor: pointer;
  }
  .vcat-open-filters { display: none; align-items: center; gap: 0.45rem; }
  .vcat-sort-wrap { display: contents; }
  .vcat-sort-wrap svg { display: none; }
  .vcat.is-compact .vcat-sort-wrap svg { display: block; }
  .vcat-open-filters b { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--vcat-ink); color: #fff; font-size: 0.68rem; display: none; align-items: center; justify-content: center; }
  .vcat-open-filters b.is-on { display: inline-flex; }

  .vcat-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.85rem; }
  .vcat-chips:empty { display: none; }
  .vcat-chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 0;
    background: #f1f5f9; color: #334155; font-size: 0.76rem; font-weight: 700; cursor: pointer;
  }
  .vcat-chip:hover { background: #e2e8f0; }
  .vcat-chip-clear { background: none; color: #dc2626; text-decoration: underline; padding: 0 4px; }

  .vcat-body { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 1.5rem; align-items: start; }

  /* ---- Filters panel ---- */
  .vcat-filters { background: #fff; border: 1px solid var(--vcat-line); border-radius: 16px; position: sticky; top: 84px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; overflow: hidden; }
  .vcat-filters-head { display: none; align-items: center; justify-content: space-between; padding: 0.9rem 1rem; border-bottom: 1px solid var(--vcat-line); font-weight: 900; font-size: 0.95rem; color: var(--vcat-ink); }
  .vcat-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1f5f9; color: var(--vcat-ink); cursor: pointer; display: grid; place-items: center; }
  .vcat-filters-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 0.35rem 1rem 0.5rem; }
  .vcat-group { border-bottom: 1px solid #f1f5f9; }
  .vcat-group:last-child { border-bottom: 0; }
  .vcat-group > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 0; font-size: 0.86rem; font-weight: 800; color: var(--vcat-ink);
  }
  .vcat-group > summary::-webkit-details-marker { display: none; }
  .vcat-group > summary::after { content: ''; width: 8px; height: 8px; border-inline-end: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: rotate(45deg); transition: transform 0.2s; margin-inline-end: 4px; }
  .vcat-group[open] > summary::after { transform: rotate(-135deg); }
  .vcat-group-body { padding-bottom: 0.9rem; }
  .vcat-search { width: 100%; min-height: 42px; border: 1px solid var(--vcat-line); border-radius: 12px; padding: 0 0.8rem; font-size: 0.84rem; background: #f8fafc; }
  .vcat-search:focus, .vcat-num:focus, .vcat-sort:focus { outline: 2px solid var(--vcat-ink); outline-offset: 1px; }
  .vcat-options { display: flex; flex-direction: column; gap: 2px; max-height: 232px; overflow-y: auto; }
  .vcat-option { display: flex; align-items: center; gap: 0.55rem; min-height: 36px; font-size: 0.83rem; color: #334155; cursor: pointer; border-radius: 8px; padding: 0 4px; }
  .vcat-option:hover { background: #f8fafc; }
  .vcat-option input { width: 18px; height: 18px; accent-color: var(--vcat-ink); flex-shrink: 0; }
  /* Chip style options (sizes, colours) */
  .vcat-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .vcat-pill { position: relative; cursor: pointer; }
  .vcat-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .vcat-pill span {
    display: inline-flex; align-items: center; gap: 6px; min-width: 42px; min-height: 38px; padding: 0 10px; justify-content: center;
    border: 1.5px solid var(--vcat-line); border-radius: 10px; font-size: 0.8rem; font-weight: 700; color: #334155; background: #fff;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
  }
  .vcat-pill input:checked + span { border-color: var(--vcat-ink); background: var(--vcat-ink); color: #fff; }
  .vcat-pill input:focus-visible + span { outline: 2px solid var(--vcat-ink); outline-offset: 2px; }
  .vcat-pill[hidden] { display: none; }
  .vcat-pill small { font-size: 0.68rem; opacity: 0.55; font-weight: 600; }
  .vcat-tag-search { width: 100%; margin-bottom: 4px; padding: 7px 10px; border: 1.5px solid var(--vcat-line); border-radius: 10px; font-family: inherit; font-size: 0.78rem; }
  .vcat-pill i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(15, 23, 42, 0.18); flex-shrink: 0; }

  /* Price range: two overlapping range inputs form one dual-thumb slider */
  .vcat-range { position: relative; height: 34px; margin: 0 2px 0.5rem; direction: ltr; }
  .vcat-range-track { position: absolute; top: 15px; left: 0; right: 0; height: 4px; border-radius: 4px; background: #e2e8f0; }
  .vcat-range-fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--vcat-ink); }
  .vcat-range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
  .vcat-range input::-webkit-slider-runnable-track { background: none; height: 34px; }
  .vcat-range input::-moz-range-track { background: none; }
  .vcat-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 6px; border-radius: 50%; background: #fff; border: 2px solid var(--vcat-ink); cursor: grab; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2); }
  .vcat-range input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--vcat-ink); cursor: grab; }
  .vcat-price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .vcat-price-inputs label { font-size: 0.7rem; color: var(--vcat-muted); display: flex; flex-direction: column; gap: 4px; }
  .vcat-num { width: 100%; min-height: 40px; border: 1px solid var(--vcat-line); border-radius: 10px; padding: 0 0.6rem; font-size: 0.82rem; direction: ltr; text-align: center; }
  .vcat-price-label { font-size: 0.74rem; color: var(--vcat-muted); margin-top: 0.5rem; text-align: center; }

  .vcat-filters-foot { display: none; gap: 0.5rem; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--vcat-line); background: #fff; }
  .vcat-apply, .vcat-reset { min-height: 48px; border-radius: 14px; font-size: 0.9rem; font-weight: 800; cursor: pointer; }
  .vcat-apply { flex: 1; border: 0; background: var(--vcat-ink); color: #fff; }
  .vcat-reset { border: 1px solid var(--vcat-line); background: #fff; color: var(--vcat-ink); padding: 0 1rem; }
  /* Plain submit for visitors without JavaScript */
  .vcat-submit { width: 100%; min-height: 46px; margin: 0.5rem 0 0.75rem; border: 0; border-radius: 12px; background: var(--vcat-ink); color: #fff; font-size: 0.88rem; font-weight: 800; cursor: pointer; }
  .vcat.is-enhanced .vcat-submit { display: none; }
  .vcat-backdrop { display: none; }

  /* ---- Results ---- */
  .vcat-results { min-width: 0; }
  .vcat .vitrin-product-grid { margin: 0; transition: opacity 0.2s; }
  .vcat.is-loading .vitrin-product-grid { opacity: 0.45; pointer-events: none; }
  .vcat-card { animation: vcatIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
  @keyframes vcatIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
  .vcat-card img {
    height: auto; aspect-ratio: 4 / 5; width: 100%; object-fit: contain;
    padding: clamp(0.3rem, 5cqi, 0.9rem); background: #f8fafc; border-radius: 12px; margin-bottom: 0.7rem;
  }
  .vcat-card.is-out img { opacity: 0.55; filter: grayscale(0.6); }
  .vcat-card-cat { font-size: 0.68rem; color: var(--vcat-muted); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vcat-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 0.5rem; min-height: 16px; }
  .vcat-swatches { display: inline-flex; align-items: center; gap: 3px; }
  .vcat-swatch { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(15, 23, 42, 0.18); }
  .vcat-swatch-more, .vcat-sizes { font-size: 0.66rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vcat-card .builder-prod-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.4rem; width: 100%; margin-top: auto; padding-top: 0.5rem; border-top: 1px solid #f1f5f9; }
  .vcat-card .builder-prod-price del { display: block; font-size: 0.72em; font-weight: 500; color: #94a3b8; }
  .vcat-badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; background: #ef4444; color: #fff; font-size: 0.66rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
  .vcat-badge-out { background: #475569; }
  @container pcard (max-width: 169px) { .vcat-card-meta { display: none; } .vcat-badge { top: 8px; inset-inline-start: 8px; font-size: 0.6rem; } }

  .vcat-skeleton { border: 1px solid var(--vcat-line); border-radius: 12px; padding: 0.9rem; background: #fff; }
  .vcat-skeleton i { display: block; border-radius: 10px; background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%); background-size: 400% 100%; animation: vcatShimmer 1.3s linear infinite; }
  .vcat-skeleton i:first-child { aspect-ratio: 4 / 5; margin-bottom: 0.7rem; }
  .vcat-skeleton i:nth-child(2) { height: 14px; width: 80%; margin-bottom: 0.5rem; }
  .vcat-skeleton i:nth-child(3) { height: 14px; width: 45%; }
  @keyframes vcatShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

  .vcat-empty { text-align: center; padding: 3rem 1rem; color: var(--vcat-muted); font-size: 0.9rem; border: 1px dashed var(--vcat-line); border-radius: 16px; }
  .vcat-empty strong { display: block; color: var(--vcat-ink); font-size: 1rem; margin-bottom: 0.35rem; }
  .vcat-empty button { margin-top: 1rem; }
  .vcat-more-wrap { display: flex; justify-content: center; padding: 1.5rem 0 0.5rem; min-height: 1px; }
  .vcat-more { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.75rem; border-radius: 999px; border: 1.5px solid var(--vcat-ink); color: var(--vcat-ink); font-size: 0.86rem; font-weight: 800; text-decoration: none; background: #fff; }
  .vcat-more[hidden] { display: none; }
  .vcat-end { text-align: center; font-size: 0.78rem; color: #94a3b8; padding: 1.25rem 0 0.25rem; }
  .vcat-end[hidden] { display: none; }
  .vcat-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  /* ---- Compact layout (phones, tablets, narrow columns): filters become a bottom sheet ----
     `is-compact` is set from the widget's own width, so it also applies in the builder's preview frame. */
  .vcat.is-compact .vcat-body { grid-template-columns: minmax(0, 1fr); }
  .vcat.is-compact .vcat-open-filters { display: inline-flex; }
  .vcat.is-compact .vcat-filters {
    position: fixed; inset: auto 0 0 0; z-index: 9995; top: auto; max-height: 88vh; max-height: 88dvh;
    border-radius: 22px 22px 0 0; border: 0; box-shadow: 0 -18px 50px rgba(15, 23, 42, 0.25);
    transform: translate3d(0, 105%, 0); visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.4s;
  }
  .vcat.is-compact.is-filters-open .vcat-filters { transform: none; visibility: visible; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
  .vcat.is-compact .vcat-filters-head, .vcat.is-compact .vcat-filters-foot { display: flex; }
  .vcat.is-compact .vcat-backdrop { display: block; position: fixed; inset: 0; z-index: 9994; background: rgba(15, 23, 42, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s linear 0.3s; }
  .vcat.is-compact.is-filters-open .vcat-backdrop { opacity: 1; visibility: visible; transition: opacity 0.3s; }
  /* Compact: the title and count scroll away; only a slim frosted control bar stays pinned under the site header */
  .vcat.is-compact .vcat-toolbar { display: contents; }
  .vcat.is-compact .vcat-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.7rem; }
  .vcat.is-compact .vcat-title { font-size: 1.2rem; }
  .vcat.is-compact .vcat-count { flex-shrink: 0; margin: 0; padding: 0.2rem 0.65rem; border-radius: 999px; background: #fff; border: 1px solid var(--vcat-line); font-size: 0.72rem; }
  .vcat.is-compact .vcat-tools {
    position: sticky; top: var(--vcat-sticky-top, 64px); z-index: 20;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    margin: 0 0 0.85rem; padding: 0.4rem;
    background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.9); border-radius: 16px;
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.45);
    transition: box-shadow 0.25s, border-color 0.25s;
  }
  .vcat.is-compact.is-stuck .vcat-tools { box-shadow: 0 14px 30px -16px rgba(15, 23, 42, 0.5); border-color: rgba(197, 168, 128, 0.45); }
  .vcat.is-compact .vcat-open-filters, .vcat.is-compact .vcat-sort-wrap { width: 100%; min-height: 40px; border-radius: 12px; }
  .vcat.is-compact .vcat-open-filters { justify-content: center; border: 0; background: var(--vcat-ink); color: #fff; font-size: 0.8rem; }
  .vcat.is-compact .vcat-open-filters b { background: var(--vcat-accent); color: var(--vcat-ink); }
  .vcat.is-compact .vcat-sort-wrap { position: relative; display: flex; align-items: center; border: 1px solid var(--vcat-line); background: #fff; color: var(--vcat-muted); }
  .vcat.is-compact .vcat-sort-wrap svg { position: absolute; inset-inline-start: 0.7rem; pointer-events: none; }
  .vcat.is-compact .vcat-sort { width: 100%; max-width: none; min-height: 38px; border: 0; background: transparent; padding-inline: 2.1rem 0.6rem; font-size: 0.8rem; -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }
  .vcat.is-compact .vcat-sort:focus { outline: none; }
  .vcat.is-compact .vcat-sort-wrap:focus-within { border-color: var(--vcat-accent); box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2); }
  .vcat.is-compact .vcat-chips { margin-top: -0.25rem; }

  @media (prefers-reduced-motion: reduce) {
    .vcat-card, .vcat-skeleton i { animation: none; }
    .vcat.is-compact .vcat-filters, .vcat.is-compact .vcat-backdrop { transition: none; }
  }
