/* ==========================================================================
   KATEGORI / URUN LISTELEME SAYFASI
   Sol filtre sutunu + sagda urun izgarasi. Kart markup'i anasayfadakiyle
   birebir ayni (.ap-shop-card); bu sayfaya ozel yalnizca yerlesim ve
   filtre/siralama bilesenleri var.
   ========================================================================== */

.ap-catalog{
  width:min(1500px,100%);
  margin-inline:auto;
  padding:0 24px 72px;
}

/* --------------------------------------------------------------- BREADCRUMB */
.ap-breadcrumb{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  padding:22px 0 18px;
  color:#6b625c;
  font-size:12px;
  font-weight:700;
}

.ap-breadcrumb li{
  display:flex;
  align-items:center;
  gap:8px;
}

.ap-breadcrumb li + li::before{
  content:"";
  width:5px;
  height:5px;
  border-right:1.6px solid rgba(36,27,28,.28);
  border-bottom:1.6px solid rgba(36,27,28,.28);
  transform:rotate(-45deg);
}

.ap-breadcrumb a{
  transition:color .2s ease;
}

.ap-breadcrumb a:hover{
  color:var(--red);
}

.ap-breadcrumb [aria-current]{
  color:#241b1c;
}

/* -------------------------------------------------------------- SAYFA BASI */
.ap-catalog-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:38px 40px 40px;
  border:1px solid rgba(224,185,100,.26);
  border-radius:26px;
  background:linear-gradient(160deg,#284234 0%,#365547 55%,#2c4a3b 100%);
  box-shadow:0 20px 44px rgba(28,44,36,.18);
}

.ap-catalog-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(circle at 88% -10%,rgba(224,185,100,.24),transparent 48%),
    linear-gradient(180deg,rgba(255,255,255,.06),transparent 30%);
}

.ap-catalog-hero::after{
  content:"";
  position:absolute;
  top:0;
  left:22%;
  right:22%;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(224,185,100,.6),transparent);
}

.ap-catalog-hero-bg{
  position:absolute;
  inset:0;
  z-index:-2;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.5;
}

.ap-catalog-hero-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#e0b964;
  font-size:11px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.ap-catalog-hero-eyebrow::before{
  content:"";
  width:26px;
  height:1px;
  background:currentColor;
  opacity:.65;
}

.ap-catalog-hero-title{
  margin:0;
  max-width:22ch;
  color:#fff;
  font-size:clamp(28px,3vw,44px);
  line-height:1.12;
  font-weight:800;
  letter-spacing:-.035em;
}

.ap-catalog-hero-text{
  margin:0;
  max-width:74ch;
  color:rgba(255,255,255,.76);
  font-size:14.5px;
  line-height:1.75;
}

.ap-catalog-hero-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:6px;
}

.ap-catalog-hero-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:0 14px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  color:rgba(255,255,255,.9);
  background:rgba(255,255,255,.07);
  backdrop-filter:blur(6px);
  font-size:12px;
  font-weight:700;
}

.ap-catalog-hero-chip svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:#e0b964;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* --------------------------------------------------------------- YERLESIM */
.ap-catalog-layout{
  display:grid;
  grid-template-columns:294px minmax(0,1fr);
  align-items:start;
  gap:28px;
  margin-top:30px;
}

/* ------------------------------------------------------------ FILTRE SUTUNU */
.ap-filters{
  position:sticky;
  top:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.ap-filters-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 4px 2px;
}

.ap-filters-head h2{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  color:#201d1d;
  font-size:16px;
  font-weight:900;
  letter-spacing:-.02em;
}

.ap-filters-head h2 svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:var(--green);
  stroke-width:1.9;
  stroke-linecap:round;
}

.ap-filters-reset{
  border:0;
  padding:0;
  color:var(--red);
  background:transparent;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:opacity .2s ease;
}

.ap-filters-reset:hover{
  opacity:.7;
  text-decoration:underline;
}

.ap-filters-close{
  display:none;
}

/* Bir filtre kutusu = <details> */
.ap-filter{
  overflow:hidden;
  border:1px solid rgba(36,27,28,.08);
  border-radius:20px;
  background:#fff;
  box-shadow:0 1px 2px rgba(36,27,28,.04),0 10px 26px rgba(36,27,28,.045);
}

