/* ═══════════════════════════════════════════════════════════
   MTA ELEKTRİK — FRONTEND CSS v6.0
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;0,9..40,900;1,9..40,900&display=swap');

/* ── CSS DEĞİŞKENLERİ (JS ile güncellenir) ─────────────── */
:root {
  --ticker-h: 28px;
  --bg-app:      #f8fafc;
  --bg-card:     #ffffff;
  --bg-input:    #f1f5f9;
  --bg-header:   rgba(255,255,255,0.97);
  --bg-sub:      #f8fafc;
  --bg-inv:      #0f172a;
  --text-main:   #0f172a;
  --text-muted:  #64748b;
  --text-inv:    #ffffff;
  --border:      #e2e8f0;
  --color-primary:        #6366f1;
  --color-primary-light:  rgba(99,102,241,0.1);
  --color-primary-border: #6366f1;
  --color-primary-rgb:    99,102,241;
  --header-h:    64px;
  --radius-card: 20px;
  --radius-btn:  12px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-float:0 8px 32px rgba(0,0,0,0.12);
  --transition:  0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET & TEMEL ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  background: var(--bg-app);
  color: var(--text-main);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ── ANİMASYONLAR ───────────────────────────────────────── */
@keyframes slideDown  { from { opacity:0; transform:translateY(-10px) } to { opacity:1; transform:translateY(0) } }
@keyframes slideUp    { from { opacity:0; transform:translateY(10px)  } to { opacity:1; transform:translateY(0) } }
@keyframes fadeIn     { from { opacity:0 } to { opacity:1 } }
@keyframes pulse      { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes spin       { to { transform:rotate(360deg) } }
@keyframes shimmer    { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes bounceIn   { 0%{transform:scale(0.5);opacity:0} 70%{transform:scale(1.05)} 100%{transform:scale(1);opacity:1} }

.anim-slide-down  { animation: slideDown  0.25s ease both; }
.anim-slide-up    { animation: slideUp    0.35s ease both; }
.anim-fade-in     { animation: fadeIn     0.3s  ease both; }
.anim-bounce-in   { animation: bounceIn   0.4s  cubic-bezier(0.34,1.56,0.64,1) both; }

/* ── YÜKLEME İSKELETİ ───────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-card) 50%, var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ── HEADER ─────────────────────────────────────────────── */
#mta-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  transition: top 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
  transition: background var(--transition);
}
#mta-header .header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
}
.header-logo {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  flex-shrink: 0; text-decoration: none;
}
.header-logo-icon {
  width: 42px; height: 42px;
  background: var(--color-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb),0.4);
  transition: transform var(--transition);
}
.header-logo:hover .header-logo-icon { transform: scale(1.05); }
.header-logo-text {
  font-weight: 900; font-size: 20px;
  color: var(--text-main);
  font-style: italic; letter-spacing: -0.5px;
}
.header-logo-text span { color: var(--color-primary); }

.header-cats {
  display: flex; gap: 4px; flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.header-cats::-webkit-scrollbar { display: none; }
.header-cat-btn {
  flex-shrink: 0;
  font-size: 9px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 6px 12px; border-radius: 8px;
  border: none; background: transparent;
  color: var(--text-muted); cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.header-cat-btn.active,
.header-cat-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Arama */
.header-search-wrap {
  position: relative;
  display: flex; align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px; gap: 8px;
  flex: 1;
  min-width: 80px;
  max-width: 260px;
  transition: border-color var(--transition);
}
.header-search-wrap:focus-within {
  border-color: var(--color-primary);
}
.header-search-input {
  flex: 1; font-size: 11px; font-weight: 500;
  background: transparent; border: none;
  color: var(--text-main); outline: none;
}
.header-search-input::placeholder { color: var(--text-muted); }
.header-search-clear {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 0;
  display: flex; align-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.header-search-wrap.has-value .header-search-clear {
  opacity: 1; pointer-events: auto;
}

/* Arama dropdown */
#search-dropdown {
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-float);
  z-index: 600;
  overflow: hidden;
  display: none;
  animation: slideDown 0.2s ease;
}
#search-dropdown.open { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  text-decoration: none; color: inherit;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-input); }
.search-result-item img {
  width: 36px; height: 36px;
  border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name {
  font-size: 10px; font-weight: 700;
  color: var(--text-main);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result-brand {
  font-size: 9px; font-weight: 900;
  color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 1px;
}
.search-result-price {
  font-size: 11px; font-weight: 900;
  color: var(--text-main); flex-shrink: 0;
}
.search-see-all {
  padding: 8px 12px; text-align: center;
  font-size: 10px; font-weight: 700;
  color: var(--color-primary); cursor: pointer;
  background: var(--bg-sub);
  transition: background var(--transition);
}
.search-see-all:hover { background: var(--color-primary-light); }

/* Header sağ butonlar */
.header-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.btn-header {
  display: flex; align-items: center; gap: 6px;
  height: 36px; border: none; cursor: pointer;
  font-family: inherit; font-weight: 900; font-size: 9px;
  text-transform: uppercase; letter-spacing: 1px;
  border-radius: var(--radius-btn);
  transition: all var(--transition);
}
.btn-header-primary {
  background: var(--color-primary); color: #fff;
  padding: 0 12px;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb),0.3);
}
.btn-header-ghost {
  background: var(--bg-card); color: var(--text-main);
  border: 1px solid var(--border) !important;
  padding: 0 12px;
}
.btn-header-icon {
  width: 36px; height: 36px;
  background: var(--bg-card); color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 11px; cursor: pointer;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: all var(--transition);
}
.btn-header-icon:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-header-user {
  background: var(--bg-inv); color: var(--text-inv);
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  width: 16px; height: 16px;
  background: var(--color-primary); color: #fff;
  font-size: 8px; font-weight: 900;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: bounceIn 0.3s ease;
}

/* ── TICKER ─────────────────────────────────────────────── */
#mta-ticker {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  z-index: 499;
  background: var(--color-primary);
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  height: 30px;
  line-height: 30px;
}
.ticker-track {
  display: inline-flex; gap: 60px;
  animation: tickerScroll 30s linear infinite;
}
@keyframes tickerScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.95);
  text-transform: uppercase; letter-spacing: 1.5px;
}

/* ── ANA İÇERİK ─────────────────────────────────────────── */
/* Desktop: header(64) + ticker(30) = 94px */
#mta-main {
  padding-top: 0;
  min-height: 100vh;
  padding-bottom: 24px;
  margin-top: 0;
}

/* Mobil: header(56) + ticker(30) = 86px */
@media (max-width: 768px) {
  #mta-ticker { top: 56px; }
  #mta-main   { padding-top: 0; }
}

/* Padding sıfır, banner-wrap kendi margin ile içerik başlatır */

/* Admin Bar - Desktop: sadece header ve ticker konumlandır */
.admin-bar #mta-header { top: 32px; }
.admin-bar #mta-ticker { top: 96px !important; } /* 32+64 */

/* Admin Bar - Mobil: sadece header ve ticker konumlandır */
@media screen and (max-width: 782px) {
  .admin-bar #mta-header { top: 46px; }
  .admin-bar #mta-ticker { top: 102px !important; } /* 46+56 */
}
/* NOT: .admin-bar için #mta-main padding-top AYARLANMIYOR.
   WordPress html { margin-top: 32px/46px } otomatik ofset uygular. */

/* WooCommerce wrapper — kendi margin/padding eklemesin */
.mta-woo-wrap {
  margin: 0 !important;
  padding: 0 !important;
}

/* WooCommerce'in eklediği varsayılan boşlukları sıfırla */
.woocommerce-page #mta-main,
.woocommerce #mta-main {
  padding-top: inherit;
}
.woocommerce-notices-wrapper { margin: 0; padding: 0; min-height: 0; }

/* ── BANNER SLIDER ──────────────────────────────────────── */
.banner-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 8px 12px 12px;
}

/* İlk içerik alanı — header+ticker kadar padding-top */
.banner-wrap:first-child,
.cats-section:first-child,
.mta-woo-wrap > *:first-child,
#mta-main > .banner-wrap:first-child,
#mta-main > .mta-archive-banner:first-child {
  padding-top: 64px; /* desktop sadece header */
}
@media (max-width: 768px) {
  .banner-wrap:first-child,
  .cats-section:first-child,
  .mta-woo-wrap > *:first-child,
  #mta-main > .banner-wrap:first-child,
  #mta-main > .mta-archive-banner:first-child {
    padding-top: 56px; /* mobile sadece header */
  }
}
.banner-slider {
  position: relative; border-radius: 20px;
  overflow: hidden; height: 220px;
  background: linear-gradient(135deg, #1e3a5f, #1e40af); /* fallback */
}
.banner-slide {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
  opacity: 0; transform: scale(1.04);
  transition: opacity 1s ease, transform 1s ease;
}
.banner-slide:nth-child(2) { background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%); }
.banner-slide:nth-child(3) { background: linear-gradient(135deg, #064e3b 0%, #065f46 100%); }
.banner-slide.active { opacity: 1; transform: scale(1); }
.banner-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.banner-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center; padding: 0 48px;
}
.banner-tag {
  display: inline-flex; align-items: center;
  background: var(--color-primary); color: #fff;
  font-size: 9px; font-weight: 900;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 8px;
  width: fit-content; margin-bottom: 16px;
}
.banner-title {
  font-size: 40px; font-weight: 900; font-style: italic;
  color: #fff; letter-spacing: -2px; line-height: 1;
  margin: 0 0 10px;
}
.banner-sub {
  color: rgba(255,255,255,0.8); font-size: 13px;
  margin: 0 0 20px; max-width: 400px;
}
.banner-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #0f172a;
  border: none; padding: 10px 20px; border-radius: 12px;
  font-weight: 900; font-size: 11px;
  text-transform: uppercase; letter-spacing: 2px;
  cursor: pointer; width: fit-content;
  text-decoration: none;
  transition: transform var(--transition);
}
.banner-cta:hover { transform: translateY(-2px); }
.banner-dots {
  position: absolute; bottom: 16px; right: 20px;
  display: flex; gap: 6px;
}
.banner-dot {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer;
  transition: all var(--transition);
}
.banner-dot.active {
  width: 24px; background: var(--color-primary);
}
.banner-dot:not(.active) { width: 6px; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition);
  z-index: 2;
}
.banner-arrow:hover { background: rgba(255,255,255,0.35); }
.banner-arrow.prev { left: 12px; }
.banner-arrow.next { right: 12px; }

/* ── GÜVEN ŞERİDİ ───────────────────────────────────────── */
.trust-bar {
  background: var(--color-primary);
  padding: 10px 16px; margin-bottom: 16px;
}
.trust-bar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 32px;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 10px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 2px;
}
.trust-item svg { opacity: 0.8; }

/* ── KATEGORİLER ────────────────────────────────────────── */
.cats-section {
  max-width: 1280px; margin: 0 auto;
  padding: 0 16px 16px;
}
.cats-section h2 {
  font-size: 16px; font-weight: 900;
  color: var(--text-main); margin: 0 0 10px;
  letter-spacing: -0.5px;
}
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px,1fr));
  gap: 10px;
}
.cat-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: 16px;
  border: 2px solid var(--border);
  background: var(--bg-card); cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.cat-btn:hover, .cat-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.cat-btn .cat-icon { font-size: 22px; }
.cat-btn .cat-label {
  font-size: 8px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 1px;
  text-align: center; line-height: 1.3;
  color: var(--text-muted);
}
.cat-btn.active .cat-label { color: var(--color-primary); }

/* ── TOOLBAR ────────────────────────────────────────────── */
.shop-toolbar {
  max-width: 1280px; margin: 0 auto;
  padding: 0 16px 16px;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.shop-toolbar-count { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar-select {
  font-size: 11px; font-weight: 700;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-main); padding: 8px 12px;
  border-radius: 10px; outline: none; cursor: pointer;
}
.toolbar-view-toggle {
  display: flex; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden;
}
.toolbar-view-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  color: var(--text-muted); cursor: pointer;
  transition: all var(--transition);
}
.toolbar-view-btn.active {
  background: var(--color-primary); color: #fff;
}

/* ── ÜRÜN GRİD ──────────────────────────────────────────── */
.products-section { max-width: 1280px; margin: 0 auto; padding: 0 16px 40px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 16px;
}
.products-list { display: flex; flex-direction: column; gap: 12px; }
/* ── LİSTE GÖRÜNÜMÜ ─────────────────────────────────────── */


/* ════════════════════════════════════════════════════════════
   ÜRÜN KARTI — v2 (Temiz, mobil öncelikli)
   Resim büyük · Sadece marka+isim+fiyat+sepet+favori+AI
   ════════════════════════════════════════════════════════════ */

.product-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible; /* btn-fav dışarı taşıyor, hidden olmamalı */
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  color: inherit;
  text-decoration: none;
}
.product-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(var(--color-primary-rgb),0.13);
}

/* ── GÖRSEL ALANI — %75 kart yüksekliği ─────────────────── */
.product-card-img-wrap {
  position: relative;
  overflow: visible;
  background: transparent;
  /* Sabit yükseklik — bilgi alanı için yer bırak */
  height: 200px;
  flex-shrink: 0;
}
/* Resmi kırpan iç katman */
.product-card-img-wrap a {
  display: block;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius-card) - 2px) calc(var(--radius-card) - 2px) 0 0;
  background: var(--bg-card);
  position: relative;
}
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  transition: transform 0.35s ease;
  display: block;
}
.product-card:hover .product-card-img { transform: scale(1.04); }
/* Hover'da a tag sınırını aşmasın */
.product-card-img-wrap a { overflow: hidden; }

/* ── ROZET — sol üst ─────────────────────────────────────── */
.product-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 9px; font-weight: 900;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; color: #fff;
  z-index: 2;
  pointer-events: none;
}

/* ── FAVORİ — sağ üst (eski tek başına konum, geçişlik) ──── */
.btn-fav {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  border: none !important;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.15s, background 0.15s;
}
.btn-fav:hover   { transform: scale(1.12); }
.btn-fav.active  { background: var(--color-primary) !important; }

