/* Search Results Premium V2.6 — mobile compact + fully responsive */
.tf-search-premium-v2{
  --navy:#071528;--navy2:#0f2744;--blue:#1a56db;--gold:#ffc23a;--green:#059669;
  --border:#e8eef6;--muted:#64748b;--card:#fff;--radius:16px;
  --shadow:0 4px 18px rgba(15,39,68,.06);
  color:var(--navy2);width:100%
}
.tf-search-premium-v2 svg{display:inline-block;vertical-align:-2px;flex-shrink:0}

/* Shared content width — hero + entities + trending + shell ALL identical */
.tf-search-premium-v2{
  --tf-gutter: clamp(16px, 2.5vw, 40px);
  --tf-content-w: calc(100% - 2 * var(--tf-gutter));
}
.tf-search-premium-v2 .shell,
.tf-sr-hero,
.tf-sr-entities,
.tf-sr-trending{
  width: var(--tf-content-w) !important;
  max-width: var(--tf-content-w) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* ===== HERO — search-bar equal width + glossy product design (no photos) ===== */
.tf-sr-hero{
  margin-top:12px !important;
  margin-bottom:10px !important;
  box-sizing:border-box;
  border-radius:20px;
  overflow:hidden;
  position:relative;
  color:#fff;
  /* inner padding only — outer width locked by shared rule above */
  padding:26px clamp(20px, 2.2vw, 32px) 28px;
  box-shadow:0 14px 40px rgba(7,21,40,.2), inset 0 1px 0 rgba(255,255,255,.12);
  /* glossy product-style background */
  background:
    radial-gradient(1200px 400px at 85% 20%, rgba(56,189,248,.18), transparent 55%),
    radial-gradient(800px 360px at 70% 90%, rgba(251,191,36,.12), transparent 50%),
    radial-gradient(600px 300px at 10% 80%, rgba(99,102,241,.14), transparent 45%),
    linear-gradient(125deg, #05101c 0%, #0b2748 38%, #0e3a6e 72%, #0a2a52 100%);
}
.tf-sr-hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.02) 28%, transparent 55%),
    linear-gradient(105deg, transparent 40%, rgba(255,255,255,.04) 50%, transparent 60%);
  border-radius:inherit;
}
.tf-sr-hero::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.tf-sr-hero-inner{
  position:relative;z-index:1;
  display:grid;
  grid-template-columns:minmax(260px,1.1fr) minmax(220px,.9fr);
  gap:clamp(16px, 3vw, 40px);
  align-items:center;
  width:100%;margin:0;padding:0;max-width:none;
}
.tf-sr-eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:.16em;color:#7eb6ff;margin-bottom:8px}
.tf-sr-hero h1{font-size:clamp(26px,3.2vw,40px);font-weight:800;letter-spacing:-.03em;line-height:1.12;margin:0 0 10px;color:#fff}
.tf-sr-query{color:var(--gold)}
.tf-sr-hero p{font-size:14px;line-height:1.55;color:rgba(220,235,255,.92);max-width:520px;margin:0 0 16px}
.tf-sr-hero p strong{color:#fff;font-weight:700}
.tf-sr-expansion{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:14px;font-size:12px;font-weight:600;color:rgba(200,220,245,.88)}
.tf-sr-expansion a{display:inline-flex;align-items:center;min-height:28px;padding:0 12px;border-radius:999px;background:var(--gold);color:#0b2b52;font-size:12px;font-weight:800;text-decoration:none}

.tf-sr-stats{display:flex;flex-wrap:wrap;gap:10px}
.tf-sr-stat{
  display:flex;align-items:center;gap:10px;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);
  border-radius:14px;padding:10px 14px;min-width:132px;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12)
}
.tf-sr-stat-ico{color:#93c5fd;display:flex;opacity:.95}
.tf-sr-stat b{display:block;font-size:16px;font-weight:800;color:#fff;line-height:1.15}
.tf-sr-stat span{font-size:11px;font-weight:600;color:rgba(210,228,250,.88)}

/* Right visual — product stage + floating badges (bags design) OR yellow List CTA fallback */
.tf-sr-hero-visual{
  position:relative;min-height:180px;
  display:flex;align-items:center;justify-content:center;
  width:100%;padding:4px 0
}
.tf-sr-hero--with-visual .tf-sr-hero-inner{
  grid-template-columns:minmax(240px,1fr) minmax(280px,1.05fr);
  gap:clamp(12px, 2.5vw, 28px);
}
.tf-sr-hero-stage{
  position:relative;
  width:100%;
  min-height:200px;
  display:flex;align-items:center;justify-content:center;
}
.tf-sr-hero-photos{
  position:relative;
  width:100%;
  max-width:380px;
  height:200px;
  margin:0 auto;
}
.tf-sr-hero-photo{
  position:absolute;
  border-radius:14px;
  overflow:hidden;
  background:#0b2748;
  box-shadow:0 12px 28px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.12);
  transition:transform .2s ease;
}
.tf-sr-hero-photo img{
  width:100%;height:100%;object-fit:cover;display:block;
}
/* Arrange up to 5 photos in a pleasing collage */
.tf-sr-hero-photo--0{width:48%;height:72%;left:26%;top:14%;z-index:3}
.tf-sr-hero-photo--1{width:36%;height:52%;left:2%;top:8%;z-index:2;transform:rotate(-6deg)}
.tf-sr-hero-photo--2{width:36%;height:52%;right:2%;top:22%;z-index:2;transform:rotate(5deg)}
.tf-sr-hero-photo--3{width:28%;height:40%;left:12%;bottom:2%;z-index:1;transform:rotate(-3deg);opacity:.95}
.tf-sr-hero-photo--4{width:28%;height:40%;right:10%;bottom:0;z-index:1;transform:rotate(4deg);opacity:.95}

.tf-sr-hero-badges{
  position:absolute;inset:0;pointer-events:none;z-index:5;
}
.tf-sr-hero-badge{
  position:absolute;
  display:flex;align-items:center;gap:8px;
  padding:8px 12px 8px 10px;
  border-radius:12px;
  background:rgba(255,255,255,.96);
  color:#0b2b52;
  box-shadow:0 8px 22px rgba(7,21,40,.22);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.7);
  max-width:180px;
}
.tf-sr-hero-badge-ico{
  width:28px;height:28px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  color:#fff;
}
.tf-sr-hero-badge--suppliers .tf-sr-hero-badge-ico{background:linear-gradient(135deg,#1d4ed8,#3b82f6)}
.tf-sr-hero-badge--verified .tf-sr-hero-badge-ico{background:linear-gradient(135deg,#059669,#10b981)}
.tf-sr-hero-badge--direct .tf-sr-hero-badge-ico{background:linear-gradient(135deg,#d97706,#f59e0b)}
.tf-sr-hero-badge-text{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.tf-sr-hero-badge-text strong{font-size:11.5px;font-weight:800;color:#0b2b52}
.tf-sr-hero-badge-text em{font-size:10px;font-weight:600;font-style:normal;color:#64748b}
.tf-sr-hero-badge--suppliers{top:6%;left:0}
.tf-sr-hero-badge--verified{top:38%;right:0}
.tf-sr-hero-badge--direct{bottom:8%;left:8%}

/* Fallback yellow CTA when no product images */
.tf-sr-list-cta{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  text-align:center;text-decoration:none;
  width:min(100%,260px);min-height:120px;
  padding:22px 20px;
  border-radius:18px;
  background:linear-gradient(145deg,#ffd54a 0%,#ffc23a 45%,#f5a623 100%);
  color:#0b2b52;
  box-shadow:0 12px 32px rgba(245,166,35,.35), inset 0 1px 0 rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.35);
  transition:transform .15s,box-shadow .15s
}
.tf-sr-list-cta:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 36px rgba(245,166,35,.45), inset 0 1px 0 rgba(255,255,255,.6)
}
.tf-sr-list-cta-title{
  font-size:16px;font-weight:800;letter-spacing:-.01em;line-height:1.25;color:#0b2b52
}
.tf-sr-list-cta-sub{
  font-size:12px;font-weight:600;color:rgba(11,43,82,.72);line-height:1.3
}

@media (max-width:900px){
  .tf-sr-hero--with-visual .tf-sr-hero-inner{grid-template-columns:1fr}
  .tf-sr-hero-stage{min-height:160px}
  .tf-sr-hero-photos{height:160px;max-width:300px}
  .tf-sr-hero-badge{padding:6px 10px 6px 8px;max-width:150px}
  .tf-sr-hero-badge-ico{width:24px;height:24px}
  .tf-sr-hero-badge-text strong{font-size:10.5px}
  .tf-sr-hero-badge-text em{font-size:9px}
}
@media (max-width:560px){
  .tf-sr-hero-visual{min-height:140px}
  .tf-sr-hero-photos{height:130px}
  .tf-sr-hero-badge--suppliers{top:0;left:0}
  .tf-sr-hero-badge--verified{top:auto;bottom:28%;right:0}
  .tf-sr-hero-badge--direct{bottom:0;left:4%}
}

/* ===== ENTITIES — equal width to hero, bags compact ===== */
.tf-sr-entities{
  padding-top:8px;padding-bottom:4px;
  display:grid;grid-template-columns:1.25fr .75fr;gap:12px;
  align-items:stretch
}
.tf-sr-entity-block{
  background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
  padding:11px 12px 11px;box-shadow:var(--shadow);
  display:flex;flex-direction:column;min-width:0
}
.tf-sr-entity-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px;flex-shrink:0}
.tf-sr-entity-head h2{font-size:14.5px;font-weight:800;margin:0 0 2px;color:var(--navy2);display:flex;align-items:center;gap:6px}
.tf-sr-entity-ico{color:var(--blue);display:flex}
.tf-sr-entity-head p{margin:0;font-size:11.5px;color:var(--muted);font-weight:500}
.tf-sr-view-all{font-size:12px;font-weight:700;color:var(--blue);text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center;gap:3px}
.tf-sr-view-all:hover{text-decoration:underline}

/* Suppliers — always ONE row, 4 equal cards */
.tf-sr-supplier-scroll{overflow:visible;margin:0;padding:0}
.tf-sr-supplier-row{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px;
  width:100%
}
.tf-sr-supplier-row:has(> :only-child),
.tf-sr-supplier-row:has(> :nth-child(2):last-child){
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr)) !important
}
.tf-sr-supplier-card{
  display:flex;flex-direction:column;gap:2px;
  padding:10px 11px;border:1px solid var(--border);border-radius:12px;
  text-decoration:none;color:inherit;background:#fafcfe;
  transition:border-color .15s,box-shadow .15s,transform .15s;
  min-height:0;height:100%
}
.tf-sr-supplier-card:hover{border-color:#b8d0ef;box-shadow:0 4px 14px rgba(26,86,219,.09);transform:translateY(-1px)}
.tf-sr-sup-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:4px}
.tf-sr-sup-logo{
  width:40px;height:40px;border-radius:50%;overflow:hidden;
  background:#eef3f9;flex-shrink:0;border:1px solid #e2eaf3
}
.tf-sr-sup-logo img{width:100%;height:100%;object-fit:cover;display:block}
.tf-sr-logo-fallback{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#1a56db,#0d2a4d);color:#fff;font-weight:800;font-size:15px
}
.tf-sr-verified-pill{
  display:inline-flex;align-items:center;gap:2px;
  font-size:10px;font-weight:700;color:var(--green);
  background:#ecfdf5;border:1px solid #a7f3d0;border-radius:999px;padding:2px 7px;white-space:nowrap
}
.tf-sr-sup-name{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-size:12px;font-weight:800;color:var(--navy2);line-height:1.25;margin-bottom:1px;
  min-height:2.4em
}
.tf-sr-location{display:flex;align-items:center;gap:3px;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tf-sr-location svg{color:#ef4444;flex-shrink:0}
.tf-sr-biz{
  display:block;font-size:11px;font-weight:600;color:#475569;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.tf-sr-rating{
  display:flex;align-items:center;gap:3px;font-size:11.5px;font-weight:700;color:#b45309;
  margin-top:2px;min-height:16px
}
.tf-sr-stars{color:#f59e0b;display:flex}
.tf-sr-rating em{font-style:normal;font-weight:600;color:var(--muted);font-size:10.5px}
.tf-sr-view-btn{
  margin-top:auto;display:inline-flex;align-items:center;justify-content:center;gap:3px;
  min-height:28px;padding:0 10px;border-radius:8px;background:#eff6ff;color:var(--blue);
  font-size:11.5px;font-weight:700;width:100%;box-sizing:border-box
}
.tf-sr-supplier-card:hover .tf-sr-view-btn{background:#dbeafe}

/* Categories — always ONE row (max 4 tiles) */
.tf-sr-category-row{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(88px, 1fr)) !important;
  gap:8px;
  overflow:hidden;
  width:100%;
  padding-bottom:0
}
.tf-sr-category-card{
  min-width:0;max-width:none;width:100%;
  display:flex;flex-direction:column;text-decoration:none;color:inherit;
  border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fafcfe;
  transition:border-color .15s,box-shadow .15s,transform .15s
}
/* when fewer than 4 categories, keep tiles compact left-aligned */
.tf-sr-category-row:has(> :only-child){grid-template-columns:minmax(0,120px) !important}
.tf-sr-category-row:has(> :nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,120px)) !important}
.tf-sr-category-row:has(> :nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,120px)) !important}
.tf-sr-category-card:hover{border-color:#b8d0ef;box-shadow:0 4px 14px rgba(26,86,219,.09);transform:translateY(-1px)}
.tf-sr-cat-img{aspect-ratio:1;background:#eef3f9;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}
.tf-sr-cat-img img{width:100%;height:100%;object-fit:cover;display:block}
.tf-sr-cat-fallback{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  font-size:18px;font-weight:800;color:#94a3b8;background:linear-gradient(145deg,#eef3f9,#e2eaf3)
}
.tf-sr-cat-body{padding:6px 5px 8px;text-align:center}
.tf-sr-cat-body strong{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-size:12px;font-weight:800;color:var(--navy2);margin-bottom:2px;line-height:1.25
}
.tf-sr-cat-body span{font-size:10px;font-weight:600;color:var(--blue);display:inline-flex;align-items:center;gap:2px;justify-content:center}
.tf-sr-cat-count{color:var(--muted)!important;font-weight:600!important}

/* TRENDING full width */
.tf-sr-trending{
  padding-top:10px;padding-bottom:16px;
  display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 14px
}
.tf-sr-trending-left{display:flex;flex-direction:column;gap:1px;min-width:120px;flex:0 0 auto}
.tf-sr-trending-label{font-size:13px;font-weight:800;color:var(--navy2);display:inline-flex;align-items:center;gap:5px}
.tf-sr-trending-label svg{color:#f97316}
.tf-sr-trending-left small{font-size:11px;color:var(--muted);font-weight:500}
.tf-sr-trending-chips{display:flex;flex-wrap:wrap;gap:7px;flex:1 1 220px;min-width:0}
.tf-sr-trending-chips a{
  display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:0 12px;
  border-radius:999px;border:1px solid var(--border);background:#fff;
  color:var(--navy2);font-size:12.5px;font-weight:600;text-decoration:none;
  white-space:nowrap
}
.tf-sr-trending-chips a:hover{border-color:#93b4e0;background:#f0f6ff;color:var(--blue)}
.tf-sr-trending-chips a svg{color:var(--muted)}

/* RESULTS full width */
.tf-search-premium-v2 .section-search-results{padding:6px 0 40px;width:100%}
.tf-sr-results-head{
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;
  gap:10px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--border)
}
.tf-sr-eyebrow-sm{display:block;font-size:10px;font-weight:800;letter-spacing:.12em;color:#64748b;margin-bottom:2px}
.tf-sr-results-head h2{font-size:20px;font-weight:800;margin:0;color:var(--navy2)}
.tf-sr-results-meta{font-size:12.5px;color:var(--muted);text-align:right}
.tf-sr-results-meta b{color:var(--navy2);font-weight:800;font-size:14px}
.tf-sr-results-meta span{display:block;font-size:11px;margin-top:1px}
.tf-search-premium-v2 .catalog-layout{display:grid;grid-template-columns:240px 1fr;gap:20px;width:100%}

@media(max-width:1100px){
  .tf-sr-entities{grid-template-columns:1fr}
  .tf-sr-supplier-row{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
}
@media(max-width:960px){
  .tf-sr-hero-inner{grid-template-columns:1fr;gap:14px}
  .tf-sr-hero-visual{min-height:auto}
  .tf-sr-entities{grid-template-columns:1fr;gap:10px}
  .tf-sr-bi-4{display:none}
  .tf-sr-supplier-row{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .tf-sr-category-row{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .tf-search-premium-v2 .catalog-layout{grid-template-columns:1fr}
  /* Trending: stack label above chips so chips get full width */
  .tf-sr-trending{
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding-top:8px;
    padding-bottom:12px;
  }
  .tf-sr-trending-left{
    min-width:0;
    width:100%;
  }
  .tf-sr-trending-chips{
    width:100%;
    flex:none;
  }
}
@media(max-width:700px){
  .tf-sr-supplier-row{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .tf-sr-hero h1{font-size:clamp(22px,6vw,30px)}
  .tf-sr-hero p{font-size:13px;margin-bottom:12px}
}
@media(max-width:560px){
  .tf-search-premium-v2{
    --tf-gutter:12px;
  }
  .tf-sr-hero{
    padding:16px 14px 16px;
    border-radius:14px;
    margin-top:8px !important;
    margin-bottom:6px !important;
  }
  .tf-sr-eyebrow{font-size:9px;margin-bottom:6px;letter-spacing:.14em}
  .tf-sr-hero h1{font-size:clamp(20px,6.2vw,26px);margin-bottom:8px}
  .tf-sr-hero p{font-size:12.5px;line-height:1.5;margin-bottom:12px}
  /* Compact stats: 3 equal columns on phone */
  .tf-sr-stats{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    flex-direction:unset;
  }
  .tf-sr-stat{
    width:auto;
    min-width:0;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    padding:8px 8px;
    border-radius:10px;
  }
  .tf-sr-stat-ico{display:none}
  .tf-sr-stat b{font-size:14px}
  .tf-sr-stat span{font-size:9.5px;line-height:1.2}
  .tf-sr-list-cta{
    width:100%;
    min-height:88px;
    padding:16px 14px;
    border-radius:14px;
  }
  .tf-sr-list-cta-title{font-size:14.5px}
  .tf-sr-list-cta-sub{font-size:11px}
  /* Entities tighter */
  .tf-sr-entities{gap:8px;padding-top:4px;padding-bottom:2px}
  .tf-sr-entity-block{padding:10px 10px 10px;border-radius:12px}
  .tf-sr-entity-head{margin-bottom:8px}
  .tf-sr-entity-head h2{font-size:13.5px}
  .tf-sr-entity-head p{font-size:11px}
  .tf-sr-view-all{font-size:11.5px}
  .tf-sr-supplier-row{
    grid-template-columns:1fr 1fr !important;
    gap:8px;
  }
  .tf-sr-supplier-card{padding:8px 9px;border-radius:10px;gap:1px}
  .tf-sr-sup-logo{width:34px;height:34px}
  .tf-sr-sup-name{font-size:12.5px}
  .tf-sr-location,.tf-sr-biz{font-size:10.5px}
  .tf-sr-rating{font-size:11px}
  .tf-sr-view-btn{font-size:11px;min-height:28px;margin-top:4px;padding:0 8px}
  .tf-sr-category-row{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px;
  }
  .tf-sr-cat-body strong{font-size:11px}
  .tf-sr-cat-count,.tf-sr-cat-body span{font-size:10px}
  /* Trending chips denser */
  .tf-sr-trending{padding-top:6px;padding-bottom:10px;gap:6px}
  .tf-sr-trending-label{font-size:12.5px}
  .tf-sr-trending-left small{font-size:10.5px}
  .tf-sr-trending-chips{gap:6px}
  .tf-sr-trending-chips a{
    min-height:28px;
    padding:0 10px;
    font-size:11.5px;
  }
  /* Results head */
  .tf-sr-results-head{flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:10px;padding-bottom:10px}
  .tf-sr-results-meta{text-align:left}
  .tf-sr-results-head h2{font-size:17px}
  .tf-sr-bi-3{display:none}
  .tf-search-premium-v2 .section-search-results{padding:4px 0 28px}
}
@media(max-width:380px){
  .tf-sr-stats{grid-template-columns:1fr;gap:6px}
  .tf-sr-stat{flex-direction:row;align-items:center;gap:8px;padding:8px 10px}
  .tf-sr-stat-ico{display:flex}
  .tf-sr-supplier-card{padding:8px}
  .tf-sr-sup-name{font-size:12px}
}

/* ============================================================
   Premium sidebar filters — search results (2026.10.13.9)
   ============================================================ */
.tf-search-premium-v2 .filter-sidebar,
.tf-search-marketplace .filter-sidebar{
  background:#fff !important;
  border:1px solid #e2e8f0 !important;
  border-radius:16px !important;
  box-shadow:0 8px 24px rgba(15,39,68,.05) !important;
  padding:0 !important;
  overflow:hidden;
  align-self:start;
  position:sticky;
  top:88px;
}
.tf-search-premium-v2 .catalog-filter,
.tf-search-marketplace .catalog-filter{
  padding:16px 16px 18px !important;
  display:flex;
  flex-direction:column;
  gap:14px;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

.tf-search-premium-v2 .filter-head,
.tf-search-marketplace .filter-head{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 2px !important;
  padding:0 0 12px !important;
  border-bottom:1px solid #eef2f7 !important;
}
.tf-search-premium-v2 .filter-head > div,
.tf-search-marketplace .filter-head > div{
  display:flex !important;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.tf-search-premium-v2 .filter-head strong,
.tf-search-marketplace .filter-head strong{
  font-size:15px !important;
  font-weight:800 !important;
  color:#0f2744 !important;
  letter-spacing:-.01em;
}
.tf-search-premium-v2 .filter-head .tf-filter-active-pill,
.tf-search-premium-v2 .filter-head span,
.tf-search-marketplace .filter-head .tf-filter-active-pill,
.tf-search-marketplace .filter-head span{
  display:inline-flex !important;
  align-items:center;
  min-height:22px;
  padding:0 8px !important;
  border-radius:999px !important;
  background:#eef4ff !important;
  color:#1d4ed8 !important;
  font-size:11px !important;
  font-weight:800 !important;
  letter-spacing:.01em;
}
.tf-search-premium-v2 .filter-head button,
.tf-search-marketplace .filter-head button{
  display:none;
  width:32px;height:32px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;cursor:pointer;
}

.tf-search-premium-v2 .tf-filter-field,
.tf-search-marketplace .tf-filter-field,
.tf-search-premium-v2 .tf-facet-group,
.tf-search-marketplace .tf-facet-group{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  min-width:0;
}
.tf-search-premium-v2 .tf-filter-field > span,
.tf-search-premium-v2 .tf-facet-group > legend,
.tf-search-marketplace .tf-filter-field > span,
.tf-search-marketplace .tf-facet-group > legend{
  font-size:12px !important;
  font-weight:800 !important;
  color:#475569 !important;
  letter-spacing:.01em;
  padding:0 !important;
  margin:0 !important;
}
.tf-search-premium-v2 .catalog-filter input[type="search"],
.tf-search-premium-v2 .catalog-filter input[type="number"],
.tf-search-premium-v2 .catalog-filter input[type="text"],
.tf-search-premium-v2 .catalog-filter select,
.tf-search-marketplace .catalog-filter input[type="search"],
.tf-search-marketplace .catalog-filter input[type="number"],
.tf-search-marketplace .catalog-filter input[type="text"],
.tf-search-marketplace .catalog-filter select{
  width:100% !important;
  box-sizing:border-box !important;
  min-height:40px !important;
  padding:0 12px !important;
  border:1px solid #dbe3ef !important;
  border-radius:10px !important;
  background:#fff !important;
  color:#0f2744 !important;
  font-size:13px !important;
  font-weight:600 !important;
  box-shadow:none !important;
  outline:none !important;
}
.tf-search-premium-v2 .catalog-filter input:focus,
.tf-search-premium-v2 .catalog-filter select:focus,
.tf-search-marketplace .catalog-filter input:focus,
.tf-search-marketplace .catalog-filter select:focus{
  border-color:#93b4e0 !important;
  box-shadow:0 0 0 3px rgba(37,99,235,.12) !important;
}

/* Country list — horizontal rows, no giant triangle */
.tf-search-premium-v2 .tf-country-list,
.tf-search-marketplace .tf-country-list,
.tf-search-premium-v2 .tf-country-more-list,
.tf-search-marketplace .tf-country-more-list{
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;
  margin:0 !important;
  padding:0 !important;
}
.tf-search-premium-v2 .tf-country-row,
.tf-search-marketplace .tf-country-row{
  display:grid !important;
  grid-template-columns:18px 22px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:8px !important;
  min-height:36px !important;
  padding:4px 8px !important;
  margin:0 !important;
  border-radius:10px !important;
  cursor:pointer !important;
  color:#1e3a5f !important;
  font-size:13px !important;
  font-weight:600 !important;
  background:transparent !important;
  transition:background .15s ease;
}
.tf-search-premium-v2 .tf-country-row:hover,
.tf-search-marketplace .tf-country-row:hover{
  background:#f5f8fc !important;
}
.tf-search-premium-v2 .tf-country-row:has(input:checked),
.tf-search-marketplace .tf-country-row:has(input:checked){
  background:#eff6ff !important;
  color:#0f2744 !important;
}
.tf-search-premium-v2 .tf-country-row input,
.tf-search-marketplace .tf-country-row input{
  appearance:none !important;
  -webkit-appearance:none !important;
  width:16px !important;
  height:16px !important;
  margin:0 !important;
  border:1.5px solid #c5d0de !important;
  border-radius:50% !important;
  background:#fff !important;
  display:grid !important;
  place-items:center !important;
  flex-shrink:0 !important;
}
.tf-search-premium-v2 .tf-country-row input:checked,
.tf-search-marketplace .tf-country-row input:checked{
  border-color:#2563eb !important;
  background:#2563eb !important;
  box-shadow:inset 0 0 0 3px #fff !important;
}
.tf-search-premium-v2 .tf-country-flag,
.tf-search-marketplace .tf-country-flag{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:22px !important;
  min-width:22px !important;
  font-size:16px !important;
  line-height:1 !important;
}
.tf-search-premium-v2 .tf-country-name,
.tf-search-marketplace .tf-country-name{
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  font-size:13px !important;
  font-weight:650 !important;
  color:inherit !important;
}
.tf-search-premium-v2 .tf-country-count,
.tf-search-marketplace .tf-country-count{
  padding:2px 7px !important;
  border-radius:999px !important;
  background:#f1f5f9 !important;
  color:#64748b !important;
  font-size:11px !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}
.tf-search-premium-v2 .tf-country-row:has(input:checked) .tf-country-count,
.tf-search-marketplace .tf-country-row:has(input:checked) .tf-country-count{
  background:#dbeafe !important;
  color:#1d4ed8 !important;
}

/* Kill giant default details triangle */
.tf-search-premium-v2 .tf-country-more,
.tf-search-marketplace .tf-country-more{
  margin-top:4px !important;
  border:0 !important;
  background:transparent !important;
}
.tf-search-premium-v2 .tf-country-more > summary,
.tf-search-marketplace .tf-country-more > summary{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  padding:6px 8px !important;
  color:#2563eb !important;
  font-size:12.5px !important;
  font-weight:800 !important;
  cursor:pointer !important;
  list-style:none !important;
  border-radius:8px !important;
}
.tf-search-premium-v2 .tf-country-more > summary::-webkit-details-marker,
.tf-search-marketplace .tf-country-more > summary::-webkit-details-marker{display:none !important}
.tf-search-premium-v2 .tf-country-more > summary::marker,
.tf-search-marketplace .tf-country-more > summary::marker{content:"" !important;display:none !important}
.tf-search-premium-v2 .tf-country-more > summary svg,
.tf-search-marketplace .tf-country-more > summary svg{
  width:14px !important;
  height:14px !important;
  max-width:14px !important;
  max-height:14px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2 !important;
  flex-shrink:0 !important;
  transition:transform .18s ease !important;
}
.tf-search-premium-v2 .tf-country-more[open] > summary svg,
.tf-search-marketplace .tf-country-more[open] > summary svg{
  transform:rotate(180deg) !important;
}
.tf-search-premium-v2 .tf-country-more-list,
.tf-search-marketplace .tf-country-more-list{
  margin-top:4px !important;
}

/* Price range row */
.tf-search-premium-v2 .tf-price-range,
.tf-search-marketplace .tf-price-range,
.tf-search-premium-v2 .catalog-filter .tf-range-row,
.tf-search-marketplace .catalog-filter .tf-range-row{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:8px !important;
}

/* Actions */
.tf-search-premium-v2 .catalog-filter .filter-actions,
.tf-search-marketplace .catalog-filter .filter-actions,
.tf-search-premium-v2 .catalog-filter button[type="submit"],
.tf-search-marketplace .catalog-filter button[type="submit"]{
  margin-top:4px;
}
.tf-search-premium-v2 .catalog-filter button[type="submit"],
.tf-search-marketplace .catalog-filter button[type="submit"]{
  width:100% !important;
  min-height:42px !important;
  border:0 !important;
  border-radius:11px !important;
  background:linear-gradient(135deg,#1d4ed8,#2563eb) !important;
  color:#fff !important;
  font-size:13.5px !important;
  font-weight:800 !important;
  cursor:pointer !important;
  box-shadow:0 6px 16px rgba(37,99,235,.22) !important;
}
.tf-search-premium-v2 .catalog-filter .filter-clear,
.tf-search-marketplace .catalog-filter .filter-clear{
  display:block;
  text-align:center;
  margin-top:6px;
  color:#64748b !important;
  font-size:12.5px !important;
  font-weight:700 !important;
  text-decoration:none !important;
}

/* Checkbox buying options */
.tf-search-premium-v2 .tf-facet-group label,
.tf-search-marketplace .tf-facet-group label:not(.tf-country-row){
  display:flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  font-size:13px;
  font-weight:600;
  color:#334155;
}

@media(max-width:960px){
  .tf-search-premium-v2 .filter-sidebar,
  .tf-search-marketplace .filter-sidebar{
    position:fixed !important;
    z-index:1500;
    left:0;top:0;bottom:0;
    width:min(340px,88vw);
    border-radius:0 !important;
    transform:translateX(-105%);
    transition:transform .22s ease;
    overflow:auto;
  }
  .tf-search-premium-v2 .filter-sidebar.open,
  .tf-search-premium-v2 .filter-sidebar.is-open,
  .tf-search-marketplace .filter-sidebar.open,
  .tf-search-marketplace .filter-sidebar.is-open{
    transform:translateX(0);
  }
  .tf-search-premium-v2 .filter-head button,
  .tf-search-marketplace .filter-head button{display:inline-flex !important;align-items:center;justify-content:center}
}