.ap-filter > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:17px 20px;
  color:#201d1d;
  font-size:13.5px;
  font-weight:800;
  letter-spacing:-.01em;
  cursor:pointer;
  list-style:none;
  user-select:none;
  transition:color .2s ease;
}

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

.ap-filter > summary:hover{
  color:var(--green);
}

.ap-filter-arrow{
  flex:0 0 auto;
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#7d726f;
  background:rgba(54,85,71,.07);
  transition:transform .28s ease,background .2s ease,color .2s ease;
}

.ap-filter-arrow svg{
  width:12px;
  height:12px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.ap-filter[open] .ap-filter-arrow{
  transform:rotate(180deg);
  color:#fff;
  background:var(--green);
}

.ap-filter-body{
  padding:2px 20px 20px;
  animation:apFilterFade .28s ease;
}

@keyframes apFilterFade{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:translateY(0)}
}

/* Kaydirmali liste (uzun marka/kategori listeleri) */
.ap-filter-scroll{
  max-height:222px;
  overflow-y:auto;
  padding-right:6px;
  scrollbar-width:thin;
  scrollbar-color:rgba(54,85,71,.28) transparent;
}

.ap-filter-scroll::-webkit-scrollbar{
  width:5px;
}

.ap-filter-scroll::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:rgba(54,85,71,.24);
}

/* Onay kutulari */
.ap-check{
  position:relative;
  display:flex;
  align-items:center;
  gap:11px;
  padding:8px 8px 8px 6px;
  margin-inline:-6px;
  border-radius:11px;
  color:#4c4244;
  font-size:13.5px;
  font-weight:600;
  cursor:pointer;
  transition:background .2s ease,color .2s ease;
}

.ap-check:hover{
  color:#201d1d;
  background:rgba(54,85,71,.05);
}

.ap-check input{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}

.ap-check-box{
  flex:0 0 auto;
  width:19px;
  height:19px;
  display:grid;
  place-items:center;
  border:1.6px solid rgba(36,27,28,.2);
  border-radius:6px;
  background:#fff;
  transition:.22s ease;
}

.ap-check-box svg{
  width:11px;
  height:11px;
  fill:none;
  stroke:#fff;
  stroke-width:3.2;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:0;
  transform:scale(.5);
  transition:.22s ease;
}

.ap-check:hover .ap-check-box{
  border-color:rgba(54,85,71,.45);
}

.ap-check input:checked ~ .ap-check-box{
  border-color:var(--green);
  background:var(--green);
}

.ap-check input:checked ~ .ap-check-box svg{
  opacity:1;
  transform:scale(1);
}

.ap-check input:focus-visible ~ .ap-check-box{
  outline:2px solid rgba(201,16,32,.45);
  outline-offset:2px;
}

.ap-check-label{
  flex:1 1 auto;
  min-width:0;
}

.ap-check input:checked ~ .ap-check-label{
  color:#201d1d;
  font-weight:800;
}

.ap-check-count{
  flex:0 0 auto;
  color:#6f6863;
  font-size:11px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}

/* Kategori agaci */
.ap-filter-tree{
  list-style:none;
}

.ap-filter-tree ul{
  list-style:none;
  margin:2px 0 8px 9px;
  padding-left:12px;
  border-left:1px solid rgba(36,27,28,.09);
}

.ap-filter-tree ul .ap-check{
  padding-block:6px;
  font-size:13px;
}

/* Fiyat araligi */
.ap-range{
  position:relative;
  height:30px;
  margin:6px 2px 2px;
}

.ap-range-rail,
.ap-range-fill{
  position:absolute;
  top:13px;
  height:4px;
  border-radius:999px;
}

.ap-range-rail{
  left:0;
  right:0;
  background:rgba(36,27,28,.1);
}