/* ── KARŞILAŞTIR — favori altında ─────────────────────────── */
.btn-compare {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  border: none !important;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  color: #64748b;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
.btn-compare:hover   { transform: scale(1.12); }
.btn-compare.active  { background: var(--color-primary) !important; color: #fff; }

/* ── AKSİYON STACK (sağ üst, dikey: favori + karşılaştır) ──  */
.card-actions-stack {
  position: absolute;
  top: 8px; right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 4;
}

/* ── QUICK VIEW — hover'da görünür, alt ortada pill buton ── */
.btn-quick-view {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translate(-50%, 8px);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(6px);
  color: #fff; border: none !important;
  border-radius: 999px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer !important;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.product-card:hover .btn-quick-view {
  opacity: 1;
  transform: translate(-50%, 0);
}
.btn-quick-view:hover { background: var(--color-primary); }
@media (max-width: 768px) {
  /* Mobilde hover yok — quick view her zaman hafif görünür, daha küçük */
  .btn-quick-view { opacity: 0.92; transform: translate(-50%, 0); padding: 6px 10px; font-size: 10px; }
  .btn-quick-view span { display: none; }
}

/* ── AI BUTONU — sağ alt ─────────────────────────────────── */
.btn-ai {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--color-primary);
  border: none !important;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb),0.35);
  transition: transform 0.15s;
  z-index: 3;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
}
.product-card:hover .btn-ai {
  opacity: 1;
  transform: scale(1);
}

/* ── SON STOK badge ─────────────────────────────────────── */
.stock-badge {
  position: absolute;
  bottom: 8px; left: 8px;
  background: rgba(239,68,68,0.9);
  color: #fff; font-size: 9px; font-weight: 900;
  padding: 2px 7px; border-radius: 5px;
  z-index: 2;
  pointer-events: none;
}

/* ── STOK TÜKENDİ overlay ───────────────────────────────── */
.out-of-stock-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.42);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.out-of-stock-label {
  background: rgba(255,255,255,0.95); color: #0f172a;
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 2px; padding: 6px 14px; border-radius: 10px;
}

/* ── BİLGİ ALANI ────────────────────────────────────────── */
.product-card-body {
  display: flex;
  flex-direction: column;
  padding: 8px 10px 10px;
  gap: 3px;
  min-width: 0;
}
.product-brand {
  font-size: 9px; font-weight: 900;
  color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 1.5px;
  line-height: 1;
}
a.product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px; font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  text-decoration: none;
}

/* ── FOOTER: fiyat + sepet ───────────────────────────────── */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  gap: 8px;
}
.product-meta-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.badge-stock-in  { background: rgba(16,185,129,0.1); color: #059669; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.badge-stock-out { background: rgba(239,68,68,0.1);  color: #dc2626; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.badge-cargo     { background: rgba(99,102,241,0.08); color: var(--color-primary); font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 5px; white-space: nowrap; }

.product-price-wrap { min-width: 0; }
.product-price-old {
  font-size: 10px; color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1;
}
.product-price {
  font-size: 15px; font-weight: 900;
  color: var(--text-main); letter-spacing: -0.5px;
  line-height: 1.2;
  white-space: nowrap;
}

/* ── SEPETE EKLE ────────────────────────────────────────── */
.btn-add-cart {
  width: 38px; height: 38px; min-width: 38px;
  background: var(--color-primary);
  background-image: linear-gradient(135deg, var(--color-primary) 0%, rgba(var(--color-primary-rgb), 0.85) 100%);
  color: #fff;
  border: none !important;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer !important;
  box-shadow: 0 6px 16px rgba(var(--color-primary-rgb),0.35);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  flex-shrink: 0;
}
.btn-add-cart:hover    { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(var(--color-primary-rgb),0.45); }
.btn-add-cart:active   { transform: scale(0.96); }
.btn-add-cart:disabled { opacity: 0.45; cursor: not-allowed !important; transform: none; box-shadow: none; }
.btn-add-cart.added    { background: #10b981 !important; background-image: none; }

/* ── YILDIZ RATING ──────────────────────────────────────── */
.product-rating {
  display: flex; align-items: center; gap: 4px;
  margin-top: 2px;
}
.rating-stars { display: inline-flex; gap: 1px; }
.rating-stars .star { display: block; }
.rating-count { font-size: 9px; font-weight: 700; color: var(--text-muted); }

/* ── LİSTE GÖRÜNÜMÜ ─────────────────────────────────────── */
.products-list { display: flex; flex-direction: column; gap: 10px; }

.products-list .product-card {
  flex-direction: row !important;
  min-height: 100px;
}
.products-list .product-card-img-wrap {
  width: 130px !important;
  min-width: 130px !important;
  height: 130px !important;
  border-radius: var(--radius-card) 0 0 var(--radius-card);
}
.products-list .product-card-img-wrap a {
  border-radius: calc(var(--radius-card) - 2px) 0 0 calc(var(--radius-card) - 2px) !important;
}
.products-list .product-card-body {
  padding: 10px 42px 10px 12px; /* sağda favori/AI için boşluk */
  gap: 4px;
  justify-content: center;
}
.products-list a.product-name {
  font-size: 12px;
  -webkit-line-clamp: 2;
  min-height: unset;
}
.products-list .product-price { font-size: 14px; }
.products-list .btn-fav {
  top: 8px; right: 8px;
  width: 28px; height: 28px;
}
.products-list .btn-ai {
  bottom: 8px; right: 8px;
  opacity: 1;
  transform: scale(1);
  width: 24px; height: 24px;
}
.products-list .product-card:hover { transform: translateX(2px) translateY(0); }

/* ── MOBİL ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 8px;
  }
  /* Mobil kart resim alanı */
  .product-card-img-wrap { height: 200px; }
  /* Mobilde AI butonu her zaman görünür */
  .product-card .btn-ai {
    opacity: 1;
    transform: scale(1);
  }
  .btn-add-cart { width: 32px; height: 32px; min-width: 32px; border-radius: 9px; }
  .btn-fav { width: 28px; height: 28px; border-radius: 8px; }
  .product-price { font-size: 13px; }
  a.product-name { font-size: 11px; }
  .product-brand { font-size: 8px; }
}


/* ── FREE ROAM CANVAS KARTLARI ───────────────────────────── */
.roam-canvas .product-card {
  cursor: grab !important;
  user-select: none;
  flex-direction: column !important;
  height: auto !important;
}
/* Roam'da tüm buton ve linkler tıklanabilir */
.roam-canvas .btn-fav,
.roam-canvas .btn-ai,
.roam-canvas .btn-add-cart,
.roam-canvas a.product-name,
.roam-canvas .product-card-img-wrap a {
  pointer-events: all !important;
  cursor: pointer !important;
}
/* Roam'da AI butonu her zaman görünür */
.roam-canvas .btn-ai {
  opacity: 1 !important;
  transform: scale(1) !important;
}
.roam-canvas .product-card-img-wrap {
  aspect-ratio: 1/1 !important;
  width: 100% !important;
}

/* ── GALERİ LIGHTBOX ────────────────────────────────────── */
#gallery-lightbox {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.95);
  display: none; align-items: center; justify-content: center;
}
#gallery-lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox-btn {
  position: absolute;
  width: 48px; height: 48px; background: rgba(255,255,255,0.1);
  border: none; border-radius: 12px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition);
}
.lightbox-btn:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 10px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-dots {
  position: absolute; bottom: 24px;
  display: flex; gap: 8px;
}
.lightbox-dot {
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: all var(--transition);
}
.lightbox-dot.active { width: 24px; background: var(--color-primary); }
.lightbox-dot:not(.active) { width: 8px; }

/* ── PROFİL / HESABIM ───────────────────────────────────── */
.profile-page { background: var(--bg-app); min-height: 100vh; padding-top: calc(var(--header-h) + 30px); }
.profile-inner { max-width: 800px; margin: 0 auto; padding: 32px 16px; }
.profile-header-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 24px;
  margin-bottom: 20px; display: flex; align-items: center; gap: 20px;
}
.profile-avatar {
  width: 64px; height: 64px; background: var(--color-primary);
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 22px;
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb),0.4);
}
.profile-name { font-weight: 900; color: var(--text-main); font-size: 18px; }
.profile-email { font-size: 12px; color: var(--text-muted); }
.profile-company { font-size: 11px; color: var(--color-primary); font-weight: 700; margin-top: 2px; }
.profile-tabs {
  display: flex; gap: 4px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 6px; margin-bottom: 20px;
}
.profile-tab {
  flex: 1; padding: 8px 4px; border-radius: 10px; border: none;
  font-weight: 900; font-size: 11px; cursor: pointer;
  background: transparent; color: var(--text-muted);
  transition: all var(--transition); font-family: inherit;
}
.profile-tab.active { background: var(--color-primary); color: #fff; }

/* ── ADMİN PANELİ ───────────────────────────────────────── */
.admin-page { background: var(--bg-app); min-height: 100vh; padding-top: calc(var(--header-h) + 30px); }
.admin-inner { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.admin-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 6px; margin-bottom: 20px;
}
.admin-tab {
  padding: 8px 16px; border-radius: 10px; border: none;
  font-weight: 900; font-size: 10px; cursor: pointer;
  background: transparent; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  transition: all var(--transition); font-family: inherit;
}
.admin-tab.active { background: var(--color-primary); color: #fff; }
.ai-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 20px;
}
.ai-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ai-card-icon {
  width: 36px; height: 36px; background: var(--color-primary);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 16px;
}
.ai-card-title { font-weight: 900; color: var(--text-main); font-size: 13px; }
.ai-card-sub { font-size: 10px; color: var(--text-muted); }
.ai-result-box {
  background: var(--bg-sub); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; font-size: 10px;
  color: var(--text-main); min-height: 60px;
  white-space: pre-wrap; font-family: monospace; line-height: 1.6;
}
/* KGP Terminal */
.kgp-terminal {
  border-radius: 20px; padding: 24px;
  background: linear-gradient(135deg, #050d1a, #0a1628);
  border: 1px solid rgba(0,255,136,0.15);
}
.kgp-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #00ff88; animation: pulse 2s infinite;
}
.kgp-title { font-family: monospace; font-size: 13px; font-weight: 700; color: #00ff88; }
.kgp-version { font-family: monospace; font-size: 11px; color: rgba(0,255,136,0.4); }
.kgp-stat-box {
  background: rgba(0,255,136,0.04); border: 1px solid rgba(0,255,136,0.1);
  border-radius: 12px; padding: 14px; text-align: center;
}
.kgp-stat-val { font-family: monospace; font-weight: 900; font-size: 22px; color: #00ff88; }
.kgp-stat-label { font-size: 11px; margin-top: 4px; color: rgba(0,255,136,0.5); }
.kgp-test-btn {
  text-align: left; background: rgba(0,255,136,0.05);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 12px; padding: 16px; cursor: pointer;
  transition: all var(--transition); width: 100%;
}
.kgp-test-btn:hover { background: rgba(0,255,136,0.1); }
.kgp-test-title { font-family: monospace; font-weight: 700; font-size: 13px; color: #00ff88; margin-bottom: 4px; }
.kgp-test-sub { font-family: monospace; font-size: 10px; color: rgba(0,255,136,0.5); }
.kgp-log {
  background: #000; border: 1px solid rgba(0,255,136,0.1);
  border-radius: 12px; padding: 16px; font-family: monospace;
  font-size: 11px; line-height: 1.8; white-space: pre-wrap;
  color: #00ff88; min-height: 120px;
}

/* ── SCROLL TO TOP ──────────────────────────────────────── */
#scroll-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 440;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--color-primary); border: none; color: #fff;
  display: none; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb),0.4);
  transition: all var(--transition);
  animation: bounceIn 0.4s ease;
}
#scroll-to-top.visible { display: flex; }
#scroll-to-top:hover { transform: translateY(-4px); }

/* ── MOBİL BOTTOM NAV ───────────────────────────────────── */
#mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 450; background: var(--bg-header);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  padding: 8px 4px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.mobile-nav-inner { display: flex; align-items: center; }
.mobile-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  padding: 4px 0; position: relative; font-family: inherit;
}
.mobile-nav-icon-wrap {
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.mobile-nav-item.active .mobile-nav-icon-wrap {
  background: var(--color-primary-light);
}
.mobile-nav-label {
  font-size: 8px; font-weight: 700;
  color: var(--text-muted); letter-spacing: 0.5px;
  transition: color var(--transition);
}
.mobile-nav-item.active .mobile-nav-label { color: var(--color-primary); font-weight: 900; }
.mobile-nav-badge {
  position: absolute; top: 0; right: calc(50% - 18px);
  width: 16px; height: 16px; background: var(--color-primary);
  color: #fff; font-size: 8px; font-weight: 900;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ── HESAP MAKİNESİ PANELİ ─────────────────────────────── */
#calc-panel {
  position: fixed; inset: 0; z-index: 800;
  display: none; align-items: flex-end; justify-content: center;
}
#calc-panel.open { display: flex; }
.calc-drawer {
  position: relative; width: 100%; max-width: 360px;
  background: var(--bg-card); border-radius: 20px 20px 0 0;
  padding: 24px; box-shadow: 0 -8px 48px rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  animation: slideUp 0.35s ease;
}
.calc-display {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; margin-bottom: 16px;
  text-align: right;
}
.calc-expr { font-size: 12px; color: var(--text-muted); min-height: 18px; }
.calc-result { font-size: 28px; font-weight: 900; color: var(--text-main); letter-spacing: -1px; }
.calc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
/* calc-btn → aşağıda tam tanım */
.calc-btn-span2 { grid-column: span 2; }

/* ── BOŞLUK VE YARDIMCI ─────────────────────────────────── */
.page-container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 20px; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.w-full { width: 100%; }
.empty-state {
  padding: 60px 20px; text-align: center;
}
.empty-state-icon { margin: 0 auto 16px; opacity: 0.3; display: block; }
.empty-state-title { font-weight: 900; color: var(--text-main); font-size: 16px; margin: 0 0 16px; }

/* ── MOBİL RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  :root { --header-h: 56px; }

  body { padding-bottom: 72px; }

  /* Boşluk JS tarafından dinamik hesaplanır */

  /* Header */
  .header-cats { display: none; }
  .header-search-wrap { width: auto; flex: 1; min-width: 60px; }
  /* Mobilde Free Roam ve AI butonları bottom nav'da var — header'da gizle */
  #btn-free-roam { display: none; }
  .btn-header.btn-header-ghost { display: none; }
  /* Header-inner flex wrap olmasın */
  #mta-header .header-inner { flex-wrap: nowrap; overflow-x: hidden; overflow-y: visible; gap: 6px; }
  .header-actions { gap: 4px; }
  .header-search-wrap:focus-within { width: auto; }
  .btn-header-primary { display: none; }

  /* AI butonu mobil bottom nav'da zaten var — header'dan kaldır */
  #btn-ai-open { display: none; }

  /* Logo küçült — arama alanı için yer aç */
  .header-logo-icon { width: 36px; height: 36px; }
  .header-logo-text { font-size: 16px; }

  /* Mobil nav görünür */
  #mobile-bottom-nav { display: block; }
  #scroll-to-top { bottom: 90px; right: 16px; }

  /* Banner */
  .banner-slider { height: 200px; }
  .banner-content { padding: 0 20px; }
  .banner-title { font-size: 24px; }
  .banner-sub { font-size: 11px; max-width: 100%; }
  .banner-tag { margin-bottom: 10px; }
  .banner-wrap { padding: 4px 12px 12px; }

  /* Trust bar — gap küçült, sığsın */
  .trust-bar-inner { gap: 16px; }

  /* Ürün grid */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Ürün detay */
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery-main { height: 280px; aspect-ratio: auto; }

  /* Sepet ve checkout */
  .cart-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .cart-summary-card { position: static; }
  .form-grid-2 { grid-template-columns: 1fr; }

  /* Dock sol panel - mobilde FAB olarak göster (aşağıda override edildi) */

  /* Toolbar */
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
  .toolbar-right { width: 100%; }
  .toolbar-select { flex: 1; }

  /* Related */
  .related-section .products-grid { grid-template-columns: repeat(2,1fr); }

  /* Panel drawers */
  .panel-drawer { width: 100%; }
  .theme-panel { width: 100%; }

  /* Profil */
  .profile-header-card { flex-direction: column; text-align: center; }
  .profile-header-card > div:last-child { flex-direction: column; }

  /* Admin */
  .admin-tabs { gap: 4px; }
  .admin-tab { padding: 6px 10px; font-size: 9px; }
}

