/* ============================================================
   PizzaMax - Ana Stil Dosyası
   Domino's benzeri siyah/kırmızı/beyaz tema
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Oswald:wght@500;600;700&display=swap');

:root {
  --red: #e31837;
  --red-dark: #c0141f;
  --red-light: #ff4455;
  --black: #0d0d0d;
  --dark: #1a1a1a;
  --gray: #f5f5f5;
  --gray-mid: #e0e0e0;
  --text: #333;
  --text-light: #777;
  --white: #ffffff;
  --gold: #c8a951;
  --green: #00a651;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: all 0.25s ease;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; color: var(--text); background: var(--white); }

/* ---- NAVİGASYON ---- */
.navbar {
  background: var(--black);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-logo .logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}
.navbar-logo .logo-dot { color: var(--red); }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.navbar-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.navbar-nav a:hover { color: var(--red-light); background: rgba(255,255,255,0.05); }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-cart {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 25px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}
.btn-cart:hover { background: var(--red-dark); transform: translateY(-1px); }
.cart-badge {
  background: var(--white);
  color: var(--red);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}
.btn-profile {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 25px;
  padding: 7px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-profile:hover { border-color: var(--white); color: var(--white); }

/* Teslimat bar */
.delivery-bar {
  background: var(--gray);
  border-bottom: 1px solid var(--gray-mid);
  padding: 8px 20px;
}
.delivery-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.delivery-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--white);
  border: 2px solid var(--gray-mid);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}
.delivery-option.active, .delivery-option:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fff5f6;
}
.delivery-option .icon { font-size: 1.1rem; }

/* ---- BANNER / HERO ---- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--black);
  height: 380px;
}
.slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  transition: opacity 0.5s ease;
}
.slide.active { display: block; }
.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--red) 0%, #8b0000 40%, var(--black) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.slide-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.slide-content {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  z-index: 2;
}
.slide-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 8px;
}
.slide-content .price-tag {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
}
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.slider-nav:hover { background: rgba(255,255,255,0.3); }
.slider-nav.prev { left: 16px; }
.slider-nav.next { right: 16px; }

/* ---- CONTAINER ---- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }

/* ---- KATEGORİ KARTLARI ---- */
.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
}
.cat-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.cat-card .cat-icon { font-size: 2.2rem; }
.cat-card .cat-name { font-weight: 800; font-size: 1.1rem; }

/* ---- ÜRÜN KARTLARI ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.badge-new { background: var(--red); color: var(--white); }
.badge-popular { background: #ff6b35; color: var(--white); }
.badge-monthly { background: #6f42c1; color: var(--white); }
.product-body { padding: 16px; }
.product-name { font-weight: 800; font-size: 1rem; margin-bottom: 6px; }
.product-desc { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; margin-bottom: 12px; min-height: 36px; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price { font-size: 1.3rem; font-weight: 900; color: var(--gold); }
.btn-order {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--gray-mid);
  border-radius: 25px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-order:hover { border-color: var(--red); color: var(--red); }

/* ---- SAYFA BAŞLIĞI ---- */
.page-header {
  background: var(--gray);
  border-bottom: 1px solid var(--gray-mid);
  padding: 16px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--text); font-weight: 600; }
.page-title-main {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--black);
}

/* ---- FİLTRE TABS ---- */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  white-space: nowrap;
  padding: 10px 20px;
  border-radius: 25px;
  border: 2px solid var(--gray-mid);
  background: var(--white);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.filter-tab:hover, .filter-tab.active {
  border-color: var(--red);
  color: var(--red);
  background: #fff5f6;
}

