/* ===================================================
   ERMONEYT GENEL TEMA STİLLERİ
   - Reset & Değişkenler
   - Genel Layout
   - Header + Arama + Mobil Menü
   - Sol Kategori Menüsü
   - Hero / Banner
   - Info Kartları
   - Öne Çıkan Kategoriler
   - Kategori / Arama Sayfası
   - Ürün Kartları & Grid
   - Sepet & Favoriler
   - Auth (Giriş / Üye Ol)
   - Footer (Yeni Ermoneyt Footer)
   - Account Page
   - Favoriler Öneri Kartları
   - Subcategory Chips
   - Checkout Sayfası
   - Product Detail Page
   - Settings Page + Destek Modal
   =================================================== */


/* ----------------------------- */
/* GENEL AYARLAR / RESET        */
/* ----------------------------- */

:root {
  --bg: #050814;
  --bg2: #0e1422;
  --bg3: #181f30;
  --primary: #ffd166;
  --accent: #00bcd4;
  --text: #f7f8ff;
  --muted: #a0a7c2;
  --danger: #ff5252;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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


/* ----------------------------- */
/* GENEL SAYFA LAYOUT           */
/* ----------------------------- */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 10px 40px;
  min-height: calc(100vh - 72px); /* header yaklaşık yükseklik */
}

.layout-shell {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
}

.layout-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column; /* footer'ı alta itebilmek için */
}


/* ----------------------------- */
/* HEADER                       */
/* ----------------------------- */

.header {
  background: linear-gradient(90deg, #050814, #10182a);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hamburger buton (mobilde) */
.header-menu-btn,
.menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo span {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.header-search {
  flex: 1;
  background: var(--bg3);
  padding: 6px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  outline: none;
  font-size: 14px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Genel butonlar */
.btn-outline,
.btn-primary {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--primary);
  color: #1b1400;
  border-color: transparent;
  font-weight: 600;
}

.cart-badge {
  background: var(--danger);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  color: #fff;
}


/* ----------------------------- */
/* MASAÜSTÜ SOL KATEGORİ MENÜSÜ */
/* ----------------------------- */

.desktop-side {
  width: 240px;
  background: var(--bg2);
  border-radius: 18px;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  display: none; /* büyük ekranda göstereceğiz */
}

.desktop-side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.desktop-side-header h3 {
  font-size: 15px;
}

.desktop-side-header small,
.desktop-side small {
  font-size: 12px;
  color: var(--muted);
}

.desktop-side-search {
  margin-bottom: 8px;
}

.desktop-side-search input {
  width: 100%;
  font-size: 13px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg3);
  color: var(--text);
  outline: none;
}

.desktop-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.desktop-category-list li {
  margin-bottom: 2px;
}

.cat-link {
  width: 100%;
  text-align: left;
  padding: 6px 8px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s;
}

.cat-link span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cat-link strong {
  font-size: 11px;
  opacity: 0.7;
}

.cat-link:hover {
  background: var(--bg3);
  color: var(--text);
}

.cat-link.active {
  background: var(--primary);
  color: #211400;
  font-weight: 600;
}


/* ----------------------------- */
/* MOBİL MENÜ (YAN PANEL)       */
/* ----------------------------- */

.mobile-menu {
  position: fixed;
  left: -100%;
  top: 0;
  width: 78%;
  max-width: 340px;
  height: 100vh;
  background: var(--bg2);
  z-index: 99999;
  padding: 20px;
  transition: 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu h3 {
  margin-bottom: 12px;
  font-size: 17px;
}

.mobile-menu-cat-btn {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 999px;
  border: none;
  background: var(--bg3);
  color: var(--text);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-menu-cat-btn span:last-child {
  font-size: 11px;
  color: var(--muted);
}


/* ----------------------------- */
/* HERO / BANNER                */
/* ----------------------------- */

.hero {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #050814;
}

/* Slider container */
.hero-slides {
  position: relative;
  width: 100%;
  height: 240px;           /* masaüstü yükseklik */
}

/* Tek tek slide */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* Banner görseli alanı TAM doldursun (gerekirse biraz kırpsın) */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* alanı kapla */
  display: block;
}

/* Dot'lar */
.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
}
.hero-dot.active {
  background: #ffd166;
}

/* Mobilde daha kısa */
@media (max-width: 640px) {
  .hero-slides {
    height: 180px;
  }
}

/* ----------------------------- */
/* ÜSTTE BİLGİ KARTLARI         */
/* ----------------------------- */

.info-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.info-card {
  background: var(--bg2);
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--muted);
}

.info-card h3 {
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text);
}


