:root {
  --ana-renk: #059669;
  --ikincil-renk: #eaf8ef;
  --vurgu-renk: #f59e0b;
  --arkaplan-renk: #fafbfc;
  --metin-renk: #0f172a;
  --metin-soluk-renk: #64748b;
  --kart-renk: #ffffff;
  --kenarlik-renk: #e2e8f0;
  --golge-renk: rgba(15, 23, 42, 0.08);
  --buton-renk: #059669;
  --buton-vurgu-renk: #047857;
  --buton-metin-renk: #ffffff;
  --baslik-alt-gradyan: linear-gradient(135deg, var(--ana-renk) 0%, var(--vurgu-renk) 100%);
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(5, 150, 105, 0.08), transparent),
    linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
  color: var(--metin-renk);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* ===================== LAYOUT ======================== */
.konteyner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================== HEADER ======================== */
.site-header {
  background: #ffffff;
  color: var(--metin-renk);
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--kenarlik-renk);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.site-header .logo-alan {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header .logo-harf {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ikincil-renk);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ana-renk);
}

.site-header .logo-img {
  height: 56px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

.site-header .marka-adi {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-header .marka-etiket {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.75;
}

.site-header .nav-aksiyonlar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header .nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--kenarlik-renk);
  background: var(--arkaplan-renk);
  color: var(--metin-renk);
  cursor: pointer;
  transition: all 0.2s ease;
}

.site-header .nav-btn:hover {
  background: var(--ikincil-renk);
  color: var(--ana-renk);
  border-color: var(--ana-renk);
  transform: translateY(-1px);
}

.site-header .nav-btn.sepet-btn {
  background: var(--ana-renk);
  color: #fff;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 14px rgba(5,150,105,0.2);
}

.sepet-sayac {
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
}

/* ===================== MOBİL NAV ======================== */
.mobil-nav {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 0.75rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.mobil-nav ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  text-align: center;
}

.mobil-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--metin-soluk-renk);
  transition: all 0.2s;
}

.mobil-nav a.aktif, .mobil-nav a:hover {
  background: var(--ana-renk);
  color: #fff;
}

.mobil-nav svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .mobil-nav { display: block; }
  .site-header .nav-btn span { display: none; }
  body { padding-bottom: 5rem; }
}

/* ===================== FOOTER ======================== */
.site-footer {
  background: var(--baslik-alt-gradyan);
  color: #fff;
  margin-top: auto;
}

.site-footer .footer-ic {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 2rem;
}

.site-footer h3 {
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  opacity: 0.5;
  margin-bottom: 1.25rem;
}

