/* Üst şerit kategori önizleme penceresi (public/menu.js → openPeek).
   Masaüstünde bir kategorinin üzerinde durunca açılır: alt kategoriler + görselli öne çıkan ürünler.
   Yalnızca styles.css token'ları kullanılır; açık/koyu tema token'larla kendiliğinden gelir.
   Ürün görseli beyaz zeminde durur (marka kuralı; .cm-thumb ile aynı bilinçli sabit). */

.catpeek {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 32;
  width: min(600px, calc(100vw - 32px));
  /* SABİT yükseklik (30 Eylül, sahip: "her satırı geçtiğinde pencere alta doğru kısalıp uzuyor"): her grupta
     aynı iskelet (en fazla 7 alt kategori + "+N" satırı, 2×2 ürün). İçerik ne olursa olsun kutu değişmez; ürün
     görseli kalan boşluğa sığar (object-fit: contain), alt kategoriler sığmazsa kendi içinde kayar. */
  height: var(--peek-h, 486px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.45);
  /* Konum yalnızca transform (menu.js placePeek → --peek-tx/--peek-ty). Gruptan gruba geçişte left/top/height
     animasyonu YOK: yalnızca transform kayar (GPU katmanı, yerleşim ve CLS etkilenmez). */
  transform: translate3d(var(--peek-tx, 16px), var(--peek-ty, 120px), 0);
  transition: transform 0.32s cubic-bezier(0.3, 0.7, 0.4, 1);
  will-change: transform;
  animation: peek-in 0.18s cubic-bezier(0.3, 0.7, 0.4, 1);
}
.catpeek[hidden] { display: none; }
/* Linkin ortasını gösteren küçük ok: panelle aynı süre/eğriyle transform üzerinden kayar (--peek-x, menu.js) */
.catpeek::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateX(calc(var(--peek-x, 40px) - 6px)) rotate(45deg);
  transition: transform 0.32s cubic-bezier(0.3, 0.7, 0.4, 1);
}
/* Link ile pencere arasındaki boşluk: fare buradan geçerken pencere kapanmasın */
.catpeek::after { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
/* İçerik katmanı: panelin iç dolgusunu kaplar (mutlak), böylece gruptan gruba geçişte eski ve yeni katman üst üste
   çapraz geçiş yapar (menu.js switchPeek): yeni katman "is-in" (saydam, yönüne göre 8 px kaymış) karesinden yerine
   gelir, eski katman "is-out" ile 0,09 sn'de söner ve tıklanamaz; yeni katman 0,07 sn gecikmeyle belirmeye başlar ki
   iki yazı üst üste okunmasın (çift içerik yok). Yalnızca opacity/transform. */
.peek-inner {
  position: absolute;
  inset: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: opacity 0.14s ease 0.03s, transform 0.28s cubic-bezier(0.3, 0.7, 0.4, 1);
}
.peek-inner.is-in { opacity: 0; transform: translateX(calc(var(--peek-dir, 1) * 8px)); transition: none; }
.peek-inner.is-out { opacity: 0; pointer-events: none; transition: opacity 0.12s ease-out 0.03s; }

.peek-head { flex: none; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--text); }
.peek-ico { width: 24px; height: 24px; flex-shrink: 0; }
.peek-title { flex: 1; min-width: 0; margin: 0; display: flex; align-items: baseline; gap: 10px; }
.peek-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek-title .num { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.peek-all { flex-shrink: 0; font-weight: 600; font-size: 0.875rem; color: var(--text); text-underline-offset: 3px; white-space: nowrap; }

.peek-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 190px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 18px; padding-top: 12px; }
.peek-body.no-subs { grid-template-columns: minmax(0, 1fr); }