/* ----------------------------- */
/* ÖNE ÇIKAN KATEGORİLER        */
/* ----------------------------- */

.section {
  margin-top: 18px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 17px;
}

.section-header small {
  font-size: 13px;
  color: var(--muted);
}

.round-cats-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px;
}

.round-cat {
  flex: 0 0 auto;
  text-align: center;
  cursor: pointer;
}

.round-cat-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #141b2c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 4px;
}

.round-cat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.round-cat span {
  font-size: 11px;
  max-width: 80px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ----------------------------- */
/* KATEGORİ / ARAMA SAYFASI     */
/* ----------------------------- */

#categoryPage {
  display: none;
  margin-top: 18px;
}

.category-summary {
  font-size: 13px;
  color: var(--muted);
}

.page-size-select {
  font-size: 13px;
  background: var(--bg3);
  color: var(--text);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  outline: none;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.page-btn {
  background: var(--bg3);
  color: var(--text);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}

.page-btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

.page-btn.current {
  background: var(--primary);
  color: #211400;
  border-color: transparent;
  font-weight: 600;
}

.empty-text {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}


/* ----------------------------- */
/* ÜRÜN KARTI                   */
/* ----------------------------- */

.product-card {
  background: var(--bg2);
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.15s;
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #211400;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.product-img-wrap {
  width: 100%;
  border-radius: 10px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 180px;        /* daha iyi görünür */
  object-fit: contain;
}

/* --------- BAŞLIK: 2 satır + ... kesme --------- */
.product-title {
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* 2 satır */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1.3em * 2); /* 2 satır yüksekliği */
}

.product-meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-end;
  font-size: 12px;
}

.product-price {
  color: var(--primary);
  font-weight: bold;
  font-size: 16px;
}

