/* ==========================================================================
   EnUcuzBul Design System & Global Styles
   ========================================================================== */

:root {
  /* Renk Paleti - Koyu Tema (Varsayılan) */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --bg-input: rgba(31, 41, 55, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #6366f1;
  
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Vurgu Renkleri */
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-green: #10b981;
  --accent-green-bg: rgba(16, 185, 129, 0.15);
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Açık Tema Değişkenleri */
body.theme-light {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-input: #f1f5f9;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: #4f46e5;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);
}

/* Reset & Temel */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Arka Plan Işık Efektleri (Glows) */
.glow-bg {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -100px;
  right: -100px;
}

.glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #10b981, transparent 70%);
  bottom: 10%;
  left: -150px;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 24px;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  font-size: 1.6rem;
}

.brand-logo .highlight {
  color: var(--accent-green);
}

.badge-live {
  font-size: 0.68rem;
  font-family: var(--font-sans);
  background: var(--accent-green-bg);
  color: var(--accent-green);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.nav-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.affiliate-btn {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}

.affiliate-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.counter {
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

.theme-toggle {
  padding: 8px 12px;
}

/* ==========================================================================
   Hero Bölümü & Arama
   ========================================================================== */
.main-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 20px 80px;
}

.hero-section {
  text-align: center;
  padding: 40px 10px 30px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 820px;
  margin: 0 auto 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #34d399 40%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* Arama Kutusu */
.search-box-wrapper {
  position: relative;
  max-width: 740px;
  margin: 0 auto 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 12px 8px 22px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  font-size: 1.25rem;
  margin-right: 12px;
  color: var(--text-muted);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  margin-right: 6px;
  transition: var(--transition);
}

.clear-search-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.barcode-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-green);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 8px;
  transition: var(--transition);
}

.barcode-action-btn:hover {
  background: var(--accent-green);
  color: #ffffff;
  transform: translateY(-1px);
}

.search-submit-btn {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.search-submit-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* Otomatik Tamamlama Dropdown */
.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 50;
  text-align: left;
}

.suggestion-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.94rem;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: var(--bg-card-hover);
  color: var(--accent-primary);
}

/* Trend Tagler */
.trending-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
}

.tag-label {
  color: var(--text-muted);
  font-weight: 500;
}

.trend-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.82rem;
  transition: var(--transition);
}

.trend-tag:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

/* ==========================================================================
   Kategori Şeridi & Sıralama
   ========================================================================== */
.filter-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.categories-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.category-tab:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.category-tab.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.sort-select {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
   Sonuç Başlığı & İstatistik
   ========================================================================== */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.results-info h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.results-badge {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cache-badge {
  display: inline-block;
  margin-left: 8px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--accent-green);
  font-weight: 600;
  background: var(--accent-green-bg);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ==========================================================================
   Ürün Kartları Izgarası & Kart Tasarımı
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.4);
}

.savings-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.product-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-category-tag {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.product-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rating-badge {
  color: var(--accent-amber);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* En Ucuz Fiyat Kutucuğu */
.cheapest-highlight-box {
  background: var(--accent-green-bg);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cheapest-info .label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cheapest-info .store-source {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cheapest-price-group {
  text-align: right;
}

.cheapest-price-val {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-green);
  line-height: 1;
}

.net-price-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  margin-top: 3px;
}

/* Mağazalar Tablosu / Listesi */
.stores-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 0 4px;
}

.stores-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.86rem;
  transition: var(--transition);
}

.store-row.cheapest-store {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.08);
}

.store-name-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-discount-badge {
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
}

.cart-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.strikethrough-price {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.cart-effective-price {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--accent-green);
}

.cart-label-sub {
  font-size: 0.65rem;
  color: var(--accent-green);
  font-weight: 600;
}

.store-icon {
  font-size: 1.1rem;
}

