/* Girl's Boutique — Brand catalog pages
   Page header banner, category filter chips, results. Grid + cards from components.css. */

/* ============ Page header ============ */
.page-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(260px, 34vw, 400px);
  overflow: hidden;
  background: var(--c-ink);
}

.page-head img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.18 0.03 358 / 0.25) 30%, oklch(0.16 0.02 358 / 0.8));
}

.page-head__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  color: var(--c-white);
}

.page-head__brand {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-3xl);
  letter-spacing: -0.035em;
  line-height: 1;
}

.page-head__desc {
  margin-top: var(--space-3);
  color: oklch(0.92 0.01 358);
  font-size: var(--fs-lg);
  max-width: 46ch;
}

/* ============ Filter bar ============ */
.catalog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6) var(--space-5);
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* .chip is defined once in components.css (shared with the search page) */

.results-count {
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

/* Inline search within a brand catalog (next to the category chips) */
.catalog-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 180px;
  max-width: 260px;
  flex: 1 1 180px;
}
.catalog-search__icon {
  position: absolute;
  left: var(--space-4);
  width: 18px;
  height: 18px;
  color: var(--c-ink-soft);
  pointer-events: none;
}
.catalog-search__input {
  padding-left: calc(18px + var(--space-4) * 2);
}

.catalog {
  padding-bottom: var(--space-9);
}

@media (max-width: 600px) {
  .catalog-bar { flex-direction: column; align-items: stretch; }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex: 0 0 auto; }
}
