/* =========================================================
   SHOPSTYLE EE — BRANDS DIRECTORY V3
   ========================================================= */

.ss-brands-v3{
  --ssb-ink:#24272c;
  --ssb-muted:#74777d;
  --ssb-line:#e8e8e4;
  --ssb-soft:#f6f6f3;
  --ssb-orange:#f47a20;
  --ssb-orange-soft:#fff4eb;

  max-width:1380px;
  margin:0 auto;
  padding:0 26px 90px;
  color:var(--ssb-ink);
}

.ss-brands-v3 *,
.ss-brands-v3 *:before,
.ss-brands-v3 *:after{
  box-sizing:border-box;
}

.ss-brands-hero{
  margin:34px 0 64px;
  padding:52px 58px 46px;
  background:
    linear-gradient(
      120deg,
      rgba(244,122,32,.075),
      rgba(244,122,32,.018) 38%,
      rgba(36,39,44,.035) 100%
    );
  border:1px solid #ecebe6;
  border-radius:24px;
}

.ss-brands-eyebrow{
  margin-bottom:13px;
  color:#85888d;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
}

.ss-brands-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:40px;
  align-items:end;
}

.ss-brands-hero h2{
  max-width:720px;
  margin:0;
  font-size:clamp(38px,5vw,68px);
  line-height:.98;
  font-weight:800;
  letter-spacing:-.055em;
}

.ss-brands-hero h2 span{
  color:var(--ssb-orange);
}

.ss-brands-hero-copy p{
  max-width:650px;
  margin:22px 0 0;
  color:#666a70;
  font-size:15px;
  line-height:1.7;
}

.ss-brands-stat{
  min-width:180px;
  padding:0 0 7px;
  text-align:right;
}

.ss-brands-stat strong{
  display:block;
  font-size:32px;
  line-height:1;
  letter-spacing:-.04em;
}

.ss-brands-stat span{
  display:block;
  margin-top:8px;
  color:var(--ssb-muted);
  font-size:12px;
}

.ss-brands-search{
  position:relative;
  display:flex;
  align-items:center;
  max-width:850px;
  height:62px;
  margin-top:42px;
  background:#fff;
  border:1px solid #deded9;
  border-radius:999px;
  box-shadow:0 10px 28px rgba(32,34,37,.04);
}

.ss-brands-search-icon{
  width:58px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.ss-brands-search-icon svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:#585c61;
  stroke-width:1.8;
  stroke-linecap:round;
}

.ss-brands-search input{
  width:100%;
  height:100%;
  padding:0 50px 0 0;
  border:0;
  outline:0;
  background:transparent;
  color:#26292e;
  font-size:15px;
  font-weight:600;
}

.ss-brands-search input::placeholder{
  color:#999ca1;
  font-weight:500;
}

.ss-brands-search button{
  position:absolute;
  right:18px;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:#f2f2ef;
  color:#55595f;
  font-size:21px;
  cursor:pointer;
}

.ss-brands-search-meta{
  display:flex;
  gap:18px;
  margin:12px 0 0 22px;
  color:#94979b;
  font-size:11px;
}

.ss-brands-search-meta span:first-child{
  color:#4f5358;
  font-weight:800;
}

.ss-brands-popular{
  margin-bottom:74px;
}

.ss-brands-section-head,
.ss-brands-directory-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:30px;
  margin-bottom:25px;
}

.ss-brands-section-head h3,
.ss-brands-directory-head h3{
  margin:0;
  font-size:27px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.035em;
}

.ss-brands-section-number{
  color:#babcbf;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
}

.ss-brands-popular-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.ss-brand-feature{
  min-width:0;
  min-height:160px;
  padding:21px 22px 19px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:#fff;
  border:1px solid var(--ssb-line);
  border-radius:16px;
  color:var(--ssb-ink);
  text-decoration:none !important;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.ss-brand-feature:hover{
  transform:translateY(-3px);
  border-color:#d9d5cf;
  box-shadow:0 14px 32px rgba(38,40,43,.07);
}

.ss-brand-feature-top{
  min-height:62px;
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:flex-start;
}

.ss-brand-feature-logo{
  max-width:150px;
  height:48px;
  display:flex;
  align-items:center;
}

.ss-brand-feature-logo img{
  max-width:100%;
  max-height:42px;
  object-fit:contain;
}

.ss-brand-feature-word{
  max-width:85%;
  font-size:17px;
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.025em;
}

.ss-brand-feature-arrow{
  color:#a8aaad;
  font-size:18px;
  transition:.2s ease;
}

.ss-brand-feature:hover .ss-brand-feature-arrow{
  color:var(--ssb-orange);
  transform:translate(2px,-2px);
}

.ss-brand-feature-bottom{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:10px;
  padding-top:17px;
  border-top:1px solid #f0f0ed;
}

.ss-brand-feature-bottom strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
}

