/* Baize category/tag list page based on the 1400px hero + filters mockup. */

body:not(.dark-theme) .baize-category-page {
  --bg: #f3f7ff;
  --paper: #fff;
  --ink: #101828;
  --muted: #667085;
  --line: #e6edf7;
  --blue: #2563eb;
  --blue2: #1d4ed8;
  --sky: #38bdf8;
  --green: #10b981;
  --orange: #f59e0b;
  --shadow: 0 16px 48px rgba(15, 23, 42, .08);
  --soft: 0 10px 30px rgba(15, 23, 42, .05);
  --full-w: 1400px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, .10), transparent 28%),
    radial-gradient(circle at 88% 6%, rgba(56, 189, 248, .12), transparent 30%),
    var(--bg);
  line-height: 1.7;
}

body:not(.dark-theme) .baize-category-page *,
body:not(.dark-theme) .baize-category-page *::before,
body:not(.dark-theme) .baize-category-page *::after {
  box-sizing: border-box;
}

body:not(.dark-theme) .baize-category-page .container {
  width: min(var(--full-w), calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
}

body:not(.dark-theme) .baize-category-page a {
  text-decoration: none;
}

body:not(.dark-theme) .baize-category-page .page-hero {
  padding: 38px 0 18px;
}

body:not(.dark-theme) .baize-category-page .hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #eaf0f8;
  border-radius: 32px;
  background:
    radial-gradient(circle at 86% 16%, rgba(56, 189, 248, .18), transparent 28%),
    linear-gradient(135deg, #fff 0%, #f8fbff 100%);
  box-shadow: var(--shadow);
}

body:not(.dark-theme) .baize-category-page .hero-card::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(37, 99, 235, .07);
}

body:not(.dark-theme) .baize-category-page .tag-hero {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: center;
  padding: 38px 42px;
}

body:not(.dark-theme) .baize-category-page .breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 13px;
}

body:not(.dark-theme) .baize-category-page .breadcrumb span:last-child {
  color: var(--blue);
  font-weight: 900;
}

body:not(.dark-theme) .baize-category-page .hero-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

body:not(.dark-theme) .baize-category-page .tag-badge {
  display: inline-flex;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

body:not(.dark-theme) .baize-category-page .hero-title h1 {
  margin: 16px 0 12px;
  color: var(--ink);
  font-size: 46px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

body:not(.dark-theme) .baize-category-page .hero-title p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

body:not(.dark-theme) .baize-category-page .hero-data {
  display: grid;
  min-width: 420px;
  grid-template-columns: repeat(3, 128px);
  gap: 12px;
}

body:not(.dark-theme) .baize-category-page .hero-stat {
  min-height: 100px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

body:not(.dark-theme) .baize-category-page .hero-stat b {
  display: block;
  overflow-wrap: anywhere;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

body:not(.dark-theme) .baize-category-page .hero-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

body:not(.dark-theme) .baize-category-page .filter-section {
  padding: 0 0 20px;
}

body:not(.dark-theme) .baize-category-page .filter-panel {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft);
}

body:not(.dark-theme) .baize-category-page .baize-category-filter-native {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body:not(.dark-theme) .baize-category-page .baize-category-filter-native > .flex,
body:not(.dark-theme) .baize-category-page .filter-row {
  display: grid !important;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 12px 0 16px;
  border-bottom: 1px dashed #e5edf7;
}

body:not(.dark-theme) .baize-category-page .baize-category-filter-native > .flex:first-child,
body:not(.dark-theme) .baize-category-page .filter-row:first-child {
  padding-top: 0;
}

body:not(.dark-theme) .baize-category-page .filter-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body:not(.dark-theme) .baize-category-page .baize-category-filter-native > .flex:last-of-type {
  border-bottom: 0;
}

body:not(.dark-theme) .baize-category-page .option-dropdown,
body:not(.dark-theme) .baize-category-page .filter-label {
  min-width: 0 !important;
  padding-top: 11px;
  border: 0 !important;
  background: transparent !important;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

body:not(.dark-theme) .baize-category-page .option-dropdown.splitters-this-r::before,
body:not(.dark-theme) .baize-category-page .option-dropdown.splitters-this-r::after {
  display: none !important;
  content: none !important;
}

body:not(.dark-theme) .baize-category-page .option-dropdown a {
  color: #0f172a;
}

body:not(.dark-theme) .baize-category-page .option-items,
body:not(.dark-theme) .baize-category-page .filter-tags {
  display: flex !important;
  min-width: 0;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
}

body:not(.dark-theme) .baize-category-page .option-items > li {
  margin: 0 !important;
  padding: 0 !important;
}

body:not(.dark-theme) .baize-category-page .option-items a,
body:not(.dark-theme) .baize-category-page .filter-tag {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: #f8fbff !important;
  color: #475467 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.25;
  text-decoration: none !important;
  white-space: nowrap;
}

body:not(.dark-theme) .baize-category-page .option-items a.focus-color,
body:not(.dark-theme) .baize-category-page .filter-tag.active {
  border-color: var(--blue) !important;
  background: var(--blue) !important;
  color: #fff !important;
}

body:not(.dark-theme) .baize-category-page .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--soft);
}

body:not(.dark-theme) .baize-category-page .main-section {
  padding: 0 0 68px;
}

body:not(.dark-theme) .baize-category-page .layout {
  display: block;
}

body:not(.dark-theme) .baize-category-page .content-main {
  display: grid;
  width: 100%;
  gap: 30px;
}

body:not(.dark-theme) .baize-category-page .toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft);
}

body:not(.dark-theme) .baize-category-page .toolbar-title h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0;
}

