/* ==========================================================================
   KodlaETicaret - Modern & Lüks Tasarım Sistemi (Vanilla CSS + Bootstrap 5)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Renk Paleti */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-subtle: #eff6ff;
  --primary-border: #bfdbfe;
  
  --b2b-gold: #d97706;
  --b2b-bg: #fffbeb;
  --b2b-border: #fde68a;
  
  --secondary: #64748b;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --whatsapp: #25d366;
  --whatsapp-hover: #128c7e;

  /* Gölgeler */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

body {
  font-family: var(--font-main);
  background-color: var(--light-bg);
  color: #334155;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
}

/* ==========================================================================
   Üst Bilgi Çubuğu & Header
   ========================================================================== */
.top-notice-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-notice-bar a {
  color: #93c5fd;
}
.top-notice-bar a:hover {
  color: #ffffff;
}

.main-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.main-navbar.sticky-top {
  box-shadow: var(--shadow-md);
}

.brand-logo {
  font-size: 1.30rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo:hover {
  color: var(--dark);
}
.brand-logo .brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.brand-logo .site-img-logo {
  max-height: 58px;
  max-width: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.brand-logo .badge-b2b {
  font-size: 0.65rem;
  background: var(--b2b-gold);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.search-box-wrap {
  position: relative;
  max-width: 320px;
  width: 100%;
}
.search-box-input {
  border-radius: 9999px;
  padding: 7px 38px 7px 16px;
  border: 1px solid var(--border-color);
  background-color: #f1f5f9;
  font-size: 0.86rem;
  height: 36px;
  transition: all 0.2s ease;
}
.search-box-input:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}
.search-box-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.cart-btn-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  flex-shrink: 0;
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* Mini Sepet Hover Modalı */
.mini-cart-wrapper {
  position: relative;
}
.mini-cart-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 330px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1080;
  pointer-events: none;
}
/* Mouse butondan açılır menüye geçerken kapanmayı engelleyen görünmez köprü */
.mini-cart-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.mini-cart-wrapper:hover .mini-cart-dropdown,
.mini-cart-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
  pointer-events: auto;
}
.mini-cart-items-list::-webkit-scrollbar {
  width: 4px;
}
.mini-cart-items-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.mini-cart-item {
  transition: background-color 0.15s ease;
  border-radius: 6px;
  padding-left: 4px;
  padding-right: 4px;
}
.mini-cart-item:hover {
  background-color: #f8fafc;
}

/* Kategori Gezinme Barı (Scroll Çıkmaz, Sığmayan Alta İner) */
.category-nav-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
  overflow: visible !important;
}
.category-nav-link {
  font-weight: 600;
  font-size: 0.86rem;
  color: #475569;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
  margin: 2px 0;
}
.category-nav-link:hover, .category-nav-link.active {
  color: var(--primary);
  background: var(--primary-subtle);
}

/* ==========================================================================
   Hero & Banner Alanları
   ========================================================================== */
.hero-banner-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
  color: white;
  padding: 60px 0;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}
.hero-banner-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, rgba(37,99,235,0) 70%);
  border-radius: 50%;
}
.hero-badge-b2b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--b2b-gold);
  color: #fde68a;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}

.feature-pill-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.feature-pill-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}
.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ==========================================================================
   Ürün Kartları (E-Ticaret & B2B)
   ========================================================================== */
.product-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.product-img-wrap {
  position: relative;
  padding-top: 80%; /* 4:3 veya 1:1 oranı */
  background: #f8fafc;
  overflow: hidden;
}
.product-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.badge-custom {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-b2b-price {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3);
}
.badge-discount {
  background: #ef4444;
  color: white;
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-cat-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 6px 0 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-box {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}
.price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.price-old {
  font-size: 0.9rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 6px;
}
.price-b2b-notice {
  font-size: 0.78rem;
  color: var(--b2b-gold);
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.btn-whatsapp-sm {
  background: #25d366;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}
.btn-whatsapp-sm:hover {
  background: #128c7e;
  color: white;
  transform: scale(1.05);
}

/* ==========================================================================
   B2B Özel Bileşenler & Kutular
   ========================================================================== */
.b2b-callout-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid var(--b2b-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
}
.b2b-callout-badge {
  background: var(--b2b-gold);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 12px;
}

.b2b-pricing-table {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--b2b-border);
  overflow: hidden;
}

/* ==========================================================================
   Ödeme (Checkout) Sayfası Stilleri
   ========================================================================== */
.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}
.checkout-step-item {
  flex: 1;
  text-align: center;
  position: relative;
}
.checkout-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}
.checkout-step-item.active .checkout-step-num {
  background: var(--primary);
  color: white;
}
.checkout-step-item.completed .checkout-step-num {
  background: var(--success);
  color: white;
}

