/* ========================================
   Global Price List - Modern CSS
   Minimal, Fast, Clean
======================================== */

:root {
  /* Kurumsal Mavi - Network & Güven */
  --primary: #1B5E85;
  --primary-dark: #0F5278;
  --primary-light: #e3f2fd;
  --primary-gradient: linear-gradient(135deg, #1B5E85 0%, #0F5278 50%, #0a3d5c 100%);

  /* Hareket Turuncusu - Fiyat & Dikkat */
  --accent: #F08C28;
  --accent-dark: #E68A2E;
  --accent-light: #fff3e0;
  /* Darker orange for buttons/links: WCAG AA contrast ≥4.5:1 with white */
  --accent-button: #B85C0A;
  --accent-button-hover: #9A4A07;

  --text: #111827;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Skip to main content - visible on focus for keyboard/screen reader */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 10000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ========================================
   Header / Navbar
======================================== */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.logo:hover {
  color: var(--text);
}

.logo img {
  height: 48px;
  width: auto;
}

.logo span {
  color: var(--primary);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
}

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

/* Auth Nav Links */
.nav-login,
.nav-user,
.nav-admin,
.nav-logout {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-login {
  color: var(--primary) !important;
  font-weight: 500;
}

.nav-login:hover {
  background: var(--primary-light);
}

.nav-register {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-button) !important;
  color: #fff !important;
  font-weight: 600;
}

.nav-register:hover {
  background: var(--accent-button-hover) !important;
}

.nav-user {
  background: var(--primary-light);
  color: var(--primary-dark) !important;
  font-weight: 500;
}

.nav-admin {
  color: var(--accent) !important;
  font-weight: 500;
}

.nav-logout {
  color: var(--text-muted) !important;
}

.nav-logout:hover {
  color: #dc2626 !important;
  background: #fef2f2;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > .nav-link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text);
  border-radius: 6px;
  transition: all var(--transition);
}

.dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.dropdown-menu a.active {
  background: var(--primary);
  color: white;
}

/* Category Dropdown with Submenu */
.category-dropdown {
  min-width: 160px;
  padding: 8px;
}

.has-submenu {
  position: relative;
}

.has-submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.has-submenu > a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.has-submenu > a .arrow {
  font-size: 1rem;
  opacity: 0.5;
}

/* Submenu */
.submenu {
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.2s ease;
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(4px);
}

.submenu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.submenu a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ========================================
   Hero / Search Section
======================================== */
.hero {
  background: var(--primary-gradient);
  padding: 48px 24px;
  text-align: center;
  color: white;
  position: relative;
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  position: relative;
}

/* Search Box */
.search-box {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 18px 24px;
  padding-right: 140px;
  font-size: 1rem;
  border: none;
  border-radius: 60px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  outline: none;
  transition: all var(--transition);
}

.search-box input:focus {
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.search-box input::placeholder {
  color: #9ca3af;
}

.search-box button {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 60px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.search-box button:hover {
  background: var(--accent-dark);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(240, 140, 40, 0.4);
}

/* Live Search Results */
.search-box {
  position: relative;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  max-height: 320px;
  overflow-y: auto;
  z-index: 9999;
  margin-top: 8px;
  display: none;
  text-align: left;
}

.search-results.show {
  display: block;
}

.search-result-item {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.15s;
}

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

.search-result-item:hover {
  background: var(--primary-light);
}

.search-result-item.no-result {
  color: #999;
  cursor: default;
}

.search-result-item.no-result:hover {
  background: white;
}

.result-part {
  font-weight: 600;
  color: var(--primary);
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.9rem;
}

/* Filter Section */
.filter-section {
  background: linear-gradient(135deg, #e8f4fc 0%, #f0f7fb 100%);
  padding: 16px 24px;
  border-bottom: 1px solid #cde5f5;
  border-top: 1px solid #cde5f5;
}

.filter-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.filter-label {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
  white-space: nowrap;
}

.filter-container form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-group {
  position: relative;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}

.filter-toggle:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.filter-count {
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.filter-count:empty,
.filter-count:contains("0") {
  display: none;
}

.filter-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  max-width: 300px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  margin-top: 4px;
  z-index: 1000;
  display: none;
}

.filter-dropdown.show {
  display: block;
}

.filter-options {
  max-height: 280px;
  overflow-y: auto;
  padding: 8px 0;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.filter-checkbox:hover {
  background: var(--primary-light);
}

.filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.filter-checkbox span {
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-clear {
  color: var(--primary);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}

.filter-clear:hover {
  background: var(--primary-light);
  text-decoration: none;
}

.search-info {
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.9;
  position: relative;
}

.clear-search {
  color: white;
  text-decoration: underline;
  margin-left: 8px;
  opacity: 0.8;
}

.clear-search:hover {
  opacity: 1;
  color: white;
}

/* Brand Tags */
.brand-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  position: relative;
}

.brand-tag {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  transition: all var(--transition);
  text-decoration: none;
}

.brand-tag:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  color: white;
  transform: translateY(-2px);
}

.brand-tag.active {
  background: white;
  color: var(--primary-dark);
  border-color: white;
  font-weight: 600;
}

.brand-tag.active:hover {
  background: white;
  color: var(--primary-dark);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  position: relative;
}

.breadcrumb a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb .separator {
  color: rgba(255,255,255,0.5);
}

.breadcrumb .current {
  color: white;
  font-weight: 600;
}

/* Category Tags */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  position: relative;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 25px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.category-tag:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.category-tag.active {
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(240, 140, 40, 0.3);
}

.category-tag.active:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.category-tag .cat-icon {
  font-size: 1rem;
}

/* SEO Content Section */
.seo-content {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.seo-content-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* SEO Intro */
.seo-intro {
  text-align: center;
  margin-bottom: 32px;
}

.seo-intro h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.seo-intro p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* SEO Features Grid */
.seo-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.seo-feature {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
}

.seo-feature:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 20px rgba(27, 94, 133, 0.08);
  transform: translateY(-2px);
}

.seo-feature .feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 10px;
}

.seo-feature > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seo-feature strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.seo-feature span:last-child {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-light);
}

/* ========================================
   Table Section
======================================== */
.table-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text);
}

.table-info h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.result-count {
  font-size: 0.9rem;
  color: var(--text-light);
}

.table-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.per-page-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
}