.peek-subs { list-style: none; margin: 0; padding: 0 14px 0 0; border-right: 1px solid var(--line-soft); min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.peek-subs a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 -8px; padding: 7px 8px; border-radius: 8px; text-decoration: none; font-size: 0.875rem; line-height: 1.3; color: var(--text-2); }
.peek-subs a:hover, .peek-subs a:focus-visible { background: var(--line-soft); color: var(--text); }
.peek-subs .num { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.peek-more a { font-size: 0.8125rem; color: var(--muted); }

/* Her grupta 2×2 (alt kategorisi olmayan grupta da): iki eşit satır, kutuyu doldurur. Kart: görsel esner (kalan
   boşluk), yazılar sabit — plan satırı iki satıra inerse görsel küçülür, panel büyümez. */
.peek-prods { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.peek-prod { display: flex; flex-direction: column; gap: 1px; min-width: 0; min-height: 0; text-decoration: none; color: var(--text); border-radius: 8px; }
.peek-prod > :not(.peek-thumb) { flex: none; }
.peek-thumb { display: block; flex: 1 1 0; min-height: 0; margin-bottom: 6px; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.peek-thumb img { width: 100%; height: 100%; object-fit: contain; }
.peek-thumb .ph { border-radius: 0; }
/* Görsel yüklenemezse gelen kare yer tutucu (/img/<id>.svg) kendi zeminiyle (--surface) aynı renkte dursun */
.peek-thumb:has(img[src*='/img/']) { background: var(--surface); }
.peek-thumb .ph-brand { display: none; }
.peek-prod.is-loading .peek-thumb { background: var(--line-soft); border-color: var(--line-soft); }
.peek-prod-name { font-size: 0.8125rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek-prod-price { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* Önce aylık ödeme (fiyat satırı), altında taksit sayısı ve toplam: toplam kesilmez, gerekirse iki satır */
.peek-prod-plan { font-size: 0.75rem; line-height: 1.3; color: var(--text-2); }
.peek-prod-plan b, .dw-prod-plan b { font-weight: 600; }
.peek-prod:hover .peek-prod-name, .peek-prod:focus-visible .peek-prod-name { text-decoration: underline; text-underline-offset: 3px; }
.peek-empty { grid-column: 1 / -1; margin: 0; font-size: 0.875rem; color: var(--muted); }

.catpeek a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Önizlemesi açık kategori şeritte de seçili görünür (sayfanın kendi kategorisi koyu kalır) */
.catbar-links a[aria-expanded='true']:not([aria-current='true']) { color: var(--text); }

/* Dokunmatik ve dar ekranlarda önizleme yok (menu.js de açmaz; bu yalnızca güvenlik) */
@media not ((hover: hover) and (min-width: 981px)) {
  .catpeek { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .catpeek, .catpeek::before, .peek-inner { animation: none; transition: none; }
}

/* İlk açılış: opacity + hafif aşağıdan yukarı (styles.css'teki paylaşılan @keyframes drop yukarıdan iner;
   burası bu panele özel, aşağıdan gelsin diye ayrı tutulur) */
@keyframes peek-in { from { opacity: 0; translate: 0 6px; } } /* translate (ayrı özellik): konumu taşıyan transform'a dokunmaz */

/* === Masaüstü geniş panel: grubun kategorileri sütun sütun (public/menu.js showDetail) ============ */
.cm-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px 28px; padding-top: 14px; }
.cm-col { min-width: 0; }
.cm-col-head { display: flex; align-items: center; gap: 8px; margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); font-weight: 600; font-size: 0.9375rem; color: var(--text); text-decoration: none; }
.cm-col-head .ico { width: 20px; height: 20px; flex-shrink: 0; }
.cm-col-head span:not(.num) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-col-head .num { margin-left: auto; font-family: var(--mono); font-size: 0.75rem; font-weight: 400; color: var(--muted); }
a.cm-col-head:hover span:not(.num) { text-decoration: underline; text-underline-offset: 3px; }
.cm-col-note { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.cm-col ul { list-style: none; margin: 0; padding: 4px 0 0; }
.cm-col li a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 0; font-size: 0.875rem; line-height: 1.3; color: var(--text-2); text-decoration: none; }
.cm-col li a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cm-col li .num { font-family: var(--mono); font-size: 0.71875rem; color: var(--muted); }
.cm-col .cm-more a { color: var(--muted); font-size: 0.8125rem; }
/* Tek kategorili grup: alt kategoriler ikonlu liste */
.cm-subs a { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.cm-subs a .ico { width: 20px; height: 20px; }
/* === Masaüstü geniş panel: telefondaki kartlar ve ayrıntılar (public/menu.js megaHtml, megaDetailHtml) ==========
   1 Ekim 2026, sahip: "telefondaki gibi ... kartlar, detaylar güzeldi". Yeni bir görsel dil yok: telefon
   çekmecesinin parçaları (.mi-ico ikon kutusu, .dw-all, .dw-quick, .dw-tile; aşağıda "Telefon çekmecesi" bölümü)
   geniş panele uyarlanır. Yalnızca token renkleri; lime yalnızca "peşin fiyatına" hapında ve taksit şeridinin dolu
   kutularında (telefondaki gibi), kart kampanyası krem.

   Pencere (1 Ekim 2026, sahip: "kategorilere mouse'umu getirdim ... öne çıkanları görmek için aşağı kaydırmam
   gerekiyor, tek sayfada göreyim"; "Tüm fırsatların altı boş"; "tüm sayfa kaplaması güzel durmuyor, pencere gibi
   olsun, bir yere kadar açılsın"). Panel styles.css'te yuvarlak köşeli bir kart (height: auto); burada:
   - Sol sütun (.cmx-side): gruplar + Mağazalar, altında telefonun 4 kısayol kutusu (eskiden panelin altında ayrı
     şeritti ve ≤ 920 px yükseklikte gizleniyordu). Kutular sütunun dibine yaslanır: iki sütun aynı çizgide biter.
   - Sağ: kartlar sütunlara akar (CSS columns: kısa kart uzunun altında boşluk bırakmaz; Teknoloji'nin 7 kartı iki
     hizalı sıra yerine ~80 px daha kısa). Her grup aynı düzende: çok kategorili grupta kart = kategori, liste = alt
     kategoriler; tek kategorili grupta kart = alt kategori, liste = alt kalemleri ya da en çok ürünlü markaları.
     Öne çıkanlar 4, yer varsa ikinci sıra (.cm-feat-more).
   Hedef: 1280×800, 1440×900, 1512×982, 1920×1080'de her grup, öne çıkanlar dahil, kaydırmadan görünür (ölçüm:
   test/kategori-paneli.test.js açıklaması). Daha kısa ekranda pencere kendi içinde kayar. */

.catmenu.is-mega .catmenu-inner { grid-template-columns: 372px minmax(0, 1fr); gap: 32px; padding-top: 14px; padding-bottom: 16px; }

/* Sol sütun: telefondaki grup satırı gibi ikon kutusu + ad + gri tek satır özet; altta kısayol kutuları */
.cmx-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-right: 16px; border-right: 1px solid var(--line); }
.catmenu.is-mega .cmx-side .catmenu-list { padding-right: 0; border-right: 0; }
.catmenu.is-mega .catmenu-list > li:not(.catmenu-stores) > .catmenu-item { grid-template-columns: 32px minmax(0, 1fr) auto 14px; gap: 10px; padding: 4px 10px 4px 6px; }
.catmenu.is-mega .catmenu-list .cm-ico { box-sizing: border-box; width: 32px; height: 32px; padding: 6px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--paper); }
.catmenu.is-mega .catmenu-item.is-active .cm-ico, .catmenu.is-mega .catmenu-item:hover .cm-ico { border-color: var(--line); }
.catmenu.is-mega .cm-name { display: grid; min-width: 0; white-space: normal; line-height: 1.25; }
.catmenu.is-mega .cm-name > b { font-weight: 600; color: var(--text); }
.catmenu.is-mega .cm-name > b, .catmenu.is-mega .cm-desc { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-desc { font-size: 0.75rem; line-height: 1.3; color: var(--muted); }
.catmenu.is-mega .cm-desc { line-height: 1.25; }
.catmenu.is-mega .catmenu-stores { margin-top: 4px; padding-top: 4px; }
.catmenu.is-mega .catmenu-stores .catmenu-item { grid-template-columns: 32px minmax(0, 1fr) auto 14px; gap: 10px; padding: 4px 10px 4px 6px; }

/* Kısayol kutuları: telefondaki 4 kutu, iki satır (ikon/şerit + sayı, başlık); açıklama satırı yok */
.catmenu.is-mega .cmx-tiles { margin: auto 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.catmenu.is-mega .cmx-tiles .dw-tile { min-height: 0; padding: 8px 10px 9px; }
.catmenu.is-mega .cmx-tiles .t-top { height: 20px; }
.catmenu.is-mega .cmx-tiles .t-ico { width: 20px; height: 20px; }
.catmenu.is-mega .cmx-tiles .t-strip { width: 84px; }
.catmenu.is-mega .cmx-tiles .dw-tile b { margin-top: 3px; font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catmenu.is-mega .cmx-tiles .t-desc { display: none; }
/* Koyu kutu: "peşin fiyatına" hapı üst satırda sayıyla (etiket ikonu yok; kutu diğerleriyle aynı boy) */
.catmenu.is-mega .cmx-tiles .t-night { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
.catmenu.is-mega .cmx-tiles .t-night .t-top { display: contents; }
.catmenu.is-mega .cmx-tiles .t-night .t-ico { display: none; }
.catmenu.is-mega .cmx-tiles .t-night .t-pill { grid-area: 1 / 1; align-self: center; margin: 0; }
.catmenu.is-mega .cmx-tiles .t-night .t-count { grid-area: 1 / 2; align-self: center; }
.catmenu.is-mega .cmx-tiles .t-night > b { grid-column: 1 / -1; }
.cmx-tiles .dw-tile:focus-visible { border-color: var(--text); }

/* Başlık: grup adı + kısa tanım; sağda "6+ taksitli" şeridi ve koyu "Tüm … ürünleri" satırı (dar ekranda alta iner) */
.catmenu.is-mega .cm-head { padding-bottom: 10px; }
.cmx-head { flex-wrap: wrap; row-gap: 10px; }
/* Başlık ikonu yok: aynı ikon hemen solda, seçili grup satırında; uzun adlı grupta ("Kozmetik ve Kişisel Bakım")
   başlık ile düğmeler 1280-1440 px'te aynı satıra sığsın (sarınca pencere ~50 px uzuyordu) */
.cmx-head .cm-head-ico { display: none; }
.cmx-title { display: grid; min-width: 0; }
.cmx-title h2 { line-height: 1.05; }
.cmx-title p { margin: 3px 0 0; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-head > .cmx-acts { flex-shrink: 0; gap: 8px; margin-left: auto; }
.catmenu.is-mega .cmx-quick { margin: 0; padding: 9px 12px; }
.catmenu.is-mega .cmx-all { margin: 0; padding: 10px 12px 10px 14px; font-size: 0.875rem; }
.catmenu.is-mega .cmx-all span:first-child { flex: none; }
.cmx-quick:hover, .cmx-quick:focus-visible { box-shadow: inset 0 0 0 1px var(--lime-text); }
.cmx-all:hover, .cmx-all:focus-visible { background: color-mix(in srgb, var(--night-text) 10%, var(--night)); }

/* Kategori kartı: telefondaki kategori satırı (ikon kutusu, ad, sayı) + masaüstünün alt kategori linkleri */
.cmx-col { display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.cmx-col:hover { border-color: color-mix(in srgb, var(--text) 35%, var(--line)); }
.cmx-cat.mi-row { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; padding: 3px 4px; border-radius: 8px; }
.cmx-cat .mi-ico { width: 36px; height: 36px; background: var(--surface); }
.cmx-cat .mi-ico .ico { width: 20px; height: 20px; }
.cmx-cat .mi-txt b { font-size: 0.9375rem; overflow-wrap: anywhere; }
.cmx-cat .mi-txt .num { font-family: var(--mono); font-size: 0.71875rem; }
.cmx-cat .cmx-cat-desc { margin-top: 2px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cmx-cat:hover .mi-txt b, .cmx-cat:focus-visible .mi-txt b { text-decoration: underline; text-underline-offset: 3px; }
.cmx-col ul { margin-top: 3px; padding: 3px 6px 0; border-top: 1px solid var(--line-soft); }
.cmx-col li a { padding: 2px 0; }
/* Çok kategorili grup: kartlar sütunlara akar (yukarıdan aşağı, sonra sağa) */
.catmenu.is-mega .cmx-cols { display: block; columns: 4 170px; column-gap: 10px; padding-top: 10px; }
.catmenu.is-mega .cmx-cols > .cmx-col { break-inside: avoid; margin-bottom: 8px; }
/* Tek kategorili grupta marka listesi yüklenene dek satır boyunda yer tutucu (pencere zıplamasın) */
.cmx-col li.cmx-ph span { display: block; width: 72%; height: 12px; margin: 5px 0; border-radius: 4px; background: var(--line-soft); }
.cmx-col li.cmx-ph:nth-child(2n) span { width: 56%; }

/* Öne çıkanlar: ilk sıra 4 ürün her zaman; ikinci sıra (.cm-feat-more) yalnızca pencerede yeri varsa. Sağ sütun
   esnek kutu, ikinci sıranın kabı kalan boşluğu alır (flex 1 1 0, boyu içeriğe bağlı değil: container-type size)
   ve yükseklik sorgusuyla sıra ancak tamamı sığınca görünür. Böylece pencere hiçbir grupta ikinci sıra yüzünden
   uzamaz; sol sütun sağdan uzunsa (tek kategorili gruplar, Yapı Market, Diğer) altta boşluk yerine ürün durur. */
.catmenu.is-mega .catmenu-detail { display: flex; flex-direction: column; }
.catmenu.is-mega .cm-feat-title { margin: 12px 0 6px; }
.catmenu.is-mega .cm-feat { row-gap: 8px; }
.catmenu.is-mega .cm-thumb { aspect-ratio: 16 / 10; margin-bottom: 6px; }
.catmenu.is-mega .cm-ph-lines { display: block; height: 65px; }
.cm-feat-more { flex: 1 1 0; min-height: 0; overflow: hidden; container-type: size; }
.cm-feat-more > .cm-feat { display: none; margin-top: 8px; }
/* Yer az (Yapı Market, Beyaz Eşya, Ev, Diğer: 88-205 px): ikinci sıra küçük satırlar (64 px görsel solda; aylık,
   taksit ve toplam yine aynı karede) — sağ altta boşluk kalmasın */
@container (min-height: 88px) {
  .cm-feat-more > .cm-feat { display: grid; }
  .cm-feat-more .cm-prod { grid-template-columns: 64px minmax(0, 1fr); column-gap: 8px; row-gap: 0; align-content: start; }
  .cm-feat-more .cm-thumb { grid-row: 1 / span 3; width: 64px; height: 64px; aspect-ratio: auto; margin: 0; }
  .cm-feat-more .cm-prod-price { font-size: 1rem; }
}
/* Yer çoksa (tek kategorili gruplar) ikinci sıra ilk sırayla aynı kartlar. 206 = 8 + en uzun sıra (pencere en
   geniş, 1280 px: sütun 198 px → görsel 124 + yazılar 73 = 197 px) */
@container (min-height: 206px) {
  .cm-feat-more .cm-prod { grid-template-columns: none; column-gap: 0; row-gap: 2px; }
  .cm-feat-more .cm-thumb { grid-row: auto; width: auto; height: auto; aspect-ratio: 16 / 10; margin: 0 0 6px; }
  .cm-feat-more .cm-prod-price { font-size: 1.125rem; }
}

/* Alçak ekran (görünür yükseklik ≤ 800 px: 1366×768, 1280×720 dizüstü): panelin boyunu sol sütun belirlemesin (10 grup satırı + Mağazalar
   + 4 kısayol kutusu 638 px tutuyor, 768'lik ekranda pencere kayıyordu). Grup satırında gri özet satırı kalkar, ikon kutusu küçülür:
   satır 42 → 30 px; kısayol kutuları sıkılaşır. Sağ taraf bunun üstünde menu.js fitMegaBody ile kendi boyuna sığar. */
@media (max-height: 800px) {
  .catmenu.is-mega .cmx-side { gap: 8px; }
  .catmenu.is-mega .catmenu-list > li:not(.catmenu-stores) > .catmenu-item, .catmenu.is-mega .catmenu-stores .catmenu-item { grid-template-columns: 26px minmax(0, 1fr) auto 14px; gap: 8px; padding-top: 2px; padding-bottom: 2px; }
  .catmenu.is-mega .catmenu-list .cm-ico { width: 26px; height: 26px; padding: 5px; border-radius: 8px; }
  .catmenu.is-mega .cm-desc { display: none; }
  .catmenu.is-mega .catmenu-stores { margin-top: 2px; padding-top: 2px; }
  .catmenu.is-mega .cmx-tiles { gap: 6px; }
  .catmenu.is-mega .cmx-tiles .dw-tile { padding: 6px 10px 7px; }
}

/* Alçak ekranda (kart satırları 2'ye inmesine rağmen sığmayınca; menu.js fitMegaBody) "Öne çıkanlar" EN SON kısalır: dört küçük satır
   (görsel solda 56 px; aylık, taksit ve toplam aynı karede); o da yetmezse bölüm gizlenir. */
.catmenu-detail.is-feat-compact .cm-feat-more, .catmenu-detail.is-feat-off .cm-feat-title, .catmenu-detail.is-feat-off .cm-feat, .catmenu-detail.is-feat-off .cm-feat-more { display: none; }
.catmenu.is-mega .catmenu-detail.is-feat-compact .cm-feat-title { margin: 8px 0 4px; }
.catmenu.is-mega .catmenu-detail.is-feat-compact .cm-feat { row-gap: 0; }
.catmenu.is-mega .catmenu-detail.is-feat-compact .cm-feat .cm-prod { grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; align-content: start; row-gap: 0; }
.catmenu.is-mega .catmenu-detail.is-feat-compact .cm-feat .cm-thumb { grid-row: 1 / span 3; width: 56px; height: 56px; aspect-ratio: auto; margin: 0; }
.catmenu.is-mega .catmenu-detail.is-feat-compact .cm-feat .cm-prod-price { font-size: 1rem; }
.catmenu.is-mega .catmenu-detail.is-feat-compact .cm-ph-lines { height: 56px; }

/* Mağazalar sekmesi: büyük mağaza karoları 6'lı, tüm mağazalar 4 sütun, satırlar sıkı (31 mağaza kaydırmadan) */
.catmenu.is-mega .sm-lead { margin-top: 8px; }
.catmenu.is-mega .sm-feat { margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.catmenu.is-mega .sm-tile { min-height: 56px; gap: 4px; padding: 8px 10px; }
.catmenu.is-mega .sm-all { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 20px; }
.catmenu.is-mega .sm-line { min-height: 32px; padding: 2px; }

@media (max-width: 1100px) {
  .catmenu.is-mega .catmenu-inner { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
  .catmenu.is-mega .catmenu-list .cm-desc { display: none; }
  .catmenu.is-mega .cm-name > b { white-space: normal; }
  .catmenu.is-mega .cmx-tiles .t-strip, .catmenu.is-mega .cmx-tiles .t-night .t-count { display: none; }
  .catmenu.is-mega .cmx-tiles .dw-tile b { white-space: normal; }
  .catmenu.is-mega .cmx-tiles .t-pill { white-space: nowrap; }
  .cmx-quick .t-strip { display: none; }
  .catmenu.is-mega .cmx-cols { columns: 3 150px; }
}
/* styles.css ≤ 980 px'te öne çıkanlar 2 sütun (ilk 4 ürün zaten iki sıra; ikinci sıra bu genişlikte kaba sığmaz) */
@media (max-width: 980px) {
  .cm-feat-more { display: none; }
}
/* Yarım pencere (641-860 px): "6+ taksitli" ve "Tüm … ürünleri" yan yana sığmıyordu (11-79 px yatay taşma).
   Satır sarar, alt alta iner; uzun "Tüm … ürünleri" yazısı gerekirse iki satıra kırılır. */
@media (max-width: 860px) {
  .cm-head > .cmx-acts { flex-wrap: wrap; flex-shrink: 1; min-width: 0; max-width: 100%; margin-left: 0; }
  .catmenu.is-mega .cmx-all { min-width: 0; max-width: 100%; }
  .catmenu.is-mega .cmx-all span:first-child { flex: 0 1 auto; }
  .catmenu.is-mega .cmx-cols { columns: 2 150px; }
}
/* Dar masaüstünde şerit sıkışır; sığmayanlar gizlenir, hepsi "Kategoriler" panelinde */
@media (max-width: 1180px) { .catbar-links a { padding-left: 7px; padding-right: 7px; font-size: 0.84375rem; } }
/* Üst şeritte 9 grup: 1440 px'te hepsi sığsın diye biraz daha sıkı */
.catbar-links a { padding-left: 9px; padding-right: 9px; }
.catbar .catbar-guide { padding-left: 10px; padding-right: 10px; }

/* === Telefon çekmecesi: iki seviye (public/menu.js drawerHtml) ====================================
   1. seviye: logo + kapat, 2×2 kısayol kutusu, "Kategoriler" başlığı ve 9 grup satırı, hesap kartı.
   2. seviye: "‹ Menü", başlık, koyu "Tüm … ürünleri" satırı, kategori satırları ya da alt kategori kartları.
   Lime yalnızca "peşin fiyatına" hapında (marka kuralı); kart kampanyası krem. */
.catmenu.is-drawer .catmenu-panel { width: min(92vw, 400px); }
.dw-view { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.dw-view.is-in { animation: dw-in 0.2s ease; }
.dw-view.is-back { animation: dw-back 0.2s ease; }
@keyframes dw-in { from { transform: translateX(28px); opacity: 0; } }
@keyframes dw-back { from { transform: translateX(-28px); opacity: 0; } }
.dw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 8px 16px; flex-shrink: 0; }
.dw-head .logo { font-size: 22px; }
.dw-back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin-left: -6px; padding: 8px 12px 8px 4px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: 0.9375rem; color: var(--text); cursor: pointer; }
.dw-back:hover { background: var(--line-soft); }
.dw-back-ico { width: 18px; height: 18px; transform: rotate(180deg); }
.dw-title { margin: 2px 16px 10px; font-family: var(--display); font-weight: 800; font-size: 1.875rem; letter-spacing: -0.035em; line-height: 1.02; outline: none; flex-shrink: 0; }
.dw-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 12px calc(18px + env(safe-area-inset-bottom)); }
.dw-label { margin: 18px 4px 6px; font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Kısayol kutuları */
.dw-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.dw-tile { display: grid; gap: 2px; align-content: start; min-width: 0; min-height: 104px; padding: 11px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--text); text-decoration: none; }
.dw-tile:hover { border-color: var(--text); }
.dw-tile b { margin-top: 6px; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; line-height: 1.15; }
.t-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 22px; }
.t-ico { width: 22px; height: 22px; }
.t-count { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.t-desc { font-size: 0.78125rem; line-height: 1.3; color: var(--text-2); }
.t-night { background: var(--night); color: var(--night-text); border-color: color-mix(in srgb, var(--night-text) 14%, var(--night)); }
.t-night:hover { border-color: var(--night-muted); }
.t-night .t-desc, .t-night .t-count { color: var(--night-muted); }
.t-pill { justify-self: start; margin-top: 6px; padding: 2px 7px; border-radius: 6px; background: var(--lime); color: #0f100d; font-size: 0.6875rem; font-weight: 700; }
.t-krem { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); }
.t-krem .t-desc { color: var(--accent-text); }
.t-strip { width: 96px; height: 12px; }

/* Grup, kategori ve Kategori paneli satırları: 40 px nötr ikon kutusu, ad, gri tek satır özet, sayı */
.dw-rows { list-style: none; margin: 0; padding: 0; }
.mi-row { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 4px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.dw-rows li + li .mi-row { border-top: 1px solid var(--line-soft); border-radius: 0; }
@media (hover: hover) { .mi-row:hover { background: var(--line-soft); } }
.mi-ico { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--paper); color: var(--text); }
.mi-ico .ico { width: 22px; height: 22px; }
.mi-txt { display: grid; min-width: 0; }
.mi-txt b { font-weight: 600; font-size: 0.96875rem; line-height: 1.25; }
.mi-txt span { font-size: 0.78125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-end { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.mi-end .ico { width: 16px; height: 16px; }

/* Hesap kartı ve küçük linkler */
.dw-acct { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 16px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.dw-acct:hover { border-color: var(--text); }
.dw-acct-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: var(--paper); }
.dw-acct-ico svg { width: 18px; height: 18px; }
.dw-avatar { font-weight: 700; font-size: 0.8125rem; }
.dw-acct-txt { display: grid; min-width: 0; }
.dw-acct-txt b { font-size: 0.875rem; line-height: 1.3; }
.dw-acct-txt span { font-size: 0.75rem; color: var(--muted); }
.dw-btn { padding: 7px 12px; border-radius: 999px; background: var(--text); color: var(--paper); font-weight: 600; font-size: 0.8125rem; white-space: nowrap; }
.dw-mini { display: flex; flex-wrap: wrap; gap: 0 16px; padding: 10px 4px 0; font-size: 0.8125rem; }
.dw-mini a { padding: 6px 0; color: var(--muted); text-decoration: none; }
.dw-mini a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* 2. seviye */
.dw-all { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 12px 14px; border-radius: 12px; background: var(--night); color: var(--night-text); font-weight: 600; text-decoration: none; }
.dw-all span:first-child { flex: 1; min-width: 0; }
.dw-all .num { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; color: var(--night-muted); }
.dw-all .ico { width: 16px; height: 16px; }
.dw-quick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 10px; padding: 11px 12px; border-radius: 12px; background: var(--lime-soft); color: var(--lime-text); font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.dw-quick .t-strip i { background: color-mix(in srgb, var(--lime-text) 22%, transparent); }
.dw-quick .t-strip i.on { background: var(--lime-text); }
.dw-quick .num { font-family: var(--mono); font-size: 0.75rem; }
.dw-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dw-prod { display: grid; gap: 1px; min-width: 0; color: var(--text); text-decoration: none; }
.dw-thumb { display: block; aspect-ratio: 1; margin-bottom: 5px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--media-bg); }
.dw-thumb img { width: 100%; height: 100%; object-fit: contain; }
.dw-thumb .ph { border-radius: 0; }
.dw-thumb .ph-brand { display: none; }
.dw-prod.is-loading .dw-thumb { background: var(--line-soft); border-color: var(--line-soft); }
.dw-prod-name { font-size: 0.75rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-prod-price { font-family: var(--display); font-weight: 700; font-size: 0.875rem; letter-spacing: -0.02em; }
.dw-prod-plan { font-size: 0.75rem; line-height: 1.3; color: var(--text-2); }
.dw-prod:hover .dw-prod-name { text-decoration: underline; text-underline-offset: 3px; }
/* Tek kategorili grup: alt kategoriler iki sütun */
.dw-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dw-card { height: 100%; display: grid; gap: 6px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--text); text-decoration: none; }
.dw-card:hover { border-color: var(--text); }
.dw-card .mi-ico { background: var(--surface); }
.dw-card b { font-weight: 600; font-size: 0.90625rem; line-height: 1.25; }
.dw-card .num { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
/* Alt kategori kartında ürün görseli (ürünler gelince ikonun yerine; görsel beyaz zeminde, .dw-thumb gibi) */
.dw-card-media.has-img { width: 56px; height: 56px; overflow: hidden; border-color: var(--line); background: var(--media-bg); }
.dw-card-media.has-img img { width: 100%; height: 100%; object-fit: contain; }
.dw-card-media.has-img .ph { border-radius: 0; }
.dw-card-media.has-img .ph-brand { display: none; }

/* === Liste sayfası: kategori çubuğu ve Kategori paneli (public/parts.js catnavHtml) =================
   Telefon ve tablette tek yapışkan blok; masaüstünde gizli. Bu blok varken yinelenen parçalar (sayfa yolu,
   alt kategori hapları, seçili kategori hapı, araç çubuğundaki "Filtreler") gizlenir. */
.catnav, .catsheet { display: none; }
@media (max-width: 980px) {
  .catnav { --cn-gut: 20px; display: block; position: sticky; top: var(--topbar-h, 0px); z-index: 20; margin: 0 calc(-1 * var(--cn-gut)); padding: 10px var(--cn-gut) 0; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
  .cn-row { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; }
  .cn-crumb { flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 14px; border: 1px solid var(--text); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 0.9375rem; text-align: left; cursor: pointer; }
  .cn-parent { min-width: 0; max-width: 45%; flex-shrink: 1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cn-crumb b { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cn-sep { width: 14px; height: 14px; flex-shrink: 0; color: var(--muted); }
  .cn-down { width: 16px; height: 16px; flex-shrink: 0; transform: rotate(90deg); }
  .cn-filter { height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.875rem; cursor: pointer; }
  .cn-filter .ico { width: 16px; height: 16px; }
  .cn-n { padding: 1px 6px; border-radius: 999px; background: var(--text); color: var(--paper); font-family: var(--mono); font-size: 0.6875rem; }
  /* Alt kategori hapları: yatay kayar, sağ kenar solarak devamı olduğunu gösterir. İkonlu büyük hap düzeni (1 Ekim 2026,
     sahip: telefonda düzen A sekmeleri yerine eski haplar geri geldi; masaüstü sekme şeridi ve tür satırı düzen A'da kalır). */
  .cn-chips { display: flex; gap: 6px; margin: -2px calc(-1 * var(--cn-gut)) 0; padding: 0 48px 10px var(--cn-gut); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
  .cn-chips::-webkit-scrollbar { display: none; }
  .cn-chip { flex-shrink: 0; height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 0.875rem; white-space: nowrap; text-decoration: none; }
  .cn-chip .ico { width: 17px; height: 17px; }
  .cn-chip .num { font-family: var(--mono); font-size: 0.71875rem; color: var(--muted); }
  .cn-chip[aria-current] { background: var(--text); border-color: var(--text); color: var(--paper); }
  .cn-chip[aria-current] .num { color: inherit; opacity: 0.7; }
  .cn-chip.is-ghost { border-style: dashed; color: var(--text-2); }
  .catnav ~ .crumbs, .catnav ~ .subchips, .catnav ~ .catalog .filter-toggle { display: none; }
  .catnav ~ .list-head { margin-top: 18px; }

  /* Kategori paneli: alttan açılır */
  .catsheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 72; }
  .cs-scrim { position: absolute; inset: 0; background: rgba(15, 16, 13, 0.45); animation: fade 0.2s ease; }
  .cs-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; max-height: 86dvh; overflow: auto; overscroll-behavior: contain; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: var(--surface); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.4); animation: cs-up 0.25s cubic-bezier(0.3, 0.7, 0.4, 1); }
  @keyframes cs-up { from { transform: translateY(100%); } }
  .cs-grab { display: block; width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: var(--line); }
  .cs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .cs-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
  .cs-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0; font-size: 0.84375rem; color: var(--muted); }
  .cs-path a { color: var(--text-2); text-underline-offset: 3px; }
  .cs-path b { color: var(--text); font-weight: 600; }
  .cs-path .ico { width: 14px; height: 14px; }
  .cs-list { list-style: none; margin: 0; padding: 0; }
  .cs-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 20px; gap: 12px; align-items: center; padding: 6px 4px; border-radius: 10px; color: var(--text); text-decoration: none; }
  .cs-list li + li .cs-row { border-top: 1px solid var(--line-soft); border-radius: 0; }
  @media (hover: hover) { .cs-row:hover { background: var(--line-soft); } }
  .cs-name { min-width: 0; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cs-row .num { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
  .cs-row.is-on .cs-name { font-weight: 700; }
  .cs-row.is-on .mi-ico { background: var(--text); border-color: var(--text); color: var(--paper); }
  .cs-ok { width: 18px; height: 18px; }
  .cs-other { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--paper); color: var(--text); font-weight: 600; font-size: 0.875rem; text-align: left; cursor: pointer; }
  .cs-other span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cs-other .ico { width: 16px; height: 16px; flex-shrink: 0; }
  body.catsheet-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .catnav { --cn-gut: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dw-view.is-in, .dw-view.is-back, .cs-panel, .cs-scrim { animation: none; }
}

/* === Mağazalar (public/menu.js: storesDetailHtml, storesDrawerHtml) =========================================
   Üst şeritte "Mağazalar" düğmesi (styles.css .catbar-stores), geniş panelde sol sütun girişi + sağda mağaza karoları,
   çekmecede satır + 2. seviye. Logolar mevcut rozet ölçüsünde kalır (karoda h 20, listede h 16: filtre listesiyle aynı);
   renk yalnızca tokenlar (açık/koyu tema kendiliğinden), mor yok, lime yok (lime yalnızca "peşin fiyatına"). */
button.catmenu-item { width: 100%; border: 0; background: none; font: inherit; font-size: 0.9375rem; text-align: left; cursor: pointer; }
.catmenu-stores { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.catmenu-stores + .catmenu-all { margin-top: 0; padding-top: 0; border-top: 0; }
.sm-lead { margin: 12px 0 0; font-size: 0.875rem; color: var(--text-2); }
.sm-feat { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.sm-tile { display: grid; gap: 6px; align-content: center; min-height: 68px; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--text); text-decoration: none; }
.sm-tile:hover, .sm-tile:focus-visible { border-color: var(--text); }
.sm-logo { display: flex; align-items: center; min-width: 0; min-height: 24px; font-weight: 600; font-size: 0.9375rem; }
.sm-logo .logo-name { margin-left: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-count { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.sm-all { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 0 28px; }
.sm-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 38px; padding: 3px 2px; border-bottom: 1px solid var(--line-soft); color: var(--text-2); text-decoration: none; font-size: 0.875rem; }
.sm-line:hover, .sm-line:focus-visible { color: var(--text); background: var(--line-soft); }
.sm-line .num { flex: none; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.sm-line-name { display: inline-flex; align-items: center; min-width: 0; }
.sm-line-name .logo-name { margin-left: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catmenu.is-mega .catmenu-detail .cm-feat-title#sm-all-title { margin-top: 14px; }
/* Çekmece: 1. seviyedeki "Mağazalar" satırı ve 2. seviye */
.dw-stores { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 10px; padding: 8px 12px 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.dw-stores:hover { border-color: var(--text); }
.dw-label .num { margin-left: 6px; font-family: var(--mono); letter-spacing: 0; }
.catmenu.is-drawer .sm-feat { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.catmenu.is-drawer .sm-tile { min-height: 64px; padding: 9px 10px; }
.catmenu.is-drawer .sm-all { grid-template-columns: minmax(0, 1fr); }
.catmenu.is-drawer .sm-line { min-height: 44px; }
/* Dar karoda geniş logo taşmasın: rozet karonun içinde kalır (orana sadık küçülür; yalnızca yer yetmezse) */
.sm-tile .logo-badge, .sm-line .logo-badge { max-width: 100%; }
.sm-tile .logo-badge img, .sm-line .logo-badge img { max-width: 100%; height: auto; }
