/* =============== GENEL =============== */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
  background-color: #fafafa;
}

/* Sabit arka plan */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('assets/bg-menu.jpg') no-repeat center center;
  background-size: cover;
  z-index: -1;
  filter: brightness(0.7) blur(2px);
}

/* =============== ÜST MENÜ (STICKY) =============== */
#topbar {
  background: rgba(117,111,97,0.85); /* RAL 7006 */
  backdrop-filter: blur(6px);
  border-bottom: 2px solid rgba(117,111,97,0.4);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  animation: slideDown 0.5s ease;
}

/* =============== ANA KATEGORİLER =============== */
.main-cats {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  padding: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.main-cats::-webkit-scrollbar { display: none; }

.main-cats .cat {
  flex: 0 0 120px;
  text-align: center;
}

.main-cats .cat a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(117,111,97,0.3);
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.main-cats .cat a svg {
  width: 28px;
  height: 28px;
  color: #756F61;
  transition: transform 0.3s ease, color 0.3s ease;
}

.main-cats .cat a:hover {
  background: #756F61;
  color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}
.main-cats .cat a:hover svg {
  color: #fff;
  transform: scale(1.2);
}

/* =============== ÜRÜN KARTI (masaüstü, fiyat şeritli) =============== */
.item {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.75);
  border-radius: 12px;
  border: 1px solid rgba(117,111,97,0.25);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  padding: 12px 80px 12px 12px; /* sağda fiyat şeridi için boşluk */
  margin-bottom: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  animation: fadeUp 0.6s forwards;
  opacity: 0;
}
.item:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* sol görsel */
.item img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 14px;
  transition: transform 0.3s ease;
}
.item:hover img { transform: scale(1.05); }

/* orta bilgi bloğu */
.item .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.item .name {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: #222;
}
.item .desc {
  font-size: 13px;
  font-style: italic;
  color: #666;
}
.item .details {
  font-size: 12px;
  color: #777;
}
.item .allergen { color: #e53935; margin-right: 6px; }
.item .cal { color: #009688; }

/* sağdaki fiyat şeridi */
.item .prices {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.price-try {
  background: #756F61;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 3px 6px rgba(117,111,97,0.4);
}

.price-usd,
.price-eur {
  background: rgba(117,111,97,0.1);
  color: #444;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  text-align: right;
}

/* =============== BAŞLIKLAR =============== */
h2 {
  margin: 16px 0;
  padding: 8px;
  background: linear-gradient(90deg, #756F61, #a1988b);
  color: #fff;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 18px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(117,111,97,0.3);
}

/* =============== ANİMASYONLAR =============== */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.item:nth-child(1){animation-delay:.1s}
.item:nth-child(2){animation-delay:.2s}
.item:nth-child(3){animation-delay:.3s}
.item:nth-child(4){animation-delay:.4s}
.item:nth-child(5){animation-delay:.5s}

/* =============== MOBİL UYUM =============== */
@media (max-width: 767px) {
  .item {
    flex-direction: row;     
    align-items: center;
    text-align: left;
    padding: 10px;
    min-height: 80px;
  }

  .item img {
    margin: 0 14px 0 0;      
    width: 80px;
    height: 80px;
    border-radius: 10px;
  }

  .item .info {
    align-items: flex-start;
  }

  .item .prices {
    position: absolute;      
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    margin-top: 0;
    align-items: flex-end;
  }
}

/* =============== FOOTER =============== */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  color: #555;
  font-size: 12px;
  text-align: center;
  padding: 10px 12px;
  z-index: 1000;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

/* =============== POPUP MODAL =============== */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal img {
  width: 90vw;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.modal img:hover {
  transform: scale(1.02);
}

.modal .close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}