.product-old {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

/* ----------------------------- */
/* GRID (Ürün listeleri)        */
/* ----------------------------- */

.grid {
  display: grid;
  gap: 10px;
}

/* masaüstü: 4lü */
@media (min-width: 760px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* mobil / küçük ekran: 2li */
@media (max-width: 759px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ----------------------------- */
/* BASİT ÜRÜN DETAY (ESKİ)      */
/* ----------------------------- */

.product-detail {
  padding: 20px;
}

.product-detail img {
  width: 100%;
  border-radius: 12px;
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 12px;
}

.detail-price {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
  margin-top: 10px;
}

.detail-stock {
  margin-top: 6px;
  font-size: 14px;
  color: #85ff9e;
}

.detail-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #111;
  font-size: 17px;
  margin-top: 18px;
  cursor: pointer;
}


/* ----------------------------- */
/* SEPET & FAVORİLER ORTAK      */
/* ----------------------------- */

.cart-item {
  padding: 14px;
  background: var(--bg2);
  border-radius: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

/* sepet & favori ortak gövde yapısı */
.cart-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.cart-item-price-line {
  font-size: 13px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cart-unit-price {
  color: var(--primary);
  font-weight: 700;
}

.cart-old-price {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

.cart-item-bottom {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.remove-btn {
  background: var(--danger);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  border: none;
}

/* favori sayfasındaki kırmızı kalpli butonu özelleştir */
.cart-item-bottom .remove-btn {
  background: transparent;
  color: #ff6b81;
  padding: 0;
  border-radius: 0;
  border: none;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.cart-item-bottom .remove-btn i {
  font-size: 14px;
}

.cart-item-bottom .remove-btn:hover {
  color: #ff4757;
}


/* ----------------------------- */
/* AUTH (GİRİŞ / ÜYE OL)        */
/* ----------------------------- */

.auth-center-page {
  padding-top: 32px;
  padding-bottom: 40px;
}

.auth-shell {
  max-width: 480px;
  margin: 0 auto 40px;
  text-align: center;
}

/* Yuvarlak logo */
.auth-logo-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: radial-gradient(circle at 30% 10%, #fddc96, #7a5b24);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.auth-logo-circle img {
  width: 80%;
  height: auto;
}

/* Başlık / alt başlık */
.auth-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Kart */
.auth-card-center {
  background: radial-gradient(circle at top, #252b3e, #10141f);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 18px 20px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
}

/* Tablar */
.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 14px;
}

.auth-tab {
  flex: 1;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 14px;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--primary);
  color: #211400;
  font-weight: 600;
}

/* Formlar */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-label {
  display: block;
  text-align: left;
  font-size: 13px;
  margin-bottom: 10px;
}

.auth-label input {
  width: 100%;
  margin-top: 4px;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #141a2a;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.auth-label input:focus {
  border-color: var(--primary);
}

/* Alt satır – beni hatırla / şifremi unuttum */
.auth-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.auth-link-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
}

/* Butonlar */
.auth-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #211400;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}

/* Google butonu */
.auth-btn.google {
  background: #ffffff;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-btn.google i {
  font-size: 16px;
}

/* “veya” ayırıcı */
.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 4px;
  font-size: 11px;
  color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* Mesaj alanı */
.auth-message {
  font-size: 13px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: left;
}

/* başarı tipi mesaj (favorilerde ürün sepete eklendi vb.) */
.auth-message.success {
  background: rgba(46, 213, 115, 0.12);
  border-color: #2ed573;
  color: #2ed573;
}

/* Kullanım şartı metni */
.auth-terms {
  font-size: 12px;
  color: var(--muted);
  text-align: left;
  margin-top: 4px;
}

/* Mobil auth */
@media (max-width: 640px) {
  .auth-logo-circle {
    width: 150px;
    height: 150px;
    margin-bottom: 14px;
  }

  .auth-title {
    font-size: 19px;
  }

  .auth-subtitle {
    font-size: 13px;
  }

  .auth-card-center {
    padding: 16px 14px 18px;
  }
}


/* ----------------------------- */
/* ESKİ BASİT FOOTER (opsiyonel)*/
/* ----------------------------- */

.footer {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}


/* ----------------------------- */
/* YENİ ERMONEYT FOOTER         */
/* ----------------------------- */

.erm-footer {
  margin-top: 32px;
  background: #111821;
  border-radius: 18px 18px 0 0;
  padding: 28px 30px 18px;
  color: var(--muted);
  font-size: 13px;
}

/* Üst satır */
.erm-footer-top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 24px;
}

.erm-footer-logo {
  flex: 0 0 320px;
}

.erm-logo {
  width: 190px;
  display: block;
  margin-bottom: 10px;
}

.erm-footer-logo p {
  font-size: 13px;
  line-height: 1.5;
  max-width: 360px;
}

/* Sosyal ikonlar */
.erm-social {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.erm-social a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.erm-social a:hover {
  background: var(--primary);
  color: #211400;
  border-color: var(--primary);
}

/* Bilgiler + Müşteri Hizmetleri */
.erm-footer-links {
  flex: 1;
  display: flex;
  gap: 40px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.erm-col h3 {
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 10px;
}

.erm-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.erm-col ul li {
  margin-bottom: 6px;
}

.erm-col ul li a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.erm-col ul li a:hover {
  color: var(--primary);
}

/* Orta satır: kutular */
.erm-footer-mid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  padding: 26px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.erm-box {
  position: relative;
  padding-left: 32px;
  font-size: 13px;
}

.erm-box-icon {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #211400;
}

.erm-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.erm-box p {
  margin-bottom: 4px;
  color: var(--text);
}

.erm-box-info {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

/* İletişim listesi */
.erm-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.erm-contact li {
  margin-bottom: 4px;
}

.erm-contact strong {
  color: var(--text);
}

.erm-contact li strong {
  color: var(--primary);
}

/* Alt bar */
.erm-footer-bottom {
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.erm-footer-bottom p {
  margin: 0;
  color: var(--muted);
}

.erm-pay-icons {
  display: flex;
  gap: 8px;
  font-size: 11px;
  opacity: 0.8;
}


/* ----------------------------- */
/* ACCOUNT PAGE                 */
/* ----------------------------- */

.account-page {
  max-width: 1200px;
}

.account-shell {
  margin-top: 16px;
}

/* Üst profil kartı */
.account-header-card {
  background: linear-gradient(135deg, #1c2535, #111723);
  border-radius: 22px;
  padding: 18px 18px 16px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-header-left {
  display: flex;
  gap: 14px;
  align-items: center;
}

.account-avatar {
  width: 60px;
  height: 60px;
  border-radius: 22px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-avatar span {
  font-size: 28px;
  font-weight: 800;
  color: #1a1401;
}

.account-header-texts h1 {
  font-size: 20px;
  margin-bottom: 4px;
}

.account-email {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.account-desc {
  font-size: 12px;
  color: var(--muted);
  max-width: 420px;
}

.account-header-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.account-logout-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: #ff8a80;
  padding: 6px 12px;
  font-size: 12px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}

.account-logout-btn i {
  font-size: 12px;
}

.account-provider {
  font-size: 11px;
  color: var(--muted);
}

/* Kısa özet kartları */
.account-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.account-stat-card {
  background: var(--bg2);
  border-radius: 18px;
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-stat-card .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: #151c2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary);
}

.account-stat-card .text-wrap {
  flex: 1;
}

.account-stat-card .label {
  font-size: 12px;
  color: var(--muted);
}

.account-stat-card .value {
  font-size: 14px;
  font-weight: 600;
}

.account-stat-card .sub {
  font-size: 11px;
  color: var(--muted);
}

.account-stat-card .mini-link {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 11px;
  cursor: pointer;
}

.account-stat-card.altinkap {
  border-color: rgba(255, 209, 102, 0.25);
}

/* Bölümler */
.account-sections {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.account-section h2 {
  font-size: 15px;
  margin-bottom: 8px;
}

.account-list {
  background: var(--bg2);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.account-item {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  cursor: pointer;
}

.account-item + .account-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.account-item .icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #151c2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 15px;
}

.account-item .text {
  flex: 1;
}

.account-item .title {
  font-size: 14px;
  font-weight: 500;
}

.account-item .sub {
  font-size: 11px;
  color: var(--muted);
}

.account-item .chevron {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.account-item .badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #243148;
  color: var(--muted);
}

.account-item.danger .icon {
  background: rgba(244, 67, 54, 0.14);
  color: #ff8a80;
}

.account-item.danger .title {
  color: #ff8a80;
}

.account-item.disabled {
  cursor: default;
  opacity: 0.7;
}

/* Alt promosyon kartı */
.account-promo {
  margin-top: 20px;
}

.account-promo-card {
  background: #151c24;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-promo-card .promo-icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1401;
  font-size: 20px;
}

.account-promo-card .promo-texts h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.account-promo-card .promo-texts p {
  font-size: 12px;
  color: var(--muted);
}

.account-promo-card button {
  margin-left: auto;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #1a1401;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
}


/* ----------------------------- */
/* FAVORİLER – ÖNERİ KARTLARI   */
/* ----------------------------- */

.suggest-section {
  margin-top: 32px;
}

.suggest-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
}

/* scrollbar */
.suggest-row::-webkit-scrollbar {
  height: 6px;
}
.suggest-row::-webkit-scrollbar-track {
  background: #0b0f17;
}
.suggest-row::-webkit-scrollbar-thumb {
  background: #232838;
  border-radius: 999px;
}

/* küçük ürün kartları */
.mini-card {
  flex: 0 0 170px;
  background: var(--bg2);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 209, 102, 0.4);
}

.mini-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0b0f17;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-name {
  padding: 8px 10px 0;
  font-size: 13px;
  color: #ffffff;
  font-weight: 500;
  line-height: 1.35;
  max-height: 2.7em;
  overflow: hidden;
}

.mini-price {
  padding: 4px 10px 10px;
  font-size: 14px;
  font-weight: 700;
  color: #ffd166;
}


/* ----------------------------- */
/* SUBCATEGORY CHIPS            */
/* ----------------------------- */

.subcat-row {
  display: none; /* JS kategori modunda açacak */
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.subcat-chip {
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border 0.15s ease, color 0.15s ease, transform 0.08s ease;
  white-space: nowrap;
}

.subcat-chip:hover {
  background: rgba(30, 64, 175, 0.65);
  border-color: rgba(191, 219, 254, 0.9);
  transform: translateY(-1px);
}

.subcat-chip.active {
  background: #facc15;
  border-color: #facc15;
  color: #111827;
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.35);
}


/* ----------------------------- */
/* CHECKOUT SAYFASI             */
/* ----------------------------- */

/* ----------------------------- */
/* CHECKOUT SAYFASI             */
/* ----------------------------- */

.checkout-page {
  max-width: 1100px;
  margin: 18px auto 40px;
}

/* Üst başlık */
.checkout-header {
  margin-bottom: 12px;
}

.checkout-title {
  font-size: 24px;
  font-weight: 700;
}

.co-info {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* Adım göstergesi */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.checkout-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: var(--primary);
  color: #000;
}

.checkout-step-dot.passive {
  background: var(--bg3);
  color: var(--muted);
}

.checkout-step-line {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), rgba(15,23,42,1));
}

/* Ana layout (2 kolon kart) */
.checkout-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: flex-start;
  background: radial-gradient(circle at top, #171e2e, #050814);
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 28px 70px rgba(0,0,0,0.75);
}

/* Kart iskeleti */
.co-card {
  background: rgba(7, 11, 24, 0.96);
  border-radius: 18px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.co-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.co-card-title {
  font-size: 16px;
  font-weight: 600;
}

.co-card-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.06);
  color: var(--primary);
  border: 1px solid rgba(255, 209, 102, 0.7);
  white-space: nowrap;
}

/* Adres listesi */
#addressList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.co-address-radio {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg3);
  border: 1px solid rgba(148, 163, 184, 0.45);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .08s, box-shadow .15s;
}

.co-address-radio input {
  margin-top: 4px;
}

.co-address-main {
  flex: 1;
}

.co-address-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.co-address-line {
  font-size: 13px;
  color: var(--muted);
}

.co-address-radio:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.co-address-radio.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, .55);
}

/* Sipariş özeti kartı sticky olsun */
@media (min-width: 880px) {
  .co-summary-sticky {
    position: sticky;
    top: 96px;
  }
}

/* Sipariş satırları (orderSummary JS’in dolduruyor) */
#orderSummary {
  font-size: 13px;
}

.co-info-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.co-info-label {
  color: var(--muted);
}

.co-info-value {
  font-weight: 500;
}

/* İnce ayırıcı */
.co-divider {
  height: 1px;
  margin: 10px 0 8px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, .7),
    rgba(148, 163, 184, .05)
  );
}

/* toplam satırı */
.co-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 4px;
}

