.category-page {
  background: #fff;
}

/* Kategori açıklama HTML’i: tema Bootstrap’i ile Tailwind-benzeri sınıf adları çakışmasın.
   Özellikle .text-white (Bootstrap), Tailwind bg-* olmadan beyaz yazı = görünmez olur. */
.category-custom-description {
  font-size: 16px;
  line-height: 1.6;
  color: #3d3229;
}

.category-custom-description h1,
.category-custom-description h2,
.category-custom-description h3,
.category-custom-description h4,
.category-custom-description p,
.category-custom-description li {
  color: inherit;
}

.category-custom-description .bg-stone-900.text-white,
.category-custom-description a.bg-stone-900.text-white {
  background-color: #1c1917 !important;
  color: #fff !important;
}

/* Tailwind <style> blogu yapistirilmadiysa temel ızgara (Kremler vb. landings) */
.category-custom-description .grid {
  display: grid;
}
.category-custom-description .grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.category-custom-description .gap-2 {
  gap: 0.5rem;
}
.category-custom-description .gap-4 {
  gap: 1rem;
}
.category-custom-description .gap-5 {
  gap: 1.25rem;
}
.category-custom-description .gap-8 {
  gap: 2rem;
}
.category-custom-description .gap-12 {
  gap: 3rem;
}
.category-custom-description .gap-16 {
  gap: 4rem;
}
.category-custom-description .flex {
  display: flex;
}
.category-custom-description .flex-wrap {
  flex-wrap: wrap;
}
.category-custom-description .items-center {
  align-items: center;
}
@media (min-width: 640px) {
  .category-custom-description .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .category-custom-description .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .category-custom-description .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-custom-description .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .category-custom-description .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .category-custom-description .lg\:col-span-5 {
    grid-column: span 5 / span 5;
  }
  .category-custom-description .lg\:col-span-6 {
    grid-column: span 6 / span 6;
  }
  .category-custom-description .lg\:col-start-7 {
    grid-column-start: 7;
  }
}

.category-hero {
  padding: 42px 0 54px;
  background: #f8f6f2;
}

.category-breadcrumb {
  margin: 0 0 22px;
  border: 0;
  background: transparent;
  padding: 0;
}

.category-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.category-badge {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #b6832e;
  font-size: 11px;
  margin-bottom: 10px;
}

.category-hero-content h1 {
  margin: 0 0 12px;
  color: #1f1a16;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 300;
}

.category-hero-content p {
  color: #75695f;
  line-height: 1.85;
  margin-bottom: 20px;
}

.category-hero-image img {
  width: 100%;
  border-radius: 22px;
  min-height: 320px;
  object-fit: cover;
}

.category-products {
  padding: 58px 0 44px;
}

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

.category-products-head h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 300;
  color: #1f1a16;
}

.category-products-head p {
  margin: 0;
  color: #877b71;
  font-size: 13px;
}

.category-controls .input-group-text {
  background: #faf7f1;
  border-color: #eadfce;
}

.category-controls .form-select {
  border-color: #eadfce;
}

.category-product-grid > .col {
  display: flex;
  flex-direction: column;
}

.category-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #ece5dc;
  border-radius: 14px;
  overflow: hidden;
  background: #fbf9f5;
  box-shadow: 0 2px 8px rgba(36, 28, 20, 0.04);
  height: 100%;
  min-height: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.category-product-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.category-product-image {
  display: block;
  flex-shrink: 0;
  aspect-ratio: 1.34 / 1;
}

.category-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-wishlist-form {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.category-wishlist-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #eadfce;
  background: rgba(255, 255, 255, 0.95);
  color: #5f554b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-wishlist-btn:hover {
  color: #b44355;
  border-color: rgba(180, 67, 85, 0.35);
  background: #fff;
}

.category-wishlist-btn.is-active {
  color: #d8243f;
  border-color: #d8243f;
  background: transparent;
}

.category-product-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 14px 10px;
}

.category-product-foot {
  flex-shrink: 0;
  margin-top: auto;
}

.category-product-body h3 {
  margin: 0 0 5px;
  line-height: 1.35;
}

.category-product-body h3 a {
  color: #1f1a16;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.category-product-body .category-product-desc {
  margin: 0;
  color: #817568;
  font-size: 11px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-product-price {
  margin-top: 0;
  padding: 0 14px 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.category-product-price .new {
  color: #1d1815;
  font-weight: 700;
  font-size: 18px;
}

.category-product-price .old {
  color: #988c80;
  font-size: 12px;
  text-decoration: line-through;
}

.category-product-price .discount {
  margin-left: auto;
  color: #2e9d78;
  font-size: 12px;
  font-weight: 600;
}

.category-product-actions {
  padding: 0 14px 14px;
}

.category-product-actions .detail-btn,
.category-product-actions .cart-btn {
  width: 100%;
  border-radius: 999px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.category-product-actions .detail-btn {
  border: 1px solid #3a3029;
  color: #2a221c;
  background: #fff;
  margin-bottom: 8px;
}

.category-product-actions .cart-btn {
  border: 1px solid #ebe5dd;
  color: #5f554b;
  background: #f8f6f2;
  gap: 6px;
}

.category-product-actions .detail-btn:hover {
  background: #2c2520;
  color: #fff;
}

.category-product-actions .cart-btn:hover {
  background: #f1ece4;
}

.category-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(36, 28, 20, 0.12);
  background: #fff;
}

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

@media (max-width: 767px) {
  .category-product-body h3 a {
    font-size: 14px;
  }

  .category-product-price .new {
    font-size: 17px;
  }
}

.category-subcategories {
  padding: 34px 0 70px;
  background: #f9f7f3;
}

/* Ürün grid ile aynı kırılım: 1 / sm:2 / md:3 / lg:5 */
.category-sub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 576px) {
  .category-sub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .category-sub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .category-sub-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
  }
}

.category-sub-card {
  display: block;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #1f1a16;
  box-shadow: 0 8px 26px rgba(38, 29, 23, 0.08);
  text-decoration: none;
  min-height: 320px;
}

.category-sub-image {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
}

.category-sub-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-sub-body {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(20, 17, 14, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(3px);
}

.category-sub-body h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 19px;
}

.category-sub-body p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  font-size: 13px;
}

.category-sub-body .btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.category-sub-body .btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.category-sub-card:hover .category-sub-image img {
  transform: scale(1.05);
}

@media (max-width: 1199px) {
  .category-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .category-hero {
    padding-top: 22px;
  }

  .category-products,
  .category-subcategories {
    padding: 34px 0;
  }

  .category-products-head h2 {
    font-size: 28px;
  }
}
