/* ═══════════════════════════════════════════════════════════
   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;
  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);
  -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;
  width: 200px; flex-shrink: 0;
  transition: border-color var(--transition), width var(--transition);
}
.header-search-wrap:focus-within {
  border-color: var(--color-primary);
  width: 260px;
}
.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: 10px; font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase; letter-spacing: 2px;
}

/* ── 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 {
  padding-top: 94px; /* desktop: 64+30 */
}
@media (max-width: 768px) {
  .banner-wrap:first-child,
  .cats-section:first-child,
  .mta-woo-wrap > *:first-child,
  #mta-main > .banner-wrap:first-child {
    padding-top: 86px; /* mobil: 56+30 */
  }
}
.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(170px,1fr));
  gap: 16px;
}
.products-list { display: flex; flex-direction: column; gap: 12px; }

/* ── ÜRÜN KARTI ─────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  text-decoration: none; color: inherit;
}
.product-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(var(--color-primary-rgb),0.15);
}
.product-card-img-wrap {
  position: relative; overflow: hidden;
  background: var(--bg-input); height: 200px; flex-shrink: 0;
}
.product-card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img { transform: scale(1.08); }
.product-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 9px; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 8px; color: #fff;
}
.product-card-actions {
  position: absolute; top: 8px; right: 8px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 1;
  transform: translateX(0);
  transition: none;
}
.product-action-btn {
  width: 32px; height: 32px; border-radius: 10px;
  border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform var(--transition);
}
.product-action-btn:hover { transform: scale(1.1); }
.btn-fav       { background: rgba(255,255,255,0.92); }
.btn-fav.active{ background: #ef4444; }
.btn-zoom      { background: rgba(255,255,255,0.92); }
.btn-ai        { background: var(--color-primary); }
.stock-badge {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(249,115,22,0.9); color: #fff;
  font-size: 8px; font-weight: 900; padding: 3px 8px; border-radius: 8px;
}
.out-of-stock-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
}
.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;
}
.ai-insight-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 10px 10px;
  opacity: 0; transition: opacity 0.3s ease;
}
.product-card:hover .ai-insight-strip { opacity: 1; }
.product-card-body {
  padding: 10px 12px;
  display: flex; flex-direction: column; flex: 1;
}
.product-brand {
  font-size: 8px; font-weight: 900;
  color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2px;
}
.product-name {
  font-size: 11px; font-weight: 700;
  color: var(--text-main); margin: 0 0 6px;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.product-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.product-reviews { font-size: 8px; color: var(--text-muted); font-weight: 700; }
.product-footer {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-top: auto;
}
.product-price-old {
  font-size: 9px; color: var(--text-muted); text-decoration: line-through;
}
.product-price {
  font-size: 14px; font-weight: 900;
  color: var(--text-main); letter-spacing: -0.5px;
}
.btn-add-cart {
  width: 32px; height: 32px; border-radius: 10px;
  border: none; background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb),0.4);
  transition: all var(--transition);
}
.btn-add-cart:hover { transform: scale(1.1); }
.btn-add-cart:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; box-shadow: none; }

/* Liste görünümü */
.product-list-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 16px;
  display: flex; gap: 16px; cursor: pointer;
  transition: border-color var(--transition);
  text-decoration: none; color: inherit;
}
.product-list-item:hover { border-color: var(--color-primary); }
.product-list-img {
  width: 80px; height: 80px;
  border-radius: 12px; object-fit: cover; flex-shrink: 0;
}

/* ── ÜRÜN DETAY SAYFASI ─────────────────────────────────── */
.product-page { background: var(--bg-app); min-height: 100vh; }
.breadcrumb-bar {
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}
.breadcrumb-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700;
}
.breadcrumb-inner a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-inner a:hover { color: var(--color-primary); }
.breadcrumb-sep { color: var(--text-muted); }