/* ---- PİZZA DETAY SAYFASI ---- */
.pizza-detail-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
}
.pizza-img-wrap {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
}
.pizza-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.config-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: sticky;
  top: 80px;
}
.config-section { margin-bottom: 24px; }
.config-section h3 { font-weight: 800; font-size: 1rem; margin-bottom: 12px; color: var(--black); }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option-btn {
  border: 2px solid var(--gray-mid);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--white);
}
.option-btn:hover { border-color: var(--red); }
.option-btn.selected { border-color: var(--red); background: #fff5f6; }
.option-btn .opt-img { width: 36px; height: 36px; border-radius: 6px; background: var(--gray); object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.option-btn .opt-name { flex: 1; }
.option-btn .opt-price { color: var(--gold); font-weight: 700; font-size: 0.85rem; }

/* Malzeme seçimi */
.std-malzeme {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
  user-select: none;
  border: 2px solid transparent;
  background: none;
  font-family: inherit;
}
.std-malzeme * { pointer-events: none; }
/* Base: her iki ikon da gizli, state class'ları açar */
.std-malzeme .std-check { display: none; }
.std-malzeme .std-x { display: none; }
.std-malzeme.aktif {
  background: #e3f2fd;
  color: #1565c0;
  border: 2px solid #90caf9;
}
.std-malzeme.aktif .std-check { display: inline; }
.std-malzeme.aktif .std-x    { display: none; }
.std-malzeme.kaldirildi {
  background: #ffebee;
  color: #c62828;
  border: 2px dashed #ef9a9a;
  text-decoration: line-through;
  opacity: .7;
}
.std-malzeme.kaldirildi .std-check { display: none; }
.std-malzeme.kaldirildi .std-x    { display: inline; }

.ingredient-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ingredient-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.ingredient-item.standard { background: #f0f7ff; border-color: #c0d8ff; }
.ingredient-item.standard.removed { background: #fff0f0; border-color: #ffc0c0; text-decoration: line-through; opacity: 0.6; }
.ingredient-item.extra.selected { background: #f0fff4; border-color: #90d5a0; }
.ingredient-item .ing-name  { font-weight: 600; }
.ingredient-item .ing-price { color: var(--gold); font-weight: 700; font-size: 0.8rem; }
.ingredient-item .ing-check { display: none; color: var(--green); font-weight: 900; margin-left: 4px; }
.ingredient-item .ing-check.visible { display: inline; }

/* Fiyat & Adet */
.price-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 2px solid var(--gray);
  margin-top: 8px;
}
.total-price { font-size: 2rem; font-weight: 900; color: var(--gold); }
.qty-control { display: flex; align-items: center; gap: 12px; }
.qty-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gray-mid);
  background: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { border-color: var(--red); color: var(--red); }
.qty-display { font-size: 1.3rem; font-weight: 800; min-width: 28px; text-align: center; }
.btn-add-cart {
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 30px;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.btn-add-cart:hover { background: #008040; transform: translateY(-2px); }

/* ---- SEPET ---- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; padding: 32px 0; }
.cart-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray);
  padding: 12px 20px;
}
.cart-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-light);
}
.cart-step.active { color: var(--red); }
.cart-step .step-ico { font-size: 1.1rem; }
.cart-step-arrow { color: var(--gray-mid); margin: 0 12px; }

.cart-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-item-img { width: 70px; height: 70px; border-radius: 8px; background: var(--gray); display: flex; align-items: center; justify-content: center; font-size: 2rem; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 800; margin-bottom: 4px; }
.cart-item-meta { font-size: 0.8rem; color: var(--text-light); }
.cart-item-price { font-weight: 900; font-size: 1.1rem; color: var(--gold); }
.cart-item-del { background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 1.2rem; padding: 4px; }
.cart-item-del:hover { color: var(--red); }

.cart-summary {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.cart-summary h3 { font-family: 'Oswald', sans-serif; font-size: 1.3rem; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid var(--gray); }
.summary-row.total { font-weight: 900; font-size: 1.1rem; color: var(--gold); border: none; padding-top: 12px; }
.btn-checkout {
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 25px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 16px;
  transition: var(--transition);
}
.btn-checkout:hover { background: #008040; }

/* ---- KAMPANYA KARTLARI ---- */
/* ============================================================
   KAMPANYALAR SAYFASI — FİLTRE LAYOUT
   ============================================================ */
.kampanya-layout-wrap {
  padding-top: 0;
}

.kampanya-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.kampanya-filtre-sidebar {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 80px;
}

.kampanya-grid-wrap { min-width: 0; }

/* ---- MOBİL: filtre üste sabit şerit ---- */
@media (max-width: 900px) {
  .kampanya-layout-wrap {
    padding-top: 0;    /* filtre fixed olduğu için js ile ayarlanır */
  }

  .kampanya-layout {
    display: block;
  }

  .kampanya-filtre-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    padding: 10px 16px 10px;
    z-index: 200;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
    overflow: hidden;
    max-height: 54px;         /* kapalı yükseklik */
    transition: max-height .3s ease;
  }

  .kampanya-filtre-sidebar.acik {
    max-height: 400px;         /* açık yükseklik */
    overflow-y: auto;
  }

  /* Filtre başlık toggle satırı */
  .filtre-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 800;
    font-size: .9rem;
    user-select: none;
  }

  .filtre-toggle .arrow {
    transition: transform .3s;
    font-style: normal;
    font-size: .8rem;
  }

  .kampanya-filtre-sidebar.acik .filtre-toggle .arrow {
    transform: rotate(180deg);
  }

  .filtre-icerik {
    padding-top: 10px;
  }

  .kampanya-grid-wrap {
    margin-top: 70px;   /* filtre yüksekliği kadar boşluk */
    padding-bottom: 20px;
  }
}

.campaign-banner {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.campaign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.campaign-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.campaign-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.campaign-card-img { height: 180px; background: var(--gray); display: flex; align-items: center; justify-content: center; font-size: 5rem; position: relative; overflow: hidden; }
.campaign-card-img img { width: 100%; height: 100%; object-fit: cover; }
.campaign-label {
  position: absolute; top: 10px; left: 10px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.5px;
}
.label-monthly { background: #6f42c1; color: var(--white); }
.label-popular { background: #ff6b35; color: var(--white); }
.label-new { background: var(--red); color: var(--white); }
.campaign-card-body { padding: 16px; }
.campaign-name { font-weight: 800; font-size: 0.9rem; margin-bottom: 10px; line-height: 1.4; }
.campaign-footer { display: flex; align-items: center; justify-content: space-between; }
.campaign-price { font-size: 1.4rem; font-weight: 900; color: var(--gold); }
.btn-order-campaign {
  border: 2px solid var(--gray-mid);
  background: var(--white);
  border-radius: 20px;
  padding: 7px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-order-campaign:hover { border-color: var(--red); color: var(--red); }

/* ---- ÜYE GİRİŞ / KAYIT ---- */
.auth-page {
  min-height: 100vh;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .logo { font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 700; color: var(--black); }
.auth-logo .logo span { color: var(--red); }
.auth-title { font-weight: 800; font-size: 1.3rem; margin-bottom: 24px; text-align: center; }
.form-group { margin-bottom: 16px; }
.form-label { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; display: block; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-mid);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Nunito', sans-serif;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--red); }
.btn-submit {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 25px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}
.btn-submit:hover { background: var(--red-dark); }
.auth-links { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--text-light); }
.auth-links a { color: var(--red); font-weight: 700; text-decoration: none; }

/* ---- ALERT ---- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 600; font-size: 0.9rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ---- ÜYE PANELİ ---- */
/* ============================================================
   ÜYE PANELİ LAYOUT  —  Desktop
   ============================================================ */
.member-layout {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 64px);
}

.member-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 2px solid var(--gray);
  padding: 24px 16px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  scrollbar-width: none;
}
.member-sidebar::-webkit-scrollbar { display: none; }

.member-avatar {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray);
  margin-bottom: 16px;
}
.avatar-circle {
  width: 60px; height: 60px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; color: var(--white);
  margin: 0 auto 8px;
}
.member-name   { font-weight: 800; font-size: .95rem; }
.member-points { color: var(--gold); font-weight: 700; font-size: .85rem; margin-top: 4px; }

.member-menu { display: flex; flex-direction: column; gap: 2px; }
.member-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  text-decoration: none; color: var(--text);
  font-weight: 600; font-size: .9rem;
  transition: var(--transition);
}
.member-menu a:hover,
.member-menu a.active { background: #fff5f6; color: var(--red); }

/* --- İÇERİK --- */
.member-content {
  flex: 1;
  min-width: 0;
  padding: 32px 28px;
  background: #f8f8f8;
  min-height: calc(100vh - 64px);
}

/* Spacer: masaüstünde gizli */
.member-sidebar-spacer { display: none; }

/* ============================================================
   MOBİL (≤900px)  —  Sidebar fixed şerit + pill menü
   ============================================================ */
@media (max-width: 900px) {

  /* Layout tam genişlik, sidebar yüksekliği kadar üstten boşluk */
  .member-layout {
    display: block;
    min-height: unset;
    /* padding-top JS ile dinamik ayarlanır — member-sidebar-spacer ile */
  }

  /* Boşluk tutucu div — JS sidebar yüksekliğini buraya yazar */
  .member-sidebar-spacer {
    display: block;
  }

  /* Sidebar: fixed, navbar (64px) altına yapışık */
  .member-sidebar {
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    z-index: 400 !important;
    border-right: none;
    border-bottom: 2px solid var(--gray);
    padding: 8px 16px 10px !important;
    box-shadow: 0 3px 14px rgba(0,0,0,.12);
    background: var(--white) !important;
    overflow: visible !important;
  }

  /* Avatar satırı — yatay kompakt */
  .member-avatar {
    display: flex !important;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--gray);
  }
  .avatar-circle {
    width: 36px !important;
    height: 36px !important;
    font-size: .9rem !important;
    flex-shrink: 0;
    margin: 0 !important;
  }
  .member-name   { font-size: .83rem; }
  .member-points { font-size: .72rem; }

  /* Menü: yatay kaydırmalı pill listesi */
  .member-menu {
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    gap: 6px !important;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .member-menu::-webkit-scrollbar { display: none; }
  .member-menu a {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: .78rem !important;
    background: var(--gray) !important;
    border: 2px solid transparent !important;
    gap: 4px !important;
    color: var(--text) !important;
  }
  .member-menu a:hover,
  .member-menu a.active {
    background: #fff5f6 !important;
    color: var(--red) !important;
    border-color: var(--red) !important;
  }

  /* İçerik: sidebar spacer altından başlar */
  .member-content {
    padding: 20px 14px 50px !important;
    min-height: unset !important;
    background: #f8f8f8;
  }
}

/* ---- FOOTER ---- */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 20px;
  margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand .logo { font-family: 'Oswald', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--white); }
.footer-brand .logo span { color: var(--red); }
.footer-brand p { margin-top: 12px; font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-weight: 800; margin-bottom: 14px; font-size: 0.9rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; margin-bottom: 8px; transition: var(--transition); }
.footer-col a:hover { color: var(--red-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }

/* ---- SIPARIŞ TAKİP ---- */
.order-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 0;
  overflow-x: auto;
}
.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  position: relative;
}
.track-step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: var(--gray-mid);
  z-index: 0;
}
.track-step:last-child::after { display: none; }
.track-step.done::after { background: var(--green); }
.track-icon {
  width: 42px; height: 42px;
  background: var(--gray);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  z-index: 1;
  position: relative;
  border: 3px solid var(--gray-mid);
}
.track-step.done .track-icon { background: var(--green); border-color: var(--green); }
.track-step.active .track-icon { background: var(--red); border-color: var(--red); animation: pulse 1.5s infinite; }
.track-label { font-size: 0.75rem; font-weight: 700; text-align: center; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex; align-items: flex-end;
  justify-content: center;
}
.modal-overlay.center { align-items: center; }
.modal-sheet {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  animation: slideUp 0.3s ease;
}
.modal-overlay.center .modal-sheet { border-radius: 20px; }
@keyframes slideUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title { font-weight: 900; font-size: 1.2rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .pizza-detail-layout { grid-template-columns: 1fr; }
  .config-panel { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .category-cards { grid-template-columns: 1fr 1fr; }
  .navbar-nav { display: none; }
  .hero-slider { height: 250px; }
  .slide-content h2 { font-size: 1.8rem; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ingredient-list { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .category-cards { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

/* ---- YÜKLEME ANİMASYONU ---- */
.skeleton {
  background: linear-gradient(90deg, var(--gray) 25%, #e8e8e8 50%, var(--gray) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ---- TOAST ---- */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s ease;
  max-width: 320px;
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
@keyframes toastIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Standart Malzeme Pill (Domino's stili) ─────────────────────── */
.std-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all .18s ease;
  border: 2px solid transparent;
}
.std-pill.aktif {
  background: #e3f2fd;
  color: #1565c0;
  border-color: #90caf9;
}
.std-pill.aktif .sp-aktif-icon  { display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: #90caf9; color: white;
  font-size: .65rem; font-weight: 900; flex-shrink: 0; }
.std-pill.aktif .sp-kaldir-icon { display: none; }

.std-pill.kaldirildi {
  background: #fafafa;
  color: #9e9e9e;
  border-color: #e0e0e0;
  border-style: dashed;
  text-decoration: line-through;
}
.std-pill.kaldirildi .sp-aktif-icon  { display: none; }
.std-pill.kaldirildi .sp-kaldir-icon { display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: #bdbdbd; color: white;
  font-size: .72rem; font-weight: 900; flex-shrink: 0; }

.std-pill:hover { transform: scale(1.04); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
