/* === kaynak: components.css 1553-2105 - Z-2 sprint === */

   SECTION 39 — CATEGORY PAGE: Breadcrumb, Toolbar, Filters,
                 Pagination, Empty State
   ═══════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.th-breadcrumb {
  padding: 12px 0;
  font-size: var(--th-breadcrumb-font, var(--th-text-xs, 12px));
}
.th-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.th-breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: var(--th-breadcrumb-text, var(--th-color-text-muted));
}
.th-breadcrumb li + li::before {
  content: "\203A";
  margin: 0 8px;
  color: var(--th-breadcrumb-separator, var(--th-neutral-300));
  font-size: 1.1em;
}
.th-breadcrumb a {
  color: var(--th-breadcrumb-link, var(--th-color-text-muted));
  text-decoration: none;
  transition: color .15s ease;
}
.th-breadcrumb a:hover {
  color: var(--th-breadcrumb-link-hover, var(--th-color-primary));
}
.th-breadcrumb [aria-current="page"] {
  color: var(--th-breadcrumb-current, var(--th-color-text));
  font-weight: var(--th-font-medium, 500);
}

/* ── Toolbar (qsf-topbar enhanced) ── */
.th-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--th-color-border-light);
  margin-bottom: 20px;
}
.th-toolbar__count {
  font-size: var(--th-text-sm, 14px);
  color: var(--th-color-text-secondary);
  margin-right: auto;
  white-space: nowrap;
}
.th-toolbar__count strong {
  font-weight: 600;
  color: var(--th-color-text);
}
.th-toolbar__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Quick Filter Chips ── */
.th-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: var(--th-text-xs, 12px);
  font-weight: var(--th-font-medium, 500);
  border-radius: var(--th-radius-full, 999px);
  border: 1px solid var(--th-color-border);
  background: var(--th-color-bg);
  color: var(--th-color-text-secondary);
  text-decoration: none;
  line-height: 1.2;
  transition: all .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.th-chip:hover {
  border-color: var(--th-color-primary);
  color: var(--th-color-primary);
  background: var(--th-color-primary-subtle, rgba(20,97,58,.05));
}
.th-chip .th-chip__ico {
  font-size: 14px;
  line-height: 1;
}
.th-chip--free { color: var(--th-color-accent); border-color: var(--th-orange-200); background: var(--th-color-accent-subtle); }
.th-chip--fast { color: #e91e63; border-color: #f7c2d4; background: #fff0f6; }
.th-chip--viral { color: #6f42c1; border-color: #d9ccff; background: #f5f0ff; }
.th-chip--sale { color: #009688; border-color: #b2dfdb; background: #f0fbfa; }
.th-chip.is-active {
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.th-chip.is-active::after {
  content: "\00D7";
  font-size: 14px;
  margin-left: 4px;
  opacity: .7;
}

/* ── Sort Dropdown ── */
.th-sort-wrap {
  position: relative;
}
.th-sort-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: var(--th-text-sm, 14px);
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-md, 8px);
  background: var(--th-color-bg);
  color: var(--th-color-text);
  cursor: pointer;
  transition: border-color .15s ease;
}
.th-sort-trigger:hover {
  border-color: var(--th-color-primary);
}
.th-sort-trigger i { font-size: 12px; color: var(--th-color-text-muted); }

/* ── Sort Options (radios styled as list) ── */
.category-filter-order .list-wrap .list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-filter-order .list-wrap .list li .lag-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--th-radius-full, 999px);
  border: 1px solid var(--th-color-border);
  background: var(--th-color-bg);
  cursor: pointer;
  transition: all .15s ease;
  font-size: var(--th-text-xs, 12px);
}
.category-filter-order .list-wrap .list li .lag-checkbox:hover {
  border-color: var(--th-color-primary);
  background: var(--th-color-primary-subtle, rgba(20,97,58,.05));
}
.category-filter-order .list-wrap .list li .lag-checkbox input[type="radio"] {
  display: none;
}
.category-filter-order .list-wrap .list li .lag-checkbox input[type="radio"]:checked + label {
  font-weight: 600;
  color: var(--th-color-primary);
}
.category-filter-order .list-wrap .list li .lag-checkbox label {
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
  font-size: inherit;
}
.category-filter-order .list-wrap .list li .lag-checkbox span {
  display: none;
}

