/*
Theme Name:   Twenty Twenty-Four Child
Theme URI:    https://wordpress.org/themes/twentytwentyfour/
Description:  Дочерняя тема для BIOMER (лендинги и документация)
Author:       Biomer
Template:     twentytwentyfour
Version:      2.4.0
License:      GNU General Public License v2 or later
Text Domain:  twentytwentyfour-child
*/

/* ========================================================
   ПЕРЕМЕННЫЕ ЦВЕТОВ БИОМЕР
   ======================================================== */
:root {
  --biomer-blue: #1e40af;
  --biomer-blue-light: #dbeafe;
  --biomer-blue-hover: #1e3a8a;
  --biomer-red: #b91c1c;
  --biomer-red-light: #fee2e2;
  --biomer-green: #065f46;
  --biomer-green-light: #d1fae5;
  --biomer-gray: #475569;
  --biomer-gray-light: #e2e8f0;
  --biomer-gray-bg: #f8fafc;
  --biomer-text-primary: #0f172a;
  --biomer-text-secondary: #64748b;
  --biomer-text-muted: #94a3b8;
  --biomer-border: #e2e8f0;
  --biomer-white: #ffffff;
}

/* ========================================================
   БЛОК НОВОСТЕЙ НА ГЛАВНОЙ (шорткод [biomer_news_feed])
   ======================================================== */
.biomor-news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.biomor-news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.biomor-news-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--biomer-text-primary);
  margin: 0;
  letter-spacing: -0.5px;
}

.biomor-news-subtitle {
  font-size: 16px;
  color: var(--biomer-text-secondary);
  margin: 8px 0 0 0;
}

.biomor-news-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--biomer-blue);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.biomor-news-link:hover {
  color: var(--biomer-text-primary);
  text-decoration: underline;
}

/* Сетка карточек */
.biomor-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 1024px) {
  .biomor-news-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .biomor-news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Карточка новости */
.biomor-news-card {
  background: var(--biomer-white);
  border: 1px solid var(--biomer-border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.biomor-news-card:hover {
  border-color: var(--biomer-blue);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.1);
  transform: translateY(-4px);
}

/* Бейдж категории */
.biomor-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
  align-self: flex-start;
}

.biomor-badge-news {
  background: var(--biomer-blue-light);
  color: var(--biomer-blue);
}

.biomor-badge-action {
  background: var(--biomer-red-light);
  color: var(--biomer-red);
}

.biomor-badge-library {
  background: var(--biomer-green-light);
  color: var(--biomer-green);
}

.biomor-badge-default {
  background: var(--biomer-gray-light);
  color: var(--biomer-gray);
}

/* Заголовок карточки */
.biomor-news-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--biomer-text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  transition: color 0.2s;
}

.biomor-news-card:hover .biomor-news-card-title {
  color: var(--biomer-blue);
}

/* Отрывок */
.biomor-news-card-excerpt {
  font-size: 14px;
  color: var(--biomer-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Мета-данные (дата) */
.biomor-news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--biomer-border);
}

.biomor-news-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--biomer-text-muted);
  font-size: 12px;
}

.biomor-news-card-date::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--biomer-text-muted);
}

/* Пустое состояние */
.biomor-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--biomer-text-muted);
  font-size: 16px;
  background: var(--biomer-white);
  border: 1px dashed var(--biomer-border);
  border-radius: 12px;
}

/* Пагинация */
.biomor-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--biomer-border);
}

.biomor-pagination a,
.biomor-pagination span {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.biomor-pagination a {
  color: var(--biomer-blue);
  background: var(--biomer-blue-light);
}

.biomor-pagination a:hover {
  background: var(--biomer-blue);
  color: var(--biomer-white);
}

.biomor-pagination .current {
  background: var(--biomer-blue);
  color: var(--biomer-white);
}

/* ========================================================
   АРХИВ НОВОСТЕЙ (страница /news/)
   ======================================================== */
.biomor-archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.biomor-archive-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--biomer-text-primary);
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

