/* ===========================
   FIYATBUL - MAIN STYLESHEET
   =========================== */

:root {
  --primary: #FF6B35;
  --primary-dark: #e85a25;
  --primary-light: #FF8C5A;
  --secondary: #1A1A2E;
  --accent: #F7C59F;
  --bg: #F8F9FA;
  --bg-card: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --gradient: linear-gradient(135deg, #FF6B35, #FF8C5A);
  --gradient-dark: linear-gradient(135deg, #1A1A2E, #16213E);
  --green: #10B981;
  --red: #EF4444;
  --yellow: #F59E0B;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-top {
  background: var(--gradient-dark);
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 0;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-top-links a {
  color: #ccc;
  transition: var(--transition);
}

.header-top-links a:hover {
  color: var(--primary);
}

.header-main {
  padding: 14px 0;
}

.header-main-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
}

.logo-icon {
  font-size: 1.8rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--secondary);
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--primary);
}

/* SEARCH BAR */
.search-bar {
  flex: 1;
  display: flex;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: visible;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  background: #fff;
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.search-category {
  border-right: 2px solid var(--border);
  display: flex;
  align-items: center;
}

.search-category select {
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
}

.search-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 0 24px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 0 48px 48px 0;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.search-btn:hover {
  background: linear-gradient(135deg, #e85a25, #FF6B35);
  transform: none;
}

.search-btn svg {
  width: 18px;
  height: 18px;
}

/* SEARCH SUGGESTIONS */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 100;
  display: none;
  overflow: hidden;
}

.search-suggestions.active {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: var(--bg);
}

.suggestion-icon {
  font-size: 1.1rem;
}

.suggestion-text {
  font-size: 0.9rem;
}

.suggestion-text strong {
  color: var(--primary);
}

.suggestion-price {
  margin-left: auto;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
}

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: fit-content;
}

.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  transition: var(--transition);
  color: var(--text);
}

.action-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.action-btn svg {
  width: 20px;
  height: 20px;
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.action-btn:hover .badge {
  background: #fff;
  color: var(--primary);
}

.btn-login {
  background: var(--gradient);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* NAV */
.header-nav {
  background: var(--secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: block;
  padding: 12px 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  border-bottom-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-highlight {
  color: var(--primary) !important;
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  background: var(--gradient-dark);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 140, 90, 0.1) 0%, transparent 40%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.2);
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: #FF8C5A;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
  animation: fadeInUp 0.7s ease;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 35px;
  animation: fadeInUp 0.8s ease;
}

/* HERO SEARCH */
.hero-search {
  display: flex;
  background: #fff;
  border-radius: 60px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 700px;
  margin: 0 auto 20px;
  animation: fadeInUp 0.9s ease;
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 24px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--text);
}

.hero-search-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 18px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
  border-radius: 0 60px 60px 0;
}

.hero-search-btn:hover {
  background: linear-gradient(135deg, #e85a25, #FF6B35);
}

.hero-search-btn svg {
  width: 20px;
  height: 20px;
}

.hero-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  animation: fadeInUp 1s ease;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* HERO STATS */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 900px;
  animation: fadeInUp 1.1s ease;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 60px 0;
}

.bg-dark-section {
  background: var(--secondary);
}

.bg-dark-section .section-title {
  color: #fff;
}

.bg-dark-section .see-all {
  color: rgba(255, 255, 255, 0.6);
}

.bg-dark-section .see-all:hover {
  color: var(--primary);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-header.center {
  flex-direction: column;
  text-align: center;
  gap: 10px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.see-all {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
}

.see-all:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* COUNTDOWN */
.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.time-box {
  background: var(--secondary);
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  min-width: 38px;
}

.time-box small {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== CATEGORIES GRID ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.category-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 12px;
  text-align: center;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: block;
}

.category-card:hover {
  border-color: var(--cat-color);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.cat-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.cat-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* PRODUCT CARD */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 107, 53, 0.2);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}

.product-badge.green {
  background: var(--green);
}

.product-badge.yellow {
  background: var(--yellow);
  color: #333;
}

.product-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
  font-size: 1rem;
  backdrop-filter: blur(4px);
}

.product-fav:hover {
  background: #fff;
  transform: scale(1.15);
}

.product-fav.active {
  background: var(--primary);
}