@media (max-width: 480px) {
  .banner-wrap { padding: 8px 10px 12px; }
  .banner-slider { height: 185px; }
  .banner-title { font-size: 20px; letter-spacing: -1px; }
  .banner-cta { padding: 8px 14px; font-size: 10px; }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .delivery-grid { grid-template-columns: repeat(3,1fr); }
  .cart-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 12px; }
}

/* ── GİRİŞ / KAYIT ──────────────────────────────────────── */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 640px; margin: 0 auto; }
@media (max-width: 640px) { .auth-grid { grid-template-columns: 1fr; } }

/* ── PROMOSYON KARTLARI ─────────────────────────────────── */
.promo-card {
  border-radius: 18px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.promo-card-badge {
  display: inline-block;
  font-size: 9px; font-weight: 900;
  background: rgba(255,255,255,0.25); color: #fff;
  padding: 3px 10px; border-radius: 20px;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 8px;
}
.promo-card-title {
  font-size: 22px; font-weight: 900;
  color: #fff; letter-spacing: -0.5px;
}
.promo-card-sub {
  font-size: 12px; color: rgba(255,255,255,0.85); margin-top: 4px;
}
.promo-card-btn {
  background: rgba(255,255,255,0.2); color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 10px 22px; border-radius: 11px;
  font-weight: 900; font-size: 12px;
  cursor: pointer; flex-shrink: 0;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
  display: inline-block;
}
.promo-card-btn:hover { background: rgba(255,255,255,0.35); }
@media (max-width: 480px) {
  .promo-card { padding: 16px 20px; }
  .promo-card-title { font-size: 18px; }
}

/* Admin bar kuralları yukarıda tanımlı */

/* ════════════════════════════════════════════════════════════
   HATA DÜZELTMELERİ — v8-fix3
   ════════════════════════════════════════════════════════════ */

/* ── 1) MOBİL SAĞA TAŞMA HATASI ─────────────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
* {
  box-sizing: border-box;
}
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  /* Sabit genişlikleri override et */
  .page-container,
  .banner-wrap,
  .trust-bar-inner,
  .cats-section,
  .shop-toolbar,
  .products-section,
  .breadcrumb-inner,
  .product-detail-grid,
  .related-section,
  .admin-inner {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  /* Flex satırları kır — header-inner HARIÇ */
  .trust-bar-inner,
  .toolbar-right {
    flex-wrap: wrap !important;
  }
  /* Header hiçbir zaman wrap etmez */
  #mta-header .header-inner {
    flex-wrap: nowrap !important;
    overflow: hidden;
  }
  /* Görsel taşmayı önle */
  img, video, iframe, table {
    max-width: 100% !important;
  }
}

/* ── 2) HEADER ALTINDA BOŞLUK — yukarıda CSS ile tanımlı ── */

/* ── 3) MOBİL MENÜ SCROLL HATASI ────────────────────────── */
body.menu-open {
  overflow: hidden !important;
}

/* ── 4) ÜRÜN KARTI YENİ ALANLAR ─────────────────────────── */
/* Teknik açıklama */
.product-tech-desc {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 5px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
/* Badge satırı */
.product-badges-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.badge-stock-in {
  font-size: 8px; font-weight: 900;
  color: #10b981; background: rgba(16,185,129,0.1);
  padding: 2px 7px; border-radius: 20px;
  border: 1px solid rgba(16,185,129,0.2);
}
.badge-stock-out {
  font-size: 8px; font-weight: 900;
  color: #ef4444; background: rgba(239,68,68,0.1);
  padding: 2px 7px; border-radius: 20px;
  border: 1px solid rgba(239,68,68,0.2);
}
.badge-cargo {
  font-size: 8px; font-weight: 900;
  color: #2563eb; background: rgba(37,99,235,0.1);
  padding: 2px 7px; border-radius: 20px;
  border: 1px solid rgba(37,99,235,0.2);
}
/* Taksit bilgisi */
.product-installment {
  font-size: 9px; font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}
.product-installment span {
  color: var(--color-primary);
  font-weight: 900;
}

/* ── 5) MOBİLDE STİCKY SEPET BUTONU ─────────────────────── */
#sticky-cart-bar {
  display: none;
}
@media (max-width: 768px) {
  /* Sadece ürün detay sayfasında görünür (JS ekler .product-page-active) */
  body.product-page-active #sticky-cart-bar {
    display: flex;
    position: fixed;
    bottom: 65px; /* mobil nav üstünde */
    left: 0; right: 0;
    z-index: 430;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    gap: 10px;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  }
  #sticky-cart-bar .sticky-price {
    flex: 1;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -1px;
  }
  #sticky-cart-bar .sticky-add-btn {
    flex: 2;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(var(--color-primary-rgb),0.4);
  }
  #sticky-cart-bar .sticky-add-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
  }
}

/* ════════════════════════════════════════════════════════════
   HATA DÜZELTMELERİ — v8-fix4
   ════════════════════════════════════════════════════════════ */

/* ── FREE ROAM kapatılınca canvas artık etki etmesin ──────── */
#free-roam-view[style*="display: none"],
#free-roam-view[style*="display:none"] {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ── DOCK ANA TANIM (tüm ekranlar) ──────────────────────── */
#mta-dock {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 460;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Dock toggle — masaüstü */
.dock-toggle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border) !important;
  color: var(--text-muted);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  transition: all 0.2s;
  flex-shrink: 0;
}
.dock-toggle:hover,
.dock-toggle.is-open {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 20px rgba(var(--color-primary-rgb),0.35);
}

/* ── MOBİL DOCK — sağ alt FAB ───────────────────────────── */
@media (max-width: 768px) {
  #mta-dock {
    display: flex !important;
    position: fixed !important;
    right: 14px !important;
    left: auto !important;
    bottom: 82px !important; /* bottom-nav üstü */
    top: auto !important;
    transform: none !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 0 !important;
    z-index: 470 !important; /* bottom-nav(450) ve header(500) arasında */
  }

  /* Mobilde menü yukarı açılır, sağa hizalı */
  #mta-dock .dock-menu {
    display: flex;
    position: absolute !important;
    flex-direction: column !important;
    bottom: 52px !important;
    top: auto !important;
    right: 0 !important;
    left: auto !important;
    border-radius: 16px !important;
    padding: 8px !important;
    min-width: 180px !important;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.18) !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    gap: 2px !important;
  }

  /* Dock item mobilde yatay — ikon + yazı */
  #mta-dock .dock-item {
    width: 100% !important;
    padding: 0 14px 0 12px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    justify-content: flex-start !important;
    height: 42px !important;
    border-radius: 10px !important;
  }

  /* Tooltip mobilde inline metin olarak */
  #mta-dock .dock-tooltip {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    background: none !important;
    color: var(--text-main) !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    pointer-events: none !important;
  }

  #mta-dock .dock-item:hover .dock-tooltip { color: var(--color-primary); }

  /* Toggle butonu mobilde renkli, belirgin */
  .dock-toggle {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(var(--color-primary-rgb),0.45) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
  }
  /* Açıkken: aynı brand color, sadece daha koyu shadow + ring */
  .dock-toggle.is-open {
    background: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb),0.25),
                0 6px 20px rgba(var(--color-primary-rgb),0.55) !important;
    filter: brightness(0.92);
  }
}


/* ── GENEL MOBİL TAŞMA — son düzeltme ───────────────────── */
@media (max-width: 768px) {
  #mta-main > *:not(#free-roam-view) {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

/* ── KATEGORİ TAŞMA DÜZELTME ─────────────────────────────── */
@media (max-width: 768px) {
  .cats-section {
    overflow: hidden;
  }
  .cats-section h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .cats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    overflow-x: hidden;
  }
  /* Banner da ekrana tam sığsın */
  .banner-wrap {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .banner-slider {
    border-radius: 14px;
  }
  /* Taşan her şeyi kes */
  .trust-bar {
    overflow: hidden;
  }
  /* Header taşmayı engelle */
  #mta-header .header-inner {
    padding: 0 10px !important;
    gap: 8px !important;
  }
  .header-logo-text {
    font-size: 15px !important;
  }
}

/* ── VIEWPORT META GUARD ─────────────────────────────────── */
/* Sayfa hiçbir koşulda 100vw'dan geniş olmasın */
html {
  max-width: 100vw;
  overflow-x: hidden;
}


/* ═══════════════════════════════════════════════════════════
   MTA v9.0 — YENİ ÖZELLİKLER & DÜZELTMELER
═══════════════════════════════════════════════════════════ */

/* ── TOAST İYİLEŞTİRMELERİ ────────────────────────────── */
.mta-toast {
  background: var(--bg-inv);
  color: var(--text-inv);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  margin-top: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  max-width: 320px;
  word-break: break-word;
}
.mta-toast.visible { opacity: 1; transform: translateY(0); }
.mta-toast--success { background: #059669; color: #fff; }
.mta-toast--error   { background: #dc2626; color: #fff; }
.mta-toast--warning { background: #d97706; color: #fff; }

/* ── HEADER KOMPAKT & GİZLİ ────────────────────────────── */

#mta-header.compact {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
#mta-header.header-hidden {
  transform: translateY(-100%);
}

/* ── HEADER BUTON OVERFLOW FİX ──────────────────────────── */

.btn-header { flex-shrink: 0; }
/* Orta ekranlarda Free Roam label'ı gizle */
@media (max-width: 1100px) {
  #free-roam-label { display: none; }
  .btn-header.btn-header-primary { min-width: 36px; justify-content: center; padding: 0 10px; }
}
/* Küçük ekranlarda arama alanını daralt */
@media (max-width: 900px) {
  .header-search-wrap { max-width: 140px; }
  #mta-search-input { width: 100px !important; }
  .header-cats { display: none; }
}
@media (max-width: 768px) {
  .header-search-wrap { max-width: 120px; }
}

/* ── ARAMA DROPDOWN İYİLEŞTİRMELERİ ───────────────────── */
.search-loading {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.search-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* ── KARŞILAŞTIRMA ÇUBUĞU ─────────────────────────────── */
#compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 450;
  background: var(--bg-inv);
  color: var(--text-inv);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  flex-wrap: wrap;
}
#compare-bar.visible { transform: translateY(0); }
@media (max-width: 768px) {
  #compare-bar { bottom: 60px; flex-wrap: wrap; } /* bottom nav üstünde */
}

.compare-bar-label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.compare-items {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.compare-items::-webkit-scrollbar { display: none; }
.compare-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 6px 10px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
}
.compare-bar-item img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.compare-bar-item-name {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compare-bar-item-remove {
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.2s;
}
.compare-bar-item-remove:hover { background: rgba(239,68,68,0.4); color: #fff; }

.compare-bar-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
.compare-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}
.btn-compare-go {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-compare-go:hover { opacity: 0.9; transform: scale(1.02); }
.btn-compare-clear {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-compare-clear:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

/* ── ÜRÜN KART KARŞILAŞTIR BUTONU ─────────────────────── */
.btn-compare {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-muted);
}
.btn-compare:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-compare.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ── SON GÖRÜNTÜLENEN ÜRÜNLER ────────────────────────── */
#recently-viewed-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px;
}
.recently-viewed-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#recently-viewed-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1024px) { #recently-viewed-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { #recently-viewed-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { #recently-viewed-grid { grid-template-columns: repeat(2, 1fr); } }

.recently-viewed-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
}
.recently-viewed-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}
.rv-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-input);
}
.rv-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.recently-viewed-card:hover .rv-img-wrap img { transform: scale(1.05); }
.rv-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
  padding: 8px 10px 4px;
  line-height: 1.3;
}
.rv-price {
  font-size: 11px;
  font-weight: 900;
  color: var(--color-primary);
  padding: 0 10px 8px;
}

