@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* =========================================
   Root Variables – Cyberpunk Purple
========================================= */
:root {
  --primary: #6a00f4;          /* Mor ana ton */
  --primary-dark: #4b008f;     /* Derin mor */
  --accent: #b5179e;           /* Fuşya/Pembe */
  --accent-light: #ff5fd0;     /* Neon pembe */
  --bg-gradient: linear-gradient(135deg, #6a00f4 0%, #b5179e 100%);
  --bg-light: #0d0d12;
  --bg-dark: #0b0b0d;
  --bg-card: #18181b;
  --text-dark: #f4f4f5;
  --text-gray: #a1a1aa;
  --radius: 20px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* =========================================
   Global Reset & Base
========================================= */
* {
  box-sizing: border-box;
}
html, body {
  min-height: 100%;
}
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-gradient) fixed;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  position: relative;
  animation: fade-in 0.7s ease-out both;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* =========================================
   Animations
========================================= */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0% { background: yellow; color: black; }
  100% { background: inherit; color: inherit; }
}

/* =========================================
   Navbar
========================================= */
.navbar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  border-bottom: 2px solid var(--accent);
  transition: all 0.3s ease;
}

/* Scroll sonrası küçülme efekti */
.navbar.shrink {
  padding: 8px 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid rgba(255, 215, 0, 0.6);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===============================
   Logo Görseli (Nav Brand)
================================*/
.nav-brand .logo {
  height: 70px;                 /* 🔹 Daha belirgin hale getirildi */
  max-height: 70px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast; /* 🔹 Keskin görüntü */
  transition: all 0.35s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); /* 🔹 Hafif gölge efekti */
}

/* Scroll sonrası küçülme efekti */
.navbar.shrink .nav-brand .logo {
  height: 50px;                 /* 🔹 Orantılı küçülme */
  max-height: 50px;
  transform: scale(0.97);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
  opacity: 0.95;                /* 🔹 Yumuşak görünüm */
}

/* Küçük ekranlarda (mobil) logo boyutunu optimize et */
@media (max-width: 768px) {
  .nav-brand .logo {
    height: 40px;
    max-height: 40px;
  }
  .navbar.shrink .nav-brand .logo {
    height: 45px;
    max-height: 45px;
  }
}


/* Menü bağlantıları */
.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}
.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s, text-shadow 0.3s;
}
.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links li a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}
.nav-links li a:hover::after {
  width: 100%;
}

/* Sağ aksiyon butonları */
.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* =========================================
   🔧 İYİLEŞTİRİLMİŞ BUTONLAR
========================================= */

/* Genel ikon buton stili */
.btn-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.25s ease;
  z-index: 10;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* 🛒 Sepet butonu özel */
/* =========================================
   Sepet Butonu (cart-btn)
========================================= */
.cart-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

/* Hover efekti — tıklama hissi verir */
.cart-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.12);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Aktif (tıklanma) efekti */
.cart-btn:active {
  transform: scale(0.96);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

/* İkonu net göster */
.cart-btn i {
  font-size: 1.3rem;
  pointer-events: none; /* ikon üstü tıklama kaybını engeller */
}

/* Sepet sayacı */
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  pointer-events: none; /* 🔥 kritik satır */
  user-select: none;
  transition: transform 0.2s ease;
}

/* Sepet sayacı hareketli hissi */
.cart-btn:hover .cart-count {
  transform: scale(1.1);
}

/* Mobilde biraz daha küçük */
@media (max-width: 480px) {
  .cart-btn {
    width: 46px;
    height: 46px;
  }
  .cart-btn i {
    font-size: 1.1rem;
  }
}

/* =========================================
   Mobil Menü
========================================= */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 65px;
    right: 0;
    flex-direction: column;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    width: 220px;
    padding: 20px;
    gap: 15px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    border-left: 2px solid var(--accent);
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    border: none;
    font-size: 20px;
  }
  .mobile-menu:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
  }
}

