/* /web/public/brands-hub/brands.css */
/* Uses /shared/theme.css, but stays self-contained for layout + cards */

.hub-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 6px 10px;
}

.hub-logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text-main, #0b1220);
  font-weight:900;
  letter-spacing:.2px;
}
.hub-logo img{
  width:34px;
  height:34px;
  border-radius:10px;
  object-fit:contain;
  border:1px solid rgba(0,0,0,0.06);
  background:#fff;
}

.hub-links{
  display:flex;
  align-items:center;
  gap:10px;
}
.hub-link{
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border-subtle, rgba(0,0,0,0.08));
  background:var(--bg-soft, #fff);
  color:var(--text-muted, #5b6a7d);
}
.hub-link:hover{
  filter:saturate(1.05);
}
.hub-link--active{
  background:linear-gradient(90deg, var(--pop1, #15a1ff), #51e0ff);
  border-color:transparent;
  color:#052a3b;
}

.hub-main{
  padding:8px 6px 26px;
}

.hub-hero{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap:16px;
  padding:16px;
  border-radius:22px;
  border:1px solid var(--border-subtle, rgba(0,0,0,0.08));
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.78));
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(15,38,70,.08));
  position:relative;
  overflow:hidden;
}

.hub-hero::before{
  content:"";
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(circle at 20% 0%, rgba(21,161,255,.22), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(255,122,217,.20), transparent 55%),
    radial-gradient(circle at 40% 120%, rgba(255,211,77,.22), transparent 60%);
  filter: blur(20px);
  pointer-events:none;
}

.hub-hero-left, .hub-hero-right{
  position:relative;
  z-index:1;
}

.hub-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border-subtle, rgba(0,0,0,0.08));
  background:#fff;
  color:var(--text-muted, #5b6a7d);
}

.hub-title{
  margin:10px 0 6px;
  font-size:34px;
  line-height:1.06;
  font-weight:1000;
  letter-spacing:.2px;
}

.hub-sub{
  margin:0;
  font-size:14px;
  color:var(--text-muted, #5b6a7d);
  max-width:720px;
}

.hub-search{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}

#brandSearch{
  flex:1;
  min-width:220px;
  border-radius:999px;
  padding:10px 12px;
}

#brandSort{
  border-radius:999px;
  padding:10px 12px;
  font-weight:800;
}

.hub-stats{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.stat{
  border-radius:16px;
  border:1px solid var(--border-subtle, rgba(0,0,0,0.08));
  background:#fff;
  padding:10px 12px;
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(15,38,70,.08));
}
.stat-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--text-muted, #5b6a7d);
  font-weight:900;
}
.stat-value{
  margin-top:2px;
  font-size:18px;
  font-weight:1000;
  color:var(--text-main, #0b1220);
}

.hub-grid-wrap{
  margin-top:14px;
}

.hub-loading{
  padding:18px 10px;
  text-align:center;
  color:var(--text-muted, #5b6a7d);
  font-weight:800;
}

.hub-empty{
  padding:18px 10px;
  text-align:center;
  color:var(--text-muted, #5b6a7d);
  font-weight:800;
  border-radius:18px;
  border:1px dashed var(--border-subtle, rgba(0,0,0,0.10));
  background:rgba(255,255,255,0.75);
}

/* GRID */
.brands-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap:16px;
}

/* BRAND CARD */
.brand-card{
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--border-subtle, rgba(0,0,0,0.08));
  background:#fff;
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(15,38,70,.08));
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.brand-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15,38,70,.14);
}
.brand-card:focus{
  outline:none;
  box-shadow: 0 0 0 2px rgba(21,161,255,.25), 0 16px 34px rgba(15,38,70,.14);
}

/* HERO */
.brand-hero{
  height:180px;                   /* (3) resize hero: taller so top doesn't get clipped */
  background:#e9eef7;
  background-size:cover;
  background-position:center 14%;  /* (3) show more of the top of storefront images */
  position:relative;
}

/* gradient layer for legibility */
.brand-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.00), rgba(0,0,0,0.35));
}

/* (1) overlay pinned to bottom now (FORCED) */
.brand-hero-overlay{
  position:absolute !important;
  left:0;
  right:0;
  bottom:0 !important;
  z-index:2 !important;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px 14px;
}

/* (2) remove ALL other hero text/elements except the overlay (FORCED)
   This fixes the “OPEN STOREFRONT” / extra hero labels if they are DOM text. */
.brand-hero > :not(.brand-hero-overlay){
  display:none !important;
}

.brand-logo{
  width:46px;
  height:46px;
  border-radius:999px;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.75);
  background:#fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.brand-head-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.brand-name{
  font-weight:1000;
  font-size:16px;
  color:#fff;
  text-shadow: 0 10px 26px rgba(0,0,0,.35);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* (2) hide brand description text entirely (FORCED) */
.brand-line{
  display:none !important;
}

/* BODY */
.brand-body{
  padding:12px 12px 0;
}

.preview-title{
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--text-muted, #5b6a7d);
  margin-bottom:8px;
}

.preview-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}

.preview-loading,
.preview-empty{
  grid-column: 1 / -1;
  padding:10px 0 12px;
  font-size:12px;
  color:var(--text-muted, #5b6a7d);
  font-weight:800;
}

/* MINI PRODUCT */
.mini-product{
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border-subtle, rgba(0,0,0,0.08));
  background: var(--bg-soft, #f7fafc);
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(15,38,70,.08));
  cursor:pointer;
  transition: transform .12s ease;
}
.mini-product:hover{
  transform: translateY(-1px);
}
.mini-product img{
  width:100%;
  height:112px;
  object-fit:cover;
  display:block;
}
.mini-meta{
  padding:8px 9px 10px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.mini-title{
  font-size:12px;
  font-weight:900;
  color: var(--text-main, #0b1220);
  line-height:1.2;
  max-height:2.4em;
  overflow:hidden;
}
.mini-price{
  font-size:12px;
  font-weight:1000;
  color: var(--accent-strong, #15a1ff);
}

/* FOOT */
.brand-foot{
  padding:12px;
  display:flex;
  justify-content:flex-end;
  margin-top:2px;
}

.hub-btn{
  border-radius:999px;
  padding:10px 12px;
  font-weight:1000;
  border:1px solid var(--border-subtle, rgba(0,0,0,0.10));
  background:#fff;
  cursor:pointer;
}
.hub-btn-primary{
  background: linear-gradient(90deg, var(--pop1, #15a1ff), #51e0ff);
  border-color: transparent;
  color:#052a3b;
}
.hub-btn-primary:hover{
  filter:saturate(1.06);
}

/* FOOTER */
.hub-foot{
  padding:18px 6px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--text-muted, #5b6a7d);
}
.hub-foot-links a{
  color:var(--text-muted, #5b6a7d);
  text-decoration:none;
  margin-left:14px;
  font-weight:800;
}
.hub-foot-links a:hover{
  color:var(--text-main, #0b1220);
}

/* Responsive */
@media (max-width: 980px){
  .hub-hero{
    grid-template-columns: 1fr;
  }
  .hub-search{
    justify-content:flex-start;
  }
}
@media (max-width: 520px){
  .hub-links{
    gap:6px;
  }
  .hub-link{
    padding:7px 9px;
    font-size:12px;
  }
}
