/* Coffee de Madrid Tepe Prime - Dijital Menu Stilleri */
:root {
  --blue-950: #081c46;
  --blue-900: #0c2d6b;
  --blue-800: #124096;
  --blue-700: #1752bd;
  --blue-600: #1d63dc;
  --blue-100: #dceaff;
  --blue-50: #f2f7ff;
  --white: #ffffff;
  --bg-page: #f5f8fc;
  --text-main: #0f1f3d;
  --text-muted: #556785;
  --border-soft: #dce5f2;
  --shadow-sm: 0 4px 14px rgba(12, 45, 107, 0.06);
  --shadow-md: 0 12px 28px rgba(12, 45, 107, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* Ust Header */
.top-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 16px;
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.back-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-50);
  color: var(--blue-800);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.back-btn:hover {
  background: var(--blue-100);
}

.back-btn:active {
  transform: scale(0.97);
}

.brand-box {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.header-logo {
  height: 34px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.header-spacer {
  grid-column: 3;
}

/* Ana Konteyner */
.main-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

/* Ana Ekran Karsilama Logosu */
.hero-logo-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 22px;
  background: linear-gradient(180deg, #0b2558 0%, #123882 100%);
  border: 1px solid var(--blue-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.hero-logo {
  width: 230px;
  max-width: 65vw;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.hero-badge {
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-100);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
}

.hero-scroll-hint {
  margin-top: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

/* Bolum Basliklari */
.section-intro {
  margin: 22px 0 14px;
}

.section-intro h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue-950);
}

.section-intro p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Kategori Kartlari */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-600);
}

.category-card img {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.category-card-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.category-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-900);
}

.category-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.category-arrow {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-600);
}

/* Kategori Detay Gorunumu */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0 10px;
}

.category-header {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.category-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

.category-header p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 4px;
}

/* Arama Kutusu */
.search-box {
  margin-bottom: 18px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(29, 99, 220, 0.14);
}

/* Alt Baslik Gruplari */
.subcategory-group {
  margin-bottom: 24px;
}

.subcategory-heading {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--blue-900);
  background: var(--blue-50);
  border-left: 4px solid var(--blue-600);
  padding: 9px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* Urun Kartlari */
.product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.product-card {
  display: flex;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-600);
}

.product-thumb {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--blue-950);
  line-height: 1.3;
}

.product-price {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--blue-700);
  white-space: nowrap;
  flex-shrink: 0;
}

.product-short-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kcal-pill {
  background: var(--blue-50);
  color: var(--blue-800);
  border: 1px solid var(--blue-100);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.detail-hint {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-600);
  white-space: nowrap;
}

/* Besin Degerleri Modali */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 28, 70, 0.58);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-950);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.modal-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.modal-body {
  padding: 18px 20px 22px;
}

.modal-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.modal-tag {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 3px 10px;
  border-radius: 999px;
}

.modal-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-900);
}

.modal-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--blue-950);
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.portion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--blue-900);
}

.nutrition-box {
  margin-top: 16px;
}

.nutrition-box h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--blue-950);
  margin-bottom: 10px;
}

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

.nutri-item {
  background: var(--bg-page);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nutri-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.nutri-value {
  font-size: 1rem;
  color: var(--blue-900);
  font-weight: 800;
}

.allergen-box {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fff8eb;
  border: 1px solid #fde3b0;
  color: #7c4a03;
  font-size: 0.82rem;
}

@media (min-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .subcategory-group .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
