/* ============================================================
   TürkDeli — Tasarım Sistemi
   Marka renkleri canlı siteden alındı: yeşil #035437, #008448,
   vurgu kırmızısı #dd442f. Font: Poppins.
   ============================================================ */

:root {
  --green-900: #023a26;
  --green-700: #035437;   /* ana marka rengi */
  --green-500: #008448;
  --green-050: #eaf4ee;
  --accent:    #dd442f;   /* vurgu / kampanya */
  --accent-dark: #b9331f;
  --cream:     #faf7f1;
  --ink:       #1d2521;
  --ink-soft:  #55605a;
  --line:      #e6e2d8;
  --white:     #ffffff;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(3, 84, 55, .08);
  --shadow-md: 0 8px 24px rgba(3, 84, 55, .12);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-700); }
a:hover { color: var(--green-500); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--green-900); }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Erişilebilirlik */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green-700); color: #fff;
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ---------------- Duyuru çubuğu ---------------- */
.announce {
  background: var(--green-700);
  color: #fff;
  font-size: .82rem;
  text-align: center;
  padding: 8px 16px;
}
.announce strong { font-weight: 600; }
.announce .sep { margin: 0 10px; opacity: .5; }

/* ---------------- Üst menü ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .container { max-width: 1360px; }
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
/* Kutu, kaynağın oranına (1039x635 ≈ 1.64) uyduruldu. Önce 64x60 idi —
   neredeyse kare; object-fit:contain logoyu genişliğe göre küçültüp 64x39
   çiziyor, altında ve üstünde 21px boşluk kalıyordu. Yükseklik
   .header-inner'ın 68px'inin altında tutuluyor: beyaz şerit büyümüyor,
   yalnızca logo büyüyor. */
.logo-link img { width: 105px; height: 64px; object-fit: contain; }

.main-nav { flex: 1; }
.main-nav ul {
  display: flex; flex-wrap: wrap; gap: 2px;
  list-style: none; margin: 0; padding: 0;
  justify-content: center;
}
/* Yatay padding 9px'ten 7px'e indi: menüye "Kampanyalar" eklenince öğeler
   toplamı kullanılabilir genişliği 5px aşıyor ve son bağlantı ikinci satıra
   düşüyordu. 9 öğede 2px × 2 × 9 = 36px kazanıyor. */
.main-nav a {
  display: inline-block;
  padding: 9px 7px;
  font-size: .86rem; font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.main-nav a:hover { background: var(--green-050); color: var(--green-700); }
.main-nav a[aria-current="page"] { color: var(--green-700); font-weight: 600; background: var(--green-050); }

.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: none; background: transparent;
  border-radius: var(--radius-sm);
  color: var(--green-700);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.icon-btn:hover { background: var(--green-050); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 600; line-height: 18px;
  border-radius: 999px; text-align: center;
}
.cart-count[data-empty="true"] { display: none; }

.nav-toggle { display: none; }

/* Dar masaüstünde menü iyice sıkışır. Mobil menü 900px'te devreye girdiği
   için aradaki bant elden geçiyor; sığmazsa yine alta sarar, kırılmaz. */
@media (max-width: 1400px) {
  .main-nav a { padding: 8px 5px; font-size: .82rem; }
}

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 150;
    padding: 76px 20px 20px;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; }
  .main-nav a { display: block; padding: 13px 14px; font-size: 1rem; }
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.35);
    opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 140;
  }
  .nav-overlay.show { opacity: 1; pointer-events: auto; }
  .nav-close {
    position: absolute; top: 16px; right: 16px;
  }
}
@media (min-width: 900px) {
  .nav-close, .nav-overlay { display: none; }
}