/* ── QUICK VIEW MODAL ───────────────────────────────────── */
#quick-view-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  padding: 16px;
}
#quick-view-overlay.open { opacity: 1; visibility: visible; }
#quick-view-content {
  background: var(--bg-card);
  border-radius: 20px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  animation: slideUp 0.3s ease;
}
.qv-loading {
  padding: 60px;
  text-align: center;
  color: var(--text-muted);
}
.qv-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
.qv-error {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 700;
}
.qv-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--bg-input);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 10;
}
.qv-close:hover { background: var(--border); color: var(--text-main); }

/* ── AI TYPING DOTS ────────────────────────────────────── */
.ai-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
}
.ai-typing span {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: aiDot 1.2s ease infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiDot { 0%,80%,100%{opacity:0.3;transform:scale(0.8)} 40%{opacity:1;transform:scale(1)} }

/* ── SEPETE EKLE BUTONU İYİLEŞTİRME ───────────────────── */
.btn-add-cart .btn-cart-text { display: inline; }
@media (max-width: 1200px) {
  .btn-add-cart .btn-cart-text { display: none; }
}
.btn-add-cart.added { background: #059669 !important; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin-icon { animation: spin 0.8s linear infinite; }

/* ── SCROLL TOP (TEK buton) ────────────────────────────── */
#btn-scroll-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 440;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb),0.4);
  transition: all 0.2s;
}
#btn-scroll-top.visible { display: flex; }
#btn-scroll-top:hover { transform: translateY(-2px); }
@media (min-width: 769px) { #btn-scroll-top { bottom: 32px; right: 32px; } }

/* eski scroll-to-top gizle (artık btn-scroll-top kullanıyoruz) */
#scroll-to-top { display: none !important; }

/* ── FREE ROAM VIEW CONTAINER ──────────────────────────── */
#free-roam-view {
  display: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 550;
  background: var(--bg-app);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(var(--color-primary-rgb),0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(var(--color-primary-rgb),0.03) 0%, transparent 50%);
  cursor: grab;
}
#free-roam-view.dragging { cursor: grabbing; }
#roam-canvas {
  position: absolute;
  top: 52px; /* roam-topbar yüksekliği */
  left: 0;
  transform-origin: top left;
  will-change: transform;
}

#minimap-canvas {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 310;
  width: 120px;
  height: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#minimap-viewport {
  position: absolute;
  border: 2px solid var(--color-primary);
  border-radius: 2px;
  pointer-events: none;
  transition: all 0.1s;
}
#joystick-base {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 310;
  width: 80px;
  height: 80px;
  background: rgba(var(--color-primary-rgb),0.15);
  border: 2px solid rgba(var(--color-primary-rgb),0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#joystick-knob {
  width: 30px;
  height: 30px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: transform 0.05s;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb),0.4);
}

/* product-card-actions — bkz. ürün kartı bölümü */

/* ── BODY SCROLL KİLİT ─────────────────────────────────── */
body.menu-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════
   v9.1 — EK ÖZELLİKLER CSS
═══════════════════════════════════════════════════════════ */

/* ── GDPR COOKIE BANNER ─────────────────────────────────── */
#mta-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--bg-inv);
  color: var(--text-inv);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
#mta-cookie-banner.show { transform: translateY(0); }
@media (max-width: 768px) {
  #mta-cookie-banner { bottom: 65px; flex-direction: column; text-align: center; }
}
.cookie-text {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}
.cookie-text a { color: var(--color-primary); text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.btn-cookie-accept {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-cookie-accept:hover { opacity: 0.9; }
.btn-cookie-decline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.btn-cookie-decline:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

/* ── NEWSLETTER / ABONE FORMU ───────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--color-primary), rgba(var(--color-primary-rgb),0.7));
  padding: 40px 16px;
  text-align: center;
}
.newsletter-inner {
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}
.newsletter-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  outline: none;
  background: rgba(255,255,255,0.95);
  color: #0f172a;
}
.newsletter-btn {
  background: #0f172a;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s;
}
.newsletter-btn:hover { transform: scale(1.03); }
@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-btn { padding: 12px; }
}

/* ── LOAD MORE BUTONU ───────────────────────────────────── */
#load-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px auto;
  padding: 14px 32px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 900;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 200px;
}
#load-more-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb),0.15);
}
#load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.load-more-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}
.load-more-progress {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
}
.load-more-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}
.load-more-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ── YORUM FORMU ────────────────────────────────────────── */
.review-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}
.review-form-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 16px;
}
.review-stars-input {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.review-star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #cbd5e1;
  transition: color 0.15s, transform 0.15s;
}
.review-star-btn:hover,
.review-star-btn.active { color: #fbbf24; transform: scale(1.2); }
.review-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 480px) { .review-form-grid { grid-template-columns: 1fr; } }
.review-form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.review-form-input:focus { border-color: var(--color-primary); }
.review-result {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 10px;
  display: none;
}
.review-result.success { background: rgba(5,150,105,0.1); color: #065f46; display: block; }
.review-result.error   { background: rgba(239,68,68,0.1);  color: #991b1b; display: block; }

/* ── ÜRÜN BASKISI ───────────────────────────────────────── */
@media print {
  #mta-header, #mta-ticker, #mobile-bottom-nav, #mta-dock,
  #mta-ai-chat, #mta-whatsapp-btn, #compare-bar,
  #quick-view-overlay, .btn-add-cart, .product-card-actions,
  #mta-footer, #btn-scroll-top, .sticky-cart-bar,
  #sticky-cart-bar, .banner-wrap { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .product-page { padding-top: 0 !important; }
  .product-gallery-main img { max-width: 300px; }
  .specs-table { border: 1px solid #ccc; }
  .specs-row { border-bottom: 1px solid #eee; }
}
.btn-print-product {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-print-product:hover { color: var(--text-main); border-color: var(--text-muted); }

/* ── CHECKOUT ADIM GÖSTERGESİ ───────────────────────────── */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 20px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkout-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
  transition: all 0.3s;
}
.checkout-step.done .checkout-step-num  { background: #10b981; color: #fff; }
.checkout-step.active .checkout-step-num{ background: var(--color-primary); color: #fff; }
.checkout-step.pending .checkout-step-num{ background: var(--bg-input); color: var(--text-muted); border: 2px solid var(--border); }
.checkout-step-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.checkout-step.active .checkout-step-label  { color: var(--color-primary); }
.checkout-step.done .checkout-step-label    { color: #10b981; }
.checkout-step.pending .checkout-step-label { color: var(--text-muted); }
.checkout-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 30px;
  margin: 0 8px;
}
.checkout-step.done + .checkout-step-line { background: #10b981; }
@media (max-width: 480px) {
  .checkout-step-label { display: none; }
  .checkout-step-line { min-width: 16px; }
}

/* ── CANLİ STOK BADGE ───────────────────────────────────── */
.live-stock-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: livePulse 2s infinite;
  flex-shrink: 0;
}
.live-stock-dot.green { background: #10b981; }
.live-stock-dot.orange { background: #f97316; }
.live-stock-dot.red { background: #ef4444; }
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

/* ── VIDEO ÜRÜN DESTEĞI ─────────────────────────────────── */
.product-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.product-video-wrap iframe,
.product-video-wrap video { width: 100%; height: 100%; border: none; }
.product-video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.product-video-play-btn:hover { background: rgba(0,0,0,0.5); }
.product-video-play-btn svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }

/* ── SEARCH RESULTS SAYFALAMA ───────────────────────────── */
.page-numbers {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-numbers li { list-style: none; }
.page-numbers a,
.page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.page-numbers .current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.page-numbers a:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ═══════════════════════════════════════════════════════════
   v9.2 — DÜNYA SINIFI CSS
═══════════════════════════════════════════════════════════ */

/* ── FİYAT GEÇMİŞİ ─────────────────────────────────── */
#price-history-chart {
  margin: 16px 0;
}

/* ── KLAVYE KISAYOL YARDIMI ─────────────────────────── */
#keyboard-help {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9990;
  background: var(--bg-inv);
  color: var(--text-inv);
  border-radius: 14px;
  padding: 16px 20px;
  min-width: 240px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}
#keyboard-help.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.kbd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
}
.kbd-row:last-child { border-bottom: none; }
.kbd-key {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
}

/* ── TOPLU SİPARİŞ ──────────────────────────────────── */
.bulk-order-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
}
.bulk-order-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bulk-order-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.bulk-order-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 12px;
  font-family: 'Courier New', monospace;
  resize: vertical;
  outline: none;
  margin-bottom: 10px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.bulk-order-textarea:focus { border-color: var(--color-primary); }

/* ── KARŞILAŞTIRMA SAYFASI ──────────────────────────── */
.compare-page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px;
}
.compare-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.compare-page-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
}
#compare-page-container table td, 
#compare-page-container table th {
  vertical-align: middle;
}

/* ── KARGO TAKİP ────────────────────────────────────── */
.tracking-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 16px 0;
}
.tracking-form input,
.tracking-form select {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 12px;
  outline: none;
  font-family: inherit;
}
.tracking-form input { flex: 1; min-width: 160px; }
.tracking-form select { min-width: 130px; }
.tracking-form input:focus,
.tracking-form select:focus { border-color: var(--color-primary); }

/* ── STİCKY CART (masaüstü) ─────────────────────────── */
@media (min-width: 769px) {
  .product-actions-sticky {
    position: sticky;
    top: calc(var(--header-h) + 28px + 16px);
    align-self: start;
  }
  body.has-trust-bar .product-actions-sticky {
    top: calc(28px + var(--header-h) + 16px);
  }
}

/* ── GÖRSEL ZOOM ────────────────────────────────────── */
.gallery-main-wrap {
  overflow: hidden;
  border-radius: 14px;
  cursor: zoom-in;
}
.gallery-main-wrap img {
  transition: transform 0.3s ease;
  pointer-events: none;
}

/* ── B2B ROZET ──────────────────────────────────────── */
.b2b-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #1e3a5f, #1e40af);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── AI ÖNERİLER ────────────────────────────────────── */
#ai-recommendations-section {
  margin-top: 24px;
}
#ai-recommendations-section .products-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  #ai-recommendations-section .products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── STOK GERI SAYIM ANİMASYON ──────────────────────── */
@keyframes urgencyPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); }
  50%      { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
[data-urgent="true"] .btn-add-cart {
  animation: urgencyPulse 2s infinite;
}

/* ── PROGRESS RING ──────────────────────────────────── */
.progress-ring-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.progress-ring-svg { transform: rotate(-90deg); }
.progress-ring-track { fill: none; stroke: var(--border); stroke-width: 4; }
.progress-ring-fill  {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}
.progress-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: var(--text-main);
}

/* ── EL YAZISI (Micro-copy) ─────────────────────────── */
.trust-micro {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-muted);
}
.trust-micro svg { color: var(--color-primary); flex-shrink: 0; }

/* ── ŞEHİR/STOK TAHMINI ─────────────────────────────── */
.delivery-estimate {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  margin: 8px 0;
}
.delivery-estimate .fast { color: #10b981; }
.delivery-estimate .normal { color: #f97316; }

/* ── PAGE TRANSITION ────────────────────────────────── */
@keyframes pageEnter { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
#mta-main { animation: pageEnter 0.3s ease; }

/* ── COMPARE TABLE HIGHLIGHT ───────────────────────── */
#compare-page-container table tr:hover td { background: var(--color-primary-light) !important; }
#compare-page-container table tr:hover td:first-child { background: var(--bg-input) !important; }

/* ═══════════════════════════════════════════════════════════
   AKILLI ÜRÜN RAFI DRAWER
═══════════════════════════════════════════════════════════ */
.smart-shelf-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 400px; max-width: 95vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 951;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.34,1.1,0.64,1);
  box-shadow: -8px 0 48px rgba(0,0,0,0.15);
}
.smart-shelf-drawer.open { right: 0; }

.smart-shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.smart-shelf-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 900;
  color: var(--text-main);
}
.smart-shelf-close {
  width: 32px; height: 32px;
  border: none;
  background: var(--bg-input);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}
.smart-shelf-close:hover { background: var(--border); color: var(--text-main); }

/* ── BODY (scroll edilebilir alan) — v7.29 EKLENEN ─────────  */
.smart-shelf-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}
.smart-shelf-body::-webkit-scrollbar { width: 6px; }
.smart-shelf-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── ŞELF ÜRÜN ELEMANLARI ─────────────────────────────────  */
.shelf-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}
.shelf-empty p { margin: 12px 0 4px; font-size: 13px; font-weight: 700; color: var(--text-main); }
.shelf-empty small { font-size: 11px; color: var(--text-muted); }

.shelf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.shelf-item:last-child { border-bottom: none; }
.shelf-item-img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-input);
  flex-shrink: 0;
}
.shelf-item-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: 2px;
}
.shelf-item-name {
  font-size: 12px; font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shelf-item-brand {
  font-size: 9px; font-weight: 900;
  color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 1px;
}
.shelf-item-price {
  font-size: 13px; font-weight: 900;
  color: var(--text-main);
  margin-top: 2px;
}
.shelf-item-actions {
  display: flex; flex-direction: column; gap: 4px;
  flex-shrink: 0;
}
.shelf-item-btn {
  width: 28px; height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer !important;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.shelf-item-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.shelf-item-btn.remove:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,0.05); }