.ap-range-fill{
  background:linear-gradient(90deg,var(--green),#5b8a72);
}

.ap-range input[type="range"]{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:30px;
  margin:0;
  background:transparent;
  pointer-events:none;
  -webkit-appearance:none;
  appearance:none;
}

.ap-range input[type="range"]::-webkit-slider-thumb{
  width:20px;
  height:20px;
  border:3px solid var(--green);
  border-radius:50%;
  background:#fff;
  box-shadow:0 4px 12px rgba(32,46,39,.22);
  cursor:grab;
  pointer-events:auto;
  -webkit-appearance:none;
  appearance:none;
  transition:transform .18s ease;
}

.ap-range input[type="range"]::-webkit-slider-thumb:active{
  transform:scale(1.12);
  cursor:grabbing;
}

.ap-range input[type="range"]::-moz-range-thumb{
  width:14px;
  height:14px;
  border:3px solid var(--green);
  border-radius:50%;
  background:#fff;
  box-shadow:0 4px 12px rgba(32,46,39,.22);
  cursor:grab;
  pointer-events:auto;
}

.ap-range-inputs{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  margin-top:14px;
}

.ap-range-sep{
  width:10px;
  height:1px;
  background:rgba(36,27,28,.22);
}

.ap-range-field{
  position:relative;
  display:flex;
  align-items:center;
}

.ap-range-field input{
  width:100%;
  height:42px;
  padding:0 26px 0 12px;
  border:1px solid rgba(36,27,28,.12);
  border-radius:12px;
  outline:none;
  color:#201d1d;
  background:#fbfaf8;
  font-size:13px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  appearance:textfield;
  -moz-appearance:textfield;
  transition:.2s ease;
}

.ap-range-field input::-webkit-outer-spin-button,
.ap-range-field input::-webkit-inner-spin-button{
  margin:0;
  -webkit-appearance:none;
}

.ap-range-field input:focus{
  border-color:rgba(54,85,71,.5);
  background:#fff;
  box-shadow:0 0 0 3px rgba(54,85,71,.08);
}

.ap-range-field span{
  position:absolute;
  right:11px;
  color:#6f6863;
  font-size:12px;
  font-weight:800;
  pointer-events:none;
}

/* Cip bicimli secenekler (gramaj / hacim) */
.ap-chip-group{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:4px;
}

.ap-chip-option{
  position:relative;
  display:inline-flex;
}

.ap-chip-option input{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}

.ap-chip-option span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 14px;
  border:1px solid rgba(36,27,28,.12);
  border-radius:999px;
  color:#5b5153;
  background:#fbfaf8;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:.22s ease;
}

.ap-chip-option span:hover{
  color:var(--green);
  border-color:rgba(54,85,71,.4);
  background:#fff;
}

.ap-chip-option input:checked + span{
  color:#fff;
  border-color:var(--green);
  background:var(--green);
  box-shadow:0 8px 18px rgba(54,85,71,.2);
}

.ap-chip-option input:focus-visible + span{
  outline:2px solid rgba(201,16,32,.45);
  outline-offset:2px;
}

/* Puan filtresi */
.ap-stars{
  display:inline-flex;
  gap:1px;
  color:#d8a928;
  font-size:13px;
  letter-spacing:1px;
}

.ap-stars i{
  font-style:normal;
  color:rgba(36,27,28,.16);
}

.ap-filter-note{
  margin-top:12px;
  color:#6b625c;
  font-size:11.5px;
  line-height:1.6;
}

/* Filtre sutunu altindaki destek karti */
.ap-filter-help{
  position:relative;
  overflow:hidden;
  padding:22px 20px;
  border:1px solid rgba(224,185,100,.28);
  border-radius:20px;
  color:#fff;
  background:linear-gradient(160deg,#284234,#365547);
  box-shadow:0 14px 30px rgba(28,44,36,.16);
}

.ap-filter-help h3{
  margin:0 0 8px;
  font-size:15px;
  font-weight:800;
  letter-spacing:-.02em;
}

.ap-filter-help p{
  margin:0 0 16px;
  color:rgba(255,255,255,.74);
  font-size:12.5px;
  line-height:1.65;
}

.ap-filter-help a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  color:#22331f;
  background:linear-gradient(145deg,#eccb7f,#c69b3f);
  font-size:12px;
  font-weight:800;
  transition:.25s ease;
}

.ap-filter-help a svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .25s ease;
}

.ap-filter-help a:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 26px rgba(0,0,0,.22);
}

.ap-filter-help a:hover svg{
  transform:translateX(3px);
}

/* -------------------------------------------------------------- ARAC CUBUGU */
.ap-catalog-main{
  min-width:0;
}