/* ---------------- Arama katmanı ---------------- */
.search-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 16px 0;
}
.search-panel.open { display: block; }
.search-row { display: flex; gap: 8px; }
.search-row input {
  flex: 1; min-height: 48px;
  padding: 10px 16px;
  font: inherit;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
}
.search-row input:focus { border-color: var(--green-500); outline: none; }
.search-results { list-style: none; margin: 12px 0 0; padding: 0; max-height: 320px; overflow-y: auto; }
.search-results li a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
}
.search-results li a:hover { background: var(--green-050); }
.search-results img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.search-results .price { margin-left: auto; font-weight: 600; color: var(--green-700); white-space: nowrap; }
.search-empty { color: var(--ink-soft); padding: 12px 10px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--green-900);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}
.hero-bg.active { opacity: 1; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
  transition: background .15s ease;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .35); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 14px;
  z-index: 3;
  display: flex; gap: 8px; justify-content: center;
}
.hero-dots button {
  width: 10px; height: 10px; padding: 0;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.hero-dots button[aria-current="true"] { background: #fff; transform: scale(1.25); }
@media (max-width: 640px) {
  .hero-arrow { width: 40px; height: 40px; font-size: 1.3rem; }
  .hero-arrow.prev { left: 8px; }
  .hero-arrow.next { right: 8px; }
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(2, 46, 30, .93) 0%, rgba(2, 46, 30, .8) 38%, rgba(2, 46, 30, .25) 75%, rgba(2, 46, 30, .15) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content {
  position: relative;
  padding: clamp(56px, 10vw, 120px) 0;
  max-width: 640px;
}
.hero h1 { color: #fff; }
.hero p { font-size: 1.05rem; opacity: .92; max-width: 48ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------------- Butonlar ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font: inherit; font-weight: 600; font-size: .95rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-500); color: #fff; }
.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-050); color: var(--green-700); }
.hero .btn-outline { color: #fff; border-color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #178a45; color: #fff; }
.btn[disabled], .btn.disabled {
  background: #cfd6d1; color: #6b746f; cursor: not-allowed; border-color: transparent;
}
.btn-sm { min-height: 44px; padding: 9px 16px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------------- Bölümler ---------------- */
.section { padding: clamp(44px, 7vw, 72px) 0; }
.section-alt { background: var(--cream); }

/* Ana sayfadaki tanıtım bloğu (hero'nun hemen altı).
   Biçim mevcut turkdeli.com'dan alındı: her şey ortalı, krem zemin, başlık
   37,5px ve 900 ağırlıkta, paragraf da BAŞLIKLA AYNI marka yeşilinde
   (sitenin geri kalanında gövde metni gri, burada değil).
   Zemin için canlı sitedeki #fffcf5 yerine --cream (#faf7f1) kullanıldı:
   gözle ayırt edilemeyecek kadar yakın ve paletle tutarlı kalıyor.
   .section'dan SONRA tanımlı, dolayısıyla padding'i o eziyor. */
.about-intro {
  background: var(--cream);
  padding: 48px 0;
  text-align: center;
}
.about-intro h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.34rem);
  font-weight: 900;
  color: var(--green-700);
  line-height: 1.2;
  margin: 0 0 18px;
}
.about-intro p {
  max-width: 850px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.875;
  color: var(--green-700);
}
.about-intro .btn { margin-top: 22px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-head h2 { color: var(--green-700); }
.section-head p { color: var(--ink-soft); margin: 0; }
.section-link { font-weight: 600; white-space: nowrap; }

/* ---------------- Avantaj şeridi ---------------- */
.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.perk {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.perk svg { width: 28px; height: 28px; color: var(--green-500); flex-shrink: 0; }
.perk h3 { font-size: .98rem; margin-bottom: 2px; }
.perk p { font-size: .85rem; color: var(--ink-soft); margin: 0; }

/* ---------------- Kategori kartları ---------------- */
/* Satır başına 4 kart, iki satır. auto-fill kullanılmıyor: kart sayısı 8
   olduğu için sabit 4'lü düzen 4+4 veriyor, auto-fill ise ekran genişliğine
   göre 5+3 gibi dengesiz satırlar üretebiliyordu. */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 4 / 3;
  background: var(--green-900);
  display: block;
}
.category-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.category-card:hover img { transform: scale(1.05); }
.category-card .category-name {
  position: absolute; inset: auto 0 0 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(2, 40, 26, .85));
  color: #fff; font-weight: 600; font-size: .95rem;
}

/* ---------------- Ürün kartları ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---------------- Ürün karuseli (Çok Satanlar) ----------------
   Ekranda 4 ürün durur, oklarla sıradaki dörtlüye geçilir.

   Kart genişliği ŞERİDİN değil GÖRÜNÜR ALANIN yüzdesi olmalı; şerit
   içeriğinden geniş olduğu için sıradan bir yüzde yanlış kutuya çözülürdü.
   `cqw` bunun için: 25cqw = kaydırıcının dörtte biri.

   Kaydırma tarayıcının kendi scroll'u; oklar yalnızca scrollBy çağırıyor.
   Böylece dokunmatikte parmakla kaydırma ve klavyeyle gezinme bedavaya
   geliyor, JS çalışmasa bile bütün ürünlere erişiliyor (oklar gizli kalır).

   Kartlar arası boşluk `gap` yerine slaytın padding'inde: `gap` kaydırma
   matematiğine karışıyor ve son sayfada hizalama kayıyordu. */
.carousel { position: relative; }
.carousel-track {
  container-type: inline-size;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 25cqw;
  /* Flex öğelerinin varsayılan min-width:auto değeri, içeriğin min-content
     genişliğini taban kabul ediyor. Ürün kartında adet kutusu ve "Sepete
     Ekle" butonu yan yana olduğu için bu taban 484px çıkıyordu ve kart
     flex-basis'i (290px) yok sayıp şişiyordu — ekranda 4 yerine 2,4 ürün
     görünüyordu. min-width:0 tabanı kaldırıyor. */
  min-width: 0;
  box-sizing: border-box;
  padding-right: 20px;
  scroll-snap-align: start;
  display: flex;
}
.carousel-slide > .product-card { flex: 1 1 100%; min-width: 0; }

.carousel-arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--green-700);
  font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.carousel-arrow:hover { background: var(--green-050); }
.carousel-arrow.prev { left: -18px; }
.carousel-arrow.next { right: -18px; }
/* Tarayıcının [hidden] kuralını display:grid eziyor, geri alınıyor */
.carousel-arrow[hidden] { display: none; }

@container (max-width: 900px) { .carousel-slide { flex-basis: 33.3333cqw; } }
@container (max-width: 640px) { .carousel-slide { flex-basis: 50cqw; } }
@container (max-width: 380px) { .carousel-slide { flex-basis: 100cqw; } }

@media (max-width: 1240px) {
  .carousel-arrow.prev { left: 4px; }
  .carousel-arrow.next { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-media {
  position: relative; display: block;
  aspect-ratio: 1 / 1; /* CLS önleme: görsel alanı sabit */
  background: var(--cream);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem; font-weight: 600;
  background: var(--ink); color: #fff;
}
.badge-out { background: #706a5f; }
.badge-set { background: var(--accent); }
.product-body {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 14px 12px; flex: 1;
  text-align: center;
}
.product-name {
  font-size: .95rem; font-weight: 600; line-height: 1.35;
  color: var(--ink); text-decoration: none;
  display: block; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; /* tek satır */
}
.product-name:hover { color: var(--green-700); }
.product-price { font-size: 1.05rem; font-weight: 700; color: var(--green-700); margin-top: auto; }
.old-price {
  color: var(--ink-soft); font-weight: 400; font-size: .82em;
  text-decoration: line-through; margin-right: 4px;
}
.disc-badge {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: .64em; font-weight: 700; letter-spacing: .02em;
  border-radius: 999px; padding: 2px 8px;
  vertical-align: middle;
}
.product-unit { font-size: .78rem; color: var(--ink-soft); font-weight: 400; }
/* Satır sığmazsa buton alt satıra iner. Tasarım başta yalnızca Türkçe
   "Sepete Ekle" uzunluğuna göre kurulmuştu; Almanca "In den Warenkorb" ve
   İngilizce "Add to Cart" daha uzun olduğu için buton kırpılıyordu. */
.card-actions {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 14px;
  align-items: stretch; justify-content: center;
}
.card-actions .btn {
  flex: 1 1 auto; min-width: 140px;
  white-space: nowrap;
  padding-left: 10px; padding-right: 10px;
}
.qty-sm { flex-shrink: 0; }
.qty-sm button { width: 30px; height: 44px; font-size: 1.05rem; }
.qty-sm input { width: 28px; font-size: .9rem; }
@media (max-width: 520px) {
  .card-actions { gap: 6px; padding: 0 10px 12px; }
  .card-actions .btn { font-size: .8rem; min-height: 40px; padding: 8px; }
  .qty-sm button { width: 25px; height: 40px; }
  .qty-sm input { width: 22px; font-size: .82rem; }
}

/* ---------------- Yorumlar ---------------- */
/* Kayan yorum şeridi: ekranda 4 yorum durur, kalanlara doğru yavaşça kayar.
 *
 * Kart genişliği ŞERİDİN değil GÖRÜNÜR ALANIN yüzdesi olmalı. Şerit
 * içeriğinden geniş olduğu için sıradan bir yüzde yanlış kutuya çözülürdü;
 * `cqw` tam bunun için: 25cqw = .testimonial-marquee genişliğinin dörtte biri.
 *
 * İki durum var:
 *   - JS yoksa ya da hareket azaltma açıksa: yatay kaydırılabilir liste.
 *     Kullanıcı elle gezer, hiçbir yorum erişilemez kalmaz.
 *   - JS varsa: main.js yorumları bir kez kopyalayıp .is-kayan ekler. Şerit
 *     12 eşit karta çıkar, -50% ötelemesi tam 6 kart eder ve dikiş görünmez.
 *
 * Kartlar arası boşluk bilerek `gap` ile verilmiyor: `gap` 12 kart için 11
 * boşluk koyar, iki yarı eşitsiz kalır ve döngü her turda zıplardı. Boşluk
 * kaydırıcının padding'inde. */
.testimonial-marquee {
  container-type: inline-size;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.testimonial-marquee:focus-visible { outline: 2px solid var(--green-700); outline-offset: 3px; }
/* Şeridin genişliği KESİN olmalı. `width: max-content` ile kap belirsiz
   genişlikte kalıyor ve kartın `flex-basis: 100%`'i çözülemeyip içerik
   genişliğine düşüyordu (kart 290px'lik slaytta 194px kalıyordu).
   Genişlik slayt sayısından hesaplanıyor: --slayt-sayi'yi main.js kopyalama
   sonrası yazıyor, böylece yorum sayısı değişince CSS'e dokunmak gerekmiyor. */
/* Ekranda 3 kart: yorumlar uzun olduğu için 4 kartta genişlik 274px'e iner ve
   kart 350px boyunda, yani DİKEY bir dikdörtgen olur. 3 kartta genişlik
   ~371px'e çıkıp yükseklik düşüyor ve kart yatay duruyor — mevcut
   turkdeli.com da bu yüzden satır başına 3 kart kullanıyor. */
.testimonial-track {
  --gorunen: 3;
  display: flex;
  width: calc(var(--slayt-sayi, 6) * 100cqw / var(--gorunen));
}
.testimonial-slide {
  flex: 0 0 calc(100cqw / var(--gorunen));
  min-width: 0; /* bkz. .carousel-slide: min-width:auto flex-basis'i eziyor */
  box-sizing: border-box;
  padding-right: 16px;
  scroll-snap-align: start;
  display: flex;
}
/* Taban genişlik 0 yerine 100%: şerit `width: max-content` olduğu için
   tarayıcı iç öğeyi içerik genişliğinde bırakıp büyütmüyordu, kart 290px'lik
   slaytın içinde 194px kalıyordu. 100% slaytın içerik kutusuna çözülüyor. */
.testimonial-slide > .testimonial { flex: 1 1 100%; min-width: 0; }

.testimonial-marquee.is-kayan { overflow: hidden; scroll-snap-type: none; }
.testimonial-marquee.is-kayan .testimonial-track {
  animation: yorum-kay 80s linear infinite;
  will-change: transform;
}
/* Okumak isteyen dursun: üstüne gelince ve klavyeyle odaklanınca durur. */
.testimonial-marquee.is-kayan:hover .testimonial-track,
.testimonial-marquee.is-kayan:focus-within .testimonial-track { animation-play-state: paused; }

@keyframes yorum-kay { to { transform: translateX(-50%); } }

/* Kırılımlar yalnızca --gorunen'i değiştiriyor; hem slayt genişliği hem şerit
   genişliği ondan türediği için ikisi birlikte doğru kalıyor. */
@container (max-width: 900px) { .testimonial-track { --gorunen: 2; } }
@container (max-width: 560px) { .testimonial-track { --gorunen: 1; } }

@media (prefers-reduced-motion: reduce) {
  .testimonial-marquee.is-kayan { overflow-x: auto; scroll-snap-type: x mandatory; }
  .testimonial-marquee.is-kayan .testimonial-track { animation: none; }
}

/* Kart biçimi mevcut turkdeli.com'dan alındı: yeşil ince çerçeve, altında
   ince gölge, altın yıldızlar, alıntı marka yeşilinde, künyede isim kalın.
   Ölçüler oradaki kartla aynı (1px #035437, 12px yarıçap, 16/20/22 padding);
   yalnızca yazı boyutları bir tık küçük, çünkü orada kart 440px, burada
   ekranda 4 kart olduğu için ~290px. */
.testimonial {
  /* <figure>'ın tarayıcı varsayılanı `margin: 1em 40px`. Sağ ve soldaki
     40'ar piksel kartı slaytın içinde 80px daraltıyor, üst/alttaki 16'şar
     piksel de şeridi gereksiz uzatıyordu. */
  margin: 0;
  background: var(--white);
  border: 1px solid var(--green-700);
  border-radius: var(--radius);
  padding: 14px 18px 16px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px;
}
.stars { color: #fbbc04; letter-spacing: 2px; font-size: .95rem; }
.testimonial blockquote { margin: 0; font-size: .9rem; color: var(--green-700); line-height: 1.5; }
.testimonial figcaption { font-size: .92rem; color: var(--ink-soft); font-weight: 400; margin-top: auto; }
.testimonial figcaption strong { color: var(--green-700); font-weight: 600; }

/* ---------------- Sayfa başlığı / breadcrumb ---------------- */
.page-head { padding: 28px 0 8px; }
.breadcrumb { font-size: .82rem; color: var(--ink-soft); margin-bottom: 10px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-700); }
.page-head .lead { color: var(--ink-soft); }

.category-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--cream);
}
.category-banner img { width: 100%; height: auto; }

/* ---------------- Ürün detay ---------------- */
.product-layout {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  padding: 24px 0 56px;
}
@media (max-width: 819px) { .product-layout { grid-template-columns: 1fr; gap: 24px; } }

.gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button {
  width: 72px; height: 72px; padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; background: var(--cream);
}
.gallery-thumbs button[aria-current="true"] { border-color: var(--green-500); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { margin-bottom: 8px; }
.stock-note { display: inline-block; font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.stock-in { background: var(--green-050); color: var(--green-700); }
.stock-out { background: #f3efe7; color: #706a5f; }
.price-big { font-size: 1.8rem; font-weight: 700; color: var(--green-700); margin: 6px 0 18px; }
.price-big .product-unit { font-size: .9rem; }
.product-desc { color: var(--ink); }
.product-desc ul { padding-left: 20px; margin: 0 0 1em; }
.product-desc li { margin-bottom: 6px; }

.qty-row { display: flex; gap: 12px; align-items: stretch; margin: 20px 0 12px; flex-wrap: wrap; }
.qty {
  display: inline-flex; align-items: center;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
}
.qty button {
  width: 44px; height: 44px; border: none; background: transparent;
  font-size: 1.2rem; cursor: pointer; color: var(--green-700); font-weight: 700;
}
.qty input {
  width: 48px; text-align: center; border: none; font: inherit; font-weight: 600;
  -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.trust-list { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.trust-list li { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.trust-list svg { width: 18px; height: 18px; color: var(--green-500); flex-shrink: 0; }

/* ---------------- Sepet ---------------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-soft); padding: 10px 8px; border-bottom: 2px solid var(--line);
}
.cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item-name { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 500; }
.cart-item-name img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-remove { background: none; border: none; color: var(--accent); cursor: pointer; font: inherit; font-size: .84rem; padding: 8px; }
.cart-summary {
  background: var(--cream); border-radius: var(--radius);
  padding: 24px; margin-top: 24px;
}
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cart-summary .total { font-size: 1.2rem; font-weight: 700; color: var(--green-700); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.shipping-hint { font-size: .85rem; color: var(--ink-soft); margin: 10px 0 16px; }
.shipping-hint strong { color: var(--green-700); }
.cart-empty { text-align: center; padding: 56px 20px; }
.cart-empty svg { width: 56px; height: 56px; color: var(--line); margin: 0 auto 12px; }

@media (max-width: 640px) {
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .cart-table td { border: none; padding: 6px 0; }
}

/* ---------------- SSS ---------------- */
.faq-list { max-width: 780px; }
.faq-list details {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; background: var(--white);
}
.faq-list summary {
  padding: 18px 20px; font-weight: 600; cursor: pointer;
  list-style: none; position: relative; padding-right: 48px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem; color: var(--green-500); font-weight: 400;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list .faq-body { padding: 0 20px 18px; color: var(--ink-soft); }

/* ---------------- Formlar ---------------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; max-width: 680px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green-500); outline: none; }
.check-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: 20px; height: 20px; margin-top: 2px;
  accent-color: var(--green-700); cursor: pointer; flex-shrink: 0;
}
.field .hint { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------------- İçerik sayfaları ---------------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--green-050); }
.prose blockquote { margin: 14px 0; padding: 14px 18px; border-left: 4px solid var(--green-500); background: var(--green-050); border-radius: 0 8px 8px 0; }
.paypal-box { max-width: 420px; margin-top: 8px; }
[data-paypal-zone] { margin-top: 16px; }

.value-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.value-card {
  background: var(--green-050); border-radius: var(--radius); padding: 22px;
}
.value-card h3 { color: var(--green-700); }
.value-card p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------------- Bülten ---------------- */
/* Bülten bandı — biçim mevcut turkdeli.com'dan alındı: tam genişlikte
   fotoğraf, üzerinde koyu örtü, ortalanmış beyaz metin, köşesiz kutu ve
   yanına bitişik yeşil buton. */
.newsletter-band {
  position: relative;
  isolation: isolate;
  padding: 56px 0;
  overflow: hidden;
}
.newsletter-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* Koyu örtü. Metnin okunabilirliği fotoğrafın parlaklığına bırakılmıyor:
   görsel panelden değiştirilirse kontrast kendiliğinden korunsun. */
.newsletter-band::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(2, 58, 38, .66);
  z-index: -1;
}

.newsletter { text-align: center; color: #f5f5f5; }
.newsletter h2 {
  color: #f5f5f5;
  font-size: clamp(1.5rem, 3.2vw, 2.19rem);
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 10px;
}
.newsletter p { margin: 0 0 22px; font-size: 1.125rem; font-weight: 600; color: #f5f5f5; }
.newsletter-row { display: flex; justify-content: center; flex-wrap: wrap; }
/* :not([type=checkbox]) ŞART: bu kuraldaki min-width/min-height onay
   kutusuna da uygulanıyor ve min-* width/height'ı ezdiği için kutu
   20x20 yerine 240x48 çıkıyordu. */
.newsletter input:not([type="checkbox"]) {
  min-height: 47px; width: 280px; max-width: 100%;
  padding: 0 20px;
  border: none; border-radius: 0;
  font: inherit; font-size: 1rem;
  background: #f5f5f5; color: #495057;
}
.newsletter .btn {
  background: var(--green-700); color: #fff;
  border-radius: 0; min-height: 47px; padding: 0 22px;
  font-size: .875rem; font-weight: 700;
}
.newsletter .btn:hover { background: var(--green-900); }
/* Küçük punto olduğu için opaklık yüksek tutuluyor: fotoğraf üzerinde
   düşük opaklıkta okunabilirlik sınırda kalıyordu. */
.newsletter .note { display: block; font-size: .78rem; opacity: .88; margin-top: 10px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--green-900); color: #cfe0d6;
  margin-top: 56px;
  font-size: .9rem;
}
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 48px 0 32px;
}
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img {
  width: 84px; margin-bottom: 12px;
  filter: brightness(0) invert(1); /* dişi (beyaz) logo — koyu zemin için */
}
.footer-brand p { font-size: .85rem; max-width: 34ch; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cfe0d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.payment-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.payment-badges span {
  background: rgba(255,255,255,.12); color: #fff;
  font-size: .68rem; font-weight: 600; letter-spacing: .03em;
  padding: 4px 8px; border-radius: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 18px 0;
  font-size: .8rem;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------------- Mini sepet (yan panel) ---------------- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .4);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 190;
}
.cart-overlay.show { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; inset: 0 0 0 auto;
  width: min(420px, 94vw);
  background: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .28s ease;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-md);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.cart-drawer-head h2 { margin: 0; font-size: 1.15rem; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.mini-item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.mini-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.mini-item-info { flex: 1; min-width: 0; }
.mini-item-info a {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--ink); text-decoration: none; margin-bottom: 4px;
}
.mini-item-info a:hover { color: var(--green-700); }
.mini-item-info .mini-price { font-size: .85rem; color: var(--green-700); font-weight: 600; }
.mini-item .qty-sm button { height: 34px; width: 28px; }
.mini-item .qty-sm input { width: 28px; font-size: .85rem; }
.mini-item .cart-remove { padding: 6px; }
.cart-drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px; }
.cart-drawer-foot .row {
  display: flex; justify-content: space-between;
  font-weight: 700; color: var(--green-700); font-size: 1.1rem; margin-bottom: 10px;
}
.cart-drawer-foot .btn { width: 100%; margin-bottom: 8px; }
.cart-drawer-foot .shipping-hint { margin: 0 0 10px; }
.mini-empty { text-align: center; color: var(--ink-soft); padding: 32px 10px; }

/* ---------------- Ödeme sayfası ---------------- */
.checkout-layout {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: start;
  padding: 8px 0 56px;
}
@media (max-width: 819px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 24px; }
  .checkout-layout > aside { order: -1; }
}
.checkout-summary { background: var(--cream); border-radius: var(--radius); padding: 24px; }
.checkout-summary h2 { font-size: 1.15rem; }
.checkout-summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.checkout-summary .row.total { border-bottom: none; font-weight: 700; color: var(--green-700); font-size: 1.05rem; padding-top: 14px; }
.checkout-summary .row.discount span:last-child { color: var(--accent-dark); font-weight: 600; }
.coupon-row { display: flex; gap: 8px; margin-top: 16px; }
.coupon-row input {
  flex: 1; min-width: 0; min-height: 44px;
  padding: 10px 12px; font: inherit;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.coupon-row input:focus { border-color: var(--green-500); outline: none; }
.coupon-msg { font-size: .82rem; margin: 8px 0 0; }
.coupon-msg.ok { color: var(--green-700); }
.coupon-msg.err { color: var(--accent-dark); }

/* ---------------- Adımlı ödeme (checkout) ---------------- */
.steps {
  display: flex; gap: 8px; flex-wrap: wrap;
  list-style: none; margin: 20px 0 0; padding: 0;
}
.steps li {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 600; color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cream);
}
.steps li .step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--line); color: var(--ink-soft);
  font-size: .78rem;
}
.steps li[aria-current="step"] { background: var(--green-050); color: var(--green-700); }
.steps li[aria-current="step"] .step-no { background: var(--green-700); color: #fff; }
.steps li.done .step-no { background: var(--green-500); color: #fff; }
.step-title { margin-bottom: 6px; }
.step-sub { color: var(--ink-soft); font-size: .92rem; }
.step-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.saved-addr-list { display: grid; gap: 10px; margin-bottom: 20px; }
.saved-addr {
  display: flex; align-items: flex-start; gap: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.saved-addr:has(input:checked) { border-color: var(--green-500); background: var(--green-050); }
.saved-addr input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green-700); flex-shrink: 0; }
.saved-addr strong { display: block; font-size: .92rem; }
.saved-addr span { font-size: .85rem; color: var(--ink-soft); }

.shipping-options { display: grid; gap: 10px; margin-top: 12px; }
.shipping-option {
  display: flex; align-items: flex-start; gap: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
}
.shipping-option:has(input:checked) { border-color: var(--green-500); background: var(--green-050); }
.shipping-option input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green-700); flex-shrink: 0; }
.shipping-option strong { display: block; font-size: .95rem; }
.shipping-option .ship-desc { font-size: .85rem; color: var(--ink-soft); }
.shipping-option .ship-fee { margin-left: auto; font-weight: 700; color: var(--green-700); white-space: nowrap; }
.ship-badge {
  display: inline-block; margin-left: 8px;
  font-size: .7rem; font-weight: 700;
  background: var(--accent); color: #fff;
  border-radius: 999px; padding: 2px 8px;
  vertical-align: middle;
}

.payment-options { display: grid; gap: 10px; }
.payment-option {
  display: flex; align-items: flex-start; gap: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
}
.payment-option:has(input:checked) { border-color: var(--green-500); background: var(--green-050); }
.payment-option input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green-700); flex-shrink: 0; }
.payment-option-body { display: flex; flex-direction: column; gap: 6px; }
.payment-option-body .hint { margin: 0; font-size: .8rem; color: var(--ink-soft); }
.payment-logos-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.payment-logos-row img {
  height: 20px; width: auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 3px 6px; box-sizing: content-box;
}

/* Footer ödeme logoları */
.payment-logos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.payment-logos img {
  height: 18px; width: auto;
  background: #fff; border-radius: 4px;
  padding: 4px 7px; box-sizing: content-box;
}

/* Google ile giriş */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0; color: var(--ink-soft); font-size: .8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.btn-google {
  background: #fff; color: var(--ink);
  border-color: var(--line);
}
.btn-google:hover { background: #f5f5f5; color: var(--ink); border-color: #cfcabe; }
.btn-google img { width: 18px; height: 18px; }

/* Onay satırı: canlı sitedeki gibi italik ve ortalı. */
.newsletter .newsletter-consent {
  display: flex; justify-content: center; align-items: center;
  gap: 8px;
  color: #fff; font-size: .875rem; font-style: italic;
  margin-top: 16px;
}
.newsletter .newsletter-consent input[type="checkbox"] {
  width: 18px; height: 18px; margin: 0;
  accent-color: var(--accent);
}

/* ---------------- Hesap sayfası ---------------- */
.auth-single { max-width: 480px; margin: 0 auto; }
.auth-switch {
  text-align: center;
  font-size: .9rem;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.auth-switch a { font-weight: 600; }
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
}
.auth-card-alt { background: var(--cream); }
.auth-card h2 { margin-bottom: 4px; }
.auth-sub { font-size: .88rem; color: var(--ink-soft); margin-bottom: 20px; }
.auth-card .field { margin-bottom: 14px; }
.demo-note {
  max-width: 480px; margin-left: auto; margin-right: auto;
  font-size: .78rem; color: var(--ink-soft);
  background: var(--green-050);
  border-radius: var(--radius-sm);
  padding: 10px 14px; margin-top: 20px;
}
.account-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}
.account-hello { font-size: 1.1rem; margin: 0; }
.account-section { margin-bottom: 40px; max-width: 920px; }
.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  background: var(--white);
}
.order-card-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .85rem; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px; margin-bottom: 10px;
}
.order-card-head .order-total { font-weight: 700; color: var(--green-700); font-size: 1rem; }
.order-card ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.order-card li { padding: 3px 0; }
/* Başlıktaki dil seçici: bayraklı açılır menü (tools/lib/lang-switch.mjs).
   Aynı sayfanın tr / de / en karşılığına götürür. */
