/* ==========================================================================
   ENA NOW — Endüstriyel İnteraktif Ürün Kataloğu
   Stil Dosyası (app.css)
   - %100 Offline uyumlu (harici CDN veya font bağımlılığı yoktur)
   - Mobil öncelikli ve 1440px'e kadar tam responsive
   - Sıfır yatay taşma garantisi
   - Erişilebilirlik (:focus-visible, prefers-reduced-motion)
   - Özel @media print teklif sayfası desteği
   ========================================================================== */

:root {
  /* Renk Paleti */
  --primary: #0f2b48;
  --primary-dark: #0a1c2e;
  --primary-light: #1b3d64;
  --accent: #149931;
  --accent-light: #16a34a;
  --accent-soft: #ecfdf5;
  --accent-border: #a7f3d0;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;

  /* Tipografi */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Gölgeler & Yuvarlatmalar */
  --shadow-sm: 0 1px 2px rgba(15, 43, 72, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 43, 72, 0.08), 0 2px 4px -2px rgba(15, 43, 72, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 43, 72, 0.1), 0 4px 6px -4px rgba(15, 43, 72, 0.05);
  --shadow-modal: 0 20px 25px -5px rgba(15, 43, 72, 0.25), 0 8px 10px -6px rgba(15, 43, 72, 0.2);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Ölçüler & Geçişler */
  --header-height: 70px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Sıfırlama ve Kutu Modeli */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   ERİŞİLEBİLİRLİK (A11Y)
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ana Konteyner */
.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   ÜST NAVİGASYON (HEADER)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
}

.brand-logo-img {
  height: 42px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
}

.brand-logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.brand-dot {
  color: var(--accent);
  margin-left: 2px;
}

.brand-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--accent-soft);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-height: 40px;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--bg-subtle);
}

.nav-link.active {
  color: var(--accent);
  background-color: var(--accent-soft);
}

.quote-btn-badge {
  background-color: var(--primary);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-fast);
  min-height: 40px;
}

.quote-btn-badge:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.quote-badge-count {
  background-color: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Mobil Hamburger Butonu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--primary);
  border-radius: var(--radius-sm);
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 899px) {
  .nav-desktop {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobil Çekmece Menü */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  z-index: 99;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-drawer.open,
.mobile-nav-drawer.active {
  display: flex;
}

.mobile-nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  min-height: 44px;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  background-color: var(--bg-subtle);
  color: var(--accent);
}

/* ==========================================================================
   AÇILIŞ (HERO) BÖLÜMÜ
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #0f2b48 0%, #153a60 100%);
  color: #ffffff;
  padding: 36px 0 32px 0;
  position: relative;
  border-bottom: 3px solid var(--accent);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2dd4bf;
}

.hero-title {
  color: #ffffff !important;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
  font-size: 16px;
  color: #99d5ca;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 740px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  font-family: inherit;
  text-decoration: none;
  min-height: 44px;
}

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

.btn-primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

/* Teklif Listesinde Olan Ürün Buton Stili (WCAG AA Uyumlu) */
.btn-in-quote,
.is-in-quote {
  background-color: #d1fae5 !important;
  color: #064e3b !important;
  border: 1px solid #10b981 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(6, 78, 59, 0.08);
}

.btn-in-quote:hover,
.is-in-quote:hover {
  background-color: #a7f3d0 !important;
  color: #064e3b !important;
  border-color: #059669 !important;
  transform: translateY(-1px);
}

.btn-in-quote:focus-visible,
.is-in-quote:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

.btn-in-quote:active,
.is-in-quote:active {
  background-color: #6ee7b7 !important;
  transform: translateY(0);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: var(--primary);
}

/* ==========================================================================
   FİLTRE VE ARAMA KONTROL BARİ
   ========================================================================== */
.controls-section {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(15, 43, 72, 0.04);
  padding: 14px 0;
}

.controls-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 900px) {
  .controls-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  max-width: 100%;
}