.per-page-select {
  padding: 6px 12px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  outline: none;
}

.per-page-select:hover {
  border-color: var(--primary);
}

.per-page-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(27, 94, 133, 0.15);
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Table Container */
.table-container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Modern Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table thead {
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  font-size: 0.875rem;
}

.data-table th.text-right {
  text-align: right;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

/* Zebra Striping */
.data-table tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #e8f4fc;
}

.data-table td {
  padding: 14px 16px;
  color: var(--text);
}

.data-table td.text-right {
  text-align: right;
}

.data-table td.description {
  color: var(--text-light);
  max-width: 300px;
}

.data-table td.no-results {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}

/* Part Number - Mavi */
.part-number {
  font-weight: 600;
  color: var(--primary);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--transition);
}

.part-number:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.part-number.copied {
  background: var(--primary);
  color: white;
}

/* Copy tooltip */
.copy-tooltip {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.copy-tooltip.show {
  opacity: 1;
}

/* ========================================
   Search Wrapper & Bulk Search
======================================== */
.search-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.search-wrapper .search-box {
  flex: 1;
  margin: 0;
}

.bulk-search-btn {
  padding: 18px 24px;
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 60px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.bulk-search-btn:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.6);
}

/* ========================================
   Modal
======================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s;
}

.modal.show .modal-content {
  transform: translateY(0);
}

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

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

.modal-body {
  padding: 20px;
}

.modal-body p {
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.modal-body textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-size: 0.875rem;
  resize: vertical;
  outline: none;
}

.modal-body textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 94, 133, 0.15);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.btn-secondary {
  padding: 10px 20px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--text-light);
}

/* Mobile modal */
@media (max-width: 768px) {
  .search-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .search-wrapper .search-box {
    width: 100%;
  }

  .bulk-search-btn {
    width: 100%;
    padding: 14px 20px;
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }
}

/* Price - Mavi tonlar (logo ile uyumlu) */
.price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

.price-contact {
  color: var(--text-muted);
  font-style: italic;
}

/* CTA Button - Turuncu (WCAG AA contrast with white) */
.btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent-button);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-button-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 92, 10, 0.4);
}

.btn-contact {
  background: var(--primary);
}

.btn-contact:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(27, 94, 133, 0.4);
}