.store-shipping {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.shipping-free {
  color: var(--accent-green);
  font-weight: 600;
}

.shipping-paid {
  color: #f59e0b;
  font-weight: 600;
}

.shipping-has-tip {
  cursor: pointer;
  border-bottom: 1px dashed #f59e0b;
}

/* Kargo Tasarruf Tüyosu Çubuğu */
.shipping-advice-bar {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.15));
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
}

.shipping-advice-content {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
  color: var(--text-primary);
}

.shipping-advice-content .shipping-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.btn-filler-trigger {
  background: #0ea5e9;
  color: #ffffff;
  border: none;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3);
}

.btn-filler-trigger:hover {
  background: #38bdf8;
  transform: translateY(-1px);
}

/* Sepet Tamamlayıcı Modal */
.filler-modal-card {
  max-width: 580px;
}

.filler-summary-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.filler-store-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.filler-metric-box, .filler-saved-box {
  text-align: right;
}

.metric-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.metric-amount {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
}

.metric-saved {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-green);
}

.filler-intro-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.filler-products-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}

.filler-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.filler-item-row:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
}

.filler-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filler-item-icon {
  font-size: 1.3rem;
}

.filler-item-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.filler-item-category {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.filler-item-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filler-item-price {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-green);
}

.btn-add-filler {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.btn-add-filler:hover {
  background: #0ea5e9;
  color: #ffffff;
  transform: translateY(-1px);
}

.filler-custom-action {
  text-align: center;
}

.btn-open-store-filler {
  display: inline-block;
  background: var(--accent-primary);
  color: #ffffff;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-open-store-filler:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.store-price-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-total-price {
  font-weight: 700;
  color: var(--text-primary);
}

.go-store-btn {
  text-decoration: none;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  transition: var(--transition);
}

.store-row.cheapest-store .go-store-btn {
  background: var(--accent-green);
  color: #ffffff;
  border: none;
}

.go-store-btn:hover {
  filter: brightness(1.15);
  transform: scale(1.04);
}

/* Kart Alt Aksiyonları */
.card-actions-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.action-tool-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.action-tool-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

/* ==========================================================================
   Ayarlar & Gelir Ortaklığı (Affiliate) Modalı
   ========================================================================== */
.settings-modal-card {
  max-width: 650px;
}

.stats-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
}

