/* Tehberi Brands Premium 1.2.1 — robust /brands visual upgrade.
   Works on the existing manufacturer_list markup and is intentionally lightweight. */
body.tb-storefront #product-manufacturer.tbp-directory-hotfix{--tbp-b:#0757ff;--tbp-i:#101827;--tbp-m:#6b778b;--tbp-l:#e0e6ef;--tbp-s:#f5f7fa;--tbp-r:20px;padding-bottom:64px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix *{min-width:0}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix :is(a,button,input):focus-visible{outline:3px solid #86aaff;outline-offset:3px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.62fr);align-items:center;gap:38px;margin:0 0 24px;padding:34px 36px;border:1px solid var(--tbp-l);border-radius:26px;background:linear-gradient(135deg,#fff 0%,#f8faff 64%,#f0f5ff 100%);box-shadow:0 12px 34px rgba(17,42,78,.045);overflow:hidden;position:relative}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-hero:after{content:"";position:absolute;right:-115px;bottom:-165px;width:310px;height:310px;border:58px solid rgba(7,87,255,.045);border-radius:50%;pointer-events:none}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-hero-copy,body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-searchbox{position:relative;z-index:1}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-kicker{display:block;margin:0 0 12px;color:var(--tbp-b);font-size:10px;font-weight:800;letter-spacing:.2em;text-transform:uppercase}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-hero h1{margin:0;color:var(--tbp-i);font-size:clamp(38px,4vw,54px);line-height:.98;font-weight:780;letter-spacing:-.055em}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-hero p{max-width:56ch;margin:14px 0 0;color:var(--tbp-m);font-size:13px;line-height:1.6}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-total{display:inline-flex;align-items:center;min-height:28px;margin-top:15px;padding:5px 10px;border:1px solid #d7e2f4;border-radius:999px;background:#fff;color:#53627a;font-size:10px;font-weight:750}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-searchbox>label{display:block;margin:0 0 8px;color:#506077;font-size:11px;font-weight:750}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-search{position:relative;display:flex;height:58px;align-items:center;border:1px solid #d7dfe9;border-radius:17px;background:#fff;box-shadow:0 9px 24px rgba(19,43,77,.05);transition:border-color .18s ease,box-shadow .18s ease}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-search:focus-within{border-color:#9bb9ff;box-shadow:0 0 0 4px rgba(7,87,255,.07),0 9px 24px rgba(19,43,77,.05)}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-search>.fa{width:48px;color:#1c2d46;text-align:center;font-size:18px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-search input{width:100%;height:100%;padding:0 48px 0 0;border:0;outline:0;background:transparent;color:var(--tbp-i);font-size:14px;font-weight:550}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-search input::placeholder{color:#9aa5b5;font-weight:450}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-search input::-webkit-search-cancel-button{display:none}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-search button{position:absolute;right:8px;top:8px;display:grid;width:40px;height:40px;padding:0;place-items:center;border:0;border-radius:12px;background:#eef3fb;color:#64748b}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-search button:hover{background:#e5edff;color:var(--tbp-b)}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix [hidden]{display:none!important}