body:not(.dark-theme) .baize-category-page .toolbar-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

body:not(.dark-theme) .baize-category-page .sort-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

body:not(.dark-theme) .baize-category-page .sort-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  color: #475467;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

body:not(.dark-theme) .baize-category-page .sort-tab.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .post-list.posts-row.ajaxpager {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 36px !important;
  margin: 36px 0 0 !important;
  padding: 0 !important;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.card,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.list {
  display: block !important;
  overflow: hidden !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 26px !important;
  background: #fff !important;
  box-shadow: var(--soft) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.card:hover,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.list:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(15, 23, 42, .09) !important;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.card > .item-thumbnail,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.list .post-graphic,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.list .item-thumbnail {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 180px !important;
  min-height: 180px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 26% 24%, rgba(37, 99, 235, .22), transparent 30%),
    radial-gradient(circle at 86% 72%, rgba(124, 58, 237, .12), transparent 28%),
    linear-gradient(135deg, #edf6ff, #f5f0ff) !important;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item .item-thumbnail img,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item .item-thumbnail .fit-cover,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item .item-thumbnail .img-thumb,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item .item-thumbnail .swiper-slide {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  object-fit: cover;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.card > .item-body,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.list > .item-body,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.list .item-body {
  display: flex !important;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  padding: 18px !important;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.list > .flex {
  display: block !important;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.card .item-heading,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.list .item-heading {
  min-height: 50px;
  margin: 0 !important;
  color: var(--ink);
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.38 !important;
  letter-spacing: 0;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item .item-heading a {
  color: inherit !important;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.card .baize-list-desc,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.list .baize-list-desc,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item .item-excerpt {
  display: -webkit-box !important;
  overflow: hidden !important;
  min-height: 66px !important;
  max-height: 66px !important;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  text-overflow: initial !important;
  white-space: normal !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.card .item-tags,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item.list .item-tags {
  order: -1;
  display: flex !important;
  min-height: 0 !important;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0 !important;
  padding: 0 !important;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item .item-tags a,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item .item-tags item,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item .item-tags .but {
  display: inline-flex !important;
  align-items: center;
  min-height: 26px !important;
  padding: 5px 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #eef6ff !important;
  color: var(--blue) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.25;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item .item-tags .meta-pay {
  background: #fff !important;
  color: var(--blue) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08) !important;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item .item-meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px !important;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  color: #64748b !important;
  font-size: 12px !important;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item .meta-right,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .posts-item .meta-author {
  min-width: 0;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .baize-list-card-footer,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .baize-list-list-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 10px !important;
  margin-top: 2px !important;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .baize-list-price-value {
  color: var(--blue) !important;
  font-size: 24px !important;
  font-weight: 900 !important;
}

body.baize-list-skin-on:not(.dark-theme) .baize-category-page .baize-list-card-link,
body.baize-list-skin-on:not(.dark-theme) .baize-category-page .baize-list-list-link {
  min-height: 34px !important;
  border-radius: 12px !important;
  background: #eef6ff !important;
  color: var(--blue2) !important;
  font-size: 13px !important;
}

body:not(.dark-theme) .baize-category-page .baize-category-pagination {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

body:not(.dark-theme) .baize-category-page .baize-category-pagination .pagination,
body:not(.dark-theme) .baize-category-page .baize-category-pagination .pagenav,
body:not(.dark-theme) .baize-category-page .baize-category-pagination .posts-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

body:not(.dark-theme) .baize-category-page .baize-category-pagination a,
body:not(.dark-theme) .baize-category-page .baize-category-pagination span {
  border-radius: 14px !important;
}

@media (max-width: 1450px) {
  body:not(.dark-theme) .baize-category-page .container {
    width: min(1400px, calc(100% - 48px));
  }
}

@media (max-width: 1180px) {
  body:not(.dark-theme) .baize-category-page .hero-main {
    grid-template-columns: 1fr;
  }

  body:not(.dark-theme) .baize-category-page .hero-data {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.baize-list-skin-on:not(.dark-theme) .baize-category-page .post-list.posts-row.ajaxpager {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body:not(.dark-theme) .baize-category-page .container {
    width: calc(100% - 32px);
  }

  body:not(.dark-theme) .baize-category-page .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  body.baize-list-skin-on:not(.dark-theme) .baize-category-page .post-list.posts-row.ajaxpager {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body:not(.dark-theme) .baize-category-page .tag-hero {
    min-height: 0;
    padding: 28px 22px;
  }

  body:not(.dark-theme) .baize-category-page .hero-title h1 {
    font-size: 34px;
  }

  body:not(.dark-theme) .baize-category-page .hero-data,
  body:not(.dark-theme) .baize-category-page .baize-category-filter-native > .flex,
  body:not(.dark-theme) .baize-category-page .filter-row,
  body.baize-list-skin-on:not(.dark-theme) .baize-category-page .post-list.posts-row.ajaxpager {
    grid-template-columns: 1fr !important;
  }
}
