/* Pedagógica B2C — Archive / busca / colégios.
   Extraído verbatim de main.css (carregado só nesta rota, depois de main.css). */

/* ══════════════════════════════════════════
   SEARCH PAGE
   ══════════════════════════════════════════ */
.ped-search-page { padding: 32px 0 60px; }

.ped-search-page__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ped-gray-border);
}

.ped-search-page__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ped-dark);
  margin: 0;
}

.ped-search-page__term { color: var(--ped-primary); }

.ped-search-page__count {
  font-size: .875rem;
  color: var(--ped-gray-text);
  margin: 0;
}

/* Paginação */
.ped-pagination { margin-top: 40px; text-align: center; }
.ped-pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.ped-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--ped-gray-border);
  border-radius: 6px;
  font-size: .875rem;
  color: var(--ped-dark);
  text-decoration: none;
  transition: background var(--ped-transition), border-color var(--ped-transition), color var(--ped-transition);
}
.ped-pagination .page-numbers:hover { background: var(--ped-primary); border-color: var(--ped-primary); color: #fff; }
.ped-pagination .page-numbers.current { background: var(--ped-primary); border-color: var(--ped-primary); color: #fff; font-weight: 700; }
.ped-pagination .page-numbers.dots { border: none; pointer-events: none; }

/* Resultado não-produto */
.ped-search-post-card {
  border: 1px solid var(--ped-gray-border);
  border-radius: var(--ped-radius);
  overflow: hidden;
}
.ped-search-post-card:hover {}
.ped-search-post-card__link { display: block; text-decoration: none; color: inherit; }
.ped-search-post-card__thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
.ped-search-post-card__body { padding: 16px; }
.ped-search-post-card__type {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ped-primary);
  display: block;
  margin-bottom: 6px;
}
.ped-search-post-card__title { font-size: 1rem; font-weight: 700; margin: 0 0 8px; color: var(--ped-dark); }
.ped-search-post-card__excerpt { font-size: .875rem; color: var(--ped-gray-text); margin: 0; line-height: 1.5; }
.ped-search-post-card__excerpt p { margin: 0; }

/* Estado vazio */
.ped-search-page__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ped-gray-text);
}
.ped-search-page__empty .bi-search { font-size: 3rem; display: block; margin-bottom: 16px; color: var(--ped-gray-border); }
.ped-search-page__empty p { font-size: 1.1rem; margin: 0 0 8px; }
.ped-search-page__empty-hint { font-size: .9rem; }
.ped-search-page__empty .search-form { margin-top: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════
   PRODUCT ARCHIVE (Loja / Categorias / Tags)
   ══════════════════════════════════════════ */

/* Breadcrumb */
.ped-archive__breadcrumb {
  padding: 14px 0 0;
}

/* Header da categoria */
.ped-archive__header {
  background: transparent;
  padding: 16px 0 0;
}
.ped-archive__header.has-image {
  background: transparent;
}
.ped-archive__header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ped-archive__header-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--ped-radius);
  background: rgba(255,255,255,.12);
  padding: 6px;
  flex-shrink: 0;
}
.ped-archive__title-row {
  margin-bottom: 4px;
}
.ped-archive__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--ped-primary);
}
.ped-archive__desc {
  font-size: .875rem;
  color: var(--ped-gray-text);
  margin: 0;
  max-width: 600px;
}
.ped-archive__desc p { margin: 0; }

/* ── Archive main ───────────────────────────────────────────────────────── */
.ped-archive { padding: 0 0 60px; }

/* Layout: sidebar + content */
.ped-archive__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding-top: 20px;
  align-items: start;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */

/* No desktop: sobrescreve Bootstrap offcanvas para virar sidebar estático */
@media (max-width: 991.98px) {
  .ped-archive__sidebar.offcanvas {
    width: 85vw !important;
    max-width: 380px;
  }
}
@media (min-width: 992px) {
  .ped-archive__sidebar.offcanvas {
    position: sticky;
    top: 16px;
    transform: none !important;
    visibility: visible !important;
    height: auto;
    width: 220px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border: 1px solid var(--ped-gray-border);
    border-radius: var(--ped-radius);
    background: var(--ped-white);
    box-shadow: var(--ped-shadow);
    z-index: 1;
  }
  .ped-archive__sidebar-body { padding: 0; overflow: visible; }
}