.co-total-label {
  font-size: 13px;
  color: var(--muted);
}

.co-total-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

/* alt bilgi */
#bottomSummary {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.co-pay-note {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.co-pay-note i {
  font-size: 12px;
  margin-top: 2px;
}

/* buton */
#confirmBtn {
  width: 100%;
  margin-top: 10px;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 600;
}

/* hata kutusu */
#errorBox {
  margin-bottom: 10px;
}
#errorBox .error-inner {
  background: #3b1116;
  border-radius: 10px;
  padding: 8px 10px;
  color: #ff9ea8;
  font-size: 12px;
  border: 1px solid rgba(255, 99, 132, .7);
}

/* mobil */
@media (max-width: 880px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 12px;
    border-radius: 18px;
  }
  .checkout-title {
    font-size: 20px;
  }
}

/* ----------------------------- */
/* PRODUCT DETAIL PAGE (YENİ)   */
/* ----------------------------- */

.product-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 10px 32px;
}

.back-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

.back-row button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--text);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: 16px;
  margin-bottom: 18px;
}

/* SOL: GÖRSELLER */
.gallery-card {
  background: var(--bg2);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px;
}

.main-image-wrap {
  background: radial-gradient(circle at top, #27324a, #070a11);
  border-radius: 14px;
  min-height: 260px;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-item {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid transparent;
  cursor: pointer;
  background: #141b2c;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-item.active {
  border-color: var(--primary);
}

/* SAĞ: BİLGİLER */
.info-card {
  background: var(--bg2);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
}

.product-category {
  font-size: 12px;
  color: var(--muted);
}

.price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.price-main {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.price-old {
  font-size: 14px;
  text-decoration: line-through;
  color: var(--muted);
}

.badge-campaign {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 82, 82, 0.25);
  color: #ff9b9b;
}

.stock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.qty-label {
  font-size: 12px;
  color: var(--muted);
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.qty-btn {
  background: var(--bg3);
  border: none;
  color: var(--text);
  padding: 4px 10px;
  font-size: 16px;
  cursor: pointer;
}

.qty-value {
  min-width: 30px;
  text-align: center;
  font-size: 13px;
  padding: 2px 6px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.btn-main {
  flex: 1;
  min-width: 150px;
  border-radius: 999px;
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-main.primary {
  background: var(--primary);
  color: #211400;
}

.btn-main.secondary {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.desc-card {
  background: var(--bg2);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px 14px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.desc-card h2 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text);
}

.desc-text {
  white-space: pre-wrap;
  line-height: 1.5;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* ÖNERİLER */
.suggestions {
  margin-top: 18px;
  background: var(--bg2);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px 14px;
}

.suggestions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
  flex-wrap: wrap;
}

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

.suggestions-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mini-card {
  flex: 0 0 150px;
  background: var(--bg3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px;
  font-size: 12px;
  cursor: pointer;
}

.mini-img {
  width: 100%;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  background: #141b2c;
  margin-bottom: 4px;
}

.mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-name {
  max-height: 32px;
  overflow: hidden;
}

.mini-price {
  margin-top: 2px;
  color: var(--primary);
  font-weight: 600;
}

/* Product detail responsive */
@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .main-image-wrap {
    min-height: 220px;
  }
  .product-page {
    padding: 12px 8px 30px;
  }
}

@media (max-width: 640px) {
  .back-row {
    font-size: 12px;
  }
  .product-title {
    font-size: 16px;
  }
  .price-main {
    font-size: 18px;
  }
}


/* ----------------------------- */
/* SETTINGS PAGE (Ayarlar)      */
/* ----------------------------- */

.settings-page h2 {
  margin-bottom: 8px;
}

/* account-list zaten var, burada sadece bu sayfa için garanti altına alıyoruz */
.settings-page .account-list .account-item {
  width: 100%;
  text-align: left;
}

/* Destek popup arka planı */
.erm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* JS ile flex yapacağız */
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Modal kutu */
.erm-modal {
  max-width: 420px;
  width: 90%;
  background: #131822;
  border-radius: 18px;
  padding: 20px 18px 16px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.erm-modal h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.erm-modal p {
  margin: 4px 0;
  line-height: 1.4;
  font-size: 14px;
  color: #d0d2dc;
}

.erm-modal a {
  color: #ffd166;
  text-decoration: none;
  word-break: break-all;
}

.erm-modal-footer {
  margin-top: 18px;
  text-align: right;
}

.erm-modal-btn {
  background: none;
  border: none;
  color: #ffd166;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
}


/* ----------------------------- */
/* GLOBAL RESPONSIVE            */
/* ----------------------------- */

/* 960px ve üzeri: masaüstü, sol kategori menüsü açık */
@media (min-width: 961px) {
  .desktop-side {
    display: block;
  }
}

/* 960px ve altı: sol menü gizli, layout tek sütun */
@media (max-width: 960px) {
  .layout-shell {
    display: block;
  }

  .desktop-side {
    display: none;
  }

  .erm-footer {
    padding: 22px 16px 16px;
  }

  .erm-footer-top {
    flex-direction: column;
    gap: 18px;
  }

  .erm-footer-logo {
    flex: unset;
  }

  .erm-footer-mid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 640px ve altı: header & footer tamamen mobil düzen */
@media (max-width: 640px) {
  .header {
    padding: 8px 10px;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .header-menu-btn,
  .menu-btn {
    display: inline-flex;
  }

  .logo {
    font-size: 18px;
  }

  .logo span {
    display: none;
  }

  .header-right {
    order: 2;
    width: 100%;
    display: flex;
    gap: 6px;
    justify-content: space-between;
  }

  .header-right .btn-outline,
  .header-right .btn-primary {
    flex: 1;
    padding: 6px 4px;
    font-size: 11px;
    text-align: center;
    justify-content: center;
  }

  .header-search {
    order: 3;
    width: 100%;
    padding-inline: 8px;
  }

  .header-search input {
    font-size: 13px;
  }

  .hero-overlay h1 {
    font-size: 18px;
  }

  .hero-overlay p {
    font-size: 12px;
  }

  .erm-footer-mid {
    grid-template-columns: 1fr;
  }

  .erm-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-header-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-header-right {
    align-items: flex-start;
  }

  .account-sections {
    grid-template-columns: 1fr;
  }
}

/* 480px ve altı: logo küçültme */
@media (max-width: 480px) {
  .erm-logo {
    width: 140px;
  }
}

/* ----------------------------- */
/* İLETİSİM                      */
/* ----------------------------- */

.contact-status {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}

.contact-status--pending {
  color: #facc15;
}

.contact-status--ok {
  color: #4ade80;
}

.contact-status--error {
  color: #fecaca;
}
/* ===========================
   SİPARİŞLERİM SAYFASI
   =========================== */

.account-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 14px 32px;
}

.page-title {
  font-size: 22px;
  margin: 4px 0 6px;
  letter-spacing: 0.02em;
}

.co-info {
  margin: 0 0 14px;
  font-size: 13px;
  color: #9ca3af;
}

/* mesaj kutusu (hata / info) */
#ordersMessage.auth-message {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* boş state */
.order-empty {
  margin-top: 16px;
  padding: 18px 16px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, rgba(37,99,235,0.22), rgba(15,23,42,0.95));
  border: 1px dashed rgba(148,163,184,0.6);
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
}

/* kart container */
#ordersContainer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* sipariş kartı */
.order-card {
  position: relative;
  border-radius: 18px;
  padding: 12px 13px 11px;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.30), transparent 55%),
    linear-gradient(135deg, #020617, #020617);
  border: 1px solid rgba(31,41,55,0.95);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.75),
    0 0 0 1px rgba(15,23,42,0.9) inset;
  overflow: hidden;
  transition:
    transform 0.12s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.order-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(252,211,77,0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 50px rgba(0,0,0,0.85),
    0 0 0 1px rgba(55,65,81,1) inset;
  border-color: rgba(148,163,184,0.8);
}

.order-card:hover::before {
  opacity: 1;
}

/* header */
.order-card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.order-id {
  font-size: 13px;
  font-weight: 600;
}

.order-date {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.order-total {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(250,204,21,0.18), rgba(15,23,42,0.95));
  border: 1px solid rgba(252,211,77,0.4);
  box-shadow: 0 8px 18px rgba(180,83,9,0.40);
}

/* body */
.order-card-body {
  padding-top: 6px;
  border-top: 1px dashed rgba(55,65,81,0.9);
}

.order-status {
  font-size: 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* durum chip */
.order-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid transparent;
  background: rgba(15,23,42,0.95);
}

/* pending */
.order-status-pending {
  color: #facc15;
  border-color: rgba(234,179,8,0.7);
  background: radial-gradient(circle at top left, rgba(234,179,8,0.18), rgba(15,23,42,0.96));
}

/* approved */
.order-status-approved {
  color: #22c55e;
  border-color: rgba(34,197,94,0.7);
  background: radial-gradient(circle at top left, rgba(34,197,94,0.18), rgba(15,23,42,0.96));
}

/* shipped */
.order-status-shipped {
  color: #38bdf8;
  border-color: rgba(56,189,248,0.7);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.18), rgba(15,23,42,0.96));
}

/* cancelled */
.order-status-cancelled {
  color: #f97373;
  border-color: rgba(248,113,113,0.75);
  background: radial-gradient(circle at top left, rgba(248,113,113,0.16), rgba(15,23,42,0.96));
}

/* ürün satırları */
.order-items {
  border-radius: 12px;
  padding: 8px 9px 6px;
  background: radial-gradient(circle at top left, rgba(30,64,175,0.18), rgba(15,23,42,0.96));
  border: 1px solid rgba(31,41,55,0.95);
}

.order-item-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 3px 0;
}

.order-item-name {
  color: #e5e7eb;
}

.order-item-qty {
  color: #9ca3af;
  font-size: 11px;
}

/* responsive */
@media (max-width: 640px) {
  .account-page {
    padding: 16px 10px 26px;
  }

  .order-card {
    padding: 11px 10px 10px;
    border-radius: 15px;
  }

  .order-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .order-total {
    align-self: flex-start;
  }
}
/* ================================
   SEPET SAYFASI (CART PAGE)
   ================================ */

.cart-page {
  max-width: 1100px;
  margin: 18px auto 40px;
}

.cart-shell {
  margin-top: 8px;
}

/* GİRİŞ YOKSA BLOK */
.cart-guest {
  display: none; /* JS giriş yoksa bunu açıyor zaten */
  justify-content: center;
  align-items: center;
}

.cart-guest-inner {
  max-width: 520px;
  width: 100%;
  padding: 22px 20px 20px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.32), rgba(15,23,42,0.96));
  border: 1px solid rgba(148,163,184,0.65);
  box-shadow:
    0 22px 55px rgba(0,0,0,0.85),
    0 0 0 1px rgba(15,23,42,0.9) inset;
  text-align: center;
}