.lang-switch { position: relative; margin-right: 4px; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--green-700);
  font-size: .78rem; font-weight: 600; letter-spacing: .02em; line-height: 1;
  cursor: pointer; list-style: none; user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--green-050); }
.lang-menu img { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex-shrink: 0; }
.lang-caret { width: 14px; height: 14px; transition: transform .15s; }
.lang-menu[open] .lang-caret { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 150px; margin: 0; padding: 6px; list-style: none;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.lang-menu ul a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--ink); text-decoration: none;
}
.lang-menu ul a:hover { background: var(--green-050); color: var(--green-700); }
.lang-menu ul a[aria-current="true"] { font-weight: 600; color: var(--green-700); }
@media (max-width: 720px) {
  .lang-switch { margin-right: 0; }
  .lang-menu summary { padding: 0 6px; gap: 4px; }
  .lang-code { display: none; }
}

.order-status {
  display: inline-block; font-size: .75rem; font-weight: 600;
  background: var(--green-050); color: var(--green-700);
  border-radius: 999px; padding: 3px 10px;
}
/* Sipariş ve kargo durumu rozetleri. Varsayılan (yeşil) tamamlanmış adımlar
   için; bekleyen adımlar nötr, iptal vurgu rengiyle. */
.order-status-wait   { background: #f3f1ea; color: var(--ink-soft); }
.order-status-cancel { background: #fbe9e6; color: var(--accent-dark); }
.order-track {
  margin: 8px 0 0; font-size: .85rem; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.order-track strong { color: var(--ink); font-weight: 600; }
.order-card ul + .order-track { margin-top: 12px; }

/* Misafir sipariş takibi */
.track-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 20px; }
.track-form .field { flex: 1 1 220px; margin: 0; }
.track-result:empty { display: none; }

.addr-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 16px; }
.addr-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--white);
  position: relative;
}
.addr-card h3 { font-size: .95rem; margin-bottom: 6px; }
.addr-card p { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.addr-card .cart-remove { position: absolute; top: 8px; right: 8px; }
.addr-add summary {
  cursor: pointer; font-weight: 600; color: var(--green-700);
  padding: 10px 0; list-style: none;
}
.addr-add summary::-webkit-details-marker { display: none; }
.account-empty { color: var(--ink-soft); font-size: .92rem; padding: 12px 0; }
.danger-zone {
  border: 1px solid #eecfc9;
  background: #fdf6f4;
  border-radius: var(--radius);
  padding: 20px 24px;
}
.danger-zone h2 { color: var(--accent-dark); font-size: 1.1rem; }
.btn-danger {
  background: transparent; color: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-danger:hover { background: var(--accent-dark); color: #fff; }

/* ---------------- Değerlendirme / yorumlar ---------------- */
.card-rating { font-size: .82rem; min-height: 1.2em; }
.card-rating .stars { font-size: .82rem; letter-spacing: 1px; }
.rating-count { color: var(--ink-soft); }
.reviews-box { max-width: 780px; margin-bottom: 32px; }
.review-summary {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.review-summary .avg { font-size: 2rem; font-weight: 700; color: var(--green-700); line-height: 1; }
.review-summary .stars { font-size: 1.1rem; }
.review-summary .count { font-size: .85rem; color: var(--ink-soft); }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review-item-head .name { font-weight: 600; font-size: .9rem; }
.review-item-head .date { font-size: .78rem; color: var(--ink-soft); }
.review-item p { margin: 0; font-size: .92rem; }
.review-form { max-width: 780px; background: var(--cream); border-radius: var(--radius); padding: 24px; }
.review-form h3 { margin-bottom: 12px; }
.review-form .field { margin: 14px 0; }
.star-input { display: flex; gap: 2px; }
.star-input button {
  background: none; border: none; cursor: pointer;
  font-size: 1.8rem; line-height: 1; padding: 4px;
  color: #cfc9bb;
  transition: color .1s ease, transform .1s ease;
}
.star-input button:hover { transform: scale(1.15); }
.star-input button.on { color: #e8a531; }

/* ---------------- WhatsApp butonu (sağ alt, sabit) ---------------- */
.wa-float {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  width: 58px; height: 58px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
.wa-float:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; }
@media (max-width: 720px) { .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; } .wa-float svg { width: 28px; height: 28px; } }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

/* ---------------- Çerez izni (main.js → TRACKING doluysa) ---------------- */
.consent {
  position: fixed; z-index: 250;
  left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-left: auto;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  padding: 18px 20px; display: grid; gap: 10px;
}
.consent h2 { font-size: 1.05rem; margin: 0; color: var(--green-700); }
.consent p { margin: 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.consent p a { color: var(--green-700); }
.consent [hidden] { display: none; }
.consent-opts { display: grid; gap: 6px; font-size: .88rem; }
.consent-opt { display: flex; gap: 8px; align-items: flex-start; }
.consent-opt input { margin-top: 3px; accent-color: var(--green-700); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-btn {
  flex: 1 1 140px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--green-700); background: var(--white); color: var(--green-700);
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.consent-btn-main { background: var(--green-700); color: #fff; }
.consent-btn:focus-visible, .link-btn:focus-visible { outline: 2px solid var(--green-500); outline-offset: 2px; }
.consent-x {
  position: absolute; top: 8px; right: 10px;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-soft); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.consent-x:hover { background: var(--green-050); color: var(--green-700); }
/* Sol alttaki çerez düğmesi (sağ alttaki WhatsApp düğmesinin eşi) */
.consent-fab {
  position: fixed; z-index: 120;
  left: calc(20px + env(safe-area-inset-left, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--white); color: var(--green-700);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.consent-fab svg { width: 26px; height: 26px; }
.consent-fab:hover { transform: scale(1.06); box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.consent-fab:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; }
body.consent-open .consent-fab { display: none; }
@media (max-width: 720px) { .consent-fab { width: 44px; height: 44px; left: 16px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .consent-fab { transition: none; } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }

/* ---------------- Bildirim (toast) ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--green-900); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 300;
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 404 ---------------- */
.error-page { text-align: center; padding: 80px 20px; }
.error-page .code { font-size: 5rem; font-weight: 700; color: var(--green-050); -webkit-text-stroke: 2px var(--green-500); line-height: 1; }

/* ---------------- Hareket azaltma ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