/* Mobile: usa offcanvas Bootstrap normalmente */
@media (max-width: 991px) {
  .ped-archive__sidebar .ped-filter-group__toggle { border-radius: 0; }
}

.ped-archive__sidebar-header {
  background: var(--ped-primary);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.ped-archive__sidebar-header .offcanvas-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ped-white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.ped-archive__sidebar-header .offcanvas-title i { font-size: 20px; }
.ped-archive__sidebar-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 26px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  transition: color var(--ped-transition);
}
.ped-archive__sidebar-close:hover { color: var(--ped-white); }

/* Grupo de filtro */
.ped-filter-group {
  border-bottom: 1px solid var(--ped-gray-border);
}
.ped-filter-group:last-child { border-bottom: none; }

.ped-filter-group__toggle {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 13px 16px;
  font-size: .875rem;
  font-weight: 700;
  font-family: var(--ped-font);
  color: var(--ped-text);
  cursor: pointer;
  text-align: left;
  gap: 6px;
  transition: background var(--ped-transition);
}
.ped-filter-group__toggle:hover { background: var(--ped-gray-bg); }
.ped-filter-group__toggle .bi-chevron-down {
  margin-left: auto;
  font-size: .75rem;
  transition: transform var(--ped-transition);
}
.ped-filter-group__toggle[aria-expanded="false"] .bi-chevron-down { transform: rotate(-90deg); }
.ped-filter-group__badge {
  background: var(--ped-primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 1px 7px;
  line-height: 1.6;
}

/* Lista de filtros */
.ped-filter-list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}
.ped-filter-list__item { margin: 0; }
.ped-filter-list__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: .82rem;
  color: var(--ped-text);
  text-decoration: none;
  transition: background var(--ped-transition), color var(--ped-transition);
}
.ped-filter-list__link:hover { background: var(--ped-gray-bg); color: var(--ped-primary); }
.ped-filter-list__link.is-current {
  color: var(--ped-primary);
  font-weight: 700;
}
.ped-filter-list__name { flex: 1; }
.ped-filter-list__count {
  font-size: .74rem;
  color: var(--ped-gray-text);
  background: var(--ped-gray-bg);
  border-radius: 20px;
  padding: 1px 7px;
  line-height: 1.6;
  flex-shrink: 0;
}

/* Checkboxes de marca */
.ped-filter-check { cursor: pointer; }
.ped-filter-check__box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ped-gray-border);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .7rem;
  transition: background var(--ped-transition), border-color var(--ped-transition);
}
.ped-filter-check.is-active .ped-filter-check__box {
  background: var(--ped-primary);
  border-color: var(--ped-primary);
  color: #fff;
}
.ped-filter-check.is-active { color: var(--ped-primary); font-weight: 600; }
.ped-filter-check.is-active .ped-filter-list__count { background: rgba(39,59,155,.1); color: var(--ped-primary); }

/* Filtros ativos (sidebar) */
.ped-filter-active {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ped-gray-border);
  background: rgba(39,59,155,.04);
}
.ped-filter-active__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  margin-bottom: 8px;
}
.ped-filter-active__header span { font-weight: 700; color: var(--ped-text); }
.ped-filter-active__clear {
  font-size: .75rem;
  color: var(--ped-primary);
  text-decoration: underline;
}
.ped-filter-active__chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Chips de filtro */
.ped-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ped-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: background var(--ped-transition);
}
.ped-filter-chip:hover { background: var(--ped-primary-dark); color: #fff; }
.ped-filter-chip--clear {
  background: var(--ped-gray-bg);
  color: var(--ped-gray-text);
  border: 1px solid var(--ped-gray-border);
}
.ped-filter-chip--clear:hover { background: var(--ped-gray-border); color: var(--ped-text); }

/* ── Área de conteúdo ───────────────────────────────────────────────────── */
.ped-archive__content { min-width: 0; }

/* Toolbar */
.ped-archive__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--ped-gray-border);
  margin-bottom: 20px;
}
.ped-archive__toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ped-archive__count {
  font-size: .875rem;
  color: var(--ped-gray-text);
  margin: 0;
}

