/* ============================================================================
   PHUOT 4P — VINFAST FLAGSHIP PRODUCT CATALOG & PRODUCT DETAIL SYSTEM
   Eliminates all rough/boxy 2017 legacy look on /san-pham & /chi-tiet-san-pham
   100% synchronized with var(--vf-blue) + all 7 Vietnam Holiday Modes!
   ============================================================================ */

/* --- SHARED MOD RADIUS & FONT DISCIPLINE --- */
.vf-prod-page {
  font-family: var(--p4p-font, "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  background: #F7F9F9;
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
}

/* Prevent mobile bottom-left FAB from colliding with #p4pHolidayDock on product pages */
.vf-prod-page #mobileFab {
  display: none !important;
}

/* ============================================================================
   1. CATALOG PAGE (/san-pham) — CLEAN VINFAST ARCHITECTURAL OVERHAUL
   ============================================================================ */

/* Compact Refined Editorial Header (Luxury Evolution of phuot4p.com/san-pham) */
.vf-cat-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #E8EEF5;
}
.vf-cat-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 8px;
}
.vf-cat-crumb a {
  color: #64748B;
  text-decoration: none;
  transition: color 0.16s ease;
}
.vf-cat-crumb a:hover {
  color: var(--vf-blue, #1464F4);
}
.vf-cat-crumb .is-current {
  color: var(--vf-blue, #1464F4);
  font-weight: 800;
}
.vf-cat-title {
  margin: 0;
  font-size: clamp(1.65rem, 1.3rem + 1.35vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.028em;
  line-height: 1.12;
  color: #0F172A;
  text-transform: uppercase;
}
.vf-cat-title span {
  color: var(--vf-blue, #1464F4);
  font-style: italic;
}
.vf-cat-sub {
  margin: 7px 0 0;
  font-size: 0.85rem;
  color: #475569;
  font-weight: 500;
  line-height: 1.5;
}
.vf-cat-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* ============================================================================
   1A. FLAGSHIP BRAND SHOWCASE BAR & ACTIVE BRAND SPOTLIGHT (/san-pham)
   ============================================================================ */
.vf-brand-showcase-bar {
  background: #FFFFFF;
  border: 1px solid #E5ECF4;
  border-radius: 20px;
  padding: 14px 20px 16px;
  margin-bottom: 16px;
  box-shadow: 0 14px 36px -26px rgba(15, 23, 42, 0.18), 0 1px 4px rgba(15, 23, 42, 0.03);
}

/* Slim 1-Line Combo Guide & Status Strip inside Unified Filter Hub */
.vf-combo-guide-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  padding: 5px 9px;
  margin-block-end: 0;
  border-radius: 9px;
  background: #F8FAFC;
  border: 1px solid #EEF2F6;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.vf-combo-guide-bar[data-combo-state="brand"],
.vf-combo-guide-bar[data-combo-state="cat"] {
  background: linear-gradient(90deg, var(--vf-blue-tint, rgba(20, 100, 244, 0.08)) 0%, #F8FAFC 100%);
  border-color: color-mix(in srgb, var(--vf-blue, #1464F4) 26%, #E2E8F0);
}
.vf-combo-guide-bar[data-combo-state="both"] {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.09) 0%, #F8FAFC 100%);
  border-color: rgba(16, 185, 129, 0.34);
}
.vf-combo-guide-main {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  min-inline-size: 0;
  flex: 1 1 auto;
}
.vf-combo-guide-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.vf-combo-guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.vf-combo-guide-bar[data-combo-state="brand"] .vf-combo-guide-badge,
.vf-combo-guide-bar[data-combo-state="cat"] .vf-combo-guide-badge {
  background: var(--vf-blue, #1464F4);
}
.vf-combo-guide-bar[data-combo-state="both"] .vf-combo-guide-badge {
  background: #059669;
}
.vf-combo-guide-text {
  margin: 0;
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.3;
  color: #475569;
  min-inline-size: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vf-combo-guide-text strong,
.vf-combo-guide-text b {
  font-weight: 800;
  color: #0F172A;
}
.vf-combo-x {
  display: inline-block;
  margin-inline: 2px;
  font-weight: 900;
  color: #059669;
}
.vf-combo-reset-btn {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-block-size: 24px;
  min-inline-size: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  background-clip: padding-box;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.vf-combo-reset-btn[hidden] {
  display: none !important;
}
.vf-combo-reset-btn:hover {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}
.vf-combo-reset-btn:focus-visible {
  outline: 2px solid #0F172A;
  outline-offset: 2px;
}
@media (pointer: coarse) {
  .vf-combo-reset-btn::after {
    content: "";
    position: absolute;
    inset: -6px;
  }
}

.vf-brand-dir-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--vf-blue, #1464F4);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--vf-blue-tint, rgba(20, 100, 244, 0.07));
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.vf-brand-dir-link:hover {
  border-color: var(--vf-blue, #1464F4);
  transform: translateX(2px);
}

#brand-filter-row.vf-brand-showcase-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  padding: 1px 2px 2px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#brand-filter-row.vf-brand-showcase-row::-webkit-scrollbar {
  display: none;
}

.vf-brand-pill {
  position: relative;
  flex: 1 0 124px;
  min-width: 122px;
  max-width: 210px;
  min-height: 44px;
  padding: 5px 22px 5px 9px;
  border-radius: 12px;
  border: 1.5px solid #E5ECF4;
  background: #F8FAFC;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
  transition: border-color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.22s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.vf-brand-pill--all {
  flex: 0 0 auto;
  min-width: 122px;
  justify-content: flex-start;
}
.vf-brand-pill:hover {
  border-color: var(--vf-blue, #1464F4);
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.2);
}
.vf-brand-pill.is-active {
  border-color: var(--vf-blue, #1464F4);
  background: linear-gradient(135deg, #FFFFFF 0%, var(--vf-blue-tint, rgba(20, 100, 244, 0.08)) 100%);
  box-shadow: 0 8px 20px -14px rgba(20, 100, 244, 0.36), 0 0 0 1px var(--vf-blue, #1464F4) inset;
}
.vf-brand-pill-logo {
  width: 38px;
  height: 30px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #EEF2F7;
  padding: 3px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vf-brand-pill-logo img {
  max-width: 100%;
  max-height: 22px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}
.vf-brand-pill-logo i {
  font-size: 0.95rem;
  color: var(--vf-blue, #1464F4);
}
.vf-brand-pill-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.vf-brand-pill-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vf-brand-pill.is-active .vf-brand-pill-name {
  color: var(--vf-blue, #1464F4);
}
.vf-brand-pill-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.67rem;
  font-weight: 700;
  color: #64748B;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vf-brand-pill-cnt {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: #E2E8F0;
  color: #334155;
  font-size: 0.64rem;
  font-weight: 800;
}
.vf-brand-pill.is-active .vf-brand-pill-cnt {
  background: var(--vf-blue, #1464F4);
  color: #FFFFFF;
}
.vf-brand-pill-tick {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.45);
}

/* Dynamic Active Brand Spotlight Banner */
.vf-brand-spotlight {
  display: none;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #0B1220 0%, #131E33 65%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 44px -26px rgba(15, 23, 42, 0.55);
  position: relative;
  overflow: hidden;
}
.vf-brand-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--vf-blue, #1464F4) 32%, transparent), transparent 58%);
  pointer-events: none;
}
.vf-brand-spotlight.is-visible {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 22px;
}
.vf-brand-spotlight-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 320px;
  position: relative;
  z-index: 1;
}
.vf-brand-spotlight-logo {
  width: 82px;
  height: 62px;
  border-radius: 14px;
  background: #FFFFFF;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}
.vf-brand-spotlight-logo img {
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  display: block;
}
.vf-brand-spotlight-copy {
  min-width: 0;
}
.vf-brand-spotlight-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.vf-brand-spotlight-tier {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--vf-blue, #1464F4);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vf-brand-spotlight-origin {
  font-size: 0.7rem;
  font-weight: 700;
  color: #CBD5E1;
}
.vf-brand-spotlight-title {
  margin: 0;
  font-size: clamp(1.08rem, 0.95rem + 0.55vw, 1.38rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  line-height: 1.2;
}
.vf-brand-spotlight-desc {
  margin: 5px 0 0;
  font-size: 0.8rem;
  color: #CBD5E1;
  line-height: 1.5;
  max-width: 680px;
}
.vf-brand-spotlight-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.vf-brand-spotlight-stat {
  padding: 7px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.74rem;
  font-weight: 700;
  color: #E2E8F0;
  font-variant-numeric: tabular-nums;
}
.vf-brand-spotlight-stat strong {
  color: #FFFFFF;
  font-weight: 900;
}
.vf-brand-spotlight-clear {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.vf-brand-spotlight-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Elevated Soft-Rounded Unified Minimalist Filter Hub Card */
.vf-cat-toolbar {
  background: #FFFFFF;
  border: 1px solid #EAEFF5;
  border-radius: 18px;
  padding: 12px 15px;
  margin-bottom: 16px;
  box-shadow: 0 14px 36px -26px rgba(15, 23, 42, 0.14), 0 1px 4px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Search, Sort, Density & Catalog Tools Row inside Unified Hub */
.vf-cat-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
  padding-bottom: 0;
  border-bottom: 0;
}
.vf-cat-toolbar:not(.is-mobile-expanded) .vf-smart-facets,
.vf-cat-toolbar:not(.is-mobile-expanded) .vf-price-zone {
  display: none;
}
#btn-mobile-filter-toggle.has-active-adv {
  border-color: #0F172A;
  background: #F1F5F9;
  color: #0F172A;
}
.vf-cat-controls-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.vf-cat-controls-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-inline-start: auto;
}

.vf-cat-search-wrap {
  position: relative;
  width: 280px;
  min-width: 180px;
  flex: 1 1 240px;
  max-width: 380px;
}
.vf-cat-search-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 38px;
  border-radius: 999px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  color: #0F172A;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.vf-cat-search-wrap input:focus {
  border-color: var(--vf-blue, #1464F4);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--vf-blue-tint, rgba(20, 100, 244, 0.12));
}

.vf-cat-select {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  color: #1E293B;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.vf-cat-select:hover,
.vf-cat-select:focus {
  border-color: var(--vf-blue, #1464F4);
  background: #FFFFFF;
}

/* Grid Density Switcher (Soft Pill 3-Col / 4-Col) */
.vf-density-group {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  gap: 2px;
}
.vf-density-btn {
  height: 32px;
  padding: 0 11px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #64748B;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.vf-density-btn.is-active {
  background: #FFFFFF;
  color: var(--vf-blue, #1464F4);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Smart Standard / Feature & Type Facet Chips Row */
.vf-smart-facets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}
.vf-smart-chips-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.vf-smart-chip {
  height: 31px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  font-size: 0.73rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.vf-smart-chip i {
  font-size: 0.68rem;
  color: var(--vf-blue, #1464F4);
}
.vf-smart-chip:hover {
  border-color: var(--vf-blue, #1464F4);
  color: var(--vf-blue, #1464F4);
  background: #FFFFFF;
}
.vf-smart-chip.is-active {
  background: var(--vf-blue, #1464F4);
  border-color: var(--vf-blue, #1464F4);
  color: #FFFFFF;
  box-shadow: 0 4px 12px -4px rgba(20, 100, 244, 0.45);
}
.vf-smart-chip.is-active i {
  color: #FFFFFF;
}
.vf-smart-chip-cnt {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  color: inherit;
  font-size: 0.64rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.vf-smart-chip.is-active .vf-smart-chip-cnt {
  background: rgba(255, 255, 255, 0.22);
}

/* Row 2: THE 9 ILLUSTRATED VISUAL CATEGORY CARDS (Beloved Signature of phuot4p.com, Upgraded!) */
.vf-vcat-section {
  display: block;
}
.vf-vcat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.vf-vcat-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #14171A;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vf-vcat-title i {
  color: var(--vf-blue, #1464F4);
  font-style: normal;
}
.vf-vcat-grid {
  display: grid;
  grid-template-columns: repeat(var(--vcat-cols, 10), minmax(0, 1fr));
  align-items: stretch;
  gap: 9px;
}
@media (max-width: 1180px) {
  .vf-vcat-grid {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    touch-action: manipulation;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .vf-vcat-grid::-webkit-scrollbar { display: none; }
}
.vf-vcat-card {
  position: relative;
  width: 100%;
  min-width: 0;
  background: #FFFFFF;
  border: 1.5px solid #E8EEF5;
  border-radius: 13px;
  padding: 6px 5px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  scroll-snap-align: start;
  box-shadow: 0 3px 10px -8px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.vf-brand-pill:focus-visible,
.vf-vcat-card:focus-visible {
  outline: 2px solid #0F172A;
  outline-offset: -2px;
}
.vf-brand-pill.is-zero-match,
.vf-vcat-card.is-zero-match {
  opacity: 0.46;
}
.vf-brand-pill.is-zero-match:hover,
.vf-vcat-card.is-zero-match:hover {
  opacity: 0.78;
}
.vf-vcat-all-glyph {
  inline-size: 36px;
  block-size: 36px;
  border-radius: 10px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.vf-vcat-card--all.is-active .vf-vcat-all-glyph {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}
@media (max-width: 1180px) {
  .vf-vcat-card {
    width: 106px;
    min-width: 106px;
    flex-shrink: 0;
  }
}
.vf-vcat-card:hover {
  transform: translateY(-2px);
  border-color: var(--vf-blue, #1464F4);
  box-shadow: 0 10px 20px -12px rgba(20, 100, 244, 0.22);
}
.vf-vcat-card.is-active {
  border-color: var(--vf-blue, #1464F4);
  border-width: 2px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--vf-blue-tint, rgba(20, 100, 244, 0.06)) 100%);
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--vf-blue, #1464F4) 28%, transparent);
  transform: translateY(-1px);
}
.vf-vcat-check {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
  z-index: 2;
}
.vf-vcat-card.is-active .vf-vcat-check {
  display: flex;
}
.vf-vcat-count {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  font-size: 0.56rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  z-index: 2;
  pointer-events: none;
}
.vf-vcat-card.is-active .vf-vcat-count {
  background: var(--vf-blue, #1464F4);
  color: #FFFFFF;
}
.vf-vcat-img {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px;
}
.vf-vcat-img img {
  max-width: 56px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.vf-vcat-card:hover .vf-vcat-img img {
  transform: scale(1.06);
}
.vf-vcat-bar {
  width: 100%;
  padding: 4px 3px;
  border-radius: 7px;
  background: var(--vf-blue, #1464F4);
  color: #FFFFFF;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.vf-vcat-card:hover .vf-vcat-bar,
.vf-vcat-card.is-active .vf-vcat-bar {
  background: var(--vf-blue-hover, #0E50CC);
}
@media (max-width: 640px) {
  .vf-vcat-grid { gap: 7px; }
  .vf-vcat-card {
    width: 78px;
    min-width: 78px;
    border-radius: 12px;
    border: 1px solid #EAEFF5;
    padding: 6px 4px 6px;
    gap: 4px;
    box-shadow: 0 2px 8px -6px rgba(15, 23, 42, 0.14);
  }
  .vf-vcat-img { height: 48px; }
  .vf-vcat-img img { max-width: 52px; max-height: 46px; }
  .vf-vcat-bar {
    background: transparent;
    color: #1E293B;
    font-size: 0.56rem;
    font-weight: 800;
    padding: 2px 2px 0;
    border-radius: 6px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.2;
    min-height: 2.4em;
    letter-spacing: 0;
  }
  .vf-vcat-card.is-active .vf-vcat-bar {
    background: var(--vf-blue, #1464F4);
    color: #FFFFFF;
    padding: 3px 4px;
  }
}

/* Row 3: Beloved Tactile Price Slider + Quick Price Preset Chips */
.vf-price-zone {
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vf-price-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.vf-chip-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748B;
  margin-right: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.vf-price-chip {
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.vf-price-chip:hover {
  border-color: var(--vf-blue, #1464F4);
  color: var(--vf-blue, #1464F4);
  background: #FFFFFF;
}
.vf-price-chip.is-active {
  background: var(--vf-blue, #1464F4);
  border-color: var(--vf-blue, #1464F4);
  color: #FFFFFF;
  box-shadow: 0 4px 12px -4px rgba(20, 100, 244, 0.45);
}

.vf-price-slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 20px;
}
@media (max-width: 768px) {
  .vf-price-slider-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.vf-price-input-pill {
  width: 100%;
  height: 38px;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  padding: 0 28px 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1E293B;
  background: #F8FAFC;
  text-align: center;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.vf-price-input-pill:focus {
  border-color: var(--vf-blue, #1464F4);
  background: #FFFFFF;
}

/* Soft Pill Utility Buttons */
.vf-util-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.vf-util-btn[hidden],
#selection-controls-group[hidden],
.vf-util-btn.hidden,
#clear-search-btn.hidden {
  display: none !important;
}
@media (min-width: 640px) {
  .vf-util-btn.hidden.sm\:inline-flex:not([hidden]) {
    display: inline-flex !important;
  }
}
.vf-util-btn:hover {
  border-color: var(--vf-blue, #1464F4);
  color: var(--vf-blue, #1464F4);
  background: var(--vf-blue-tint, rgba(20, 100, 244, 0.06));
}
.vf-util-btn--primary {
  background: var(--vf-blue, #1464F4);
  border-color: var(--vf-blue, #1464F4);
  color: #FFFFFF !important;
  box-shadow: 0 6px 16px -6px rgba(20, 100, 244, 0.5);
}
.vf-util-btn--primary:hover {
  background: var(--vf-blue-hover, #0E50CC);
  border-color: var(--vf-blue-hover, #0E50CC);
  color: #FFFFFF !important;
}

/* Soft Rounded Light Sticky Sidebar (Zero Flex-Shrink Clipping + Safe Clearance above #p4pHolidayDock) */
@media (min-width: 768px) {
  #filter-sidebar {
    --p4p-sb-thumb: #758499;
    --p4p-sb-track: transparent;
    position: sticky;
    top: calc(var(--p4p-header-h, 72px) + 14px);
    align-self: flex-start;
    max-block-size: calc(100dvh - var(--p4p-header-h, 72px) - 86px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--p4p-sb-thumb) var(--p4p-sb-track);
    scrollbar-gutter: stable;
    gap: 16px !important;
    padding-bottom: 16px;
    padding-right: 4px;
  }
  #filter-sidebar > * {
    flex-shrink: 0 !important;
  }
  @supports not (scrollbar-color: auto) {
    #filter-sidebar {
      scrollbar-width: auto;
    }
    #filter-sidebar::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    #filter-sidebar::-webkit-scrollbar-thumb {
      background: var(--p4p-sb-thumb);
      border-radius: 999px;
    }
    #filter-sidebar::-webkit-scrollbar-track {
      background: var(--p4p-sb-track);
    }
  }
}
.vf-prod-page #sidebar-category-box {
  background: #FFFFFF !important;
  border: 1px solid #EAEFF5 !important;
  border-radius: var(--p4p-card-radius, 14px) !important;
  box-shadow: 0 12px 30px -24px rgba(15, 23, 42, 0.16) !important;
}
.vf-sidebar-head-light {
  padding: 15px 18px;
  background: #FFFFFF;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vf-sidebar-head-light h3 {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #14171A;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vf-sidebar-head-light .vf-head-bar {
  width: 4px;
  height: 15px;
  border-radius: 999px;
  background: var(--vf-blue, #1464F4);
}

/* Unified Soft Range Slider -> var(--vf-blue) / Active Holiday */
.vf-prod-page .range-slider {
  height: 6px !important;
  border-radius: 999px !important;
  background: #E2E8F0 !important;
}
.vf-prod-page .range-slider .progress {
  height: 6px !important;
  border-radius: 999px !important;
  background: var(--vf-blue, #1464F4) !important;
}
.vf-prod-page .range-slider input[type="range"]::-webkit-slider-thumb {
  background: var(--vf-blue, #1464F4) !important;
  border: 3px solid #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22) !important;
}
.vf-prod-page .range-slider input[type="range"]::-moz-range-thumb {
  background: var(--vf-blue, #1464F4) !important;
  border: 3px solid #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22) !important;
}

/* Result Summary Bar above Grid */
.vf-results-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 600;
}
.vf-results-meta strong {
  color: #14171A;
  font-weight: 800;
}
.vf-results-meta[data-empty="1"] .vf-mobile-cols-bar,
.vf-results-meta[data-empty="1"] #vf-results-studio-hint {
  display: none !important;
}
html:not([data-cat-sidebar="collapsed"]) .vf-results-meta[data-empty="1"] {
  display: none !important;
}

/* Unified Single Empty-State Card on /san-pham (Eliminates duplicate empty boxes) */
.vf-empty-catalog-card {
  grid-column: 1 / -1;
  background: #FFFFFF;
  border: 1px solid #E5ECF4;
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 36px);
  box-shadow: 0 16px 38px -28px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.vf-empty-catalog-icon {
  inline-size: 60px;
  block-size: 60px;
  border-radius: 16px;
  background: var(--vf-blue-tint, rgba(20, 100, 244, 0.08));
  color: var(--vf-blue, #1464F4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-block-end: 14px;
}
.vf-empty-catalog-title {
  margin: 0 0 8px;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.18rem);
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.01em;
}
.vf-empty-catalog-desc {
  margin: 0 0 20px;
  max-inline-size: 560px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #475569;
  font-weight: 500;
}
.vf-empty-catalog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  justify-content: center;
  gap: 10px;
}

/* Responsive Catalog Sidebar + Grid Shell (Explicit CSS Grid — DOM order matches visual order & keyboard Tab flow)
   Mobile (<768px): full-width grid + native <dialog> Filter Sheet
   Tablet (768-1023px): sticky 210px left sidebar + 2-3 col grid
   PC (1024-1279px): sticky 234px left sidebar + 3-col grid
   Wide PC (>=1280px): sticky 256px left sidebar + 4-col grid */
#catalog-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
#catalog-sidebar-column {
  min-inline-size: 0;
}
#catalog-grid-column {
  min-inline-size: 0;
}
@media (max-width: 767px) {
  #catalog-sidebar-column {
    display: none !important;
  }
}
@media (min-width: 768px) {
  #catalog-layout {
    grid-template-columns: 210px minmax(0, 1fr) !important;
    gap: 18px !important;
  }
  #catalog-sidebar-column {
    display: block !important;
    inline-size: 100% !important;
  }
  #sidebar-category-box {
    display: block !important;
  }
  #sidebar-category-box #category-list {
    display: block !important;
    padding: 8px !important;
  }
  #catalog-grid-column {
    inline-size: auto !important;
    min-inline-size: 0 !important;
  }
}
@media (min-width: 1024px) {
  #catalog-layout {
    grid-template-columns: 234px minmax(0, 1fr) !important;
    gap: 20px !important;
  }
}
@media (min-width: 1280px) {
  #catalog-layout {
    grid-template-columns: 256px minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  #sidebar-category-box #category-list {
    padding: 12px !important;
  }
}

/* Collapsible Left Sidebar State on /san-pham (expands main product grid to full width) */
@media (min-width: 768px) {
  html[data-cat-sidebar="collapsed"] #catalog-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html[data-cat-sidebar="collapsed"] #catalog-sidebar-column {
    display: none !important;
  }
  html[data-cat-sidebar="collapsed"] #btnCatSidebarExpand {
    display: inline-flex !important;
  }
}

/* Soft Modern Flagship Product Cards on /san-pham (Wide PC >=1280px: 4-col default, Laptop/Tablet 920-1279px: 3-col, Small Tablet 768-919px: 2-col w/ left rail, Mobile: 4-col default) */
#main-products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
}
#main-products-grid.is-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
@media (max-width: 1279px) and (min-width: 920px) {
  #main-products-grid,
  #main-products-grid.is-cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .vf-density-group {
    display: none !important;
  }
}
@media (max-width: 1279px) and (min-width: 1024px) {
  html[data-cat-sidebar="collapsed"] #main-products-grid.is-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 919px) and (min-width: 768px) {
  #main-products-grid,
  #main-products-grid.is-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  html[data-cat-sidebar="collapsed"] #main-products-grid,
  html[data-cat-sidebar="collapsed"] #main-products-grid.is-cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .vf-density-group {
    display: none !important;
  }
}
@media (max-width: 767px) {
  #main-products-grid,
  #main-products-grid.is-cols-4 {
    grid-template-columns: repeat(var(--p4p-mobile-cols, 4), minmax(0, 1fr)) !important;
    gap: var(--p4p-mobile-gap, 6px) !important;
  }
  .vf-density-group {
    display: none !important;
  }
}

/* Mobile Column Density Switcher (2 / 3 / 4 sản phẩm cùng dòng) */
.vf-mobile-cols-bar {
  display: none;
  align-items: center;
  gap: 3px;
  padding: 2.5px 4px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.1);
}
.vf-mobile-cols-lbl {
  font-size: 0.66rem;
  font-weight: 800;
  color: #64748B;
  padding: 0 4px 0 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vf-mcol-btn {
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.vf-mcol-btn.is-active {
  background: var(--vf-blue, #1464F4);
  color: #FFFFFF;
}
@media (max-width: 767px) {
  .vf-mobile-cols-bar { display: inline-flex; }
}

#main-products-grid .product-card.vf-pcard {
  container: pcard / inline-size;
  content-visibility: auto;
  contain-intrinsic-size: auto 260px auto 360px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid #EAEFF5;
  border-radius: var(--p4p-card-radius, 14px) !important;
  padding: 14px;
  box-shadow: 0 6px 20px -16px rgba(15, 23, 42, 0.14);
  transition: border-color 0.22s ease, box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@supports not (content-visibility: auto) {
  #main-products-grid .product-card.vf-pcard {
    contain: layout style paint;
  }
}
#main-products-grid .product-card.vf-pcard:has(a.card-link) .vf-pcard-actions a,
#main-products-grid .product-card.vf-pcard:has(a.card-link) button {
  position: relative;
  z-index: 2;
}
.vf-pcard-stage > a {
  isolation: auto;
  background: transparent !important;
}
#main-products-grid .product-card.vf-pcard a.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
#main-products-grid .product-card.vf-pcard:hover {
  border-color: var(--vf-blue, #1464F4);
  box-shadow: 0 20px 38px -20px rgba(20, 100, 244, 0.26);
  transform: translateY(-4px);
}
.vf-pcard-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #F4F6F8;
  border-radius: calc(var(--p4p-card-radius, 14px) - 3px) !important;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vf-pcard-stage img.product-img {
  max-width: 92%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
#main-products-grid .vf-pcard:hover .vf-pcard-stage img.product-img {
  transform: scale(1.07);
}
.vf-pcard-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--vf-blue, #1464F4);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vf-pcard-badge--sale {
  background: #DC2626;
}

/* Unified Frosted-Glass Studio Action Pill (Studio Zoom + Quick View + Compare) */
.vf-pcard-quick {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.22);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#main-products-grid .vf-pcard:hover .vf-pcard-quick,
#main-products-grid .vf-pcard:focus-within .vf-pcard-quick,
.vf-pcard-quick.has-active {
  opacity: 1;
  transform: translateX(0);
}
@media (hover: none) {
  .vf-pcard-quick {
    opacity: 0.94;
    transform: none;
    padding: 2px;
  }
}
.vf-pcard-qbtn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.vf-pcard-qbtn:hover,
.vf-pcard-qbtn.is-active {
  background: var(--vf-blue, #C8102E);
  color: #FFFFFF;
}
.vf-pcard-qbtn--zoom {
  background: rgba(15, 23, 42, 0.06);
  color: #0F172A;
}
.vf-pcard-qbtn--zoom:hover {
  background: var(--vf-blue, #C8102E);
  color: #FFFFFF;
}
/* Compact mobile Studio Zoom trigger on product image stage */
.vf-pcard-mobile-zoom {
  display: none;
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 6;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(15, 23, 42, 0.72);
  color: #FFFFFF;
  font-size: 0.68rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}
@media (max-width: 640px) {
  .vf-pcard-mobile-zoom {
    display: inline-flex;
  }
}
@container pcard (inline-size < 130px) {
  .vf-pcard-mobile-zoom {
    display: none !important;
  }
}

.vf-pcard-body {
  align-items: center;
  text-align: center;
}
.vf-pcard-brand {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 4px;
  text-align: center;
}
.vf-pcard-title {
  margin: 0 0 10px;
  font-family: var(--p4p-font, "Plus Jakarta Sans", system-ui, -apple-system, sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: #0F172A;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: clip;
  min-height: 2.84em;
  text-decoration: none;
  transition: color 0.16s ease;
}
#main-products-grid .vf-pcard:hover .vf-pcard-title {
  color: var(--vf-blue, #1464F4);
}
.vf-pcard-price-row {
  margin-top: auto;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid #F1F3F6;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.vf-pcard-price {
  font-family: var(--p4p-price-font, "Chakra Petch", "Montserrat", "Plus Jakarta Sans", sans-serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--p4p-price-color, #EE4D2D);
  letter-spacing: -0.02em;
}
.vf-pcard-price.is-sale {
  color: var(--p4p-price-color, #EE4D2D);
}
.vf-pcard-cur {
  font-size: 0.72em;
  font-weight: 700;
  margin-left: 2px;
  opacity: 0.95;
}
.vf-pcard-old {
  font-size: 0.74rem;
  color: #8A919C;
  text-decoration: line-through;
  font-weight: 600;
}
.vf-pcard-meta-tag {
  width: 100%;
  font-size: 0.68rem;
  font-weight: 600;
  color: #6F767E;
  text-align: center;
}
.vf-pcard-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 7px;
}
.vf-pcard-btn-primary,
.vf-pcard-btn-outline {
  height: 36px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.vf-pcard-btn-primary {
  background: var(--vf-blue, #1464F4);
  color: #FFFFFF !important;
  border: 1.5px solid var(--vf-blue, #1464F4);
}
.vf-pcard-btn-primary:hover {
  background: var(--vf-blue-hover, #0E50CC);
  border-color: var(--vf-blue-hover, #0E50CC);
  box-shadow: 0 6px 14px -6px rgba(20, 100, 244, 0.55);
}
.vf-pcard-btn-outline {
  background: #FFFFFF;
  color: #1E293B !important;
  border: 1.5px solid #DCE3EC;
}
.vf-pcard-btn-outline:hover {
  border-color: var(--vf-blue, #1464F4);
  color: var(--vf-blue, #1464F4) !important;
}

@media (max-width: 640px) {
  .vf-cat-header {
    padding-bottom: 10px;
    margin-bottom: 10px;
    gap: 8px;
  }
  .vf-cat-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.78rem;
  }
  /* Hide duplicate brand-directory button on mobile (already in Brand Showcase Bar below) */
  .vf-cat-header-actions a[href="/thuong-hieu"] {
    display: none !important;
  }
  .vf-cat-header-actions {
    width: 100%;
  }
  .vf-cat-header-actions .vf-util-btn--primary {
    width: 100%;
    justify-content: center;
    height: 38px !important;
  }
  .vf-combo-guide-bar {
    padding: 4px 7px;
    border-radius: 8px;
    gap: 5px;
  }
  .vf-combo-guide-badge {
    font-size: 0.56rem;
    padding: 2px 6px;
  }
  .vf-combo-guide-text {
    font-size: 0.67rem;
    line-height: 1.25;
  }
  .vf-combo-reset-btn {
    min-block-size: 23px;
    padding: 0 7px;
    font-size: 0.62rem;
  }
  .vf-brand-dir-link {
    font-size: 0.63rem;
    padding: 2px 7px;
  }
  .vf-vcat-all-glyph {
    inline-size: 32px;
    block-size: 32px;
    border-radius: 9px;
    font-size: 0.9rem;
  }
  .vf-brand-pill {
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 40px;
    padding: 4px 24px 4px 7px;
    border-radius: 10px;
    gap: 6px;
  }
  .vf-brand-pill--all {
    min-width: 110px;
    justify-content: flex-start;
  }
  .vf-brand-pill-logo {
    width: 32px;
    height: 25px;
    padding: 2px 3px;
  }
  .vf-brand-pill-logo img {
    max-height: 18px;
  }
  .vf-cat-toolbar {
    border-radius: 14px;
    padding: 9px 10px;
    margin-bottom: 10px;
    gap: 7px;
  }
  .vf-cat-top-bar {
    padding-top: 7px;
    padding-bottom: 0;
    gap: 7px;
  }
  .vf-vcat-card {
    width: 84px;
    min-width: 84px;
    padding: 5px 3px 4px;
    border-radius: 11px;
    gap: 3px;
  }
  .vf-vcat-img {
    height: 36px;
  }
  .vf-vcat-img img {
    max-width: 44px;
    max-height: 34px;
  }
  .vf-price-zone,
  .vf-smart-facets,
  .vf-density-group {
    display: none;
  }
  .vf-cat-toolbar.is-mobile-expanded .vf-price-zone,
  .vf-cat-toolbar.is-mobile-expanded .vf-smart-facets {
    display: flex;
  }
  .vf-cat-controls-group {
    width: 100%;
    justify-content: flex-start;
  }
  .vf-cat-controls-right {
    margin-inline-start: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .vf-cat-controls-right .vf-util-btn {
    width: 100%;
    justify-content: center;
    padding-inline: 10px;
  }
  .vf-cat-controls-right #catalog-sort {
    grid-column: 1 / -1;
    width: 100%;
  }
  .vf-cat-search-wrap {
    max-width: none;
    flex: 1 1 100%;
  }
  #main-products-grid .vf-pcard {
    padding: 0 !important;
    border-radius: 13px !important;
    border: 1px solid #EAEEF4;
    box-shadow: 0 4px 14px -10px rgba(15, 23, 42, 0.12);
    overflow: hidden;
  }
  .vf-prod-page #products-catalog-section {
    padding-inline: 10px !important;
    padding-bottom: 56px;
  }
  .vf-results-meta {
    flex-wrap: nowrap;
    font-size: 0.78rem;
    margin-bottom: 12px;
    padding: 0 2px;
    gap: 8px;
  }
  .vf-cnt-long { display: none; }
  .vf-pcard-quick { display: none !important; }
  .vf-pcard-stage {
    aspect-ratio: 1 / 1;
    padding: 10px;
    margin-bottom: 0;
    border-radius: 0 !important;
    background: #F6F7FA;
    border-bottom: 1px solid #F1F4F8;
  }
  .vf-pcard-body {
    padding: 10px 10px 12px;
    align-items: center;
    text-align: center;
  }
  .vf-pcard-brand {
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
  }
  .vf-pcard-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0F172A;
    text-align: center;
    -webkit-line-clamp: 3;
    min-height: 0;
    margin-bottom: 8px;
  }
  .vf-pcard-price-row {
    padding-top: 7px;
    justify-content: center;
    gap: 4px;
  }
  .vf-pcard-price {
    font-family: var(--p4p-price-font, "Chakra Petch", "Montserrat", "Plus Jakarta Sans", sans-serif);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--p4p-price-color, #EE4D2D);
  }
  .vf-pcard-meta-tag { display: none; }
  .vf-pcard-actions {
    display: none !important;
  }
}

/* Medium-Compact Card Adaptation (PC 4-Col at 1024-1279px & Narrow Tablet 3-Col: 140px..225px) */
@container pcard (inline-size >= 140px) and (inline-size < 225px) {
  .vf-pcard-stage {
    padding: 8px;
    margin-bottom: 8px;
  }
  .vf-pcard-badge {
    top: 7px;
    left: 7px;
    padding: 2px 7px;
    font-size: 0.6rem;
  }
  .vf-pcard-qbtn {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
  .vf-pcard-brand {
    font-size: 0.62rem;
    margin-bottom: 3px;
  }
  .vf-pcard-title {
    font-size: 0.82rem;
    line-height: 1.38;
    min-height: 2.76em;
    margin-bottom: 7px;
  }
  .vf-pcard-price-row {
    padding-top: 7px;
    gap: 4px;
  }
  .vf-pcard-price {
    font-size: 1.04rem;
    white-space: nowrap;
  }
  .vf-pcard-old {
    font-size: 0.68rem;
  }
  .vf-pcard-actions {
    margin-top: 9px;
    gap: 5px;
    grid-template-columns: 1.15fr 0.85fr;
  }
  .vf-pcard-btn-primary,
  .vf-pcard-btn-outline {
    height: 32px;
    padding: 0 6px;
    font-size: 0.64rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    gap: 4px;
  }
}
@container pcard (inline-size < 208px) {
  .vf-zalo-prefix {
    display: none;
  }
}

/* Compact Micro-Card Layout (Mobile 3 or 4 cols: < 140px wide) */
@container pcard (inline-size < 140px) {
  .vf-pcard-stage {
    aspect-ratio: 1 / 1;
    padding: 4px;
    margin-bottom: 0;
    border-radius: 0 !important;
    background: #F6F7FA;
    border-bottom: 1px solid #F1F5F9;
  }
  .vf-pcard-stage img.product-img {
    max-width: 94%;
    max-height: 94%;
  }
  .vf-pcard-badge {
    top: 4px;
    left: 4px;
    padding: 1.5px 4.5px;
    font-size: 0.5rem;
    line-height: 1.2;
    border-radius: 4px;
    letter-spacing: 0.02em;
  }
  .vf-pcard-quick {
    display: none !important;
  }
  .vf-pcard-body {
    padding: 6px 4px 8px;
    align-items: center;
    text-align: center;
  }
  .vf-pcard-brand {
    font-size: 0.5rem;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
  }
  .vf-pcard-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0F172A;
    text-align: center;
    line-height: 1.32;
    -webkit-line-clamp: 3;
    max-height: calc(3 * 1.32em);
    min-height: 0;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
  }
  .vf-pcard-color-chip {
    margin: auto auto 5px;
    padding: 1px 0;
  }
  .vf-pcard-color-dots {
    gap: 3.5px;
  }
  .vf-pcard-color-dot {
    width: 9px;
    height: 9px;
  }
  .vf-pcard-price-row {
    padding-top: 4px;
    border-top: 1px solid #F1F5F9;
    gap: 1px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .vf-pcard-price {
    font-family: var(--p4p-price-font, "Chakra Petch", "Montserrat", "Plus Jakarta Sans", sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--p4p-price-color, #EE4D2D);
    letter-spacing: -0.03em;
    white-space: nowrap;
    line-height: 1.1;
  }
  .vf-pcard-cur {
    font-size: 0.8em;
    margin-left: 1px;
    opacity: 0.9;
  }
  .vf-pcard-old {
    font-size: 0.54rem;
    line-height: 1.1;
    white-space: nowrap;
  }
  .vf-pcard-meta-tag {
    display: none;
  }
  .vf-pcard-actions {
    display: none !important;
  }
}
@media (max-width: 767px) {
  #main-products-grid .product-card.vf-pcard {
    padding: 0 !important;
    border-radius: 13px !important;
  }
}

/* Native Top-Layer <dialog> Quick-View & Compare Modals (closedby="any" + Scroll Containment) */
dialog.vf-dialog {
  padding: 0;
  border: none;
  background: transparent;
  width: min(920px, calc(100% - 24px));
  max-width: min(920px, calc(100% - 24px));
  max-height: 90dvh;
  margin: auto;
  overflow: auto;
  border-radius: var(--p4p-card-radius, 14px);
  box-shadow: 0 32px 80px -20px rgba(15, 20, 28, 0.55);
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.24s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-behavior: allow-discrete;
}
dialog.vf-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@starting-style {
  dialog.vf-dialog[open] {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}
dialog.vf-dialog:modal {
  overscroll-behavior: contain;
}
dialog.vf-dialog::backdrop {
  background: rgba(10, 15, 26, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  transition-property: opacity, display, overlay;
  transition-duration: 0.22s;
  transition-behavior: allow-discrete;
}
dialog.vf-dialog[open]::backdrop {
  opacity: 1;
}
@starting-style {
  dialog.vf-dialog[open]::backdrop {
    opacity: 0;
  }
}
dialog.vf-dialog--wide {
  width: min(1040px, calc(100% - 24px));
  max-width: min(1040px, calc(100% - 24px));
}
.vf-qv-card {
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--p4p-card-radius, 14px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .vf-qv-card { grid-template-columns: 1fr; }
}
.vf-qv-media {
  background: #F4F6F9;
  padding: 22px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 300px;
  position: relative;
}
.vf-qv-stage-btn {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 340px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vf-qv-stage-btn img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.vf-qv-stage-btn:hover img {
  transform: scale(1.04);
}
.vf-qv-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.vf-qv-stage-btn:hover .vf-qv-zoom-hint {
  background: var(--vf-blue, #1464F4);
  transform: scale(1.03);
}
.vf-qv-thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 7px;
  width: 100%;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}
.vf-qv-thumbs::-webkit-scrollbar { display: none; }
.vf-qv-thumbs:empty { display: none; }
.vf-qv-thumb {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 9px;
  border: 1.5px solid #DCE3EC;
  background: #FFFFFF;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.vf-qv-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.vf-qv-thumb:hover,
.vf-qv-thumb.is-active {
  border-color: var(--vf-blue, #1464F4);
  box-shadow: 0 4px 12px -4px rgba(20, 100, 244, 0.35);
}
.vf-qv-body {
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Native <dialog> Mobile Filter & Category Bottom-Sheet (closedby="any") */
dialog.p4p-filter-sheet {
  padding: 0;
  border: none;
  background: #FFFFFF;
  width: min(560px, 100%);
  max-width: min(560px, 100%);
  max-height: 86dvh;
  margin: auto auto 0 auto;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -18px 50px rgba(10, 15, 26, 0.35);
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(28px);
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.26s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-behavior: allow-discrete;
}
dialog.p4p-filter-sheet[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}
@starting-style {
  dialog.p4p-filter-sheet[open] {
    opacity: 0;
    transform: translateY(28px);
  }
}
dialog.p4p-filter-sheet:modal {
  overscroll-behavior: contain;
}
dialog.p4p-filter-sheet::backdrop {
  background: rgba(10, 15, 26, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  transition-property: opacity, display, overlay;
  transition-duration: 0.22s;
  transition-behavior: allow-discrete;
}
dialog.p4p-filter-sheet[open]::backdrop {
  opacity: 1;
}
@starting-style {
  dialog.p4p-filter-sheet[open]::backdrop {
    opacity: 0;
  }
}
.p4p-sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #CBD5E1;
  margin: 10px auto 2px;
  flex-shrink: 0;
}
.p4p-sheet-head {
  padding: 10px 18px 12px;
  border-bottom: 1px solid #EEF2F7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
.p4p-sheet-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.p4p-sheet-title i {
  color: var(--vf-blue, #1464F4);
}
.p4p-sheet-body {
  padding: 14px 18px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.p4p-sheet-sec-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748B;
  margin: 0 0 9px;
}
.p4p-sheet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.p4p-sheet-pill {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  color: #1E293B;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.p4p-sheet-pill.is-active {
  background: var(--vf-blue, #1464F4);
  border-color: var(--vf-blue, #1464F4);
  color: #FFFFFF;
}
.p4p-sheet-foot {
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #EEF2F7;
  background: #F8FAFC;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  dialog.vf-dialog,
  dialog.vf-dialog::backdrop,
  dialog.p4p-filter-sheet,
  dialog.p4p-filter-sheet::backdrop {
    transition: none !important;
  }
}
.vf-cmp-card {
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--p4p-card-radius, 6px);
  padding: 24px;
  position: relative;
}
.vf-cmp-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  container-type: inline-size;
}
.vf-cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}
.vf-cmp-table th,
.vf-cmp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #EEF1F4;
  border-right: 1px solid #EEF1F4;
  vertical-align: top;
}
.vf-cmp-table th:last-child,
.vf-cmp-table td:last-child {
  border-right: none;
}
.vf-cmp-table tr:last-child th,
.vf-cmp-table tr:last-child td {
  border-bottom: none;
}
.vf-cmp-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  background: #F4F6F8;
  color: #1F2125;
  font-weight: 800;
  text-align: left;
  width: 150px;
  white-space: nowrap;
  z-index: 1;
}
.vf-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  color: #1F2125;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}
.vf-modal-close:hover {
  background: var(--vf-blue, #1464F4);
  color: #FFFFFF;
  border-color: var(--vf-blue, #1464F4);
}

/* Floating Bottom Compare Tray (100% hidden when inactive — zero bottom sliver peek!) */
#vfCompareTray {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(calc(100% + 96px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 960;
  background: #0F141C;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 20px 50px -12px rgba(15, 20, 28, 0.55);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100dvw - 32px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, visibility 0.28s;
}
@media (max-width: 900px) {
  #vfCompareTray {
    bottom: 62px;
    padding: 8px 12px;
    gap: 8px;
    max-width: calc(100dvw - 20px);
  }
}
#vfCompareTray.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.vf-cmp-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vf-cmp-thumb {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: #FFFFFF;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vf-cmp-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.vf-cmp-thumb button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================================
   2. PRODUCT DETAIL PAGE (/chi-tiet-san-pham) — FLAGSHIP SIDEBAR + STAGE SHELL
   ============================================================================ */

/* Restore & Polish Sticky Left Sidebar on PDP (PC >= 1024px) with explicit CSS Grid tracks */
body.vf-pdp-flagship main > .grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
body.vf-pdp-flagship main > .grid > * {
  min-inline-size: 0;
}
@media (min-width: 1024px) {
  body.vf-pdp-flagship main {
    max-inline-size: 1440px !important;
  }
  body.vf-pdp-flagship main > .grid {
    grid-template-columns: 236px minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  body.vf-pdp-flagship aside.lg\:col-span-3 {
    --p4p-sb-thumb: #758499;
    --p4p-sb-track: transparent;
    display: block !important;
    grid-column: auto !important;
    position: sticky;
    top: calc(var(--p4p-header-h, 72px) + 14px);
    max-block-size: calc(100dvh - var(--p4p-header-h, 72px) - 86px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--p4p-sb-thumb) var(--p4p-sb-track);
    scrollbar-gutter: stable;
    padding-bottom: 16px;
    padding-right: 4px;
  }
  @supports not (scrollbar-color: auto) {
    body.vf-pdp-flagship aside.lg\:col-span-3 {
      scrollbar-width: auto;
    }
    body.vf-pdp-flagship aside.lg\:col-span-3::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    body.vf-pdp-flagship aside.lg\:col-span-3::-webkit-scrollbar-thumb {
      background: var(--p4p-sb-thumb);
      border-radius: 999px;
    }
    body.vf-pdp-flagship aside.lg\:col-span-3::-webkit-scrollbar-track {
      background: var(--p4p-sb-track);
    }
  }
  body.vf-pdp-flagship aside.lg\:col-span-3 > div {
    border-radius: var(--p4p-card-radius, 14px) !important;
    box-shadow: 0 12px 30px -24px rgba(15, 23, 42, 0.16);
  }
  body.vf-pdp-flagship aside.lg\:col-span-3 .cat-logo {
    filter: none !important;
    opacity: 1 !important;
    object-fit: contain;
  }
  body.vf-pdp-flagship .lg\:col-span-9 {
    grid-column: auto !important;
    min-inline-size: 0 !important;
  }
}
@media (min-width: 1280px) {
  body.vf-pdp-flagship main > .grid {
    grid-template-columns: 256px minmax(0, 1fr) !important;
    gap: 28px !important;
  }
}

/* Collapsible Left Sidebar State on PDP (/chi-tiet-san-pham) — Expands Main Product Stage */
@media (min-width: 1024px) {
  html[data-pdp-sidebar="collapsed"] body.vf-pdp-flagship main > .grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html[data-pdp-sidebar="collapsed"] body.vf-pdp-flagship aside#pdp-left-sidebar,
  html[data-pdp-sidebar="collapsed"] body.vf-pdp-flagship aside.lg\:col-span-3 {
    display: none !important;
  }
  html[data-pdp-sidebar="collapsed"] body.vf-pdp-flagship #btnPdpSidebarExpand {
    display: inline-flex !important;
  }
}
@media (min-width: 1280px) {
  html[data-pdp-sidebar="collapsed"] body.vf-pdp-flagship #product-main-card:not(.print-preview-active) > .product-container {
    grid-column: span 5 / span 5;
  }
  html[data-pdp-sidebar="collapsed"] body.vf-pdp-flagship #product-main-card:not(.print-preview-active) > #pdp-info-column {
    grid-column: span 7 / span 7;
  }
}
@media (min-width: 1360px) {
  html[data-pdp-sidebar="collapsed"] body.vf-pdp-flagship #product-main-card:not(.print-preview-active) .p4p-color-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Shared Collapsible Left Sidebar Controls (PDP & Catalog) */
.vf-pdp-topbar-start {
  display: flex;
  align-items: safe center;
  gap: 8px;
  flex-shrink: 0;
}
.vf-sidebar-collapse-btn {
  display: inline-flex;
  align-items: safe center;
  justify-content: center;
  gap: 5px;
  min-block-size: 26px;
  min-inline-size: 26px;
  padding-block: 3px;
  padding-inline: 8.5px;
  margin-inline-start: auto;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF !important;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}
.vf-sidebar-collapse-btn i {
  color: currentColor !important;
  font-size: 0.66rem;
  transition: transform 0.16s ease;
}
.vf-sidebar-collapse-btn:hover {
  background: var(--vf-blue, #1464F4);
  border-color: var(--vf-blue, #1464F4);
  color: #FFFFFF !important;
}
.vf-sidebar-collapse-btn:hover i {
  transform: translateX(-1.5px);
}
.vf-sidebar-collapse-btn:active {
  transform: scale(0.96);
}
.vf-sidebar-collapse-btn:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

.vf-cat-sidebar-collapse-btn {
  display: inline-flex;
  align-items: safe center;
  justify-content: center;
  gap: 5px;
  min-block-size: 26px;
  min-inline-size: 26px;
  padding-block: 3px;
  padding-inline: 9px;
  margin-inline-start: auto;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid #DCE3EC;
  background: #F8FAFC;
  color: #334155 !important;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}
.vf-cat-sidebar-collapse-btn i {
  color: var(--vf-blue, #1464F4);
  font-size: 0.66rem;
  transition: transform 0.16s ease, color 0.16s ease;
}
.vf-cat-sidebar-collapse-btn:hover {
  background: var(--vf-blue, #1464F4);
  border-color: var(--vf-blue, #1464F4);
  color: #FFFFFF !important;
}
.vf-cat-sidebar-collapse-btn:hover i {
  color: #FFFFFF !important;
  transform: translateX(-1.5px);
}
.vf-cat-sidebar-collapse-btn:active {
  transform: scale(0.96);
}
.vf-cat-sidebar-collapse-btn:focus-visible {
  outline: 2px solid var(--vf-blue, #1464F4);
  outline-offset: 2px;
}

.vf-sidebar-expand-btn {
  display: none;
  align-items: safe center;
  gap: 7px;
  min-block-size: 32px;
  padding-block: 7px;
  padding-inline: 12px;
  border-radius: 4px;
  background: #0F141C;
  border: 1px solid #0F141C;
  border-inline-start: 3px solid var(--vf-blue, #1464F4);
  color: #FFFFFF !important;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 6px 16px -10px rgba(15, 20, 28, 0.45);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease;
}
.vf-sidebar-expand-btn i:first-child {
  color: color-mix(in srgb, var(--vf-blue, #1464F4) 68%, #FFFFFF);
  font-size: 0.74rem;
  transition: color 0.16s ease;
}
.vf-sidebar-expand-btn .vf-expand-chevron {
  font-size: 0.65rem;
  opacity: 0.75;
  transition: transform 0.16s ease, opacity 0.16s ease;
}
.vf-sidebar-expand-btn:hover {
  background: var(--vf-blue, #1464F4);
  border-color: var(--vf-blue, #1464F4);
  color: #FFFFFF !important;
}
.vf-sidebar-expand-btn:hover i:first-child {
  color: #FFFFFF;
}
.vf-sidebar-expand-btn:hover .vf-expand-chevron {
  opacity: 1;
  transform: translateX(2px);
}
.vf-sidebar-expand-btn:active {
  transform: scale(0.97);
}
.vf-sidebar-expand-btn:focus-visible {
  outline: 2px solid var(--vf-blue, #1464F4);
  outline-offset: 2px;
}
@media (pointer: coarse) {
  .vf-sidebar-collapse-btn,
  .vf-cat-sidebar-collapse-btn {
    min-block-size: 32px;
    padding-inline: 10px;
  }
  .vf-sidebar-expand-btn {
    min-block-size: 36px;
  }
}

/* Clean Top Breadcrumb + Non-wrapping Mobile Back Button */
.vf-pdp-topbar {
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid #E5E7EB;
}
.vf-pdp-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 4px;
  background: #FFFFFF;
  border: 1px solid #DCE1E8;
  color: #1F2125 !important;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
  transition: all 0.16s ease;
}
.vf-pdp-back:hover {
  border-color: var(--vf-blue, #1464F4);
  color: var(--vf-blue, #1464F4) !important;
}

/* Studio Gallery Stage on PDP */
body.vf-pdp-flagship #product-main-card:not(.print-preview-active) {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--p4p-card-radius, 6px);
  padding: clamp(16px, 2.6vw, 34px);
  box-shadow: 0 12px 32px -24px rgba(15, 20, 28, 0.14);
  align-items: start;
}
@media (min-width: 768px) {
  body.vf-pdp-flagship #product-main-card:not(.print-preview-active) > .product-container {
    position: sticky;
    top: calc(var(--p4p-header-h, 72px) + 18px);
    align-self: start;
    z-index: 45;
  }
  body.vf-pdp-flagship #product-main-card:not(.print-preview-active) > .product-container.is-zooming {
    z-index: 90 !important;
  }
  body.vf-pdp-flagship #product-main-card:not(.print-preview-active) > :not(.product-container) {
    position: relative;
    z-index: 1;
  }
}
body.vf-pdp-flagship #product-main-card:not(.print-preview-active) .main-image-wrapper {
  background: #FFFFFF !important;
  border: 1px solid #E8ECF1 !important;
  border-radius: 6px !important;
  padding: 20px !important;
}
body.vf-pdp-flagship #product-main-card:not(.print-preview-active) .product-main-img {
  mix-blend-mode: multiply;
  background: transparent !important;
}
body.vf-pdp-flagship .thumbnail-slider .swiper-slide {
  background: #F4F6F8 !important;
  border-radius: 4px !important;
  border: 1.5px solid #E5E7EB !important;
  padding: 4px !important;
  transition: border-color 0.16s ease !important;
}
body.vf-pdp-flagship .thumbnail-slider .swiper-slide-thumb-active,
body.vf-pdp-flagship .thumbnail-slider .swiper-slide:hover {
  border-color: var(--vf-blue, #1464F4) !important;
}
body.vf-pdp-flagship .thumbnail-slider img {
  mix-blend-mode: multiply;
}

/* Clean PDP Title & Price Card */
body.vf-pdp-flagship h1.product-title {
  font-family: var(--p4p-font, "Be Vietnam Pro", "Inter", system-ui, sans-serif) !important;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.95rem) !important;
  font-weight: 800 !important;
  line-height: 1.24 !important;
  letter-spacing: -0.02em !important;
  color: #1F2125 !important;
}

/* Clean VinFast Description & Specs Card + Auto-Styled Tables */
body.vf-pdp-flagship .vf-pdp-tabs-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--p4p-card-radius, 6px);
  overflow: hidden;
  box-shadow: 0 10px 28px -22px rgba(15, 20, 28, 0.12);
}
body.vf-pdp-flagship .tab-btn.border-orange-500,
body.vf-pdp-flagship .tab-btn[aria-selected="true"] {
  border-bottom-color: var(--vf-blue, #1464F4) !important;
  color: var(--vf-blue, #1464F4) !important;
}
body.vf-pdp-flagship .bbi-desc {
  font-family: var(--p4p-font, "Be Vietnam Pro", "Inter", system-ui, sans-serif) !important;
  color: #3C3C3C !important;
  font-size: 0.94rem !important;
  line-height: 1.75 !important;
}
body.vf-pdp-flagship .bbi-desc .vf-table-scroll {
  width: 100%;
  max-inline-size: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border-radius: 4px;
  border: 1px solid #E5E7EB;
  container-type: inline-size;
}
body.vf-pdp-flagship .bbi-desc .vf-table-scroll:focus-visible {
  outline: 2px solid var(--vf-blue, #1464F4);
  outline-offset: 2px;
}
body.vf-pdp-flagship .bbi-desc table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: #FFFFFF !important;
}
body.vf-pdp-flagship .bbi-desc th,
body.vf-pdp-flagship .bbi-desc td {
  padding: 12px 16px !important;
  border: none !important;
  border-bottom: 1px solid #EEF1F4 !important;
  border-right: 1px solid #EEF1F4 !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
  vertical-align: top !important;
}
body.vf-pdp-flagship .bbi-desc tr:last-child td,
body.vf-pdp-flagship .bbi-desc tr:last-child th {
  border-bottom: none !important;
}
body.vf-pdp-flagship .bbi-desc td:last-child,
body.vf-pdp-flagship .bbi-desc th:last-child {
  border-right: none !important;
}
body.vf-pdp-flagship .bbi-desc tr:nth-child(even) {
  background: #F9FAFB !important;
}
body.vf-pdp-flagship .bbi-desc td.vf-spec-key,
body.vf-pdp-flagship .bbi-desc th.vf-spec-key {
  background: #F4F6F8 !important;
  font-weight: 800 !important;
  color: #1F2125 !important;
  width: 24%;
  white-space: nowrap;
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
}
@container (width < 520px) {
  body.vf-pdp-flagship .bbi-desc table,
  body.vf-pdp-flagship .bbi-desc tbody,
  body.vf-pdp-flagship .bbi-desc tr,
  body.vf-pdp-flagship .bbi-desc td,
  body.vf-pdp-flagship .bbi-desc th {
    display: block !important;
    width: 100% !important;
  }
  body.vf-pdp-flagship .bbi-desc tr {
    border-bottom: 1px solid #E5E7EB !important;
    padding: 8px 0 !important;
  }
  body.vf-pdp-flagship .bbi-desc td,
  body.vf-pdp-flagship .bbi-desc th {
    border-right: none !important;
    border-bottom: none !important;
    padding: 6px 12px !important;
    white-space: normal !important;
    position: static !important;
  }
  body.vf-pdp-flagship .bbi-desc td.vf-spec-key,
  body.vf-pdp-flagship .bbi-desc th.vf-spec-key {
    background: #F4F6F8 !important;
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--vf-blue, #1464F4) !important;
  }
}

/* Sticky Quick-Consult Bar on PDP Scroll */
#p4pPdpStickyBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 940;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid #E5E7EB;
  box-shadow: 0 -10px 30px -12px rgba(15, 20, 28, 0.16);
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
#p4pPdpStickyBar.is-visible {
  transform: translateY(0);
}
.vf-pdp-sticky-inner {
  width: min(1320px, calc(100% - 32px));
  margin-inline: auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.vf-pdp-sticky-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.vf-pdp-sticky-left img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #F4F6F8;
  border-radius: 4px;
  padding: 3px;
  flex-shrink: 0;
}
.vf-pdp-sticky-name {
  font-family: var(--p4p-font, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vf-pdp-sticky-price {
  font-family: var(--p4p-price-font, "Chakra Petch", "Montserrat", "Plus Jakarta Sans", sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--p4p-price-color, #EE4D2D);
  font-variant-numeric: tabular-nums;
}
.vf-pdp-sticky-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .vf-pdp-sticky-inner { height: 58px; gap: 10px; }
  .vf-pdp-sticky-left img,
  .vf-pdp-sticky-hotline { display: none !important; }
  body.vf-pdp-flagship #p4pHolidayDock { bottom: 72px; }
}

/* Universal Compact Filter Toggle Button (Desktop + Mobile) + Collapsible Price/Standard Drawer */
#btn-mobile-filter-toggle {
  display: inline-flex;
}
@media (min-width: 768px) {
  #btn-mobile-category-sheet {
    display: none !important;
  }
}
@media (max-width: 640px) {
  .vf-cat-toolbar:not(.is-mobile-expanded) .vf-custom-price-panel {
    display: none !important;
  }
}
.vf-custom-price-panel.is-collapsed {
  display: none !important;
}

/* Smoothly lift bottom floating docks above #p4pPdpStickyBar (Zero Overlap!) */
#p4pHolidayDock,
#vfFloatingDock {
  transition: bottom 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
body.pdp-sticky-active #p4pHolidayDock {
  bottom: 80px !important;
}
body.pdp-sticky-active #vfFloatingDock {
  bottom: 80px !important;
}

/* PDP Cohesive Price & Promo Surfaces */
.vf-pdp-price-card {
  background: #F7F9F9;
  border: 1px solid #E5E7EB;
  border-left: 3px solid var(--p4p-price-color, #EE4D2D);
  border-radius: var(--p4p-card-radius, 14px);
  padding: 18px 20px;
}
.vf-pdp-price-kicker {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vf-pdp-promo-card {
  background: #F7F9F9;
  border: 1px solid #E5E7EB;
  border-left: 3px solid var(--vf-blue, #1464F4);
  border-radius: var(--p4p-card-radius, 6px);
  padding: 16px 18px;
}
body.vf-pdp-flagship .vf-detail-policy {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 640px) {
  body.vf-pdp-flagship .vf-detail-policy {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
body.vf-pdp-flagship .vf-detail-policy-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  background: #F7F9F9;
  border: 1px solid #EEF1F4;
  border-radius: 4px;
}
body.vf-pdp-flagship .vf-detail-policy-item i {
  color: var(--vf-blue, #1464F4) !important;
}
/* Active sidebar category highlight synchronized with var(--vf-blue) */
.vf-sidebar-item-active {
  background: var(--vf-blue-tint, rgba(20, 100, 244, 0.07)) !important;
  color: var(--vf-blue, #1464F4) !important;
  border-left: 3px solid var(--vf-blue, #1464F4) !important;
  font-weight: 800 !important;
}
.vf-sidebar-icon-active {
  background: var(--vf-blue, #1464F4) !important;
  color: #FFFFFF !important;
}
.vf-page-btn-active {
  background: var(--vf-blue, #1464F4) !important;
  border-color: var(--vf-blue, #1464F4) !important;
  color: #FFFFFF !important;
}

/* ============================================================================
   3. LUXURY FLAGSHIP BRAND DIRECTORY (/thuong-hieu — brands.php)
   100% synced with var(--vf-blue) + 7 Vietnam Holiday Modes, 0px mobile overflow
   ============================================================================ */
.vf-brands-container {
  width: min(1360px, 100%);
  margin-inline: auto;
  padding-inline: clamp(14px, 2.5vw, 28px);
}

/* Obsidian Flagship Hero */
.vf-brands-hero {
  position: relative;
  background: linear-gradient(155deg, #050912 0%, #0C1526 55%, #09111E 100%);
  color: #FFFFFF;
  padding: clamp(28px, 4.5vw, 58px) 0 clamp(32px, 5vw, 60px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: clip;
}
.vf-brands-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--vf-blue, #1464F4) 30%, transparent), transparent 48%),
    radial-gradient(circle at 12% 92%, color-mix(in srgb, var(--vf-blue, #1464F4) 18%, transparent), transparent 44%);
  pointer-events: none;
}
.vf-brands-crumb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94A3B8;
  margin-bottom: 22px;
}
.vf-brands-crumb a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.16s ease;
}
.vf-brands-crumb a:hover {
  color: #FFFFFF;
}
.vf-brands-crumb .is-current {
  color: #FFFFFF;
}
.vf-brands-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
@media (max-width: 1024px) {
  .vf-brands-hero-grid {
    grid-template-columns: 1fr;
  }
}
.vf-brands-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FCA5A5;
  color: color-mix(in oklab, var(--vf-blue, #C8102E) 36%, #FFFFFF);
  margin-bottom: 12px;
}
.vf-brands-eyebrow-bar {
  width: 24px;
  height: 2px;
  background: var(--vf-blue, #1464F4);
}
.vf-brands-h1 {
  margin: 0;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.9rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}
.vf-brands-h1 span {
  display: block;
  color: #FCA5A5;
  color: color-mix(in oklab, var(--vf-blue, #C8102E) 36%, #FFFFFF);
  font-style: italic;
}
.vf-brands-lead {
  margin: 14px 0 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: #CBD5E1;
  max-width: 600px;
}
.vf-brands-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.vf-brands-ghost-btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.vf-brands-ghost-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

.vf-brands-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.vf-brands-kpi {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vf-brands-kpi-num {
  font-family: var(--p4p-price-font, "Chakra Petch", "Plus Jakarta Sans", sans-serif);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.15rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.vf-brands-kpi-lbl {
  font-size: 0.76rem;
  font-weight: 600;
  color: #94A3B8;
}

/* Main Directory Body */
.vf-brands-main {
  padding: clamp(24px, 3.5vw, 44px) 0 64px;
}
.vf-brands-filterbar {
  background: #FFFFFF;
  border: 1px solid #E5ECF4;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px -24px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vf-brands-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.vf-brands-tab {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.vf-brands-tab:hover {
  border-color: var(--vf-blue, #1464F4);
  color: var(--vf-blue, #1464F4);
  background: #FFFFFF;
}
.vf-brands-tab.is-active {
  background: var(--vf-blue, #1464F4);
  border-color: var(--vf-blue, #1464F4);
  color: #FFFFFF;
  box-shadow: 0 6px 16px -6px rgba(20, 100, 244, 0.5);
}
.vf-brands-tab-cnt {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  font-size: 0.66rem;
}
.vf-brands-search-wrap {
  position: relative;
  flex: 1 1 240px;
  max-width: 340px;
  min-width: 0;
}
.vf-brands-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 0.8rem;
  pointer-events: none;
}
.vf-brands-search-wrap input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 38px;
  border-radius: 999px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  color: #0F172A;
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.vf-brands-search-wrap input:focus {
  border-color: var(--vf-blue, #1464F4);
  background: #FFFFFF;
}

/* 3-col Desktop / 2-col Tablet / 1-col Mobile Luxury Brand Grid */
.vf-brands-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 1100px) {
  .vf-brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}
@media (max-width: 680px) {
  .vf-brands-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.vf-brand-card {
  background: #FFFFFF;
  border: 1px solid #E5ECF4;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 36px -28px rgba(15, 23, 42, 0.22);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.28s ease;
}
.vf-brand-card:hover {
  transform: translateY(-5px);
  border-color: var(--vf-blue, #1464F4);
  box-shadow: 0 26px 48px -28px rgba(20, 100, 244, 0.32);
}

.vf-brand-stage {
  position: relative;
  background: linear-gradient(180deg, #F6F8FB 0%, #EEF2F7 100%);
  padding: 16px 18px 22px;
  border-bottom: 1px solid #E8EEF5;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vf-brand-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.vf-brand-origin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #475569;
  text-transform: uppercase;
}
.vf-brand-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #DCE4EE;
  color: var(--vf-blue, #1464F4);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vf-brand-tier-pill.is-flagship {
  background: var(--vf-blue, #1464F4);
  border-color: var(--vf-blue, #1464F4);
  color: #FFFFFF;
}
.vf-brand-logo-box {
  height: 92px;
  background: #FFFFFF;
  border: 1px solid #E8EEF5;
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 16px -12px rgba(15, 23, 42, 0.14);
  transition: transform 0.25s ease;
}
.vf-brand-card:hover .vf-brand-logo-box {
  transform: scale(1.02);
}
.vf-brand-logo-box img {
  max-width: 82%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}
.vf-brand-logo-fallback {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #0F172A;
  text-transform: uppercase;
}
.vf-brand-count-float {
  align-self: flex-end;
  padding: 4px 11px;
  border-radius: 999px;
  background: #0F172A;
  color: #E2E8F0;
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vf-brand-count-float strong {
  color: #FFFFFF;
  font-weight: 900;
}

.vf-brand-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 10px;
}
.vf-brand-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.vf-brand-name {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0F172A;
}
.vf-brand-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease;
}
.vf-brand-card:hover .vf-brand-name a {
  color: var(--vf-blue, #1464F4);
}
.vf-brand-price-from {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748B;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.vf-brand-price-from strong {
  font-family: var(--p4p-price-font, "Chakra Petch", "Plus Jakarta Sans", sans-serif);
  color: var(--p4p-price-color, #EE4D2D);
  font-size: 0.9rem;
}
.vf-brand-tagline {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.4;
}
.vf-brand-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #64748B;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vf-brand-std-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.vf-brand-std-chip {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--vf-blue-tint, rgba(20, 100, 244, 0.07));
  color: var(--vf-blue, #1464F4);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* Flagship Sample Product Strip inside each Brand Card */
.vf-brand-samples {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}
.vf-brand-samples-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
  margin-bottom: 9px;
}
.vf-brand-samples-hint {
  color: var(--vf-blue, #1464F4);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.vf-brand-samples-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.vf-brand-sample-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.vf-brand-sample-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid #E8EEF5;
  background: #F6F8FB;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.2s ease;
}
.vf-brand-sample-thumb img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.25s ease;
}
.vf-brand-sample-thumb:hover {
  border-color: var(--vf-blue, #1464F4);
}
.vf-brand-sample-thumb:hover img {
  transform: scale(1.08);
}
.vf-brand-sample-zoom {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  color: #FFFFFF;
  font-size: 0.56rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.vf-brand-sample-thumb:hover .vf-brand-sample-zoom {
  opacity: 1;
}
.vf-brand-sample-name {
  font-size: 0.67rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.vf-brand-sample-name:hover {
  color: var(--vf-blue, #1464F4);
}

.vf-brand-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vf-brand-warranty {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
}
.vf-brand-warranty i {
  color: #10B981;
}
.vf-brand-cta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vf-brand-cta-primary {
  flex: 1 1 auto;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--vf-blue, #1464F4);
  color: #FFFFFF !important;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none !important;
  box-shadow: 0 8px 18px -8px rgba(20, 100, 244, 0.55);
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.vf-brand-cta-primary:hover {
  background: var(--vf-blue-hover, #0E50CC);
  transform: translateY(-1px);
}
.vf-brand-cta-zalo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1.5px solid #DCE3EC;
  background: #FFFFFF;
  color: var(--vf-blue, #1464F4) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.vf-brand-cta-zalo:hover {
  background: var(--vf-blue, #1464F4);
  border-color: var(--vf-blue, #1464F4);
  color: #FFFFFF !important;
}

.vf-brands-empty {
  margin: 24px 0;
  background: #FFFFFF;
  border: 1px solid #E5ECF4;
  border-radius: 20px;
  padding: 46px 20px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.vf-brands-empty i {
  font-size: 2rem;
  color: #94A3B8;
}
.vf-brands-empty h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
}
.vf-brands-empty p {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: #64748B;
}

/* Showroom Authenticity Pledge Strip */
.vf-brands-pledge {
  margin-top: 38px;
  background: #FFFFFF;
  border: 1px solid #E5ECF4;
  border-radius: 22px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 16px 40px -28px rgba(15, 23, 42, 0.18);
}
.vf-brands-pledge-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #EEF2F7;
}
.vf-brands-pledge-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--vf-blue, #1464F4);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.vf-brands-pledge-head h2 {
  margin: 0;
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem);
  font-weight: 900;
  color: #0F172A;
}
.vf-brands-pledge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1024px) {
  .vf-brands-pledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .vf-brands-pledge-grid {
    grid-template-columns: 1fr;
  }
}
.vf-brands-pledge-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid #EEF2F7;
}
.vf-brands-pledge-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--vf-blue-tint, rgba(20, 100, 244, 0.09));
  color: var(--vf-blue, #1464F4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.vf-brands-pledge-item h3 {
  margin: 0 0 4px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #0F172A;
}
.vf-brands-pledge-item p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #64748B;
}

/* ============================================================================
   ZERO-MATCH FACET FEEDBACK, INLINE EMPTY ALERT & ACCESSIBLE TOP-LAYER TOAST
   Live-synced counts & instant notifications for Brand × Category × Standard × Price
   ============================================================================ */
.vf-price-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vf-price-chip-cnt {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  color: inherit;
  font-size: 0.64rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.vf-price-chip.is-active .vf-price-chip-cnt {
  background: rgba(255, 255, 255, 0.22);
}

.vf-smart-chip.is-zero-match,
.vf-price-chip.is-zero-match,
.p4p-sheet-pill.is-zero-match {
  opacity: 0.52;
  border-style: dashed;
  border-color: #CBD5E1;
  background: #F8FAFC;
  color: #64748B;
}
.vf-smart-chip.is-zero-match i {
  color: #94A3B8;
}
.vf-smart-chip.is-zero-match:hover,
.vf-price-chip.is-zero-match:hover,
.p4p-sheet-pill.is-zero-match:hover {
  opacity: 0.86;
  border-color: #94A3B8;
  color: #334155;
  background: #FFFFFF;
}

.vf-brand-pill.is-zero-active,
.vf-vcat-card.is-zero-active {
  border-color: #EA580C !important;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%) !important;
  box-shadow: 0 6px 16px -10px rgba(234, 88, 12, 0.35), 0 0 0 1px #EA580C inset !important;
}
.vf-brand-pill.is-zero-active .vf-brand-pill-name {
  color: #9A3412 !important;
}
.vf-brand-pill.is-zero-active .vf-brand-pill-cnt,
.vf-vcat-card.is-zero-active .vf-vcat-count {
  background: #EA580C !important;
  color: #FFFFFF !important;
}
.vf-vcat-card.is-zero-active .vf-vcat-bar {
  background: #C2410C !important;
  color: #FFFFFF !important;
}

.vf-smart-chip.is-zero-active,
.vf-price-chip.is-zero-active,
.p4p-sheet-pill.is-zero-active {
  opacity: 1;
  border-style: solid;
  border-color: #EA580C !important;
  background: #FFF7ED !important;
  color: #9A3412 !important;
  box-shadow: 0 4px 12px -6px rgba(234, 88, 12, 0.35);
}
.vf-smart-chip.is-zero-active i {
  color: #EA580C !important;
}
.vf-smart-chip.is-zero-active .vf-smart-chip-cnt,
.vf-price-chip.is-zero-active .vf-price-chip-cnt {
  background: #EA580C !important;
  color: #FFFFFF !important;
}

.vf-price-slider-row.is-zero-match {
  opacity: 0.45;
}

.sidebar-item-link.is-zero-match {
  opacity: 0.5;
}
.sidebar-item-link.is-zero-match:hover {
  opacity: 0.82;
}

.vf-smart-chip:focus-visible,
.vf-price-chip:focus-visible,
.p4p-sheet-pill:focus-visible {
  outline: 2px solid #0F172A;
  outline-offset: 2px;
}

/* Row-level live availability hint inside Standard & Price filter rows */
.vf-row-zero-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.35;
}
.vf-row-zero-note i {
  color: #64748B;
  font-size: 0.68rem;
}
.vf-row-zero-note.is-all-zero {
  background: #FFF7ED;
  border-color: #FDBA74;
  color: #9A3412;
}
.vf-row-zero-note.is-all-zero i {
  color: #EA580C;
}
.vf-row-zero-note[hidden] {
  display: none !important;
}

/* Combo Guide Bar Empty State */
.vf-combo-guide-bar[data-combo-state="empty"] {
  background: linear-gradient(90deg, #FFF7ED 0%, #FEF2F2 100%);
  border-color: #FDBA74;
}
.vf-combo-guide-bar[data-combo-state="empty"] .vf-combo-guide-badge {
  background: #DC2626;
  color: #FFFFFF;
}
.vf-combo-guide-bar[data-combo-state="empty"] .vf-combo-guide-text {
  color: #9A3412;
}
.vf-combo-guide-bar[data-combo-state="empty"] .vf-combo-guide-text strong,
.vf-combo-guide-bar[data-combo-state="empty"] .vf-combo-guide-text b {
  color: #7C2D12;
}

/* Immediate Inline Alert Banner inside Filter Hub & Mobile Sheet */
.vf-filter-zero-alert,
.vf-sheet-zero-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, #FFF7ED 0%, #FFFBEB 100%);
  border: 1.5px solid #FDBA74;
  color: #7C2D12;
}
.vf-sheet-zero-alert {
  margin: 0 18px 10px;
  padding: 9px 12px;
}
.vf-filter-zero-alert[hidden],
.vf-sheet-zero-alert[hidden] {
  display: none !important;
}
.vf-zero-alert-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-inline-size: 0;
  flex: 1 1 260px;
}
.vf-zero-alert-icon {
  inline-size: 28px;
  block-size: 28px;
  border-radius: 8px;
  background: #EA580C;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-block-start: 1px;
}
.vf-zero-alert-copy {
  min-inline-size: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: #7C2D12;
}
.vf-zero-alert-copy strong {
  font-weight: 800;
  color: #431407;
}
.vf-zero-alert-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.vf-zero-alert-btn {
  min-block-size: 30px;
  min-inline-size: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #FDBA74;
  background: #FFFFFF;
  color: #9A3412;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.vf-zero-alert-btn:hover {
  background: #FFEDD5;
  border-color: #EA580C;
}
.vf-zero-alert-btn--primary {
  background: #EA580C;
  border-color: #EA580C;
  color: #FFFFFF;
}
.vf-zero-alert-btn--primary:hover {
  background: #C2410C;
  border-color: #C2410C;
  color: #FFFFFF;
}
.vf-zero-alert-btn:focus-visible {
  outline: 2px solid #7C2D12;
  outline-offset: 2px;
}
@media (pointer: coarse) {
  .vf-zero-alert-btn {
    min-block-size: 36px;
    padding: 6px 13px;
  }
}

/* Accessible Top-Layer Toast Notifications (popover="manual" + polyfill support) */
.vf-toast-region {
  position: fixed;
  inset: auto 0 24px 0;
  z-index: 99999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  padding-inline: 12px;
}
@supports not selector(:popover-open) {
  [popover].vf-filter-toast:not(.\:popover-open):not(.is-open) {
    display: none;
  }
}
[popover].vf-filter-toast {
  position: fixed;
  inset: auto 0 24px 0;
  margin-inline: auto;
  margin-block: 0;
  inline-size: fit-content;
  max-inline-size: min(92vw, 34rem);
  padding: 11px 14px 11px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 38px -12px rgba(15, 23, 42, 0.38);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, display 0.22s ease, overlay 0.22s ease;
  transition-behavior: allow-discrete;
}
[popover].vf-filter-toast:is(:popover-open, .\:popover-open),
.vf-filter-toast.is-open {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 1;
  transform: translateY(0);
}
@starting-style {
  [popover].vf-filter-toast:is(:popover-open, .\:popover-open) {
    opacity: 0;
    transform: translateY(10px);
  }
}
.vf-filter-toast + .vf-filter-toast {
  margin-block-start: 0.75rem;
}
.vf-filter-toast--success {
  background: linear-gradient(135deg, #047857 0%, #0F766E 100%);
}
.vf-filter-toast--warning {
  background: linear-gradient(135deg, #B45309 0%, #B91C1C 100%);
}
.vf-filter-toast-ico {
  font-size: 1rem;
  flex-shrink: 0;
}
.vf-filter-toast-msg {
  flex: 1 1 auto;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.vf-filter-toast-close {
  min-inline-size: 26px;
  min-block-size: 26px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.16s ease;
}
.vf-filter-toast-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.vf-filter-toast-close:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}
@media (pointer: coarse) {
  .vf-filter-toast-close {
    min-inline-size: 32px;
    min-block-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  [popover].vf-filter-toast,
  .vf-filter-toast,
  .vf-zero-alert-btn {
    transition: none !important;
  }
}

/* ============================================================================
   CLEAN COUNT-FREE CATALOG & BRAND PILL REFINEMENT (Product / Brand / Category)
   ============================================================================ */
.vf-brand-pill-meta,
.vf-brand-pill-cnt,
.vf-vcat-count,
.vf-smart-chip-cnt,
.vf-brands-tab-cnt,
.vf-brand-count-float {
  display: none !important;
}

.vf-brand-pill {
  flex: 1 0 112px;
  min-inline-size: 108px;
  min-block-size: 38px;
  padding-block: 4px;
  padding-inline: 8px 26px;
}

.vf-brand-pill--all {
  flex: 0 0 auto;
  min-inline-size: 102px;
}

.vf-brand-pill:focus-visible {
  outline: 2px solid var(--vf-blue, #1464F4);
  outline-offset: -2px;
}

.vf-brand-pill-info {
  flex: 1 1 auto;
  min-inline-size: 0;
  justify-content: center;
  gap: 0;
}

.vf-brand-pill-tick {
  inset-block-start: 50%;
  inset-inline-end: 6px;
  top: auto;
  right: auto;
  translate: 0 -50%;
}

@media (pointer: coarse) {
  .vf-brand-pill {
    min-block-size: 40px;
  }
}

@media (max-width: 767px) {
  .vf-brand-pill {
    flex: 0 0 auto;
    min-inline-size: 98px;
    min-block-size: 38px;
    padding-block: 4px;
    padding-inline: 7px 24px;
  }
  .vf-brand-pill--all {
    min-inline-size: 94px;
  }
}

/* ============================================================================
   STUDIO CATALOG SELECTION MODE, FLOATING DOCK & LIVE CATALOG EXPORTER MODAL
   ============================================================================ */

/* 0. Universal [hidden] Safeguard (Prevents author display:flex/inline-flex overrides) */
.vf-prod-page [hidden],
dialog.vf-cat-dialog [hidden],
dialog.vf-sel-drawer [hidden],
#vfCatalogSelectionDock[hidden],
#vfCatalogSelectionDock [hidden] {
  display: none !important;
}

/* 1. Native <dialog> Scroll-Chaining Prevention (Modern Web Guidance) */
dialog.vf-cat-dialog:modal,
dialog.vf-sel-drawer:modal {
  overscroll-behavior: contain;
}
dialog.vf-cat-dialog::backdrop,
dialog.vf-sel-drawer::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

/* 2. Inline Selection Mode Studio Banner (Above #main-products-grid) */
.vf-sel-mode-banner {
  margin-block-end: 14px;
  padding: 11px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0B1220 0%, #162238 100%);
  border: 1px solid rgba(96, 165, 250, 0.34);
  box-shadow: 0 16px 34px -20px rgba(15, 23, 42, 0.55);
  color: #F8FAFC;
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  justify-content: space-between;
  gap: 10px 14px;
}
.vf-sel-mode-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-inline-size: 0;
}
.vf-sel-mode-pulse {
  inline-size: 10px;
  block-size: 10px;
  border-radius: 999px;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.24);
  flex-shrink: 0;
}
.vf-sel-mode-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-inline-size: 0;
}
.vf-sel-mode-copy strong {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 1.25;
}
.vf-sel-mode-copy span {
  font-size: 0.72rem;
  color: #CBD5E1;
  font-weight: 600;
  line-height: 1.35;
}
.vf-sel-mode-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.vf-sel-banner-btn {
  min-block-size: 34px;
  padding-inline: 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #F1F5F9;
  font-size: 0.71rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.vf-sel-banner-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  color: #FFFFFF;
}
.vf-sel-banner-btn--primary {
  background: #10B981;
  border-color: #34D399;
  color: #FFFFFF !important;
}
.vf-sel-banner-btn--primary:hover {
  background: #059669;
  border-color: #6EE7B7;
}
.vf-sel-banner-btn--danger {
  color: #FDA4AF;
  border-color: rgba(251, 113, 133, 0.35);
}
.vf-sel-banner-btn--danger:hover {
  background: rgba(225, 29, 72, 0.24);
  color: #FFE4E6;
}

/* 3. Product Card Selection Mode & Quick-Pick Styling (High-Specificity — Zero Overlap) */
.vf-pcard-qbtn.vf-pick-toggle-btn.is-active {
  background: #10B981 !important;
  color: #FFFFFF !important;
  border-color: #10B981 !important;
}

#main-products-grid .product-card.vf-pcard .selection-indicator-container {
  position: static !important;
  pointer-events: none;
}

/* Beats `#main-products-grid .product-card.vf-pcard:has(a.card-link) button` */
#main-products-grid .product-card.vf-pcard .vf-select-badge {
  position: absolute !important;
  inset-block-start: 8px !important;
  inset-inline-end: 8px !important;
  z-index: 30 !important;
  pointer-events: auto !important;
  min-inline-size: 30px;
  min-block-size: 30px;
  padding: 0 9px;
  border-radius: 999px;
  border: 2px solid #94A3B8;
  background: rgba(255, 255, 255, 0.97);
  color: #1E293B;
  font-size: 0.68rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 6px 14px -4px rgba(15, 23, 42, 0.22);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
#main-products-grid .product-card.vf-pcard:hover .vf-select-badge {
  border-color: var(--vf-blue, #1464F4);
  color: var(--vf-blue, #1464F4);
  transform: scale(1.04);
}
#main-products-grid .product-card.vf-pcard .vf-select-badge.is-on {
  background: #059669 !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 18px -4px rgba(5, 150, 105, 0.55);
}
#main-products-grid .product-card.vf-pcard .vf-select-badge:focus-visible {
  outline: 2px solid #0F172A;
  outline-offset: 2px;
}

/* Bottom card selection callout pill (shown ONLY in Selection Mode) */
.vf-pcard-select-cta {
  display: none;
  margin-block-start: auto;
  padding: 7px 10px;
  min-block-size: 36px;
  border-radius: 9px;
  border: 1.5px dashed #CBD5E1;
  background: #F8FAFC;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#main-products-grid[data-select-mode="1"] .product-card.vf-pcard {
  cursor: pointer !important;
  user-select: none;
  border-color: #CBD5E1;
}
#main-products-grid[data-select-mode="1"] .product-card.vf-pcard :is(a, .vf-pcard-actions, .vf-pcard-quick, .vf-pcard-mobile-zoom) {
  pointer-events: none !important;
}
#main-products-grid[data-select-mode="1"] .product-card.vf-pcard .vf-pcard-quick,
#main-products-grid[data-select-mode="1"] .product-card.vf-pcard .vf-pcard-mobile-zoom,
#main-products-grid[data-select-mode="1"] .product-card.vf-pcard .vf-pcard-actions {
  display: none !important;
}
#main-products-grid[data-select-mode="1"] .product-card.vf-pcard .vf-pcard-select-cta {
  display: flex !important;
}
#main-products-grid[data-select-mode="1"] .product-card.vf-pcard:hover {
  border-color: var(--vf-blue, #1464F4) !important;
}
#main-products-grid[data-select-mode="1"] .product-card.vf-pcard:hover .vf-pcard-select-cta {
  border-style: solid;
  border-color: var(--vf-blue, #1464F4);
  background: rgba(20, 100, 244, 0.06);
  color: var(--vf-blue, #1464F4);
}

#main-products-grid .product-card.vf-pcard.is-catalog-selected {
  border-color: #059669 !important;
  box-shadow:
    0 0 0 2px #059669,
    0 16px 32px -18px rgba(5, 150, 105, 0.35) !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%) !important;
}
#main-products-grid[data-select-mode="1"] .product-card.vf-pcard.is-catalog-selected .vf-pcard-select-cta {
  border-style: solid;
  border-color: #059669;
  background: #059669;
  color: #FFFFFF;
}

/* Outside selection mode, keep a clean selected badge on picked cards without overlapping quick tools */
#main-products-grid:not([data-select-mode="1"]) .product-card.vf-pcard.is-catalog-selected .vf-select-badge {
  inset-block-start: auto !important;
  inset-block-end: 8px !important;
  inset-inline-end: 8px !important;
}

@container pcard (max-width: 175px) {
  #main-products-grid .product-card.vf-pcard .vf-select-badge {
    inset-block-start: 5px !important;
    inset-inline-end: 5px !important;
    min-inline-size: 24px;
    min-block-size: 24px;
    padding: 0 5px;
    font-size: 0.6rem;
  }
  .vf-select-badge-txt {
    display: none;
  }
  .vf-pcard-select-cta {
    min-block-size: 28px;
    padding: 4px 6px;
    font-size: 0.62rem;
    border-radius: 7px;
  }
  .vf-pcard-select-cta .vf-sel-cta-long {
    display: none;
  }
}

@media (max-width: 639px) {
  #main-products-grid .product-card.vf-pcard .vf-select-badge {
    inset-block-start: 5px !important;
    inset-inline-end: 5px !important;
    min-inline-size: 26px;
    min-block-size: 26px;
    padding: 0 6px;
  }
  .vf-select-badge-txt {
    display: none;
  }
}
@media (pointer: coarse) and (min-width: 640px) {
  #main-products-grid .product-card.vf-pcard .vf-select-badge {
    min-inline-size: 34px;
    min-block-size: 34px;
  }
}

/* 4. Floating Bottom Studio Selection Dock */
#vfCatalogSelectionDock {
  position: fixed;
  inset-inline: 12px;
  inset-block-end: max(16px, calc(12px + var(--p4p-sab, 0px)));
  margin-inline: auto;
  inline-size: fit-content;
  max-inline-size: min(96dvw, 900px);
  z-index: 10850;
  background: rgba(11, 15, 23, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 8px 10px 8px 12px;
  box-shadow: 0 24px 52px -12px rgba(2, 6, 23, 0.65);
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  justify-content: space-between;
  gap: 8px 12px;
}
.vf-seldock-summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-block-size: 38px;
  padding: 5px 12px 5px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.vf-seldock-summary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}
.vf-seldock-thumbs {
  display: inline-flex;
  align-items: center;
}
.vf-seldock-thumbs img {
  inline-size: 26px;
  block-size: 26px;
  border-radius: 7px;
  background: #FFFFFF;
  border: 1.5px solid #0B0F17;
  object-fit: contain;
  margin-inline-start: -6px;
}
.vf-seldock-thumbs img:first-child {
  margin-inline-start: 0;
}
.vf-seldock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.vf-seldock-btn {
  min-block-size: 38px;
  padding-inline: 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  font-size: 0.73rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.vf-seldock-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}
.vf-seldock-btn--primary {
  background: #10B981;
  border-color: #34D399;
  color: #FFFFFF !important;
  padding-inline: 15px;
  box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.55);
}
.vf-seldock-btn--primary:hover {
  background: #059669;
  border-color: #6EE7B7;
  color: #FFFFFF !important;
}
.vf-seldock-btn--danger {
  color: #FDA4AF;
  border-color: rgba(251, 113, 133, 0.32);
}
.vf-seldock-btn--danger:hover {
  background: rgba(225, 29, 72, 0.25);
  color: #FFE4E6;
}

/* 5. Slide-Over Selected Products Drawer (<dialog>) */
dialog.vf-sel-drawer {
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  inline-size: min(94dvw, 410px);
  max-inline-size: min(94dvw, 410px);
  block-size: 100dvh;
  max-block-size: 100dvh;
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: -20px 0 48px -12px rgba(2, 6, 23, 0.35);
}
dialog.vf-sel-drawer[open] {
  display: flex;
  flex-direction: column;
}
dialog.vf-sel-drawer::backdrop {
  background: rgba(11, 15, 20, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.vf-sel-drawer-head {
  padding: 16px 18px;
  border-block-end: 1px solid #E5ECF4;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.vf-sel-drawer-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vf-sel-drawer-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: #059669;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
}
.vf-sel-drawer-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vf-sel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E8EEF5;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.vf-sel-item:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
}
.vf-sel-item-idx {
  inline-size: 22px;
  block-size: 22px;
  border-radius: 999px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.64rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vf-sel-item-thumb {
  inline-size: 48px;
  block-size: 48px;
  border-radius: 9px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vf-sel-item-thumb img {
  max-inline-size: 100%;
  max-block-size: 100%;
  object-fit: contain;
}
.vf-sel-item-info {
  flex: 1 1 auto;
  min-inline-size: 0;
}
.vf-sel-item-brand {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
}
.vf-sel-item-name {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-block: 1px 2px;
}
.vf-sel-item-price {
  font-family: var(--p4p-price-font, "Chakra Petch", sans-serif);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--p4p-price-color, #EE4D2D);
}
.vf-sel-item-tools {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.vf-sel-item-del {
  min-inline-size: 32px;
  min-block-size: 32px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.vf-sel-item-del:hover:not(:disabled) {
  background: #E2E8F0;
  color: #0F172A;
}
.vf-sel-item-del--danger:hover:not(:disabled) {
  background: #FFE4E6;
  color: #E11D48;
}
.vf-sel-item-del:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
@media (pointer: coarse) {
  .vf-sel-item-del {
    min-inline-size: 36px;
    min-block-size: 36px;
  }
}
.vf-sel-drawer-foot {
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-block-start: 1px solid #E5ECF4;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.vf-sel-drawer-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
}
.vf-sel-drawer-total strong {
  font-family: var(--p4p-price-font, "Chakra Petch", sans-serif);
  font-size: 0.96rem;
  font-weight: 800;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
}

/* 6. Studio Catalog Viewer & Exporter Modal (<dialog>) */
dialog.vf-cat-dialog {
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  inline-size: min(97dvw, 1280px);
  max-inline-size: min(97dvw, 1280px);
  block-size: min(95dvh, 960px);
  max-block-size: min(95dvh, 960px);
  background: #0B1018;
  color: #F8FAFC;
  box-shadow: 0 36px 80px -16px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
dialog.vf-cat-dialog[open] {
  display: flex;
  flex-direction: column;
}
dialog.vf-cat-dialog::backdrop {
  background: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vf-cat-studio-top {
  padding: 13px 18px;
  background: linear-gradient(180deg, #151E2E 0%, #101724 100%);
  border-block-end: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.vf-cat-studio-row1 {
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  justify-content: space-between;
  gap: 10px 14px;
}
.vf-cat-studio-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-inline-size: 0;
}
.vf-cat-studio-badge {
  inline-size: 38px;
  block-size: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -6px rgba(37, 99, 235, 0.65);
}
.vf-cat-studio-h1 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 1.2;
}
.vf-cat-studio-sub {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
}
.vf-cat-studio-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.vf-cat-btn {
  min-block-size: 36px;
  padding-inline: 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #F1F5F9;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.vf-cat-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}
.vf-cat-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.vf-cat-btn--copy {
  background: #2563EB;
  border-color: #3B82F6;
  color: #FFFFFF !important;
}
.vf-cat-btn--copy:hover:not(:disabled) {
  background: #1D4ED8;
  border-color: #60A5FA;
}
.vf-cat-btn--download {
  background: #10B981;
  border-color: #34D399;
  color: #FFFFFF !important;
}
.vf-cat-btn--download:hover:not(:disabled) {
  background: #059669;
}
.vf-cat-btn--all {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #0F172A !important;
}
.vf-cat-btn--all:hover:not(:disabled) {
  background: #E2E8F0;
}

.vf-cat-studio-row2 {
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  justify-content: space-between;
  gap: 8px 10px;
  padding-block-start: 10px;
  border-block-start: 1px solid rgba(255, 255, 255, 0.08);
}
.vf-cat-seg-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  gap: 2px;
}
.vf-cat-seg-btn {
  min-block-size: 30px;
  padding-inline: 10px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: #CBD5E1;
  font-size: 0.71rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.vf-cat-seg-btn:hover:not(:disabled) {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}
.vf-cat-seg-btn.is-active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.vf-cat-seg-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.vf-cat-inputs-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 300px;
  justify-content: flex-end;
}
.vf-cat-title-input {
  min-block-size: 34px;
  padding-inline: 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
  font-size: max(1rem, 13px);
  font-weight: 600;
  min-inline-size: 180px;
  flex: 1 1 190px;
  max-inline-size: 310px;
  outline: none;
}
@media (min-width: 768px) {
  .vf-cat-title-input {
    font-size: 0.76rem;
  }
}
.vf-cat-title-input::placeholder {
  color: #94A3B8;
}
.vf-cat-title-input:focus {
  border-color: #60A5FA;
  background: rgba(255, 255, 255, 0.12);
}

.vf-cat-status-bar {
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.22);
  border-block-end: 1px solid rgba(96, 165, 250, 0.34);
  color: #DBEAFE;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}
.vf-cat-status-bar[data-tone="success"] {
  background: rgba(16, 185, 129, 0.24);
  border-color: rgba(52, 211, 153, 0.4);
  color: #D1FAE5;
}
.vf-cat-status-bar[data-tone="error"] {
  background: rgba(225, 29, 72, 0.26);
  border-color: rgba(251, 113, 133, 0.42);
  color: #FFE4E6;
}

.vf-cat-studio-stage {
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 14px 28px;
  display: flex;
  flex-direction: column;
  align-items: safe center;
  gap: 14px;
  background: radial-gradient(circle at 50% 0%, #1C2739 0%, #090D14 100%);
}
.vf-cat-page-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.vf-cat-page-pill {
  min-inline-size: 34px;
  min-block-size: 34px;
  padding-inline: 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.vf-cat-page-pill:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}
.vf-cat-page-pill.is-active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #0F172A;
}
.vf-cat-page-pill:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Responsive Vector Scaling Frame for 1160px Print Sheet */
.vf-cat-scale-frame {
  --cat-scale: 1;
  position: relative;
  inline-size: calc(1160px * var(--cat-scale));
  block-size: calc(var(--cat-sheet-h, 800px) * var(--cat-scale));
  border-radius: calc(16px * var(--cat-scale));
  box-shadow: 0 28px 64px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  background: #FFFFFF;
  flex-shrink: 0;
}
.vf-cat-scale-inner {
  inline-size: 1160px;
  transform-origin: top left;
  transform: scale(var(--cat-scale));
}

/* 7. Self-Contained Editorial Print/PNG Catalog Sheet (1160px exact width, 100% html2canvas-safe #HEX/rgba) */
.p4p-cat-sheet {
  width: 1160px;
  box-sizing: border-box;
  background: #FFFFFF;
  color: #0F172A;
  padding: 28px 34px 24px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.p4p-cat-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 15px;
  border-bottom: 2.5px solid #0F172A;
}
.p4p-cat-sheet-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.p4p-cat-sheet-logo {
  height: 48px;
  width: auto;
  max-width: 126px;
  object-fit: contain;
  display: block;
}
.p4p-cat-sheet-shop {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.p4p-cat-sheet-shop strong {
  font-family: "Chakra Petch", "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0F172A;
  text-transform: uppercase;
  line-height: 1.05;
}
.p4p-cat-sheet-shop span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #64748B;
  text-transform: uppercase;
}
.p4p-cat-sheet-doc {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.p4p-cat-sheet-doc h2 {
  margin: 0;
  font-family: "Chakra Petch", "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0F172A;
  text-transform: uppercase;
  line-height: 1.15;
}
.p4p-cat-sheet-note {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #1D4ED8;
  line-height: 1.25;
}
.p4p-cat-sheet-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.p4p-cat-sheet-pill {
  padding: 2.5px 9px;
  border-radius: 5px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Grid Mode L: Editorial Lookbook Cards (3 cols x up to 3 rows = 9 items/page) */
.p4p-cat-grid--lookbook {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.p4p-cat-grid--lookbook.is-cols-1 {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}
.p4p-cat-grid--lookbook.is-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.p4p-cat-grid--lookbook .p4p-cat-item-photo {
  height: 196px;
}
.p4p-cat-grid--lookbook .p4p-cat-item-photo img {
  max-height: 176px;
}
.p4p-cat-grid--lookbook .p4p-cat-name {
  font-size: 12.5px;
}
.p4p-cat-grid--lookbook .p4p-cat-price {
  font-size: 16.5px;
}

/* Grid Mode A: Studio Portrait Cards (4 cols x up to 3 rows = 12 items/page) */
.p4p-cat-grid--portrait {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.p4p-cat-grid--portrait.is-cols-1 {
  grid-template-columns: minmax(0, 440px);
  justify-content: center;
}
.p4p-cat-grid--portrait.is-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.p4p-cat-grid--portrait.is-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.p4p-cat-item-portrait {
  position: relative;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  background: #FFFFFF;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}
.p4p-cat-item-photo {
  width: 100%;
  height: 156px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.p4p-cat-item-photo img {
  max-width: 100%;
  max-height: 138px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Grid Mode B: Compact Horizontal Quotation Strips (4 cols x up to 4 rows = 16 items/page) */
.p4p-cat-grid--compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.p4p-cat-grid--compact.is-cols-1 {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}
.p4p-cat-grid--compact.is-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.p4p-cat-grid--compact.is-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.p4p-cat-item-compact {
  position: relative;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  height: 150px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}
.p4p-cat-item-compact-photo {
  width: 112px;
  height: 148px;
  background: #F8FAFC;
  border-right: 1px solid #F1F5F9;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.p4p-cat-item-compact-photo img {
  max-width: 100%;
  max-height: 128px;
  object-fit: contain;
  display: block;
}
.p4p-cat-item-compact-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 10px 10px 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.p4p-cat-sale-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 2.5px 7px;
  border-radius: 999px;
  background: #E11D48;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
}
.p4p-cat-remove-item {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  min-inline-size: 26px;
  min-block-size: 26px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: rgba(255, 255, 255, 0.96);
  color: #475569;
  font-size: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
}
.p4p-cat-item-portrait:hover .p4p-cat-remove-item,
.p4p-cat-item-compact:hover .p4p-cat-remove-item,
.p4p-cat-remove-item:focus-visible {
  display: inline-flex;
}
@media (hover: none), (pointer: coarse) {
  .p4p-cat-remove-item {
    display: inline-flex;
    min-inline-size: 30px;
    min-block-size: 30px;
  }
}
.p4p-cat-remove-item:hover {
  background: #E11D48;
  border-color: #E11D48;
  color: #FFFFFF;
}
.p4p-cat-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}
.p4p-cat-kicker {
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p4p-cat-sku {
  font-size: 8.5px;
  font-weight: 700;
  color: #94A3B8;
  white-space: nowrap;
  flex-shrink: 0;
}
.p4p-cat-name {
  font-size: 11.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.p4p-cat-color {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #F1F5F9;
  color: #334155;
  font-size: 9px;
  font-weight: 700;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p4p-cat-color-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.35);
  flex-shrink: 0;
}
.p4p-cat-price-wrap {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed #E2E8F0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.p4p-cat-price {
  font-family: "Chakra Petch", "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #EE4D2D;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.p4p-cat-price small {
  font-size: 10.5px;
  margin-left: 1px;
}
.p4p-cat-old {
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.p4p-cat-contact-tag {
  font-size: 11px;
  font-weight: 800;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.p4p-cat-sheet-foot {
  padding-top: 12px;
  border-top: 1.5px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.p4p-cat-sheet-foot strong {
  color: #0F172A;
  font-weight: 800;
}

/* ══ Compact Single-Row Subcategory Quick-Drilldown Pills (#vf-subcat-pills-row) ══ */
@property --subcat-fade-start {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --subcat-fade-end {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

.vf-subcat-pills-row[hidden] {
  display: none !important;
}
.vf-subcat-pills-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-block-start: 8px;
  padding-block: 4px 2px;
  padding-inline: 2px;
  border-block-start: 1px dashed #E2E8F0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: inline proximity;
  scroll-padding-inline: 28px;
  touch-action: pan-x pan-y;
  --subcat-fade-size: 28px;
  --subcat-fade-dir: right;
  --subcat-fade-start-pos: 0;
  --subcat-fade-end-pos: 100%;
  mask:
    linear-gradient(black, black) no-clip subtract,
    linear-gradient(to var(--subcat-fade-dir), black, transparent) var(--subcat-fade-start-pos) 0 / var(--subcat-fade-start) 100% no-repeat no-clip,
    linear-gradient(to var(--subcat-fade-dir), transparent, black) var(--subcat-fade-end-pos) 0 / var(--subcat-fade-end) 100% no-repeat no-clip;
  animation: vf-subcat-reveal-start linear both, vf-subcat-hide-end linear both;
  animation-timeline: scroll(self inline);
  animation-range: 0 var(--subcat-fade-size), calc(100% - var(--subcat-fade-size)) 100%;
  transition: --subcat-fade-start 0.2s, --subcat-fade-end 0.2s;
}
.vf-subcat-pills-row::-webkit-scrollbar {
  display: none;
}
.vf-subcat-pills-row.more-start {
  --subcat-fade-start: var(--subcat-fade-size);
}
.vf-subcat-pills-row.more-end {
  --subcat-fade-end: var(--subcat-fade-size);
}
@keyframes vf-subcat-reveal-start {
  to {
    --subcat-fade-start: var(--subcat-fade-size);
  }
}
@keyframes vf-subcat-hide-end {
  from {
    --subcat-fade-end: var(--subcat-fade-size);
  }
}

.vf-subcat-pill {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-block-size: 30px;
  padding-inline: 11px;
  border-radius: 999px;
  border: 1px solid #DCE3EC;
  background: #F8FAFC;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, scale 140ms ease;
}
.vf-subcat-pill i {
  font-size: 10px;
  color: #64748B;
  transition: color 140ms ease;
}
.vf-subcat-pill:hover {
  background: #EFF6FF;
  border-color: rgba(20, 100, 244, 0.35);
  color: var(--vf-blue, #1464F4);
}
.vf-subcat-pill:hover i {
  color: var(--vf-blue, #1464F4);
}
.vf-subcat-pill:active {
  scale: 0.97;
}
.vf-subcat-pill:focus-visible {
  outline: 2px solid var(--vf-blue, #1464F4);
  outline-offset: -2px;
}
.vf-subcat-pill[aria-pressed="true"],
.vf-subcat-pill.is-active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}
.vf-subcat-pill[aria-pressed="true"] i,
.vf-subcat-pill.is-active i {
  color: #FFFFFF;
}
.vf-subcat-pill.is-zero-match {
  opacity: 0.45;
  border-style: dashed;
}
.vf-subcat-pill.is-zero-active {
  background: #FFF1F2;
  border-color: #FB7185;
  color: #BE123C;
}
.vf-subcat-pill.is-zero-active i {
  color: #BE123C;
}
@media (pointer: coarse) {
  .vf-subcat-pill {
    min-block-size: 36px;
    padding-inline: 13px;
    font-size: 12px;
  }
}

/* ══ Mobile-Only Compact Brand Logo Pills & Visual Category Cards inside #vf-cat-toolbar.vf-unified-hub (Desktop preserved as-is) ══ */
@media (max-width: 767px) {
  .vf-unified-hub #brand-filter-row.vf-brand-showcase-row {
    gap: 6px;
    padding: 1px;
  }
  .vf-unified-hub .vf-brand-pill {
    flex: 0 0 auto !important;
    min-inline-size: auto !important;
    max-inline-size: none !important;
    min-block-size: 34px !important;
    padding: 3px 11px 3px 6px !important;
    border-radius: 999px !important;
    gap: 5px !important;
  }
  .vf-unified-hub .vf-brand-pill.is-active {
    padding-inline-end: 23px !important;
  }
  .vf-unified-hub .vf-brand-pill-logo {
    inline-size: 24px !important;
    block-size: 19px !important;
    border-radius: 6px !important;
    padding: 1.5px 2px !important;
  }
  .vf-unified-hub .vf-brand-pill-logo img {
    max-inline-size: 18px !important;
    max-block-size: 14px !important;
    max-height: 14px !important;
    inline-size: auto !important;
    block-size: auto !important;
    object-fit: contain;
  }
  .vf-unified-hub .vf-brand-pill-logo i {
    font-size: 0.72rem !important;
  }
  .vf-unified-hub .vf-brand-pill-name {
    font-size: 0.72rem !important;
    font-weight: 800;
  }
  .vf-unified-hub .vf-brand-pill-tick {
    inline-size: 14px !important;
    block-size: 14px !important;
    inset-inline-end: 5px !important;
  }

  .vf-unified-hub .vf-vcat-grid {
    gap: 5px !important;
  }
  .vf-unified-hub .vf-vcat-card {
    inline-size: 66px !important;
    min-inline-size: 66px !important;
    padding: 4px 3px 4px !important;
    gap: 2px !important;
    border-radius: 9px !important;
  }
  .vf-unified-hub .vf-vcat-img {
    block-size: 24px !important;
    padding: 0 !important;
  }
  .vf-unified-hub .vf-vcat-img img {
    max-inline-size: 26px !important;
    max-block-size: 22px !important;
    inline-size: auto !important;
    block-size: auto !important;
    object-fit: contain;
  }
  .vf-unified-hub .vf-vcat-img > div {
    inline-size: 22px !important;
    block-size: 22px !important;
    border-radius: 6px !important;
  }
  .vf-unified-hub .vf-vcat-img > div i {
    font-size: 0.72rem !important;
  }
  .vf-unified-hub .vf-vcat-all-glyph {
    inline-size: 22px !important;
    block-size: 22px !important;
    border-radius: 6px !important;
    font-size: 0.7rem !important;
  }
  .vf-unified-hub .vf-vcat-check {
    inline-size: 13px !important;
    block-size: 13px !important;
    top: 3px !important;
    left: 3px !important;
  }
  .vf-unified-hub .vf-vcat-bar {
    font-size: 0.52rem !important;
    line-height: 1.15 !important;
    min-block-size: 2.2em !important;
    padding: 1.5px 2px 0 !important;
  }
  .vf-unified-hub .vf-vcat-card.is-active .vf-vcat-bar {
    padding: 2px 3px !important;
  }
}
