/* =========================================================
   Bamboox Frontend Style Sheet
   Bölüm Yapısı:
   0) Reset & Global
   1) Base (body, linkler)
   2) Header & Navbar
   3) Butonlar (global)
   4) Layout (page-main vb.)
   5) Ana Sayfa / Ürün listesi (hero, product-grid)
   6) Üyelik / Giriş (auth-page)
   7) Admin Panel (admin-...)
   8) Footer
   9) Sepet Sayfası (cart-page)
   10) Header Giriş / Üye Ol butonları (nav-right)
   Not: Kuralları değiştirmeden sadece başlıklar eklendi.
   ========================================================= */

*,
:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111827;      /* ana yazı */
  --muted: #374151;     /* ikincil yazı (soluk değil) */
  --border: #e5e7eb;
  --brand: #ff7a1a;     /* turuncu */
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

a {
  color: inherit;
  text-decoration: none;
}

html, body { margin: 0; padding: 0; }
/* ===================== 2. HEADER & NAVBAR ===================== */

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(148,163,184,0.35);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.nav-user {
    margin-right: 12px;
    font-size: 13px;
    color: #e5e7eb;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .08em;
}

.nav-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #cbd5f5;
}

.nav-links a.active,
.nav-links a:hover {
  background: #0ea5e9;
  color: #020617;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Kullanıcı menüsü (isim + açılır menü) */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid #4b5563;
    padding: 6px 14px;
    background: transparent;
    color: #e5e7eb;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.user-menu-toggle:hover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.08);
}

.user-menu-caret {
    font-size: 10px;
    opacity: 0.8;
}

/* Açılır menü kutusu */
.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 190px;
    background: #020617;
    padding: 6px 0;
    border-radius: 14px;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: none;
    z-index: 50;
}

/* .open sınıfı gelince görünür */
.user-menu.open .user-menu-dropdown {
    display: block;
}

/* Menü içi link ve butonlar */
.user-menu-item {
    width: 100%;
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    text-align: left;
    color: #e5e7eb;
    background: transparent;
    border: none;
    text-decoration: none;
    cursor: pointer;
}

.user-menu-item:hover {
    background: rgba(15, 23, 42, 0.95);
}

.user-menu-logout {
    color: #f97316;
}
/* Buttons */
.btn {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-primary {
  background: #0ea5e9;
  color: #020617;
  font-weight: 600;
}

.btn-primary:hover {
  background: #38bdf8;
}

.btn-secondary {
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #4b5563;
}

.btn-secondary:hover {
  background: #1f2937;
}

.btn-ghost {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid #4b5563;
}

.btn-ghost:hover {
  background: rgba(15,23,42,0.8);
}

.btn-text {
  background: transparent;
  color: #e5e7eb;
}

.btn-text:hover {
  text-decoration: underline;
}

.btn-block {
  width: 100%;
}


/* ===================== 4. LAYOUT (page-main, container) ===================== */

/* Layout */
.page-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}


/* ===================== 5. HOME / PRODUCT HERO (index + urunler) ===================== */

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: stretch;
}