/* Botão "Filtrar" (mobile) */
.ped-filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ped-white);
  border: 1.5px solid var(--ped-gray-border);
  border-radius: var(--ped-radius-sm);
  padding: 7px 12px;
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--ped-font);
  color: var(--ped-text);
  cursor: pointer;
  transition: border-color var(--ped-transition);
  position: relative;
}
.ped-filter-toggle-btn:hover { border-color: var(--ped-primary); color: var(--ped-primary); }
.ped-filter-toggle-btn .bi-funnel-fill { color: var(--ped-primary); }
.ped-filter-toggle-btn__badge {
  background: var(--ped-primary);
  color: #fff;
  font-size: .68rem;
  border-radius: 20px;
  padding: 1px 6px;
  line-height: 1.6;
}

/* Sort dropdown (WooCommerce .woocommerce-ordering) */
.ped-archive__sort .woocommerce-ordering { margin: 0; }
.ped-archive__sort select.orderby {
  appearance: none;
  -webkit-appearance: none;
  background: var(--ped-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--ped-gray-border);
  border-radius: var(--ped-radius-sm);
  padding: 7px 34px 7px 12px;
  font-size: .875rem;
  font-family: var(--ped-font);
  color: var(--ped-text);
  cursor: pointer;
  transition: border-color var(--ped-transition);
}
.ped-archive__sort select.orderby:focus {
  outline: none;
  border-color: var(--ped-primary);
}

/* Chips acima do grid (visible em todos os tamanhos) */
.ped-archive__active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* Empty state */
.ped-archive__empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--ped-gray-text);
}
.ped-archive__empty .bi-box-seam {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 16px;
  color: var(--ped-gray-border);
}
.ped-archive__empty p {
  font-size: 1.1rem;
  margin: 0 0 20px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .ped-archive__layout {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }
  /* Bootstrap offcanvas (position:fixed) tira a sidebar do flow automaticamente.
     Não usar display:none aqui — quebraria a abertura pelo data-bs-toggle. */
}

@media (max-width: 767px) {
  .ped-archive__title { font-size: 1.2rem; }
  .ped-archive__toolbar { flex-wrap: wrap; gap: 8px; }
  .ped-archive__toolbar-left { flex-wrap: wrap; }
}

@media (max-width: 479.98px) {
  .ped-archive__toolbar { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════════════════════
   COLÉGIOS — Archive (/colegios/) e Single (/colegio/<slug>/)
   ══════════════════════════════════════════════════════════════════════════ */

/* Hero comum */
.ped-colegios-hero,
.ped-colegio-hero {
  background: linear-gradient(135deg, var(--ped-primary) 0%, var(--ped-primary-light, var(--ped-primary)) 100%);
  color: #fff;
  padding: 36px 0 32px;
}
.ped-colegios-hero__title,
.ped-colegio-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
}
.ped-colegios-hero__intro {
  font-size: .95rem;
  opacity: .9;
  max-width: 720px;
}

/* Archive: busca */
.ped-colegios-search { margin-top: -22px; margin-bottom: 24px; position: relative; z-index: 2; }
.ped-colegios-search__label {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--ped-gray-border);
  border-radius: var(--ped-radius);
  padding: 10px 16px;
  box-shadow: var(--ped-shadow);
  max-width: 520px;
  margin: 0 auto;
}
.ped-colegios-search__label i { color: var(--ped-gray-text); font-size: 1.1rem; }
.ped-colegios-search__input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: .95rem; color: var(--ped-text, #222);
}