.biomor-archive-description {
  font-size: 16px;
  color: var(--biomer-text-secondary);
  margin: 0 0 40px 0;
  max-width: 800px;
}

/* ========================================================
   АРХИВ БИБЛИОТЕКИ (страница /библиотека/)
   ======================================================== */
.biomor-library-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.biomor-library-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--biomer-text-primary);
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

.biomor-library-description {
  font-size: 16px;
  color: var(--biomer-text-secondary);
  margin: 0 0 40px 0;
  max-width: 800px;
}

/* ========================================================
   КАТАЛОГ ТОВАРОВ
   ======================================================== */
.biomor-catalog-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
}

@media (max-width: 1024px) {
  .biomor-catalog-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Сайдбар с фильтрами */
.biomor-sidebar {
  background: var(--biomer-white);
  border: 1px solid var(--biomer-border);
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.biomor-sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--biomer-text-primary);
  margin: 0 0 20px 0;
}

.biomor-filter-group {
  margin-bottom: 24px;
}

.biomor-filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--biomer-text-primary);
  margin-bottom: 8px;
  display: block;
}

.biomor-filter-select,
.biomor-filter-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--biomer-border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--biomer-white);
  transition: border-color 0.2s;
}

.biomor-filter-select:focus,
.biomor-filter-input:focus {
  outline: none;
  border-color: var(--biomer-blue);
}

.biomor-price-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Сетка товаров */
.biomor-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
}

.biomor-products-grid.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
}

.biomor-products-count {
  font-size: 14px;
  color: var(--biomer-text-secondary);
  margin-bottom: 16px;
}

.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--biomer-text-muted);
}

/* ========================================================
   КНОПКИ СРАВНЕНИЯ И ИЗБРАННОГО
   ======================================================== */
.biomor-product-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.biomor-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--biomer-border);
  border-radius: 6px;
  background: var(--biomer-white);
  font-size: 12px;
  font-weight: 500;
  color: var(--biomer-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.biomor-btn:hover {
  border-color: var(--biomer-blue);
  color: var(--biomer-blue);
  background: var(--biomer-blue-light);
}

.biomor-btn.active {
  border-color: var(--biomer-blue);
  color: var(--biomer-white);
  background: var(--biomer-blue);
}

.biomor-btn-compare.active {
  background: var(--biomer-blue);
}

.biomor-btn-favorite.active {
  background: var(--biomer-red);
  border-color: var(--biomer-red);
}

/* ========================================================
   ПОИСК С АВТОДОПОЛНЕНИЕМ
   ======================================================== */
.biomor-search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto 40px;
}

#biomer-product-search {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--biomer-border);
  border-radius: 12px;
  font-size: 16px;
  transition: border-color 0.2s;
}

#biomer-product-search:focus {
  outline: none;
  border-color: var(--biomer-blue);
}

#biomer-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--biomer-white);
  border: 1px solid var(--biomer-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.biomor-search-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.biomor-search-results-list li {
  border-bottom: 1px solid var(--biomer-border);
}

.biomor-search-results-list li:last-child {
  border-bottom: none;
}

.biomor-search-result-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.biomor-search-result-item:hover {
  background: var(--biomer-gray-bg);
}

.biomor-search-result-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.biomor-search-result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.biomor-search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--biomer-text-primary);
}

.biomor-search-result-price {
  font-size: 13px;
  color: var(--biomer-blue);
  font-weight: 600;
}

.biomor-search-empty {
  padding: 20px;
  text-align: center;
  color: var(--biomer-text-muted);
}

/* ========================================================
   СРАВНЕНИЕ ТОВАРОВ
   ======================================================== */
.biomor-compare-table {
  overflow-x: auto;
  margin: 40px auto;
  max-width: 1400px;
  padding: 0 24px;
}