.ss-brand-feature-bottom span{
  flex:0 0 auto;
  color:#999ca0;
  font-size:10px;
}

.ss-brands-directory{
  margin-top:15px;
}

.ss-brands-directory-head p{
  margin:0;
  color:#8d9095;
  font-size:12px;
}

.ss-brand-az-wrap{
  position:sticky;
  top:0;
  z-index:30;
  margin:0 0 42px;
  padding:10px 0;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

body.ss-global-header-fixed .ss-brand-az-wrap{
  top:var(--ss-global-header-height,0px);
}

.ss-brand-az{
  display:flex;
  gap:6px;
  overflow-x:auto;
  padding:8px 0;
  scrollbar-width:none;
}

.ss-brand-az::-webkit-scrollbar{
  display:none;
}

.ss-brand-az a{
  flex:0 0 auto;
  min-width:38px;
  height:38px;
  padding:0 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f5f5f2;
  border:1px solid transparent;
  border-radius:999px;
  color:#4f5358;
  text-decoration:none !important;
  font-size:11px;
  font-weight:800;
  transition:.18s ease;
}

.ss-brand-az a:hover,
.ss-brand-az a.active{
  background:#2c2f34;
  color:#fff;
}

.ss-brand-letter-section{
  display:grid;
  grid-template-columns:125px minmax(0,1fr);
  gap:34px;
  padding:38px 0 46px;
  border-top:1px solid var(--ssb-line);
  scroll-margin-top:180px;
}

.ss-brand-letter-side{
  position:sticky;
  top:180px;
  align-self:start;
}

.ss-brand-letter-side > span{
  display:block;
  font-size:52px;
  line-height:.9;
  font-weight:800;
  letter-spacing:-.06em;
}

.ss-brand-letter-side small{
  display:block;
  margin-top:10px;
  color:#a0a2a6;
  font-size:10px;
  font-weight:700;
}

.ss-brand-list{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid #ededeb;
  border-left:1px solid #ededeb;
}

.ss-brand-row{
  min-width:0;
  height:58px;
  padding:0 15px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:9px;
  align-items:center;
  background:#fff;
  border-right:1px solid #ededeb;
  border-bottom:1px solid #ededeb;
  color:#33363b;
  text-decoration:none !important;
  transition:.16s ease;
}

.ss-brand-row:hover{
  position:relative;
  z-index:2;
  background:var(--ssb-orange-soft);
  color:#17191c;
}

.ss-brand-row-name{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:12px;
  font-weight:700;
}

.ss-brand-row-count{
  color:#a2a4a8;
  font-size:9px;
  font-weight:700;
}

.ss-brand-row-arrow{
  color:#b5b7ba;
  font-size:13px;
  transition:.16s ease;
}

.ss-brand-row:hover .ss-brand-row-arrow{
  color:var(--ssb-orange);
  transform:translateX(2px);
}

.ss-brand-empty{
  padding:75px 20px;
  text-align:center;
  border-top:1px solid var(--ssb-line);
}

.ss-brand-empty strong{
  display:block;
  margin-bottom:7px;
  font-size:20px;
}

.ss-brand-empty span{
  color:#8c8f94;
  font-size:12px;
}

.ss-brands-seo{
  max-width:960px;
  margin:70px auto 0;
  padding-top:38px;
  border-top:1px solid var(--ssb-line);
  color:#74777c;
  font-size:13px;
  line-height:1.75;
}

@media (max-width:1100px){

  .ss-brands-popular-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .ss-brand-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:860px){

  .ss-brands-v3{
    padding:0 16px 65px;
  }

  .ss-brands-hero{
    margin:20px 0 48px;
    padding:34px 24px 30px;
    border-radius:18px;
  }

  .ss-brands-hero-grid{
    grid-template-columns:1fr;
    gap:25px;
  }

  .ss-brands-hero h2{
    font-size:42px;
  }

  .ss-brands-stat{
    min-width:0;
    text-align:left;
  }

  .ss-brands-stat strong{
    font-size:24px;
  }

  .ss-brands-search{
    margin-top:30px;
    height:56px;
  }

  .ss-brands-search-meta{
    display:block;
    margin-left:16px;
  }

  .ss-brands-search-meta span{
    display:block;
    margin-bottom:4px;
  }

  .ss-brands-popular-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .ss-brand-feature{
    min-height:145px;
  }

  .ss-brand-letter-section{
    grid-template-columns:1fr;
    gap:20px;
    padding:30px 0 38px;
  }

  .ss-brand-letter-side{
    position:static;
    display:flex;
    align-items:end;
    gap:12px;
  }

  .ss-brand-letter-side > span{
    font-size:42px;
  }

  .ss-brand-letter-side small{
    margin-bottom:3px;
  }

  .ss-brand-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .ss-brand-az-wrap{
    top:0;
  }

  body.ss-global-header-fixed .ss-brand-az-wrap{
    top:0;
  }
}

@media (max-width:520px){

  .ss-brands-hero h2{
    font-size:36px;
  }

  .ss-brands-popular-grid{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .ss-brand-feature{
    min-height:132px;
    padding:17px 15px;
  }

  .ss-brand-feature-word{
    font-size:14px;
  }

  .ss-brand-feature-bottom{
    display:block;
  }

  .ss-brand-feature-bottom span{
    display:block;
    margin-top:5px;
  }

  .ss-brand-list{
    grid-template-columns:1fr;
  }

  .ss-brand-row{
    height:54px;
  }

  .ss-brands-section-head h3,
  .ss-brands-directory-head h3{
    font-size:23px;
  }
}

/* =========================================================
   BRANDS V3 — REAL LETTER FILTER + FULL A-Z WIDTH
   ========================================================= */

@media (min-width:861px){

  .ss-brand-az{
    width:100%;
    display:grid !important;
    grid-template-columns:repeat(28,minmax(0,1fr));
    gap:5px !important;
    overflow:visible !important;
  }

  .ss-brand-az a{
    width:100% !important;
    min-width:0 !important;
    height:38px !important;
    padding:0 2px !important;
    font-size:10px !important;
  }

  .ss-brand-az a[data-brand-letter="ALL"]{
    font-size:8px !important;
    letter-spacing:-.02em;
  }
}

/* mobile keeps horizontal swipe */
@media (max-width:860px){

  .ss-brand-az{
    display:flex !important;
    overflow-x:auto !important;
    padding-right:18px !important;
  }

  .ss-brand-az a{
    min-width:38px !important;
  }

  .ss-brand-az a[data-brand-letter="ALL"]{
    min-width:52px !important;
  }
}

/* =========================================================
   BRANDS V3 — LIVE SEARCH RESULTS
   ========================================================= */

.ss-brands-hero-inner{
  position:relative;
}

.ss-brand-live-results{
  position:relative;
  z-index:50;

  max-width:850px;
  margin:8px 0 0;

  overflow:hidden;

  background:#fff;

  border:1px solid #e2e2de;
  border-radius:18px;

  box-shadow:
    0 18px 45px rgba(32,34,37,.10);
}

.ss-brand-live-item{
  min-height:54px;

  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;

  gap:14px;

  padding:0 18px;

  border-bottom:1px solid #efefec;

  color:#2d3036 !important;
  text-decoration:none !important;

  transition:
    background .15s ease;
}

.ss-brand-live-item:last-child{
  border-bottom:0;
}

.ss-brand-live-item:hover{
  background:#fff4eb;
}

.ss-brand-live-name{
  min-width:0;

  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;

  font-size:13px;
  font-weight:750;
}

.ss-brand-live-count{
  color:#999ca1;
  font-size:10px;
  font-weight:650;
}

.ss-brand-live-arrow{
  color:#b0b2b5;
  font-size:14px;
}

.ss-brand-live-item:hover .ss-brand-live-arrow{
  color:#f47a20;
}

.ss-brand-live-empty{
  padding:22px 20px;
}

.ss-brand-live-empty strong{
  display:block;

  margin-bottom:4px;

  font-size:13px;
}

.ss-brand-live-empty span{
  color:#96999d;
  font-size:11px;
}


/* Force filtered rows/groups to respect JS */
.ss-brand-letter-section[style*="display: none"]{
  display:none !important;
}

.ss-brand-row[style*="display: none"]{
  display:none !important;
}


@media (max-width:860px){

  .ss-brand-live-results{
    margin-top:7px;
  }

  .ss-brand-live-item{
    min-height:52px;
    padding:0 14px;
  }
}
