:root {
  --primary-color: #50c9bd;
  --bg-main: #0f0f0f;
  --bg-card: #1a1a1a;
  --text-white: #ffffff;
  --text-muted: #a0a0a0;
  --header-bg: rgba(15, 15, 15, 0.95);
  --border-color: rgba(255, 255, 255, 0.05);
  --input-bg: #1a1a1a;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
  --primary-color: #a62639;
  /* Aydınlık mod için QR ve vurgu rengi (Bordo) */
  --bg-main: #f5f5f7;
  --bg-card: #ffffff;
  --text-white: #1a1a1a;
  --text-muted: #666666;
  --header-bg: rgba(245, 245, 247, 0.95);
  --border-color: rgba(0, 0, 0, 0.08);
  --input-bg: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  padding: 2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 1.5rem;
  min-height: 40px;
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-white);
}

.theme-toggle:hover {
  background: var(--primary-color);
  color: var(--bg-main);
  transform: translateY(-50%) scale(1.05);
}

.theme-toggle svg,
.about-button svg {
  width: 20px;
  height: 20px;
}

/* About Button */
.about-button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-white);
}

.about-button:hover {
  background: var(--primary-color);
  color: var(--bg-main);
  transform: translateY(-50%) scale(1.05);
}

/* BRAND WRAPPER & LOGO DÜZENLEMELERİ */
.brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: auto;
  object-fit: contain;
  transition: var(--transition);
  filter: brightness(0) invert(1);
}

body:not(.light-mode) .brand-logo {
  filter: brightness(0) invert(1);
}

body.light-mode .brand-logo {
  filter: brightness(0);
}

.brand-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin: 0;
}

/* QR Yazısının Temaya Göre Değişmesi */
.brand-title .highlight {
  color: var(--primary-color);
  transition: color 0.3s ease;
  /* Tema değişirken yumuşak bir renk geçişi sağlar */
}

/* Search Bar */
.search-bar {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-bar input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  padding: 0.8rem 1rem 0.8rem 3rem;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(166, 38, 57, 0.1);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

/* Categories */
.categories {
  padding: 1.5rem 0;
  background: var(--bg-main);
}

.tabs {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  justify-content: center;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 0.6rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.tab.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(166, 38, 57, 0.3);
}

body:not(.light-mode) .tab.active {
  color: var(--bg-main);
}

/* Product Grid */
.menu-content {
  padding: 2rem 0 5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  animation: fadeIn 0.5s ease backwards;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body:not(.light-mode) .product-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image {
  scale: 1.1;
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  color: var(--text-white);
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.product-footer:last-child {
  margin-bottom: 0;
}

.product-footer a {

  color: var(--text-muted);
  font-size: 1rem;
}

.product-footer h3 {
  font-family: "Playfair", serif;

}

.baslik-porsiyon {
  font-family: 'Playfair', serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--text-white);
  margin-bottom: 5px;
}

.product-price {
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--primary-color);
}

/* Footer */
.footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  width: 100%;
  max-width: 500px;
  border-radius: 2rem;
  position: relative;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-title {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 500;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-white);
  font-size: 1rem;
}

.info-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.map-container {
  width: 100%;
  height: 200px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.map-container iframe {
  width: 100%;
  height: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .brand-title {
    font-size: 1.8rem;
  }

  .tabs {
    justify-content: flex-start;
    padding-left: 1rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .theme-toggle {
    padding: 6px;
    border-radius: 10px;
  }


}