/* Header */
.pz-nav{
  background:#5b0e57;
}



.brand-name{
  color:#fff;
  font-weight:700;
  letter-spacing:0.2px;
}

.pz-navlink{
  color: rgba(255,255,255,0.88);
  font-weight:600;
  padding: .5rem .75rem;
  text-decoration:none;
  border-radius: 999px;
  display:inline-block;
}
.pz-navlink:hover{
  color:#fff;
  background: rgba(255,255,255,0.12);
}


.pz-user,
.pz-lang{
  color:#fff;
  text-decoration:none;
  padding: .5rem .75rem;
  border-radius: 999px;
}
.pz-user:hover,
.pz-lang:hover{
  background: rgba(255,255,255,0.12);
  color:#fff;
}

/* Subheader bar under main navbar */
.pz-subnav{
  background: #f6f1f6;          /* light lavender/gray */
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.pz-subnav-link{
  display: inline-block;
  padding: .55rem .25rem;
  color: rgba(0,0,0,0.75);
  text-decoration: none;
  font-weight: 600;
}

.pz-subnav-link:hover{
  color: rgba(0,0,0,0.95);
  text-decoration: underline;
}

/* Footer */
.pz-footer{
  background:#fff;
  border-top:1px solid rgba(0,0,0,0.08);
  margin-top: 3rem;
}

.footer-title{
  font-weight:700;
  margin-bottom:.5rem;
}
.footer-link{
  display:block;
  color: rgba(0,0,0,0.65);
  text-decoration:none;
  margin: .35rem 0;
}
.footer-link:hover{
  color: rgba(0,0,0,0.9);
  text-decoration: underline;
}
.pz-footer-bottom{
  border-top:1px solid rgba(0,0,0,0.08);
}

.pz-avatar{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  display: inline-block;
}


/* =========================
   SmartShop Shared Components
   Keep reusable UI primitives here
   ========================= */

/* Section container used across pages */
.section {
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* Primary pill button used across pages */
.btn-ss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: #7e57c2;
  text-align: center;
}

/* Muted helper text */
.muted {
  color: #777;
  font-size: 0.9rem;
}

/* Source label pill */
.source-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 999px;
  background: #f3e6ff;
  color: #5b2c91;
  font-weight: 600;
  margin: 0.4rem 0;
}

/* Ratings row */
.rating-row {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 0.35rem;
}
.rating-row .stars {
  margin-right: 0.25rem;
}


/* =========================
   Filter / Facet Components
   ========================= */
.filter-title{
  font-size: 1.15rem;
  font-weight: 650;
}

.filter-subtitle {
  margin: 4px 0 14px;
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
}

/* Generic collapsible filter block */
.gflt{
  border-top: 1px solid #e0e0e0;
  padding: 10px 0;
}
.gflt:first-of-type{
  border-top: 0;
}

.gflt summary{
  list-style:none;
}
.gflt summary::-webkit-details-marker{
  display:none;
}

.gflt__hdr{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size: 13px;
  font-weight: 600;
  color:#202124;
  cursor:pointer;
  padding: 2px 0;
}

.gflt__chev{
  width: 10px;
  height: 10px;
  display:inline-block;
  border-right: 2px solid #5f6368;
  border-bottom: 2px solid #5f6368;
  transform: rotate(45deg);
  margin-left: 8px;
}
.gflt[open] .gflt__chev{
  transform: rotate(-135deg);
}

.gflt__body{
  margin-top: 8px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* Filter options (checkbox / radio) */
.gopt{
  display:grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  align-items:center;
  font-size: 13px;
  color:#3c4043;
}
.gopt input{
  margin:0;
}

.gopt__txt{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.gopt__cnt{
  font-size:12px;
  color:#70757a;
}

/* Radio-only layout */
.gopt--radio{
  grid-template-columns: 16px 1fr;
}

/* Select dropdown */
.gselect{
  width:100%;
  border:1px solid #dadce0;
  border-radius:8px;
  padding:8px 10px;
  font-size:13px;
  background:#fff;
}


/* Price range inputs */
.gprice{
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr; /* <-- key: only two columns (no "auto" third column) */
  gap: 8px;
  margin-top: 2px;
}

.gprice__in{
  width: 100%;
  min-width: 0;
  box-sizing: border-box; /* <-- key: prevents padding/border overflow */
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
}


.gprice__go{
  border:1px solid #dadce0;
  border-radius:8px;
  padding:6px 10px;
  font-size:13px;
  background:#f1f3f4;
  cursor:pointer;
}

.src-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.src-pill{
  display:inline-flex;
  align-items:center;
  cursor:pointer;
}

.src-pill input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* reuse your existing .src-badge look from product cards,
   but make it clickable and show selected state */
.src-pill .src-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  transition: box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.src-pill input:checked + .src-badge{
  border-color: rgba(139,92,246,.55);
  box-shadow: 0 0 0 3px rgba(139,92,246,.14);
  background: rgba(139,92,246,.06);
}

.src-badge__logo{
  width:16px;
  height:16px;
  object-fit:contain;
}

.src-badge__name{
  font-size:12px;
  font-weight:600;
}

.gopt--swatch{
  display:flex;
  align-items:center;
  gap:10px;
}

.swatch{
  width:14px;
  height:14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.18);
  display:inline-block;
}

.gopt--swatch input:checked ~ .swatch{
  outline: 3px solid rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.65);
}