.payment-method-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  margin-bottom: 12px;
}
.payment-method-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}
.payment-method-card.selected {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.bank-iban-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.copy-iban-btn {
  background: #e2e8f0;
  border: none;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.copy-iban-btn:hover {
  background: #cbd5e1;
}

/* ==========================================================================
   Sabit WhatsApp Floating Butonu
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  z-index: 1050;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-whatsapp-btn:hover {
  transform: scale(1.12);
  color: white;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
.floating-whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--dark);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}
.floating-whatsapp-btn:hover .floating-whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

/* ==========================================================================
   KVKK & Çerez İzin Barı
   ========================================================================== */
.cookie-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  padding: 16px 24px;
  z-index: 1080;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  display: none;
  font-size: 0.9rem;
}
.cookie-consent-bar a {
  color: #93c5fd;
  text-decoration: underline;
}

/* ==========================================================================
   Hesabım / Profil Paneli Stilleri
   ========================================================================== */
.account-nav-pills .nav-link {
  color: #475569;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}
.account-nav-pills .nav-link i {
  width: 20px;
  text-align: center;
}
.account-nav-pills .nav-link:hover {
  background: #f1f5f9;
  color: var(--primary);
}
.account-nav-pills .nav-link.active {
  background: var(--primary);
  color: white;
}

/* Kredi Kartı Görseli (3D Kart Simülatörü) */
.credit-card-preview {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 24px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.credit-card-preview::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.card-chip {
  width: 45px;
  height: 32px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border-radius: 6px;
}
.card-number-display {
  font-size: 1.25rem;
  letter-spacing: 3px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 20px 0;
  margin-top: 80px;
  font-size: 0.9rem;
}
.main-footer h5 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
}
.main-footer a {
  color: #cbd5e1;
}
.main-footer a:hover {
  color: #ffffff;
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  margin-top: 40px;
  color: #ffffff !important;
}
.footer-bottom a {
  color: #ffffff !important;
}
.footer-bottom a:hover {
  color: #38bdf8 !important;
  text-decoration: underline !important;
}

/* Yazdırma Modu (Fatura İçin) */
@media print {
  .no-print, .main-navbar, .main-footer, .floating-whatsapp-btn, .cookie-consent-bar, .floating-announcement-wrap {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}

/* ==========================================================================
   DARK MODE (Koyu Mod - Yüksek Kontrast, Kristal Netliğinde Görünürlük)
   ========================================================================== */
[data-bs-theme="dark"] {
  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --primary-subtle: rgba(56, 189, 248, 0.14);
  --primary-border: rgba(56, 189, 248, 0.4);
  --dark: #f8fafc;
  --light-bg: #0f172a;
  --card-bg: #1e293b;
  --border-color: #334155;
  --secondary: #cbd5e1;
}

[data-bs-theme="dark"] body {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

/* Üst Duyuru Barı */
[data-bs-theme="dark"] .top-notice-bar {
  background: #020617 !important;
  border-bottom: 1px solid #1e293b !important;
  color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .top-notice-bar a {
  color: #38bdf8 !important;
}
[data-bs-theme="dark"] .top-notice-bar a:hover {
  color: #ffffff !important;
}

/* Ana Navigasyon & Kategori Barı */
[data-bs-theme="dark"] .main-navbar {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
}
[data-bs-theme="dark"] .category-nav-bar {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
}
[data-bs-theme="dark"] .brand-logo {
  color: #ffffff !important;
}
[data-bs-theme="dark"] .brand-logo:hover {
  color: #ffffff !important;
}
[data-bs-theme="dark"] .category-nav-link {
  color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .category-nav-link:hover,
[data-bs-theme="dark"] .category-nav-link.active {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.15) !important;
}

/* Arama Çubuğu */
[data-bs-theme="dark"] .search-box-input {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}
[data-bs-theme="dark"] .search-box-input:focus {
  background-color: #0f172a !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

/* Kartlar & Ürün Kutuları */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .product-card,
[data-bs-theme="dark"] .feature-pill-card,
[data-bs-theme="dark"] .stat-card {
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
[data-bs-theme="dark"] .product-card:hover,
[data-bs-theme="dark"] .feature-pill-card:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.25) !important;
  transform: translateY(-3px);
}
[data-bs-theme="dark"] .product-card-title,
[data-bs-theme="dark"] .product-card-title a {
  color: #f8fafc !important;
  font-weight: 600;
}
[data-bs-theme="dark"] .product-card-title a:hover {
  color: #38bdf8 !important;
}
[data-bs-theme="dark"] .price-current {
  color: #38bdf8 !important;
  font-weight: 700;
}
[data-bs-theme="dark"] .price-old {
  color: #94a3b8 !important;
}
[data-bs-theme="dark"] .product-img-wrap {
  background-color: #0f172a !important;
  border-bottom: 1px solid #334155 !important;
}
[data-bs-theme="dark"] .b2b-price-box {
  background: rgba(251, 191, 36, 0.12) !important;
  border: 1px solid #d97706 !important;
  color: #fde68a !important;
}
[data-bs-theme="dark"] .b2b-callout-card {
  background: linear-gradient(135deg, #1c170a 0%, #2f2307 100%) !important;
  border-color: #d97706 !important;
  color: #fef08a !important;
}
[data-bs-theme="dark"] .b2b-callout-card h3 {
  color: #fef9c3 !important;
}

/* Butonlar */
[data-bs-theme="dark"] .btn-light {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}
[data-bs-theme="dark"] .btn-light:hover {
  background-color: #334155 !important;
  border-color: #64748b !important;
  color: #ffffff !important;
}
[data-bs-theme="dark"] .btn-outline-primary {
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
}
[data-bs-theme="dark"] .btn-outline-primary:hover {
  background-color: #38bdf8 !important;
  color: #0f172a !important;
  font-weight: 700;
}
[data-bs-theme="dark"] .btn-outline-secondary {
  border-color: #475569 !important;
  color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background-color: #334155 !important;
  color: #ffffff !important;
}

/* Formlar & Seçiciler */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background-color: #0f172a !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
  color: #ffffff !important;
}
[data-bs-theme="dark"] .form-control::placeholder {
  color: #94a3b8 !important;
}

/* Tablolar */
[data-bs-theme="dark"] .table {
  color: #f8fafc !important;
  border-color: #334155 !important;
}
[data-bs-theme="dark"] .table>thead,
[data-bs-theme="dark"] .table>thead>tr>th {
  background-color: #1e293b !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}
[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .table-light th,
[data-bs-theme="dark"] .table-light td {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
[data-bs-theme="dark"] .table-hover>tbody>tr:hover {
  background-color: rgba(56, 189, 248, 0.08) !important;
  color: #ffffff !important;
}

/* Modallar & Açılır Menüler */
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .dropdown-menu {
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}
[data-bs-theme="dark"] .dropdown-item {
  color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
  background-color: #334155 !important;
  color: #38bdf8 !important;
}
[data-bs-theme="dark"] .dropdown-divider {
  border-color: #334155 !important;
}

/* Mini Sepet Modalı Dark Mode */
[data-bs-theme="dark"] .mini-cart-dropdown {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}
[data-bs-theme="dark"] .mini-cart-dropdown .text-dark {
  color: #f8fafc !important;
}
[data-bs-theme="dark"] .mini-cart-dropdown .border-bottom {
  border-color: #334155 !important;
}
[data-bs-theme="dark"] .mini-cart-item:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}
[data-bs-theme="dark"] .mini-cart-items-list::-webkit-scrollbar-thumb {
  background: #475569;
}

/* Banka Havale & Ödeme Alanları */
[data-bs-theme="dark"] .bank-iban-box {
  background-color: #0f172a !important;
  border-color: #334155 !important;
}
[data-bs-theme="dark"] .payment-method-card {
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
}
[data-bs-theme="dark"] .payment-method-card.selected {
  border-color: #38bdf8 !important;
  background-color: rgba(56, 189, 248, 0.12) !important;
}

/* Sekmeler, Listeler & Rozetler */
[data-bs-theme="dark"] .nav-tabs {
  border-color: #334155 !important;
}
[data-bs-theme="dark"] .nav-tabs .nav-link {
  color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .nav-tabs .nav-link.active {
  background-color: #1e293b !important;
  border-color: #334155 #334155 #1e293b !important;
  color: #38bdf8 !important;
  font-weight: 600;
}
[data-bs-theme="dark"] .nav-pills .nav-link {
  color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .nav-pills .nav-link.active {
  background-color: #2563eb !important;
  color: #ffffff !important;
}
[data-bs-theme="dark"] .list-group-item {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .list-group-item-action:hover {
  background-color: #334155 !important;
  color: #38bdf8 !important;
}
[data-bs-theme="dark"] .list-group-item.active {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

/* Genel Tipografi & Yardımcı Sınıf Düzenlemeleri */
[data-bs-theme="dark"] .text-muted {
  color: #94a3b8 !important;
}
[data-bs-theme="dark"] .text-dark {
  color: #f8fafc !important;
}
[data-bs-theme="dark"] .text-secondary {
  color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .bg-white {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}
[data-bs-theme="dark"] .bg-light {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}
[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-start,
[data-bs-theme="dark"] .border-end {
  border-color: #334155 !important;
}
[data-bs-theme="dark"] .main-footer {
  background-color: #090d16 !important;
  border-top: 1px solid #1e293b !important;
}
[data-bs-theme="dark"] .main-footer h5 {
  color: #f8fafc !important;
}
[data-bs-theme="dark"] .main-footer p,
[data-bs-theme="dark"] .main-footer li a {
  color: #94a3b8 !important;
}
[data-bs-theme="dark"] .main-footer li a:hover {
  color: #38bdf8 !important;
}
[data-bs-theme="dark"] .footer-bottom {
  border-top: 1px solid #1e293b !important;
  color: #ffffff !important;
}
[data-bs-theme="dark"] .footer-bottom a {
  color: #ffffff !important;
}
[data-bs-theme="dark"] .footer-bottom a:hover {
  color: #38bdf8 !important;
}


/* ==========================================================================
   DUYURU BALONU (Floating Announcement Bubble & Popup Card)
   ========================================================================== */
.floating-announcement-wrap {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1055;
}

.floating-announcement-trigger {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.45);
  cursor: pointer;
  border: 3px solid white;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulse-glow 2.5s infinite;
}
.floating-announcement-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.announcement-popup-card {
  position: absolute;
  bottom: 68px;
  left: 0;
  width: 330px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0,0,0,0.06);
  padding: 20px;
  display: none;
  animation: slideUpFade 0.3s ease forwards;
  z-index: 1060;
  border: 1px solid var(--border-color);
}
[data-bs-theme="dark"] .announcement-popup-card {
  background: #111827;
  border-color: #374151;
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.6);
}

.announcement-popup-card.show {
  display: block;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.announcement-coupon-badge {
  background: #fef3c7;
  border: 1px dashed #d97706;
  color: #92400e;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
[data-bs-theme="dark"] .announcement-coupon-badge {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fde68a;
}
.announcement-coupon-badge:hover {
  background: #fde68a;
}

/* ==========================================================================
   HERO CAROUSEL SLIDER Stilleri
   ========================================================================== */
.hero-slider-carousel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}
.hero-slider-item {
  min-height: 440px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.35) 100%);
  z-index: 1;
}
.hero-slider-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 60px 40px;
  max-width: 680px;
}
.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

/* ==========================================================================
   MOBİL ALT GEZİNME BARI (Mobile Bottom Navigation Bar)
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1040;
}

.mobile-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 4px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: #64748b;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 4px 0;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
  color: var(--primary);
}

.mobile-nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

.mobile-nav-icon {
  font-size: 1.15rem;
  line-height: 1;
  margin-bottom: 3px;
  position: relative;
}

.mobile-nav-label {
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: -0.2px;
}

.mobile-nav-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--danger);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9999px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* ==========================================================================
   MOBİL KOMPAKT TASARIM DÜZENLEMELERİ (< 992px)
   ========================================================================== */
@media (max-width: 991.98px) {
  /* 1. Temel Ölçekleme (Base Scaling - Dengeli ve Okunaklı) */
  html {
    font-size: 15px !important;
  }
  
  body {
    font-size: 0.92rem;
    line-height: 1.5;
    padding-bottom: 68px !important;
  }

  /* 2. Başlık ve Metin Boyutları */
  h1, .h1 { font-size: 1.5rem !important; }
  h2, .h2 { font-size: 1.35rem !important; }
  h3, .h3 { font-size: 1.22rem !important; }
  h4, .h4 { font-size: 1.08rem !important; }
  h5, .h5 { font-size: 0.96rem !important; }
  h6, .h6 { font-size: 0.88rem !important; }
  .lead { font-size: 0.92rem !important; }

  /* 3. Genel Spacing & Padding */
  .container.my-4 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
  .mb-5 { margin-bottom: 1.4rem !important; }
  .mb-4 { margin-bottom: 0.95rem !important; }
  .my-5 { margin-top: 1.4rem !important; margin-bottom: 1.4rem !important; }
  .py-5 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
  .p-5 { padding: 1.5rem !important; }
  .p-4 { padding: 1rem !important; }
  .card.p-4 { padding: 1rem !important; }
  .g-3, .gx-3 { --bs-gutter-x: 0.75rem; }
  .g-3, .gy-3 { --bs-gutter-y: 0.75rem; }
  .g-4 { --bs-gutter-x: 0.85rem; --bs-gutter-y: 0.85rem; }
  .g-5 { --bs-gutter-x: 0.95rem !important; --bs-gutter-y: 0.95rem !important; }

  /* 4. Navbar & Menüler (Okunaklı & Rahat Tıklanabilir) */
  .main-navbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .brand-logo {
    font-size: 1.18rem !important;
    gap: 8px !important;
  }
  .brand-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1rem !important;
  }
  .site-img-logo {
    max-height: 48px !important;
    max-width: 200px !important;
  }
  .category-nav-bar {
    padding: 6px 0 !important;
  }
  .category-nav-link {
    font-size: 0.84rem !important;
    padding: 6px 12px !important;
    font-weight: 600 !important;
  }
  .dropdown-menu {
    font-size: 0.9rem !important;
  }
  .dropdown-item {
    padding: 8px 14px !important;
    font-size: 0.88rem !important;
  }

  /* 5. Hero Carousel & Banner (Slider Kompakt Tutuldu) */
  .hero-slider-carousel {
    margin-bottom: 1.15rem !important;
    border-radius: 12px !important;
  }
  .hero-slider-item {
    min-height: 220px !important;
  }
  .hero-slider-content {
    padding: 18px 16px !important;
    max-width: 100% !important;
  }
  .hero-slider-content .hero-title {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }
  .hero-slider-content p.lead {
    font-size: 0.8rem !important;
    margin-bottom: 10px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-slider-content .hero-badge-b2b {
    font-size: 0.7rem !important;
    padding: 3px 8px !important;
    margin-bottom: 6px !important;
  }
  .hero-slider-content .btn {
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
  }
  .hero-banner-section {
    padding: 24px 16px !important;
    margin-bottom: 18px !important;
    border-radius: 12px !important;
  }
  .hero-title {
    font-size: 1.3rem !important;
  }

  /* 6. Hizmet / Avantaj Kutuları (Feature Pills) */
  .feature-pill-card {
    padding: 10px 12px !important;
    border-radius: 10px !important;
  }
  .feature-icon-box {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.05rem !important;
    flex-shrink: 0;
  }
  .feature-pill-card h6 {
    font-size: 0.88rem !important;
    margin-bottom: 2px !important;
  }
  .feature-pill-card small {
    font-size: 0.76rem !important;
    line-height: 1.3 !important;
  }

  /* 7. Kategori Kartları Vitrini */
  .card.text-center.p-3 {
    padding: 12px 8px !important;
  }
  .card.text-center .fs-1 {
    font-size: 1.5rem !important;
    margin-bottom: 4px !important;
  }
  .card.text-center h6 {
    font-size: 0.85rem !important;
    margin-bottom: 2px !important;
  }
  .card.text-center span.small {
    font-size: 0.75rem !important;
  }

  /* 8. Ürün Kartları (Product Card) */
  .product-card {
    border-radius: 10px !important;
  }
  .product-card-body {
    padding: 11px 12px !important;
  }
  .product-cat-title {
    font-size: 0.72rem !important;
  }
  .product-card-title {
    font-size: 0.9rem !important;
    margin: 4px 0 6px 0 !important;
    line-height: 1.35 !important;
  }
  .price-current {
    font-size: 1.18rem !important;
  }
  .price-old {
    font-size: 0.82rem !important;
  }
  .price-b2b-notice {
    font-size: 0.74rem !important;
  }
  .product-price-box {
    padding-top: 8px !important;
  }
  .badge-custom {
    font-size: 0.68rem !important;
    padding: 3px 7px !important;
  }
  .product-badges {
    top: 8px !important;
    left: 8px !important;
    gap: 4px !important;
  }
  .product-card-actions {
    margin-top: 8px !important;
    gap: 6px !important;
  }
  .product-card-actions .btn {
    padding: 6px 10px !important;
    font-size: 0.82rem !important;
  }
  .btn-whatsapp-sm {
    padding: 6px 10px !important;
    font-size: 0.95rem !important;
  }

  /* 9. B2B Kampanya Çağrı Kartı */
  .b2b-callout-card {
    padding: 18px 16px !important;
    border-radius: 12px !important;
    margin-bottom: 1.25rem !important;
  }
  .b2b-callout-card h3 {
    font-size: 1.15rem !important;
    margin-bottom: 4px !important;
  }
  .b2b-callout-card p {
    font-size: 0.86rem !important;
    margin-bottom: 12px !important;
  }
  .b2b-callout-badge {
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
    margin-bottom: 6px !important;
  }
  .b2b-callout-card .btn {
    font-size: 0.86rem !important;
    padding: 6px 14px !important;
  }

  /* 10. Ürün Detay Sayfası Boyutları */
  #mainProductImage {
    height: 300px !important;
  }
  .img-thumbnail.cursor-pointer {
    width: 60px !important;
    height: 60px !important;
  }

  /* 11. Butonlar & Form Alanları */
  .btn {
    font-size: 0.86rem !important;
    padding: 0.38rem 0.85rem !important;
  }
  .btn-sm {
    font-size: 0.78rem !important;
    padding: 0.25rem 0.6rem !important;
  }
  .btn-lg {
    font-size: 0.94rem !important;
    padding: 0.55rem 1.25rem !important;
  }
  .form-control, .form-select {
    font-size: 0.88rem !important;
    padding: 0.4rem 0.75rem !important;
  }

  /* 12. Mobil Alt Gezinme Barı (Daha Belirgin ve Rahat Butonlar) */
  .mobile-bottom-nav {
    height: 56px !important;
  }
  .mobile-nav-icon {
    font-size: 1.2rem !important;
    margin-bottom: 2px !important;
  }
  .mobile-nav-label {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
  }
  .mobile-nav-badge {
    min-width: 17px !important;
    height: 17px !important;
    font-size: 0.62rem !important;
    top: -6px !important;
    right: -8px !important;
    padding: 0 4px !important;
  }
  .floating-whatsapp-btn {
    bottom: 68px !important;
    right: 14px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 24px !important;
  }
  .floating-announcement-wrap {
    bottom: 68px !important;
    left: 14px !important;
  }
  .floating-announcement-trigger {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.15rem !important;
  }
  .announcement-popup-card {
    bottom: 62px !important;
    padding: 12px !important;
    max-width: calc(100vw - 28px) !important;
  }
  .cookie-consent-bar {
    bottom: 56px !important;
    padding: 10px 14px !important;
    font-size: 0.82rem !important;
  }

  /* 13. Footer */
  .main-footer {
    padding: 35px 0 16px 0 !important;
    margin-top: 35px !important;
  }
  .main-footer h6 {
    font-size: 0.92rem !important;
    margin-bottom: 0.6rem !important;
  }
  .main-footer ul li {
    margin-bottom: 5px !important;
  }
  .main-footer a, .main-footer p {
    font-size: 0.82rem !important;
  }
}

/* Dark Mode Uyumlu Mobil Alt Bar */
[data-bs-theme="dark"] .mobile-bottom-nav {
  background: rgba(15, 23, 42, 0.96) !important;
  border-top: 1px solid #1e293b !important;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .mobile-nav-item {
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .mobile-nav-item.active,
[data-bs-theme="dark"] .mobile-nav-item:hover {
  color: #38bdf8 !important;
}

[data-bs-theme="dark"] .mobile-nav-badge {
  border-color: #0f172a !important;
}