.hero-text h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.hero-text p {
  color: #9ca3af;
  font-size: 15px;
  line-height: 1.6;
  max-width: 520px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.hero-card {
  background: #020617;
  border-radius: 20px;
  padding: 18px;
  position: relative;
  border: 1px solid rgba(148,163,184,0.35);
}

.hero-tag {
  position: absolute;
  top: 14px;
  right: 18px;
  background: #22c55e;
  color: #022c22;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.hero-card-body {
  margin-top: 18px;
}

.hero-card-body h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.hero-card-body p {
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 12px;
}

.hero-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-price {
  font-size: 20px;
  font-weight: 700;
}

.hero-old-price {
  font-size: 14px;
  color: #6b7280;
  text-decoration: line-through;
}

.hero-btn {
  width: 100%;
}


/* ===================== 5b. PRODUCT LIST / GRID ===================== */

/* Product grid */
.product-section h1 {
  font-size: 24px;
  margin-bottom: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.product-card {
  background: #020617;
  border-radius: 16px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(148,163,184,0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-image {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  background: radial-gradient(circle at top, #4b5563, #020617);
}

.skeleton {
  background: linear-gradient(120deg, #1f2937 0%, #111827 40%, #1f2937 80%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.product-title {
  font-size: 15px;
}

.product-price {
  font-size: 16px;
  font-weight: 600;
  color: #fbbf24;
}


/* ======================= AUTH (giris.html, kayit.html) ======================= */

/* Body sınıfı: <body class="auth-page"> */
.auth-page {
  background-color: #020617; /* sitenin koyu arka planı ile aynı */
}
/* ===========================
   STICKY FOOTER (GENEL)
   =========================== */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.auth-page,
main {
  flex: 1;
}

/* Ana alan: sadece üst/alt boşluk */
.auth-main {
  padding: 80px 16px 120px;
}

/* Kart sarmalayıcıyı ortala */
.auth-wrapper {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;        /* YATAY ORTALAMA */
}

/* Kartı da garanti olsun diye ortala */
.auth-card {
  background-color: #020617;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 24px 24px 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.65);
  max-width: 420px;      /* genişlik sabit */
  margin: 0 auto;        /* yine yatay ortalama */
}

/* Başlık */
.auth-title {
  font-size: 20px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 16px;
}

/* Ortak form yapısı */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Label */
.auth-form label {
  font-size: 13px;
  color: #9ca3af;
}

/* Input alanları */
.auth-form input {
  background-color: #020617;
  border-radius: 8px;
  border: 1px solid #4b5563;
  padding: 8px 10px;
  font-size: 14px;
  color: #e5e7eb;
}

/* Input focus */
.auth-form input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.5);
}

/* Primary butonu auth içinde tam genişlik yap */
.auth-form .btn-primary {
  width: 100%;
  margin-top: 8px;
}

/* Alt bilgilendirme metni (login / signup linki) */
.auth-footer {
  margin-top: 10px;
  font-size: 12px;
  color: #9ca3af;
}

.auth-footer a {
  color: #38bdf8;
  text-decoration: none;
}
.nav-user {
    margin-right: 12px;
    font-size: 13px;
    color: #e5e7eb;
}
.auth-footer a:hover {
  text-decoration: underline;
}

/* Hata / uyarı mesajı için (ileride kullanırsın) */
.auth-message {
  margin-top: 10px;
  font-size: 13px;
  color: #fbbf24; /* soft uyarı sarısı */
}
/* ------------------------------------- */
/* Hesabım Sayfası - Adres Yönetimi */
/* ------------------------------------- */

.account-addresses-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-empty {
    font-size: 13px;
    color: #9ca3af;
}

.account-address-card {
    padding: 12px 16px;
    border-radius: 18px;
    background-color: #020617;
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 13px;
    line-height: 1.4;
}

.account-address-card-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #e5e7eb;
}

.account-address-card-body div + div {
    margin-top: 2px;
}

.account-divider {
    margin: 20px 0;
    border: none;
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
}

.account-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
/* Küçük ekranlar için ufak spacing düzeltmesi */
@media (max-width: 640px) {
  .auth-main {
    padding-top: 48px;
  }

  .auth-card {
    padding: 20px 16px 24px;
    border-radius: 20px;
  }
}
/* ===================== 7. ADMIN PANEL (admin/) ===================== */

/* Admin layout */
.admin-body {
  background: #020617;
}

.admin-header {
  border-bottom: 1px solid rgba(148,163,184,0.35);
  background: #020617;
}

.admin-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-logo {
  font-weight: 600;
}

.admin-subtitle {
  font-size: 12px;
  color: #9ca3af;
}

.admin-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
}

.admin-sidebar {
  background: #020617;
  border-radius: 16px;
  padding: 16px 14px 18px;
  border: 1px solid rgba(148,163,184,0.35);
}

.admin-sidebar h2 {
  font-size: 15px;
  margin-bottom: 10px;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-menu-item {
  text-align: left;
  border-radius: 10px;
  border: none;
  padding: 8px 10px;
  font-size: 14px;
  background: #020617;
  color: #e5e7eb;
  cursor: pointer;
}

.admin-menu-item.active,
.admin-menu-item:hover {
  background: #0ea5e9;
  color: #020617;
}

.admin-content {
  background: #020617;
  border-radius: 16px;
  padding: 18px 16px 20px;
  border: 1px solid rgba(148,163,184,0.35);
}

.admin-panel h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #1f2937;
  padding: 6px 8px;
  text-align: left;
}

.admin-table th {
  color: #9ca3af;
  font-weight: 500;
}

.admin-footer {
  margin-top: 20px;
}


/* ===================== 8. FOOTER ===================== */

/* Footer */
.page-footer {
  border-top: 1px solid rgba(148,163,184,0.35);
  padding: 16px 20px;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}


/* ===================== 9. RESPONSIVE / MOBILE ===================== */

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
}


/* ---- Navbar auth buttons unified across all pages ---- */

/* ===================== 9b. SEPET SAYFASI (cart-page) ===================== */
/* ===========================
   SEPET SAYFASI (cart-page)
   =========================== */

body.cart-page {
    min-height: 100vh;
}

/* Ortak sayfa başlıkları */
.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-subtitle {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 24px;
}

/* Sepet layout */
.cart-container {
    max-width: 1100px;
    margin: 32px auto 80px;
    padding: 0 16px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 24px;
    align-items: flex-start;
}

/* Kartlar */
.cart-box {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
    padding: 20px 24px;
}

.cart-box-left {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-style: dashed;
    border-width: 1px;
    border-color: rgba(148, 163, 184, 0.45);
}

.cart-box-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-box-text {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 16px;
}

/* Sepet özet */
.cart-summary-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 4px 0;
    color: #e5e7eb;
}