/* =========================================
   Hero Section
========================================= */
.hero {
  background: linear-gradient(135deg, #16161a, #23232a);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  animation: fade-up 1s ease-out;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin: 15px 0 25px;
  animation: fade-up 1.3s ease-out;
}
.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   Buttons (genel)
========================================= */
.btn-primary,
.btn-checkout {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(106, 0, 244, 0.3);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover,
.btn-checkout:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px var(--accent-light);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all .3s ease;
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 15px var(--accent);
}

.btn-add {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s, box-shadow .3s;
}
.btn-add:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 15px var(--primary);
}

.btn-checkout-small {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-checkout-small:hover { background: var(--primary-dark); }

.btn-remove {
  background: #ef4444;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-remove:hover { background: #dc2626; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all .2s;
}
.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- TOTAL ROW ---------- */
.total-row td {
  background: rgba(255,255,255,0.07);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

/* =========================================
   Categories & Product Cards
========================================= */
.categories h2,
.popular h2,
.section-title {
  text-align: center;
  color: #ff59e6;
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

.categories .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.category-card {
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  color: var(--text-dark);
  transition: transform .3s, background .3s, box-shadow .3s;
  animation: fade-in 1.2s ease-out;
  border: 1px solid rgba(181, 23, 158, 0.3);
}
.category-card:hover {
  transform: translateY(-8px) scale(1.03);
  background: #222;
  box-shadow: 0 0 20px rgba(181, 23, 158, 0.5);
}

.products-grid,
.popular .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 20px;
}
.product-card {
  background: rgba(10,10,15,0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
  transition: transform .3s, box-shadow .3s;
  animation: fade-in 1.4s ease-out;
  border: 1px solid rgba(181, 23, 158, 0.3);
}
.product-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 25px rgba(181, 23, 158, 0.5);
}

.product-card img,
.product-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}
.no-image {
  height: 150px;
  background: #2a2a32;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  border-radius: 8px;
  margin-bottom: 12px;
}

/* Başlık + Fiyat */
.title-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.title-price h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}
.price-label {
  background: var(--accent);
  color: #fff;
  padding: 3px 8px;
  font-size: 0.85rem;
  border-radius: 6px;
  font-weight: bold;
}

.product-card .desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 10px;
  line-height: 1.3;
}
.product-card .details {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--text-gray);
}
.product-card .details li {
  margin-bottom: 4px;
}

.cart-actions {
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.cart-actions .btn-primary {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}
.cart-actions .btn-primary:hover {
  background: #5b21b6;
}

/* =========================================
   Qty Box (Global)
========================================= */
.qty-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}

.qty-box button {
  background: linear-gradient(90deg, #c100ff, #ff00d0);
  color: #fff;
  font-size: 1.2rem;
  border: none;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: background 0.3s;
}

.qty-box button:hover {
  background: linear-gradient(90deg, #e300ff, #ff47d8);
}

.qty-box .qty-input {
  width: 46px;
  height: 34px;
  text-align: center;
  background: transparent;
  border: none;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  outline: none;
}

/* =========================================
   Cart & Checkout
========================================= */
.cart-form {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.qty-input {
  width: 56px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #333;
  background: var(--bg-card);
  color: var(--text-dark);
  text-align: center;
}
.checkout-wrapper {
  text-align: center;
  margin: 20px 0;
}

/* =========================================
   Admin / Orders / Receipt
========================================= */
.admin-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 1px solid rgba(181, 23, 158, 0.3);
}
.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}
.order-card {
  background: var(--bg-card);
  color: var(--text-dark);
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  border: 1px dashed var(--accent);
  transition: transform .2s;
  cursor: pointer;
}
.order-card:hover {
  transform: scale(1.02);
}
.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-gray);
}
.order-id {
  font-weight: 600;
  color: var(--accent);
}
.order-date {
  font-size: 0.85rem;
}
.order-body p {
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
}
.order-body span {
  color: #fff;
}

