/* DPHV need filter 0.6.0 — one compact bar above the grid (owner 20/10: less height, faster filtering). */
.dphv-nf { --nf-blue: #0753b4; --nf-navy: #082958; --nf-line: #dce4ef; --nf-soft: #f3f6fb; --nf-muted: #677386; margin: 0 0 14px; font-size: 14px; }
.dphv-nf__form { margin: 0; }
.dphv-nf__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 0; border-top: 1px solid var(--nf-line); border-bottom: 1px solid var(--nf-line); }
.dphv-nf__title { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--nf-navy); }
.dphv-nf__title svg { width: 16px; height: 16px; }
.dphv-nf__group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dphv-nf__group + .dphv-nf__group { padding-left: 10px; border-left: 1px solid var(--nf-line); }
.dphv-nf__group-label { color: var(--nf-muted); }
.dphv-nf__total { margin-left: auto; color: var(--nf-muted); white-space: nowrap; }
.dphv-nf__total b { color: var(--nf-navy); }

/* Chips (both modes) */
.dphv-nf__chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; font-weight: 400; }
.dphv-nf__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.dphv-nf__chip-body { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border: 1px solid var(--nf-line); border-radius: 999px; background: #fff; color: #24334b; line-height: 1.2; transition: border-color .15s, background .15s; }
.dphv-nf__chip-body small { color: var(--nf-muted); font-size: 12px; }
.dphv-nf__chip:hover .dphv-nf__chip-body { border-color: var(--nf-blue); }
.dphv-nf__chip input:focus-visible + .dphv-nf__chip-body { outline: 2px solid var(--nf-blue); outline-offset: 2px; }
.dphv-nf__chip input:checked + .dphv-nf__chip-body { background: var(--nf-blue); border-color: var(--nf-blue); color: #fff; }
.dphv-nf__chip input:checked + .dphv-nf__chip-body small { color: rgba(255,255,255,.8); }
.dphv-nf__swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); flex: none; }

/* Panel mode: one dropdown per group */
.dphv-nf__dd { position: relative; }
.dphv-nf__dd > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 30px 4px 12px; border: 1px solid var(--nf-line); border-radius: 999px; background: #fff; color: #24334b; cursor: pointer; list-style: none; white-space: nowrap; position: relative; }
.dphv-nf__dd > summary::-webkit-details-marker { display: none; }
.dphv-nf__dd > summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); }
.dphv-nf__dd[open] > summary { border-color: var(--nf-blue); color: var(--nf-blue); }
.dphv-nf__dd > summary b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--nf-blue); color: #fff; font-size: 11px; }
.dphv-nf__menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: max-content; max-width: min(440px, 90vw); padding: 12px; border: 1px solid var(--nf-line); border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(8,41,88,.14); }
.dphv-nf__menu-title { display: none; margin: 0 0 8px; font-weight: 700; color: var(--nf-navy); }
.dphv-nf__chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow: auto; }
.dphv-nf__menu-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--nf-line); }
.dphv-nf__apply, .dphv-nf__reset-group { margin: 0; min-height: 36px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 36px; }
.dphv-nf__apply { border: 0; background: var(--nf-blue); color: #fff; }
.dphv-nf__reset-group { border: 1px solid var(--nf-line); background: #fff; color: #24334b; }

/* Active selections */
.dphv-nf__active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 8px; }
.dphv-nf__tag { margin: 0; min-height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--nf-soft); color: var(--nf-navy); font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; line-height: 28px; }
.dphv-nf__tag span { margin-left: 2px; color: var(--nf-muted); }
.dphv-nf__clear { font-size: 13px; color: var(--nf-blue); text-decoration: underline; }
.dphv-nf__error { margin: 8px 0 0; color: #b42318; }

/* Loading */
.shop-container.dphv-nf-loading .products, .shop-container.dphv-nf-loading .woocommerce-pagination { opacity: .45; pointer-events: none; transition: opacity .15s; }

/* Category page above the grid: compact child categories + short intro on mobile */
.shop-container > .hkg-subcats-grid-wrapper { margin: 0 0 12px; padding: 0; background: none; border: 0; box-shadow: none; }
.shop-container > .hkg-subcats-grid-wrapper .hkg-subcats-grid { display: flex; flex-wrap: nowrap; grid-template-rows: none; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 2px 0 6px; scrollbar-width: thin; }
.shop-container > .hkg-subcats-grid-wrapper .hkg-subcats-grid .hkg-subcat-item { display: flex; flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px; width: auto; max-width: 260px; margin: 0; padding: 4px 14px 4px 4px; border: 1px solid #dce4ef; border-radius: 999px; background: #fff; box-shadow: none; transform: none; }
.shop-container > .hkg-subcats-grid-wrapper .hkg-subcats-grid .hkg-subcat-item:hover { border-color: #0753b4; }
.shop-container > .hkg-subcats-grid-wrapper .hkg-subcats-grid .hkg-subcat-img { flex: none; width: 34px; height: 34px; aspect-ratio: auto; margin: 0; overflow: hidden; border-radius: 50%; background: #f4f6f8; }
.shop-container > .hkg-subcats-grid-wrapper .hkg-subcats-grid .hkg-subcat-img img { width: 34px; height: 34px; max-height: none; object-fit: cover; }
.shop-container > .hkg-subcats-grid-wrapper .hkg-subcats-grid .hkg-subcat-info { padding: 0; }
.shop-container > .hkg-subcats-grid-wrapper .hkg-subcats-grid .hkg-subcat-title { display: block; min-height: 0; margin: 0; font-size: 13px; line-height: 1.25; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Mobile intro clamp is pure CSS from first paint (0.6.1): JS only hides the button when the text already fits. */
@media (max-width: 849px) {
  .shop-container > .term-description:not(.is-open):has(+ .dphv-intro-more:not([hidden])) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .shop-container > .term-description:not(.is-open):has(+ .dphv-intro-more:not([hidden])) p { margin-bottom: 0; }
}
@media (min-width: 850px) { .dphv-intro-more { display: none; } }
.dphv-intro-more { margin: -4px 0 12px; padding: 0; min-height: 0; border: 0; background: none; color: #0753b4; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.4; }

@media (max-width: 849px) {
  /* One scrolling row instead of wrapped blocks */
  .dphv-nf__bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -15px; padding: 8px 15px; }
  .dphv-nf__bar::-webkit-scrollbar { display: none; }
  .dphv-nf__group { flex-wrap: nowrap; }
  .dphv-nf__group-label, .dphv-nf__chip-body, .dphv-nf__total { white-space: nowrap; }
  .dphv-nf__total { order: -1; margin-left: 0; }
  /* Dropdown menus become a bottom sheet */
  .dphv-nf-sheet-open .sticky-mobile-menu, .dphv-nf-sheet-open .button-contact-fixed, .dphv-nf-sheet-open [class*="fixed-contact"] { visibility: hidden; }
  .dphv-nf__dd[open]::before { content: ""; position: fixed; inset: 0; z-index: 99998; background: rgba(8,41,88,.35); }
  .dphv-nf__menu { position: fixed; z-index: 99999; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; max-height: 70vh; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 14px 14px 0 0; display: flex; flex-direction: column; }
  .dphv-nf__menu-title { display: block; font-size: 16px; }
  .dphv-nf__chips { max-height: none; flex: 1; }
  .dphv-nf__apply { flex: 1; }
}
