/**
* Tema Adı: Dijital Menü
* Tema URL: https://www.ellibirajans.com
* Author: Ellibir Ajans - Sadullah AYDIN
*/

/*--------------------------------------------------------------
# Genel
--------------------------------------------------------------*/
 :root{
    --bg-nav:   #2B3A2E; /* derin zeytin yeşili */
    --bg-page:  #F6F1E7; /* sıcak parşömen */
    --accent:   #E3A23B; /* safran sarısı */
    --accent2:  #B5482A; /* yanık kiremit */
    --ink:      #221F1B; /* sıcak siyah */
    --muted:    #8B8470; /* sıcak gri */
    --card:     #FFFCF6; /* fildişi */
  }

  *{ margin:0; padding:0; box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
  }

  body{
    font-family:'DM Sans', sans-serif;
    background:var(--bg-page);
    color:var(--ink);
    line-height:1.5;
  }

  h1,h2,h3{ font-family:'Fraunces', serif; font-weight:600; }

  a:focus-visible, button:focus-visible{
    outline: 3px solid var(--accent2);
    outline-offset: 2px;
  }
  #ust-dis {
	width: 100%;
	background-color: #F6F1E7;
	padding-top: 10px;
	padding-bottom: 10px;

	position: relative;
}

#ust {
	margin: auto;
	position: relative;
	display: block;
}

#hlogo {
	width: 155px;
	margin-right: auto;
	margin-bottom: 0px;
	margin-left: auto;
}

#hlogo img {
	/* [disabled]max-width: 100%; */
	width: 100%;
}

  /* ---------- Kategori Menüsü ---------- */
  .cat-nav{
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-nav);
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
  }

  .cat-track{
    display:flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 14px 20px;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
  }
  .cat-track::-webkit-scrollbar{ display:none; }
  .cat-track.dragging{ cursor: grabbing; scroll-behavior: auto; }

  .cat-pill{
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(246,241,231,.25);
    background: transparent;
    color: var(--bg-page);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
  }
  .cat-pill:hover{ border-color: var(--accent); }
  .cat-pill.active{
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
    font-weight: 700;
    transform: translateY(-1px);
  }

/* ---- Masaüstünde ortala ---- */
@media (min-width: 992px) {
  .cat-nav {
    display: flex;
    justify-content: center;
  }

  .cat-track {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
  }
}

  /* ---------- Menü Bölümleri ---------- */
  .menu-section{
    padding: 48px 24px 64px;
    max-width: 1100px;
    margin: 0 auto;
    scroll-margin-top: 84px;
   
  }
  .menu-section h2{
    font-size: clamp(24px, 3.5vw, 34px);
    margin-bottom: 24px;
  }

  .items-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
  }

  .item-card{
    background: var(--card);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 24px rgba(34,31,27,.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .item-card .item-image-link{ display: block; }
  .item-card .item-image{
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 4px;
  }
  .item-card .item-head{
    display:flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
  }
  .item-card h3{ font-size: 19px; font-weight: 600; }
  .item-card p{ color: var(--muted); font-size: 14px; }

  .price-tag{
    flex: 0 0 auto;
    background: var(--accent2);
    color: var(--card);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 999px;
    position: relative;
    white-space: nowrap;
  }
  .price-tag::before{
    content:'';
    position:absolute;
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--card);
  }

  /* ---------- Yardımcı sınıflar ---------- */
  .container{
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
  }
  .text-center{ text-align: center; }
  .mt-3{ margin-top: 12px; }
  .me-2{ margin-right: 8px; }

  

  /* ---------- Footer ---------- */
  #footer{
    background: var(--bg-nav);
    color: var(--bg-page);
  }
  #footer .footer-top{
    padding: 40px 0 24px;
  }
  #footer h3{
    color: var(--bg-page);
    font-size: 22px;
  }
  .footer-social-links{
    display: flex;
    justify-content: center;
    gap: 14px;
  }
  .social-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(246,241,231,.25);
    color: var(--bg-page);
    font-size: 18px;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
  }
  .social-icon:hover{
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
    transform: translateY(-2px);
  }
  #footer .copyright{
    padding: 20px 0 28px;
    margin-top: 16px;
    border-top: 1px solid rgba(246,241,231,.12);
    font-size: 13px;
    color: rgba(246,241,231,.65);
  }
  #footer .copyright a{
    color: var(--accent);
    text-decoration: none;
  }
  #footer .copyright a:hover{ text-decoration: underline; }
  /* ── Footer Grid ── */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0 8px;
}

.footer-col {
  text-align: center;
}

.footer-col + .footer-col {
  border-left: 1px solid rgba(246,241,231,.12);
}

.footer-title {
  color: var(--bg-page);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.footer-title i {
  margin-right: 5px;
}

#footer p {
  color: rgba(246,241,231,.75);
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 4px;
}

.footer-link {
  color: rgba(246,241,231,.75);
  text-decoration: none;
  transition: color .2s;
}

.footer-link:hover {
  color: var(--accent);
}

/* ── Mobil ── */
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-col + .footer-col {
    border-left: none;
    border-top: 1px solid rgba(246,241,231,.12);
    padding-top: 24px;
    margin-top: 24px;
  }
}

/* ── Arama ── */
.search-bar-wrap {
  position: sticky;
  top: 0;
  z-index: 49;
  background: var(--bg-page);
  padding: 10px 16px;
  
}

.search-bar {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink);
  opacity: .4;
  font-size: 13px;
  pointer-events: none;
}

#menuSearch {
  width: 100%;
  padding: 9px 38px 9px 38px;
  border: 1.5px solid rgba(34,31,27,.15);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

#menuSearch:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(227,162,59,.15);
}

#menuSearch::placeholder {
  color: var(--muted);
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  padding: 4px;
  display: none;
  line-height: 1;
  transition: color .2s;
}

.search-clear:hover { color: var(--ink); }
.search-clear.visible { display: block; }

/* Sonuç yok mesajı */
.search-empty {
  display: none;
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 15px;
}

.search-empty.visible { display: block; }

.search-empty i {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
  opacity: .35;
}

/* Arama aktifken section başlıklarını gizle */
.search-active .menu-section > h2 {
  display: none;
}

/* Koyu mod */
[data-theme="dark"] #menuSearch {
  border-color: rgba(255,255,255,.12);
  background: var(--card);
}

[data-theme="dark"] .search-bar-wrap {
  border-bottom-color: rgba(255,255,255,.07);
}
  