/* =====================================================
   KADSU DESIGN — KATEGORİ SAYFASI
   ===================================================== */
html,
body {
  min-height: 100%;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
}

.kds-category-page {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 0 32px 80px;
  box-sizing: border-box;
}

.kds-category-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  margin: 0;
  padding: 15px 4px;
  border-bottom: 1px solid #eeeeee;
  color: #777777;
  font-size: 10px;
  line-height: 1.4;
}

.kds-category-breadcrumb a {
  color: #777777;
  text-decoration: none;
  transition: color 180ms ease;
}

.kds-category-breadcrumb a:hover,
.kds-category-breadcrumb a:focus-visible {
  color: #111111;
}

.kds-category-breadcrumb span[aria-current="page"] {
  color: #111111;
}

.kds-category-heading {
  margin: 44px 0;
  text-align: center;
}

.kds-category-eyebrow {
  margin: 0 0 12px;
  color: #8b8b8b;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.kds-category-heading h1 {
  margin: 0;
  font-size: 52px;
  font-weight: 500;
}

.kds-category-description {
  max-width: 620px;
  margin: 18px auto 0;
  color: #666666;
  line-height: 1.7;
}

.kds-category-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 34px;
}

.kds-filter-button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.kds-product-count {
  justify-self: center;
  margin: 0;
  color: #666666;
  font-size: 13px;
}

.kds-sort-wrapper {
  justify-self: end;
}

.kds-sort-select {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #dddddd;
  background: none;
  outline: none;
  font-size: 13px;
}

.kds-category-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 40px 18px;
  min-height: 1px;
}

@media (max-width: 1024px) {
  .kds-category-page {
    padding-right: 20px;
    padding-left: 20px;
  }

  .kds-category-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .kds-category-page {
    padding-right: 16px;
    padding-bottom: 60px;
    padding-left: 16px;
  }

  .kds-category-breadcrumb {
    padding: 13px 0;
  }

  .kds-category-heading {
    margin: 34px 0;
  }

  .kds-category-heading h1 {
    font-size: 40px;
  }

  .kds-category-toolbar {
    grid-template-columns: 1fr auto;
    row-gap: 18px;
  }

  .kds-product-count {
    justify-self: end;
  }

  .kds-sort-wrapper {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .kds-category-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 12px;
  }
}

/* =====================================================
   TOOLBAR VE FİLTRE PANELİ DÜZELTMESİ
   Mevcut ürün kartı/grid tasarımını değiştirmez.
   ===================================================== */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.kds-category-toolbar {
  width: 100%;
  min-height: 42px;
  gap: 20px;
}

.kds-filter-button,
.kds-sort-select {
  font-family: inherit;
  color: #111111;
}

.kds-sort-wrapper {
  display: block;
  margin: 0;
}

.kds-sort-select {
  min-width: 150px;
  padding: 9px 28px 9px 0;
  border: 0;
  border-bottom: 1px solid #d8d8d8;
  border-radius: 0;
  background-color: transparent;
  cursor: pointer;
}

.kds-filter-panel {
  width: 100%;
  margin: -12px 0 34px;
  padding: 26px 0 24px;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}

.kds-filter-panel[hidden] {
  display: none !important;
}

.kds-filter-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
}

.kds-filter-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.kds-filter-group[hidden] {
  display: none;
}

.kds-filter-group legend {
  margin: 0 0 16px;
  padding: 0;
  color: #111111;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.kds-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.kds-filter-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #444444;
  font-size: 12px;
  cursor: pointer;
}

.kds-filter-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #111111;
  cursor: pointer;
}

.kds-filter-size-options {
  gap: 8px;
}

.kds-filter-size-options .kds-filter-option {
  position: relative;
}

.kds-filter-size-options .kds-filter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kds-filter-size-options .kds-filter-option span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #d8d8d8;
  background: #ffffff;
}

