/* === Genel boşluklar / tipografi === */
.shop.spad { padding-top: 60px; padding-bottom: 60px; }
.breadcrumb-option { padding: 18px 0 0; }
.breadcrumb__links a, .breadcrumb__links span { font-size: 14px; color:#111; }
.breadcrumb__links a i { margin-right:6px; }

/* === Sidebar === */
.shop__sidebar .section-title h4,
.shop__sidebar .section-title h5{
  font-size: 14px; letter-spacing:.08em; font-weight:700; text-transform:uppercase;
  margin: 24px 0 14px; color:#111;
}
.sidebar__categories ul { margin:0; padding-left:0; list-style:none; }
.sidebar__categories li { margin:6px 0; }
.sidebar__categories a { color:#111; font-size:14px; }
.sidebar__categories a.fw-bold { font-weight:700; }

.sidebar__filter .form-control { height:40px; border-radius:4px; font-size:14px; }
.sidebar__filter .btn { height:40px; font-size:12px; letter-spacing:.08em; }

.shop__sidebar label { font-size:14px; color:#111; }
.shop__sidebar input[type="checkbox"]{ width:16px; height:16px; }

/* Bölüm ayırıcıları */
.shop__sidebar .sidebar__filter,
.shop__sidebar .sidebar__sizes { padding-bottom:12px; border-bottom:1px solid #eee; }
.shop__sidebar .sidebar__sizes + .sidebar__sizes { padding-top:12px; }

/* === Ürün grid & kart === */
.product-grid { margin-left:-12px; margin-right:-12px; }
.product-grid > [class*="col-"] { padding-left:12px; padding-right:12px; margin-bottom:30px; }

.product__item { border-radius:10px; }
.product__item__pic{
  position:relative; padding-top:125%;
  background-size:cover; background-position:center; border-radius:10px;
}
.product__item__pic .label{ position:absolute; left:12px; top:12px; }
.product__hover{ position:absolute; right:10px; bottom:10px; opacity:0; transition:.2s; }
.product__item:hover .product__hover{ opacity:1; }

.product__item__text{ padding-top:12px; }
.product__item__text h6{ margin:0 0 6px; font-size:14px; font-weight:600; }
.product__price{ font-weight:700; color:#111; font-size:14px; }

.label.stockout{ background:#efefef; color:#111; font-weight:700; }

/* === Sıralama === */
.shop .form-select.form-select-sm{
  height:38px; padding:6px 30px 6px 10px; border-radius:4px; font-size:14px;
}

/* === Pagination === */
.pagination__option { display:inline-flex; gap:8px; }
.pagination__option a{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:36px; height:36px; border:1px solid #e1e1e1; font-size:14px; color:#111;
}
.pagination__option a:hover{ background:#111; color:#fff; border-color:#fff; }

/* === Responsive === */
@media (max-width: 991.98px){
  .shop.spad { padding-top: 40px; }
  .product__item__pic{ padding-top:120%; }
}

.product__item__pic {
    height: 190px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.shop__sidebar { position: sticky; top: 90px; }
.categories__accordion .card { border: 0; border-bottom: 1px solid #eee; }
.categories__accordion .card-heading a {
  display: block; padding: 10px 0; font-weight: 600; color: #222;
}
.categories__accordion .card-body { padding: 8px 0 14px; }
.categories__accordion .card-body ul li a { color:#333; }
.categories__accordion .card-body ul li a:hover { text-decoration: underline; }

/* hover daha modern görünüm */
.product__item { border: 1px solid #f2f2f2; border-radius: 12px; overflow: hidden; }
.product__item__text { padding: 12px 14px 16px; }

/* price inputs */
.sidebar__filter .price-input input {
  width: 100px; border: 1px solid #eaeaea; border-radius: 6px; padding: 6px 8px;
}

/* renkler */
:root{
  --brand:#e53637;
  --brand-dark:#c32e2f;
  --ink:#111;
}

/* FİLTRE BUTONU */
.btn-filter{
  display:block;
  width:100%;
  background:var(--brand);
  color:#fff;
  border:1px solid var(--brand);
  border-radius:10px;
  padding:12px 16px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-align:center;
  transition:all .2s ease;
  box-shadow:0 6px 14px rgba(229,54,55,.12);
}
.btn-filter:hover{
  background:var(--brand-dark);
  border-color:var(--brand-dark);
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 10px 18px rgba(229,54,55,.18);
}
.btn-filter:active{
  transform:translateY(0);
  box-shadow:0 4px 10px rgba(229,54,55,.12);
}
.btn-filter--outline{
  background:#fff; color:var(--brand);
  border-color:var(--brand); box-shadow:none;
}
.btn-filter--outline:hover{ background:var(--brand); color:#fff; }

/* Slider + buton arası nefes */
.sidebar__filter .range-slider{ margin-bottom:8px; }

/* === AUTH (önceden vardı, dokunmadım) === */
/* ... buradaki auth stillerini aynen bırakabilirsin, projede kullanılıyor ... */


/* === MOBİL TOOLBAR (Filtre / Sıralama) === */
@media (max-width: 991.98px) {
  .ac-mobile-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
  }
  .ac-mobile-toolbar .ac-pill {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    background-color: #fff;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(15,23,42,0.05);
  }
  .ac-mobile-toolbar .ac-pill .icon {
    font-size: 16px;
    line-height: 1;
  }
  .ac-sort-menu .dropdown-item {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* === MOBİL FİLTRE SHEET === */
@media (max-width: 991.98px) {
  .offcanvas-bottom.ac-filter-sheet {
    height: 85vh;          /* tam ekran hissi */
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    background: #fff;
    overflow: hidden;      /* içi scroll, dışı değil */
  }
  .ac-filter-sheet .offcanvas-header {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
  }
  .ac-filter-sheet .offcanvas-title {
    font-size: 14px;
    font-weight: 600;
  }
  .ac-filter-sheet .offcanvas-body {
    padding: 16px 18px 22px;
    overflow-y: auto;
  }

  /* Sheet içindeki sidebar sıkı dursun */
  .ac-filter-sheet .shop__sidebar {
    padding: 0;
    max-height: 100%;
  }
  .ac-filter-sheet .sidebar__categories {
    display: none; /* MOBİL FİLTREDE KATEGORİLER YOK */
  }
  .ac-filter-sheet .sidebar__filter,
  .ac-filter-sheet .sidebar__sizes {
    margin-bottom: 18px;
    border-bottom: 1px solid #f1f1f1;
  }
  .ac-filter-sheet .section-title h4 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .ac-filter-sheet .sidebar__sizes label {
    font-size: 13px;
  }
  .ac-filter-sheet .sidebar__filter .price-input p {
    font-size: 13px;
  }
}

/* backdrop biraz koyu olsun */
.offcanvas-backdrop.show {
  opacity: .35;
}


@media (max-width: 767.98px) {

  /* Kartı biraz daha kompakt ve modern yap */
  .product__item {
    border-radius: 18px;
    border: 0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin-bottom: 18px;
    background: #fff;
  }

  /* Görsel alanı: daha küçük, kesmeden göster (contain) */
  .product__item__pic {
    padding-top: 100%;              /* yükseklik azalsın */
    background-size: contain;       /* çiçekler kesilmesin */
    background-position: center;    /* ortalı dursun */
    background-color: #ffffff;      /* beyaz zemin */
    margin: 8px auto 0;
    border-radius: 18px;
  }

  /* Hover ikonları aşağıda kalsın, çok ortaya çıkmasın */
  .product__hover {
    right: 6px;
    bottom: 6px;
  }

  /* Yazılar ortalı, daha küçük ve sıkı */
  .product__item__text {
    padding: 10px 10px 14px;
    text-align: center;
  }
  .product__item__text h6 {
    font-size: 13px;
    line-height: 1.3;
    min-height: 2.6em; /* iki satıra kadar sabit yükseklik */
    margin-bottom: 4px;
  }
  .product__price {
    font-size: 13px;
  }

  /* Kartlar yan yana 2’li grid gibi dursun (sen zaten col-6 kullanıyorsun, sadece spacing’i iyileştirelim) */
  .shop .row > .col-6 {
    padding-left: 6px;
    padding-right: 6px;
  }
}


.sidebar__filter .price-input {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar__filter .price-input p {
  margin: 0;
  font-size: 13px;
}

.sidebar__filter .price-input input {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
}

/* Mobil filtre / sort bar */
@media (max-width: 991.98px) {
  .ac-mobile-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
  }
  .ac-mobile-toolbar .ac-pill {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    background-color: #fff;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(15,23,42,0.05);
  }
  .ac-mobile-toolbar .ac-pill .icon {
    font-size: 16px;
    line-height: 1;
  }
  .ac-sort-menu .dropdown-item {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* Body scroll kilidi */
.ac-no-scroll {
  overflow: hidden;
}

/* Mobil filtre sheet – custom (offcanvas yok) */
.ac-filter-sheet {
  display: none;              /* varsayılan: görünmesin */
}

.ac-filter-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  .ac-filter-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 70px; /* header + breadcrumb yüksekliği */
    background: #fff;
    z-index: 1060;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 30px rgba(15,23,42,.18);
    padding: 16px 18px 22px;
    overflow-y: auto;
  }

  .ac-filter-sheet.is-open {
    display: block;
  }

  .ac-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 6px;
  }
  .ac-filter-header h5 {
    font-size: 15px;
    margin: 0;
  }
  .ac-filter-close {
    border: 0;
    background: transparent;
    padding: 4px 6px;
    font-size: 16px;
  }

  .ac-filter-body .shop__sidebar {
    padding: 0;
  }

  /* Sheet içinde kategori ağacını istemediğin için gizli */
  .ac-filter-sheet .sidebar__categories {
    display: none;
  }

  .ac-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    z-index: 1055;
  }
  .ac-filter-backdrop.is-show {
    display: block;
  }
}


/* Mobil sıralama menüsü */
.ac-sort-wrapper {
  position: relative;
}

.ac-sort-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 190px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15,23,42,.16);
  display: none;
  z-index: 1055;
}

.ac-sort-menu.show {
  display: block;
}

.ac-sort-menu li {
  padding: 0;
}

.ac-sort-menu .ac-sort-item {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
}

.ac-sort-menu .ac-sort-item:hover {
  background: #f3f4f6;
}

.ac-sort-menu .ac-sort-item.active {
  font-weight: 600;
  background: #eef2ff;
}


/* Sekme butonları */
.ac-filter-tabs {
  border-radius: 999px;
  background: #f3f4f6;
  padding: 4px;
}
.ac-filter-tab-btn {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #6b7280;
}
.ac-filter-tab-btn.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(15,23,42,.12);
  color: #111827;
  font-weight: 600;
}

/* Varsayılan: sadece filtreler (fiyat + diğer gruplar), kategoriler gizli */
.ac-filter-sheet .sidebar__categories {
  display: none;
}

/* Kategori sekmesi açıkken: sadece kategoriler */
.ac-filter-sheet.show-cats .sidebar__categories {
  display: block;
}
.ac-filter-sheet.show-cats .sidebar__filter,
.ac-filter-sheet.show-cats .sidebar__sizes {
  display: none;
}