.ap-toolbar{
  position:sticky;
  top:10px;
  z-index:20;
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 14px 12px 20px;
  border:1px solid rgba(36,27,28,.08);
  border-radius:18px;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(14px);
  box-shadow:0 1px 2px rgba(36,27,28,.04),0 12px 28px rgba(36,27,28,.06);
}

.ap-toolbar-count{
  flex:1 1 auto;
  min-width:0;
  color:#6d6365;
  font-size:13px;
  font-weight:700;
}

.ap-toolbar-count strong{
  color:#201d1d;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}

.ap-toolbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Mobil filtre butonu */
.ap-filter-trigger{
  display:none;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:0 16px;
  border:1px solid rgba(54,85,71,.18);
  border-radius:13px;
  color:var(--green);
  background:#fff;
  font-size:12.5px;
  font-weight:800;
  cursor:pointer;
  transition:.22s ease;
}

.ap-filter-trigger svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
}

.ap-filter-trigger:hover{
  color:#fff;
  background:var(--green);
}

.ap-filter-trigger-count{
  min-width:19px;
  height:19px;
  padding-inline:5px;
  display:grid;
  place-items:center;
  border-radius:999px;
  color:#fff;
  background:var(--red);
  font-size:10px;
  font-weight:900;
}

/* Siralama */
.ap-sort{
  position:relative;
  display:flex;
  align-items:center;
}

.ap-sort svg{
  position:absolute;
  right:14px;
  width:13px;
  height:13px;
  fill:none;
  stroke:#7d726f;
  stroke-width:2.4;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}

.ap-sort select{
  min-height:44px;
  padding:0 38px 0 16px;
  border:1px solid rgba(36,27,28,.12);
  border-radius:13px;
  outline:none;
  color:#201d1d;
  background:#fff;
  font-size:12.5px;
  font-weight:800;
  cursor:pointer;
  appearance:none;
  transition:.22s ease;
}

.ap-sort select:hover,
.ap-sort select:focus{
  border-color:rgba(54,85,71,.45);
  box-shadow:0 0 0 3px rgba(54,85,71,.08);
}

/* Gorunum degistirici */
.ap-view{
  display:flex;
  gap:4px;
  padding:4px;
  border:1px solid rgba(36,27,28,.1);
  border-radius:13px;
  background:#fbfaf8;
}

.ap-view button{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:10px;
  color:#6b625c;
  background:transparent;
  cursor:pointer;
  transition:.2s ease;
}

.ap-view button svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linejoin:round;
}

.ap-view button:hover{
  color:var(--green);
  background:rgba(54,85,71,.08);
}

.ap-view button.is-active{
  color:#fff;
  background:var(--green);
  box-shadow:0 6px 14px rgba(54,85,71,.22);
}

/* Aktif filtre cipleri */
.ap-active-filters{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:16px;
}

.ap-active-filters-label{
  color:#6b625c;
  font-size:12px;
  font-weight:800;
}

.ap-active-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  padding:0 8px 0 13px;
  border:1px solid rgba(54,85,71,.16);
  border-radius:999px;
  color:var(--green);
  background:#fff;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
}

.ap-active-chip svg{
  width:12px;
  height:12px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.6;
  stroke-linecap:round;
}

.ap-active-chip:hover{
  color:var(--red);
  border-color:rgba(201,16,32,.3);
  background:var(--red-soft);
}

.ap-active-clear{
  border:0;
  padding:0 6px;
  color:var(--red);
  background:transparent;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.ap-active-clear:hover{
  text-decoration:underline;
}

/* ------------------------------------------------------------- URUN IZGARASI */
.ap-catalog-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
  margin-top:22px;
}

.ap-catalog-grid.is-cols-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

/* Sidebar yuzunden kart daraliyor: kart ici olculeri biraz sikilastir ki
   "adet + Sepete Ekle" satiri 4'lu duzende de tek satirda kalsin. */
.ap-catalog-grid .ap-shop-info{
  padding:18px;
}

.ap-catalog-grid .ap-shop-title{
  min-height:46px;
  font-size:16.5px;
}

.ap-catalog-grid .ap-shop-price strong{
  font-size:19px;
}

/* 4'lu duzende kart ~270px: adet secici daraltilir, "Sepete Ekle" tek satirda
   kalsin diye nowrap + kucuk ikon. Aksi halde etiket iki satira kiriliyor. */
.ap-catalog-grid .ap-qty-control{
  grid-template-columns:32px 30px 32px;
}

