/* CSS Variables - Enhanced */
:root {
  --primary-color: #2196F3;
  --primary-dark: #1976D2;
  --primary-light: #BBDEFB;
  --secondary-color: #FFC107;
  --success-color: #4CAF50;
  --danger-color: #F44336;
  --warning-color: #FF9800;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow-light: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-medium: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-heavy: 0 8px 32px rgba(0,0,0,0.16);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
  overflow-x: hidden; /* Yan taşmaları engelle */
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

/* Mobil responsive düzeltmeleri */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
  }
  
  .container {
    padding: 0 15px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  /* Blog sayfası için ekstra düzeltmeler */
  .blog-main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .blog-layout {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .posts-grid {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .post-card {
    width: 100%;
    max-width: calc(100vw - 30px);
    box-sizing: border-box;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Header - Enhanced */
.header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 1rem 0;
  box-shadow: var(--shadow-medium);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.nav-brand a:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
}

.nav-menu a:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-link, .wishlist-link {
  color: white;
  text-decoration: none;
  position: relative;
  padding: 0.5rem;
  border-radius: 6px;
  transition: var(--transition);
}

.cart-link:hover, .wishlist-link:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.cart-count, .wishlist-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--danger-color);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.8rem;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.user-menu {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: white;
  color: #333;
  box-shadow: var(--shadow-medium);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 180px;
  display: none;
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

/* HOVER GECİKMESİ VE STABİLİTE DÜZELTİLDİ */
.user-menu:hover .user-dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* HOVER KÖPRÜSÜ - KAPANMAYI ÖNLEYİCİ */
.user-menu::before {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 10px;
  z-index: 999;
}

.user-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.user-dropdown a:hover {
  background: var(--light-color);
  color: var(--primary-color);
}

/* Hero Section - Enhanced */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons - Enhanced */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
  line-height: 1;
  box-shadow: var(--shadow-light);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-light);
}

.checkout-actions .btn-outline,
.cart-summary .btn-outline {
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.checkout-actions .btn-outline:hover,
.cart-summary .btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--dark-color);
}

.btn-secondary:hover {
  background: #ffb300;
}

.btn-success {
  background: var(--success-color);
}

.btn-success:hover {
  background: #388e3c;
}

.btn-danger {
  background: var(--danger-color);
}

.btn-danger:hover {
  background: #d32f2f;
}

.btn-warning {
  background: var(--warning-color);
}

.btn-warning:hover {
  background: #f57c00;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled:hover {
  transform: none;
  box-shadow: var(--shadow-light);
}

/* Product Grid - Enhanced */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.product-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  background: white;
  box-shadow: var(--shadow-light);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--primary-light);
}

.product-card:hover::before {
  opacity: 1;
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-image-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--light-color), #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #999;
  position: relative;
}

.product-image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--dark-color);
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.product-description {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  height: 3.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.product-meta {
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 1rem;
  font-weight: 400;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.product-actions .btn {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.9rem;
}

.product-actions .wishlist-btn {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Features - Enhanced */
.features {
  background: var(--light-color);
  padding: 5rem 0;
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--dark-color);
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.feature-item i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature-item h3 {
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--dark-color);
}

/* Forms - Enhanced */
.auth-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-color);
  padding: 2rem 0;
}

.auth-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border-color);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-weight: 700;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-color);
}

.form-control {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Alerts - Enhanced */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid;
  font-weight: 500;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert ul {
  margin: 0;
  padding-left: 1.5rem;
}

/* Page Header - Enhanced */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Products Page Layout - Enhanced */
.products-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  margin: 3rem 0;
  min-height: 80vh;
}

/* Filters Sidebar - Modern Design */
.filters-sidebar {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  height: fit-content;
  position: sticky;
  top: 2rem;
  transition: var(--transition);
}

.filters-sidebar:hover {
  box-shadow: var(--shadow-medium);
}

.filters-sidebar h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-light);
}

.filter-group {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.filter-group h4 {
  color: var(--dark-color);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group h4 i {
  color: var(--primary-color);
  font-size: 1rem;
}

/* Category List - Enhanced */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 0.75rem;
}

.category-list a {
  color: #555;
  text-decoration: none;
  padding: 0.875rem 1.25rem;
  display: block;
  border-radius: 8px;
  transition: var(--transition);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.category-list a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.1), transparent);
  transition: left 0.5s;
}

.category-list a:hover::before {
  left: 100%;
}

.category-list a:hover {
  background: rgba(33, 150, 243, 0.08);
  border-color: var(--primary-light);
  color: var(--primary-color);
  transform: translateX(8px);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.category-list a.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
  border-color: var(--primary-dark);
}