.product-detail-grid {
  max-width: 1100px; margin: 0 auto;
  padding: 32px 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.product-gallery-main {
  background: var(--bg-input); border-radius: 24px;
  overflow: hidden; aspect-ratio: 1; cursor: zoom-in;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.product-gallery-main img {
  width: 80%; height: 80%; object-fit: contain;
  transition: transform 0.3s;
}
.product-gallery-thumbs {
  display: flex; gap: 10px;
  margin-top: 14px; justify-content: center;
}
.product-thumb {
  width: 64px; height: 64px; border-radius: 12px;
  overflow: hidden; border: 2px solid var(--border);
  cursor: pointer; padding: 0; background: none;
  transition: border-color var(--transition);
}
.product-thumb.active { border-color: var(--color-primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info { display: flex; flex-direction: column; gap: 20px; }
.product-detail-brand {
  font-size: 9px; font-weight: 900; color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px;
}
.product-detail-name {
  font-size: 24px; font-weight: 900; color: var(--text-main);
  letter-spacing: -1px; line-height: 1.2; margin: 0 0 4px;
}
.product-detail-sku { font-size: 10px; color: var(--text-muted); font-family: monospace; }
.product-rating-row {
  display: flex; align-items: center; gap: 12px;
}
.stock-status { font-size: 10px; font-weight: 900; }
.stock-status.in-stock { color: #10b981; }
.stock-status.low-stock { color: #f97316; }
.stock-status.out-stock { color: #ef4444; }

.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 20px;
}
.price-main {
  font-size: 32px; font-weight: 900; color: var(--text-main);
  letter-spacing: -2px;
}
.price-old {
  font-size: 18px; color: var(--text-muted);
  text-decoration: line-through; font-weight: 700;
}
.price-discount {
  font-size: 11px; font-weight: 900; color: #ef4444;
  background: #fef2f2; padding: 2px 8px; border-radius: 8px;
}
.price-note { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

.qty-row { display: flex; gap: 10px; }
.qty-ctrl {
  display: flex; align-items: center;
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.qty-btn {
  width: 44px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  color: var(--text-muted); cursor: pointer;
  font-size: 18px; transition: all var(--transition);
}
.qty-btn:hover { color: var(--color-primary); }
.qty-val {
  width: 44px; text-align: center;
  font-weight: 900; color: var(--text-main); font-size: 16px;
}
.btn-add-cart-lg {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 900; border-radius: 12px; border: none;
  font-size: 14px; height: 48px;
  background: var(--color-primary); color: #fff; cursor: pointer;
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb),0.4);
  transition: all var(--transition); font-family: inherit;
}
.btn-add-cart-lg:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(var(--color-primary-rgb),0.5); }
.btn-add-cart-lg:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-fav-lg {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 2px solid var(--border);
  background: var(--bg-card); cursor: pointer;
  transition: all var(--transition);
}
.btn-fav-lg.active { background: #ef4444; border-color: #ef4444; }

.product-share-row { display: flex; gap: 8px; }
.btn-share, .btn-whatsapp {
  flex: 1; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  height: 44px; border-radius: 12px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all var(--transition);
}
.btn-share {
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-main);
}
.btn-share:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-whatsapp { border: none; background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #22c35e; }

.notify-stock-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 16px;
}
.notify-stock-title {
  font-size: 11px; font-weight: 900;
  color: var(--text-main); margin-bottom: 10px;
}
.notify-stock-row { display: flex; gap: 8px; }
.notify-stock-input {
  flex: 1; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px; font-size: 11px;
  color: var(--text-main); outline: none; font-family: inherit;
}
.notify-stock-btn {
  padding: 8px 16px; background: var(--color-primary);
  color: #fff; border: none; border-radius: 10px;
  cursor: pointer; font-weight: 900; font-size: 11px;
  font-family: inherit;
}
.notify-success { font-size: 9px; color: #10b981; margin-top: 6px; }

.specs-table { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.specs-table-header {
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.specs-table-header span {
  font-size: 10px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-main);
}
.specs-row {
  display: flex; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
}
.specs-row:last-child { border-bottom: none; }
.specs-key {
  font-size: 10px; font-weight: 900;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px;
}
.specs-val { font-size: 12px; font-weight: 900; color: var(--text-main); }

.delivery-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
}
.delivery-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 12px; text-align: center;
}
.delivery-val { font-size: 11px; font-weight: 900; color: var(--text-main); margin-top: 4px; }
.delivery-label { font-size: 9px; color: var(--text-muted); }

.ai-analysis-box {
  padding: 16px; border-radius: 16px;
  border: 1px solid var(--color-primary-border);
  background: var(--color-primary-light);
}
.ai-analysis-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.ai-analysis-icon {
  width: 24px; height: 24px; background: var(--color-primary);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.ai-analysis-title {
  font-size: 10px; font-weight: 900; color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 2px;
}
.ai-analysis-text { font-size: 11px; color: var(--color-primary); line-height: 1.6; margin: 0; }
.ai-analysis-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 900; color: var(--color-primary);
  background: none; border: none; cursor: pointer;
  margin-top: 8px; font-family: inherit;
}

.related-section { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
.related-section h2 {
  font-size: 18px; font-weight: 900; color: var(--text-main);
  margin: 0 0 20px; letter-spacing: -0.5px;
}

/* ── SEPET ──────────────────────────────────────────────── */
.cart-page { background: var(--bg-app); min-height: 100vh; padding-top: calc(var(--header-h) + 30px); }
.cart-inner { max-width: 960px; margin: 0 auto; padding: 32px 16px; }
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.page-header h1 {
  font-size: 24px; font-weight: 900; color: var(--text-main);
  letter-spacing: -1px; margin: 0;
}
.btn-back {
  display: flex; align-items: center; gap: 4px;
  color: var(--color-primary); background: none; border: none;
  cursor: pointer; font-size: 12px; font-weight: 700; font-family: inherit;
  text-decoration: none;
}
.cart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.cart-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 16px;
  display: flex; gap: 16px;
}
.cart-item-img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-brand {
  font-size: 9px; font-weight: 900; color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 2px;
}
.cart-item-name { font-weight: 700; color: var(--text-main); font-size: 13px; margin: 2px 0 8px; }
.cart-item-qty {
  display: flex; align-items: center;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.cart-qty-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  color: var(--text-muted); transition: all var(--transition);
}
.cart-qty-btn:hover { color: var(--color-primary); }
.cart-qty-val { width: 32px; text-align: center; font-weight: 900; font-size: 12px; color: var(--text-main); }
.cart-item-price { font-weight: 900; color: var(--text-main); font-size: 16px; }
.btn-remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); align-self: flex-start;
  transition: color var(--transition);
}
.btn-remove:hover { color: #ef4444; }
.cart-summary-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 20px;
  height: fit-content; position: sticky; top: 80px;
}
.cart-summary-title {
  font-weight: 900; color: var(--text-main); font-size: 13px;
  text-transform: uppercase; letter-spacing: 2px;
  margin: 0 0 16px;
}
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-muted); margin-bottom: 8px;
}
.summary-row span:last-child { font-weight: 700; }
.summary-row.free { color: #10b981; }
.summary-row.discount { color: #10b981; }
.summary-total {
  display: flex; justify-content: space-between;
  font-weight: 900; color: var(--text-main); font-size: 18px;
  border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 16px;
}
.coupon-row {
  display: flex; gap: 8px; margin-bottom: 16px;
  padding: 10px; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: 12px;
}
.coupon-input {
  flex: 1; background: transparent; border: none;
  font-size: 11px; color: var(--text-main); outline: none; font-weight: 700;
}
.btn-primary {
  background: var(--color-primary); color: #fff; border: none;
  border-radius: var(--radius-btn); cursor: pointer;
  font-family: inherit; font-weight: 900;
  transition: all var(--transition);
}
.btn-primary:hover { filter: brightness(1.1); }

/* ── CHECKOUT ───────────────────────────────────────────── */
.checkout-page { background: var(--bg-app); min-height: 100vh; padding-top: calc(var(--header-h) + 30px); }
.checkout-inner { max-width: 960px; margin: 0 auto; padding: 32px 16px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.checkout-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 20px;
  margin-bottom: 16px;
}
.checkout-card-title {
  font-size: 12px; font-weight: 900; color: var(--text-main);
  text-transform: uppercase; letter-spacing: 2px; margin: 0 0 16px;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { margin-bottom: 12px; }
.form-label {
  font-size: 9px; font-weight: 900; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 2px;
  display: block; margin-bottom: 6px;
}
.form-input-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px;
  transition: border-color var(--transition);
}
.form-input-wrap:focus-within { border-color: var(--color-primary); }
.form-input {
  flex: 1; background: transparent; border: none;
  font-size: 11px; color: var(--text-main); outline: none;
  font-weight: 500; font-family: inherit;
}
.form-input::placeholder { color: var(--text-muted); }
.payment-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 12px;
  border: 2px solid var(--border); cursor: pointer;
  margin-bottom: 8px; transition: all var(--transition);
}
.payment-option.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.payment-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--transition);
}
.payment-option.active .payment-radio {
  border-color: var(--color-primary); background: var(--color-primary);
}
.payment-radio-dot {
  width: 6px; height: 6px; background: #fff; border-radius: 50%;
}
.payment-label { font-size: 12px; font-weight: 700; color: var(--text-main); flex: 1; }
.payment-note { font-size: 10px; font-weight: 700; }
.bank-info-box {
  background: var(--bg-sub); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
  font-family: monospace; font-size: 11px;
  line-height: 1.8; margin-top: 12px;
}
.bank-info-title {
  font-size: 9px; font-weight: 900; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
  font-family: inherit;
}
.dekont-area {
  border: 2px dashed var(--border); border-radius: 14px;
  padding: 20px; cursor: pointer; text-align: center;
  transition: all var(--transition); margin-top: 12px;
}
.dekont-area:hover, .dekont-area.has-file {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.dekont-area input[type=file] { display: none; }
.invoice-toggle {
  display: flex; gap: 4px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px;
}
.invoice-toggle-btn {
  flex: 1; padding: 8px 0; 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;
}
.invoice-toggle-btn.active {
  background: var(--color-primary); color: #fff;
}
.vkn-feedback { font-size: 9px; margin-top: 4px; }
.vkn-ok { color: #10b981; }
.vkn-err { color: #ef4444; }
.corporate-fields { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.corporate-warning {
  background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.2);
  border-radius: 10px; padding: 8px 12px;
  font-size: 10px; color: #f97316; font-weight: 600;
}
.checkout-summary-items {
  max-height: 180px; overflow-y: auto;
  margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px;
}
.summary-item {
  display: flex; gap: 10px; align-items: center;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.summary-item:last-child { border-bottom: none; padding-bottom: 0; }
.summary-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.summary-item-name {
  font-size: 10px; font-weight: 700; color: var(--text-main);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1;
}
.summary-item-qty { font-size: 10px; color: var(--text-muted); }
.summary-item-price { font-size: 11px; font-weight: 900; color: var(--text-main); flex-shrink: 0; }
.guest-upsell {
  border-radius: 16px; padding: 20px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
}
.guest-upsell-emoji { font-size: 32px; }
.guest-upsell-text h4 { font-weight: 900; color: #fff; font-size: 14px; margin: 0 0 4px; }
.guest-upsell-text p { font-size: 11px; color: #93c5fd; margin: 0; }
.btn-upsell {
  background: #fff; color: #2563eb; border: none;
  font-weight: 900; font-size: 11px;
  padding: 8px 16px; border-radius: 10px; cursor: pointer;
  flex-shrink: 0; font-family: inherit;
}
.btn-confirm {
  width: 100%; padding: 16px; font-weight: 900; font-size: 14px;
  background: var(--color-primary); color: #fff; border: none;
  border-radius: var(--radius-btn); cursor: pointer;
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb),0.4);
  font-family: inherit; transition: all var(--transition);
}
.btn-confirm:hover { transform: translateY(-2px); }
.secure-note {
  text-align: center; font-size: 10px;
  color: var(--text-muted); margin-top: 10px;
}

/* ── BİLDİRİM (TOAST) ───────────────────────────────────── */
#mta-toast-wrap {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  z-index: 9000; display: flex; flex-direction: column;
  gap: 8px; pointer-events: none; min-width: 280px;
}
.mta-toast {
  background: var(--color-primary); color: #fff;
  padding: 12px 20px; border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; text-align: center;
  animation: slideDown 0.25s ease;
}

/* ── DOCK (SOL PANEL) ───────────────────────────────────── */
#mta-dock {
  position: fixed; left: 12px; top: 50%;
  transform: translateY(-50%);
  z-index: 400; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.dock-toggle {
  width: 44px; height: 44px; border-radius: 14px;
  border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all var(--transition);
}
.dock-menu {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 8px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: slideDown 0.2s ease;
}
.dock-item {
  width: 44px; height: 44px; border-radius: 10px;
  border: none; background: transparent;
  color: var(--text-muted); display: flex; align-items: center;
  justify-content: center; cursor: pointer;
  position: relative; transition: all 0.15s;
}
.dock-item:hover { background: var(--color-primary-light); color: var(--color-primary); }
.dock-tooltip {
  position: absolute; left: 52px;
  background: var(--bg-inv); color: var(--text-inv);
  font-size: 9px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 2px; padding: 5px 12px; border-radius: 8px;
  pointer-events: none; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0; transition: opacity 0.15s;
}
.dock-item:hover .dock-tooltip { opacity: 1; }

/* ── FİLTRE PANEL ───────────────────────────────────────── */
.panel-overlay {
  position: fixed; inset: 0; z-index: 600;
  display: flex; justify-content: flex-end;
}
.panel-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
}
.panel-drawer {
  position: relative; width: 320px; background: var(--bg-card);
  height: 100%; border-left: 1px solid var(--border);
  padding: 24px; display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.1);
  animation: slideDown 0.35s ease;
  overflow-y: auto;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.panel-header h3 {
  font-weight: 900; color: var(--text-main); font-size: 18px;
  margin: 0; letter-spacing: -0.5px;
}
.btn-close-panel {
  width: 32px; height: 32px; background: var(--bg-input);
  border: none; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
}
.filter-section-title {
  font-size: 9px; font-weight: 900; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 10px;
}
.filter-brand-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
  transition: background var(--transition);
}
.filter-brand-item:hover, .filter-brand-item.active {
  background: var(--color-primary-light);
}
.filter-checkbox {
  width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--transition);
}
.filter-brand-item.active .filter-checkbox {
  border-color: var(--color-primary); background: var(--color-primary);
}
.filter-brand-label {
  font-size: 11px; font-weight: 700; color: var(--text-main);
  text-transform: uppercase; letter-spacing: 1px;
}
.panel-footer { display: flex; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); margin-top: auto; }