.cart-summary-row span:last-child {
    font-weight: 500;
}

.cart-summary-divider {
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
    margin: 8px 0 6px;
}

.cart-summary-total span:last-child {
    font-size: 16px;
    font-weight: 700;
    color: #fbbf24;
}

.cart-summary-btn {
    width: 100%;
    margin-top: 16px;
}

.cart-summary-note {
    margin-top: 10px;
    font-size: 12px;
    color: #9ca3af;
}

/* Butonları mevcut tasarımla uyumlu tutalım */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    background-color: #f97316;
    color: #0b1020;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-primary:hover:enabled {
    background-color: #fb923c;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
}

/* Küçük ekranlar */
@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        order: -1;
    }
}
/* ===================== 10. HEADER: GİRİŞ / ÜYE OL BUTONLARI & NAV OVERRIDES ===================== */
.navbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.nav-links a {
    padding: 6px 14px;
    border-radius: 999px;
    color: #e5e7eb;
}

.nav-links a.active {
    background-color: #0ea5e9;
    color: #020617;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-auth {
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background-color: #f97316;
    color: #020617;
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-auth:hover {
    background-color: #fb923c;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

.btn-auth-outline {
    background-color: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(248, 250, 252, 0.35);
}

.btn-auth-outline:hover {
    background-color: rgba(15, 23, 42, 0.9);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.5);
}

/* ==== Header auth buttons (Giriş Yap / Üye Ol) – TÜM SAYFALAR ==== */
.nav-right a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.nav-right a:first-child {
    background-color: transparent;
    color: #f97316;
    border: 1px solid #f97316;
}

.nav-right a:last-child {
    background-color: #f97316;
    color: #020617;
    border: none;
}

.nav-right a:first-child:hover {
    background-color: rgba(249, 115, 22, 0.1);
}

.nav-right a:last-child:hover {
    background-color: #fb923c;
}
/* =========================================
   Login & Kayıt form alanları – ortak stil
   ========================================= */

/* Kart genişliği iki sayfada da aynı olsun */
.auth-card {
    max-width: 420px;
    width: 100%;
}

/* Tüm metin inputları aynı boy ve görünüm */
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #252e3b;
    background-color: #020817;
    color: #e5e7eb;
    font-size: 14px;
}