/* ── KARŞILAŞTIR TABLOSU ──────────────────────────────────  */
.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  min-width: 100%;
}
.compare-table th,
.compare-table td {
  padding: 10px 8px;
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}
.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-sub);
  position: sticky; left: 0;
  z-index: 1;
  min-width: 80px;
}
.compare-table th {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-main);
  background: var(--bg-sub);
  white-space: normal;
  min-width: 110px;
  line-height: 1.25;
  padding: 12px 8px;
}
.compare-table td:last-child,
.compare-table th:last-child { border-right: none; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 6px;
  display: inline-block;
}
.compare-cell-stock-in { color: #059669; font-weight: 800; font-size: 10px; }
.compare-cell-stock-out { color: #dc2626; font-weight: 800; font-size: 10px; }
.compare-cell-price {
  font-weight: 900; color: var(--text-main);
  font-size: 13px; letter-spacing: -0.3px;
  white-space: nowrap;
}
.compare-cell-old {
  font-size: 10px; color: var(--text-muted);
  text-decoration: line-through;
  display: block;
}
.compare-remove-row td { background: var(--bg-sub); padding: 6px; }
.compare-remove-btn {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: #ef4444;
  cursor: pointer !important;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.compare-remove-btn:hover { background: #ef4444; color: #fff; border-color: #ef4444; }

/* ── FOOTER (alt aksiyon barı) ────────────────────────────  */
.smart-shelf-footer {
  flex-shrink: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  display: flex; gap: 10px;
}

/* smart-shelf → aşağıda tam tanım */
.smart-shelf-action-btn:hover { opacity: 0.85; }
.smart-shelf-action-btn.secondary {
  background: var(--bg-input);
  color: var(--text-muted);
  flex: 0 0 80px;
}

/* Header shelf badge */
.shelf-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--color-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── ARŞİV BANNER HEADER OFFSET ─────────────────────────── */
.mta-archive-banner { padding-top: 64px !important; }
@media (max-width: 768px) {
  .mta-archive-banner { padding-top: 56px !important; }
}

/* ═══════════════════════════════════════════════════════════
   UYUMLULUK MOTORU BAR
═══════════════════════════════════════════════════════════ */
.mta-compat-bar {
  position: fixed;
  bottom: -400px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  max-width: calc(100vw - 24px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.2);
  z-index: 800;
  transition: bottom 0.4s cubic-bezier(0.34,1.1,0.64,1);
  overflow: hidden;
}
.mta-compat-bar.open { bottom: 24px; }
.compat-bar-inner { padding: 16px; }
.compat-bar-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 10px;
}
.compat-warnings { display: flex; flex-direction: column; gap: 8px; }
.compat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
}
.compat-item strong { font-size: 12px; }
.compat-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.compat-red    { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
.compat-yellow { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; }
.compat-blue   { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
.compat-recs-title {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-muted);
  margin: 10px 0 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.compat-rec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--bg-input);
  border-radius: 8px;
  font-size: 11px;
}
.compat-bar-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 24px; height: 24px;
  border: none;
  background: var(--bg-input);
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-muted);
}

/* ── TAMAMLAYICI ÜRÜNLER ────────────────────────────────── */
.complementary-section {
  margin: 24px 0;
}
.complementary-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#complementary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.comp-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s;
}
.comp-item:hover { border-color: var(--color-primary); }
.comp-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-input);
}
.comp-item-name { font-size: 11px; font-weight: 700; color: var(--text-main); line-height: 1.3; }
.comp-item-price { font-size: 12px; font-weight: 900; color: var(--color-primary); }
.comp-item-cart {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 5px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  margin-top: auto;
}
.comp-loading { color: var(--text-muted); font-size: 12px; padding: 8px; }

/* ── MOBİL ÜRÜN KARTI DÜZELTME ───────────────────────── */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 8px;
  }
  
  .product-card-body { padding: 8px 10px 10px; gap: 2px; }
  a.product-name { font-size: 11px; -webkit-line-clamp: 2; }
  .product-tech-desc { display: none; }
  .product-brand { font-size: 9px; }
  .product-badges-row { gap: 4px; flex-wrap: wrap; }
  .badge-stock-in, .badge-stock-out, .badge-cargo {
    font-size: 8px; padding: 2px 6px;
  }
  .product-price { font-size: 13px; }
  .product-installment { font-size: 9px; display: none; }
  .product-stars { display: none; }
  .btn-add-cart {
    width: 32px; height: 32px; min-width: 32px;
    border-radius: 9px;
  }
  .product-card-actions {
    top: 6px; right: 6px; gap: 4px;
  }
  .product-action-btn {
    width: 28px; height: 28px;
  }
  }

/* ── FİLTRE BUTONU ──────────────────────────────────────── */
.toolbar-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}
.toolbar-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ── FREE ROAM CANVAS KARTLARI ──────────────────────────── */


/* ── AI SESLİ GİRİŞ / TTS BUTONLARI ────────────────────── */
.ai-mic-btn, .ai-tts-btn {
  width: 34px; height: 34px;
  border: none;
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}
.ai-mic-btn:hover { background: #ef4444; color: #fff; }
.ai-tts-btn:hover { background: var(--color-primary); color: #fff; }
.ai-mic-btn.active { background: #ef4444; color: #fff; }
.ai-tts-btn.active { background: var(--color-primary); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   BLOG SAYFASI
═══════════════════════════════════════════════════════════ */
.blog-page { min-height: 60vh; padding-bottom: 48px; }
.blog-inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

.blog-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.blog-title {
  font-size: 24px; font-weight: 900;
  color: var(--text-main); margin: 0 0 8px;
}
.blog-subtitle {
  font-size: 13px; color: var(--text-muted); margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px rgba(var(--color-primary-rgb), 0.1);
  transform: translateY(-3px);
}
.blog-card-img-wrap {
  display: block;
  height: 200px;
  overflow: hidden;
  background: var(--bg-input);
}
.blog-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-img-placeholder {
  display: flex; align-items: center; justify-content: center;
}
.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.blog-card-meta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.blog-card-date {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--text-muted); font-weight: 700;
}
.blog-card-cat {
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  font-size: 9px; font-weight: 900;
  padding: 2px 8px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 1px;
}
.blog-card-title {
  font-size: 15px; font-weight: 900;
  color: var(--text-main); margin: 0;
  line-height: 1.4;
}
.blog-card-title a {
  color: inherit; text-decoration: none;
}
.blog-card-title a:hover { color: var(--color-primary); }
.blog-card-excerpt {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.6; margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.blog-card-link {
  display: inline-flex; align-items: center;
  color: var(--color-primary);
  font-size: 11px; font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.blog-card-link:hover { opacity: 0.8; }

.blog-pagination {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; margin-top: 32px;
}
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 12px; font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Blog içerik */
.blog-content h2, .blog-content h3 {
  font-weight: 900; color: var(--text-main);
  margin: 24px 0 12px;
}
.blog-content p { margin: 0 0 16px; }
.blog-content ul, .blog-content ol {
  padding-left: 24px; margin: 0 0 16px;
}
.blog-content li { margin-bottom: 6px; }
.blog-content img {
  max-width: 100%; border-radius: 12px;
  margin: 16px 0;
}
.blog-content a { color: var(--color-primary); }
.blog-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 12px 16px;
  background: var(--bg-input);
  border-radius: 0 12px 12px 0;
  margin: 16px 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-card-img-wrap { height: 160px; }
  .blog-title { font-size: 20px; }
}

/* ═══════════════════════════════════════════════════════════
   FREE ROAM — PREMIUM TASARIM
═══════════════════════════════════════════════════════════ */

/* Ana ekran */


/* Üst bar */
.roam-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 560;
}

/* Sol branding */
.roam-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.roam-brand-icon {
  width: 30px; height: 30px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.roam-brand-text {
  font-size: 14px; font-weight: 900;
  color: var(--text-main);
  font-style: italic;
  letter-spacing: -0.5px;
}
.roam-brand-text strong { color: var(--color-primary); }
.roam-count-badge {
  font-size: 10px; font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* Orta hint */
.roam-hint {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 480px) { .roam-hint { display: none; } }

/* Sağ aksiyon butonları */
.roam-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.roam-action-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border) !important;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer !important;
  transition: all 0.18s;
  position: relative;
  flex-shrink: 0;
}
.roam-action-btn:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary) !important;
  color: var(--color-primary);
}
.roam-action-ai {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
}
.roam-action-ai:hover { filter: brightness(1.1); }

.roam-action-cart {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
}
.roam-action-cart:hover { filter: brightness(1.1); }

.roam-action-exit:hover {
  background: rgba(239,68,68,0.1) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}
.roam-cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

.roam-minimap {
  position: fixed;
  top: 64px;
  left: 16px;
  z-index: 30;
  background: rgba(var(--bg-card-rgb, 255,255,255), 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  width: 120px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.minimap-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.minimap-label {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}
.minimap-dot {
  width: 6px; height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.minimap-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-input);
  border-radius: 8px;
  overflow: hidden;
}
.minimap-viewport {
  position: absolute;
  border: 2px solid var(--color-primary);
  border-radius: 3px;
  background: rgba(var(--color-primary-rgb), 0.15);
  transition: all 0.1s;
  pointer-events: none;
}
.minimap-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.minimap-size {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Joystick */
.roam-joystick-wrap {
  position: fixed;
  bottom: 32px;
  right: 20px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.roam-joystick-base {
  width: 80px; height: 80px;
  background: rgba(var(--bg-card-rgb, 255,255,255), 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(var(--color-primary-rgb), 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  touch-action: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12),
              inset 0 1px 0 rgba(255,255,255,0.5);
  transition: border-color 0.2s;
}
.roam-joystick-base:hover {
  border-color: rgba(var(--color-primary-rgb), 0.6);
}
.roam-joystick-knob {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--color-primary), rgba(var(--color-primary-rgb), 0.7));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.5);
  transition: transform 0.05s;
}
.roam-joystick-label {
  font-size: 7px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}


/* Ürün sayacı badge */
#roam-count {
  background: rgba(var(--color-primary-rgb), 0.15);
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 900;
}

/* HUD (koordinat overlay) */
#roam-hud {
  position: fixed;
  top: 60px;
  right: 16px;
  z-index: 30;
  background: rgba(var(--bg-card-rgb, 255,255,255), 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: monospace;
}

/* ════════════════════════════════════════════════════════════
   SEPET — Adım Göstergesi + Tema Stili
   ════════════════════════════════════════════════════════════ */
.cart-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.cart-step {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.cart-step::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
}
.cart-step:last-child::after { display: none; }
.cart-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s;
}
.cart-step span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.cart-step.active .cart-step-num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.cart-step.active span { color: var(--color-primary); font-weight: 900; }
.cart-step.done .cart-step-num {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}
.cart-step.done::after { background: #10b981; }

/* WooCommerce cart override */
.woocommerce-cart .woocommerce,
.mta-cart .woocommerce {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.woocommerce table.shop_table {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  border-collapse: collapse;
  width: 100%;
}
.woocommerce table.shop_table th {
  background: var(--bg-sub);
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}
.woocommerce table.shop_table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.woocommerce table.shop_table .product-name a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}
.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-main);
}
.woocommerce-cart-form__contents .actions {
  padding: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 24px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: filter 0.18s !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { filter: brightness(1.1) !important; }
.woocommerce a.button.alt,
.woocommerce button.button.alt { box-shadow: 0 4px 14px rgba(var(--color-primary-rgb),0.4) !important; }

/* Checkout form override */
.woocommerce-checkout .woocommerce {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  background: var(--bg-input) !important;
  color: var(--text-main) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  padding: 10px 14px !important;
  transition: border-color 0.18s !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus { border-color: var(--color-primary) !important; outline: none !important; }
.woocommerce form .form-row label {
  font-size: 11px !important;
  font-weight: 900 !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

@media (max-width: 768px) {
  .cart-step::after { width: 20px; }
  .cart-step span { display: none; }
}

/* ════════════════════════════════════════════════════════════
   HESABIM — WooCommerce MTA Tema Stili
   ════════════════════════════════════════════════════════════ */
.woocommerce-account .woocommerce,
.mta-account .woocommerce {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.woocommerce-account .woocommerce-MyAccount-content,
.mta-account .woocommerce-MyAccount-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.woocommerce-MyAccount-navigation ul li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.18s;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.mta-account-dashboard .account-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, var(--color-primary), rgba(var(--color-primary-rgb),0.7));
  border-radius: 16px;
  margin-bottom: 20px;
}
.account-avatar {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.account-name { font-size: 16px; font-weight: 900; color: #fff; margin: 0 0 2px; }
.account-email { font-size: 11px; color: rgba(255,255,255,0.7); margin: 0; }
.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.account-stat-card {
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.stat-icon { font-size: 22px; margin-bottom: 6px; }
.stat-num { font-size: 18px; font-weight: 900; color: var(--text-main); margin-bottom: 2px; }
.stat-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.mta-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.mta-orders-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-sub);
  color: var(--text-muted);
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}
.mta-orders-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: middle;
}
.mta-orders-table tr:last-child td { border-bottom: none; }
.order-num { color: var(--color-primary); font-weight: 900; text-decoration: none; }
.order-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}
.status-completed  { background: rgba(16,185,129,0.1); color: #059669; }
.status-processing { background: rgba(99,102,241,0.1); color: var(--color-primary); }
.status-pending    { background: rgba(245,158,11,0.1); color: #d97706; }
.status-cancelled  { background: rgba(239,68,68,0.1); color: #dc2626; }
.status-on-hold    { background: rgba(100,116,139,0.1); color: #64748b; }
.mta-account-form .form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mta-account-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.mta-account-form label {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mta-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  font-family: inherit;
  transition: border-color 0.18s;
  box-sizing: border-box;
}
.mta-input:focus { outline: none; border-color: var(--color-primary); }
.mta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff !important;
  border: none !important;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer !important;
  text-decoration: none;
  transition: filter 0.18s;
  font-family: inherit;
}
.mta-btn-primary:hover { filter: brightness(1.1); }
.mta-btn-sm {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.mta-btn-sm:hover { border-color: var(--color-primary); color: var(--color-primary); }
.mta-notice { list-style: none; margin: 0 0 16px; padding: 0; }
.mta-notice li {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.mta-notice-error li   { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); color: #dc2626; }
.mta-notice-success li { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); color: #059669; }
.mta-notice-info li    { background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2); color: var(--color-primary); }
@media (max-width: 768px) {
  .account-stats-grid { gap: 8px; }
  .mta-account-form .form-row-grid { grid-template-columns: 1fr; }
  .mta-orders-table th:nth-child(2),
  .mta-orders-table td:nth-child(2) { display: none; }
}

/* ════════════════════════════════════════════════════════════
   EKSİK BUTON CSS — Tüm interaktif elementler buton görünümü
   ════════════════════════════════════════════════════════════ */

/* ── PANEL KAPAT BUTONU ─────────────────────────────────── */
.btn-close-panel {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border) !important;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer !important;
  transition: all 0.18s;
  flex-shrink: 0;
}
.btn-close-panel:hover { background: #ef4444; color: #fff; border-color: #ef4444 !important; }

/* ── FİLTRE PANELİ ──────────────────────────────────────── */
.filter-section-title {
  font-size: 10px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  margin-top: 4px;
}

.filter-brand-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
  border: 1px solid transparent;
}
.filter-brand-item:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}
.filter-brand-item.active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.filter-brand-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-brand-item.active .filter-brand-label { color: var(--color-primary); }

.filter-checkbox {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.filter-brand-item.active .filter-checkbox {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.filter-brand-item.active .filter-checkbox svg { display: block !important; }

/* ── TEMA BUTONLARI ─────────────────────────────────────── */
.theme-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid var(--border) !important;
  cursor: pointer !important;
  transition: all 0.18s;
  min-width: 80px;
}
.theme-btn:hover { border-color: var(--color-primary) !important; transform: translateY(-2px); }
.theme-btn.active,
.theme-btn[data-theme].active { border-color: var(--color-primary) !important; box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb),0.2); }

.theme-btn-icon { font-size: 20px; line-height: 1; }
.theme-btn-label { font-size: 11px; font-weight: 900; }

/* ── RENK SEÇİCİ ────────────────────────────────────────── */
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }

.color-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 3px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.18s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.color-swatch:hover { transform: scale(1.15); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.color-swatch.active { border-color: var(--text-main) !important; transform: scale(1.1); }

.quick-color-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 2px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.18s;
  flex-shrink: 0;
}
.quick-color-btn:hover { transform: scale(1.15); border-color: var(--text-main) !important; }

.btn-apply-color {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: none !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer !important;
  transition: filter 0.18s;
  width: 100%;
  justify-content: center;
}
.btn-apply-color:hover { filter: brightness(1.1); }

/* ── AKILLI RAF SEKMELERİ ───────────────────────────────── */
.smart-shelf-tabs {
  display: flex;
  gap: 4px;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--border);
}
.smart-shelf-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.18s;
  white-space: nowrap;
}
.smart-shelf-tab:hover { background: var(--color-primary-light); color: var(--color-primary); }
.smart-shelf-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary) !important;
}
.shelf-tab-count {
  background: rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 900;
}
.smart-shelf-tab:not(.active) .shelf-tab-count {
  background: var(--bg-card);
  color: var(--text-muted);
}