/* ── TEMA PANELİ ────────────────────────────────────────── */
.theme-panel { width: 300px; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.theme-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 12px; border-radius: 14px;
  border: 2px solid transparent; cursor: pointer;
  transition: border-color var(--transition);
}
.theme-btn.active { border-color: var(--color-primary); }
.theme-btn-icon { font-size: 20px; }
.theme-btn-label {
  font-size: 8px; font-weight: 900; text-transform: uppercase;
  color: #94a3b8;
}
.theme-btn.active .theme-btn-label { color: var(--color-primary); }
.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all var(--transition);
}
.color-swatch.active {
  border-color: #fff; outline: 3px solid currentColor; outline-offset: 2px;
}
.custom-color-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.color-picker-circle {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid transparent;
  overflow: hidden; cursor: pointer; position: relative;
  flex-shrink: 0; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.color-picker-circle.active { border-color: #fff; }
.color-picker-circle input[type=color] {
  position: absolute; width: 60px; height: 60px;
  border: none; padding: 0; cursor: pointer; opacity: 0.01;
}
.hex-input-wrap {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 12px;
  transition: border-color var(--transition);
}
.hex-input-wrap.active { border-color: var(--color-primary); }
.hex-color-dot {
  width: 12px; height: 12px; border-radius: 3px;
  flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.hex-input {
  flex: 1; background: transparent; border: none;
  font-size: 12px; color: var(--text-main); outline: none;
  font-family: monospace; font-weight: 700; letter-spacing: 1px;
}
.quick-colors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick-color-btn {
  width: 28px; height: 28px; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition);
}
.quick-color-btn.active {
  border-color: #fff; outline: 2px solid currentColor; outline-offset: 1px;
}
.btn-apply-color {
  width: 100%; padding: 10px 0; margin-top: 12px;
  color: #fff; border: none; border-radius: 12px;
  font-weight: 900; font-size: 11px; cursor: pointer;
  text-transform: uppercase; letter-spacing: 2px;
  font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--transition);
}

/* ── AI CHAT ────────────────────────────────────────────── */
#mta-ai-chat {
  position: fixed; inset: 0; z-index: 800;
  display: flex; align-items: flex-end; justify-content: center;
  display: none;
}
#mta-ai-chat.open { display: flex; }
.ai-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
}
.ai-panel {
  position: relative; width: 100%; max-width: 420px;
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 48px rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  height: min(560px, 90vh);
  animation: slideUp 0.35s ease;
}
.ai-header {
  padding: 16px; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  border-radius: 20px 20px 0 0; flex-shrink: 0;
}
.ai-avatar {
  width: 40px; height: 40px; background: var(--color-primary);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb),0.5); flex-shrink: 0;
}
.ai-status-dot { width: 6px; height: 6px; background: #10b981; border-radius: 50%; }
.ai-status-text {
  font-size: 9px; color: rgba(255,255,255,0.5);
  font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
}
.ai-suggestions {
  flex-shrink: 0; display: flex; gap: 8px;
  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;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); padding: 5px 12px; border-radius: 10px;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  transition: all var(--transition);
}
.ai-suggestion-btn:hover {
  background: var(--color-primary-light); color: var(--color-primary);
  border-color: var(--color-primary);
}
.ai-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.ai-msg-row { display: flex; }
.ai-msg-row.user { justify-content: flex-end; }
.ai-msg-row.bot  { justify-content: flex-start; }
.ai-msg-avatar {
  width: 28px; height: 28px; background: var(--color-primary);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  margin-right: 8px; margin-top: 2px; flex-shrink: 0;
}
.ai-bubble {
  max-width: 78%; padding: 10px 14px;
  font-size: 12px; line-height: 1.6; font-weight: 500;
  border: 1px solid var(--border);
}
.ai-bubble.user {
  border-radius: 16px 16px 4px 16px;
  background: var(--color-primary); color: #fff; border: none;
}
.ai-bubble.bot {
  border-radius: 16px 16px 16px 4px;
  background: var(--bg-sub); color: var(--text-main);
}
.ai-typing { display: flex; align-items: center; gap: 4px; padding-left: 36px; }
.ai-typing-dot {
  width: 8px; height: 8px; background: var(--color-primary);
  border-radius: 50%;
}
.ai-input-wrap {
  flex-shrink: 0; padding: 12px; border-top: 1px solid var(--border);
}
.ai-input-row { display: flex; gap: 8px; }
.ai-input {
  flex: 1; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; font-size: 11px;
  color: var(--text-main); outline: none; font-weight: 500; font-family: inherit;
  transition: border-color var(--transition);
}
.ai-input:focus { border-color: var(--color-primary); }
.ai-send-btn {
  width: 40px; height: 40px; background: var(--bg-input);
  border: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition);
}
.ai-send-btn.ready { background: var(--color-primary); }
.ai-contact {
  text-align: center; font-size: 9px; color: var(--text-muted);
  margin-top: 6px; display: flex; align-items: center;
  justify-content: center; gap: 4px;
}