.biomor-compare-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--biomer-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.biomor-compare-table th,
.biomor-compare-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--biomer-border);
}

.biomor-compare-table th {
  background: var(--biomer-gray-bg);
  font-weight: 600;
  color: var(--biomer-text-primary);
}

.biomor-compare-table td:first-child {
  font-weight: 600;
  color: var(--biomer-text-primary);
  background: var(--biomer-gray-bg);
}

.in-stock {
  color: var(--biomer-green);
  font-weight: 600;
}

.out-stock {
  color: var(--biomer-red);
  font-weight: 600;
}

/* ========================================================
   ИЗБРАННОЕ
   ======================================================== */
.biomor-favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 24px;
}

.biomor-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--biomer-text-muted);
  font-size: 16px;
}

/* ========================================================
   СЧЕТЧИКИ В МЕНЮ
   ======================================================== */
.biomor-compare-counter,
.biomor-favorites-counter {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  color: var(--biomer-blue);
}

/* ========================================================
   АДАПТИВНОСТЬ
   ======================================================== */
@media (max-width: 768px) {
  .biomor-news-title,
  .biomor-archive-title,
  .biomor-library-title {
    font-size: 28px;
  }
  
  .biomor-news-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .biomor-news-link {
    margin-top: 8px;
  }

  .biomor-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  .biomor-product-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .biomor-news-title,
  .biomor-archive-title,
  .biomor-library-title {
    font-size: 24px;
  }
  
  .biomor-news-container,
  .biomor-archive-container,
  .biomor-library-container {
    padding: 24px 16px;
  }

  .biomor-products-grid {
    grid-template-columns: 1fr;
  }

  .biomor-catalog-wrapper {
    padding: 24px 16px;
  }
}

