
/* Kategori sayfası düzen fix */
.category-hero,
.category-filter,
.category-products-wrap,
.category-seo {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.category-hero {
  margin-top: 34px;
}

.category-hero .box {
  overflow: hidden;
}

.category-filter {
  margin-top: 26px;
  margin-bottom: 34px;
}

.category-filter form {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr auto !important;
  gap: 16px !important;
  align-items: end !important;
  background: #fff;
  border: 1px solid #ead8cf;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 35px rgba(91, 6, 18, .06);
}

.category-filter label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 7px;
  color: #4a3335;
}

.category-filter input,
.category-filter select {
  width: 100%;
  height: 46px;
  border: 1px solid #ead8cf;
  border-radius: 12px;
  padding: 0 13px;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
}

.category-filter button {
  height: 46px;
  border-radius: 12px;
  white-space: nowrap;
}

.category-products-wrap {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: start !important;
  margin-bottom: 44px;
}

.category-products-wrap .product-card,
.category-products-wrap article,
.category-products-wrap .card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.category-products-wrap img {
  width: 100% !important;
  height: 390px !important;
  object-fit: cover !important;
  display: block;
  border-radius: 18px 18px 0 0;
}

.category-products-wrap .box {
  grid-column: 1 / -1;
}

.category-seo {
  margin-top: 26px;
  margin-bottom: 50px;
}

.category-seo .box {
  line-height: 1.75;
  font-size: 16px;
}

@media (max-width: 1100px) {
  .category-products-wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .category-products-wrap img {
    height: 330px !important;
  }
}

@media (max-width: 760px) {
  .category-hero,
  .category-filter,
  .category-products-wrap,
  .category-seo {
    width: min(100% - 24px, 1280px);
  }

  .category-filter form {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 16px;
  }

  .category-filter button {
    width: 100%;
  }

  .category-products-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .category-products-wrap img {
    height: 250px !important;
  }
}

@media (max-width: 460px) {
  .category-products-wrap {
    grid-template-columns: 1fr !important;
  }

  .category-products-wrap img {
    height: 360px !important;
  }
}