/* Label ile input arasında biraz boşluk */
.auth-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

/* Alanlar arasında dikey boşluk */
.auth-form input + .field-error,
.auth-form label + input {
    margin-top: 4px;
}

.auth-form input + .field-error + label,
.auth-form .btn-primary {
    margin-top: 8px;
}

/* Hata mesajları (soft uyarı) */
.field-error {
    display: block;
    min-height: 16px;          /* Alan bozulmasın, boşken de yer kaplasın */
    margin-top: 4px;
    font-size: 12px;
    color: #f97373;            /* yumuşak kırmızı */
}
/* Üst menü sağ taraf (giriş/çıkış/hesabım) hizalama */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.product-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.product-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-image-placeholder {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    border: 1px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #6b7280;
    background: #f9fafb;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.product-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.product-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
}

.product-price {
    font-weight: 600;
}

.product-old-price {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-start;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 13px;
}
.cart-empty-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
/* === Yeni üst menü (Çorapx tarzı) === */


/* Logo + arama + sağ aksiyonlar kapalı kutu */
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    gap: 24px;
}

/* Logo */
.header-logo .nav-logo {
    font-size: 22px;
    font-weight: 700;
    color: #111827; /* KOYU RENK */
    text-decoration: none;
}
.header-logo .nav-logo:hover {
    color: #f97316;
}

/* Arama alanı */
.header-search {
    flex: 1;
    max-width: 520px;
}

.header-search form {
    display: flex;
}

.header-search input {
    flex: 1;
    padding: 8px 14px;
    border-radius: 999px 0 0 999px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #111827;
    font-size: 14px;
    outline: none;
}

.header-search input::placeholder {
    color: #7a8099;
}

.header-search button {
    padding: 8px 18px;
    border-radius: 0 999px 999px 0;
    border: none;
    background-color: #ff7a1a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Sağ taraf – Favoriler / Hesap / Sepet */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #111827; /* koyu yazı */
    font-size: 11px;
}

.header-link:hover {
    color: #f97316;
}

.header-action-title {
    white-space: nowrap;
}

/* Sepet balonu */
.header-cart-link {
    position: relative;
}

.header-cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background-color: #ff7a1a;
    color: #ffffff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Alt kategori menüsü */
.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 40px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.header-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.header-nav a:hover {
    color: #ff7a1a;
}

/* Küçük ekranlar için basit toparlama */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 10px 16px;
    }

    .header-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .header-nav {
        padding: 8px 16px 12px;
        gap: 16px;
        overflow-x: auto;
    }
}
/* Premium auth uyarı kutusu */
.auth-alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
}
/* Ortak uyarı kutusu stili */
.auth-alert {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

/* Amazon tarzı hata rengi */
.auth-alert-error {
    background: #FDEDED;          /* Açık pembe arka plan */
    border: 1px solid #F5A8A8;    /* Yumuşak kırmızı çerçeve */
    color: #B12704;               /* Amazon kırmızısı metin rengi */
}

/* Başındaki ünlem ikonu */
.auth-alert-error::before {
    content: "!";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #B12704;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Shake animasyonu */
@keyframes shake {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-4px); }
    50%  { transform: translateX(4px); }
    75%  { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}
/* Auth alerts (Amazon tarzı) */
.auth-alert{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.12);
  margin:12px 0 16px;
  background:rgba(255,255,255,0.06);
}
.auth-alert-icon{
  width:22px;height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  background:rgba(255,255,255,0.12);
}
.auth-alert-success{
  border-color: rgba(35, 170, 90, 0.45);
  background: rgba(35, 170, 90, 0.10);
}
.auth-alert-error{
  border-color: rgba(220, 80, 80, 0.45);
  background: rgba(220, 80, 80, 0.10);
}
.auth-alert-info{
  border-color: rgba(120, 160, 255, 0.40);
  background: rgba(120, 160, 255, 0.10);
}