/* ===== BIOMER CATALOG LAYOUT ===== */
.biomer-catalog-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}
.biomer-catalog {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
  padding: 20px 0 60px;
}
.biomer-breadcrumbs {
  font-size: 13px;
  color: #64748b;
  padding: 18px 0 4px;
}
.biomer-breadcrumbs a { color: #64748b; text-decoration: none; }
.biomer-breadcrumbs a:hover { color: #14578f; }
.biomer-page-title {
  font-size: 32px;
  font-weight: 800;
  margin: 6px 0 0;
}

/* Override default WooCommerce grid */
.biomer-grid ul.products,
.biomer-grid .products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.biomer-grid ul.products li.product,
.biomer-grid .products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

/* ===== BIOMER CATALOG: CARD ===== */
.biomer-card {
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.biomer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20,87,143,.14);
  border-color: #bcd4ea;
}
.biomer-card__media {
  position: relative;
  aspect-ratio: 1/1;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin: 0 !important;
}
.biomer-card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .4s;
  width: auto !important;
  height: auto !important;
}
.biomer-card:hover .biomer-card__media img {
  transform: scale(1.06);
}
.biomer-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
  background: #dc2626;
}
.biomer-badge--sale { background: #f59e0b; color: #3a2a00; }
.biomer-badge--hit  { background: #dc2626; }
.biomer-badge--new  { background: #16a34a; }

.biomer-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.biomer-card__sku {
  font-size: 12px;
  color: #64748b;
}
.biomer-card__brand {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #14578f;
  background: #e8f0f8;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
}
.biomer-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
  margin: 0 !important;
}
.biomer-card__title a { text-decoration: none; color: #0f172a; }
.biomer-card__title a:hover { color: #14578f; }

.biomer-card__stock { font-size: 12px; font-weight: 600; }
.biomer-card__stock--in  { color: #16a34a; }
.biomer-card__stock--out { color: #f59e0b; }

.biomer-card__price {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-top: auto;
}
.biomer-card__price del { font-size: 13px; color: #94a3b8; font-weight: 400; }
.biomer-card__price ins { text-decoration: none; }

.biomer-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.biomer-card__actions .button,
.biomer-card__actions .add_to_cart_button {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  background: #14578f;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s;
  border: none;
  padding: 0 12px;
}
.biomer-card__actions .button:hover,
.biomer-card__actions .add_to_cart_button:hover {
  background: #0e3f68;
}
.biomer-btn-cmp {
  width: 42px;
  height: 42px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 11px;
  color: #64748b;
  background: #fff;
  flex-shrink: 0;
  transition: .2s;
  cursor: pointer;
}
.biomer-btn-cmp:hover {
  border-color: #14578f;
  color: #14578f;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .biomer-catalog {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .biomer-grid ul.products,
  .biomer-grid .products {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 12px !important;
  }
  .biomer-card__price { font-size: 17px; }
  .biomer-page-title { font-size: 24px; }
}

/* ===== BIOMER SIDEBAR ===== */
.biomer-sidebar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px;
  position: sticky;
  top: 90px;
}
.biomer-sidebar__header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 6px;
}
.biomer-sidebar__header h3 {
  font-size: 18px;
  margin: 0;
}
.biomer-sidebar__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 18px;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
}
.biomer-sidebar__close:hover {
  background: #f1f5f9;
}

.biomer-filter-group {
  border-bottom: 1px solid #e2e8f0;
  padding: 14px;
}
.biomer-filter-group:last-of-type {
  border-bottom: none;
}
.biomer-filter-group h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
}

/* Custom Checkboxes */
.biomer-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
  color: #334155;
  user-select: none;
}
.biomer-check:hover {
  color: #14578f;
}
.biomer-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.biomer-check__box {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  flex-shrink: 0;
  transition: .15s;
  position: relative;
}
.biomer-check input:checked + .biomer-check__box {
  background: #14578f;
  border-color: #14578f;
}
.biomer-check input:checked + .biomer-check__box::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.biomer-check__count {
  margin-left: auto;
  font-size: 12px;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 1px 8px;
  border-radius: 99px;
}

/* Search input */
.biomer-search-input {
  width: 100%;
  height: 42px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  box-sizing: border-box;
}
.biomer-search-input:focus {
  outline: none;
  border-color: #14578f;
  box-shadow: 0 0 0 3px #e8f0f8;
}

/* Price inputs */
.biomer-price-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
}
.biomer-price-inputs input {
  width: 100%;
  height: 42px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 14px;
  text-align: center;
  box-sizing: border-box;
}
.biomer-price-inputs input:focus {
  outline: none;
  border-color: #14578f;
}
.biomer-price-inputs span {
  color: #94a3b8;
  flex-shrink: 0;
}

/* Reset button */
.biomer-reset-btn {
  width: calc(100% - 28px);
  margin: 14px;
  height: 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  color: #0f172a;
  transition: .2s;
  cursor: pointer;
}
.biomer-reset-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fef2f2;
}

/* Toolbar */
.biomer-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.biomer-filters-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
}
.biomer-filters-toggle:hover {
  border-color: #14578f;
  color: #14578f;
}
.biomer-count {
  font-size: 14px;
  color: #64748b;
}
.biomer-count b {
  color: #0f172a;
}
.biomer-toolbar__right {
  margin-left: auto;
}

/* ===== MOBILE SIDEBAR ===== */
@media (max-width: 980px) {
  .biomer-filters-toggle {
    display: inline-flex;
  }
  .biomer-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 88vw;
    z-index: 100;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform .3s;
    overflow-y: auto;
    box-shadow: 0 14px 34px rgba(0,0,0,.16);
  }
  .biomer-sidebar.open {
    transform: translateX(0);
  }
  .biomer-sidebar__header {
    display: flex;
  }
}

/* Overlay */
.biomer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}
.biomer-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Empty state */
.biomer-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}
.biomer-empty h3 {
  color: #0f172a;
  font-size: 20px;
  margin-bottom: 8px;
}