.ap-catalog-grid .ap-shop-purchase-row{
  gap:10px;
}

.ap-catalog-grid .ap-card-add-cart{
  flex:1 1 118px;
  padding:0 10px;
  gap:7px;
  font-size:11.5px;
  white-space:nowrap;
}

.ap-catalog-grid .ap-card-add-cart svg{
  width:17px;
  height:17px;
}

/* 3'lu ve liste gorunumunde kart genis: varsayilan olculere don */
.ap-catalog-grid.is-cols-3 .ap-qty-control,
.ap-catalog-grid.is-list .ap-qty-control{
  grid-template-columns:38px 42px 38px;
}

.ap-catalog-grid.is-cols-3 .ap-card-add-cart,
.ap-catalog-grid.is-list .ap-card-add-cart{
  flex:1 1 130px;
  padding:0 20px;
  gap:9px;
  font-size:12px;
}

.ap-catalog-grid.is-cols-3 .ap-shop-info{
  padding:22px;
}

.ap-catalog-grid.is-cols-3 .ap-shop-title{
  font-size:18px;
}

/* LISTE GORUNUMU */
.ap-catalog-grid.is-list{
  grid-template-columns:minmax(0,1fr);
  gap:16px;
}

.ap-catalog-grid.is-list .ap-shop-card{
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  align-items:stretch;
}

.ap-catalog-grid.is-list .ap-shop-media{
  aspect-ratio:auto;
  height:100%;
  min-height:230px;
}

.ap-catalog-grid.is-list .ap-shop-info{
  display:flex;
  flex-direction:column;
  padding:24px 26px;
}

.ap-catalog-grid.is-list .ap-shop-title{
  min-height:0;
  max-width:46ch;
  font-size:20px;
}

.ap-catalog-grid.is-list .ap-shop-desc{
  display:block;
}

/* Liste gorunumunde kart cok genis: fiyat ve "Hemen Al" satirin iki ucuna
   dagilmasin, solda birlikte dursunlar. */
.ap-catalog-grid.is-list .ap-shop-bottom{
  justify-content:flex-start;
  gap:28px;
  max-width:420px;
  margin-top:auto;
  padding-top:18px;
}

.ap-catalog-grid.is-list .ap-shop-purchase-row{
  max-width:420px;
}

.ap-catalog-grid.is-list .ap-shop-card:hover{
  transform:none;
  box-shadow:0 2px 4px rgba(36,27,28,.05),0 14px 34px rgba(36,27,28,.08);
}

/* Yalnizca liste gorunumunde gorunen kisa aciklama */
.ap-shop-desc{
  display:none;
  margin:12px 0 0;
  color:#776d6f;
  font-size:13.5px;
  line-height:1.7;
  max-width:70ch;
}

/* ------------------------------------------------------------- DAHA FAZLA */
.ap-catalog-more{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  margin-top:38px;
}

.ap-catalog-progress{
  width:min(280px,100%);
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(36,27,28,.1);
}

.ap-catalog-progress span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--green),#5b8a72);
}

.ap-catalog-more p{
  color:#6b625c;
  font-size:12.5px;
  font-weight:700;
}

.ap-catalog-more-btn{
  min-height:50px;
  padding:0 30px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(54,85,71,.2);
  border-radius:999px;
  color:var(--green);
  background:#fff;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(35,54,45,.07);
  transition:.25s ease;
}

.ap-catalog-more-btn svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.ap-catalog-more-btn:hover{
  color:#fff;
  background:var(--green);
  border-color:var(--green);
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(54,85,71,.2);
}

/* --------------------------------------------------------------- SAYFALAMA */
.ap-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:34px;
}

.ap-page{
  min-width:46px;
  height:46px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid rgba(36,27,28,.1);
  border-radius:14px;
  color:#4c4244;
  background:#fff;
  font-size:13px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  cursor:pointer;
  transition:.22s ease;
}

.ap-page svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.ap-page:hover{
  color:var(--green);
  border-color:rgba(54,85,71,.4);
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(35,54,45,.1);
}

.ap-page.is-active{
  color:#fff;
  border-color:var(--green);
  background:var(--green);
  box-shadow:0 12px 24px rgba(54,85,71,.24);
}

.ap-page.is-active:hover{
  color:#fff;
  transform:none;
}