/* Sipariş Durumları */
.status {
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
}
.status.new { background: #2563eb; color: #fff; }
.status.cooking { background: #f59e0b; color: #fff; }
.status.ready { background: #22c55e; color: #fff; }
.status.done { background: #9333ea; color: #fff; }
.status.updated { animation: blink 1s ease; }

/* Receipt */
.receipt-box {
  max-width: 420px;
  margin: 30px auto;
  background: var(--bg-card);
  color: var(--text-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  border: 1px dashed var(--accent);
}
.receipt-header {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 1.2rem;
  font-weight: 700;
}
.receipt-body { padding: 20px; }
.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
  font-size: 0.95rem;
}
.receipt-table th,
.receipt-table td {
  padding: 8px;
  text-align: left;
}
.receipt-table th {
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: var(--accent);
}
.receipt-table td {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.receipt-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin: 12px 0;
  font-size: 1rem;
}
.receipt-info p { margin: 6px 0; }
.delivery-code {
  color: #f59e0b;
  font-size: 1.3rem;
  font-weight: bold;
}
.note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #fbbf24;
  text-align: center;
}
.receipt-footer {
  text-align: center;
  padding: 15px;
  border-top: 1px dashed rgba(255,255,255,0.1);
}

/* =========================================
   Modal
========================================= */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  transition: opacity 0.3s ease;
}
.modal.hidden { display: none; }

.modal-content {
  position: relative;
  max-width: 600px;
  width: 90%;
  background: linear-gradient(135deg, #1a1a1d, #2e004f);
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  color: #fff;
  border: 1px solid rgba(181, 23, 158, 0.3);
  animation: fade-in 0.3s ease;
}
.modal-content h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  color: var(--accent-light);
}
.modal-content .close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}
.modal-content .close:hover {
  color: var(--accent-light);
  transform: rotate(90deg);
}

/* =========================================
   Forms & Profile
========================================= */
.card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(181, 23, 158, 0.3);
}
.form label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
}
.form input {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1f1f23;
  color: #fff;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  outline: none;
}

.register-card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 420px;
  color: var(--text-dark);
  border: 1px solid rgba(181, 23, 158, 0.3);
}
.form-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.form-group {
  margin-bottom: 15px;
}
.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  margin-bottom: 6px;
  display: block;
}
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #333;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-dark);
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  outline: none;
}

/* Butonlar */
.btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.login-link {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: var(--text-gray);
}
.login-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.login-link a:hover {
  color: var(--primary);
  text-shadow: 0 0 6px var(--accent);
}

/* Form Container */
.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: calc(100vh - 100px);
  box-sizing: border-box;
}
/* =========================================
   Hero Slider
========================================= */
.hero-slider {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-content {
  position: absolute;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0,0,0,0.6);
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #f1f1f1;
}

/* Slider Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 3;
}
.slider-btn:hover { background: rgba(0,0,0,0.6); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 3;
}
.slider-dots button {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}
.slider-dots button.active { background: var(--accent); }

/* =========================================
  /* =========================================
   Toast Notifications
========================================= */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(181, 23, 158, 0.5);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(-16px);
  transition: .25s;
  z-index: 2000;
  pointer-events: none; /* 🧩 bu satır tüm tıklama sorununu çözer */
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Reviews Section
========================================= */
.reviews-section {
  padding: 40px 15px;
  background: #0d0d0d;
  color: #fff;
}
.review-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.stat {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  background: #1a1a1a;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}
.stat span { font-size: 0.85rem; color: #bbb; }
.stat strong { display: block; margin-top: 6px; font-size: 1rem; }
.stat small { display: block; font-size: 0.7rem; color: #aaa; }
.stat .bar {
  width: 100%;
  height: 6px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0;
}
.stat .bar div {
  height: 100%;
  background: linear-gradient(135deg, #6a00f4, #b5179e);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 15px;
}
.review-card {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-header .avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #aaa;
}
.review-header h4 { margin: 0; font-size: 0.9rem; font-weight: 600; }
.review-header .date { font-size: 0.7rem; color: #888; }
.review-ratings {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #ddd;
  border-top: 1px solid #222;
  padding-top: 6px;
}
.review-comment {
  font-size: 0.8rem;
  font-style: italic;
  color: #eee;
  margin-top: 4px;
}

/* Pagination */
.pagination {
  margin-top: 25px;
  text-align: center;
}
.pagination a {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 12px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.3s;
}
.pagination a:hover {
  background: var(--primary);
}
.pagination a.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: bold;
}

/* =========================================
   Footer
========================================= */
.footer {
  background: var(--bg-dark);
  color: var(--text-gray);
  padding: 50px 0 25px;
  margin-top: 50px;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.25);
  border-top: 2px solid rgba(181, 23, 158, 0.4);
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}
.footer-section h4 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 18px;
  font-weight: 600;
  position: relative;
}
.footer-section h4::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin-top: 8px;
  border-radius: 2px;
}
.footer-section p,
.footer-section a {
  color: var(--text-gray);
  text-decoration: none;
  margin-bottom: 10px;
  display: block;
  font-size: 0.95rem;
  transition: color 0.3s, transform 0.2s;
}
.footer-section a:hover {
  color: var(--primary);
  text-shadow: 0 0 6px var(--accent);
  transform: translateX(4px);
}
.social-icons {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-top: 15px;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--primary);
  font-size: 1.3rem;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.social-icons a:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.15);
}
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  color: var(--text-gray);
  letter-spacing: 0.5px;
}