/* ── FREE ROAM ──────────────────────────────────────────── */
#free-roam-view {
  position: fixed; inset: 0;
  padding-top: var(--header-h);
  overflow: hidden; cursor: grab;
  touch-action: none; user-select: none;
}
#free-roam-view.dragging { cursor: grabbing; }
.roam-hint {
  position: absolute; top: 72px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 20px;
  display: flex; align-items: center; gap: 8px;
  z-index: 10; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  white-space: nowrap;
}
.roam-coords {
  position: absolute; top: 72px; right: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px 12px;
  font-size: 9px; font-family: monospace; color: var(--text-muted);
  z-index: 10;
}
/* Minimap */
.roam-minimap {
  position: absolute; top: 72px; left: 16px;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(12px);
  border-radius: 14px; padding: 10px;
  z-index: 20; width: 130px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.minimap-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.minimap-label {
  font-size: 7px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 2px; color: rgba(var(--color-primary-rgb),0.7);
}
.minimap-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-primary);
  animation: pulse 2s infinite;
}
.minimap-canvas {
  position: relative; width: 100%; height: 70px;
  overflow: hidden; border-radius: 8px;
  background: rgba(255,255,255,0.03);
}
.minimap-product-dot { border-radius: 1px; }
.minimap-viewport {
  position: absolute;
  border: 1.5px solid var(--color-primary);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(var(--color-primary-rgb),0.6),
              inset 0 0 6px rgba(var(--color-primary-rgb),0.1);
  pointer-events: none;
  transition: left 0.05s, top 0.05s;
}
.minimap-footer {
  display: flex; justify-content: space-between; margin-top: 6px;
}
.minimap-size { font-size: 7px; color: rgba(255,255,255,0.3); font-family: monospace; }
.minimap-count { font-size: 7px; font-family: monospace; font-weight: 700; }
/* Joystick */
.roam-joystick-wrap {
  position: absolute; bottom: 32px; right: 24px; z-index: 30;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.roam-joystick-base {
  width: 88px; height: 88px; background: var(--bg-card);
  border: 2px solid var(--border); 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.15);
}
.roam-joystick-knob {
  width: 36px; height: 36px; background: var(--color-primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb),0.5);
}
.roam-canvas {
  position: absolute;
  will-change: transform;
}
.roam-joystick-label {
  font-size: 8px; font-weight: 900; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 2px;
}