.ap-page[aria-disabled="true"]{
  color:#c2b9b6;
  cursor:not-allowed;
  pointer-events:none;
  background:#f6f4f1;
}

.ap-page-dots{
  min-width:26px;
  color:#6f6863;
  text-align:center;
  font-weight:900;
  letter-spacing:1px;
}

.ap-pagination-info{
  width:100%;
  margin-top:6px;
  color:#6b625c;
  text-align:center;
  font-size:12px;
  font-weight:700;
}

/* --------------------------------------------------------------- SEO METNI */
.ap-catalog-seo{
  margin-top:50px;
  padding:34px 38px;
  border:1px solid rgba(36,27,28,.07);
  border-radius:24px;
  background:#fff;
  box-shadow:0 1px 2px rgba(36,27,28,.04),0 12px 28px rgba(36,27,28,.04);
}

.ap-catalog-seo h2{
  margin:0 0 14px;
  color:#201d1d;
  font-size:22px;
  font-weight:800;
  letter-spacing:-.03em;
}

.ap-catalog-seo h3{
  margin:22px 0 8px;
  color:#365547;
  font-size:15px;
  font-weight:800;
}

.ap-catalog-seo p{
  margin:0;
  max-width:100ch;
  color:#5f5557;
  font-size:14px;
  line-height:1.85;
}

/* ----------------------------------------------------------------- MOBIL */
@media (max-width:1280px){
  .ap-catalog-layout{
    grid-template-columns:266px minmax(0,1fr);
    gap:22px;
  }

  .ap-catalog-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:1024px){
  /* Filtre sutunu cekmeceye donusur */
  .ap-catalog-layout{
    grid-template-columns:minmax(0,1fr);
    gap:0;
  }

  .ap-filters{
    position:fixed;
    top:0;
    left:0;
    z-index:220;
    width:min(360px,86vw);
    height:100dvh;
    overflow-y:auto;
    gap:12px;
    padding:18px 18px calc(28px + env(safe-area-inset-bottom));
    background:#f8f6f2;
    box-shadow:24px 0 60px rgba(24,18,19,.22);
    transform:translateX(-102%);
    visibility:hidden;
    transition:transform .34s cubic-bezier(.4,0,.2,1),visibility .34s;
  }

  .ap-filters.is-open{
    transform:translateX(0);
    visibility:visible;
  }

  .ap-filters-head{
    position:sticky;
    top:-18px;
    z-index:2;
    margin:-18px -18px 0;
    padding:18px;
    background:#f8f6f2;
  }

  .ap-filters-close{
    display:grid;
    place-items:center;
    width:36px;
    height:36px;
    border:1px solid rgba(36,27,28,.1);
    border-radius:50%;
    color:#4c4244;
    background:#fff;
    cursor:pointer;
  }

  .ap-filters-close svg{
    width:16px;
    height:16px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.2;
    stroke-linecap:round;
  }

  .ap-filters-reset{
    margin-left:auto;
    margin-right:4px;
  }

  .ap-filters-overlay{
    position:fixed;
    inset:0;
    z-index:210;
    background:rgba(24,18,19,.5);
    backdrop-filter:blur(2px);
    opacity:0;
    visibility:hidden;
    transition:opacity .3s ease,visibility .3s;
  }

  .ap-filters-overlay.is-open{
    opacity:1;
    visibility:visible;
  }

  .ap-filter-trigger{
    display:inline-flex;
  }

  .ap-view{
    display:none;
  }

  .ap-catalog-grid,
  .ap-catalog-grid.is-cols-3{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:900px){
  .ap-catalog{
    padding:0 18px 60px;
  }

  .ap-catalog-hero{
    padding:30px 26px 32px;
    border-radius:22px;
  }

  .ap-catalog-grid,
  .ap-catalog-grid.is-cols-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .ap-catalog-seo{
    padding:26px 22px;
    border-radius:20px;
  }
}

@media (max-width:700px){
  .ap-catalog{
    padding:0 12px 56px;
  }

  .ap-breadcrumb{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding:16px 0 14px;
    white-space:nowrap;
    scrollbar-width:none;
  }

  .ap-breadcrumb::-webkit-scrollbar{
    display:none;
  }

  .ap-toolbar{
    top:6px;
    flex-wrap:wrap;
    padding:12px;
    border-radius:16px;
  }

  .ap-toolbar-count{
    flex:1 0 100%;
    order:-1;
    padding-inline:2px;
    font-size:12px;
  }

  .ap-toolbar-actions{
    flex:1 1 auto;
    gap:8px;
  }

  .ap-filter-trigger{
    flex:1 1 auto;
    justify-content:center;
  }

  .ap-sort{
    flex:1 1 auto;
  }

  .ap-sort select{
    width:100%;
  }

  .ap-catalog-grid,
  .ap-catalog-grid.is-cols-3{
    gap:12px;
    margin-top:16px;
  }

  /* Mobilde liste gorunumu de izgaraya doner */
  .ap-catalog-grid.is-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }

  .ap-catalog-grid.is-list .ap-shop-card{
    display:block;
  }

  .ap-catalog-grid.is-list .ap-shop-media{
    aspect-ratio:1 / 1.04;
    min-height:0;
    height:auto;
  }

  .ap-catalog-grid.is-list .ap-shop-desc{
    display:none;
  }

  .ap-catalog-grid.is-list .ap-shop-title{
    font-size:13px;
  }

  .ap-catalog-grid .ap-shop-info{
    padding:12px 11px 13px;
  }

  .ap-catalog-grid .ap-shop-title{
    min-height:34px;
    font-size:13px;
  }

  .ap-catalog-grid .ap-shop-price strong{
    font-size:17px;
  }

  .ap-page{
    min-width:42px;
    height:42px;
    padding:0 10px;
    font-size:12px;
  }

  .ap-page--label span{
    display:none;
  }

  .ap-catalog-hero-title{
    font-size:26px;
  }

  .ap-catalog-hero-text{
    font-size:13.5px;
  }
}

