/* ====================================================
   Leoni Cafe — Sipariş Sayfası CSS (Premium Yeniden Tasarım)
   ==================================================== */

/* ─── Layout ───────────────────────────────────────── */
.siparis-wrap {
  display: block;
  min-height: 100vh;
  background: #0D0D0D;
  position: relative;
}

/* ─── SOL PANEL ──────────────────────────────────────── */
.siparis-sol {
  padding: 0 0 80px 0;
  background: #111;
  min-height: 100vh;
  margin-right: 268px; /* cart genisligine esit */
}

/* Kategori tab bar */
.siparis-kat-wrap {
  position: sticky;
  top: 70px;
  z-index: 90;
  background: #0D0D0D;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.siparis-kat-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 24px;
}
.siparis-kat-tabs::-webkit-scrollbar { display: none; }

.siparis-kat-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.siparis-kat-tab:hover {
  color: rgba(201,168,76,0.8);
}
.siparis-kat-tab.aktif {
  color: #C9A84C;
  border-bottom-color: #C9A84C;
}
.siparis-kat-tab i {
  font-size: 13px;
}

/* Ürün alanı */
.siparis-urunler {
  padding: 20px 16px;
}

/* Kategori başlığı */
.siparis-kat-blok {
  margin-bottom: 40px;
}
.siparis-kat-baslik {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.siparis-kat-baslik i {
  width: 36px;
  height: 36px;
  background: rgba(201,168,76,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C9A84C;
  font-size: 15px;
  flex-shrink: 0;
}

/* Ürün grid — 3 kolon */
.s-urun-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Ürün kartı */
.s-urun {
  background: #1A1A1A;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.s-urun:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.s-urun.titret {
  animation: kartTitret 0.35s ease;
}
@keyframes kartTitret {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.04); border-color: #C9A84C; }
  60%  { transform: scale(0.98); }
  100% { transform: scale(1); }
}

/* Görsel */
.s-urun-img-wrap {
  position: relative;
  height: 110px;
  overflow: hidden;
  background: #242424;
}
.s-urun-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.s-urun:hover .s-urun-img-wrap img {
  transform: scale(1.06);
}

/* Etiket rozeti */
.s-urun-rozet {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.rozet-populer  { background: #C9A84C; color: #000; }
.rozet-yeni     { background: #10B981; color: #fff; }
.rozet-sef_onerisi { background: #7C3AED; color: #fff; }
.rozet-vejetaryen  { background: #059669; color: #fff; }
.rozet-indirimli   { background: #EF4444; color: #fff; }

/* Ekle overlay butonu */
.s-ekle-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: #C9A84C;
  border-radius: 50%;
  border: none;
  color: #000;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.s-urun:hover .s-ekle-overlay {
  opacity: 1;
  transform: scale(1);
}

/* İçerik */
.s-urun-bilgi {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.s-urun-ad {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
}
.s-urun-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.s-urun-alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.s-urun-fiyat {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #C9A84C;
}
.s-ekle-btn {
  width: 26px;
  height: 26px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 7px;
  color: #C9A84C;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.s-ekle-btn:hover {
  background: #C9A84C;
  color: #000;
  border-color: #C9A84C;
}

/* ─── SAĞ PANEL — SEPET ──────────────────────────────── */
.siparis-sag {
  position: fixed;
  top: 70px;
  right: 0;
  width: 268px;
  height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  background: #0D0D0D;
  border-left: 1px solid rgba(201,168,76,0.15);
  overflow: hidden;
  z-index: 80;
  box-shadow: -4px 0 24px rgba(0,0,0,0.4);
}

/* Sepet başlık */
.sepet-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.sepet-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sepet-sayac {
  background: #C9A84C;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Sipariş tipi */
.siparis-tipi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.siparis-tipi-btn {
  padding: 7px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.siparis-tipi-btn.aktif {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.5);
  color: #C9A84C;
}
.siparis-tipi-btn:hover:not(.aktif) {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}

/* Boş sepet */
.sepet-bos {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  gap: 10px;
  padding: 40px 20px;
}
.sepet-bos i { font-size: 40px; }
.sepet-bos p { font-size: 14px; color: rgba(255,255,255,0.35); font-weight: 500; margin: 0; }
.sepet-bos small { font-size: 12px; color: rgba(255,255,255,0.2); }

/* Dolu sepet */
#sepetDolu {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
#sepetDolu.goster { display: flex !important; }

/* Kalemler scroll */
.sepet-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.2) transparent;
}
.sepet-scroll::-webkit-scrollbar { width: 3px; }
.sepet-scroll::-webkit-scrollbar-track { background: transparent; }
.sepet-scroll::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.25); border-radius: 4px; }

/* Sepet kalemi */
.sepet-kalem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  animation: kalemGel 0.3s ease;
}
@keyframes kalemGel {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.sepet-kalem-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #1A1A1A;
  flex-shrink: 0;
}
.sepet-kalem-bilgi {
  flex: 1;
  min-width: 0;
}
.sepet-kalem-ad {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sepet-kalem-fiyat {
  font-size: 11.5px;
  color: #C9A84C;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-top: 2px;
}
.sepet-kalem-adet {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.adet-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.adet-btn:hover { background: rgba(201,168,76,0.2); border-color: rgba(201,168,76,0.4); color: #C9A84C; }
.adet-btn.sil:hover { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); color: #EF4444; }
.adet-sayi {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  min-width: 18px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

/* Form - başlangıçta gizli */
.sepet-form {
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  display: none;
}
.sepet-form.acik {
  display: block;
}
.form-group { margin-bottom: 7px; }
.form-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
  font-family: 'Montserrat', sans-serif;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.25s;
  resize: none;
}
.form-control:focus {
  border-color: rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.05);
}
.form-control::placeholder { color: rgba(255,255,255,0.2); }

/* Özet */
.sepet-ozet {
  padding: 8px 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.sepet-ozet-satir {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
  padding: 2px 0;
}
.sepet-ozet-satir.toplam {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 6px;
  padding-top: 8px;
  font-family: 'Montserrat', sans-serif;
}
.sepet-ozet-satir.toplam span:last-child { color: #C9A84C; }

/* Min sipariş uyarısı */
.min-siparis-uyari {
  display: none;
  margin: 0 20px 8px;
  padding: 8px 12px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  font-size: 12px;
  color: #EF4444;
  font-weight: 500;
}
.min-siparis-uyari.goster { display: flex; gap: 7px; align-items: center; }

/* Sipariş butonu */
.sepet-footer {
  padding: 14px 20px 20px;
  flex-shrink: 0;
}
.btn-siparis {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #C9A84C, #E8C96A);
  color: #000;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.btn-siparis:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.5);
}
.btn-siparis:active { transform: translateY(0); }
.btn-siparis:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ─── Başarı Modal ────────────────────────────────────── */
.sp-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}
.sp-modal.goster { display: flex; }
.sp-modal-kart {
  background: linear-gradient(145deg, #1A1A1A, #242424);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: modalAc 0.4s ease;
}
@keyframes modalAc {
  from { opacity: 0; transform: scale(0.85) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── Responsive ─────────────────────────────────────── */

  /* Küçük ekran: mobil drawer */
  @media (max-width: 768px) {
    .siparis-sol { margin-right: 0; padding-bottom: 80px; }
    .siparis-sag {
      position: fixed;
      bottom: 0; left: 0; right: 0;
      top: auto; width: 100%;
      height: auto; max-height: 85vh;
      border-left: none;
      border-top: 1px solid rgba(201,168,76,0.25);
      z-index: 100;
      transform: translateY(calc(100% - 58px));
      transition: transform 0.35s cubic-bezier(.4,0,.2,1);
      box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
    }
    .siparis-sag.acik { transform: translateY(0); }
    .sepet-header { cursor: pointer; }
    .s-urun-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sepet-scroll { min-height: 0; }
  }

@media (max-width: 480px) {
  .siparis-kat-tabs { padding: 0 10px; }
  .siparis-urunler { padding: 16px 10px; }
  .s-urun-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .s-urun-img-wrap { height: 90px; }
}

/* ─── Sayfa hero override ────────────────────────────── */
.siparis-hero {
  background: #0D0D0D;
  padding: 100px 24px 32px;
  text-align: center;
}
.siparis-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
  font-weight: 900;
}
.siparis-hero h1 span { color: #C9A84C; font-style: italic; }
.siparis-hero .breadcrumb { justify-content: center; margin-bottom: 10px; }