.smart-shelf-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border) !important;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer !important;
  transition: all 0.18s;
}
.smart-shelf-action-btn:hover { background: var(--color-primary-light); color: var(--color-primary); border-color: var(--color-primary) !important; }

/* ── HESAPLAMA PANELI ───────────────────────────────────── */
.calc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border) !important;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer !important;
  transition: all 0.15s;
  font-family: inherit;
}
.calc-btn:hover { background: var(--color-primary-light); border-color: var(--color-primary) !important; color: var(--color-primary); transform: scale(1.04); }
.calc-btn:active { transform: scale(0.96); }
.calc-btn-op { background: var(--color-primary-light); color: var(--color-primary); border-color: rgba(var(--color-primary-rgb),0.3) !important; font-weight: 900; }
.calc-btn-eq { background: var(--color-primary) !important; color: #fff !important; border-color: var(--color-primary) !important; font-weight: 900; }
.calc-btn-eq:hover { filter: brightness(1.1); }
.calc-btn-clear { background: rgba(239,68,68,0.1); color: #ef4444; border-color: rgba(239,68,68,0.2) !important; }
.calc-btn-clear:hover { background: #ef4444; color: #fff; }
.calc-btn-span2 { grid-column: span 2; }
.calc-btn-num { font-weight: 800; }


/* ════════════════════════════════════════════════════════════
   AI SOHBET PANELİ — Tam CSS
   ════════════════════════════════════════════════════════════ */
#mta-ai-chat {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
#mta-ai-chat.open {
  pointer-events: all;
  opacity: 1;
}
@media (min-width: 560px) {
  #mta-ai-chat { align-items: center; padding: 20px; }
}
.ai-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.50);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ai-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--border);
  box-shadow: 0 -8px 48px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  height: min(580px, 92vh);
  overflow: hidden;
  animation: slideUp 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
@media (min-width: 560px) {
  .ai-panel { border-radius: 24px; box-shadow: 0 24px 64px rgba(0,0,0,0.22); }
}
.ai-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-radius: 24px 24px 0 0;
}
.ai-avatar {
  width: 40px; height: 40px;
  background: var(--color-primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb),0.4);
}
.ai-status-dot {
  width: 6px; height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.ai-status-text {
  font-size: 9px; font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.ai-suggestions {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sub);
  scrollbar-width: none;
}
.ai-suggestions::-webkit-scrollbar { display: none; }
.ai-suggestion-btn {
  flex-shrink: 0;
  font-size: 10px; font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  padding: 5px 12px !important;
  cursor: pointer !important;
  white-space: nowrap;
  transition: all 0.18s;
  display: inline-flex !important;
  align-items: center;
}
.ai-suggestion-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary) !important;
  background: var(--color-primary-light) !important;
}
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.ai-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: fadeIn 0.18s ease;
}
.ai-msg-row.user { flex-direction: row-reverse; }
.ai-msg-avatar {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ai-bubble {
  max-width: 78%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
}
.ai-bubble.bot {
  background: var(--bg-sub);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
}
.ai-bubble.user {
  background: var(--color-primary);
  color: #fff;
  border-top-right-radius: 4px;
}
.ai-input-wrap {
  flex-shrink: 0;
  padding: 10px 12px 14px;
  border-top: 1px solid var(--border);
}
.ai-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 5px 6px;
  transition: border-color 0.18s;
}
.ai-input-row:focus-within { border-color: var(--color-primary); }
.ai-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  font-size: 12px; font-weight: 500;
  color: var(--text-main);
  padding: 4px 6px;
  min-width: 0;
  font-family: inherit;
}
.ai-input::placeholder { color: var(--text-muted); }
.ai-send-btn {
  width: 34px; height: 34px;
  border-radius: 10px !important;
  background: var(--color-primary) !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s;
}
.ai-send-btn:hover { filter: brightness(1.1); transform: scale(1.06); }
.ai-send-btn:disabled { opacity: 0.4; cursor: not-allowed !important; }
.ai-send-btn svg { stroke: #fff; }
.ai-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 8px;
}

/* ════════════════════════════════════════════════════════════
   ÜRÜN DETAY SAYFASI — Tam CSS
   ════════════════════════════════════════════════════════════ */
.product-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 16px) 16px 48px;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}
/* Galeri */
.product-gallery-main {
  background: var(--bg-input);
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: zoom-in;
  position: relative;
}
.product-gallery-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s ease;
}
.product-gallery-main:hover img { transform: scale(1.03); }
.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.product-gallery-thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--bg-input);
  transition: border-color 0.18s;
  flex-shrink: 0;
}
.product-gallery-thumb:hover,
.product-gallery-thumb.active { border-color: var(--color-primary); }
.product-gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 4px;
}
/* Ürün bilgi alanı */
.product-info { display: flex; flex-direction: column; gap: 16px; }
.product-info-brand {
  font-size: 11px; font-weight: 900;
  color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 2px;
}
.product-info-title {
  font-size: 22px; font-weight: 900;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0;
}
.product-info-sku {
  font-size: 11px; color: var(--text-muted);
  font-weight: 600;
}
.product-info-price-wrap {
  display: flex; align-items: baseline; gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.product-info-price {
  font-size: 28px; font-weight: 900;
  color: var(--text-main); letter-spacing: -1px;
}
.product-info-old-price {
  font-size: 16px; font-weight: 700;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-info-discount {
  background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 900;
  padding: 3px 8px; border-radius: 6px;
}
/* Teknik özellikler tablosu */
.specs-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 8px;
}
.specs-table-header {
  padding: 12px 16px;
  background: var(--bg-sub);
  border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.specs-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.specs-row:last-child { border-bottom: none; }
.specs-key {
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
  min-width: 120px; flex-shrink: 0;
}
.specs-val {
  font-size: 12px; font-weight: 800;
  color: var(--text-main);
}
/* İlgili ürünler */
.related-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 48px;
}
.related-title {
  font-size: 18px; font-weight: 900;
  color: var(--text-main);
  margin: 0 0 20px;
}
/* Mobil ürün detay */
@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-gallery-main { height: 280px; aspect-ratio: unset; }
  .product-info-title { font-size: 18px; }
  .product-info-price { font-size: 22px; }
  .specs-key { min-width: 100px; }
}

.dock-menu[hidden] { display: none !important; }

/* ══ PANEL OVERLAY ══════════════════════════════════════════ */
.panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: none;
  align-items: flex-end;
  justify-content: flex-start;
}
.panel-overlay[style*="flex"] { display: flex !important; }
.panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.panel-drawer {
  position: relative;
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.panel-header h3 {
  font-size: 15px;
  font-weight: 900;
  margin: 0;
  color: var(--text-main);
}
.btn-close-panel {
  background: var(--bg-input);
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* ══ FREE ROAM VIEW ══════════════════════════════════════════ */
#free-roam-view {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 550;
  overflow: hidden;
  background: var(--bg-app);
  cursor: grab;
  flex-direction: column;
}


/* ═════════════════════════════════════════════════════════
   QUICK VIEW MODAL — v7.28
   ═════════════════════════════════════════════════════════ */
#mta-qv-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  z-index: 950;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: qvFadeIn 0.2s ease;
}
#mta-qv-overlay.open { display: flex; }
@keyframes qvFadeIn { from { opacity: 0; } to { opacity: 1; } }

.mta-qv-panel {
  background: var(--bg-card);
  border-radius: 18px;
  width: 100%; max-width: 720px;
  max-height: 90vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  animation: qvSlideUp 0.25s ease;
}
@keyframes qvSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.mta-qv-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  transition: transform 0.15s, background 0.15s;
}
.mta-qv-close:hover { transform: scale(1.08); background: #fff; }

.mta-qv-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px;
  overflow-y: auto;
}
@media (max-width: 640px) {
  .mta-qv-body { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .mta-qv-panel { max-height: 95vh; }
}

.mta-qv-img-wrap {
  background: var(--bg-input);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
}
.mta-qv-img { width: 100%; height: 100%; object-fit: cover; }

.mta-qv-info { display: flex; flex-direction: column; gap: 12px; }
.mta-qv-brand {
  font-size: 10px; font-weight: 900;
  color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.mta-qv-name {
  font-size: 18px; font-weight: 900;
  color: var(--text-main);
  line-height: 1.25; letter-spacing: -0.3px;
}
.mta-qv-rating { display: flex; align-items: center; gap: 6px; }
.mta-qv-price-wrap {
  background: var(--bg-sub);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
}
.mta-qv-price-old {
  font-size: 13px; color: var(--text-muted);
  text-decoration: line-through; font-weight: 700;
  margin-bottom: 2px;
}
.mta-qv-price {
  font-size: 24px; font-weight: 900;
  color: var(--text-main); letter-spacing: -0.5px;
}
.mta-qv-price-vat {
  font-size: 10px; color: var(--text-muted);
  margin-top: 4px;
}
.mta-qv-stock { font-size: 11px; font-weight: 800; }
.mta-qv-stock.in  { color: #059669; }
.mta-qv-stock.out { color: #dc2626; }

.mta-qv-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.mta-qv-btn-add {
  flex: 1;
  height: 46px;
  background: var(--color-primary);
  background-image: linear-gradient(135deg, var(--color-primary) 0%, rgba(var(--color-primary-rgb), 0.85) 100%);
  color: #fff;
  border: none !important;
  border-radius: 12px;
  font-size: 13px; font-weight: 900;
  cursor: pointer !important;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 22px rgba(var(--color-primary-rgb), 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.mta-qv-btn-add:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(var(--color-primary-rgb), 0.45); }
.mta-qv-btn-add:active { transform: scale(0.97); }
.mta-qv-btn-add:disabled { opacity: 0.5; cursor: not-allowed !important; transform: none; box-shadow: none; }

.mta-qv-btn-detail {
  height: 46px;
  padding: 0 16px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 12px; font-weight: 800;
  cursor: pointer !important;
  text-decoration: none;
  display: inline-flex; align-items: center;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.mta-qv-btn-detail:hover { border-color: var(--color-primary); color: var(--color-primary); }

.mta-qv-desc {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
  padding-top: 6px;
}

.mta-qv-loading {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted); font-size: 13px;
}
.mta-qv-loading::before {
  content: "";
  display: block;
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.7s linear infinite;
}

/* ════════════════════════════════════════════════════════════
   v7.30 — FİLTRE DRAWER + ACTIVE CHIPS + ARAMA DROPDOWN
   ════════════════════════════════════════════════════════════ */

/* ── DRAWER: BODY (scroll edilebilir alan) ───────────────── */
.filter-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
}
.filter-drawer-body::-webkit-scrollbar { width: 6px; }
.filter-drawer-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.filter-section { display: flex; flex-direction: column; gap: 8px; }

.filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  font-size: 13px; color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
}

/* ── CHECKBOX SATIRI (kategori, marka, attribute, stok ortak) ─ */
.filter-checkbox-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 4px;
  cursor: pointer !important;
  border-radius: 7px;
  transition: background 0.15s;
}
.filter-checkbox-row:hover { background: var(--bg-input); }
.filter-checkbox-row input[type="checkbox"],
.filter-checkbox-row input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.filter-cb-box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.filter-cb-box svg {
  width: 11px; height: 11px;
  opacity: 0;
  transition: opacity 0.15s;
}
.filter-checkbox-row input:checked ~ .filter-cb-box {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.filter-checkbox-row input:checked ~ .filter-cb-box svg { opacity: 1; }
.filter-cb-label {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}
.filter-cb-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}
.filter-checkbox-row.child {
  padding-left: 28px;
  border-left: 2px solid var(--border);
  margin-left: 6px;
}

/* Kategori ağaç child wrap */
.filter-cat-item { display: flex; flex-direction: column; }
.filter-cat-children {
  margin-top: 4px;
  padding-left: 4px;
  display: flex; flex-direction: column;
  gap: 2px;
}

/* "+ X daha" butonu */
.filter-show-more {
  background: none; border: none;
  color: var(--color-primary);
  font-size: 11px; font-weight: 800;
  cursor: pointer !important;
  padding: 6px 4px;
  text-align: left;
  margin-top: 2px;
}
.filter-show-more:hover { text-decoration: underline; }
.filter-extra-hidden { display: none !important; }

/* Marka/attribute liste */
.filter-brands-list, .filter-cats-tree, .filter-attr-list {
  display: flex; flex-direction: column;
  gap: 2px;
  max-height: 280px;
  overflow-y: auto;
}
.filter-brands-list::-webkit-scrollbar,
.filter-attr-list::-webkit-scrollbar,
.filter-cats-tree::-webkit-scrollbar { width: 4px; }
.filter-brands-list::-webkit-scrollbar-thumb,
.filter-attr-list::-webkit-scrollbar-thumb,
.filter-cats-tree::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ── FİYAT ─────────────────────────────────────────────── */
.filter-price-inputs {
  display: grid;
  grid-template-columns: 1fr 16px 1fr 24px;
  gap: 6px;
  align-items: center;
}
.filter-price-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}
.filter-price-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--bg-card);
}
.filter-price-sep {
  text-align: center;
  color: var(--text-muted);
  font-weight: 700;
}
.filter-price-suffix {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}
.filter-price-hint {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.filter-section-title {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

/* ── DRAWER FOOTER ──────────────────────────────────────── */
.filter-footer { padding: 14px 16px; gap: 10px; flex-shrink: 0; }
.filter-btn-clear {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}
.filter-btn-clear:hover { background: var(--border); color: var(--text-main); }
.filter-btn-apply {
  flex: 2;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.3);
}
.filter-btn-apply:hover { filter: brightness(0.94); }

/* ── ACTIVE FILTER CHIPS (toolbar altı) ─────────────────── */
.active-filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 12px 0;
}
.chips-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.chips-list {
  display: flex; flex-wrap: wrap; gap: 6px;
  flex: 1;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid var(--color-primary-border, var(--color-primary));
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer !important;
  transition: all 0.15s;
}
.filter-chip:hover {
  background: var(--color-primary);
  color: #fff;
}
.filter-chip svg { flex-shrink: 0; }
.chips-clear-all {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer !important;
  padding: 4px 8px;
  text-decoration: underline;
}