.cart-guest-icon {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--primary);
}

.cart-guest-inner h1 {
  font-size: 20px;
  margin-bottom: 6px;
}

.cart-guest-inner p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* GİRİŞ VARSA ANA BLOK */
.cart-content {
  margin-top: 12px;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(250,204,21,0.16), transparent 60%),
    linear-gradient(135deg, #020617, #020617);
  border-radius: 22px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(31,41,55,0.95);
  box-shadow:
    0 26px 70px rgba(0,0,0,0.9),
    0 0 0 1px rgba(15,23,42,0.95) inset;
}

/* Sepet başlığı */
.cart-title {
  font-size: 22px;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

/* info yazısı (co-info globalde de var) */
.cart-page .co-info {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* hata / bilgi mesajı */
#cartMessage.auth-message {
  margin: 8px 0 6px;
}

/* 🔥 ÜCRETSİZ KARGO BANNER’I */
.cart-banner {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  background: radial-gradient(circle at left, rgba(250,204,21,0.22), rgba(15,23,42,0.98));
  border: 1px solid rgba(250,204,21,0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #e5e7eb;
}

.cart-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-banner-emoji {
  font-size: 22px;
}

.cart-banner strong {
  display: block;
  margin-bottom: 2px;
}

.cart-banner p {
  margin: 0;
  color: var(--muted);
}

/* banner butonu */
.btn-banner-continue {
  border-radius: 999px;
  border: none;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, #facc15, #fb923c);
  color: #1f1301;
  white-space: nowrap;
}

/* ürün listesi */
.cart-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Boş sepet */
#cartEmpty {
  margin-top: 14px;
  padding: 18px 14px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, rgba(37,99,235,0.22), rgba(15,23,42,0.96));
  border: 1px dashed rgba(148,163,184,0.65);
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}