/* ========================================
   Pagination
======================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.page-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.page-link.current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-link.prev,
.page-link.next {
  padding: 0 16px;
}

.page-dots {
  color: var(--text-muted);
  padding: 0 4px;
}

/* ========================================
   Footer
======================================== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.footer-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========================================
   Cookie Consent Banner
======================================== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  z-index: 99999;
  padding: 0;
  animation: slideUp 0.4s ease;
}

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

.cookie-consent-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-consent-text {
  flex: 1;
}

.cookie-consent-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.cookie-consent-text p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0 0 4px 0;
}

.cookie-learn-more {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
}

.cookie-learn-more:hover {
  color: var(--primary-dark);
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-cookie-accept:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 94, 133, 0.3);
}

.btn-cookie-reject {
  padding: 10px 24px;
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-cookie-reject:hover {
  background: var(--bg-alt);
  border-color: var(--text-light);
}

@media (max-width: 768px) {
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
    padding: 16px;
    gap: 16px;
  }

  .cookie-consent-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn-cookie-accept,
  .btn-cookie-reject {
    width: 100%;
    padding: 12px 20px;
  }
}

/* ========================================
   Legal Pages (Privacy, Terms, Cookie Policy)
======================================== */
.legal-page {
  padding: 40px 24px 60px;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  margin: 8px 0 16px 24px;
  padding: 0;
}

.legal-content li {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 4px;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--primary-dark);
}

.legal-content code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  color: var(--primary-dark);
}