@media (prefers-reduced-motion:reduce){
  .ap-filters,
  .ap-filters-overlay,
  .ap-filter-body{
    transition:none;
    animation:none;
  }
}

/* ============================================================
   ANINDA FİLTRELEME — yükleme durumu
   Filtre seçilince katalog sütunu AJAX ile yenilenir; içerik
   zıplamasın diye yükseklik korunur, yalnızca soluklaşır.
   ============================================================ */
.ap-catalog-main{
  position:relative;
  transition:opacity .18s ease;
}

.ap-catalog-main.is-loading{
  opacity:.45;
  pointer-events:none;
}

.ap-catalog-main.is-loading::after{
  content:"";
  position:absolute;
  top:120px;
  left:50%;
  width:34px;
  height:34px;
  margin-left:-17px;
  border:3px solid rgba(54,85,71,.18);
  border-top-color:var(--green,#365547);
  border-radius:50%;
  animation:apCatSpin .7s linear infinite;
}

@keyframes apCatSpin{
  to{transform:rotate(360deg)}
}

@media (prefers-reduced-motion:reduce){
  .ap-catalog-main{transition:none}
  .ap-catalog-main.is-loading::after{animation:none}
}

/* ============================================================
   KATEGORİ KUTUSU — gezinme bağlantıları
   Kategoriler filtre değil, tıklanınca o kategoriye gidilir.
   Onay kutusu görünümü korunur; aktif kategori dolu görünür.
   ============================================================ */
a.ap-check{
  text-decoration:none;
  color:inherit;
}

a.ap-check .ap-check-box{
  border-color:rgba(36,27,28,.16);
}

a.ap-check:hover .ap-check-label{
  color:var(--green,#365547);
}

a.ap-check.is-active .ap-check-box{
  border-color:var(--green,#365547);
  background:var(--green,#365547);
}

a.ap-check.is-active .ap-check-box svg{
  opacity:1;
  transform:none;
  stroke:#fff;
}

a.ap-check.is-active .ap-check-label{
  color:var(--green,#365547);
  font-weight:800;
}

/* Alt kategoriler bir kademe içeride */
.ap-filter-tree ul{
  margin:4px 0 2px 14px;
  padding-left:10px;
  border-left:1px solid rgba(36,27,28,.09);
  list-style:none;
}

/* Rozet rengi noktası (Özellikler kutusu) */
.ap-check-dot{
  display:inline-block;
  width:8px;
  height:8px;
  margin-right:7px;
  border-radius:50%;
  vertical-align:1px;
}
