/*
 * BINABY | components.css
 * Shared cards, filters, badges, buttons and global component refinements.
 * Main selectors: .pcard, .fh, .src-badge, .pz-nav
 * Keep cascade order and media conditions. Edit existing rules instead of appending patches.
 * Shared tokens: site.css. File map and rationale: CSS_MAINTENANCE.md.
 */

/* Header */

.brand-name {
  letter-spacing: 0.2px;
}

.pz-navlink {
  font-weight: 600;
  padding: .5rem .75rem;
  text-decoration: none;
  border-radius: 999px;
}

.pz-user,
.pz-lang {
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: 999px;
}

/* Subheader bar under main navbar */

.pz-subnav-link {
  text-decoration: none;
}

/* Footer */

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

.footer-link {
  display: block;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

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

/* Section container used across pages */

.section {
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
}

/* Primary pill button used across pages */

.btn-ss {
  cursor: pointer;
  text-align: center;
}

/* Muted helper text */

.muted {
  font-size: 0.9rem;
}

/* Source label pill */

.source-pill {
  margin: 0.4rem 0;
}

/* Ratings row */

.rating-row {
  margin-bottom: 0.35rem;
}

.rating-row .stars {
  margin-right: 0.25rem;
}

/* Generic collapsible filter block */

.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;
  cursor: pointer;
}

.gflt__chev {
  display: inline-block;
  transform: rotate(45deg);
  margin-left: 8px;
}

.gflt[open] .gflt__chev {
  transform: rotate(-135deg);
}

.gflt__body {
  display: flex;
  flex-direction: column;
}

/* Filter options (checkbox / radio) */

.gopt {
  display: grid;
  align-items: center;
}

.gopt input {
  margin: 0;
}

/* Radio-only layout */

.gopt--radio {
  grid-template-columns: 16px 1fr;
}

/* Select dropdown */

.gselect {
  width: 100%;
  padding: 8px 10px;
}

/* Price range inputs */

.gprice {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.gprice__in {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.gprice__go {
  padding: 6px 10px;
  font-size: 13px;
  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;
}

.src-pill .src-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  transition: box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

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

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

.swatch {
  border-radius: 999px;
  display: inline-block;
}

.gopt--swatch .gopt__cnt {
  margin-left: auto;
  white-space: nowrap;
}

.pcard {
  height: 100%;
}

/* media */

/* source badge row */

.pcard__source-row {
  display: flex;
  justify-content: flex-start;
}

.src-badge__logo {
  object-fit: contain;
}

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

/* title + tiny outbound icon */

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

.pcard__ext:hover {
  opacity: 1;
}

/* price */

/* small primary button (assumes btn-ss base exists) */

/* icon button */

.icon-btn {
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

/* Layout container */

.ss-container {
  margin: 0 auto;
}

/* Section spacing */

/* Card primitive (used on landing auth card) */

/* Hero wrapper */

.ss-hero {
  position: relative;
}

/* 2-column hero grid */

.ss-grid-2 {
  gap: 18px;
}

/* Typography */

/* Badge */

/* Inputs */

/* Buttons (does not touch your .btn-ss) */

.ss-btn {
  border: 1px solid transparent !important;
}

.ss-btn:active {
  transform: translateY(1px);
}

.ss-btn-primary:hover {
  box-shadow: 0 18px 44px rgba(139,92,246,0.28);
}

/* 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);
}

.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;
  cursor: pointer;
  padding: 2px 0;
}

.fh__meta {
  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;
}

.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;
}

/* ALL "on" dots are green (no red/grey by direction) */

/* keep these classes harmless (in case templates still emit them) */

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

/* OPTIONAL: if you also want the text always green */

/* 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: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%;
}

.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);
}

.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-section {
  padding: clamp(24px, 4vw, 48px) 0;
}

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

.ss-hero {
  overflow: hidden;
  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;
}

.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;
}

.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;
}

.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-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;
}

.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 {
  border-radius: 999px;
  background: #fff;
}

.rating-row {
  color: var(--muted) !important;
}

.pcard {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-1) !important;
}

.pcard__media {
  border: 1px solid var(--border);
}

.icon-btn {
  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;
}

.icon-btn.icon-btn--factcheck {
  border: 1px solid var(--border) !important;
  background: #fff !important;
  box-shadow: none !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 {
  pointer-events: none;
}

.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;
}

@media (max-width: 767.98px) {
  .section {
    padding: 14px !important;
  }

  .filter-title {
    font-size: 1.28rem !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;
}

.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;
}

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

.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;
}

.mo-hist-bar--cheap {
  background: #dbe6f3 !important;
}

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

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

.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;
}

.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;
}

.pz-nav {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  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-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;
  }
}

.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;
  }
}

/* make the middle search area consume the available header space */

/* 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 {
  max-width: none !important;
}

/* keep the button fixed while the input stretches */

/* mobile: keep it controlled */

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

.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;
}

.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;
}

.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;
  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;
  }
}

.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;
  }

  .pz-nav .container,
  .pz-nav .container-fluid,
  .pz-nav .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    row-gap: 8px !important;
  }

  .brand-name,
  .pz-brand,
  .pz-logo,
  .navbar-brand {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  .pz-user,
  .pz-lang,
  .pz-nav .dropdown,
  .pz-nav .dropdown-toggle,
  .pz-nav .btn,
  .pz-nav .nav-link {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  .pz-nav form {
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 6px 0 0 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .pz-nav .position-relative {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  .pz-nav .header-search-input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    line-height: 40px !important;
    font-size: 0.95rem !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .pz-nav .header-search-btn {
    flex: 0 0 40px !important;
  }

  .pz-nav .header-search-btn i {
    font-size: 1rem !important;
  }

  .pz-user span,
  .pz-lang span {
    display: none !important;
  }

  .pz-nav {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    min-height: auto !important;
  }

  .pz-nav .container,
  .pz-nav .container-fluid {
    min-height: auto !important;
  }

  .pz-subnav .nav,
  .pz-subnav nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 14px !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .pz-subnav .nav::-webkit-scrollbar,
  .pz-subnav nav::-webkit-scrollbar {
    display: none;
  }

  .pz-subnav-link {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 0.45rem 0 !important;
  }

  .pz-nav .header-search-input {
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 11px !important;
  }

  .pz-nav .header-search-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 8px !important;
  }
}

.affiliate-disclosure {
  margin: 10px 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  font-weight: 600;
  box-shadow: var(--shadow-1);
}

.affiliate-disclosure--results {
  margin-top: 2px;
  margin-bottom: 14px;
}

.affiliate-disclosure--insights {
  margin-top: 14px;
  margin-bottom: 14px;
}

@media (max-width: 767.98px) {
  .affiliate-disclosure {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.45;
  }
}

.src-badge__ext .bi-search,
.cmp-sourceLink__ext.bi-search,
.offer-row__sourceLink .bi-search,
.pcard__sourceLink .bi-search {
  color: currentColor;
}