.category-list a.active:hover {
  transform: translateX(0);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* Price Filter */
.price-inputs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.price-input-group {
  flex: 1;
  position: relative;
}

.price-input-group label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.price-inputs input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: #fafafa;
}

.price-inputs input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
  outline: none;
  background: white;
}

/* Products Content */
.products-content {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  overflow: hidden;
  min-height: 600px;
}

/* Products Header */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.products-header-left h1 {
  color: var(--dark-color);
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.products-header-left .results-count {
  color: #666;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-count i {
  color: var(--primary-color);
}

/* Search Form */
.search-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
}

.search-form input {
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  width: 320px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: white;
}

.search-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
  outline: none;
  width: 380px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1rem;
}

.search-form button {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.search-form button:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.4);
}

.category-tag {
  background: linear-gradient(135deg, var(--light-color), rgba(33, 150, 243, 0.1));
  color: var(--primary-color);
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  border: 1px solid rgba(33, 150, 243, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.no-products {
  text-align: center;
  padding: 6rem 2rem;
  color: #666;
  grid-column: 1 / -1;
}

.no-products i {
  font-size: 5rem;
  margin-bottom: 2rem;
  color: #ddd;
  opacity: 0.7;
}

.no-products h3 {
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.no-products p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Product Detail - Enhanced */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.product-images {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.main-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.image-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  overflow-x: auto;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
  border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.breadcrumb {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.product-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-weight: 700;
}

.product-rating {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-rating i.filled {
  color: var(--secondary-color);
}

.product-rating i {
  color: #ddd;
}

.product-price {
  margin: 1.5rem 0;
}

.current-price {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: bold;
}

.original-price {
  font-size: 1.2rem;
  color: #999;
  text-decoration: line-through;
  margin-left: 1rem;
}

.discount {
  background: var(--danger-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.product-meta {
  background: var(--light-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
}

.product-meta p {
  margin: 0.5rem 0;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.compatibility {
  margin: 2rem 0;
}

.compatibility-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.compatibility-tag {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.product-tabs {
  margin: 3rem 0;
}

.tab-headers {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 2rem;
}

.tab-header {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-header.active,
.tab-header:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.features-list i {
  color: var(--success-color);
  margin-right: 0.5rem;
}

.requirements p {
  margin: 1rem 0;
  padding: 0.75rem;
  background: var(--light-color);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

/* Cart Page - Enhanced */
.cart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  background: white;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.cart-item:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.item-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.item-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
}

.item-price {
  color: var(--primary-color);
  font-weight: 600;
}

.item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border-color);
  background: white;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-weight: bold;
}

.quantity-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.quantity {
  padding: 0.5rem;
  min-width: 44px;
  text-align: center;
  font-weight: 600;
}

.item-total {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.btn-remove {
  background: var(--danger-color);
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-remove:hover {
  background: #d32f2f;
  transform: scale(1.05);
}

.cart-summary {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  height: fit-content;
  border: 1px solid var(--border-color);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}

.summary-line.total {
  font-size: 1.3rem;
  font-weight: bold;
  border-bottom: 2px solid var(--primary-color);
  margin-top: 1rem;
  color: var(--primary-color);
}

.checkout-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.empty-cart {
  text-align: center;
  padding: 6rem 2rem;
  color: #666;
}

.empty-cart i {
  font-size: 6rem;
  margin-bottom: 2rem;
  color: #ddd;
}

.empty-cart h3 {
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

/* About & Contact Pages - Enhanced */
.about-content,
.contact-content {
  padding: 4rem 0;
}

.about-text h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.about-text h3 {
  color: var(--dark-color);
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.about-text p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item {
  text-align: center;
  padding: 2.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.contact-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

/* Categories Page - Enhanced */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.category-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-heavy);
}

.category-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.category-image-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--light-color), #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #ccc;
}

.category-info {
  padding: 2rem;
}

.category-info h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.no-categories {
  grid-column: 1 / -1;
  text-align: center;
  padding: 6rem 2rem;
  color: #666;
}

.no-categories i {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  color: #ddd;
}

/* Footer - Enhanced */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 4rem 0 1rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.footer-section a:hover {
  color: white;
  transform: translateX(4px);
}

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  font-size: 1.75rem;
  transition: var(--transition);
}

.social-links a:hover {
  transform: translateY(-2px) scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #495057;
  color: #ccc;
}

/* Wishlist Button Styles - Enhanced */
.wishlist-btn {
  transition: var(--transition);
  position: relative;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e91e63;
  background: white;
  color: #e91e63;
  border-radius: 50%;
}

.wishlist-btn i {
  color: #e91e63;
  transition: var(--transition);
}

.wishlist-btn:hover {
  background: #e91e63;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3);
}

.wishlist-btn.in-wishlist {
  background: #e91e63;
  border-color: #e91e63;
  color: white;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.wishlist-btn.in-wishlist i {
  color: white;
  animation: heartbeat 0.6s ease-in-out;
}

.wishlist-btn.in-wishlist:hover {
  background: #ad1457;
  border-color: #ad1457;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
  75% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Enhanced Product Actions */
.product-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Responsive Design - Enhanced */
@media (max-width: 1200px) {
  .products-layout {
    grid-template-columns: 280px 1fr;
    gap: 2rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .search-form input {
    width: 280px;
  }
  
  .search-form input:focus {
    width: 320px;
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
  }
  
  .products-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .filters-sidebar {
    position: static;
    margin-bottom: 1rem;
    order: 2;
  }
  
  .products-content {
    order: 1;
  }
  
  .products-header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
    text-align: center;
  }
  
  .search-form {
    justify-content: center;
  }
  
  .search-form input {
    width: 100%;
    max-width: 400px;
  }
  
  .search-form input:focus {
    width: 100%;
  }
  
  .product-layout {
    grid-template-columns: 1fr;
  }
  
  .cart-content {
    grid-template-columns: 1fr;
  }
  
  .cart-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  /* Mobilde overflow koruması */
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .container {
    padding: 0 15px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  .nav {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .nav-actions {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .search-form input {
    width: 200px;
  }
  
  .product-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .product-actions .wishlist-btn {
    width: 100%;
    border-radius: 8px;
  }
  
  .tab-headers {
    flex-wrap: wrap;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .filters-sidebar {
    padding: 1.5rem;
  }
  
  .search-form {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
  }
  
  .page-header {
    padding: 2rem 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .product-content {
    padding: 1.25rem;
  }
  
  .auth-card {
    padding: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Advanced Animations & Effects */
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Focus States for Accessibility */
.category-list a:focus,
.btn:focus,
.form-control:focus,
.search-form input:focus,
.search-form button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Selection Colors */
::selection {
  background: var(--primary-color);
  color: white;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
}

/* Google OAuth Button Styles */
.btn-google {
  background: #4285f4;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-google:hover {
  background: #3367d6;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-google i {
  font-size: 1.2rem;
}

.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.auth-divider span {
  background: white;
  padding: 0 1rem;
  color: #666;
  font-size: 0.9rem;
}

/* Modern Auth Styles */
.modern-auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.auth-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.auth-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.auth-card-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
  margin: 1rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.auth-logo i {
  font-size: 1.5rem;
}

.auth-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: #718096;
  font-size: 0.95rem;
  margin: 0;
}

.alert-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.alert-modern.alert-danger {
  background: #fed7d7;
  color: #c53030;
  border: 1px solid #feb2b2;
}

.alert-modern.alert-success {
  background: #c6f6d5;
  color: #2f855a;
  border: 1px solid #9ae6b4;
}

.alert-modern i {
  font-size: 1.1rem;
}

.auth-form {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group-modern {
  margin-bottom: 1rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: #a0aec0;
  font-size: 1rem;
  z-index: 2;
}

.form-control-modern {
  width: 100%;
  padding: 1.5rem 1rem 1.5rem 3rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
  transition: all 0.3s ease;
  outline: none;
  min-height: 64px;
}

.form-control-modern:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-control-modern::placeholder {
  color: #a0aec0;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: var(--primary-color);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.checkbox-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #4a5568;
}

.checkbox-modern input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-modern input[type="checkbox"]:focus + .checkmark {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  border-color: var(--primary-color);
}

.checkbox-modern input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-modern input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.btn-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-primary-modern {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
  color: white;
}

.btn-google-modern {
  background: #fff;
  color: #333;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-google-modern:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: #333;
}

.btn-google-modern i {
  color: #4285f4;
  font-size: 1.2rem;
}

.auth-divider-modern {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider-modern::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.auth-divider-modern span {
  background: rgba(255, 255, 255, 0.95);
  padding: 0 1rem;
  color: #718096;
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-footer p {
  color: #718096;
  font-size: 0.9rem;
  margin: 0;
}

.auth-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Responsive Design for Modern Auth */
@media (max-width: 768px) {
  /* Mobilde overflow koruması */
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .modern-auth-container {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  .auth-card-modern {
    margin: 0.5rem;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: calc(100vw - 1rem);
    box-sizing: border-box;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .auth-header h2 {
    font-size: 1.75rem;
  }
  
  .shape {
    display: none;
  }
  
  .form-control-modern {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  .btn-modern {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
}