/*
 * thebamboostudio-v1 theme — "Search" page.
 * Styles markup rendered by catalog/view/template/product/search.twig
 * (a stock OpenCart route, restyled in place, matching how
 * information/contact.twig was done — see contact-page.css).
 * Reuses .bb-page-head / .bb-eyebrow / .bb-lede / .bb-sec-head /
 * .bb-sec-head-sub (menu-page.css), .bb-pd-crumb (product.css),
 * .bb-btn / .bb-btn-filled / .bb-btn-outline (theme.css), .bb-menu-empty
 * (menu-page.css), and — deliberately, not the stock .product-card —
 * .bb-menu-grid / .bb-menu-item / .bb-menu-photo / .bb-qadd / .bb-badge-stamp
 * (menu.css/hero.css), the same organic blob-photo card used on the
 * homepage and menu page, so search results read as this site's product
 * card rather than the generic Jenzo-style one. Only new classes for the
 * search form, toolbar and category chips are defined here.
 */

.thebamboostudio-v1 .bb-search-page { background: var(--color-bg); }

/* ============ Section spacing (one side owns each boundary) ============ */
.thebamboostudio-v1 .bb-search-page .bb-page-head {
  padding-top: clamp(1.8rem, 4vw, 2.8rem);
  padding-bottom: 0;
}
.thebamboostudio-v1 .bb-search-results { padding-top: clamp(2.6rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }

/* ============ Search form ============ */
.thebamboostudio-v1 .bb-search-form {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  max-width: 720px;
}
.thebamboostudio-v1 .bb-search-input-wrap {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--color-paper);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: .8rem 1.3rem;
}
.thebamboostudio-v1 .bb-search-input-wrap:focus-within {
  border-color: var(--brand-primary-light);
  box-shadow: 0 0 0 3px rgba(124, 143, 106, 0.18);
}
.thebamboostudio-v1 .bb-search-input-wrap svg { flex: none; color: var(--color-text-muted); }
.thebamboostudio-v1 .bb-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--color-text);
}
.thebamboostudio-v1 .bb-search-input::placeholder { color: var(--color-text-muted); }

.thebamboostudio-v1 .bb-search-select {
  flex: 0 1 220px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: .8rem 1.2rem;
  background: var(--color-paper);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--color-text);
}
.thebamboostudio-v1 .bb-search-select:focus { outline: 0; border-color: var(--brand-primary-light); }

.thebamboostudio-v1 .bb-search-form .bb-btn { flex: none; }

/* ============ Results toolbar ============ */
.thebamboostudio-v1 .bb-search-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.thebamboostudio-v1 .bb-search-sort { display: flex; align-items: center; gap: .6rem; }
.thebamboostudio-v1 .bb-search-sort label {
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.thebamboostudio-v1 .bb-search-sort select {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: .45rem .8rem;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--color-text);
  background: var(--color-paper);
}

/* ============ Results grid ============
 * Reuses .bb-menu-grid/.bb-menu-item/.bb-menu-photo (menu.css) as-is —
 * the same organic blob-clipped card used on the homepage and menu page —
 * so search results read as this site's product card, not a generic one.
 * .bb-search-grid only tightens the top margin for this page's context. */
.thebamboostudio-v1 .bb-search-grid { margin-top: clamp(1.8rem, 3.5vw, 2.6rem); }

.thebamboostudio-v1 .bb-search-pagination { margin-top: clamp(2rem, 4vw, 2.8rem); display: flex; justify-content: center; }
.thebamboostudio-v1 .bb-search-pagination .pagination {
  display: flex;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.thebamboostudio-v1 .bb-search-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-eyebrow);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.thebamboostudio-v1 .bb-search-pagination .page-link:hover { border-color: var(--brand-primary-light); color: var(--brand-primary); }
.thebamboostudio-v1 .bb-search-pagination .page-item.active .page-link {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--color-bg);
}

/* ============ Empty state ============ */
.thebamboostudio-v1 .bb-search-empty { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.thebamboostudio-v1 .bb-search-empty p { max-width: 46ch; font-size: 1.05rem; }

/* ============ Browse-by-category (no query yet) ============ */
.thebamboostudio-v1 .bb-search-chip-row {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.thebamboostudio-v1 .bb-chip {
  display: inline-flex;
  align-items: center;
  padding: .65rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
}
.thebamboostudio-v1 .bb-chip:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