/* ── Filter Sidebar (Desktop) ── */
.th-filter-panel {
  background: var(--th-filter-bg, #fff);
  border: 1px solid var(--th-filter-border, var(--th-color-border));
  border-radius: var(--th-radius-lg, 12px);
  overflow: hidden;
}
.th-filter-group {
  border-bottom: 1px solid var(--th-color-border-light);
}
.th-filter-group:last-child {
  border-bottom: 0;
}
.th-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: var(--th-filter-heading-font, var(--th-text-sm, 14px));
  font-weight: var(--th-filter-heading-weight, 600);
  color: var(--th-filter-heading, var(--th-color-text));
  cursor: pointer;
  user-select: none;
  transition: background .15s ease;
}
.th-filter-heading:hover {
  background: var(--th-color-bg-secondary);
}
.th-filter-heading i {
  font-size: 10px;
  color: var(--th-color-text-muted);
  transition: transform .2s ease;
}
.th-filter-group.is-open .th-filter-heading i {
  transform: rotate(180deg);
}
.th-filter-body {
  padding: 0 16px 14px;
}
.th-filter-body .lag-checkbox {
  padding: 6px 8px;
  border-radius: var(--th-radius-md, 8px);
  transition: background .15s ease;
}
.th-filter-body .lag-checkbox:hover {
  background: var(--th-color-bg-secondary);
}
.th-filter-body .lag-checkbox label {
  font-size: var(--th-text-sm, 14px);
  color: var(--th-filter-option-text, var(--th-color-text-secondary));
  cursor: pointer;
}
.th-filter-body .lag-checkbox input:checked + label {
  font-weight: 500;
  color: var(--th-filter-option-hover, var(--th-color-primary));
}

/* ── Filter Tags (active filters) ── */
.th-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
}
.th-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: var(--th-text-xs, 12px);
  background: var(--th-filter-chip-bg, var(--th-color-primary-subtle));
  color: var(--th-filter-chip-text, var(--th-color-primary));
  border: 1px solid var(--th-filter-chip-border, transparent);
  border-radius: var(--th-filter-chip-radius, 999px);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.th-filter-tag__remove {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--th-filter-chip-remove, var(--th-color-primary));
  opacity: .7;
  transition: opacity .15s ease;
}
.th-filter-tag__remove:hover { opacity: 1; }

/* ── Mobile Filter Drawer ── */
.th-filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--th-filter-drawer-width, 320px);
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--th-filter-drawer-bg, #fff);
  box-shadow: var(--th-filter-drawer-shadow, 8px 0 32px rgba(0,0,0,.15));
  z-index: var(--th-z-drawer, 1040);
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.th-filter-drawer.is-open {
  transform: translateX(0);
}
.th-filter-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--th-color-border-light);
  flex-shrink: 0;
}
.th-filter-drawer__title {
  font-size: var(--th-text-lg, 18px);
  font-weight: var(--th-font-bold, 700);
  color: var(--th-color-text);
  margin: 0;
}
.th-filter-drawer__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--th-color-bg-secondary);
  border-radius: var(--th-radius-full);
  cursor: pointer;
  font-size: 18px;
  color: var(--th-color-text);
  transition: background .15s ease;
}
.th-filter-drawer__close:hover {
  background: var(--th-color-border-light);
}
.th-filter-drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
}
.th-filter-drawer__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--th-color-border-light);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.th-filter-drawer__footer .btn {
  flex: 1;
}