/* Özet kutusu */
#cartSummary {
  margin-top: 16px;
  background: radial-gradient(circle at top left, rgba(250,204,21,0.18), rgba(15,23,42,0.98));
  border-radius: 18px;
  padding: 12px 14px 12px;
  border: 1px solid rgba(250,204,21,0.45);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.8),
    0 0 0 1px rgba(15,23,42,0.9) inset;
  font-size: 13px;
  width: 100%;
  max-width: 380px;
  margin-left: auto; /* sağa yasla, full ekran olmasın */
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cart-summary-row span {
  color: var(--muted);
}

.cart-summary-row strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

/* checkout butonu */
#checkoutBtn {
  width: 100%;
  margin-top: 10px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #facc15, #f97316);
  color: #1f1301;
  box-shadow: 0 14px 30px rgba(250,204,21,0.45);
  cursor: pointer;
}

/* DESKTOP: liste + özet yan yana */
@media (min-width: 880px) {
  .cart-content {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.9fr);
    grid-template-areas:
      "title   summary"
      "msg     summary"
      "banner  summary"
      "list    summary"
      "empty   summary";
    column-gap: 16px;
    align-items: flex-start;
  }

  .cart-title { grid-area: title; }
  #cartMessage { grid-area: msg; }
  #cartFreeShippingBanner { grid-area: banner; }
  #cartList   { grid-area: list; }
  #cartEmpty  { grid-area: empty; }

  #cartSummary {
    grid-area: summary;
    position: sticky;
    top: 96px;
  }
}

/* MOBİL */
@media (max-width: 879px) {
  .cart-content {
    padding: 14px 12px 12px;
    border-radius: 18px;
  }

  #cartSummary {
    max-width: 100%;
    margin-left: 0;
  }

  .cart-title {
    font-size: 20px;
  }

  .cart-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-banner-continue {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