/* Toolbar'daki aktif filtre rozet sayacı */
.toolbar-filter-active-count {
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 900;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  margin-left: 4px;
}

/* ── PRODUCTS LOADING OVERLAY ─────────────────────────── */
.products-section { position: relative; }
#products-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.5);
  z-index: 10;
  display: flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: mtaSpin 0.8s linear infinite;
}
@keyframes mtaSpin { to { transform: rotate(360deg); } }

/* Filtre boş sonuç */
.filter-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.filter-empty-state p { margin: 12px 0 4px; font-size: 14px; font-weight: 800; color: var(--text-main); }
.filter-empty-state small { font-size: 11px; color: var(--text-muted); }

/* ── ARAMA DROPDOWN ŞEKİLLENDİRME (genişletme) ──────────── */
.search-section-title {
  font-size: 9px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 10px 14px 6px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sub);
}
.search-suggestion {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.12s;
}
.search-suggestion:hover { background: var(--bg-input); color: var(--color-primary); }
.search-suggestion svg { color: var(--text-muted); flex-shrink: 0; }
.search-cat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.search-cat-item:hover { background: var(--bg-input); }
.search-cat-item svg { color: var(--color-primary); flex-shrink: 0; }
.search-cat-name {
  flex: 1;
  font-size: 12px; font-weight: 700;
}
.search-cat-count {
  font-size: 10px; font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-sub);
  padding: 3px 7px;
  border-radius: 6px;
}

/* ── MOBİL DRAWER GENİŞLİĞİ ─────────────────────────────── */
@media (max-width: 768px) {
  #filter-drawer.panel-drawer {
    width: 100% !important;
    max-width: 100vw !important;
  }
  .filter-cb-box { width: 20px; height: 20px; }
  .filter-cb-box svg { width: 12px; height: 12px; }
}

/* ════════════════════════════════════════════════════════════
   v7.31 — MEGA ARAÇLAR PANELİ (D3)
   32 araç, 5 grup, sağdan açılan drawer
   ════════════════════════════════════════════════════════════ */

/* ── FAB BUTON (sağ alt sticky) ─────────────────────────── */
.mta-tools-fab {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 440;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 11px 16px 11px 14px;
  box-shadow: 0 6px 22px rgba(var(--color-primary-rgb), 0.45),
              0 2px 6px rgba(0,0,0,0.08);
  display: flex; align-items: center; gap: 6px;
  cursor: pointer !important;
  font-weight: 800; font-size: 12px;
  letter-spacing: 0.3px;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
  font-feature-settings: "ss01";
}
.mta-tools-fab:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(var(--color-primary-rgb), 0.55);
}
.mta-tools-fab:active { transform: scale(0.97); }
.mta-tools-fab svg { flex-shrink: 0; }
.mta-tools-fab-label {
  font-size: 11px;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  .mta-tools-fab { padding: 11px 14px; }
}
/* Masaüstünde dikey sağda */
@media (min-width: 1024px) {
  .mta-tools-fab {
    right: 20px;
    bottom: 24px;
  }
}

/* ── MEGA PANEL (sağdan drawer) ─────────────────────────── */
.mta-mega-panel {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  pointer-events: none;
}
.mta-mega-panel[aria-hidden="false"] {
  display: block;
  pointer-events: auto;
}
.mta-mega-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: mtaFadeIn 0.2s ease;
}
.mta-mega-drawer {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 420px; max-width: 95vw;
  background: var(--bg-card);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
  animation: mtaSlideInRight 0.28s cubic-bezier(0.34,1.1,0.64,1);
}
@keyframes mtaFadeIn { from {opacity:0} to {opacity:1} }
@keyframes mtaSlideInRight { from {transform:translateX(100%)} to {transform:translateX(0)} }
@media (max-width: 768px) {
  .mta-mega-drawer { width: 100% !important; max-width: 100vw !important; }
}

/* Header */
.mta-mega-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-sub) 100%);
}
.mta-mega-title {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.mta-mega-title-icon {
  font-size: 22px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-light);
  border-radius: 10px;
}
.mta-mega-title h2 {
  font-size: 17px; font-weight: 900;
  margin: 0; color: var(--text-main);
  letter-spacing: -0.3px;
}
.mta-mega-subtitle {
  font-size: 10px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  margin-left: 48px;
  margin-top: -3px;
}
.mta-mega-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer !important;
  display: flex; align-items: center; justify-content: center;
}
.mta-mega-close:hover {
  background: var(--border);
  color: var(--text-main);
}

/* Body */
.mta-mega-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.mta-mega-body::-webkit-scrollbar { width: 5px; }
.mta-mega-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Group */
.mta-mega-group { margin-bottom: 22px; }
.mta-mega-group:last-child { margin-bottom: 0; }
.mta-mega-group-title {
  font-size: 12px; font-weight: 900;
  color: var(--text-main);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: flex; align-items: center; gap: 6px;
}
.mta-mega-group-title span {
  font-size: 14px;
  background: var(--color-primary-light);
  width: 26px; height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center; justify-content: center;
}

/* Grid */
.mta-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 480px) {
  .mta-mega-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tool button */
.mta-tool {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  cursor: pointer !important;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
  min-height: 92px;
}
.mta-tool:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
  transform: translateY(-1px);
}
.mta-tool:active { transform: translateY(0); }
.mta-tool.is-locked {
  opacity: 0.55;
}
.mta-tool.is-locked::after {
  content: "🔒";
  position: absolute;
  top: 4px; right: 4px;
  font-size: 10px;
}
.mta-tool-icon {
  font-size: 22px; line-height: 1;
}
.mta-tool-label {
  font-size: 11px; font-weight: 800;
  text-align: center;
  line-height: 1.2;
}
.mta-tool-hint {
  font-size: 8.5px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: -2px;
}
.mta-tool-badge {
  position: absolute;
  top: 5px; right: 5px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  min-width: 16px; height: 16px;
  border-radius: 100px;
  padding: 0 5px;
  display: flex;
  align-items: center; justify-content: center;
}

/* Footer */
.mta-mega-footer {
  flex-shrink: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-sub);
}
.mta-mega-footer-info {
  display: flex; justify-content: space-between;
  align-items: center;
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
}
.mta-mega-user {
  color: var(--color-primary);
  font-weight: 800;
}
.mta-mega-login {
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}

/* ── ALT TOOL MODALLAR ─────────────────────────────────── */
.mta-tool-modal {
  position: fixed;
  inset: 0;
  z-index: 970;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.mta-tool-modal[aria-hidden="false"] { display: flex; }
.mta-tool-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  animation: mtaFadeIn 0.18s ease;
}
.mta-tool-modal-content {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  animation: mtaModalIn 0.22s cubic-bezier(0.34,1.2,0.64,1);
}
.mta-tool-modal-content.md { max-width: 480px; }
@keyframes mtaModalIn {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.mta-tool-modal-head {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mta-tool-modal-head h3 {
  font-size: 14px; font-weight: 900;
  margin: 0; color: var(--text-main);
}
.mta-tool-modal-close {
  width: 28px; height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 18px; line-height: 1;
  cursor: pointer !important;
  font-family: inherit;
}
.mta-tool-modal-close:hover { background: var(--bg-input); color: var(--text-main); }
.mta-tool-modal-body {
  flex: 1; overflow-y: auto;
  padding: 16px 18px;
}
.mta-tool-modal-hint {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0 0 14px;
  line-height: 1.5;
}
.mta-tool-modal-reset {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px; font-weight: 800;
  cursor: pointer !important;
  font-family: inherit;
}
.mta-tool-modal-reset:hover { background: var(--bg-input); color: var(--text-main); }

/* Color swatches */
.mta-color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 6px;
}
.mta-color-swatch {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer !important;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.mta-color-swatch:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px var(--text-main);
}
.mta-color-swatch.is-active::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Radio/check group */
.mta-radio-group, .mta-check-group {
  display: flex; flex-direction: column;
  gap: 4px;
}
.mta-radio-group label, .mta-check-group label {
  display: flex; align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: background 0.15s;
}
.mta-radio-group label:hover, .mta-check-group label:hover {
  background: var(--bg-input);
}
.mta-radio-group label:has(input:checked),
.mta-check-group label:has(input:checked) {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.mta-radio-group input[type="radio"]:disabled + *,
.mta-radio-group label:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Hesap makinesi */
.mta-calc-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  background: var(--bg-input);
  border-radius: 10px;
}
.mta-calc-tabs.small .mta-calc-tab { padding: 6px 10px; font-size: 10.5px; }
.mta-calc-tab {
  flex: 1;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer !important;
  transition: all 0.15s;
  font-family: inherit;
}
.mta-calc-tab.active {
  background: var(--bg-card);
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.mta-calc-panel { display: none; }
.mta-calc-panel.active { display: block; }
.mta-calc-form {
  display: flex; flex-direction: column;
  gap: 11px;
  margin-bottom: 14px;
}
.mta-calc-form label {
  display: flex; flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mta-calc-form input,
.mta-calc-form select,
.mta-calc-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-input);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  font-family: inherit;
}
.mta-calc-form input:focus,
.mta-calc-form select:focus,
.mta-calc-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--bg-card);
}
.mta-calc-form label small {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}
.mta-calc-go {
  width: 100%;
  padding: 12px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer !important;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(var(--color-primary-rgb),0.3);
  transition: filter 0.15s;
}
.mta-calc-go:hover { filter: brightness(0.93); }
.mta-calc-result {
  margin-top: 12px;
  padding: 14px;
  background: var(--color-primary-light);
  border-left: 3px solid var(--color-primary);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-main);
}
.mta-calc-result.error {
  background: #fee2e2;
  border-left-color: #dc2626;
  color: #991b1b;
}
.mta-calc-result.warning {
  background: #fef3c7;
  border-left-color: #f59e0b;
  color: #92400e;
}
.mta-calc-result strong { font-weight: 900; }
.mta-calc-result small {
  display: inline-block;
  margin-top: 6px;
  font-size: 10.5px;
  opacity: 0.85;
}

/* Voltage quick presets */
.mta-tool-quick-presets {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.mta-tool-quick-presets button {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer !important;
  font-family: inherit;
  color: var(--text-main);
}
.mta-tool-quick-presets button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Notes */
.mta-notes-list {
  display: flex; flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.mta-note-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  background: var(--bg-input);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-main);
}
.mta-note-item-text { flex: 1; word-break: break-word; }
.mta-note-item-time {
  font-size: 9.5px;
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
}
.mta-note-item-del {
  width: 22px; height: 22px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer !important;
  font-size: 14px;
  flex-shrink: 0;
  font-family: inherit;
}
.mta-note-item-del:hover { background: #fee2e2; color: #dc2626; }
.mta-notes-add {
  display: flex; gap: 6px;
}
.mta-notes-add input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 12px;
  font-family: inherit;
}
.mta-notes-add button {
  padding: 0 16px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer !important;
  font-family: inherit;
}

/* Alerts list */
.mta-alerts-list {
  display: flex; flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
}
.mta-alert-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  background: var(--bg-input);
  border-radius: 9px;
}
.mta-alert-item img {
  width: 40px; height: 40px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
}
.mta-alert-item-info { flex: 1; min-width: 0; }
.mta-alert-item-name {
  font-size: 12px; font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.mta-alert-item-target {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
}
.mta-alert-item-target b { color: var(--color-primary); }
.mta-alert-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 12px;
}

/* QR */
.mta-qr-container {
  display: flex;
  align-items: center; justify-content: center;
  min-height: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.mta-qr-container img {
  max-width: 100%;
  height: auto;
}
.mta-qr-actions {
  display: flex; gap: 8px;
}
.mta-qr-actions button {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer !important;
  font-family: inherit;
  color: var(--text-main);
}
.mta-qr-actions button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Bulk cart textarea */
#bulk-cart-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  margin-bottom: 12px;
  resize: vertical;
  background: var(--bg-input);
  color: var(--text-main);
}

/* Newsletter consent */
.mta-newsletter-consent {
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 8px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
  font-size: 11px !important;
  line-height: 1.5;
}
.mta-newsletter-consent small { font-size: inherit; line-height: inherit; }

