:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --accent: #68b984;
  --accent-soft: #e7f7ee;
  --accent-strong: #2f855a;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --danger: #ef4444;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top left, #fdfdfd 0, #f6f7fb 40%, #eef2ff 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.app {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 18px 18px 90px;
}

.screen.is-active {
  display: block;
}

/* Ana ekran header */

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.4);
}

.logo-dot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fef3c7 0, #f97316 40%, #b45309 100%);
  overflow: hidden;
}

/* Firma logosu varsa kullanılsın */
.logo-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* Logo geldiğinde arka planı nötrle */
.logo-dot-has-img {
  background: #f3f4f6;
}

.brand-texts {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 14px;
}

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

/* Pill buttons */

.btn-pill {
  border-radius: 999px;
  border: none;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.btn-garson {
  background: #111827;
  color: #f9fafb;
}

.dot-online {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

/* Hero */

.hero {
  margin-top: 6px;
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #fefce8 0, #f5f3ff 40%, #e0f2fe 100%);
  padding: 18px 18px 16px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
  box-shadow: var(--shadow-soft);
  position: relative;      /* EKLENDİ */
  overflow: hidden;        /* taşma olmasın */
}

.hero-text {
  position: relative;
  z-index: 2;
  padding-right: 72px;  /* resmin altına girmesin diye sağdan boşluk */
}

.hero-text h1 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-text p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.hero-image {
  position: relative;
  height: 110px;
}

/* Arka plandaki renkli halka */
.hero-circle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fef3c7 0, #f97316 35%, #22c55e 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

/* Kampanya görseli (logo alanından) */
.hero-photo {
  position: absolute;
  right: -4px;
  bottom: -6px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
}

/* Search */

.home-search {
  margin-top: 14px;
  margin-bottom: 8px;
}

.searchbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.searchbox .icon {
  width: 18px;
  height: 18px;
  color: #9ca3af;
}

.searchbox input[type="search"] {
  border: none;
  outline: none;
  flex: 1;
  font-size: 13px;
  background: transparent;
}

.searchbox .clear {
  border: none;
  background: none;
  font-size: 18px;
  color: #9ca3af;
  cursor: pointer;
}

/* Tabs */

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

.tab {
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}

.tab.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

/* Chips */

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 8px;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  background: #ffffff;
  white-space: nowrap;
  cursor: pointer;
}

.chip.is-active {
  border-color: transparent;
  background: #111827;
  color: #f9fafb;
}

/* Products */

.products-section {
  margin-top: 6px;
}

.products-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.products-title .title-top {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.products-title .title-sub {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.btn-cart-icon {
  position: relative;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #f97316;
  color: #ffffff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.pc-image {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}

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

.pc-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pc-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.pc-desc {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.pc-title,
.pc-desc {
  word-break: break-word;
}

.pc-desc {
  display: -webkit-box;
  -webkit-line-clamp: 20;        /* max 2 satır */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-price-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pc-price {
  font-size: 14px;
  font-weight: 600;
}

.pc-add {
  border: none;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.pc-add .plus {
  font-size: 18px;
}

/* Bottom cart */

.bottom-cart {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  padding: 10px 18px;
  font-size: 13px;
  background: #111827;
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
}

.bottom-cart-total {
  font-weight: 700;
}

/* Page header */

.page-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.back-btn {
  border-radius: 999px;
  border: none;
  width: 32px;
  height: 32px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.page-title {
  font-weight: 700;
  font-size: 16px;
}

/* Cart */

.cart-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.cart-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-name {
  font-size: 13px;
  font-weight: 600;
}

.cart-line-price {
  font-size: 13px;
  font-weight: 600;
}

.cart-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn {
  border-radius: 999px;
  border: none;
  width: 26px;
  height: 26px;
  background: #f3f4f6;
  cursor: pointer;
}

.cart-qty {
  font-size: 13px;
}

.cart-del {
  margin-left: auto;
  border-radius: 999px;
  border: none;
  width: 30px;
  height: 30px;
  background: #fee2e2;
  color: #b91c1c;
  cursor: pointer;
}

/* Cart extra */

.cart-extra {
  padding: 10px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

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

.field select,
.field textarea {
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
}

/* Cart footer */

.cart-footer {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  max-width: 480px;
  width: calc(100% - 32px);
  border-radius: 20px;
  padding: 10px 14px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.cart-total-row strong {
  font-size: 15px;
}

.btn-primary {
  width: 100%;
  border-radius: 14px;
  border: none;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
}

/* Product detail */

.product-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-image-wrap {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.pd-image-circle {
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-image-circle img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 999px;
}

.pd-body {
  margin-top: 16px;
}

.pd-body h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.pd-tagline {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
}

.pd-section {
  margin-bottom: 14px;
}

.pd-section h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.pd-section p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.nutrition {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nut-card {
  padding: 8px 10px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nut-label {
  font-size: 11px;
  color: var(--muted);
}

.nut-value {
  font-size: 16px;
  font-weight: 700;
}

.nut-unit {
  font-size: 11px;
  color: var(--muted);
}

.pd-story {
  font-size: 12px;
  color: var(--muted);
}

/* Product bottom bar */

.pd-bottom {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  max-width: 480px;
  width: calc(100% - 32px);
  border-radius: 20px;
  padding: 10px 14px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 8px;
  align-items: center;
}

.pd-price-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pd-price-label {
  font-size: 11px;
  color: var(--muted);
}

.pd-price {
  font-size: 15px;
  font-weight: 700;
}

.pd-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.pd-qty input {
  width: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 6px 0;
  text-align: center;
  font-size: 13px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
}

.toast-inner {
  pointer-events: auto;
  background: #111827;
  color: #f9fafb;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible .toast-inner {
  opacity: 1;
  transform: translateY(0);
}

/* Small helpers */

.empty-state {
  padding: 12px 4px;
  font-size: 12px;
  color: var(--muted);
}

/* Desktop alignment */

@media (min-width: 768px) {
  .app {
    margin-top: 20px;
  }
}



/* Sticky group bar (tabs + chips) */
.sticky-groups {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 4px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  background: radial-gradient(circle at top left, #fdfdfd 0, #f6f7fb 40%, #eef2ff 100%);
}

/* Hero slider: multi campaign cards */
.hero-slider {
  margin-top: 6px;
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.hero-slider .hero {
  margin: 0;
  min-width: 88%;
}

/* Cart + filter actions on products header */
.products-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  border-radius: 999px;
  border: none;
  width: 32px;
  height: 32px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  font-size: 16px;
}

/* Berk Yazılım splash screen (pure CSS, no JS) */
.splash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  color: #f9fafb;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #111827 100%);
  opacity: 1;
  animation: splashFade 1.4s ease-out 0.6s forwards;
}

.splash-inner {
  text-align: center;
  padding: 24px 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.08));
  backdrop-filter: blur(18px);
}

.splash-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.splash-sub {
  margin: 0;
  font-size: 12px;
  opacity: 0.85;
}

@keyframes splashFade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}



/* Header: Berk Caffe + masa/bölüm pill'leri */
.home-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 11px;
}

.meta-icon {
  font-size: 12px;
}

.meta-text {
  white-space: nowrap;
}

/* Ürün kartında grup adı */
.pc-group {
  margin-top: -2px;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--muted);
}

/* Filtre modal (bottom sheet) */
.filter-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.filter-modal.is-visible {
  pointer-events: auto;
  opacity: 1;
}

.filter-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
}

.filter-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #f9fafb;
  border-radius: 18px 18px 0 0;
  padding: 14px 16px 16px;
  box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.35);
  transform: translateY(100%);
  transition: transform 0.22s ease-out;
}

.filter-modal.is-visible .filter-panel {
  transform: translateY(0);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.filter-close {
  border-radius: 999px;
  border: none;
  width: 28px;
  height: 28px;
  background: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.filter-body {
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
  margin-bottom: 10px;
}

.filter-group-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}

.filter-group-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.filter-footer {
  display: flex;
  gap: 8px;
}

.btn-secondary {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 13px;
  padding: 8px 10px;
  cursor: pointer;
}

/* Filtrelenmiş tab/chip gizleme */
.is-filtered-out {
  display: none !important;
}



/* Filtre seçimi özeti */
.filter-summary {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.filter-summary.is-active {
  color: var(--accent-text, #16a34a);
}

/* Yukarı çık butonu */
.scroll-top-btn {
  position: fixed;
  right: 16px;
  bottom: 80px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  z-index: 35;
}

.scroll-top-btn.is-visible {
  display: flex;
}



/* Üst grup sekmelerinde yuvarlak ikonlar */
#main-tabs .tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#main-tabs .tab-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* görsel taşmasın */
}

/* Grup resmi geldiğinde */
#main-tabs .tab-icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* Emoji kalırsa biraz büyük olsun */
#main-tabs .tab-icon-emoji {
  font-size: 18px;
}