/* Drawer backdrop */
.th-filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: calc(var(--th-z-drawer, 1040) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.th-filter-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ── Pagination ── */
.th-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 32px 0 16px;
}
.th-pagination a,
.th-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--th-pagination-size, 36px);
  height: var(--th-pagination-size, 36px);
  padding: 0 10px;
  font-size: var(--th-text-sm, 14px);
  border-radius: var(--th-pagination-radius, var(--th-radius-md, 8px));
  border: 1px solid var(--th-pagination-border, var(--th-color-border));
  background: var(--th-pagination-bg, #fff);
  color: var(--th-pagination-text, var(--th-color-text-secondary));
  text-decoration: none;
  transition: all .15s ease;
}
.th-pagination a:hover {
  background: var(--th-pagination-bg-hover, var(--th-neutral-50));
  border-color: var(--th-color-primary);
  color: var(--th-color-primary);
}
.th-pagination .active,
.th-pagination [aria-current="page"] {
  background: var(--th-pagination-bg-active, var(--th-color-primary));
  color: var(--th-pagination-text-active, #fff);
  border-color: var(--th-pagination-bg-active, var(--th-color-primary));
  font-weight: 600;
}
.th-pagination .disabled {
  opacity: .4;
  pointer-events: none;
}

@media (max-width: 576px) {
  .th-pagination { gap: 2px; }
  .th-pagination a,
  .th-pagination span { min-width: 32px; height: 32px; font-size: 13px; }
}

/* ── Empty State ── */
.th-empty-state {
  text-align: center;
  padding: 64px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.th-empty-state__icon {
  font-size: 48px;
  color: var(--th-color-text-muted);
  margin-bottom: 16px;
}
.th-empty-state__title {
  font-size: var(--th-text-lg, 18px);
  font-weight: var(--th-font-semibold, 600);
  color: var(--th-color-text);
  margin: 0 0 8px;
}
.th-empty-state__desc {
  font-size: var(--th-text-sm, 14px);
  color: var(--th-color-text-secondary);
  margin: 0 0 24px;
}
.th-empty-state__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: var(--th-text-sm, 14px);
  font-weight: var(--th-font-medium, 500);
  color: var(--th-color-text-inverse);
  background: var(--th-color-primary);
  border-radius: var(--th-radius-md, 8px);
  text-decoration: none;
  transition: background .15s ease;
}
.th-empty-state__cta:hover {
  background: var(--th-color-primary-hover);
  color: var(--th-color-text-inverse);
}

/* ── Category Description (SEO) ── */
.th-category-desc {
  margin-top: 32px;
  padding: 24px;
  background: var(--th-color-bg-secondary);
  border-radius: var(--th-radius-lg, 12px);
  font-size: var(--th-text-sm, 14px);
  color: var(--th-color-text-secondary);
  line-height: 1.7;
}
.th-category-desc h1,
.th-category-desc h2,
.th-category-desc h3 {
  font-size: var(--th-text-lg, 18px);
  font-weight: var(--th-font-bold, 700);
  color: var(--th-color-text);
  margin: 0 0 12px;
}
.th-category-desc.is-collapsed {
  max-height: 120px;
  overflow: hidden;
  position: relative;
}
.th-category-desc.is-collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(transparent, var(--th-color-bg-secondary));
  pointer-events: none;
}
.th-category-desc__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: var(--th-text-sm, 14px);
  font-weight: var(--th-font-medium, 500);
  color: var(--th-color-primary);
  cursor: pointer;
  border: 0;
  background: 0;
  padding: 0;
  transition: color .15s ease;
}
.th-category-desc__toggle:hover {
  color: var(--th-color-primary-hover);
}

/* ── Mobile responsive buttons ── */
.th-mobile-toolbar {
  display: none;
  gap: 8px;
  padding: 12px 0;
}
.th-mobile-toolbar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: var(--th-text-sm, 14px);
  font-weight: var(--th-font-medium, 500);
  color: var(--th-color-text);
  background: var(--th-color-bg);
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-md, 8px);
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
}
.th-mobile-toolbar__btn:hover {
  border-color: var(--th-color-primary);
  color: var(--th-color-primary);
}
.th-mobile-toolbar__btn i { font-size: 14px; }

@media (max-width: 991px) {
  .th-mobile-toolbar { display: flex; }
}

/* ── Banner Grid (promo-banner enhanced) ── */
.th-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
}
.th-banner-grid a,
.th-banner-grid > div {
  border-radius: var(--th-radius-lg, 12px);
  overflow: hidden;
  display: block;
}
.th-banner-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.th-banner-grid a:hover img,
.th-banner-grid > div:hover img {
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .th-banner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .th-banner-grid { grid-template-columns: 1fr; gap: 12px; }
}