/* Unit converter */
.mta-unit-converter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mta-unit-row {
  display: flex; flex-direction: column;
  gap: 4px;
}
.mta-unit-row label {
  font-size: 10px; font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mta-unit-row input {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  background: var(--bg-input);
  color: var(--text-main);
}

/* ── BODY MODIFIER CLASSES (theme engine) ──────────────── */
body.mta-font-small { font-size: 14px; }
body.mta-font-large { font-size: 18px; }
body.mta-density-compact .product-card-v2 { padding: 6px; }
body.mta-density-compact .smart-shelf-tab { padding: 6px 10px; font-size: 10px; }
body.mta-a11y-contrast {
  --text-main: #000;
  --border: #000;
}
body.mta-a11y-reduce-motion *,
body.mta-a11y-reduce-motion *::before,
body.mta-a11y-reduce-motion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}
body.mta-a11y-dyslexia { letter-spacing: 0.04em; word-spacing: 0.08em; }
body.mta-a11y-underline-links a { text-decoration: underline !important; }

/* Mevcut ai-toggle ile çakışmasın - z-index */
#mta-ai-chat { z-index: 460 !important; }
#mta-whatsapp-btn { z-index: 435 !important; }

/* Eski mta-dock CSS'leri override (artık yok) */
#mta-dock { display: none !important; }


/* ════════════════════════════════════════════════════════════
   FREE ROAM TİTREME ÖNLEME — v7.33
   ════════════════════════════════════════════════════════════
   Free Roam canvas'ı hareket ederken mouse altından geçen
   ürün kartlarının hover state'i tetikleniyordu — kart
   transform/scale animasyonları kümülatif titreme yaratıyordu.
   ÇÖZÜM: Free Roam aktifken (.roam-canvas içinde + body.free-roam-on)
   tüm hover transition'ları ve transform efektleri kapatılır.
   ════════════════════════════════════════════════════════════ */

/* 1) Canvas içindeki kart — transition tamamen kapalı */
.roam-canvas .product-card,
body.free-roam-on .product-card {
  transition: none !important;
  animation: none !important;
}

/* 2) Hover transform/scale/shadow KAPALI (titreme kaynak) */
.roam-canvas .product-card:hover,
body.free-roam-on .product-card:hover {
  transform: none !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
}

/* 3) Görsel scale hover'ı KAPALI */
.roam-canvas .product-card:hover .product-card-img,
body.free-roam-on .product-card:hover .product-card-img,
.roam-canvas .product-card-img,
body.free-roam-on .product-card-img {
  transform: none !important;
  transition: none !important;
}

/* 4) Hover quick view / btn-ai görünüm değişiklikleri KAPALI */
.roam-canvas .product-card:hover .btn-quick-view,
.roam-canvas .product-card:hover .btn-ai,
body.free-roam-on .product-card:hover .btn-quick-view,
body.free-roam-on .product-card:hover .btn-ai {
  transform: none !important;
  transition: none !important;
}

/* 5) Liste görünümü hover transform KAPALI */
.roam-canvas .products-list .product-card:hover,
body.free-roam-on .products-list .product-card:hover {
  transform: none !important;
}

/* 6) Free Roam aktifken header/footer yer kaplamasın (display:none JS yedeği) */
body.free-roam-on #mta-header,
body.free-roam-on #mta-ticker,
body.free-roam-on #mta-tools-fab,
body.free-roam-on #mta-whatsapp-btn,
body.free-roam-on #mobile-bottom-nav,
body.free-roam-on #btn-scroll-top {
  display: none !important;
}

/* 7) Body scroll kilidi — Free Roam tam ekran */
body.free-roam-on {
  overflow: hidden !important;
}

/* 8) Canvas kartlarına GPU compositing layer pin (browser bağımsız smooth) */
.roam-canvas .product-card {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: auto;
}

/* 9) Canvas resimlerinde transition KAPALI (img scale hover'lar override) */
.roam-canvas img {
  transition: none !important;
  transform: none !important;
}

/* 10) Roam canvas drag anında tıklamayı blokla (drag sonu tıklamasın) */
#free-roam-view.dragging .roam-canvas,
#free-roam-view.dragging .roam-canvas * {
  pointer-events: none !important;
}



/* ════════════════════════════════════════════════════════════
   FREE ROAM TOP BAR MOBİL TAŞMA — v7.33.1
   7 buton (Ana Sayfa·Araçlar·Filtre·Fav·AI·Sepet·Çık)
   480px altında sığmıyordu, Sepet ekran dışına kayıyordu.
   ════════════════════════════════════════════════════════════ */

/* Mobil: brand metnini gizle, sadece icon + sayı badge kalsın */
@media (max-width: 480px) {
  .roam-topbar {
    gap: 6px !important;
    padding: 0 8px !important;
  }
  .roam-brand {
    gap: 5px !important;
  }
  .roam-brand-text {
    display: none;
  }
  .roam-count-badge {
    font-size: 9px !important;
    padding: 2px 6px !important;
  }
  /* Butonlar kompakt */
  .roam-actions {
    gap: 3px !important;
  }
  .roam-action-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
  }
  .roam-action-btn svg {
    width: 13px !important;
    height: 13px !important;
  }
  .roam-cart-badge {
    font-size: 8px !important;
    min-width: 14px !important;
    height: 14px !important;
  }
}

/* Çok küçük ekran (≤360px) — butonları daha da küçült */
@media (max-width: 360px) {
  .roam-topbar { padding: 0 6px !important; gap: 4px !important; }
  .roam-action-btn {
    width: 28px !important;
    height: 28px !important;
  }
  .roam-action-btn svg {
    width: 12px !important;
    height: 12px !important;
  }
  .roam-brand-icon {
    width: 26px !important;
    height: 26px !important;
  }
  .roam-count-badge {
    font-size: 8px !important;
    padding: 1px 4px !important;
  }
}

/* Belt-and-braces: actions hiçbir koşulda kırılmasın, taşırsa scroll'lansın */
.roam-actions {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.roam-actions::-webkit-scrollbar { display: none; }



/* ════════════════════════════════════════════════════════════
   ARAMA DROPDOWN — PARENT OVERFLOW KURTARMA — v7.33.2
   ════════════════════════════════════════════════════════════
   header-inner ve diğer atalar overflow:hidden'a sahipse
   dropdown kırpılıp arkada kalıyordu. position:fixed ile
   parent zincirinden bağımsız konumlandır.
   ════════════════════════════════════════════════════════════ */

/* Tüm header ataları dropdown için overflow visible olsun */
#mta-header,
#mta-header .header-inner,
#header-search-wrap {
  overflow: visible !important;
}

/* Yatay taşmayı yine engelle (header-inner için) */
@media (max-width: 768px) {
  #mta-header .header-inner {
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
}

/* Dropdown z-index'i header üstünde garanti */
#search-dropdown {
  z-index: 700 !important;
}

/* Dropdown açıkken minimum görünürlük */
#search-dropdown.open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}



/* ════════════════════════════════════════════════════════════
   ARAMA DROPDOWN — POSITION FIXED FALLBACK — v7.33.3
   Parent overflow'dan tamamen kurtulmak için fixed konumlandırma.
   JS dropdown'ı input.getBoundingClientRect() ile yerleştirir.
   ════════════════════════════════════════════════════════════ */
#search-dropdown {
  position: fixed !important;
  top: auto !important;     /* JS set edecek */
  left: auto !important;    /* JS set edecek */
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  z-index: 999 !important;  /* Header (500), modal (800) üstünde */
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#search-dropdown.open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}


/* ════════════════════════════════════════════════════════════
   ARAMA DROPDOWN MOBİL LAYOUT FİX — v7.33.4
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #search-dropdown {
    /* JS pozisyonlasa bile mobilde tam genişlik garanti */
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 16px) !important;
    max-height: 70vh !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18) !important;
  }
  #search-dropdown .search-section-title {
    font-size: 10px;
    padding: 10px 14px 6px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    background: var(--bg-input);
  }
  #search-dropdown .search-suggestion,
  #search-dropdown .search-result-item,
  #search-dropdown .search-cat-item {
    padding: 11px 14px;
    font-size: 13px;
  }
  #search-dropdown .search-suggestion span {
    font-size: 13px;
  }
  #search-dropdown .search-result-item img {
    width: 40px;
    height: 40px;
  }
  #search-dropdown .search-result-name {
    font-size: 12px;
  }
  #search-dropdown .search-result-brand {
    font-size: 10px;
  }
  #search-dropdown .search-see-all {
    padding: 12px;
    font-size: 12px;
    text-align: center;
    background: var(--bg-input);
    color: var(--color-primary);
    font-weight: 700;
    cursor: pointer;
  }
}

/* Dropdown 0 sonuçlu boş arama göstergesi */
#search-dropdown .search-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}



/* ════════════════════════════════════════════════════════════
   MOBİL HEADER ARAMA KUTUSU GENİŞLETME — v7.33.5
   ════════════════════════════════════════════════════════════
   Şikayet: Arama kutusunun üzerine yazılan metnin çoğu
   görünmüyor (kutu çok dar). 120px max-width arama için yetersiz.
   Çözüm: Bottom nav'da zaten olan Sepet/AI/Hesabım/Raf'ı
   header'dan gizle, logo'yu küçült, arama kutusuna geniş alan ver.
   ════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Header inner */
  #mta-header .header-inner {
    gap: 8px !important;
    padding: 0 10px !important;
  }

  /* Logo: ikon + "MTA store" yazısı GÖRÜNÜR (normal hâl) */
  .header-logo-icon { width: 30px !important; height: 30px !important; }
  .header-logo-text { font-size: 13px !important; display: inline-flex !important; }
  .header-logo {
    flex-shrink: 0 !important;
    gap: 6px !important;
    transition: max-width 0.28s ease, opacity 0.2s ease;
    max-width: 200px;
    opacity: 1;
    overflow: hidden;
  }

  /* Bottom nav'da olan ikonları header'dan gizle */
  #btn-smart-shelf,
  #btn-cart,
  #btn-user {
    display: none !important;
  }

  .header-actions {
    gap: 4px !important;
    flex-shrink: 0 !important;
    transition: max-width 0.28s ease, opacity 0.2s ease, margin 0.2s ease;
    max-width: 200px;
    opacity: 1;
    overflow: hidden;
  }

  /* ARAMA KUTUSU — NORMAL hâl (focus YOK) */
  .header-search-wrap {
    flex: 1 1 auto !important;
    min-width: 100px !important;
    max-width: none !important;
    width: auto !important;
    padding: 6px 12px !important;
    transition: flex-grow 0.28s ease, padding 0.28s ease;
  }
  #mta-search-input {
    width: 100% !important;
    flex: 1 1 auto !important;
    font-size: 13px !important;
    min-width: 0 !important;
  }

  /* ARAMA KUTUSU — FOCUS hâli: genişle, logo + actions küçülsün */
  .header-search-wrap:focus-within {
    flex-grow: 999 !important;     /* mümkün olan tüm boş alanı al */
    padding: 8px 14px !important;
    box-shadow: 0 2px 12px rgba(var(--color-primary-rgb), 0.18);
  }

  /* Focus aktifken logo daralt (yazı gizlensin, ikon kalsın) */
  #mta-header .header-inner:focus-within .header-logo-text {
    max-width: 0 !important;
    opacity: 0;
    margin: 0 !important;
    padding: 0 !important;
    transition: max-width 0.25s ease, opacity 0.18s ease, margin 0.2s ease;
    overflow: hidden;
    white-space: nowrap;
  }

  /* Focus aktifken sağdaki Free Roam vs butonları gizlensin */
  #mta-header .header-inner:focus-within .header-actions {
    max-width: 0 !important;
    opacity: 0;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
  }
}

/* Çok küçük ekran (≤360px) */
@media (max-width: 360px) {
  #mta-header .header-inner {
    gap: 6px !important;
    padding: 0 8px !important;
  }
  .header-logo-icon { width: 26px !important; height: 26px !important; }
  .header-logo-text { font-size: 12px !important; }
  .header-search-wrap { padding: 5px 10px !important; }
  #mta-search-input { font-size: 12px !important; }
}



/* ════════════════════════════════════════════════════════════
   ARAMA KUTUSU GÖRÜNÜR ZORLA — v7.33.8
   Dropdown açıkken input'un üzerine bindiği şikayeti.
   Çözüm: Header her zaman dropdown'dan ÜSTTE durur (z-index).
   ════════════════════════════════════════════════════════════ */

/* Header'ı dropdown'dan üstte tut → input her zaman görünür */
#mta-header {
  z-index: 1000 !important;
}
/* Dropdown header'dan AŞAĞI gelsin → 999 yine üstte ama header daha üstte */
#search-dropdown {
  z-index: 999 !important;
}

/* Header opak arka plan: dropdown'un alt kısmı header'ın altından geçemesin */
#mta-header {
  background-color: var(--bg-header) !important;
  background: var(--bg-header) !important;
}

/* Mobilde header arka planı tam doldursun (yarı şeffaf değil) */
@media (max-width: 768px) {
  #mta-header {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Dark mode mobil */
@media (max-width: 768px) {
  body.theme-dark #mta-header,
  html.theme-dark #mta-header {
    background: #0f172a !important;
  }
}



/* ════════════════════════════════════════════════════════════
   ARAMA FOKUS — SAYFA KAYDIRMA ÖNLEME — v7.33.9
   Android Chrome focus alınca sayfayı yukarı kaydırıyordu,
   header gözden kayboluyordu.
   ════════════════════════════════════════════════════════════ */

/* HTML scroll-padding-top → focus elementi yukarı kayarsa header kadar boşluk bırak */
html {
  scroll-padding-top: 80px;
}

/* Header her zaman üstte — scroll davranışından bağımsız */
#mta-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  /* Klavye açılınca yukarı kaymasın */
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
  will-change: auto !important;
}

/* Body'nin üstünde header height kadar padding olsun → ana içerik gizlenmesin */
body {
  padding-top: 0; /* zaten main'de var */
}

/* Mobil focus iOS smooth scroll */
@media (max-width: 768px) {
  #mta-search-input {
    /* iOS focus zoom önle */
    font-size: 16px !important; /* 16px altında iOS otomatik zoom yapar */
  }
}

/* Dropdown overflow scroll garanti */
#search-dropdown {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

