/* PrestaHeroes | Wilderness121 | CSS revision 1.2.2 | 2026-09-12 */
.ph-brands {
  --phb-forest: #173e2c;
  --phb-forest-deep: #0e2b1d;
  --phb-leaf: #2f6848;
  --phb-fire: #c63b2f;
  --phb-ink: #17211c;
  --phb-muted: #5b6860;
  --phb-mist: #edf3ef;
  --phb-paper: #f7f9f7;
  --phb-border: #dce4de;
  --phb-white: #fff;
  width: 100%;
  max-width: 1270px;
  margin-inline: auto;
  padding: 0 0 32px;
  color: var(--phb-ink);
}

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

.ph-brands__hero {
  position: relative;
  display: flex;
  min-height: 220px;
  align-items: center;
  overflow: hidden;
  margin: 0 0 28px;
  padding: clamp(26px, 3.4vw, 42px);
  border: 1px solid rgba(14, 43, 29, .45);
  border-radius: 24px;
  background:
    radial-gradient(circle at 83% 16%, rgba(255, 255, 255, .10), transparent 28%),
    linear-gradient(128deg, var(--phb-forest-deep), var(--phb-forest) 58%, #24573c);
  box-shadow: 0 15px 34px rgba(14, 43, 29, .20);
}

.ph-brands__hero::after {
  position: absolute;
  right: -72px;
  bottom: -108px;
  width: 330px;
  height: 250px;
  border: 42px solid rgba(255, 255, 255, .035);
  border-radius: 50%;
  content: "";
}

.ph-brands__hero-copy { position: relative; z-index: 2; max-width: 790px; }

.ph-brands__eyebrow {
  display: block;
  margin: 0 0 8px;
  color: #bcd2c3;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ph-brands__hero h1 {
  margin: 0 0 13px;
  color: var(--phb-white);
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.ph-brands__hero p {
  max-width: 725px;
  margin: 0;
  color: rgba(255, 255, 255, .94);
  font-size: 17px;
  line-height: 1.58;
}

.ph-brands__hero .ph-brands__guidance {
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.ph-brands__hero-mark {
  position: absolute;
  top: 50%;
  right: clamp(18px, 4vw, 58px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  transform: translateY(-51%) rotate(-4deg);
  color: rgba(255, 255, 255, .09);
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 950;
  letter-spacing: -.09em;
  line-height: .68;
  pointer-events: none;
}

.ph-brands__hero-mark span:last-child { color: rgba(198, 59, 47, .58); font-size: .52em; letter-spacing: .02em; }

.ph-brands__tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 15px;
}

.ph-brands__search-wrap { width: min(100%, 540px); }
.ph-brands__search-wrap label { display: block; margin: 0 0 7px; color: var(--phb-forest-deep); font-size: 13px; font-weight: 850; }

.ph-brands__search-field {
  display: flex;
  height: 52px;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  border: 1px solid var(--phb-border);
  border-radius: 14px;
  background: var(--phb-white);
  box-shadow: 0 7px 20px rgba(23, 33, 28, .06);
}

.ph-brands__search-field svg { flex: 0 0 auto; color: var(--phb-leaf); }
.ph-brands__search-field input { width: 100%; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--phb-ink); font: inherit; }
.ph-brands__search-field:focus-within { border-color: var(--phb-leaf); box-shadow: 0 0 0 3px rgba(47, 104, 72, .14); }

.ph-brands__summary { display: flex; align-items: baseline; gap: 6px; color: var(--phb-muted); font-size: 13px; white-space: nowrap; }
.ph-brands__summary strong { color: var(--phb-forest-deep); font-size: 23px; }

.ph-brands__alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 22px;
  padding: 11px;
  border: 1px solid var(--phb-border);
  border-radius: 15px;
  background: var(--phb-paper);
}

.ph-brands__alphabet button {
  min-width: 37px;
  height: 35px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--phb-forest);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.ph-brands__alphabet button:hover,
.ph-brands__alphabet button:focus-visible,
.ph-brands__alphabet button.is-active { border-color: var(--phb-forest); background: var(--phb-forest); color: var(--phb-white); outline: 0; }

.ph-brands__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.ph-brand-card {
  display: flex;
  min-width: 0;
  min-height: 196px;
  overflow: hidden;
  border: 1px solid #789087 !important;
  border-radius: 18px;
  background: var(--phb-white);
  color: var(--phb-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 9px 25px rgba(23, 33, 28, .07);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ph-brand-card:hover,
.ph-brand-card:focus-visible { transform: translateY(-2px); border-color: rgba(47, 104, 72, .65) !important; box-shadow: 0 17px 35px rgba(23, 33, 28, .13); outline: 0; }
.ph-brand-card[hidden] { display: none !important; }
.ph-brand-card--text { min-height: 196px; }

.ph-brand-card__identity {
  display: flex;
  width: 76px;
  flex: 0 0 76px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-right: 1px solid var(--phb-border);
  background: linear-gradient(155deg, #fff, var(--phb-mist));
}

.ph-brand-card__identity img { display: block; width: 100%; height: auto; max-height: 100px; object-fit: contain; mix-blend-mode: multiply; }
.ph-brand-card__monogram { color: var(--phb-forest); font-family: Georgia, serif; font-size: 38px; font-weight: 700; line-height: 1; }

.ph-brand-card__body { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; padding: 18px 18px 16px; }
.ph-brand-card--text .ph-brand-card__body { padding: 18px 18px 16px; }
.ph-brand-card__name { color: var(--phb-forest-deep); font-size: 19px; font-weight: 800; line-height: 1.2; }

.ph-brand-card__description {
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--phb-muted);
  font-size: 13px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.ph-brand-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; padding-top: 17px; }
.ph-brand-card__count { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; background: var(--phb-mist); color: var(--phb-forest); font-size: 11px; font-weight: 850; }
.ph-brand-card__cta { color: var(--phb-forest); font-size: 12px; font-weight: 900; white-space: nowrap; }

.ph-brands__empty { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 18px; padding: 31px 20px; border: 1px dashed var(--phb-border); border-radius: 17px; background: var(--phb-paper); color: var(--phb-muted); text-align: center; }
.ph-brands__empty[hidden] { display: none !important; }
.ph-brands__empty strong { color: var(--phb-forest-deep); font-size: 18px; }

@media (max-width: 1099px) { .ph-brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 767px) {
  .ph-brands__hero { min-height: 0; padding: 29px 22px; border-radius: 19px; }
  .ph-brands__hero-mark { right: 8px; font-size: 78px; }
  .ph-brands__hero h1 { font-size: 36px; }
  .ph-brands__hero p { font-size: 15px; }
  .ph-brands__tools { align-items: stretch; flex-direction: column; gap: 10px; }
  .ph-brands__search-wrap { width: 100%; }
  .ph-brands__grid { grid-template-columns: 1fr; }
  .ph-brand-card { min-height: 180px; }
}

@media (max-width: 420px) {
  .ph-brand-card__identity { width: 86px; flex-basis: 86px; padding: 11px; }
  .ph-brand-card__body { padding: 17px 14px 15px; }
  .ph-brand-card__footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { .ph-brand-card { transition: none; } }

/* Keep the directory independent of product-list and Amazzing Filter styles. */
.ph-brands .ph-brand-card__name { overflow-wrap: anywhere; }
.ph-brands .ph-brand-card__footer { flex-wrap: wrap; }
.ph-brands .ph-brand-card__identity { flex-shrink: 0; }
.ph-brands .ph-brand-card__identity img[hidden] { display: none !important; }
.ph-brands .ph-brand-card__monogram[hidden] { display: none !important; }
.ph-brands .ph-brands__alphabet button { min-height: 44px; min-width: 44px; }
.ph-brands .ph-brands__hero-copy { max-width: min(790px, 85%); }
@media (max-width: 767px) {
  .ph-brands .ph-brands__hero-copy { max-width: 100%; }
  .ph-brands .ph-brands__hero-mark { opacity: .45; }
  .ph-brands .ph-brand-card__identity { width: 68px; flex-basis: 68px; }
}

/* PH 2026-09-12: compact directory and readable controls on the dark theme.
   Full replacement stylesheet; no product-list or sidebar selectors. */
.ph-brands .ph-brands__tools {
  padding: 16px 18px;
  border: 1px solid var(--phb-border);
  border-radius: 15px;
  background: var(--phb-paper);
}
.ph-brands .ph-brands__search-wrap label,
.ph-brands .ph-brands__summary strong { color: var(--phb-forest-deep); }
.ph-brands .ph-brands__summary { color: #485b51; }
.ph-brands .ph-brands__search-wrap { max-width: 520px; }
.ph-brands .ph-brands__alphabet { padding: 7px; gap: 4px; margin-bottom: 18px; }
.ph-brands .ph-brand-card:focus-visible { outline: 3px solid #80b998; outline-offset: 3px; }
@media (max-width: 767px) {
  .ph-brands .ph-brands__tools { padding: 14px; }
  .ph-brands .ph-brands__search-wrap { max-width: none; }
  .ph-brands .ph-brand-card__body { padding: 16px 14px; }
  .ph-brands .ph-brand-card__footer { flex-direction: row; align-items: center; }
}