.kds-filter-size-options .kds-filter-option input:checked + span {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.kds-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

.kds-filter-clear,
.kds-filter-apply {
  min-height: 40px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  cursor: pointer;
}

.kds-filter-clear {
  border: 1px solid #cccccc;
  background: #ffffff;
  color: #111111;
}

.kds-filter-apply {
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
}

@media (max-width: 768px) {
  .kds-category-toolbar {
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 16px;
  }

  .kds-filter-button {
    grid-column: 1;
    grid-row: 1;
  }

  .kds-product-count {
    grid-column: 2;
    grid-row: 1;
  }

  .kds-sort-wrapper {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
  }

  .kds-sort-select {
    width: 100%;
    min-width: 0;
  }

  .kds-filter-panel {
    margin-top: -6px;
  }

  .kds-filter-groups {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .kds-filter-actions {
    justify-content: stretch;
  }

  .kds-filter-clear,
  .kds-filter-apply {
    flex: 1 1 0;
  }
}

/* =====================================================
   KADSU SEÇKİSİ + FİLTRE İÇİ SIRALAMA
   Ürün kartı ve grid tasarımına dokunmaz.
   ===================================================== */

.kds-category-toolbar {
  grid-template-columns: auto 1fr auto;
}

.kds-category-toolbar > .kds-sort-wrapper {
  display: none !important;
}

.kds-filter-groups {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: start;
}

.kds-filter-select-host {
  width: 100%;
}

.kds-filter-select,
.kds-filter-panel .kds-sort-select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background-color: #ffffff;
  color: #111111;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.kds-filter-select:focus,
.kds-filter-panel .kds-sort-select:focus {
  border-color: #111111;
  outline: none;
}

@media (max-width: 768px) {
  .kds-category-toolbar {
    grid-template-columns: 1fr auto;
  }

  .kds-filter-groups {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   KOMPAKT AÇILIR FİLTRELER
   Excel benzeri çoklu seçim; kart/grid yapısına dokunmaz.
   ===================================================== */

.kds-category-heading {
  margin: 26px 0 30px;
}

.kds-category-heading h1 {
  font-size: clamp(38px, 4vw, 52px);
}

.kds-category-description {
  margin-top: 10px;
}

.kds-category-toolbar {
  margin-bottom: 18px;
}

.kds-filter-panel {
  position: relative;
  margin: -4px 0 26px;
  padding: 14px 0;
  overflow: visible;
}

.kds-filter-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kds-filter-group {
  position: relative;
  flex: 0 1 190px;
  min-width: 150px;
  margin: 0;
  padding: 0;
  border: 0;
}

.kds-filter-group > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 38px 0 13px;
  border: 1px solid #d8d8d8;
  background: #ffffff;
  color: #111111;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.kds-filter-group > summary::-webkit-details-marker {
  display: none;
}

.kds-filter-group > summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 300;
}

.kds-filter-group[open] > summary {
  border-color: #111111;
}

.kds-filter-group[open] > summary::after {
  content: "−";
}

.kds-filter-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  width: max-content;
  min-width: 100%;
  max-width: min(420px, calc(100vw - 32px));
  max-height: 310px;
  padding: 14px;
  overflow-y: auto;
  border: 1px solid #d8d8d8;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.kds-filter-group[data-filter-group="colors"] .kds-filter-dropdown {
  width: 360px;
}

.kds-filter-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 9px 16px;
}

.kds-filter-option {
  min-height: 24px;
  white-space: nowrap;
}

.kds-filter-option input {
  flex: 0 0 auto;
}

.kds-filter-size-options {
  display: grid;
  grid-template-columns: repeat(5, 38px);
  gap: 8px;
}

.kds-filter-select,
.kds-filter-panel .kds-sort-select {
  min-width: 220px;
}

.kds-filter-actions {
  margin-top: 14px;
}

