/* === kaynak: components.css 1553-2105 - Z-2 sprint === */

   SECTION 39 — CATEGORY PAGE: Breadcrumb, Toolbar, Filters,
                 Pagination, Empty State
   ═══════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.th-breadcrumb {
  padding: var(--th-space-3) 0;
  font-size: var(--th-breadcrumb-font, var(--th-text-xs));
}
.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 var(--th-space-2);
  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);
}

/* ── Toolbar (qsf-topbar enhanced) ── */
.th-toolbar {
  display: flex;
  align-items: center;
  gap: var(--th-space-3);
  flex-wrap: wrap;
  padding: var(--th-space-4) 0;
  border-bottom: 1px solid var(--th-color-border-light);
  margin-bottom: var(--th-space-5);
}
.th-toolbar__count {
  font-size: var(--th-text-sm);
  color: var(--th-color-text-secondary);
  margin-right: auto;
  white-space: nowrap;
}
.th-toolbar__count strong {
  font-weight: var(--th-font-semibold);
  color: var(--th-color-text);
}
.th-toolbar__actions {
  display: flex;
  gap: var(--th-space-2);
  flex-wrap: wrap;
  align-items: center;
}

/* ── Quick Filter Chips ── */
.th-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-1-5);
  padding: var(--th-space-1-5) var(--th-space-3-5);
  font-size: var(--th-text-xs);
  font-weight: var(--th-font-medium);
  border-radius: var(--th-radius-full);
  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);
}
.th-chip .th-chip__ico {
  font-size: var(--th-text-base);
  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: var(--th-rose-600); border-color: var(--th-rose-200); background: var(--th-rose-50); }
.th-chip--viral { color: var(--th-purple-600); border-color: var(--th-violet-200); background: var(--th-violet-50); }
.th-chip--sale { color: var(--th-teal-500); border-color: var(--th-teal-100); background: var(--th-teal-50); }
.th-chip.is-active {
  font-weight: var(--th-font-semibold);
  box-shadow: var(--th-shadow-sm);
}
.th-chip.is-active::after {
  content: "\00D7";
  font-size: var(--th-text-base);
  margin-left: var(--th-space-1);
  opacity: .7;
}


/* ── Sort Options (radios styled as list) ── */
.category-filter-order .list-wrap .list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--th-space-1-5);
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-filter-order .list-wrap .list li .lag-checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-1-5);
  padding: var(--th-space-1-5) var(--th-space-3);
  border-radius: var(--th-radius-full);
  border: 1px solid var(--th-color-border);
  background: var(--th-color-bg);
  cursor: pointer;
  transition: all .15s ease;
  font-size: var(--th-text-xs);
}
.category-filter-order .list-wrap .list li .lag-checkbox:hover {
  border-color: var(--th-color-primary);
  background: var(--th-color-primary-subtle);
}
.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: var(--th-font-semibold);
  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, var(--th-color-bg));
  border: var(--th-border-width-default) solid var(--th-filter-border, var(--th-color-border-light));
  border-radius: var(--th-radius-xl);
  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: var(--th-space-4) var(--th-space-5);
  font-size: var(--th-filter-heading-font, var(--th-text-sm));
  font-weight: var(--th-filter-heading-weight, var(--th-font-semibold));
  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: var(--th-text-2xs);
  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 var(--th-space-5) var(--th-space-4);
}
.th-filter-body .lag-checkbox {
  padding: var(--th-space-1-5) var(--th-space-2);
  border-radius: var(--th-radius-md);
  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);
  color: var(--th-filter-option-text, var(--th-color-text-secondary));
  cursor: pointer;
}
.th-filter-body .lag-checkbox input:checked + label {
  font-weight: var(--th-font-medium);
  color: var(--th-filter-option-hover, var(--th-color-primary));
}

/* ── Filter Tags (active filters) ── */
.th-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--th-space-2);
  padding: var(--th-space-3) 0;
}
.th-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-1-5);
  padding: var(--th-space-1) var(--th-space-2-5);
  font-size: var(--th-text-xs);
  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, var(--th-radius-full));
  font-weight: var(--th-font-semibold);
  cursor: pointer;
  transition: background .15s;
}
.th-filter-tag__remove {
  cursor: pointer;
  font-size: var(--th-text-base);
  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, var(--th-neutral-0));
  box-shadow: var(--th-filter-drawer-shadow, 8px 0 32px color-mix(in srgb, var(--th-ink-900) 15%, transparent));
  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: var(--th-space-4);
  border-bottom: 1px solid var(--th-color-border-light);
  flex-shrink: 0;
}
.th-filter-drawer__title {
  font-size: var(--th-text-lg);
  font-weight: var(--th-font-bold);
  color: var(--th-color-text);
  margin: 0;
}
.th-filter-drawer__close {
  width: 44px;
  height: 44px;
  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: var(--th-text-lg);
  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: var(--th-space-4);
}
.th-filter-drawer__footer {
  padding: var(--th-space-3) var(--th-space-4);
  border-top: 1px solid var(--th-color-border-light);
  display: flex;
  gap: var(--th-space-2);
  flex-shrink: 0;
}
.th-filter-drawer__footer .btn {
  flex: 1;
}