/* Cookie Table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cookie-table thead {
  background: var(--bg-alt);
}

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

.cookie-table th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.cookie-table td {
  color: var(--text-light);
}

.cookie-table tbody tr:last-child td {
  border-bottom: none;
}

.cookie-table tbody tr:hover {
  background: var(--primary-light);
}

@media (max-width: 768px) {
  .legal-page {
    padding: 24px 16px 40px;
  }

  .legal-page h1 {
    font-size: 1.5rem;
  }

  .legal-content h2 {
    font-size: 1.15rem;
  }

  .cookie-table {
    font-size: 0.8rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 8px 10px;
  }
}

/* ========================================
   Utilities
======================================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

/* Accessibility - Screen reader only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.data-table th.text-center,
.data-table td.text-center {
  text-align: center;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
  .nav-link {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .data-table td.description {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 56px;
  }

  .logo span {
    display: none;
  }

  /* Mobile Menu Toggle - Show */
  .nav-toggle {
    display: flex;
  }

  /* Mobile Nav - Slide from Right */
  .nav {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 20px 30px;
    gap: 10px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: 99;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
  }

  .nav.active {
    transform: translateX(0);
    visibility: visible;
  }

  /* Overlay when menu open */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 98;
  }

  .nav-overlay.active {
    display: block;
  }

  .nav .nav-item {
    width: 100%;
  }

  .nav .nav-link {
    display: block;
    padding: 16px 20px;
    border-radius: 10px;
    background: var(--bg-alt);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--border);
  }

  .nav .nav-login {
    background: var(--bg-alt);
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    justify-content: center;
    margin-top: 16px;
  }

  .nav .nav-register {
    background: var(--accent-button) !important;
    border: 1px solid var(--accent-button);
    color: #fff !important;
    justify-content: center;
  }

  .nav .nav-user {
    background: var(--primary-light);
    border: 1px solid var(--primary-light);
    justify-content: center;
    margin-top: 16px;
  }

  .nav .nav-logout {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    justify-content: center;
  }

  .nav .nav-admin {
    background: var(--bg-alt);
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    justify-content: center;
    margin-top: 16px;
  }

  /* Mobile Dropdown */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown > .nav-link::after {
    float: right;
    border: none;
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1;
  }

  .nav-dropdown.open > .nav-link::after {
    content: '−';
  }

  .nav-dropdown.open > .nav-link {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    display: none;
    background: transparent;
    min-width: auto;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    display: block;
    padding: 14px 16px;
    margin-bottom: 6px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    margin-left: 12px;
  }

  .dropdown-menu a:hover,
  .dropdown-menu a.active {
    background: var(--primary-light);
    border-color: var(--primary-light);
  }

  /* Mobile Category Dropdown */
  .category-dropdown {
    padding: 0;
    min-width: auto;
  }

  .has-submenu {
    margin-bottom: 6px;
  }

  .has-submenu > a {
    display: block;
    padding: 14px 16px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--border);
    margin-left: 12px;
  }

  .has-submenu > a .arrow {
    float: right;
    transition: transform 0.3s ease;
  }

  .has-submenu.open > a {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-light);
  }

  .has-submenu.open > a .arrow {
    transform: rotate(90deg);
  }

  .submenu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 10px 0 0 24px;
    display: none;
    background: transparent;
    min-width: auto;
  }

  .has-submenu.open .submenu {
    display: block;
  }

  .submenu a {
    display: block;
    padding: 12px 14px;
    margin-bottom: 4px;
    margin-left: 0;
    background: var(--bg-alt);
    border-radius: 6px;
    font-size: 0.9rem;
    border: none;
  }

  .submenu a:hover {
    background: var(--primary-light);
  }

  .hero {
    padding: 32px 16px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .search-box input {
    padding: 14px 18px;
    padding-right: 100px;
  }

  .search-box button {
    padding: 0 16px;
    font-size: 0.85rem;
  }

  .brand-tags {
    gap: 6px;
    margin-top: 20px;
  }

  .brand-tag {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .table-section {
    padding: 24px 12px;
  }

  .table-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-controls {
    width: 100%;
    justify-content: space-between;
  }

  .data-table {
    font-size: 0.85rem;
  }

  .data-table th,
  .data-table td {
    padding: 12px 10px;
  }


  /* Mobilde gizle: Type, Series, Description */
  .data-table th:nth-child(2),
  .data-table td:nth-child(2),
  .data-table th:nth-child(3),
  .data-table td:nth-child(3),
  .data-table th:nth-child(4),
  .data-table td:nth-child(4) {
    display: none;
  }

  .pagination {
    gap: 4px;
  }

  .page-link {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .page-link.prev,
  .page-link.next {
    padding: 0 12px;
  }

  /* Category Tags - Mobile */
  .category-tags {
    gap: 8px;
    margin-top: 16px;
  }

  .category-tag {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .category-tag .cat-icon {
    font-size: 0.9rem;
  }

  /* Breadcrumb - Mobile */
  .breadcrumb {
    font-size: 0.8rem;
    gap: 6px;
  }

  /* SEO Content - Mobile */
  .seo-content-inner {
    padding: 28px 16px;
  }

  .seo-intro {
    margin-bottom: 24px;
  }

  .seo-intro h2 {
    font-size: 1.25rem;
  }

  .seo-intro p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .seo-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .seo-feature {
    padding: 16px;
  }

  .seo-feature .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .seo-feature strong {
    font-size: 0.9rem;
  }

  .seo-feature span:last-child {
    font-size: 0.8rem;
  }

  /* Submenu - Mobile (full width dropdown) */
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    margin-top: 4px;
    padding: 4px 0 4px 16px;
    display: none;
  }

  .has-submenu.open .submenu {
    display: block;
  }
}

/* ========================================
   Price History Button & Modal
======================================== */

/* History Button */
.btn-history {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-history:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.btn-history svg {
  width: 16px;
  height: 16px;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10000;
  padding: 20px;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Price History Modal */
.price-history-modal {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.show .price-history-modal {
  transform: translateY(0) scale(1);
}

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(90vh - 80px);
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--text-light);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* No History */
.no-history {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--text-light);
  text-align: center;
}

.no-history svg {
  opacity: 0.5;
}

/* Chart.js Wrapper */
.chart-wrapper {
  height: 280px;
  margin-bottom: 20px;
  padding: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Price Summary Grid */
.price-summary {
  margin-bottom: 20px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.summary-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.summary-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.summary-value.current {
  color: var(--primary);
}

.summary-value.low {
  color: #16a34a;
}

.summary-value.high {
  color: #dc2626;
}

.summary-value.change {
  font-size: 0.95rem;
}

.summary-value.change.up {
  color: #dc2626;
}

.summary-value.change.down {
  color: #16a34a;
}

.summary-value.change.same {
  color: var(--text-light);
}

/* Price History Table */
.price-history-table-wrapper {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.price-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.price-history-table thead {
  background: var(--bg-alt);
  position: sticky;
  top: 0;
}

.price-history-table th,
.price-history-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-history-table th {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-history-table tbody tr:hover {
  background: var(--primary-light);
}

.price-history-table tbody tr:last-child td {
  border-bottom: none;
}

.price-history-table .current-row {
  background: var(--primary-light);
}

.price-history-table .badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  margin-left: 8px;
}

/* Mobile Price History */
@media (max-width: 640px) {
  .price-history-modal {
    max-width: 100%;
    max-height: 90vh;
    margin: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-body {
    padding: 16px;
  }

  .chart-wrapper {
    height: 200px;
    padding: 8px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .summary-item {
    padding: 12px 8px;
  }

  .summary-label {
    font-size: 0.65rem;
  }

  .summary-value {
    font-size: 0.95rem;
  }

  .summary-value.change {
    font-size: 0.8rem;
  }

  /* Mobilde History sütununu da göster ama küçült */
  .btn-history {
    width: 28px;
    height: 28px;
  }

  .btn-history svg {
    width: 14px;
    height: 14px;
  }
}