.shake {
    animation: shake 0.25s ease;
}

/* Şifremi unuttum linki */
.auth-form-extra {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
    font-size: 13px;
}

.auth-link {
    color: #ff7a1a;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}
/* --- Amazon tarzı hata uyarısı --- */

.auth-alert {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.auth-alert-error {
    background: #FDEDED;          /* Açık pembe */
    border: 1px solid #F5A8A8;    /* Yumuşak kırmızı çerçeve */
    color: #B12704;               /* Amazon kırmızısı */
}

/* Hata ikonu */
.auth-alert-error::before {
    content: "!";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #B12704;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Input hatası */
.input-error {
    border-color: #B12704 !important;
    box-shadow: 0 0 0 1px rgba(177, 39, 4, 0.5) !important;
}
.auth-alert-info{
  background:#f6fbff;
  border:1px solid #7ab7ff;
  color:#1b4f8a;
  padding:12px 14px;
  border-radius:6px;
  font-size:14px;
  margin-bottom:14px;
}
.auth-alert-info::before{ content:"ℹ️"; margin-right:8px; }
/* =========================
   AUTH ALERT (Amazon tarzı)
   ========================= */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.35;
  margin: 10px 0 14px;
}

.auth-alert .auth-alert-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-alert-success {
  background: rgba(46, 160, 67, 0.12);
  border-color: rgba(46, 160, 67, 0.35);
  color: #d7ffe0;
}

.auth-alert-error {
  background: rgba(248, 81, 73, 0.12);
  border-color: rgba(248, 81, 73, 0.35);
  color: #ffd7d7;
}

.auth-alert-info {
  background: rgba(56, 139, 253, 0.12);
  border-color: rgba(56, 139, 253, 0.35);
  color: #d9e7ff;
}

.auth-alert-title {
  font-weight: 700;
  margin-bottom: 2px;
}

.auth-alert a {
  text-decoration: underline;
}
/* Hesabım sayfasında auth-card ortalama/daraltmayı kapat */
.account-page .auth-card{
  max-width: none;
  width: 100%;
  margin: 0;          /* ortalamayı kaldırır */
}
/* ===== Site Footer (Global) ===== */
.site-footer{
  background:#ffffff;
  border-top:1px solid rgba(15,23,42,0.10);
  margin-top:48px;
}

.footer-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:26px 18px 18px;
}

.footer-grid{
  display:grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap:18px;
  padding-bottom:18px;
}

@media(min-width:760px){
  .footer-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media(min-width:1080px){
  .footer-grid{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.footer-title{
  font-weight:800;
  font-size:13px;
  letter-spacing:0.04em;
  color:#0f172a;
  margin-bottom:10px;
}

.footer-link{
  display:block;
  font-size:13px;
  color:rgba(15,23,42,0.75);
  text-decoration:none;
  padding:6px 0;
}
.footer-link:hover{
  color:#0f172a;
  text-decoration:underline;
}

.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid rgba(15,23,42,0.08);
  padding-top:14px;
  flex-wrap:wrap;
}

.footer-payments{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.pay-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:26px;
  padding:0 10px;
  border:1px solid rgba(15,23,42,0.12);
  border-radius:8px;
  font-size:12px;
  color:rgba(15,23,42,0.70);
  background:#fafafa;
}

.footer-copy{
  font-size:12px;
  color:rgba(15,23,42,0.60);
}

.to-top{
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,0.18);
  background:#ffffff;
  cursor:pointer;
  font-weight:800;
}
.to-top:hover{
  border-color:rgba(15,23,42,0.35);
}
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}
/* =========================
   HEADER – CORAPX STILI
========================= */

/* Header arka plan */
.site-header{
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb;
}

/* Logo yazısı */
.site-header .logo,
.site-header .brand{
  color: #111827 !important;
  font-weight: 700;
}

/* Menü linkleri (Ana Sayfa, Ürünler vs) */
.site-header nav a{
  color: #111827 !important;
  font-weight: 500;
}

.site-header nav a:hover{
  color: #f97316 !important;
}

/* Sağ menü yazıları & ikonlar */
.site-header .nav-right a{
  background: transparent !important;
  border: none !important;
  color: #111827 !important;
  font-weight: 500;
  padding: 6px 12px;
}

/* Sağ menü hover */
.site-header .nav-right a:hover{
  color: #f97316 !important;
  background: transparent !important;
}

/* Sepet sayacı */
#mini-cart-count{
  background: #f97316 !important;
  color: #ffffff !important;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 600;
}