@media (max-width: 768px) {
  .kds-category-heading {
    margin: 20px 0 24px;
  }

  .kds-filter-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kds-filter-group {
    min-width: 0;
    width: 100%;
  }

  .kds-filter-dropdown,
  .kds-filter-group[data-filter-group="colors"] .kds-filter-dropdown {
    position: fixed;
    top: auto;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    max-height: 55vh;
    z-index: 1000;
  }

  .kds-filter-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kds-filter-select,
  .kds-filter-panel .kds-sort-select {
    width: 100%;
    min-width: 0;
  }
}

/* =====================================================
   KADSU KATEGORİ ÜST ŞERİT — ONAYLI TASARIM
   Büyük kategori başlığını kaldırır.
   Breadcrumb solda, slogan ortada, filtre hemen altında kalır.
   Ürün kartı ve grid tasarımına dokunmaz.
   ===================================================== */

.kds-category-page {
  padding-top: 0;
}

.kds-category-heading {
  display: none !important;
}

.kds-category-breadcrumb {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 620px) 1fr;
  align-items: center;
  column-gap: 24px;
  width: 100%;
  min-height: 82px;
  margin: 0 0 0;
  padding: 0;
  border-bottom: 1px solid #e6e6e6;
}

.kds-breadcrumb-path {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #5f5f5f;
  font-size: 11px;
  white-space: nowrap;
}

.kds-breadcrumb-path a {
  color: inherit;
  text-decoration: none;
}

.kds-breadcrumb-path a:hover {
  color: #111111;
}

.kds-breadcrumb-slogan {
  grid-column: 2;
  justify-self: center;
  width: 100%;
  margin: 0;
  color: #666666;
  font-family: "Manrope", sans-serif;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 300;
  line-height: 1.45;
  text-align: center;
}

.kds-category-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 72px;
  margin: 0 0 14px;
  padding: 0;
}

.kds-filter-button {
  grid-column: 1;
  justify-self: start;
}

.kds-product-count {
  grid-column: 3;
  justify-self: end;
  margin: 0;
}

.kds-category-toolbar > .kds-sort-wrapper {
  display: none !important;
}

.kds-filter-panel {
  margin: -4px 0 18px;
  padding: 14px 0;
}

.kds-category-product-grid {
  margin-top: 0;
}