/* Drawer backdrop */
.th-filter-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--th-ink-900) 40%, transparent);
  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: var(--th-space-1);
  padding: var(--th-space-8) 0 var(--th-space-4);
}
.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 var(--th-space-2-5);
  font-size: var(--th-text-sm);
  border-radius: var(--th-pagination-radius, var(--th-radius-md));
  border: 1px solid var(--th-pagination-border, var(--th-color-border));
  background: var(--th-pagination-bg, var(--th-neutral-0));
  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, var(--th-neutral-0));
  border-color: var(--th-pagination-bg-active, var(--th-color-primary));
  font-weight: var(--th-font-semibold);
}
.th-pagination .disabled {
  opacity: .4;
  pointer-events: none;
}

/* Platform fallback — modul.sayfalar Bootstrap .pagination desteği */
.pagination-wrapper .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--th-space-1, 4px);
  padding: var(--th-space-8) 0 var(--th-space-4);
  list-style: none;
  margin: 0;
  flex-wrap: wrap;
}
.pagination-wrapper .pagination li a,
.pagination-wrapper .pagination li 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 var(--th-space-2-5);
  font-size: var(--th-text-sm);
  border-radius: var(--th-pagination-radius, var(--th-radius-md));
  border: 1px solid var(--th-pagination-border, var(--th-color-border));
  background: var(--th-pagination-bg, var(--th-neutral-0));
  color: var(--th-pagination-text, var(--th-color-text-secondary));
  text-decoration: none;
  transition: all .15s ease;
}
.pagination-wrapper .pagination li a:hover {
  background: var(--th-pagination-bg-hover, var(--th-neutral-50));
  border-color: var(--th-color-primary);
  color: var(--th-color-primary);
}
.pagination-wrapper .pagination li.active a,
.pagination-wrapper .pagination li.active span {
  background: var(--th-pagination-bg-active, var(--th-color-primary));
  color: var(--th-pagination-text-active, var(--th-neutral-0));
  border-color: var(--th-pagination-bg-active, var(--th-color-primary));
  font-weight: var(--th-font-semibold);
  pointer-events: none;
}
.pagination-wrapper .pagination li.disabled a,
.pagination-wrapper .pagination li.disabled span {
  opacity: .4;
  pointer-events: none;
}

@media (max-width: 576px) {
  .th-pagination { gap: var(--th-space-0-5); }
  .th-pagination a,
  .th-pagination span { min-width: 32px; height: 32px; font-size: var(--th-text-sm); }
  .pagination-wrapper .pagination { gap: var(--th-space-0-5); }
  .pagination-wrapper .pagination li a,
  .pagination-wrapper .pagination li span { min-width: 32px; height: 32px; }
}

/* ── Empty State ── */
.th-empty-state {
  text-align: center;
  padding: var(--th-space-16) var(--th-space-6);
  max-width: 480px;
  margin: 0 auto;
}
.th-empty-state__icon {
  font-size: var(--th-text-5xl);
  color: var(--th-color-text-muted);
  margin-bottom: var(--th-space-4);
}
.th-empty-state__title {
  font-size: var(--th-text-lg);
  font-weight: var(--th-font-semibold);
  color: var(--th-color-text);
  margin: 0 0 var(--th-space-2);
}
.th-empty-state__desc {
  font-size: var(--th-text-sm);
  color: var(--th-color-text-secondary);
  margin: 0 0 var(--th-space-6);
}
.th-empty-state__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-1-5);
  padding: var(--th-space-2-5) var(--th-space-6);
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-medium);
  color: var(--th-color-text-inverse);
  background: var(--th-color-primary);
  border-radius: var(--th-radius-md);
  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: var(--th-section-gap-md);
  padding: var(--th-space-6);
  background: var(--th-color-bg-secondary);
  border-radius: var(--th-radius-lg);
  font-size: var(--th-text-sm);
  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);
  font-weight: var(--th-font-bold);
  color: var(--th-color-text);
  margin: 0 0 var(--th-space-3);
}
.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: var(--th-space-1);
  margin-top: var(--th-space-2);
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-medium);
  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: var(--th-space-2);
  padding: var(--th-space-3) 0;
}
.th-mobile-toolbar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--th-space-1-5);
  padding: var(--th-space-2-5) var(--th-space-4);
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-medium);
  color: var(--th-color-text);
  background: var(--th-color-bg);
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-md);
  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: var(--th-text-base); }

@media (max-width: 992px) {
  .th-mobile-toolbar { display: flex; }
}

/* ── Product Grid (category page, responsive 2→4 col) ── */
.th-grid--products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--th-space-4);
}
@media (max-width: 1240px) {
  .th-grid--products { grid-template-columns: repeat(3, 1fr); gap: var(--th-space-3); }
}
@media (max-width: 768px) {
  .th-grid--products { grid-template-columns: repeat(2, 1fr); gap: var(--th-space-3); }
}
@media (max-width: 576px) {
  .th-grid--products { grid-template-columns: repeat(2, 1fr); gap: var(--th-space-2); }
}

/* ── Banner Grid (promo-banner enhanced) ── */
.th-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--th-space-4);
  max-width: 1440px;
  margin: 0 auto;
}
.th-banner-grid a,
.th-banner-grid > div {
  border-radius: var(--th-radius-lg);
  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); gap: var(--th-space-3); }
}
@media (max-width: 576px) {
  .th-banner-grid { grid-template-columns: 1fr; gap: var(--th-space-2); }
}

