@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Montserrat:wght@700&family=Quicksand:wght@400;700&display=swap');

body {

/* Kategori detayında iki sütun arası boşluk */
.two-column-layout {
  display: flex;
  gap: 28px;
}

/* Kategori detayındaki sağ sütun resim kutusu ve görseli */
.category-image-container {
  width: 120px;
  height: 120px;
  margin-bottom: 35px;
  border-radius: 14px;
  overflow: hidden;
  background: #fafafa;
  box-shadow: 0 2px 12px #eee5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.images-column {
  padding-right: 20px;
}
.category-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-right: 0px; /* sağdan boşluk */
}

  font-family: 'Quicksand', Arial, sans-serif;
  background: #fff url('/static/uploads/pide_bg.jpg') center center/cover no-repeat fixed;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-attachment: fixed;
}
.menu-container {
  max-width: 440px;
  width: 95%;
  margin: 38px auto 28px auto;
  background: rgba(255,255,255,0.95);
  border-radius: 28px;
  box-shadow: 0 6px 36px #eee, 0 2px 0 #fff6;
  border: 2px solid #eee;
  overflow: hidden;
  transition: box-shadow 0.3s, border 0.3s;
  position: relative;
}
.menu-header {
  background: #fff;
  padding: 26px 0 12px 36px;
  color: #111;
  font-size: 2.1rem;
  font-family: 'Pacifico', cursive, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 2.5px;
  border-bottom: 2px solid #eee;
  box-shadow: 0 2px 8px #eee2;
  text-shadow: 0 1px 1px rgba(255,255,255,0.5);
  background-clip: padding-box;
  position: relative;
  z-index: 1;
  animation: menuHeaderFadeIn 1.1s cubic-bezier(.25,1.3,.6,1) 0.1s both;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.menu-header:hover {
  animation: menuHeaderWobble 0.7s cubic-bezier(.25,1.3,.6,1) both;
}
@keyframes menuHeaderWobble {
  0%   { transform: scale(1) rotate(0deg); }
  20%  { transform: scale(1.08) rotate(-3deg); }
  40%  { transform: scale(0.98) rotate(2deg); }
  60%  { transform: scale(1.06) rotate(-2deg); }
  80%  { transform: scale(1.01) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes menuHeaderFadeIn {
  from { opacity: 0; transform: translateY(-40px) scale(0.92) skewY(-3deg); }
  to   { opacity: 1; transform: none; }
}
.menu-section {
  padding: 28px 32px 0 32px;
  position: relative;
  z-index: 1;
}
.menu-section-title {
  color: #111;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  margin-top: 28px;
  margin-bottom: 14px;
  letter-spacing: 1px;
  border-bottom: 2px solid #eee;
  padding-bottom: 4px;
  background: #fff;
  border-radius: 7px 7px 0 0;
  box-shadow: 0 2px 10px #eee1;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  animation: sectionTitlePop 1s cubic-bezier(.25,1.3,.6,1) 0.35s both;
  cursor: pointer;
}
.menu-section-title:hover {
  animation: sectionTitlePulse 0.5s cubic-bezier(.25,1.3,.6,1) both;
  background: #fafafa;
}
@keyframes sectionTitlePulse {
  0%   { transform: scale(1) rotate(0deg); }
  40%  { transform: scale(1.08) rotate(-2deg); }
  60%  { transform: scale(0.96) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes sectionTitlePop {
  from { opacity: 0; transform: scale(0.7) rotate(-6deg); }
  to   { opacity: 1; transform: none; }
}
.menu-section-title[data-category="Kebaplar"]:before { content: '\1F969'; }
.menu-section-title[data-category="Tatlılar"]:before { content: '\1F370'; }
.menu-section-title[data-category="İçecekler"]:before { content: '\1F964'; }
.menu-section-title:before { content: '\1F37D'; }
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 12px 0;
  border-bottom: 2px dashed #eee;
  background: #fff;
  border-radius: 12px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.8s cubic-bezier(.25,1.3,.6,1) both;
  box-shadow: 0 2px 10px #eee1;
  gap: 0;
  cursor: pointer;
}
.menu-item-row:hover {
  background: #fafafa;
  box-shadow: 0 12px 32px #eee4, 0 2px 0 #fff6;
  transform: scale(1.03) translateY(-2px) rotate(-1deg);
  animation: itemRowShake 0.6s cubic-bezier(.25,1.3,.6,1) both;
}
@keyframes itemRowShake {
  0%   { transform: scale(1.03) translateY(-2px) rotate(-1deg); }
  25%  { transform: scale(1.07) translateY(-6px) rotate(2deg); }
  50%  { transform: scale(0.98) translateY(2px) rotate(-2deg); }
  75%  { transform: scale(1.04) translateY(-4px) rotate(1deg); }
  100% { transform: scale(1.03) translateY(-2px) rotate(-1deg); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.menu-item-info {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1;
  min-width: 0;
  align-items: center;
  justify-content: center;
}
.menu-item-name {
  font-size: 0.97rem;
  color: #111;
  font-weight: 700;
  letter-spacing: 0.12px;
  text-shadow: 0 1px 0 #fff8;
  font-family: 'Quicksand', Arial, sans-serif;
  transition: color 0.2s, text-shadow 0.2s;
  text-align: center;
  width: 100%;
}
.menu-item-row:hover .menu-item-name {
  color: #111;
  text-shadow: 0 2px 8px #eee4;
}
.menu-item-price {
  flex: 0 0 auto;
  margin-left: 18px;
  margin-right: 18px;
  display: flex;
  align-items: center;
  color: #e53935;
  font-weight: bold;
  font-size: 1.01rem;
  white-space: nowrap;
  text-shadow: 0 1px 0 #fff8;
  font-family: 'Quicksand', Arial, sans-serif;
  background: #fff;
  border-radius: 8px;
  padding: 2px 10px;
  border: 1.5px solid #eee;
  box-shadow: 0 1px 3px #eee2, 0 0 10px #fff6;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  position: relative;
  z-index: 1;
  animation: priceFadeIn 1s cubic-bezier(.25,1.3,.6,1) 0.7s both;
  cursor: pointer;
}
.menu-item-row:hover .menu-item-price {
  background: #fafafa;
  box-shadow: 0 2px 14px #eee3, 0 0 18px #fff7;
  transform: scale(1.13) rotate(-7deg);
  animation: priceWobble 0.7s cubic-bezier(.25,1.3,.6,1) both;
}
@keyframes priceWobble {
  0%   { transform: scale(1.13) rotate(-7deg); }
  30%  { transform: scale(1.22) rotate(6deg); }
  60%  { transform: scale(0.97) rotate(-4deg); }
  100% { transform: scale(1.13) rotate(-7deg); }
}
@keyframes priceFadeIn {
  from { opacity: 0; transform: scale(0.8) rotate(8deg); }
  to   { opacity: 1; transform: none; }
}
.menu-img-thumb {
  flex: 0 0 auto;
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 13px;
  margin-left: 0;
  border: 2px solid #eee;
  background: #fff;
  box-shadow: 0 2px 12px #eee3, 0 0px 0px #fff0;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  z-index: 2;
  filter: brightness(0.98) saturate(1.1);
  animation: imgPop 1s cubic-bezier(.25,1.3,.6,1) 0.5s both;
  cursor: pointer;
}
.menu-img-thumb:hover {
  transform: scale(1.22) rotate(-6deg);
  box-shadow: 0 18px 44px #eee5, 0 2px 0 #fff6;
  filter: brightness(1.18) saturate(1.5);
  animation: imgWobble 0.8s cubic-bezier(.25,1.3,.6,1) both;
}
@keyframes imgWobble {
  0%   { transform: scale(1.22) rotate(-6deg); }
  30%  { transform: scale(1.32) rotate(7deg); }
  60%  { transform: scale(1.1) rotate(-3deg); }
  100% { transform: scale(1.22) rotate(-6deg); }
}
@keyframes imgPop {
  from { opacity: 0; transform: scale(0.8) rotate(-4deg); }
  to   { opacity: 1; transform: none; }
}
.menu-footer {
  text-align: center;
  color: #111;
  font-size: 1.13rem;
  margin: 22px 0 16px 0;
  letter-spacing: 0.7px;
  text-shadow: 0 1px 0 #fff8;
  font-family: 'Pacifico', cursive, Arial, sans-serif;
  background: #fff;
  border-radius: 0 0 14px 14px;
  padding: 10px 0 12px 0;
  box-shadow: 0 1px 8px #eee2, 0 0 40px #eee2;
  border-top: 2px dashed #eee;
  position: relative;
}
.menu-footer:after {
  content: '\1F60B';
  font-size: 1.5em;
  margin-left: 8px;
  vertical-align: middle;
  filter: drop-shadow(0 1px 0 #fff8);
}
@media (max-width: 500px) {
  .menu-container { 
    width: 95%; 
    max-width: 440px;
    margin: 20px auto;
    border-radius: 28px;
  }
  .menu-section { 
    padding: 28px 32px 0 32px; 
  }
  .menu-header { 
    font-size: 2.1rem; 
    padding: 26px 0 12px 36px; 
  }
  .menu-section-title { 
    font-size: 1.08rem; 
    margin-top: 28px; 
  }
  .menu-item-row { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
  }
  .menu-img-thumb { 
    width: 120px; 
    height: 90px; 
    margin-left: 0; 
  }
  .menu-item-price { 
    margin-left: 18px;
    margin-right: 18px;
    margin-top: 0;
  }
  .menu-item-name { 
    font-size: 0.97rem; 
  }
  .menu-item-price { 
    font-size: 1.01rem; 
  }
  
  /* Ürünün üzerine gelindiğinde sadece o ürünün animasyonunu göster, diğerlerini kaldır */
  .menu-section:hover .menu-item-row {
    animation: none;
    transform: none;
    transition: none;
  }
  
  .menu-section:hover .menu-item-row:hover {
    background: #fafafa;
    box-shadow: 0 12px 32px #eee4, 0 2px 0 #fff6;
    transform: scale(1.03) translateY(-2px) rotate(-1deg);
    animation: itemRowShake 0.6s cubic-bezier(.25,1.3,.6,1) both;
    transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  }
  
  .menu-section:hover .menu-item-row .menu-item-price {
    animation: none;
    transform: none;
    transition: none;
  }
  
  .menu-section:hover .menu-item-row:hover .menu-item-price {
    background: #fafafa;
    box-shadow: 0 2px 14px #eee3, 0 0 18px #fff7;
    transform: scale(1.13) rotate(-7deg);
    animation: priceWobble 0.7s cubic-bezier(.25,1.3,.6,1) both;
    transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  }
  
  .menu-section:hover .menu-item-row .menu-img-thumb {
    animation: none;
    transform: none;
    transition: none;
    filter: brightness(0.98) saturate(1.1);
  }
  
  .menu-section:hover .menu-item-row:hover .menu-img-thumb {
    transform: scale(1.22) rotate(-6deg);
    box-shadow: 0 18px 44px #eee5, 0 2px 0 #fff6;
    filter: brightness(1.18) saturate(1.5);
    animation: imgWobble 0.8s cubic-bezier(.25,1.3,.6,1) both;
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  }
}

/* Yeni menü düzeni için stiller */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
  animation: fadeIn 0.8s cubic-bezier(.25,1.3,.6,1) both;
}

.category-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  cursor: pointer;
  height: 200px;
  text-decoration: none;
  animation: fadeIn 0.8s cubic-bezier(.25,1.3,.6,1) both;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.category-card:hover .category-img {
  transform: scale(1.05);
}

.category-name {
  padding: 12px;
  font-weight: bold;
  font-size: 18px;
  color: #333;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: all 0.2s ease;
}

.category-card:hover .category-name {
  color: #e53935;
}

/* Kategori sayfası düzeni */
.two-column-layout {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .two-column-layout {
    flex-direction: row; /* Keep row direction even on mobile */
    gap: 10px; /* Reduce gap on mobile */
  }
  
  .products-column {
    flex: 3; /* Give more space to products on mobile */
  }
  
  .images-column {
    flex: 2; /* Ensure images are still visible */
  }
  
  .category-image {
    margin-bottom: 10px; /* Add spacing between images */
  }
  
  /* Adjust menu items to fit smaller space */
  .menu-item-name {
    font-size: 0.9rem;
  }
  
  .menu-item-price {
    font-size: 0.95rem;
    margin-left: 8px;
    margin-right: 8px;
  }
}

.products-column {
  flex: 2;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s cubic-bezier(.25,1.3,.6,1) both;
}

.images-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: fadeIn 0.8s cubic-bezier(.25,1.3,.6,1) 0.2s both;
}

.category-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeIn 0.8s cubic-bezier(.25,1.3,.6,1) both;
}

.category-image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.menu-item-desc {
  font-size: 0.91rem;
  color: #888;
  margin-top: 2px;
  line-height: 1.3;
  font-weight: 400;
  text-align: center;
}

/* Kategori başlığı */
.category-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
  animation: fadeIn 0.8s cubic-bezier(.25,1.3,.6,1) both;
}

.back-button {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: #e53935;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s cubic-bezier(.25,1.3,.6,1) both;
}

.back-button:hover {
  background-color: #c62828;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  margin: 10px 0 20px 0;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  box-sizing: border-box;
  box-shadow: 0 2px 10px #eee3;
  font-family: 'Quicksand', Arial, sans-serif;
}

.search-input:focus {
  outline: none;
  border-color: #e53935;
  box-shadow: 0 2px 14px #eee5;
}

.featured-section {
  margin-bottom: 24px;
}

.featured-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #e53935;
  margin-bottom: 12px;
  text-align: center;
}

.menu-img-thumb[src*="/static/placeholder.svg"] {
  object-fit: contain;
}
