/* =====================================================
   All Brands — Fashion Brand Discovery Page
   Premium discovery experience · Featured · Style browse · A–Z
   Extends premium-home design system
   ===================================================== */

/* ── Page & Container ───────────────────────────────── */
.brands-page.brands-main { background: var(--ph-cream); }
.brands-main { padding: 2rem 0 4rem; }
.brands-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 1400px) {
  .brands-container { max-width: 1320px; padding: 0 2rem; }
}

/* ── 1. HERO HEADER ─────────────────────────────────── */
.brands-hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
}
.brands-eyebrow {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ph-rose);
  margin-bottom: .5rem;
  display: block;
}
.brands-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 600;
  color: var(--ph-dark);
  margin-bottom: .75rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.brands-subtitle {
  font-size: 1.05rem;
  color: var(--ph-mid);
  max-width: 540px;
  margin: 0 auto 1rem;
  line-height: 1.55;
}
.brands-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brands-stat {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ph-taupe);
  padding: .25rem .75rem;
  background: rgba(255,255,255,.7);
  border-radius: var(--ph-radius-pill);
  border: 1px solid var(--ph-border);
}

/* ── 2. SEARCH BAR ──────────────────────────────────── */
.brands-search {
  padding: 0 0 2rem;
  max-width: 420px;
  margin: 0 auto;
}
.brands-search-input {
  width: 100%;
  padding: .9rem 1.25rem .9rem 2.75rem;
  font-size: 1rem;
  border: 1.5px solid var(--ph-border);
  border-radius: var(--ph-radius);
  background: var(--ph-white);
  color: var(--ph-dark);
  transition: all var(--ph-transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%238b7d77' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 1rem center;
}
.brands-search-input::placeholder {
  color: var(--ph-light);
}
.brands-search-input:focus {
  outline: none;
  border-color: var(--ph-dusty-pink);
  box-shadow: 0 0 0 3px rgba(176, 122, 118, .12);
}

/* ── 3. FEATURED: POPULAR & BEST DEALS ───────────────── */
.brands-featured {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--ph-border);
}
.brands-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 767px) {
  .brands-featured-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.brands-featured-col {
  background: var(--ph-white);
  border-radius: var(--ph-radius);
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(28, 23, 20, .06);
  border: 1px solid rgba(139, 125, 119, .1);
}
.brands-featured-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ph-dark);
  margin-bottom: .25rem;
}
.brands-featured-desc {
  font-size: .88rem;
  color: var(--ph-light);
  margin-bottom: 1.25rem;
}
.brands-featured-cards {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

/* ── 4. BROWSE BY STYLE ──────────────────────────────── */
.brands-by-style {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--ph-border);
}
.brands-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ph-dark);
  margin-bottom: .35rem;
}
.brands-section-desc {
  font-size: .95rem;
  color: var(--ph-mid);
  margin-bottom: 1.5rem;
}
.brands-style-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.brands-style-tab {
  padding: .5rem 1.1rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ph-mid);
  background: var(--ph-off-white);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius-pill);
  cursor: pointer;
  transition: all var(--ph-transition);
}
.brands-style-tab:hover {
  background: var(--ph-white);
  border-color: var(--ph-dusty-pink);
  color: var(--ph-dark);
}
.brands-style-tab.active {
  background: var(--ph-rose);
  border-color: var(--ph-rose);
  color: #fff;
}
.brands-style-panel {
  margin-bottom: 2rem;
}
.brands-style-panel:last-child { margin-bottom: 0; }
.brands-style-panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ph-taupe);
  margin-bottom: 1rem;
  letter-spacing: .02em;
}
.brands-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}

/* ── 5. A–Z DIRECTORY ────────────────────────────────── */
.brands-directory {
  padding: 2.5rem 0 1rem;
}
.brands-az-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1.75rem;
  justify-content: center;
}
.brands-az-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ph-mid);
  background: var(--ph-off-white);
  border: 1px solid var(--ph-border);
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--ph-transition);
}
.brands-az-link:hover {
  background: var(--ph-rose);
  border-color: var(--ph-rose);
  color: #fff;
}
.brands-az-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.brands-az-group {
  scroll-margin-top: 1rem;
}
.brands-az-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ph-dark);
  margin-bottom: .85rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--ph-blush);
  letter-spacing: .02em;
}
.brands-az-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .6rem;
}

/* ── BRAND CARDS (shared) ────────────────────────────── */
.brands-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .75rem 1rem;
  background: var(--ph-white);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius-sm);
  text-decoration: none;
  color: inherit;
  transition: all var(--ph-transition);
  box-shadow: 0 1px 3px rgba(28, 23, 20, .04);
}
.brands-card:hover {
  border-color: var(--ph-dusty-pink);
  box-shadow: 0 4px 16px rgba(28, 23, 20, .08);
  transform: translateY(-1px);
}
.brands-card-deal {
  border-left: 3px solid var(--ph-rose);
}
.brands-card-text {
  flex: 1;
  min-width: 0;
}
.brands-card-name {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ph-dark);
  margin-bottom: .15rem;
}
.brands-card-count {
  font-size: .82rem;
  color: var(--ph-light);
}
.brands-card-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--ph-light);
}
.brands-tag {
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .5rem;
  background: rgba(122, 146, 128, .15);
  color: var(--ph-sage);
  border-radius: 6px;
}
.brands-deal-badge {
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .45rem;
  background: rgba(176, 122, 118, .15);
  color: var(--ph-rose);
  border-radius: 6px;
  margin-left: .25rem;
}
.brands-deal-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ph-rose);
  margin-left: .25rem;
  vertical-align: middle;
}
.brands-card-arrow {
  font-size: .9rem;
  color: var(--ph-light);
  flex-shrink: 0;
  transition: transform var(--ph-transition);
}
.brands-card:hover .brands-card-arrow {
  color: var(--ph-rose);
  transform: translateX(2px);
}

/* Style panel cards: slightly smaller */
.brands-card-style {
  padding: .6rem .85rem;
}
.brands-card-style .brands-card-name { font-size: .9rem; }

/* A–Z cards: compact */
.brands-card-az {
  padding: .65rem 1rem;
}

/* ── NO RESULTS ──────────────────────────────────────── */
.brands-no-results {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--ph-off-white);
  border-radius: var(--ph-radius);
  border: 1px dashed var(--ph-border);
}
.brands-no-results p {
  font-size: 1rem;
  color: var(--ph-mid);
  margin: 0;
}