/* Gerçek ürün resimleri */
.product-img-wrapper {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9ff, #eef0ff);
  position: relative;
}

.product-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.product-card:hover .product-real-img {
  transform: scale(1.06);
}

.product-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #f8f9ff, #e8eeff);
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  display: block;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.product-info {
  padding: 14px;
}

.product-brand {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.stars {
  color: #F59E0B;
  letter-spacing: 1px;
}

.product-price-section {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.product-price-old {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary);
}

.product-price-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.product-stores {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.store-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.compare-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.compare-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* PRICE DROP BADGE */
.drop-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  margin-top: 4px;
}

/* ===== STORES ===== */
.stores-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  background: #fff;
  border: 2px solid var(--border);
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  cursor: pointer;
}

.store-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===== STEPS ===== */
.steps-grid {
  display: flex;
  align-items: center;
  gap: 20px;
}

.step-card {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  text-align: center;
  border: 2px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.step-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-arrow {
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  padding: 50px 0;
  background: var(--bg);
}

.newsletter-card {
  background: var(--gradient);
  border-radius: var(--radius-xl);
  padding: 50px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.newsletter-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  min-width: 450px;
}

.newsletter-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: inherit;
}

.btn-primary {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-primary:hover {
  background: #000;
  transform: scale(1.02);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 18px;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
}

.footer-links h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.disclaimer {
  margin-top: 6px;
  font-size: 0.75rem;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px;
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--red);
  color: #fff;
}

/* MODAL PRODUCT DETAIL */
.modal-product {
  padding: 20px 30px 30px;
  clear: both;
}

.modal-product-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.modal-product-img {
  width: 250px;
  height: 250px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f0f0f0, #e5e5e5);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

.modal-product-info h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.modal-product-info .rating {
  color: #F59E0B;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.modal-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
}

.modal-price-old {
  font-size: 1rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.modal-save {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 4px;
}

.modal-product-stores {
  margin-top: 20px;
}

.modal-product-stores h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.store-offer {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  gap: 14px;
  transition: var(--transition);
}

.store-offer:hover {
  border-color: var(--primary);
  background: rgba(255, 107, 53, 0.02);
}

.store-offer-name {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
}

.store-offer-price {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--primary);
  margin-right: 12px;
}

.store-offer-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.store-offer-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.store-offer.best {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.03);
}

.store-offer.best .store-offer-name::after {
  content: ' 🏆 En Ucuz';
  color: var(--green);
  font-size: 0.78rem;
}

/* PRICE CHART */
.price-chart-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.price-chart-section h3 {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 700;
}

.price-chart {
  height: 120px;
  background: linear-gradient(to bottom, rgba(255, 107, 53, 0.05), transparent);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  gap: 4px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary), rgba(255, 107, 53, 0.4));
  border-radius: 4px 4px 0 0;
  transition: var(--transition);
  cursor: pointer;
}

.chart-bar:hover {
  opacity: 0.8;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.back-to-top.visible {
  display: flex;
  animation: bounceIn 0.4s ease;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

@keyframes bounceIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== SEARCH RESULTS PAGE ===== */
.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 40px 0;
}

.filters-sidebar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 150px;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  padding: 5px 0;
  cursor: pointer;
}

.filter-option input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.filter-option-count {
  margin-left: auto;
  color: var(--text-light);
  font-size: 0.78rem;
}

.price-range {
  display: flex;
  gap: 10px;
}

.price-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: inherit;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.results-sort {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sort-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.sort-select:focus {
  border-color: var(--primary);
}

.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.view-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1rem;
}

.view-btn.active {
  background: var(--primary);
  color: #fff;
}

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  color: var(--border);
}

.breadcrumb .current {
  color: var(--text);
  font-weight: 500;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--secondary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-xl);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .header-main-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .search-bar {
    order: 3;
    width: 100%;
  }

  .newsletter-card {
    flex-direction: column;
    padding: 36px;
  }

  .newsletter-form {
    min-width: unset;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .page-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 50px 0 40px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .hero-search input {
    border-radius: var(--radius-lg);
  }

  .hero-search-btn {
    border-radius: var(--radius-lg);
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .modal-product-header {
    flex-direction: column;
  }

  .modal-product-img {
    width: 100%;
  }

  .header-actions .action-btn {
    display: none;
  }

  .search-category {
    display: none;
  }
}