.gopt--swatch .gopt__cnt {
  margin-left: auto;
  white-space: nowrap;
}
/* =========================
   Product Card (Clean)
   ========================= */

.pcard{
  background:#fafafa;
  border-radius:12px;
  padding:12px;
  display:flex;
  flex-direction:column;
  height:100%;
  box-shadow:0 2px 8px rgba(0,0,0,0.05);
}

/* media */
.pcard__media{
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.pcard__img{
  width:100%;
  height:180px;
  object-fit:contain;
  display:block;
  background:#fff;
}

/* source badge row */
.pcard__source-row{
  margin-top:10px;
  margin-bottom:6px;
  display:flex;
  justify-content:flex-start;
}

.src-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:#f2eefc;
  border:1px solid rgba(94,53,177,0.14);
  color:#3b2b64;
  font-size:12px;
  font-weight:600;
  line-height:1;
}

.src-badge__logo{
  width:18px;
  height:18px;
  border-radius:50%;
  object-fit:contain;
  background:#fff;
}

.src-badge__dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#bbb;
}

/* title + tiny outbound icon */
.pcard__title{
  font-size:0.95rem;
  line-height:1.25;
  margin:2px 0 8px 0;
}

.pcard__ext{
  display:inline-flex;
  align-items:baseline;
  margin-left:6px;
  font-size:0.85em;
  opacity:0.55;
  text-decoration:none;
  color:inherit;
  vertical-align:baseline;
  transform:translateY(1px);
}

.pcard__ext:hover{
  opacity:1;
}

/* price */
.pcard__price{
  font-weight:700;
  margin:6px 0 10px 0;
  font-size:1rem;
}

/* bottom actions */
.pcard__cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:auto;
}

/* small primary button (assumes btn-ss base exists) */
.btn-ss--small{
  padding:8px 10px;
  font-size:13px;
  border-radius:999px;
}

/* icon button */
.icon-btn{
  width:34px;
  height:34px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(0,0,0,0.10);
  background:#fff;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}

.icon-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 14px rgba(0,0,0,0.10);
}

.icon-btn--soft{
  background:#f6f3ff;
  border-color:rgba(94,53,177,0.22);
}


/* ==========================================
   Paderize Design System (Phase 0 additions)
   Appended to existing components.css
   Does NOT change existing .section/.btn-ss/etc.
========================================== */

/* Layout container */
.ss-container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* Section spacing */
.ss-section{
  padding: clamp(28px, 6vw, 56px) 0;
}

/* Card primitive (used on landing auth card) */
.ss-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.ss-card-body{
  padding: clamp(16px, 3.2vw, 26px);
}

/* Hero wrapper */
.ss-hero{
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(900px 450px at 15% 10%, rgba(139,92,246,0.22), transparent 55%),
    radial-gradient(700px 420px at 85% 0%, rgba(124,58,237,0.18), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-2);
}

.ss-hero-inner{
  padding: clamp(18px, 4vw, 34px);
}

/* 2-column hero grid */
.ss-grid-2{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
}
@media (max-width: 992px){
  .ss-grid-2{ grid-template-columns: 1fr; }
}

/* Typography */
.ss-title{
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  line-height: 1.06;
  font-weight: 850;
  margin: 0 0 10px 0;
}

.ss-subtitle{
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  color: var(--muted);
  margin: 0 0 18px 0;
}

.ss-muted{ color: var(--muted); }

/* Badge */
.ss-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: var(--text-sm);
}

/* Inputs */
.ss-input{
  border-radius: var(--r-md) !important;
  border: 1px solid var(--border) !important;
  background: rgba(255,255,255,0.06) !important;
  color: var(--text) !important;
  padding: 14px 14px !important;
}

