@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: 130px;
}

/* --- Ü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-logo.brand-logo-img {
  background: #fff;
  padding: 4px;
}
.topbar .brand-logo-img img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.topbar .brand-name {
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.1;
}
.topbar .brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-toggle-btn {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.search-toggle-btn:active { transform: scale(0.92); }
.search-toggle-btn.active {
  background: var(--gradient-flame);
  color: #1a0e06;
  border-color: transparent;
}

/* --- Masaüstü Üst Navigasyon (Bottom Nav'ın 900px üzeri karşılığı) --- */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
.desktop-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: var(--radius-full);
  transition: background 0.15s ease, color 0.15s ease;
}
.desktop-nav-btn:hover, .desktop-nav-btn:active { background: var(--bg-2); color: var(--text-primary); }
.desktop-nav-btn .dn-icon { font-size: 16px; }

/* --- Kampanya Banner'ı --- */
.campaign-banner {
  margin: 14px var(--safe-x) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(120deg, #201a13 0%, #241d15 55%, #2c2116 100%);
  border: 1px solid rgba(255, 182, 72, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.campaign-banner:active { transform: scale(0.99); }
.campaign-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,182,72,0.18), transparent 50%);
  pointer-events: none;
}
.campaign-banner-inner {
  position: relative;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.campaign-banner-img {
  width: 72px; height: 72px;
  flex: 0 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-3);
}
.campaign-banner-img img { width: 100%; height: 100%; object-fit: cover; }
.campaign-banner-content { flex: 1; min-width: 0; }
.campaign-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 182, 72, 0.16);
  color: var(--accent-gold);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.campaign-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}
.campaign-product-name {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.campaign-price-row { display: flex; align-items: center; gap: 8px; }
.campaign-price-row .price { font-weight: 800; color: var(--accent-gold); font-size: 14px; }
.campaign-price-row .price.old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 600;
  font-size: 12.5px;
}
.campaign-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Ürün Arama --- */
.search-bar-wrap {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 var(--safe-x);
  transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
}
.search-bar-wrap.open {
  max-height: 70px;
  opacity: 1;
  padding: 14px var(--safe-x) 0;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 11px 14px;
}
.search-bar .search-icon { font-size: 15px; opacity: 0.7; flex: 0 0 auto; }
.search-bar input[type="search"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
}
.search-bar input[type="search"]::placeholder { color: var(--text-muted); }
.search-bar input[type="search"]::-webkit-search-cancel-button { display: none; }
.search-clear {
  background: var(--bg-3);
  border: none;
  color: var(--text-secondary);
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 11px;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}

/* --- 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;
}
/* --- 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-group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 12px 0 6px;
}
.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;
}
.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); }

/* --- Mobil Alt Navigasyon --- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  display: flex;
  background: rgba(18, 16, 22, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px var(--safe-x) max(8px, env(safe-area-inset-bottom));
  gap: 2px;
}
.bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 6px 2px 2px;
  border-radius: var(--radius-sm);
  position: relative;
}
.bottom-nav-btn:active { background: var(--bg-2); }
.bn-icon { font-size: 19px; line-height: 1; }
.bn-label { font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.bottom-nav-btn-main { justify-content: flex-start; }
.bottom-nav-btn-main .bn-icon {
  background: var(--gradient-flame);
  color: #1a0e06;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: -18px;
  box-shadow: var(--shadow-float);
  font-size: 18px;
}
/* --- Kategoriler Sheet --- */
.category-sheet-list { display: flex; flex-direction: column; gap: 8px; }
.category-sheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 700;
}
.category-sheet-item .count { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.category-sheet-item:active { background: var(--bg-3); }

/* --- Bilgi Sheet (WiFi + Duyuru) --- */
.info-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.info-block-announcement { border-color: rgba(255, 182, 72, 0.35); background: rgba(255, 182, 72, 0.07); }
.info-icon { font-size: 22px; flex: 0 0 auto; }
.info-label { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 3px; }
.info-value { font-size: 14px; color: var(--text-primary); white-space: pre-wrap; }

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

/* --- 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)); }

  /* Masaüstünde alt navigasyon ergonomik değil — üst navigasyona geçilir. */
  .bottom-nav { display: none; }
  .desktop-nav { display: flex; }
  .page { padding-bottom: 60px; }
}
