/* =============== GENEL =============== */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
  background: linear-gradient(135deg, #756F61 0%, #a1988b 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Arka plan */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('assets/bg-menu.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: blur(3px);
  z-index: -1;
}

/* =============== ÜST MENÜ (STICKY) =============== */
#topbar {
  background: rgba(117,111,97,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  animation: slideDown 0.6s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* =============== ANA KATEGORİLER (main-cats) =============== */
.main-cats {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 18px;
  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: 16px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(117,111,97,0.3);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  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 20px rgba(0,0,0,0.25);
}
.main-cats .cat a:hover svg { color: #fff; transform: scale(1.15); }

/* =============== ÜRÜN KARTI =============== */
.item {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.8);
  border-radius: 14px;
  border: 1px solid rgba(117,111,97,0.25);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 14px;
  margin-bottom: 16px;
  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.95);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.item img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: 16px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.item:hover img {
  transform: scale(1.08);
  filter: brightness(1.1) saturate(1.1);
}

/* =============== INFO BLOKU =============== */
.item .info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.item .name {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #222;
}
.item .desc { font-size: 14px; font-style: italic; color: #555; }
.item .details { font-size: 12px; color: #666; }
.item .allergen { color: #e53935; margin-right: 6px; }
.item .cal { color: #009688; }

/* =============== FİYAT BLOĞU =============== */
.prices {
  margin-top: 6px;
  text-align: center;
}
.price-try {
  display: inline-block;
  background: #756F61;
  color: #fff;
  padding: 6px 14px;
  border-radius: 22px;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 3px 8px rgba(117,111,97,0.4);
}
.price-usd,
.price-eur {
  display: inline-block;
  background: rgba(117,111,97,0.1);
  color: #333;
  padding: 3px 10px;
  margin-top: 4px;
  border-radius: 12px;
  font-size: 13px;
}

/* =============== BAŞLIKLAR =============== */
h2 {
  margin: 18px 0;
  padding: 10px;
  background: linear-gradient(90deg, #756F61, #a1988b);
  color: #fff;
  border-radius: 10px;
  text-transform: uppercase;
  font-size: 20px;
  text-align: center;
  letter-spacing: 1px;
  box-shadow: 0 6px 16px rgba(117,111,97,0.5);
  position: relative;
}
h2::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(255,255,255,0.8);
}

/* =============== ANİMASYONLAR =============== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { 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}

/* =============== POPUP MODAL =============== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  animation: modalFade .4s ease;
}
.modal img {
  width: 90vw;
  max-width: 500px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.modal img:hover {
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.1);
}
.modal .close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  transition: transform 0.2s ease;
}
.modal .close:hover { transform: scale(1.2) rotate(90deg); color: #ff5252; }

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
/* === FİYAT ŞERİDİ DÜZELTME (sağda, dikey, ortalanmış) === */
.item {
  position: relative;                         /* sağ şerit için referans */
  padding: 14px 120px 14px 14px !important;   /* sağda şeride yer aç */
}

.item .info {
  min-width: 0;                               /* taşmayı önle */
}

/* Sağdaki fiyat bloğu sabit konumda, dikey diz */
.item .prices {
  position: absolute !important;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  margin-top: 0 !important;                   /* önceki kuralı bastır */
}

/* Rozetlerin görünümü (senin stillerin korunuyor, sadece garantiye alıyoruz) */
.item .price-try {
  display: inline-block;
}
.item .price-usd,
.item .price-eur {
  display: inline-block;
}

/* Mobil düzeltme: biraz daha dar sağ boşluk ve min yükseklik */
@media (max-width: 767px) {
  .item {
    padding: 12px 110px 12px 12px !important;
    min-height: 96px;
  }
  .item .prices {
    right: 12px;
  }
}
/* === Modal görsel boyutu === */
.modal img {
  aspect-ratio: 1/1;        /* kare form */
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Masaüstü: ekranın %25'i */
@media (min-width: 768px) {
  .modal img {
    width: 25vw;            /* ekranın %25’i */
    max-width: 400px;       /* çok dev olmasın */
  }
}

/* Mobil: ekranın %90’ı */
@media (max-width: 767px) {
  .modal img {
    width: 90vw;
    max-width: 90vw;
  }
}