/* Buttons (does not touch your .btn-ss) */
.ss-btn{
  border-radius: var(--r-md) !important;
  padding: 12px 14px !important;
  font-weight: 700 !important;
  border: 1px solid transparent !important;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.ss-btn:active{ transform: translateY(1px); }

.ss-btn-primary{
  background: linear-gradient(180deg, var(--brand-500), var(--brand-700)) !important;
  border-color: rgba(139,92,246,0.55) !important;
  color: white !important;
  box-shadow: 0 14px 34px rgba(139,92,246,0.22);
}
.ss-btn-primary:hover{
  box-shadow: 0 18px 44px rgba(139,92,246,0.28);
}

.ss-btn-secondary{
  background: rgba(255,255,255,0.06) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

/* Little kbd pill */
.ss-kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  padding: 3px 8px;
  border-radius: 10px;
  color: var(--text);
  font-size: var(--text-xs);
}
/* =========================
   Filter Insight Headers (fh) + Histogram (shared)
   ========================= */

.fh{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.fh__top{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}



.fh__title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size: 13px;
  font-weight: 600;
  color:#202124;
  cursor:pointer;
  padding: 2px 0;
}

.fh__meta{
  font-size:11px;
  color:#6b7280;
  font-weight:600;
}

.fh__lines{
  margin-top: 4px;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.fh__label{
  font-weight: 600;
  color:#202124;
}

.fh__sub{
  font-size:11px;
  color:#6b7280;
  font-weight:600;
}

.fh__val{
  font-weight: 600;
  color:#202124;
}

.fh__pill{
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:400;
  border:1px solid rgba(126,87,194,0.25);
  background: rgba(126,87,194,0.10);
  color: rgba(76,29,149,0.95);
}

.fh__mid{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.fh__low{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.fh__squares{
  display:flex;
  gap:6px;
  align-items:center;
}

.fh__sq{
  width:10px;
  height:10px;
  border-radius:4px;
  border:1px solid #e5e7eb;
  background:#f3f4f6;
}

/* ALL "on" dots are green (no red/grey by direction) */
.fh__sq.is-on{
  background: rgba(34,197,94,0.55);
  border-color: rgba(34,197,94,0.55);
}

/* keep these classes harmless (in case templates still emit them) */
.fh__squares--up .fh__sq.is-on{ background: rgba(34,197,94,0.55); border-color: rgba(34,197,94,0.55); }
.fh__squares--down .fh__sq.is-on{ background: rgba(34,197,94,0.55); border-color: rgba(34,197,94,0.55); }
.fh__squares--mixed .fh__sq.is-on{ background: rgba(34,197,94,0.55); border-color: rgba(34,197,94,0.55); }

.fh__impact{
  font-size:12px;
  font-weight:400;
  text-align:right;
  white-space:nowrap;
}

/* OPTIONAL: if you also want the text always green */
.fh__impact--up{ color: rgba(34,197,94,0.95); }
.fh__impact--down{ color: rgba(34,197,94,0.95); }
.fh__impact--mixed{ color: rgba(34,197,94,0.95); }

/* Histogram used inside price insight */
.mo-histogram{
  display:flex;
  align-items:flex-end;
  gap:8px;
  height: 80px;
  margin: 10px 0 6px 0;
  padding: 0 5px;
}

.mo-hist-bar{
  width: 14px;
  max-height: 70px;
  border-radius: 4px 4px 0 0;
  transition: all 0.2s ease;
}

.mo-hist-bar--cheap{ background: #d1c4e9; }
.mo-hist-bar--normal{ background: #9575cd; }
.mo-hist-bar--premium{ background: #5e35b1; }

.mo-hist-bar:hover{
  transform: translateY(-3px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* Results filter form actions */
.filters-actions{
  margin-top: 12px;
}
.filters-actions .btn-ss{
  width: 100%;
}



/* =========================
   Toast messages (Django messages)
   ========================= */
.ss-toasts{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 3000;
  width: min(360px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.ss-toast{
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  transition: opacity .25s ease, transform .25s ease;
}

.ss-toast__body{
  font-size: .9rem;
  line-height: 1.25;
  color: #1f2937;
}



.ss-toast__close{
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
}
.ss-toast__close:hover{ background: rgba(0,0,0,0.06); }

/* Variants (map Django tags) */
.ss-toast--success{ border-color: rgba(16,185,129,.35); }
.ss-toast--info{ border-color: rgba(59,130,246,.30); }
.ss-toast--warning{ border-color: rgba(245,158,11,.35); }
.ss-toast--error, .ss-toast--danger{ border-color: rgba(239,68,68,.35); }

/* Hide animation state */
.ss-toast.is-hiding{
  opacity: 0;
  transform: translateY(-6px);
}

/* =========================================================
   2026 calm-light UI unification layer
   Append at bottom of components.css
========================================================= */

/* ===== Shared shells ===== */
.section,
.ss-card{
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: var(--shadow-1) !important;
}

.section{
  padding: clamp(16px, 2vw, 24px) !important;
}

.ss-container{
  width: min(1500px, calc(100% - 32px));
  margin-inline: auto;
}

.ss-section{
  padding: clamp(24px, 4vw, 48px) 0;
}

.ss-card-body{
  padding: clamp(18px, 2.4vw, 28px);
}

/* ===== Hero ===== */
.ss-hero{
  background:
    radial-gradient(900px 420px at 18% 12%, rgba(111, 143, 184, 0.08), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #fafbfd 100%) !important;
  border: 1px solid var(--border) !important;
  border-radius: 24px !important;
  box-shadow: var(--shadow-2) !important;
}

.ss-hero-inner{
  padding: clamp(24px, 4vw, 40px) !important;
}

.ss-grid-2{
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(18px, 2vw, 32px);
  align-items: center;
}

@media (max-width: 992px){
  .ss-grid-2{
    grid-template-columns: 1fr;
  }
}

.ss-title{
  font-size: clamp(2rem, 2.7vw, 3.25rem) !important;
  line-height: 1.02 !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: var(--text) !important;
  margin: 0 0 14px 0 !important;
}

.ss-subtitle{
  font-size: clamp(1.03rem, 1.16vw, 1.16rem) !important;
  line-height: 1.65 !important;
  color: var(--text-soft) !important;
  margin: 0 0 20px 0 !important;
}

.ss-muted,
.muted{
  color: var(--muted) !important;
}

.ss-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border) !important;
  background: #f8fafc !important;
  color: var(--brand-700) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600;
}

/* ===== Buttons ===== */
.btn-ss,
.ss-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.68rem 1rem !important;
  border-radius: 999px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .12s ease;
}

.btn-ss{
  border: 1px solid transparent !important;
  color: #fff !important;
  background: var(--brand-700) !important;
  box-shadow: none !important;
}

.btn-ss:hover{
  background: var(--brand-800) !important;
  color: #fff !important;
}

.btn-ss--small{
  min-height: 36px;
  padding: 0.5rem 0.82rem !important;
  font-size: 0.82rem !important;
}

.ss-btn-primary{
  background: var(--brand-700) !important;
  border-color: var(--brand-700) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.ss-btn-primary:hover{
  background: var(--brand-800) !important;
  border-color: var(--brand-800) !important;
}

.ss-btn-secondary{
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

.ss-btn-secondary:hover{
  background: var(--surface-3) !important;
}

/* ===== Inputs ===== */
.ss-input,
.gselect,
.gprice__in{
  min-height: 42px;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  font-size: 0.94rem !important;
  box-shadow: none !important;
}

.ss-input{
  padding: 0.85rem 0.95rem !important;
}

.gprice__in{
  padding: 0.68rem 0.78rem !important;
}

.gprice__go{
  min-height: 42px;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  background: var(--surface-2) !important;
  color: var(--text) !important;
}

.gselect:focus,
.gprice__in:focus,
.ss-input:focus{
  outline: none;
  border-color: var(--brand-500) !important;
  box-shadow: var(--focus) !important;
}

/* ===== Filter / facet ===== */
.filter-title{
  font-size: 1.45rem !important;
  line-height: 1.15;
  font-weight: 800 !important;
  color: var(--text) !important;
}

.filter-subtitle{
  margin: 6px 0 16px !important;
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
  color: var(--muted) !important;
}

.gflt{
  border-top: 1px solid var(--border) !important;
  padding: 12px 0 !important;
}

.gflt__hdr{
  font-size: 0.97rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  padding: 2px 0 !important;
}

.gflt__chev{
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted-2) !important;
  border-bottom: 2px solid var(--muted-2) !important;
}

.gflt__body{
  margin-top: 10px !important;
  gap: 10px !important;
}

.gopt{
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  font-size: 0.92rem !important;
  color: var(--text-soft) !important;
}

.gopt__txt{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gopt__cnt{
  font-size: 0.82rem !important;
  color: var(--muted-2) !important;
}

.src-pill .src-badge{
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
}

.src-pill input:checked + .src-badge{
  border-color: var(--brand-500) !important;
  box-shadow: 0 0 0 3px rgba(111, 143, 184, 0.12) !important;
  background: #f6f9fd !important;
}

.swatch{
  width: 15px;
  height: 15px;
  border: 1px solid rgba(24, 34, 48, 0.16) !important;
}

.gopt--swatch input:checked ~ .swatch{
  outline: 3px solid rgba(111, 143, 184, 0.16) !important;
  border-color: var(--brand-600) !important;
}

/* ===== Generic small pills ===== */
.source-pill,
.src-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0.32rem 0.6rem !important;
  border-radius: 999px !important;
  background: #f7f9fc !important;
  border: 1px solid var(--border) !important;
  color: var(--text-soft) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  line-height: 1;
}

.src-badge__logo{
  width: 16px !important;
  height: 16px !important;
  border-radius: 999px;
  background: #fff;
}

.rating-row{
  font-size: 0.82rem !important;
  color: var(--muted) !important;
}

/* ===== Product cards ===== */
.pcard{
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  padding: 14px !important;
  box-shadow: var(--shadow-1) !important;
}

.pcard__media{
  border-radius: 14px !important;
  overflow: hidden;
  background: var(--surface-2) !important;
  border: 1px solid var(--border);
}

.pcard__img{
  height: clamp(180px, 18vw, 220px) !important;
  background: var(--surface) !important;
}

.pcard__source-row{
  margin-top: 12px !important;
  margin-bottom: 8px !important;
}

.pcard__title{
  font-size: 1rem !important;
  line-height: 1.38 !important;
  font-weight: 600;
  color: var(--text) !important;
  margin: 2px 0 10px 0 !important;
}

.pcard__ext{
  opacity: 0.42 !important;
}

.pcard__price{
  font-size: 1.18rem !important;
  line-height: 1.2;
  font-weight: 800 !important;
  color: var(--text) !important;
  margin: 8px 0 12px 0 !important;
}

.pcard__cta{
  gap: 12px !important;
  margin-top: auto !important;
}

.icon-btn{
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-soft);
  box-shadow: none !important;
}

.icon-btn:hover{
  transform: translateY(-1px);
  background: var(--surface-3) !important;
  box-shadow: var(--shadow-1) !important;
}

.icon-btn--soft{
  background: #f7f9fc !important;
  border-color: var(--border) !important;
}

/* =========================================================
   Factcheck icon button
========================================================= */

.icon-btn.icon-btn--factcheck{
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  border: 1px solid var(--border) !important;
  background: #fff !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
}

.icon-btn.icon-btn--factcheck:hover{
  background: var(--surface-2) !important;
  border-color: var(--border-strong) !important;
  box-shadow: var(--shadow-1) !important;
  transform: translateY(-1px);
}

.icon-btn.icon-btn--factcheck:focus-visible{
  outline: none;
  box-shadow: var(--focus), var(--shadow-1) !important;
}


.icon-btn__img.icon-btn__img--factcheck{
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
  display: block !important;
  pointer-events: none;
}


/* ===== Histogram / helper elements ===== */
.fh__title{
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}

.fh__meta{
  font-size: 0.79rem !important;
  color: var(--muted) !important;
}

/* ===== Responsive readability ===== */
@media (max-width: 767.98px){
  .section{
    padding: 14px !important;
  }

  .filter-title{
    font-size: 1.28rem !important;
  }

  .pcard{
    padding: 12px !important;
  }

  .pcard__title{
    font-size: 0.96rem !important;
  }

  .pcard__price{
    font-size: 1.08rem !important;
  }
}
/* =========================================================
   GLOBAL HEADER / SUBHEADER — calm neutral final
========================================================= */

.pz-nav{
  background: rgba(252, 253, 255, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #dde3ea !important;
}

.pz-subnav{
  background: #f4f7fb !important;
  border-bottom: 1px solid #dde3ea !important;
}

.brand-name{
  color: #182230 !important;
}

.pz-navlink,
.pz-user,
.pz-lang{
  color: #182230 !important;
}

.pz-navlink:hover,
.pz-user:hover,
.pz-lang:hover{
  background: #eef3f8 !important;
  color: #182230 !important;
}

.pz-subnav-link{
  color: #4b5b70 !important;
  font-weight: 600 !important;
}

.pz-subnav-link:hover{
  color: #182230 !important;
  text-decoration: none !important;
}

.ss-nav-usericon{
  border-color: #182230 !important;
}

.ss-nav-usericon::before,
.ss-nav-usericon::after{
  background: #182230 !important;
}

.pz-nav .btn-outline-light{
  color: #182230 !important;
  border-color: #dde3ea !important;
  background: #ffffff !important;
}

.pz-nav .btn-outline-light:hover,
.pz-nav .btn-outline-light:focus{
  color: #182230 !important;
  border-color: #cfd8e3 !important;
  background: #f7f9fc !important;
}
/* =========================================================
   FINAL COLOR CLEANUP — shared filters / insights helpers
   Append at very bottom of components.css
========================================================= */

/* ===== Driver insight pill ===== */
.fh__pill{
  border: 1px solid #d3e0f0 !important;
  background: #eef4fb !important;
  color: var(--brand-700) !important;
  font-weight: 700 !important;
}

/* ===== Driver strength dots ===== */
.fh__sq{
  border-color: #d9e0e8 !important;
  background: #edf1f5 !important;
}

.fh__sq.is-on,
.fh__squares--up .fh__sq.is-on,
.fh__squares--down .fh__sq.is-on,
.fh__squares--mixed .fh__sq.is-on{
  background: #7bc791 !important;
  border-color: #7bc791 !important;
}

.fh__impact,
.fh__impact--up,
.fh__impact--down,
.fh__impact--mixed{
  color: var(--muted) !important;
}

/* ===== Price histogram ===== */
.mo-hist-bar--cheap{
  background: #dbe6f3 !important;
}

.mo-hist-bar--normal{
  background: #9fb8d8 !important;
}

.mo-hist-bar--premium{
  background: var(--brand-700) !important;
}

/* ===== Generic insight/quality pills still purple ===== */
.pcard__qual{
  border-color: var(--border) !important;
  background: #f7f9fc !important;
  color: var(--text-soft) !important;
}

.pcard__qual--strong{
  background: #eef4fb !important;
  border-color: #d3e0f0 !important;
  color: var(--brand-700) !important;
}

.pcard__qual--good{
  background: #f3f7fc !important;
  border-color: #dbe5f1 !important;
  color: #5f7693 !important;
}

.pcard__qual--loose{
  background: #f7f9fc !important;
  border-color: var(--border) !important;
  color: var(--muted) !important;
}

/* ===== Factcheck icon inside product cards ===== */
.icon-btn__img.icon-btn__img--factcheck{
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
}

/* ===== Shared strap / scrollbar colors ===== */
.pi-strap::-webkit-scrollbar-track{
  background: #e9edf2 !important;
}

.pi-strap::-webkit-scrollbar-thumb{
  background: #b7c7d9 !important;
}

.pi-strap::-webkit-scrollbar-thumb:hover{
  background: #97adc6 !important;
}
/* =========================================================
   HEADER / SUBHEADER — compact balanced scale
========================================================= */

.pz-nav{
  min-height: 36px !important;
  background: #f7f9fc !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  position: relative;
  z-index: 1030;
}

.pz-subnav{
  min-height: 18px !important;
  background: #f7f9fc !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  position: relative;
  z-index: 1029;
  margin-top: 0 !important;
}

.pz-subnav .container,
.pz-subnav .container-fluid{
  position: relative;
}

.pz-subnav::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(180deg, #eef3f8 0%, #f7f9fc 100%);
  pointer-events: none;
}

.pz-nav .container-fluid,
.pz-nav .container,
.pz-nav .row{
  min-height: 36px !important;
  align-items: center !important;
}

.pz-subnav .container-fluid,
.pz-subnav .container,
.pz-subnav .row{
  min-height: 18px !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* keep text scale, only reduce vertical thickness */
.brand-name{
  display: inline-flex !important;
  align-items: center !important;
  min-height: auto !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.pz-navlink,
.pz-user,
.pz-lang{
  min-height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.header-search-input{
  min-height: 24px !important;
  height: 24px !important;
  border-radius: 10px !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

.header-search-btn{
  width: 24px !important;
  height: 24px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.header-search-btn i{
  font-size: 0.82rem !important;
  line-height: 1 !important;
}

.pz-subnav-link{
  min-height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 0.35rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

.pz-subnav .nav,
.pz-subnav nav{
  font-size: 0.95rem !important;
}

.pz-nav::before,
.pz-nav::after{
  display: none !important;
}

.pz-nav + .pz-subnav{
  border-top: 0 !important;
  box-shadow: none !important;
}

.pz-user,
.pz-lang,
.pz-nav .dropdown-toggle,
.pz-nav .btn,
.pz-nav .nav-link{
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pz-user i,
.pz-lang i,
.pz-nav .dropdown-toggle i,
.pz-nav .btn i,
.pz-nav .nav-link i,
.pz-nav svg{
  font-size: 0.95rem !important;
  width: 0.95rem !important;
  height: 0.95rem !important;
  line-height: 1 !important;
}

.pz-nav .dropdown-toggle,
.pz-user,
.pz-lang,
.pz-nav .nav-link{
  gap: 0.24rem !important;
}

/* mobile */
@media (max-width: 767.98px){
  .pz-nav{
    min-height: 32px !important;
  }

  .pz-subnav{
    min-height: 16px !important;
  }

  .pz-subnav::before{
    height: 2px;
  }

  .pz-nav .container-fluid,
  .pz-nav .container,
  .pz-nav .row{
    min-height: 32px !important;
  }

  .pz-subnav .container-fluid,
  .pz-subnav .container,
  .pz-subnav .row{
    min-height: 16px !important;
  }

  .brand-name{
    font-size: 1.15rem !important;
  }

  .header-search-input{
    min-height: 22px !important;
    height: 22px !important;
    font-size: 0.9rem !important;
    border-radius: 9px !important;
  }

  .header-search-btn{
    width: 22px !important;
    height: 22px !important;
    border-radius: 7px !important;
  }

  .pz-navlink,
  .pz-user,
  .pz-lang{
    font-size: 0.9rem !important;
  }

  .pz-subnav-link{
    font-size: 0.9rem !important;
  }

  .pz-user i,
  .pz-lang i,
  .pz-nav .dropdown-toggle i,
  .pz-nav .btn i,
  .pz-nav .nav-link i,
  .pz-nav svg{
    font-size: 0.9rem !important;
    width: 0.9rem !important;
    height: 0.9rem !important;
  }
}
/* =========================================================
   APP WIDTH EXPANSION — use laptop width more fully
   append at very bottom of components.css
========================================================= */

.ss-container{
  width: calc(100% - 48px) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

@media (max-width: 767.98px){
  .ss-container{
    width: calc(100% - 20px) !important;
  }
}

/* =========================================================
   HEADER SEARCH — let it stretch toward the brand
   append at very bottom of components.css
========================================================= */

/* make the middle search area consume the available header space */
.pz-nav form,
.pz-nav .position-relative{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* give the search block a little breathing room from brand/controls */
.pz-nav form{
  margin-left: clamp(18px, 1.8vw, 36px) !important;
  margin-right: clamp(10px, 1vw, 18px) !important;
}

/* remove old fixed-width cap and let input fill the form */
.header-search-input{
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto !important;
}

/* keep the button fixed while the input stretches */
.header-search-btn{
  flex: 0 0 auto !important;
}

/* mobile: keep it controlled */
@media (max-width: 767.98px){
  .pz-nav form{
    margin-left: 10px !important;
    margin-right: 8px !important;
  }

  .header-search-input{
    width: 100% !important;
  }
}
/* =========================================================
   ANTI-SQUEEZE LAYER
   append at very bottom of components.css
   goal:
   - logo never shrinks
   - header controls resist compression
   - top chips resist being crushed
========================================================= */

/* ---------- header shell ---------- */
.pz-nav .container,
.pz-nav .container-fluid,
.pz-nav .row{
  flex-wrap: nowrap !important;
}

/* logo / brand should never squeeze */
.brand-name,
.pz-brand,
.pz-logo,
.navbar-brand{
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  min-width: max-content !important;
  white-space: nowrap !important;
}

/* right-side controls should not collapse into tiny pieces */
.pz-user,
.pz-lang,
.pz-nav .dropdown,
.pz-nav .dropdown-toggle,
.pz-nav .btn{
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  min-width: max-content !important;
  white-space: nowrap !important;
}

/* keep the middle search area as the only flexible region */
.pz-nav form,
.pz-nav .position-relative{
  flex: 1 1 auto !important;
  min-width: 280px !important;
  max-width: none !important;
}

/* input stretches, button stays fixed */
.header-search-input{
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.header-search-btn{
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
}

/* ---------- top chips / segmented controls ---------- */
.gbar,
.gbar__chips{
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

.gtab,
.gchip,
.gbands__seg,
.gbar__filterBtn,
.gbar__scrollBtn{
  flex-shrink: 0 !important;
}

/* keep sort block stable too */
.gbar__sort,
.pfhead__sort,
.gbar__sortSel,
.pfhead__sortSel{
  flex-shrink: 0 !important;
}
/* =========================================================
   RESULTS PRODUCT CARDS — larger vertical cards
   goal:
   - taller rectangular cards
   - image takes close to half the card height
   - larger source / title / button / factcheck
   - only price is bold
========================================================= */

.pcard{
  min-height: 620px !important;
  padding: 18px !important;
  border-radius: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.pcard__media{
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #f8fafd !important;
  min-height: 290px !important;
  height: 290px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 12px !important;
}

.pcard__img{
  width: 100% !important;
  height: 290px !important;
  min-height: 290px !important;
  object-fit: contain !important;
  display: block !important;
  background: #ffffff !important;
}

/* source row */
.pcard__source-row{
  margin-top: 2px !important;
  margin-bottom: 10px !important;
}

.src-badge{
  min-height: 34px !important;
  padding: 0.42rem 0.8rem !important;
  gap: 8px !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  border-radius: 999px !important;
}

.src-badge__logo{
  width: 20px !important;
  height: 20px !important;
}

/* title */
.pcard__title{
  font-size: 1.22rem !important;
  line-height: 1.38 !important;
  font-weight: 400 !important;
  margin: 0 0 10px 0 !important;
  color: var(--text) !important;

  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.pcard__ext{
  font-size: 0.95em !important;
  opacity: 0.5 !important;
}

/* optional seller/meta text if present */
.rating-row,
.pcard__meta,
.pcard__seller,
.pcard__sub{
  font-size: 0.98rem !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
}

/* price is the only bold text */
.pcard__price{
  font-size: 1.6rem !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  margin: 10px 0 16px 0 !important;
  color: var(--text) !important;
}

/* keep lower area aligned */
.pcard__cta{
  margin-top: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

/* product page button */
.btn-ss--small{
  min-height: 44px !important;
  padding: 0.72rem 1rem !important;
  font-size: 0.98rem !important;
  font-weight: 400 !important;   /* not bold */
  border-radius: 999px !important;
  line-height: 1 !important;
}

/* factcheck button — same visual thickness as product page button */
.icon-btn,
.icon-btn.icon-btn--factcheck{
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 12px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.icon-btn__img.icon-btn__img--factcheck{
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  display: block !important;
}

/* responsive */
@media (max-width: 1400px){
  .pcard{
    min-height: 590px !important;
  }

  .pcard__media,
  .pcard__img{
    min-height: 270px !important;
    height: 270px !important;
  }

  .pcard__title{
    font-size: 1.12rem !important;
  }

  .pcard__price{
    font-size: 1.45rem !important;
  }
}

@media (max-width: 900px){
  .pcard{
    min-height: 540px !important;
    padding: 16px !important;
  }

  .pcard__media,
  .pcard__img{
    min-height: 240px !important;
    height: 240px !important;
  }

  .src-badge{
    font-size: 0.84rem !important;
  }

  .pcard__title{
    font-size: 1.02rem !important;
  }

  .pcard__price{
    font-size: 1.28rem !important;
  }

  .btn-ss--small{
    min-height: 40px !important;
    font-size: 0.92rem !important;
  }

  .icon-btn,
  .icon-btn.icon-btn--factcheck{
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .icon-btn__img.icon-btn__img--factcheck{
    width: 24px !important;
    height: 24px !important;
  }
}
/* =========================================================
   FOOTER — smaller typography + social icons
   append at very bottom of components.css
========================================================= */

.pz-footer{
  font-size: 0.92rem !important;
}

.pz-footer .text-muted.small{
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
}

.footer-title{
  font-size: 0.92rem !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  margin-bottom: 0.7rem !important;
  color: var(--text) !important;
}

.footer-link{
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
  margin: 0.28rem 0 !important;
  color: var(--text-soft) !important;
}

.footer-link:hover{
  color: var(--text) !important;
}

.pz-footer-bottom{
  border-top: 1px solid rgba(0,0,0,0.08) !important;
}

.pz-footer-bottom .small{
  font-size: 0.84rem !important;
  line-height: 1.5 !important;
}

/* social links */
.footer-social-link{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  color: var(--text-soft) !important;
  margin: 0.42rem 0 !important;
  min-height: 32px;
}

.footer-social-link:hover{
  color: var(--text) !important;
  text-decoration: none !important;
}

.footer-social-link__icon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text) !important;
  opacity: 0.92;
}

.footer-social-link__icon svg{
  width: 100%;
  height: 100%;
  display: block;
}

.footer-social-link__text{
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--text) !important;
}

.footer-social-link__handle{
  font-size: 0.84rem;
  line-height: 1.2;
  color: var(--muted) !important;
  white-space: nowrap;
}

/* keep handle on next line if space is tight */
@media (max-width: 767.98px){
  .footer-social-link{
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    row-gap: 4px !important;
  }

  .footer-social-link__handle{
    margin-left: 28px;
  }
}