/* Mobil hamburger ikon */
.site-header .menu-toggle,
.site-header .menu-toggle span{
  color: #111827 !important;
  background: #111827 !important;
}
/* =========================
   SAYFA GENEL ARKA PLAN
========================= */

body {
  background-color: #ffffff;
  color: #111827;
}
/* =========================
   GİRİŞ / KAYIT SAYFALARI
========================= */

.auth-page,
.auth-wrapper,
.login-page,
.register-page {
  background-color: #ffffff;
  color: #111827;
}

/* Kart / form alanı */
.auth-card,
.login-card,
.register-card {
  background-color: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Inputlar */
.auth-card input,
.login-card input,
.register-card input {
  background-color: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
}

/* Placeholder */
.auth-card input::placeholder,
.login-card input::placeholder,
.register-card input::placeholder {
  color: #9ca3af;
}
/* =========================
   GİRİŞ / KAYIT INPUT FIX
========================= */

.auth-card input,
.login-card input,
.register-card input,
form input[type="text"],
form input[type="email"],
form input[type="password"] {
  background-color: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb;
}
.auth-card input::placeholder,
.login-card input::placeholder,
.register-card input::placeholder {
  color: #9ca3af;
}
/* === GLOBAL THEME (TUTARLI) === */
body{
  background: var(--bg) !important;
  color: var(--text) !important;
}

/* Genel başlıklar & metinler */
h1,h2,h3,h4,h5,h6{
  color: var(--text) !important;
  opacity: 1 !important;
}

p,li,label,small,span,div{
  color: inherit;
}

/* Solukluk veren her şeyi kır */
.auth-card, .login-card, .register-card, .card, .panel{
  color: var(--text) !important;
}
.auth-card *,.login-card *,.register-card *{
  opacity: 1 !important;
}

/* Auth sayfası özel: başlık ve yardımcı yazılar */
.auth-card h1,
.auth-card h2,
.auth-card .title,
.auth-card .subtitle,
.auth-card label{
  color: var(--text) !important;
  opacity: 1 !important;
}

.auth-card .muted,
.auth-card .help,
.auth-card small{
  color: var(--muted) !important;
  opacity: 1 !important;
}

/* Linkler */
a{
  color: var(--brand);
}
a:hover{
  filter: brightness(.95);
}

/* Inputlar */
input, select, textarea{
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

input::placeholder, textarea::placeholder{
  color: #9ca3af !important;
  opacity: 1 !important;
}

/* Focus */
input:focus, select:focus, textarea:focus{
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(255,122,26,.2) !important;
  outline: none !important;
}
/* =========================
   HEADER ACTIONS – TUTARLI (LOGIN/LOGOUT)
========================= */

.site-header .header-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: nowrap;
}

/* Her link aynı ölçüde, ikon + yazı yan yana */
.site-header .header-actions .header-link{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration:none;
  color:#111827;
  font-size:13px;
  font-weight:500;
  line-height:1;
  position:relative; /* sepet sayacı için */
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

/* Hover */
.site-header .header-actions .header-link:hover{
  background: rgba(255,122,26,.08);
  color:#ff7a1a;
}

/* İkon */
.site-header .header-actions .header-ico{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  line-height:1;
}

/* Favori kalbi kırmızı */
.site-header .header-actions .header-fav-link .header-ico{
  color:#ef4444;
}
.site-header .header-actions .header-fav-link:hover .header-ico{
  color:#dc2626;
}

/* Kullanıcı adı/email çok uzunsa bozulmasın */
.site-header .header-actions .header-action-title{
  max-width: 140px;
  overflow:hidden;
  text-overflow: ellipsis;
}

/* Sepet sayacı: daha şık ve kenarda */
.site-header .header-actions .header-cart-count{
  position:absolute;
  top:-6px;
  right:-8px;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  background:#ff7a1a;
  color:#ffffff;
  font-size:11px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 16px rgba(255,122,26,.25);
}

/* Mobilde sadece ikon kalsın (isteğe bağlı ama önerilir) */
@media (max-width: 720px){
  .site-header .header-actions .header-action-title{
    display:none;
  }
  .site-header .header-actions .header-link{
    padding: 8px 10px;
  }
}
/* GLOBAL SABİT TEMA */
body{
  background:#fff !important;
  color:#111827 !important;
}

/* Genel yazı netliği */
h1,h2,h3,h4,h5,h6,p,span,label,small{
  opacity: 1 !important;
}

/* Giriş/Kayıt kartları ve formlar */
.auth-card, .login-card, .register-card, form{
  color:#111827 !important;
}

input, select, textarea{
  background:#fff !important;
  color:#111827 !important;
  border:1px solid #e5e7eb !important;
}
input::placeholder, textarea::placeholder{
  color:#9ca3af !important;
  opacity:1 !important;
}
<nav class="site-menu">
.site-menu {
  display: flex;
  gap: 28px; /* menü araları (istersen 24–32 arası oynayabilirsin) */
}
.site-menu {
  display: flex;
  gap: 28px;            /* menü araları */
  padding-left: 38px;  /* ≈ 1 cm sağa kaydırır */
}
/* JS DOM güncellerken flash olmasın */
/* Varsayılan görünür kalsın */
.site-header,
.site-menu{
  visibility: visible;
}

/* Sadece JS yüklenirken gizle */
html.js-loading .site-header,
html.js-loading .site-menu{
  visibility: hidden;
}
/* Hesabım sayfası: sol menüyü biraz sola yaklaştır + genel iç boşluğu azalt */
.account-page .auth-card{
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.account-page .acc-layout{
  gap: 16px;               /* sağ-sol aralığı */
}

.account-page .acc-side{
  margin-left: -18px;      /* sol menüyü sola kaydırır */
}

/* Çok geniş ekranda biraz daha */
@media (min-width: 1200px){
  .account-page .acc-side{
    margin-left: -28px;
  }
}
/* === Hesabım sayfası genel kapsayıcı === */
.account-page{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;           /* ortala */
  padding: 20px 16px 40px;  /* üst/yan boşluk */
}
/* === Sayfa boyu: footer aşağı insin === */
html, body{
  height: 100%;
}

body{
  min-height: 100vh;
}

/* layout_top içinde main açıyorsun; ana içerik kısa olsa bile alanı doldursun */
.account-page{
  min-height: calc(100vh - 160px); /* header+menu+footer toplamına yakın tahmin */
}
/* Sol menü + içerik yan yana */
.acc-layout{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 960px){
  .acc-layout{
    grid-template-columns: 1fr;
  }
}
.campaign-bar{
  width: 100%;
  background:#ff7a1a;
  color:#fff;
  overflow:hidden;
}

.campaign-track{
  display:flex;
  width:max-content;
  white-space:nowrap;
  will-change:transform;
  animation: campaign-scroll 35s linear infinite; /* hız */
}

.campaign-group{
  display:inline-flex;
  align-items:center;
  gap:18px;
  padding:10px 24px;
  flex:0 0 auto;
  font-size:13px;
  font-weight:700;
}

.campaign-group .dot{ opacity:.9; }

@keyframes campaign-scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Mobilde daha yavaş */
@media (max-width: 768px){
  .campaign-track{
    animation-duration: 45s;
  }
}
/* Mobil header düzeni: üst satır logo + actions, alt satır search */
@media (max-width: 768px) {
  .header-main{
    display: grid;
    grid-template-columns: 1fr auto; /* sol: logo, sağ: actions */
    grid-template-areas:
      "logo actions"
      "search search";
    gap: 10px;
    align-items: center;
  }

  .header-logo{ grid-area: logo; }
  .header-actions{ grid-area: actions; justify-self: end; }
  .header-search{ grid-area: search; }

  /* Arama tam genişlik olsun */
  .header-search form{
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .header-search input{ flex: 1; }

  /* Actions satırında ikonlar yan yana kalsın */
  .header-actions{
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
  }

  /* İstersen mobilde yazıları gizleyip sadece ikon bırak */
  .header-action-title{ display: none; }
}
/* =========================
   FOOTER – LIGHT + RESPONSIVE
   Desktop: kolonlu
   Mobil: akordeon (üst üste)
========================= */

.site-footer{
  background:#ffffff;
  border-top:1px solid #e5e7eb;
  color:#111827;
}

.site-footer a{
  color:#374151;
  text-decoration:none;
}
.site-footer a:hover{ color:#ff7a1a; }

.footer-container{
  max-width:1440px;
  margin:0 auto;
  padding:22px 18px;
  display:grid;
  grid-template-columns: 280px 1fr; /* sol marka + sağ içerik */
  gap:22px;
  align-items:start;
}

/* Sol marka */
.footer-brand .footer-logo{
  font-size:20px;
  font-weight:800;
  color:#111827;
}

.footer-social-left{
  display:flex;
  gap:10px;
  margin-top:10px;
}
.footer-social-left a{
  width:32px;
  height:32px;
  border-radius:999px;
  background:#f3f4f6;
  color:#374151;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  transition:all .2s ease;
}
.footer-social-left a:hover{
  background:#ff7a1a;
  color:#ffffff;
  transform:translateY(-1px);
}

/* Desktop kolonlar (sağ taraf) */
.footer-cols-desktop{
  display:grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap:18px;
}

.footer-cols-desktop .footer-col h4{
  margin:0 0 10px 0;
  font-size:13px;
  letter-spacing:.3px;
  font-weight:800;
  color:#111827;
}
.footer-cols-desktop .footer-col ul{ list-style:none; padding:0; margin:0; }
.footer-cols-desktop .footer-col li{ margin:0 0 7px 0; font-size:13px; }

/* Mobil akordeon varsayılan gizli */
.footer-cols-mobile{ display:none; }

/* Alt bar */
.footer-bottom{
  border-top:1px solid #e5e7eb;
  padding:10px 12px;
  text-align:center;
  font-size:12px;
  color:#6b7280;
}

/* ===== Mobil: akordeon (üst üste) ===== */
@media (max-width: 900px){
  .footer-container{
    grid-template-columns: 1fr;
    gap:14px;
  }

  .footer-cols-desktop{ display:none; }
  .footer-cols-mobile{ display:block; }

  .footer-accordion{
    display:flex;
    flex-direction:column;
    gap:10px;
  }

  .footer-acc-btn{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 12px;
    border-radius:12px;
    border:1px solid #e5e7eb;
    background:#ffffff;
    color:#111827;
    font-size:13px;
    font-weight:800;
    letter-spacing:.3px;
    cursor:pointer;
  }

  .footer-acc-plus{
    width:26px;
    height:26px;
    border-radius:10px;
    background:#f3f4f6;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
  }

  .footer-acc-panel{
    margin-top:-8px;
    padding:10px 12px 12px 12px;
    border-left:1px solid #e5e7eb;
    border-right:1px solid #e5e7eb;
    border-bottom:1px solid #e5e7eb;
    border-radius:0 0 12px 12px;
    background:#ffffff;
  }

  .footer-acc-panel ul{ list-style:none; padding:0; margin:0; }
  .footer-acc-panel li{ margin:8px 0; font-size:13px; }
}
/* Şifre sıfırlama / success mesaj metni siyah olsun */
.auth-alert-success {
    color: #000000;
}