@media (max-width: 900px) {
  .kds-category-breadcrumb {
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    min-height: 70px;
  }

  .kds-breadcrumb-path {
    grid-column: 1;
  }

  .kds-breadcrumb-slogan {
    grid-column: 2;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .kds-category-breadcrumb {
    grid-template-columns: 1fr;
    row-gap: 8px;
    min-height: auto;
    padding: 15px 0;
  }

  .kds-breadcrumb-path,
  .kds-breadcrumb-slogan {
    grid-column: 1;
  }

  .kds-breadcrumb-path {
    justify-content: flex-start;
  }

  .kds-breadcrumb-slogan {
    padding: 0 12px;
    font-size: 12px;
  }

  .kds-category-toolbar {
    min-height: 58px;
    margin-bottom: 10px;
  }
}

/* =====================================================
   ÜRÜN KARTI ALT BİLGİLERİ
   Model adı + renk + ökçe aynı satırda.
   Stok durumu solda, toplam stok adedi sağda.
   Kart ve görsel ölçülerini değiştirmez.
   ===================================================== */

.kds-product-card .product-model {
  display: block;
  margin: 12px 0 8px;
  color: #111111;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.35px;
  text-decoration: none;
}

.kds-product-card .product-detail[hidden] {
  display: none !important;
}

.kds-product-card .kds-product-stock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 0;
  color: #111111;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}

.kds-product-card .kds-stock-status,
.kds-product-card .kds-stock-quantity {
  display: inline-block;
  text-decoration: none;
}

.kds-product-card .kds-stock-quantity {
  margin-left: auto;
  color: #666666;
  white-space: nowrap;
}

.kds-product-card .kds-product-stock.is-out-of-stock {
  color: #777777;
}

@media (max-width: 640px) {
  .kds-product-card .product-model {
    font-size: 10px;
  }

  .kds-product-card .kds-product-stock {
    font-size: 11px;
  }
}
.kds-product-stock {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.kds-stock-status {
  font-size: 12px;
  font-weight: 600;
}
/* Stok bilgisini gizle */
.kds-product-card .kds-product-stock {
  display: none !important;
}

/* Link alt çizgisini kaldır */
.kds-product-card-link,
.kds-product-card-link:hover,
.kds-product-card-link:focus,
.kds-product-card-link:visited {
  color: inherit;
  text-decoration: none;
}
/* =====================================================
   KATEGORİ ÜRÜNLERİNİ GÖRÜNÜR YAP — DÜZELTME
   ===================================================== */

.kds-category-product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 40px 18px !important;

  width: 100% !important;
  height: auto !important;
  min-height: 300px !important;

  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.kds-category-product-grid .kds-product-card {
  display: block !important;
  position: relative !important;

  width: 100% !important;
  height: auto !important;
  min-height: 1px !important;

  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

.kds-category-product-grid .kds-product-card-link {
  display: block !important;
  width: 100% !important;
  height: auto !important;

  color: #111111 !important;
  text-decoration: none !important;

  visibility: visible !important;
  opacity: 1 !important;
}

.kds-category-product-grid .kds-product-image-wrapper {
  display: block !important;
  position: relative !important;

  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 200px !important;

  overflow: hidden !important;
  background: #f7f7f7 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.kds-category-product-grid .kds-product-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;

  object-fit: contain !important;
  object-position: center !important;

  visibility: visible !important;
  opacity: 1 !important;
}

.kds-category-product-grid .kds-product-info {
  display: block !important;
  position: relative !important;

  width: 100% !important;
  height: auto !important;
  padding: 14px 4px 0 !important;

  color: #111111 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.kds-category-product-grid .kds-product-title-line,
.kds-category-product-grid .product-model,
.kds-category-product-grid .product-detail,
.kds-category-product-grid .kds-product-bottom,
.kds-category-product-grid .kds-product-price {
  display: block !important;
  position: relative !important;

  height: auto !important;
  overflow: visible !important;

  visibility: visible !important;
  opacity: 1 !important;
}

.kds-category-product-grid .product-model {
  margin: 0 !important;
  color: #111111 !important;
  font-size: 14px !important;
  text-align: center !important;
}

.kds-category-product-grid .product-detail {
  margin-top: 5px !important;
  color: #777777 !important;
  font-size: 13px !important;
  text-align: center !important;
}

.kds-category-product-grid .kds-product-price {
  margin-top: 8px !important;
  color: #111111 !important;
  font-size: 14px !important;
  text-align: center !important;
}

.kds-category-product-grid .kds-product-stock {
  display: none !important;
}

@media (max-width: 1024px) {
  .kds-category-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .kds-category-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px 12px !important;
  }
}

/* =====================================================
   MOBİL FİLTRE — SON VE GEÇERLİ DÜZEN
   ===================================================== */
@media (max-width: 768px) {
  .kds-filter-panel {
    width: 100%;
    overflow: visible;
  }

  .kds-filter-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .kds-filter-group {
    position: relative;
    width: 100%;
    min-width: 0;
  }

  .kds-filter-group[open] {
    grid-column: 1 / -1;
  }

  .kds-filter-group > summary {
    width: 100%;
    box-sizing: border-box;
  }

  .kds-filter-dropdown,
  .kds-filter-group[data-filter-group="colors"] .kds-filter-dropdown {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: 260px !important;
    margin-top: 6px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: none !important;
    box-shadow: none !important;
    z-index: auto !important;
  }

  .kds-filter-select,
  .kds-filter-panel .kds-sort-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .kds-filter-options {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kds-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .kds-filter-clear,
  .kds-filter-apply {
    width: 100%;
    min-width: 0;
  }
}
