/* ===== Kategori Sayfalari ===== */
.category-page {
  padding: 28px 0 48px;
  background: #f8fafc;
}

.category-container {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
}

.category-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  color: #718096;
}

.category-breadcrumb a {
  color: #64748b;
  transition: color 0.2s;
}

.category-breadcrumb a:hover {
  color: #FF6600;
}

.category-breadcrumb-sep {
  color: #cbd5e1;
}

.category-breadcrumb-current {
  color: #2d3748;
  font-weight: 600;
}

.category-page-header {
  margin-bottom: 28px;
}

.category-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.category-page-subtitle {
  font-size: 0.9375rem;
  color: #718096;
  line-height: 1.55;
  max-width: 720px;
}

.category-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.category-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.category-stat svg {
  color: #92C866;
}

/* ----- Liste Grid ----- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.category-card:hover {
  border-color: #dde4ec;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.category-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #eef2f6;
  overflow: hidden;
}

.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.category-card:hover .category-card-media img {
  transform: scale(1.04);
}

.category-card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff4ed 0%, #f0fae8 100%);
}

.category-card-media--placeholder .service-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.category-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}

.category-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 6px;
  line-height: 1.35;
}

.category-card-desc {
  font-size: 0.8125rem;
  color: #718096;
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.category-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.category-card-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.category-card-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: #FF6600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ----- Detay Sayfasi ----- */
.category-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.category-hero {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 220px;
  margin-bottom: 28px;
  border: 1px solid #e8edf3;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
}

.category-hero img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.category-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.25) 100%);
}

.category-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 36px;
  color: #ffffff;
}

.category-hero-label {
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  margin-bottom: 10px;
  background: rgba(255, 102, 0, 0.9);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.category-hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.category-hero-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  opacity: 0.92;
  max-width: 560px;
}

.category-hero--plain {
  background: linear-gradient(135deg, #fff4ed 0%, #ffffff 50%, #f0fae8 100%);
  min-height: 180px;
  display: flex;
  align-items: center;
  padding: 32px 36px;
}

.category-hero--plain .category-hero-title {
  color: #1a202c;
}

.category-hero--plain .category-hero-desc {
  color: #718096;
  opacity: 1;
}

.category-section-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 16px;
}

.category-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.category-subcard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.category-subcard:hover {
  border-color: #dde4ec;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.category-subcard .service-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.category-subcard-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 2px;
}

.category-subcard-count {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #718096;
}

.category-about {
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  margin-bottom: 28px;
}

.category-about p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.7;
}

.category-about .content-prose,
.category-hero-desc.content-prose {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.category-hero--plain .category-hero-desc.content-prose {
  color: #64748b;
}

.content-prose h1,
.content-prose h2,
.content-prose h3,
.content-prose h4 {
  color: inherit;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 12px;
}

.content-prose h1 { font-size: 1.35rem; }
.content-prose h2 { font-size: 1.15rem; }
.content-prose h3 { font-size: 1rem; }

.content-prose p + p,
.content-prose h1 + *,
.content-prose h2 + *,
.content-prose h3 + * { 
  margin-top: 10px;
}

.content-prose ul,
.content-prose ol {
  padding-left: 1.25rem;
  margin: 10px 0;
}

.content-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.content-prose a {
  color: #FF6600;
  text-decoration: underline;
}

.category-empty {
  text-align: center;
  padding: 48px 24px;
  background: #ffffff;
  border: 1px dashed #dde4ec;
  border-radius: 10px;
}

.category-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff4ed;
  border-radius: 14px;
  color: #FF6600;
}

.category-empty h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 6px;
}

.category-empty p {
  font-size: 0.8125rem;
  color: #718096;
}

.category-products-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.category-products-head .category-section-title {
  margin-bottom: 0;
}

.category-products-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.category-sort-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-sort-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.category-sort-select {
  min-width: 148px;
  padding: 8px 32px 8px 12px;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.category-sort-select:focus {
  outline: none;
  border-color: #ffd4b8;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
}

.category-filters-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.category-filters-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #FF6600;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
}

.category-products-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #718096;
  white-space: nowrap;
}

.category-products-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.category-filters {
  position: sticky;
  top: 90px;
}

.category-filters-form {
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.category-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.category-filters-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a202c;
}

.category-filters-clear {
  font-size: 0.75rem;
  font-weight: 600;
  color: #FF6600;
}

.category-filter-group + .category-filter-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.category-filter-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

.category-filter-price {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.category-filter-price input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  font-size: 0.8125rem;
  color: #334155;
}

.category-filter-price input:focus {
  outline: none;
  border-color: #ffd4b8;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
}

.category-filter-price-sep {
  font-size: 0.75rem;
  color: #94a3b8;
}

.category-filter-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.category-filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #475569;
  cursor: pointer;
}

.category-filter-check input {
  width: 16px;
  height: 16px;
  accent-color: #FF6600;
  flex-shrink: 0;
}

.category-filter-check-text {
  flex: 1;
  line-height: 1.35;
}

.category-filter-check-count {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
}

.category-filters-submit {
  width: 100%;
  margin-top: 18px;
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  background: #FF6600;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.category-filters-submit:hover {
  background: #E55A00;
}

.category-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.category-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff4ed;
  border: 1px solid #ffd4b8;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c2410c;
  transition: background 0.2s, border-color 0.2s;
}

.category-active-chip:hover {
  background: #ffe8d9;
  border-color: #ffb380;
}

.category-active-chip span {
  font-size: 0.875rem;
  line-height: 1;
}

.category-empty-reset {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  background: #FF6600;
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.category-empty-reset:hover {
  background: #E55A00;
}

.category-products-grid {
  margin-bottom: 24px;
}

.category-products-grid.products-grid {
  grid-template-columns: repeat(3, 1fr);
}

.category-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 8px;
}

.category-page-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.category-page-link:hover {
  background: #fff4ed;
  border-color: #ffd4b8;
  color: #FF6600;
}

.category-page-info {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
}

/* ----- Sidebar ----- */
.category-sidebar {
  position: sticky;
  top: 90px;
}

.category-sidebar-box {
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  padding: 20px 18px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.category-sidebar-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a202c;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.category-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  transition: background 0.2s, color 0.2s;
}

.category-sidebar-link:hover,
.category-sidebar-link.is-active {
  background: #fff4ed;
  color: #FF6600;
}

.category-sidebar-link span:last-child {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
}

.category-sidebar-link.is-active span:last-child {
  color: #FF6600;
}

.category-sidebar-cta {
  display: block;
  margin-top: 16px;
  padding: 11px 16px;
  text-align: center;
  background: #FF6600;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s;
}

.category-sidebar-cta:hover {
  background: #E55A00;
}

/* ----- Responsive ----- */
@media (max-width: 1292px) {
  .category-container {
    padding: 0 16px;
  }
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-detail-layout {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    position: static;
  }

  .category-subgrid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .category-products-grid.products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-filters {
    position: static;
    display: none;
  }

  .category-filters.is-open {
    display: block;
  }

  .category-filters-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .category-page {
    padding: 20px 0 36px;
  }

  .category-page-title,
  .category-hero-title {
    font-size: 1.375rem;
  }

  .category-grid,
  .category-subgrid {
    grid-template-columns: 1fr;
  }

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

  .category-hero-content,
  .category-hero--plain {
    padding: 24px 20px;
  }

  .category-hero img {
    height: 200px;
  }
}