/* Archive: grid */
.ped-colegios-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  list-style: none; padding: 0; margin: 0 0 32px;
}
.ped-colegio-card { display: flex; }
.ped-colegio-card__link {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%;
  padding: 20px 14px;
  background: #fff;
  border: 1px solid var(--ped-gray-border);
  border-radius: var(--ped-radius);
  text-decoration: none; color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ped-colegio-card__link:hover {
  transform: translateY(-3px);
  box-shadow: var(--ped-shadow-lg);
  border-color: var(--ped-primary);
}
.ped-colegio-card__logo-wrap {
  width: 110px; height: 110px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.ped-colegio-card__logo { max-width: 100%; max-height: 100%; height: auto; width: auto; object-fit: contain; }
.ped-colegio-card__placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--ped-gray-bg, #f4f4f4);
  font-weight: 700; color: var(--ped-primary);
  font-size: 1.4rem;
}
.ped-colegio-card__name {
  margin: 0 0 4px; font-size: .95rem; font-weight: 700; color: var(--ped-text, #222);
  line-height: 1.3;
}
.ped-colegio-card__count {
  font-size: .78rem; color: var(--ped-gray-text); font-weight: 500;
}
.ped-colegios-empty {
  text-align: center; padding: 40px 16px; color: var(--ped-gray-text);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* Single colégio: hero compacto (cinza claro, logo + nome) ─────────────── */
.ped-colegio-page .ped-colegio-hero {
  background: var(--ped-gray-bg, #f4f4f4);
  color: var(--ped-text, #222);
  padding: 28px 0;
}
.ped-colegio-hero__inner {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.ped-colegio-hero__logo-wrap {
  flex: 0 0 auto;
  width: 120px; height: 120px;
  background: #fff; border-radius: var(--ped-radius);
  padding: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--ped-shadow);
}
.ped-colegio-hero__logo { max-width: 100%; max-height: 100%; object-fit: contain; }
.ped-colegio-hero__placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-weight: 800; font-size: 1.8rem;
  color: var(--ped-primary); background: var(--ped-gray-bg, #f4f4f4); border-radius: 50%;
}
.ped-colegio-hero__info { flex: 1 1 320px; }
.ped-colegio-hero__title {
  margin: 0; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.01em;
  color: var(--ped-text, #222);
}
.ped-colegio-hero__title strong { color: var(--ped-primary); font-weight: 800; }
.ped-colegio-hero__label { color: var(--ped-gray-text); font-weight: 500; margin-right: 4px; }
.ped-colegio-hero__desc { margin: 8px 0 0; color: var(--ped-gray-text); max-width: 720px; }

/* Single colégio: lista de listas (linhas) ────────────────────────────── */
.ped-colegio-listas { padding: 28px 0 16px; }
.ped-colegio-listas__title {
  margin: 0 0 18px; font-size: 1.1rem; font-weight: 700; color: var(--ped-text, #222);
}
.ped-lista-rows {
  list-style: none; padding: 0; margin: 0;
  border: 1px solid var(--ped-gray-border);
  border-radius: var(--ped-radius);
  background: #fff;
  overflow: hidden;
}
.ped-lista-row-item {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ped-gray-border);
  transition: background .15s;
}
.ped-lista-row-item:last-child { border-bottom: 0; }
.ped-lista-row-item:hover { background: #fafafa; }
.ped-lista-row-item__info {
  display: flex; align-items: baseline; gap: 8px; flex: 1 1 280px; flex-wrap: wrap;
}
.ped-lista-row-item__bullet { color: var(--ped-primary); font-weight: 700; font-size: 1.1rem; }
.ped-lista-row-item__title { margin: 0; font-size: 1rem; font-weight: 600; color: var(--ped-text, #222); }
.ped-lista-row-item__meta { color: var(--ped-gray-text); font-size: .82rem; }
.ped-lista-row-item__cta {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px;
  font-size: .9rem; font-weight: 700; flex-shrink: 0;
}

@media (max-width: 575px) {
  .ped-lista-row-item { padding: 14px 14px; }
  .ped-lista-row-item__cta { width: 100%; justify-content: center; }
}

/* Paginação */
.ped-pagination {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  margin: 24px 0;
}
.ped-pagination .page-numbers {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border: 1px solid var(--ped-gray-border);
  border-radius: var(--ped-radius-sm, 6px);
  text-decoration: none; color: var(--ped-text, #222); font-size: .9rem;
  background: #fff; transition: background .15s, border-color .15s;
}
.ped-pagination .page-numbers:hover { background: var(--ped-gray-bg, #f4f4f4); }
.ped-pagination .page-numbers.current {
  background: var(--ped-primary); border-color: var(--ped-primary); color: #fff;
}
.ped-colegio-empty {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 40px 16px; color: var(--ped-gray-text);
}
.ped-colegio-back { text-align: center; margin-top: 16px; }
