:root {
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --line:#e5e7eb;
  --primary:#111827;
  --accent:#f59e0b;
}
*{box-sizing:border-box}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}
img{max-width:100%}
.container{width:min(1180px,94%);margin:0 auto}
.topbar{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line)}
.topbar-inner{display:grid;grid-template-columns:60px 1fr 60px;align-items:center;height:72px}
.icon-btn{width:42px;height:42px;border:none;border-radius:12px;background:#f3f4f6;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:20px}
.logo{text-align:center;font-size:28px;font-weight:800;letter-spacing:.5px}
.logo span{color:var(--accent)}
.lang-menu,.side-menu{position:fixed;top:72px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 40px rgba(0,0,0,.08);padding:10px;display:none;z-index:30}
.lang-menu{right:3%;width:180px}
.side-menu{left:3%;width:240px}
.lang-menu.active,.side-menu.active{display:block}
.lang-menu a,.side-menu a{display:flex;align-items:center;gap:6px;padding:12px 14px;border-radius:12px;color:#111827}.lang-menu a{justify-content:space-between}.side-menu a{justify-content:flex-start}.menu-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;flex:0 0 20px}
.lang-menu a:hover,.side-menu a:hover{background:#f9fafb}
.hero{padding:28px 0 16px}
.slider{position:relative;border-radius:24px;overflow:hidden;background:#ddd;box-shadow:0 20px 45px rgba(0,0,0,.08)}
.slide{display:none;min-height:420px;background-size:cover;background-position:center;position:relative}
.slide.active{display:block}
.slide::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(17,24,39,.72),rgba(17,24,39,.22))}
.slide-content{position:absolute;z-index:2;left:40px;bottom:40px;color:#fff;max-width:480px}
.slide h2{margin:0 0 10px;font-size:42px;line-height:1.1}
.slide p{margin:0;font-size:18px;opacity:.95}
.slider-dots{display:flex;gap:8px;justify-content:center;margin-top:14px}
.dot{width:10px;height:10px;border-radius:999px;background:#d1d5db;cursor:pointer}.dot.active{background:#111827}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px 0 40px}
.card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:0 8px 20px rgba(0,0,0,.04)}
.card h3{margin-top:0}
.badge{display:inline-block;padding:8px 12px;background:#f3f4f6;border-radius:999px;color:#374151;font-size:13px}
.list{display:grid;gap:16px}
.menu-item{display:grid;grid-template-columns:110px 1fr auto;gap:16px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff}
.menu-item img{width:110px;height:88px;object-fit:cover;border-radius:14px}
.price{font-weight:800;font-size:20px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;background:#111827;color:#fff;border:none;border-radius:12px;cursor:pointer}
.footer{padding:30px 0;color:var(--muted);text-align:center}
.table{width:100%;border-collapse:collapse;background:#fff;border-radius:16px;overflow:hidden}
.table th,.table td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.admin-layout{display:grid;grid-template-columns:270px 1fr;min-height:100vh}
.admin-sidebar{background:#111827;color:#fff;padding:24px;position:sticky;top:0;height:100vh}
.admin-sidebar a{display:block;color:#e5e7eb;padding:12px 14px;border-radius:12px;margin-bottom:8px}
.admin-sidebar a:hover,.admin-sidebar a.active{background:#1f2937;color:#fff}
.admin-main{padding:28px}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.form-group{display:grid;gap:8px}.form-group.full{grid-column:1/-1}
.input,.textarea,.select{width:100%;padding:12px 14px;border:1px solid #d1d5db;border-radius:12px;background:#fff}.textarea{min-height:110px;resize:vertical}
.alert{padding:14px 16px;border-radius:14px;margin-bottom:18px}.alert-success{background:#ecfdf5;color:#065f46}.alert-error{background:#fef2f2;color:#991b1b}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.login-box{width:min(440px,100%);background:#fff;border:1px solid var(--line);padding:28px;border-radius:22px;box-shadow:0 20px 40px rgba(0,0,0,.06)}
@media (max-width:900px){.grid{grid-template-columns:1fr}.menu-item{grid-template-columns:1fr}.admin-layout{grid-template-columns:1fr}.admin-sidebar{position:relative;height:auto}.form-grid{grid-template-columns:1fr}.slide{min-height:320px}.slide h2{font-size:32px}}

.side-menu a span{margin-left:0;padding-left:0}




.quick-menu{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    margin:30px 0;
}
.quick-card{
    background:#f9fafb;
    border-radius:18px;
    padding:24px 20px;
    text-align:center;
    border-bottom:4px solid #f59e0b;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    font-weight:600;
    transition:0.2s;
    min-height:150px;
}
.quick-card:hover{
    transform:translateY(-4px);
}
.quick-card .icon{
    font-size:42px;
    color:#f59e0b;
    line-height:1;
}
@media (max-width: 768px){
    .quick-menu{
        grid-template-columns:repeat(2,1fr);
    }
    .quick-card{
        min-height:130px;
        padding:20px 14px;
    }
    .quick-card .icon{
        font-size:36px;
    }
}



.cart-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#111827;color:#fff;font-size:12px;font-weight:700;margin-left:auto}
.qty-input{width:68px;padding:10px 12px;border:1px solid #d1d5db;border-radius:12px;background:#fff}
.checkout-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;margin:20px 0 30px}
.cart-row{display:flex;justify-content:space-between;gap:16px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff;align-items:center}
.cart-row-info{display:flex;align-items:center;gap:14px}
.cart-row-info img{width:72px;height:72px;object-fit:cover;border-radius:14px}
.cart-row-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.order-total-box{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-radius:16px;background:#f9fafb;border:1px solid var(--line)}
.btn-danger{background:#dc2626}
.order-item-list{display:grid;gap:6px;min-width:220px}
@media (max-width:900px){.checkout-grid{grid-template-columns:1fr}.cart-row{flex-direction:column;align-items:flex-start}.cart-row-actions{justify-content:flex-start}}


.review-layout{display:grid;grid-template-columns:420px 1fr;gap:18px;margin:0 0 28px}
.review-public-card{padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}
.review-rating{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:#111827;color:#fff;font-size:13px;font-weight:700}
@media (max-width:900px){
  .review-layout{grid-template-columns:1fr}
}


.product-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}
.product-meta span{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  background:#f3f4f6;
  color:#374151;
  font-size:13px;
}
@media (max-width:900px){
  .product-meta{
    gap:8px;
  }
  .product-meta span{
    font-size:12px;
  }
}


/* Görüşler sayfası boşluk */
.review-layout{
    margin-top:40px !important;
}


.allergy-badge{
  background:#fff7ed !important;
  color:#9a3412 !important;
  border:1px solid #fdba74;
}










.menu-categories-bar{
  margin-top: 16px;

  display:flex;
  flex-wrap:nowrap;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  padding:2px 0 10px 0;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}

.menu-categories-bar::-webkit-scrollbar{
  height:6px;
}

.menu-categories-bar::-webkit-scrollbar-thumb{
  background:#d1d5db;
  border-radius:999px;
}

.menu-categories-bar::-webkit-scrollbar-track{
  background:transparent;
}

.menu-category-link{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  text-decoration:none;
  font-weight:600;
  white-space:nowrap;
}




.product-img{
  width:100%;
  height:220px;
  overflow:hidden;
  border-radius:12px;
  background:#111;
  display:flex;
  align-items:center;
  justify-content:center;
}

.product-img img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:10px;
}

/* Admin panelinden yüklenen logo için */
.logo {
  text-decoration: none;
}
.site-logo-img {
  max-height: 54px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Ürün görselleri: koddan şeffaf arka plan + yatay/orantılı gösterim */
.menu-item{
  grid-template-columns:240px 1fr auto !important;
}
.product-img{
  width:100% !important;
  height:150px !important;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:14px;
  background:transparent !important;
  display:flex;
  align-items:center;
  justify-content:center;
}
.product-img img,
.menu-item .product-img img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  padding:0 !important;
  background:transparent !important;
  display:block;
}
.cart-row-info img{
  width:96px !important;
  height:64px !important;
  object-fit:contain !important;
  object-position:center !important;
  background:transparent !important;
}
@media (max-width:900px){
  .menu-item{grid-template-columns:1fr !important;}
  .product-img{height:190px !important;}
}


/* Ana sayfa harita alanı */
.home-map-section{margin:28px 0 40px;}
.home-map-section h2{margin:0 0 14px;font-size:24px;}
.home-map-box{width:100%;min-height:320px;overflow:hidden;border-radius:18px;background:#f3f4f6;border:1px solid var(--line);}
.home-map-box iframe{width:100% !important;height:360px !important;display:block;border:0 !important;}
@media (max-width:768px){.home-map-box iframe{height:300px !important;}}

/* İletişim sayfası */
.contact-page{margin:28px 0;}
.contact-page h1{margin:0 0 12px;font-size:30px;}
.contact-desc{color:var(--muted);line-height:1.6;margin:0 0 20px;}
.contact-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:18px;}
.contact-box{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#f9fafb;}
.contact-box strong,.contact-address strong{font-size:14px;color:#111827;}
.contact-box span{color:#374151;line-height:1.5;word-break:break-word;}
.contact-address{margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff;}
.contact-address p{margin:8px 0 0;color:#374151;line-height:1.6;}
@media (max-width:768px){.contact-grid{grid-template-columns:1fr}.contact-page h1{font-size:26px}}

.home-social-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin:28px 0 40px;align-items:start}
.home-social-card{min-height:220px;overflow:hidden}
.home-social-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.home-social-head h2{margin:4px 0 0;font-size:24px}
.home-social-kicker{display:inline-block;font-size:13px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.home-embed-box{width:100%;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;min-height:180px;padding:10px}
.home-embed-box iframe{max-width:100% !important;width:100% !important;border:0 !important;border-radius:14px}
.home-embed-box blockquote{max-width:100% !important;min-width:0 !important;margin:0 auto !important}
.instagram-card{background:linear-gradient(180deg,#fff,#fff7fb)}
.google-review-card{background:linear-gradient(180deg,#fff,#f8fbff)}
.muted-text{color:var(--muted);margin:0;line-height:1.6}
@media (max-width:900px){.home-social-grid{grid-template-columns:1fr}.home-social-head{flex-direction:column}.home-social-head .btn{width:100%;justify-content:center}}

/* === FINAL FIX: HEADER + KATEGORI SABIT === */
html{
  scroll-behavior:smooth;
}
body{
  padding-top:72px !important;
}

/* Gerçek header sınıfı */
.topbar{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  z-index:10000 !important;
  background:#ffffff !important;
  border-bottom:1px solid var(--line) !important;
}
.topbar-inner{
  height:72px !important;
}

/* Açılır menüler header altında kalsın */
.lang-menu,
.side-menu{
  position:fixed !important;
  top:72px !important;
  z-index:10001 !important;
}

/* Menü kategorileri header altında yapışsın, beyaz zemin olmasın */
.menu-categories-bar,
#menuCategoriesBar{
  position:sticky !important;
  position:-webkit-sticky !important;
  top:72px !important;
  z-index:9999 !important;
  display:flex !important;
  flex-wrap:nowrap !important;
  visibility:visible !important;
  opacity:1 !important;
  transform:none !important;
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
  margin-top:16px !important;
  padding:8px 0 10px 0 !important;
}
.menu-categories-bar::before,
.menu-categories-bar::after,
#menuCategoriesBar::before,
#menuCategoriesBar::after{
  content:none !important;
  display:none !important;
  background:transparent !important;
}
.menu-categories-bar .container,
#menuCategoriesBar .container,
.menu-categories-bar .wrapper,
#menuCategoriesBar .wrapper{
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
}

/* Kategori linklerine tıklayınca başlık header altında kaybolmasın */
section[id^="cat-"]{
  scroll-margin-top:150px !important;
}

@media (max-width:768px){
  body{ padding-top:72px !important; }
  .menu-categories-bar,
  #menuCategoriesBar{ top:72px !important; }
  section[id^="cat-"]{ scroll-margin-top:150px !important; }
}
/* === /FINAL FIX === */

/* WHATSAPP SIPARIS BUTONU */
.whatsapp-order-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  margin-top:8px !important;
  width:100% !important;
  padding:10px 12px !important;
  border-radius:10px !important;
  background:#25D366 !important;
  color:#ffffff !important;
  text-decoration:none !important;
  font-weight:700 !important;
  font-size:14px !important;
  border:0 !important;
  box-shadow:0 6px 16px rgba(37,211,102,.25) !important;
}
.whatsapp-order-btn:hover{
  background:#1ebe5d !important;
  color:#ffffff !important;
}
@media (max-width:768px){
  .whatsapp-order-btn{
    width:100% !important;
  }
}


/* POPULER URUNLER - ANA SAYFA */
.popular-products-section{
  margin:28px 0 34px;
}
.section-title-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.section-title-row h2{
  margin:0;
  font-size:28px;
}
.section-title-row p{
  margin:6px 0 0;
  color:var(--muted);
}
.section-link{
  color:#fff;
  background:var(--primary);
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  white-space:nowrap;
}
.popular-products-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.popular-product-card{
  display:block;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 20px rgba(0,0,0,.04);
  transition:transform .18s ease, box-shadow .18s ease;
}
.popular-product-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 28px rgba(0,0,0,.08);
}
.popular-product-img{
  height:150px;
  background:#f3f4f6;
  overflow:hidden;
}
.popular-product-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.popular-product-body{
  padding:14px;
}
.popular-product-body h3{
  margin:0 0 8px;
  font-size:17px;
}
.popular-product-body p{
  margin:0 0 10px;
  min-height:38px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.popular-product-body strong{
  font-size:18px;
  color:var(--primary);
}
@media (max-width:900px){
  .popular-products-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:560px){
  .section-title-row{align-items:flex-start;flex-direction:column;}
  .popular-products-grid{grid-template-columns:1fr;}
}