/* ── 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 {
  height: 56px; border-radius: 12px; border: none;
  font-size: 14px; font-weight: 900; cursor: pointer;
  font-family: inherit; transition: all var(--transition);
}
.calc-btn:active { transform: scale(0.95); }
.calc-btn-num { background: var(--bg-input); color: var(--text-main); }
.calc-btn-op  { background: rgba(var(--color-primary-rgb),0.12); color: var(--color-primary); }
.calc-btn-eq  { background: var(--color-primary); color: #fff; box-shadow: 0 4px 12px rgba(var(--color-primary-rgb),0.4); }
.calc-btn-clear { background: rgba(239,68,68,0.12); color: #ef4444; }
.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; }
  .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 gizle */
  #mta-dock { display: none; }

  /* 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; }
  .product-card-img-wrap { height: 160px; }
  .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 */
  .trust-bar-inner,
  .toolbar-right,
  .header-inner {
    flex-wrap: wrap !important;
  }
  /* 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;
}

/* ── MOBİL DOCK — göster, küçük FAB olarak sol alta ──────── */
@media (max-width: 768px) {
  #mta-dock {
    display: flex !important;
    left: 10px;
    /* Mobil nav'ın üstünde dur */
    bottom: 70px;
    top: auto;
    transform: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  #mta-dock .dock-menu {
    display: none; /* Orijinal menü gizli kalır, JS bottom sheet açar */
  }
  .dock-toggle {
    width: 40px; height: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  }
}

/* ── ÜRÜN KARTI — tıklanabilirliği artır ─────────────────── */
.product-card {
  cursor: pointer;
}
.product-card-img-wrap a,
a.product-name {
  display: block;
}

/* ── 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;
}
body {
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}
