html, body { height: 100%; }
body {
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  margin: 0;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.profilim-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.2rem 3rem;
  width: 100%;
  flex: 1;
}

/* Sepet ikonu (header) — urunler.css'teki tanımla aynı, bu sayfa o
   dosyayı dahil etmediği için burada da tanımlı olması gerekiyor. */
.cart-btn-wrapper { position: relative; }
.cart-icon-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #333;
  cursor: pointer;
  position: relative;
  padding: 4px 6px;
  transition: color 0.2s;
}
.cart-icon-btn:hover { color: #1a6b34; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #e53935;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}

/* Profil karşılama alanı */
.profilim-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #1a6b34, #2d9e52);
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.2rem;
  color: #fff;
}
.profilim-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
}
.profilim-hero-info h1 {
  font-size: 1.35rem;
  margin: 0 0 2px;
}
.profilim-hero-info p {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
}
.profilim-uye-tarihi {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.12);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* Özet kartları */
.profilim-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 1.5rem;
}
.profilim-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 14px;
}
.profilim-stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.profilim-stat-icon.stat-yesil   { background: #e8f5e9; color: #27ae60; }
.profilim-stat-icon.stat-mavi    { background: #e3f2fd; color: #1976d2; }
.profilim-stat-icon.stat-turuncu { background: #fff3e0; color: #f57c00; }
.profilim-stat-info p { font-size: 0.76rem; color: #999; margin: 0 0 3px; }
.profilim-stat-info strong { font-size: 1.2rem; color: #222; }

.profilim-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.profilim-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  margin-bottom: 1.2rem;
}
.profilim-card h3 {
  font-size: 1.05rem;
  color: #1a3d2b;
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: 8px;
}
.profilim-card label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #555;
  margin: 12px 0 6px;
}
.profilim-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.profilim-card input:focus { border-color: #27ae60; }
.profilim-card input:disabled { background: #f5f5f5; color: #999; }

.profilim-btn {
  margin-top: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 22px;
  background: linear-gradient(135deg, #1a6b34, #2d9e52);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}
.profilim-btn:hover { transform: translateY(-2px); }

.profilim-msg { margin-top: 12px; font-size: 0.84rem; font-weight: 600; min-height: 16px; }
.profilim-msg.ok  { color: #1a6b34; }
.profilim-msg.err { color: #e53935; }

.profilim-cikis-btn {
  width: 100%;
  padding: 11px;
  border: 1.5px solid #ffcdd2;
  border-radius: 22px;
  background: #fff5f5;
  color: #e53935;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.profilim-cikis-btn:hover { background: #ffebee; }

/* Sipariş kartları */
.siparis-kart {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.siparis-kart:last-child { margin-bottom: 0; }
.siparis-kart-ust {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.siparis-id { font-weight: 800; color: #1a6b34; margin-right: 12px; }
.siparis-tarih { font-size: 0.82rem; color: #888; }

.siparis-durum-rozet {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
}
.siparis-durum-rozet.beklemede    { background: #fff3e0; color: #f57c00; }
.siparis-durum-rozet.onaylandi    { background: #e3f2fd; color: #1976d2; }
.siparis-durum-rozet.iptal        { background: #ffebee; color: #e53935; }
.siparis-durum-rozet.hazirlaniyor { background: #f3e5f5; color: #8e24aa; }
.siparis-durum-rozet.kargoda      { background: #e0f2f1; color: #00897b; }
.siparis-durum-rozet.teslim       { background: #e8f5e9; color: #2e7d32; }

.siparis-urunler {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.siparis-urun-satir {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #555;
  padding: 4px 0;
}
.siparis-toplam { text-align: right; font-size: 0.92rem; color: #444; }
.siparis-toplam strong { color: #1a6b34; }

.profilim-bos { text-align: center; padding: 40px 10px; color: #aaa; }
.profilim-bos i { font-size: 2.5rem; margin-bottom: 10px; display: block; }

@media (max-width: 800px) {
  .profilim-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .profilim-hero { flex-direction: column; text-align: center; }
  .profilim-stats { grid-template-columns: 1fr 1fr; }
}