.category-filters::-webkit-scrollbar {
  height: 4px;
}

.category-filters::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.cat-btn:hover {
  background-color: #e2e8f0;
  color: var(--text-main);
}

.cat-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.cat-count {
  background-color: rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: 11px;
}

.cat-btn.active .cat-count {
  background-color: rgba(255, 255, 255, 0.2);
}

.search-box-wrapper {
  position: relative;
  min-width: 260px;
  max-width: 100%;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 8px 36px 8px 36px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.15);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  min-width: 28px;
  min-height: 28px;
}

.search-clear:hover {
  color: var(--text-main);
}

.search-clear.visible {
  display: flex;
}

/* Sonuç Bilgi Çubuğu */
.results-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 639px) {
  .results-info-bar .desktop-only-note {
    display: none;
  }
}

/* ==========================================================================
   ÜRÜN KARTLARI GRİD BÖLÜMÜ
   ========================================================================== */
.catalog-section {
  padding: 24px 0 48px 0;
  flex: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tekil Ürün Kartı */
.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-border);
}

/* Kart Üst Bilgileri (Kod & Kategori Rozetleri) */
.product-card-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.product-code-tag {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  pointer-events: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.product-cat-tag {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  pointer-events: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Ürün Görsel Kutusu */
.product-img-box,
.card-image-box {
  background-color: #f8fafc;
  height: 195px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  overflow: hidden;
}

.product-thumb,
.card-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.product-card:hover .product-thumb,
.product-card:hover .card-image {
  transform: scale(1.05);
}

/* Kart Gövdesi */
.product-body,
.card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-capacity-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-name,
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 6px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.product-name:hover,
.card-title:hover {
  color: var(--accent);
}

.product-short-desc,
.card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Öne Çıkan Özellikler */
.product-features-preview {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-feature-item {
  font-size: 12px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
}

.product-feature-item svg {
  flex-shrink: 0;
}

/* Kart Aksiyonları (Footer) */
.product-card-footer,
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #f1f5f9;
  background-color: #fafbfd;
  margin-top: auto;
}

.product-card-footer .btn,
.btn-card-detail,
.btn-card-add {
  min-height: 42px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: 100%;
  border-radius: var(--radius-sm);
}

/* Mobil Kart ve Dokunma İyileştirmeleri */
@media (max-width: 639px) {
  .product-img-box,
  .card-image-box {
    height: 220px;
  }

  .product-body {
    padding: 12px 14px;
  }

  .product-name {
    font-size: 17px;
  }

  .product-short-desc {
    font-size: 13px;
  }

  .product-feature-item {
    font-size: 12.5px;
  }

  .product-card-footer,
  .card-actions {
    padding: 10px 14px;
  }

  .product-card-footer .btn,
  .btn-card-detail,
  .btn-card-add {
    min-height: 44px;
    font-size: 13px;
  }
}

/* Boş Durum (Empty State) */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background-color: #ffffff;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

.empty-icon {
  width: 48px;
  height: 48px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ==========================================================================
   ÜRÜN DETAY MODAL & MOBİL TAM EKRAN PANELİ
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 28, 46, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open,
.modal-backdrop.active {
  display: flex;
}

.detail-modal {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-code-badge {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.modal-category-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.modal-close-btn:hover {
  background-color: #e2e8f0;
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .modal-body {
    grid-template-columns: 320px 1fr;
  }
}

.modal-image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-img-container {
  width: 100%;
  height: 280px;
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.modal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-nav-buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.modal-nav-btn {
  flex: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
}

.modal-nav-btn:hover {
  background: #e2e8f0;
  color: var(--primary);
}

.modal-content-col {
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 13px;
}

.modal-specs-table th, .modal-specs-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.modal-specs-table th {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 600;
  width: 35%;
}

.modal-specs-table td {
  color: var(--text-main);
  font-weight: 600;
}

.modal-verified-features {
  margin-bottom: 20px;
}

.modal-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.features-list {
  list-style: none;
}

.features-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.4;
}

.features-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 800;
}

.modal-selection-note {
  background-color: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12px;
  color: #0f4c4c;
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background-color: var(--bg-subtle);
}

/* ==========================================================================
   TEKLİF LİSTESİ (DRAWER / PANEL)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 28, 46, 0.5);
  backdrop-filter: blur(2px);
  z-index: 250;
  display: none;
}

.drawer-backdrop.open,
.drawer-backdrop.active {
  display: block;
}

.quote-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 260;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
}

.quote-drawer.open,
.quote-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

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

.drawer-title {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
}

.drawer-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.quote-empty {
  text-align: center;
  padding: 48px 12px;
}

.quote-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quote-item-card,
.quote-item-row {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.quote-item-thumb {
  width: 64px;
  height: 64px;
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quote-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.quote-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quote-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

.quote-item-code {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
}

.quote-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.quote-note-wrap {
  position: relative;
  width: 100%;
  margin-top: 8px;
}

.quote-item-note-input,
.quote-item-note {
  width: 100%;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1.45;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  margin-top: 0;
  color: var(--text-main);
  font-family: inherit;
  resize: vertical;
  min-height: 48px;
  max-height: 140px;
  display: block;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.quote-item-note-input:focus,
.quote-item-note:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--accent);
}

.quote-note-count {
  display: block;
  text-align: right;
  font-size: 10px;
  color: var(--text-muted);
  font-family: monospace;
  margin-top: 3px;
  padding: 0 2px;
  line-height: 1.2;
}

.quote-item-bottom,
.quote-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.qty-control,
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.qty-btn:hover {
  background-color: #e2e8f0;
}

.qty-input {
  width: 42px;
  height: 36px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  border: none;
  background: transparent;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-remove-item,
.quote-item-remove {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-remove-item:hover,
.quote-item-remove:hover {
  background-color: #fee2e2;
}

@media (max-width: 639px) {
  .qty-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .qty-input {
    width: 48px;
    height: 44px;
    font-size: 15px;
  }
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background-color: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ==========================================================================
   ÜRÜN SEÇİM YARDIMCISI (WIZARD MODAL)
   ========================================================================== */
.wizard-modal {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

.wizard-body {
  padding: 24px;
  overflow-y: auto;
}

.wizard-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.wizard-step-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (min-width: 540px) {
  .wizard-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wizard-option-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  font-family: inherit;
  width: 100%;
  position: relative;
}

.wizard-option-card:hover {
  border-color: var(--accent);
  background: #ffffff;
}

.wizard-option-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wizard-opt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.wizard-opt-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  background-color: #ffffff;
}

.wizard-option-card.selected .wizard-opt-indicator,
.wizard-option-card[aria-checked="true"] .wizard-opt-indicator {
  border-color: var(--accent);
  background-color: var(--accent);
  box-shadow: inset 0 0 0 3px #ffffff;
}

.wizard-option-card.selected,
.wizard-option-card[aria-checked="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent);
}

.wizard-opt-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.wizard-opt-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.wizard-results-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

.wizard-results-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wizard-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wizard-matched-item {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  gap: 8px;
}

.wizard-matched-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wizard-matched-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wizard-reason-badge {
  font-size: 10.5px;
  font-weight: 600;
  background: #e6f4f1;
  color: #0f4c4c;
  padding: 2px 8px;
  border-radius: 4px;
}

.wizard-disclaimer {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.45;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

/* ==========================================================================
   TOAST BİLDİRİMİ (NOTIFICATION)
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background-color: var(--primary);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .toast-container {
    top: 76px;
    left: 16px;
    right: 16px;
  }
}

/* ==========================================================================
   PANODAN KOPYALAMA FALLBACK MODALİ
   ========================================================================== */
.clipboard-fallback-modal {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 560px;
  padding: 20px;
}

.clipboard-textarea {
  width: 100%;
  height: 200px;
  font-family: monospace;
  font-size: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  margin-top: 10px;
  resize: vertical;
}

/* ==========================================================================
   TEKLİF TALEP FORMU VE BAŞARI MODALLERİ
   ========================================================================== */
#quoteRequestModalBackdrop,
#quoteSuccessModalBackdrop {
  z-index: 350;
}

.quote-request-modal {
  background-color: #ffffff;
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--border, #e2e8f0);
  animation: modalFadeIn 0.2s ease-out;
}

.quote-form-badge {
  background-color: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full, 9999px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-block;
}

.quote-request-body {
  padding-top: 16px;
}

.quote-summary-strip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.quote-summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0f2b48;
  margin-bottom: 8px;
}

.quote-summary-header svg {
  color: var(--accent, #149931);
}

.quote-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quote-summary-item-tag {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.quote-summary-item-tag strong {
  color: #0f2b48;
}

.quote-form-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* ==========================================================================
   FORM ELEMANLARI (styled-form, form-group, form-label, form-control)
   ========================================================================== */
.styled-form {
  display: block;
  width: 100%;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
  font-weight: 700;
}

.form-control {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: block;
}

.form-control::placeholder {
  color: #94a3b8;
  font-size: 12px;
}

.form-control:focus {
  border-color: var(--accent, #149931);
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 153, 49, 0.15);
  background: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 68px;
  line-height: 1.45;
}

.quote-modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.quote-modal-actions .btn {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.quote-modal-actions #submitQuoteRequestBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 10px 22px;
}

@media (max-width: 600px) {
  .form-row-two {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .quote-request-modal {
    padding: 20px 16px;
    max-height: 94vh;
    border-radius: 10px;
  }
  .quote-modal-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .quote-modal-actions .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
}

.quote-success-modal {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 480px;
  padding: 24px;
}

/* ==========================================================================
   ALT BİLGİ & İLETİŞİM ALANI (FOOTER)
   ========================================================================== */
.site-footer {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 48px 0 24px 0;
  border-top: 3px solid var(--accent);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.45fr 0.9fr 1.1fr 1.2fr;
  }
}

.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.footer-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-info-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.55;
}

.footer-contact-list a {
  color: #cbd5e1;
  overflow-wrap: anywhere;
}

.footer-contact-list a:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}

@media (min-width: 640px) {
  .footer-bottom-bar {
    flex-direction: row;
  }
}

/* ==========================================================================
   YAZDIRMA (PRINT) STİLLERİ — TEMİZ A4 TEKLİF ÇIKTISI
   ========================================================================== */
#printQuoteSheet {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 14mm;
  }

  /* Ekran öğelerini tamamen gizle */
  body > *:not(#printQuoteSheet) {
    display: none !important;
  }

  body, html {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    font-size: 11pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #printQuoteSheet {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    color: #0f172a !important;
    background: #ffffff !important;
    overflow: visible !important;
  }

  #printQuoteSheet * {
    box-sizing: border-box !important;
  }

  #printQuoteSheet table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    box-sizing: border-box !important;
    margin-bottom: 20px !important;
    font-size: 11px !important;
  }

  #printQuoteSheet th,
  #printQuoteSheet td {
    border: 1px solid #cbd5e1 !important;
    padding: 6px 8px !important;
    text-align: left;
    vertical-align: top !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    white-space: normal !important;
  }

  #printQuoteSheet th {
    background-color: #f1f5f9 !important;
    font-weight: 700 !important;
    color: #0f2b48 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #printQuoteSheet tr {
    page-break-inside: avoid !important;
  }

  .print-footer-note {
    font-size: 10px !important;
    color: #64748b !important;
    border-top: 1px dashed #cbd5e1 !important;
    padding-top: 10px !important;
    line-height: 1.4 !important;
    page-break-inside: avoid !important;
  }
}