.metric-label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.metric-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.metric-val.green { color: var(--accent-green); }
.metric-val.blue { color: #60a5fa; }
.metric-val.gold { color: var(--accent-amber); }

.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.section-title-row h4,
.settings-section h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.free-badge-link {
  font-size: 0.76rem;
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 700;
  background: var(--accent-green-bg);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.section-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.settings-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ==========================================================================
   Özellikler Şeridi
   ========================================================================== */
.features-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
  padding: 30px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.feature-card {
  text-align: left;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ==========================================================================
   Modallar
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-backdrop.hidden {
  display: none !important;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-modal-card {
  max-width: 680px;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon {
  font-size: 1.3rem;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 20px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Barkod Vizörü */
.scanner-viewport {
  position: relative;
  width: 100%;
  height: 260px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

#scannerVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scanner-frame {
  width: 75%;
  height: 60%;
  border: 2px dashed #10b981;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
}

.scanner-laser {
  position: absolute;
  top: 25%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: scanLaser 2s infinite ease-in-out alternate;
}

@keyframes scanLaser {
  0% { top: 25%; }
  100% { top: 75%; }
}

.camera-status {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px;
}

.demo-barcode-section {
  background: var(--bg-card);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.demo-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.demo-barcodes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-code-btn {
  text-align: left;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.84rem;
  cursor: pointer;
  transition: var(--transition);
}

.demo-code-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

/* Fiyat Grafiği */
.history-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.history-stat-box {
  background: var(--bg-card);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
}

.history-stat-box .stat-label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.history-stat-box .stat-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
}

.stat-val.green { color: var(--accent-green); }
.stat-val.blue { color: #60a5fa; }
.stat-val.red { color: #f87171; }

.chart-container {
  width: 100%;
  height: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

/* Fiyat Karar Rozeti (Gerçek İndirim / Dip Fiyat / Şişirilmiş Fiyat) */
.price-verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.verdict-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.verdict-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.35));
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.45);
}

.verdict-warning {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.35));
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.verdict-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* Fiyat Geçmişi Aralık Butonları */
.history-range-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}

.range-bar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.history-range-pills {
  display: flex;
  gap: 6px;
}

.range-pill {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.range-pill:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.range-pill.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Akıllı Alışveriş Danışmanı / Sahte İndirim Tavsiye Kutusu */
.history-advice-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.advice-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.advice-icon {
  font-size: 1.1rem;
}

.advice-badge {
  font-size: 0.84rem;
  font-weight: 700;
  color: #38bdf8;
}

.advice-text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.history-tip {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Formlar */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.input-with-currency {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-currency input,
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.input-with-currency input:focus,
.form-group input:focus {
  border-color: var(--accent-primary);
}

.currency-tag {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  font-weight: 700;
}

.form-hint {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.submit-alert-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.submit-alert-btn:hover {
  filter: brightness(1.1);
}

.alert-success-box {
  background: var(--accent-green-bg);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-green);
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 14px;
}

.check-icon {
  font-size: 1.4rem;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

/* ==========================================================================
   Takip Listesi Çekmecesi
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 250;
  display: flex;
  justify-content: flex-end;
}

.drawer-backdrop.hidden {
  display: none !important;
}

.drawer-panel {
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-watchlist {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.empty-watchlist p {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-watchlist span {
  font-size: 0.84rem;
}

/* Watchlist Gelişmiş Kart */
.watchlist-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.watchlist-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.watchlist-row-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.watchlist-card img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.watchlist-info {
  flex: 1;
}

.watchlist-info h4 {
  font-size: 0.88rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.watchlist-target {
  font-size: 0.78rem;
  color: var(--accent-green);
  font-weight: 600;
  display: block;
}

.watchlist-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.status-reached {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-tracking {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.watchlist-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 2px;
}

.btn-simulate-drop {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-simulate-drop:hover {
  background: #f59e0b;
  color: #ffffff;
}

.watchlist-del-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.9rem;
}

.watchlist-del-btn:hover {
  color: var(--accent-red);
}

/* ==========================================================================
   Canlı Toast Bildirimleri (Toast Notifications)
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 400px;
  width: calc(100% - 48px);
}

.toast {
  pointer-events: auto;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

.toast.toast-hiding {
  animation: toastSlideOut 0.3s forwards;
}

.toast.toast-success {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.25);
}

.toast.toast-price-drop {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.3);
}

.toast-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.toast-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.toast-action-btn {
  display: inline-block;
  background: var(--accent-primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-top: 4px;
  transition: var(--transition);
}

.toast-action-btn:hover {
  filter: brightness(1.15);
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px;
  transition: var(--transition);
}

.toast-close:hover {
  color: var(--text-primary);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(100%) scale(0.95);
    opacity: 0;
  }
}

/* ==========================================================================
   Yüklenme & Animasyonlar
   ========================================================================== */
.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
  margin-top: auto;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.footer-copy p {
  color: var(--text-muted);
  font-size: 0.78rem;
  max-width: 500px;
}

.footer-admin-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.76rem;
  transition: var(--transition);
  opacity: 0.6;
}

.footer-admin-link:hover {
  color: var(--accent-primary);
  opacity: 1;
  text-decoration: underline;
}

/* ==========================================================================
   Mobil Uyum
   ========================================================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .search-bar {
    padding: 6px 10px 6px 16px;
  }

  .barcode-action-btn .barcode-text,
  .affiliate-btn .label {
    display: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .stats-metric-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid-2 {
    grid-template-columns: 1fr;
  }

  .filter-section {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-wrapper {
    justify-content: space-between;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .history-stats {
    grid-template-columns: 1fr;
  }
}
