@import url('base.css');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap');

/* =========================================================================
   Müşteri Menü Arayüzü
   ========================================================================= */

.page {
  min-height: 100vh;
  padding-bottom: 110px;
}

/* --- Üst Bar --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--safe-x);
  background: rgba(12, 11, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar .brand-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient-flame);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.topbar .brand-name {
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.1;
}
.topbar .brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.table-chip {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.table-chip .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

/* --- Maç / Süper Lig Banner --- */
.match-banner {
  margin: 14px var(--safe-x) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(120deg, #1b1420 0%, #241521 55%, #2c1618 100%);
  border: 1px solid rgba(239, 61, 78, 0.35);
}
.match-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(53,197,106,0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(239,61,78,0.22), transparent 50%);
  pointer-events: none;
}
.match-banner-inner {
  position: relative;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.match-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.match-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 61, 78, 0.16);
  color: var(--accent-red);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.match-live-tag .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: pulseDot 1.4s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(239,61,78,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(239,61,78,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,61,78,0); }
}
.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 800;
  padding: 4px 0;
}
.match-teams .vs {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  background: var(--bg-2);
  border-radius: var(--radius-full);
  padding: 4px 9px;
}
.match-meta {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.match-banner-note {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
}
.match-special-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 2px;
}
.match-special-pill {
  flex: 0 0 auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.match-special-pill b { color: var(--accent-gold); }

/* --- Kategori Sekmeleri (sticky) --- */
.category-tabs-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--bg-0);
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.category-tabs {
  gap: 8px;
  padding: 0 var(--safe-x);
}
.category-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.category-tab.active {
  background: var(--gradient-flame);
  color: #1a0e06;
  border-color: transparent;
}

/* --- Ürün Listesi --- */
.menu-section {
  padding: 22px var(--safe-x) 4px;
  scroll-margin-top: 130px;
}
.menu-section-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 4px;
}
.menu-section-count {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.featured-scroll {
  gap: 12px;
  padding: 14px 0 6px;
  margin: 0 calc(var(--safe-x) * -1);
  padding-left: var(--safe-x);
  padding-right: var(--safe-x);
}
.featured-card {
  flex: 0 0 auto;
  width: 62vw;
  max-width: 240px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.featured-card .img-wrap {
  height: 130px;
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}
.featured-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.featured-card .img-wrap .no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; opacity: 0.35;
}
.featured-card .content { padding: 12px 14px 14px; }
.featured-card .name { font-weight: 700; font-size: 14.5px; margin: 0 0 4px; }
.featured-card .price { color: var(--accent-gold); font-weight: 800; font-size: 15px; }

.product-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.product-card {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  align-items: center;
}
.product-card .thumb {
  width: 84px; height: 84px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .no-img { font-size: 26px; opacity: 0.35; }
.product-card .info { flex: 1; min-width: 0; }
.product-card .name {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.product-card .desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.product-card .price { font-weight: 800; color: var(--accent-gold); font-size: 15px; }
.product-card .price.old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 600;
  font-size: 13px;
  margin-right: 4px;
}
.add-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gradient-flame);
  border: none;
  color: #1a0e06;
  font-size: 19px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(255,90,31,0.3);
}
.add-btn:active { transform: scale(0.9); }

/* --- Nargile Kategorisi Özel --- */
.hookah-card {
  background: linear-gradient(160deg, #201a2c 0%, #17131f 100%);
  border: 1px solid rgba(140, 122, 230, 0.28);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 12px;
}
.hookah-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.hookah-card-head .name { font-weight: 800; font-size: 16.5px; }
.hookah-card-head .desc { font-size: 12.5px; color: var(--text-secondary); margin-top: 3px; }
.hookah-card-head .price { color: var(--accent-gold); font-weight: 800; font-size: 16px; white-space: nowrap; }

.flavor-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-smoke);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 10px 0 8px;
}
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.flavor-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 12.5px;
  font-weight: 600;
}
.flavor-chip input { accent-color: var(--accent-smoke); }
.intensity-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.intensity-hafif { background: var(--accent-green); }
.intensity-orta { background: var(--accent-gold); }
.intensity-sert { background: var(--accent-red); }

.pairing-box {
  margin-top: 12px;
  background: rgba(140, 122, 230, 0.08);
  border: 1px dashed rgba(140, 122, 230, 0.35);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  display: none;
}
.pairing-box.show { display: block; }
.pairing-box b { color: var(--accent-smoke); }

.hookah-actions { display: flex; justify-content: flex-end; margin-top: 14px; }

/* --- Hızlı İşlem FAB --- */
.fab-quick {
  position: fixed;
  right: var(--safe-x);
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 150;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gradient-flame);
  border: none;
  box-shadow: var(--shadow-float);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.fab-quick:active { transform: scale(0.92); }
.fab-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent-red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  min-width: 19px; height: 19px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-0);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13.5px;
  text-align: center;
}
.quick-action-btn .icon { font-size: 28px; }
.quick-action-btn:active { transform: scale(0.96); background: var(--bg-3); }
.quick-action-btn.pending {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.quick-action-btn.loading .icon { animation: spin 0.8s linear infinite; }

/* --- Hesap / Bill Sheet --- */
.bill-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  text-align: left;
}
.bill-option-btn .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex: 0 0 auto;
}
.bill-option-btn .title { font-weight: 700; font-size: 14.5px; }
.bill-option-btn .sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.bill-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.bill-item-row:last-child { border-bottom: none; }
.bill-item-row .check {
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 2px solid var(--border-strong);
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: transparent;
}
.bill-item-row.checked .check {
  background: var(--accent-flame);
  border-color: var(--accent-flame);
  color: #1a0e06;
}
.bill-item-row .name { font-weight: 700; font-size: 14px; }
.bill-item-row .meta { font-size: 12px; color: var(--text-muted); }
.bill-item-row .qty-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.qty-stepper button {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 700;
}
.qty-stepper span { min-width: 16px; text-align: center; font-weight: 700; font-size: 13px; }
.bill-item-row .line-price { font-weight: 800; font-size: 14px; color: var(--accent-gold); min-width: 64px; text-align: right; }

.bill-summary-bar {
  position: sticky;
  bottom: 0;
  background: var(--bg-1);
  padding-top: 14px;
  margin-top: 6px;
}
.bill-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
.bill-total-row .amount { font-size: 22px; color: var(--accent-gold); font-weight: 800; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 40px; margin-bottom: 10px; }

/* --- Sepet Bar (opsiyonel sipariş akışı) --- */
.cart-bar {
  position: fixed;
  left: var(--safe-x); right: calc(var(--safe-x) + 74px);
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 140;
  background: var(--gradient-flame);
  color: #1a0e06;
  border-radius: var(--radius-full);
  padding: 14px 18px;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-float);
  font-weight: 800;
  font-size: 14px;
}
.cart-bar.show { display: flex; }

/* --- Responsive --- */
@media (min-width: 640px) {
  :root { --safe-x: 8vw; }
  .flavor-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  :root { --safe-x: max(5vw, calc((100vw - 640px) / 2)); }
}