body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular{margin:0 0 24px;padding:24px;border:1px solid var(--tbp-l);border-radius:22px;background:#fff}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:15px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-head>div{display:flex;align-items:center;gap:10px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-section-index{display:grid;width:25px;height:25px;place-items:center;border-radius:7px;background:#edf3ff;color:var(--tbp-b);font-size:9px;font-weight:800}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-head h2{margin:0;color:var(--tbp-i);font-size:21px;font-weight:760;letter-spacing:-.03em}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-head p{margin:0;color:var(--tbp-m);font-size:11px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-card{position:relative;display:grid;grid-template-columns:92px minmax(0,1fr) 28px;align-items:center;gap:10px;min-height:82px;padding:10px 11px;border:1px solid #e1e6ed;border-radius:16px;background:#fbfcfe;color:var(--tbp-i);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-card.is-accent{border-color:#b5c9fb;background:#f7faff}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-logo{display:grid;width:92px;height:58px;place-items:center;border-radius:12px;background:#fff;overflow:hidden}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-logo img{display:block;max-width:82px;max-height:44px;object-fit:contain}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-card strong{font-size:12px;font-weight:720;line-height:1.25}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-card-arrow{display:grid;width:27px;height:27px;place-items:center;border-radius:50%;background:#f0f3f8;color:#7a8799;font-size:11px;transition:background .18s ease,color .18s ease,transform .18s ease}

body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-index{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:20px;margin:0 0 26px;padding:16px 18px;border:1px solid var(--tbp-l);border-radius:20px;background:#f7f9fc;box-shadow:none}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-index>strong{color:#26364d;font-size:11px;font-weight:800;line-height:1.3}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-index>div{display:flex;flex-wrap:wrap;gap:7px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-index a{display:grid;min-width:37px;height:37px;min-height:37px;padding:0 9px;place-items:center;border:1px solid #dbe2eb;border-radius:10px;background:#fff;color:#2456c8;font-size:12px;font-weight:760;box-shadow:0 2px 6px rgba(20,42,72,.02)}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-index a:hover{border-color:#a9c0f3;background:#f3f7ff;color:var(--tbp-b)}

body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-directory{display:grid;gap:0}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-group{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:start;gap:18px;padding:18px 0;border-bottom:1px solid #e7ebf1;scroll-margin-top:92px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-group>h2{position:sticky;top:86px;display:grid;width:54px;height:54px;margin:0;place-items:center;border:1px solid #dfe6f0;border-radius:16px;background:#f7f9fc;color:#10213b;font-size:25px;font-weight:780;letter-spacing:-.04em;box-shadow:0 4px 12px rgba(22,44,75,.025)}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-links>a.tbp-directory-card{position:relative;display:grid;grid-template-columns:74px minmax(0,1fr) 26px;align-items:center;gap:9px;min-height:76px;padding:9px 10px;border:1px solid #e1e6ed;border-radius:15px;background:#fff;color:var(--tbp-i);font-weight:650;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-links>a.tbp-directory-card.is-accent{border-color:#afc5f8;background:#f8faff}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-logo{display:grid;width:74px;height:54px;place-items:center;border-radius:11px;background:#f8fafc;overflow:hidden}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-logo img{display:block;max-width:65px;max-height:39px;object-fit:contain}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-monogram{display:grid;width:36px;height:36px;place-items:center;border-radius:10px;background:#edf3ff;color:#2852ac;font-size:11px;font-weight:820;letter-spacing:-.02em}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-name{overflow:hidden;color:#15243b;font-size:12px;font-weight:720;line-height:1.25;text-overflow:ellipsis}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-links>a.tbp-directory-card>.fa{display:none}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-empty{display:none;margin:28px 0;padding:38px 20px;border:1px dashed #ccd5e2;border-radius:20px;background:#fafbfd;text-align:center;color:#6b788b}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-empty.is-visible{display:block}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-empty i{display:grid;width:48px;height:48px;margin:0 auto 12px;place-items:center;border-radius:14px;background:#edf3ff;color:var(--tbp-b);font-size:17px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-empty strong{display:block;color:#25354d;font-size:16px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-empty span{display:block;margin-top:5px;font-size:11px}

@media(hover:hover){
body.tb-storefront #product-manufacturer.tbp-directory-hotfix :is(.tbp-popular-card,.tbp-directory-card):hover{transform:translateY(-2px);border-color:#b8c7dc;box-shadow:0 9px 22px rgba(18,43,77,.065)}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix :is(.tbp-popular-card,.tbp-directory-card):hover .tbp-card-arrow{background:#e8efff;color:var(--tbp-b);transform:translateX(1px)}
}
@media(max-width:1199px){body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-grid,body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-links{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:991px){body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-hero{grid-template-columns:1fr;gap:22px;padding:28px}body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-grid,body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-links{grid-template-columns:repeat(2,minmax(0,1fr))}body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-group>h2{position:static}}
@media(max-width:767px){
body.tb-storefront #product-manufacturer.tbp-directory-hotfix{padding-bottom:42px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-hero{margin-bottom:18px;padding:22px 18px;border-radius:20px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-kicker{font-size:8px;margin-bottom:9px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-hero h1{font-size:34px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-hero p{font-size:11.5px;margin-top:10px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-search{height:50px;border-radius:14px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-search button{top:6px;right:6px;width:38px;height:38px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular{padding:16px 12px;border-radius:18px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-head{align-items:flex-start;flex-direction:column;gap:5px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-head h2{font-size:18px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-head p{font-size:10px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-grid{gap:7px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-card{grid-template-columns:1fr 23px;grid-template-rows:45px auto;min-height:88px;padding:7px 8px;gap:2px 5px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-logo{grid-column:1/-1;width:100%;height:43px;background:transparent}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-logo img{max-width:92px;max-height:32px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-card strong{font-size:10.5px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-index{display:block;margin-bottom:18px;padding:11px 10px;border-radius:16px;overflow:hidden}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-index>strong{display:block;margin-bottom:8px;font-size:10px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-index>div{flex-wrap:nowrap;overflow-x:auto;margin-right:-10px;padding-right:10px;scrollbar-width:none}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-index>div::-webkit-scrollbar{display:none}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-index a{flex:0 0 auto;min-width:34px;height:34px;min-height:34px;padding:0 8px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-group{grid-template-columns:1fr;gap:8px;padding:14px 0;scroll-margin-top:75px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-group>h2{display:flex;width:auto;height:auto;align-items:center;justify-content:flex-start;border:0;background:transparent;box-shadow:none;font-size:21px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-links{gap:7px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-links>a.tbp-directory-card{grid-template-columns:1fr 22px;grid-template-rows:42px auto;min-height:84px;padding:7px 8px;gap:2px 5px;border-radius:13px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-logo{grid-column:1/-1;width:100%;height:40px;background:transparent}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-logo img{max-width:90px;max-height:30px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-name{font-size:10.5px}
body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-card-arrow{width:22px;height:22px;font-size:9px}
}
@media(max-width:359px){body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-grid,body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-links{grid-template-columns:1fr}body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-card,body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tb-brand-links>a.tbp-directory-card{grid-template-columns:68px minmax(0,1fr) 22px;grid-template-rows:auto;min-height:66px}body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-popular-logo,body.tb-storefront #product-manufacturer.tbp-directory-hotfix .tbp-directory-logo{grid-column:auto;width:68px;height:46px}}
@media(prefers-reduced-motion:reduce){body.tb-storefront #product-manufacturer.tbp-directory-hotfix *{scroll-behavior:auto!important;transition:none!important}body.tb-storefront #product-manufacturer.tbp-directory-hotfix :is(.tbp-popular-card,.tbp-directory-card):hover{transform:none}}