.site-footer ul { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer ul a {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.88;
  transition: all 0.2s;
  display: inline-block;
}

.site-footer ul a:hover {
  opacity: 1;
  transform: translateX(4px);
}

.footer-marka-adi {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.footer-logo-harf {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
}

.footer-aciklama {
  font-size: 0.82rem;
  opacity: 0.78;
  line-height: 1.7;
}

.footer-iletisim-satir {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-iletisim-ikon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-iletisim-etiket {
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.footer-iletisim-deger {
  font-size: 0.95rem;
  font-weight: 900;
}

.footer-alt-bant {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0.6;
}

.footer-alt-bant p { font-size: 0.75rem; font-weight: 700; }

.odeme-rozetler {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.odeme-rozet {
  font-size: 0.6rem;
  font-weight: 900;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  text-transform: uppercase;
}

.odeme-rozet.ssl { color: #34d399; border-color: #34d399; }

@media (max-width: 1024px) {
  .site-footer .footer-ic {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .site-footer .footer-ic {
    grid-template-columns: 1fr;
  }
}

/* ===================== BUTONLAR ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-ana {
  background: var(--baslik-alt-gradyan);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5,150,105,0.3);
  position: relative;
  overflow: hidden;
}

.btn-ana::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s;
}

.btn-ana:hover::before { left: 100%; }

.btn-ikincil {
  background: var(--ikincil-renk);
  color: var(--ana-renk);
}

.btn-tehlike {
  background: #fee2e2;
  color: #dc2626;
}

.btn-buyuk { padding: 0.9rem 2rem; font-size: 1rem; border-radius: 14px; }
.btn-kucuk { padding: 0.4rem 0.9rem; font-size: 0.78rem; border-radius: 8px; }

/* ===================== KARTLAR ======================== */
.urun-kart {
  background: var(--kart-renk);
  border: 1px solid var(--kenarlik-renk);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 3px rgba(15,23,42,0.06);
}

.urun-kart:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(15,23,42,0.1);
  border-color: rgba(5,150,105,0.2);
}

.urun-kart-gorsel {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8fafc;
}

.urun-kart-gorsel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.urun-kart:hover .urun-kart-gorsel img {
  transform: scale(1.05);
}

.urun-kart-icerik {
  padding: 1rem;
}

.urun-kart-adi {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.urun-kart-fiyat {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--ana-renk);
}

.urun-kart-eski-fiyat {
  font-size: 0.8rem;
  color: var(--metin-soluk-renk);
  text-decoration: line-through;
}

.indirim-rozeti {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
}

/* ===================== GRID ======================== */
.urun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 480px) {
  .urun-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* ===================== BÖLÜM BAŞLIĞI ======================== */
.bolum {
  padding: 3rem 0;
}

.bolum-baslik {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.bolum-baslik h2 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.bolum-baslik-cizgi {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--kenarlik-renk), transparent);
}

/* ===================== FORMLAR ======================== */
.form-grup {
  margin-bottom: 1.25rem;
}

.form-etiket {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--metin-renk);
}

.form-alani {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--kenarlik-renk);
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: var(--metin-renk);
  transition: border-color 0.2s;
  outline: none;
}

.form-alani:focus {
  border-color: var(--ana-renk);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.1);
}

/* ===================== UYARILAR ======================== */
.uyari {
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.uyari-hata { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.uyari-basari { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.uyari-bilgi { background: #dbeafe; color: #2563eb; border: 1px solid #bfdbfe; }

/* ===================== BANNER ======================== */
.banner-slider {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  background: var(--baslik-alt-gradyan);
  display: flex;
  align-items: center;
}

.banner-icerik {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
  color: #fff;
}

.banner-etiket {
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  opacity: 0.8;
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.banner-baslik {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.banner-aciklama {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 550px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ===================== SEPET ======================== */
.sepet-satir {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--kenarlik-renk);
  border-radius: 16px;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s;
}

.sepet-satir:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.sepet-gorsel {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  background: #f8fafc;
  flex-shrink: 0;
}

/* ===================== SAYFALAMA ======================== */
.sayfalama {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.sayfa-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--kenarlik-renk);
  background: #fff;
  color: var(--metin-renk);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.sayfa-btn:hover, .sayfa-btn.aktif {
  background: var(--ana-renk);
  color: #fff;
  border-color: var(--ana-renk);
}

/* ===================== ANİMASYONLAR ======================== */
.kayma-giris {
  animation: kaymaGiris 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes kaymaGiris {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===================== YÜKLÜYOR ======================== */
.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid var(--kenarlik-renk);
  border-top-color: var(--ana-renk);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

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

/* ===================== BADGE ======================== */
.rozet {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rozet-ana     { background: var(--ikincil-renk); color: var(--ana-renk); }
.rozet-vurgu   { background: #fef3c7; color: #d97706; }
.rozet-hata    { background: #fee2e2; color: #dc2626; }
.rozet-gri     { background: #f1f5f9; color: var(--metin-soluk-renk); }

/* ===================== GİRİŞ SAYFASI KART ======================== */
.auth-kart {
  max-width: 440px;
  margin: 4rem auto;
  padding: 2.5rem;
  background: #fff;
  border: 1px solid var(--kenarlik-renk);
  border-radius: 24px;
  box-shadow: 0 10px 60px rgba(15,23,42,0.08);
}

/* ===================== YÖNETİM PANELİ ======================== */
.yonetim-layout {
  display: flex;
  min-height: 100vh;
}

.yonetim-sidebar {
  width: 250px;
  background: var(--baslik-alt-gradyan);
  color: #fff;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 1.5rem 1rem;
}

.yonetim-icerik {
  flex: 1;
  padding: 2rem;
  overflow-x: hidden;
}

.yonetim-sidebar .sidebar-baslik {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.yonetim-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.25rem;
  transition: all 0.2s;
}

.yonetim-sidebar a:hover, .yonetim-sidebar a.aktif {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

@media (max-width: 768px) {
  .yonetim-sidebar { display: none; }
}

/* ===================== TABLO ======================== */
.tablo {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.tablo th {
  text-align: left;
  padding: 0.9rem 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--metin-soluk-renk);
  background: #f8fafc;
  border-bottom: 1px solid var(--kenarlik-renk);
}

.tablo td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--kenarlik-renk);
  vertical-align: middle;
}

.tablo tr:last-child td { border-bottom: none; }
.tablo tr:hover td { background: #f8fafc; }