/* =========================================
   Responsive Fixes
========================================= */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; }
  .nav-links.active { display: flex; }
  #cartTable { font-size: 0.85rem; }
  .cart-actions-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .register-card { padding: 20px; border-radius: 10px; }
  .form-title { font-size: 20px; }
  .btn-primary { font-size: 14px; padding: 10px; }
  .receipt-box { margin: 15px; font-size: 0.9rem; }
  .receipt-table th, .receipt-table td { padding: 6px; font-size: 0.85rem; }
  .delivery-code { font-size: 1.1rem; }
}
/* =========================================
   Forgot Password Steps – Fix Alignment
========================================= */
#step1, #step2, #step3 {
  animation: fade-up 0.4s ease-out;
  width: 100%;
  max-width: 400px;
  margin: auto;
}

#step1 form, #step2 form, #step3 form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: var(--bg-card);
  padding: 25px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(181, 23, 158, 0.3);
}

#step1 input, #step2 input, #step3 input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1f1f23;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: all .25s ease;
}
#step1 input:focus, #step2 input:focus, #step3 input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  outline: none;
}

#step1 button, #step2 button, #step3 button {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
#step1 button:hover, #step2 button:hover, #step3 button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px var(--accent);
}

#step2, #step3 {
  margin-top: 25px;
}

.form-container .register-card h2 {
  text-align: center;
  margin-bottom: 15px;
  color: var(--accent);
}

/* Responsive fix */
@media (max-width:480px) {
  #step1 form, #step2 form, #step3 form {
    padding: 20px;
  }
}
/* =========================================
   Profil Sayfası (Bilgilerim / Şifre Değiştir)
========================================= */
.profile-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 150px);
  color: var(--text-dark);
}

.profile-section .container {
  max-width: 800px;
  width: 100%;
}

/* Başlık */
.profile-section .section-title {
  text-align: center;
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(181, 23, 158, 0.5);
}

/* Tab Butonları */
.tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}
.tab-btn {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tab-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 0 12px rgba(181, 23, 158, 0.6);
}

/* Tab İçerikleri */
.tab-content {
  display: none;
  animation: fade-in 0.4s ease;
}
.tab-content.active {
  display: block;
}

/* Profil Kartı */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(181, 23, 158, 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px 30px;
  color: var(--text-dark);
  animation: fade-up 0.4s ease;
}

/* Profil Resmi */
.profile-image {
  text-align: center;
  margin-bottom: 20px;
}
.profile-image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px rgba(181, 23, 158, 0.4);
  transition: transform 0.3s ease;
}
.profile-image img:hover {
  transform: scale(1.05);
}

/* Form */
.form label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-gray);
}
.form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1f1f23;
  color: #fff;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  outline: none;
}

/* Butonlar */
.btn-primary.full {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary.full:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent-light));
  transform: scale(1.03);
  box-shadow: 0 0 15px var(--accent);
}

/* Alert Mesajları */
.alert {
  margin-bottom: 25px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}
.alert-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid #22c55e;
  color: #22c55e;
}
.alert-danger {
  background: rgba(239,68,68,0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}
.alert-warning {
  background: rgba(234,179,8,0.1);
  border: 1px solid #facc15;
  color: #facc15;
}

/* Responsive */
@media (max-width: 600px) {
  .tab-btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 8px 10px;
  }
  .card {
    padding: 20px;
  }
  .profile-image img {
    width: 100px;
    height: 100px;
  }
}
