/* /qr/menu.css - Optimize Edilmiş Versiyon */

/* CSS Variables - PHP tarafından dinamik set edilecek */
:root {
    --primary: #17B477;
    --primary-dark: #129963;
    --danger: #ef4444;
    --white: #ffffff;
    --black: #000000;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --gray-lighter: #f3f4f6;
    --shadow: 2px 5px 14px rgb(13 13 13 / 30%);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--menu-font-family, 'Inter'), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-lighter);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px;
}

/* ============================================
   HEADER - Kompakt ve Sticky
   ============================================ */
.menu-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 12px 20px;
    box-shadow: var(--shadow-lg);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.menu-logo {
    height: 45px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
    margin-left:-30px;
}

.menu-logo-text {
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Table Info & Social Links */
.table-info {
    width: 58%;
    text-align: left;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}
.social-links {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 8px;
    justify-content: center;
}
/* Tıklanabilir harita linki (class="adres") */
.adres{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.5rem .75rem;
  border-radius:10px;            /* pill görünüm */
 
  color:var(--primary);                   /* mavi metin */
  font-weight:600;
  text-decoration:none;
  transition:background .2s, box-shadow .2s, transform .05s;
}

/* FA6 Free Solid: location-dot */
.adres::before{
  content: "\f3c5";                 /* location-dot (map-marker-alt) */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;                 /* Solid set için 900 zorunlu */
  display: inline-block;
  margin-right: .5rem;
  font-size: 1rem;
  line-height: 1;
  color: currentColor;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Hover/active/focus durumları */
.adres:hover{
 
  box-shadow:0 6px 16px rgba(37,99,235,.18);
}
.adres:active{
  transform:translateY(1px);
}
.adres:focus{
  outline:2px solid rgba(37,99,235,.4);
  outline-offset:2px;
}

/* Koyu tema uyumu */
@media (prefers-color-scheme: dark){
  .adres{
   
    color:var(--primary);   
  }
  .adres:hover{
  
    box-shadow:0 6px 16px rgba(96,165,250,.25);
  }
  .adres:focus{
    outline-color:rgba(147,197,253,.55);
  }
}

/* İsterseniz küçük, düz sürüm için (class="adres adres--ghost") */
.adres.adres--ghost{
  padding:.25rem .5rem;
  background:transparent;
  box-shadow:none;
}
.adres.adres--ghost:hover{
  background:rgba(37,99,235,.08);
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--primary);
    font-size: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */
.lang-selector {
    display: flex;
    gap: 0px;
}





/* ============================================
   CALL WAITER BUTTON
   ============================================ */
.btn-call-waiter {
    background: var(--danger);
    color: var(--white);
    border: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.btn-call-waiter:hover {
    transform: scale(1.05);
}

.btn-call-waiter:active {
    transform: scale(0.95);
    animation: ring 0.5s ease;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

/* ============================================
   CATEGORY BAR - Sticky
   ============================================ */
.category-bubbles {
    background: var(--white);
    padding: 5px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 999;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 15px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

/* ============================================
   CATEGORY BUBBLES - Varsayılan (Yuvarlak) Stil
   ============================================ */
.category-bubble {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    min-width: 70px;
    transition: all 0.3s ease;
}

.bubble-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.bubble-icon img {
    width: 100%;
    height: 100%;
    border-radius: 25%;
    object-fit: cover;
}

.bubble-icon i {
    font-size: 22px;
    color: var(--white);
}

.bubble-label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
   
      
}

.bubble-label:hover{color: var(--primary);}

.category-bubble:hover .bubble-icon,
.category-bubble.active .bubble-icon {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.category-bubble:active .bubble-icon {
    transform: scale(0.9);
}

/* 🔒 Sadece Menü modunda gizlenecek alanlar */
body.menu-only .btn-add-cart,
body.menu-only .miktar,
body.menu-only input[type="checkbox"],
body.menu-only input[type="radio"] {
  display: none !important;
  visibility: hidden;
}

/* Sepet barı ve popup sipariş öğeleri de gizlensin */
body.menu-only .cart-bar,
body.menu-only .cart-button,
body.menu-only #cartModal {
  display: none !important;
}

/* İsteğe bağlı bilgi metni */
body.menu-only::after {
  content: "⚠️ Bu menü yalnızca görüntüleme içindir, sipariş alınmaz.";
  display: block;
  text-align: center;
  color: #666;
  font-size: 13px;
  margin: 20px auto;
}


/* 📌 Sabit duyuru */
.fixed-announcement {
  margin: 10px;
}
.fixed-announcement .announcement-image {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}
.fixed-announcement .announcement-text {
  font-size: 15px;
  color: #333;
}

/* 💬 Popup duyuru */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.popup-content {
  background: #fff;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  padding: 20px;
  text-align: center;
  position: relative;
  animation: popupFade 0.3s ease;
}
.popup-content img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}
.popup-text {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}
.popup-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  color: #444;
  cursor: pointer;
  transition: 0.2s;
}
.popup-close:hover { color: #000; }
@keyframes popupFade {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================
   CATEGORY ICON STYLE (İkonlu Buton)
   ============================================ */
.icon-style .category-bubble {
    flex-direction: row;
    padding: 8px 16px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    min-width: auto;
}

.icon-style .category-bubble .bubble-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
    margin-right: 10px;
    border-radius: 8px;
}

.icon-style .category-bubble .bubble-icon-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.icon-style .category-bubble:hover,
.icon-style .category-bubble.active {
    border-color: var(--primary);
    background: rgba(23, 180, 119, 0.05);

}

.icon-style .category-bubble .bubble-label {
    color: var(--primary);
}

/* Bubble stilinde icon'u gizle */
.bubble-style .category-bubble .bubble-icon {
    display: none;
}



.category-bubble.active {
  border-color: var(--primary);
  transform: scale(1.05);
  transition: all 0.25s ease;
}


/* ============================================
   MENU CONTENT & PRODUCTS
   ============================================ */
.menu-container {
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 40px;
    scroll-margin-top: 140px;
}

.category-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    padding: 0 15px 12px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}


.category-scroll {
  scroll-behavior: smooth;
}
/* ============================================
   PRODUCT GRID - 2 Sütun (Mobil), 3 Sütun (Desktop)
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 15px;
}

.product-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card:active {
    transform: scale(0.98);
}

.product-image {
    width: 100%;
    height: 130px;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-lighter);
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.bottombar {

    background: var(--gray-light);
    padding: 15px;

}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #adb5bd;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-desc {
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.btn-add-cart {
    padding: 7px 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-add-cart:active {
    transform: scale(0.95);
}

/* ============================================
   CART BAR - Sticky Bottom
   ============================================ */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 20px;
    border-top: 3px solid var(--primary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    gap: 12px;
}

.cart-bar.show {
    display: flex;
}

.cart-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-count {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

.cart-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}





.btn-view-cart {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-cart:hover {
    background: var(--primary-dark);
}

.btn-view-cart:active {
    transform: scale(0.95);
}



.btn-clear-cart {
    padding: 12px 16px;
    background: transparent;
    color: var(--danger);
    border: 2px solid var(--danger);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-cart:hover {
    background: var(--danger);
    color: var(--white);
}

.btn-clear-cart:active {
    transform: scale(0.95);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex !important;
}

.modal-content {
    background: var(--white);
    width: 80%;
 
    max-width: 500px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 0%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--danger);
    color: var(--white);
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-close:active {
    transform: scale(0.9);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--gray-light);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 2px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    width: 100%;
    transition: all 0.2s ease;
}


.btn1 {
    padding:0;
    border: none;
    width: 5%;
    
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--danger);
    border: 2px solid var(--danger);
}

.btn-outline:hover {
    background: var(--danger);
    color: var(--white);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (min-width: 640px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-name {
        font-size: 15px;
    }
    
    .product-desc {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 17px;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */
@media (min-width: 1024px) {
    .menu-container {
        padding: 30px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .product-card {
        border-radius: 16px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-name {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .product-desc {
        font-size: 13px;
        margin-bottom: 12px;
        -webkit-line-clamp: 3;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .btn-add-cart {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* ============================================
   RESPONSIVE - VERY SMALL SCREENS
   ============================================ */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .cart-actions {
        width: 50%;
         display: flex;
    gap: 8px;
    }
    
    .btn-view-cart, 
    .btn-clear-cart {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .product-name {
        font-size: 13px;
    }
    
    .product-desc {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }
    
    .product-price {
        font-size: 15px;
    }
    
    .btn-add-cart {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .product-info {
        padding: 8px;
    }
}


/* =========================
   OVERRIDES (en sona ekle)
   ========================= */

/* 1) Ürün grid'i – mobilde de 2 sütun */
@media (max-width: 480px){
  .product-grid{
    /* önceki 1 sütun kuralını ezer */
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Kart görseli daha dengeli dursun */
  .product-image{
    height: 140px !important; /* istersen 150 de yapabilirsin */
  }

  /* Başlık ve alt yazıları 2 sütunda taşmayacak şekilde ayarla */
  .product-name{
    font-size: 13px !important;
    -webkit-line-clamp: 2 !important;
  }
  .product-desc{
    font-size: 11px !important;
    -webkit-line-clamp: 2 !important;
  }

  /* Kart altındaki aksiyon alanı sıkışmasın */
  .product-footer{
    gap: 6px !important;
  }
  .btn-add-cart{
    padding: 6px 10px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }
}

/* 2) Sepet barı butonları – yan yana kalsın */
.cart-bar .cart-actions{
  display:flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  width: auto !important;        /* önceki width:50% kuralını kır */
}

.cart-bar .cart-actions .btn-clear-cart,
.cart-bar .cart-actions .btn-view-cart{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;        /* önceki width:100% kuralını kır */
  flex: 1 1 0 !important;        /* eşit paylaşıp yan yana dursunlar */
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

/* Çok dar ekranlarda (opsiyonel):
   Eğer iki buton yine sığmıyorsa padding'i küçült. */
@media (max-width: 360px){
  .cart-bar .cart-actions .btn-clear-cart,
  .cart-bar .cart-actions .btn-view-cart{
    padding: 10px 12px !important;
    font-size: 14px !important;
  }
}


/* ===== Görünüm Anahtarı (sticky) ===== */
.view-toggle{

  top: 142px;                /* header+kategori altı */
  z-index: 998;
  padding: 8px 15px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;

}

.view-btn{
  width: 14%; height: 36px;
  border-radius: 10px;
  border: 2px solid var(--gray-light);
  background: #fff;
  color: #334155;
  display: inline-flex; align-items:center; justify-content:center;
  cursor: pointer;
  transition: .2s;
}
.view-btn:hover{ transform: translateY(-1px); }
.view-btn.active{
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

/* ===== Görünüm Modları ===== */

/* 2 sütun grid (her zaman 2 sütun) */
.view-grid .product-grid{
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

/* Kart (tek sütun, büyük görsel üstte) */
.view-card .product-grid{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}
.view-card .product-image{ height: 190px !important; }

/* Liste görünüm (solda küçük görsel, sağda içerik) */
.view-list .product-grid{
  display: block !important;      /* tek tek alt alta */
}
.view-list .product-card{
  display: grid !important;
  grid-template-columns: 100px 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px !important;
  margin-bottom: 10px;
  border-radius: 12px !important;
}
.view-list .product-image{
  width: 100px !important;
  height: 100px !important;
  border-radius: 10px !important;
  overflow: hidden;
}
.view-list .product-info{
  padding: 0 !important;
}
.view-list .product-name{
  font-size: 15px !important;
  margin-bottom: 4px !important;
  -webkit-line-clamp: 1 !important;
}
.view-list .product-desc{
  font-size: 12px !important;
  margin-bottom: 8px !important;
  -webkit-line-clamp: 2 !important;
}
.view-list .product-footer{
  margin-top: 0 !important;
  gap: 8px !important;
}
.view-list .product-price{
  font-size: 16px !important;
}
.view-list .btn-add-cart{
  padding: 6px 10px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

/* Küçük ekran mikro ayarları */
@media (max-width: 360px){
  .view-list .product-card{ grid-template-columns: 90px 1fr !important; }
  .view-list .product-image{ width: 90px !important; height: 90px !important; }
}


/* ===== Canlı arama kutusu ===== */
.search-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  background: #fff;
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  padding: 6px 10px;
  height: 45px;
}
.search-wrap i{ color:#475569; font-size:14px; }
#menuSearch{ border:0; outline:0; background:transparent; font-size:14px; min-width:160px; }
#menuSearchClear{
  border:0; background:transparent; color:#9ca3af; font-size:18px; line-height:1; cursor:pointer; display:none;
}

/* Arama sonucu gizleme */
.product-card.is-hidden{ display:none !important; }
.category-section.is-empty{ display:none !important; }

/* Küçük ekranda arama kutusu genişlesin */
@media (max-width:480px){
  .search-wrap{ flex:1; width:95%; height: 45px;
        margin: 10px !important;}
  #menuSearch{ width:100%; min-width:0; }
}


#cartModal button[onclick^="updateCartQuantity"] {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  border: 2px solid var(--primary) !important;
  background: #fff !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
#cartModal button[onclick^="updateCartQuantity"]:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

#deliveryInfoModal input,
#deliveryInfoModal textarea {
  width: 100% !important;
  padding: 12px !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-family: var(--menu-font-family, 'Inter'), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
}
#deliveryInfoModal input:focus,
#deliveryInfoModal textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05) !important;
}
#deliveryInfoModal .btn.btn-primary {
  margin-top: 12px !important;
  width: 100% !important;
  padding: 14px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  border-radius: 10px !important;
}
/* ==== Ürün ikonları sağ üst köşe ==== */
.product-card {
  position: relative;
}
.product-icons {
  position: absolute;
  top: 10px;
  left: 5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.icon-badge:hover {
  transform: scale(1.1);
}
.icon-badge i {
  font-size: 16px;
}
.icon-badge .fa-pepper-hot.active {
  color: #e74c3c;
}
.icon-badge .fa-pepper-hot.inactive {
  color: #bbb;
  opacity: 0.5;
}
.icon-badge .fa-leaf { color: #27ae60; }
.icon-badge .fa-wheat-awn-circle-exclamation { color: #95a5a6; }
.icon-badge .fa-fish { color: #3498db; }
.icon-badge .fa-drumstick-bite { color: #c0392b; }

/* Tooltip */
.icon-badge[title]:hover::after,
.icon-badge-space[title]:hover::after {
  content: attr(title);
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--primary) ;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  z-index: 10;
}

/* Mobilde tooltip yukarı kayar */
@media (max-width: 600px) {
  .icon-badge[title]:hover::after {
    right: auto;
    left: 50%;
    transform: translateX(-60%) translateY(75%);
  }
}

/* Tooltip’in kart sınırları dışında da görünmesini sağla */
.product-card,
.product-icons {
  overflow: visible !important;
  z-index: 20 !important;
  position: relative;
}

/* Tooltip her zaman en üstte dursun */
.icon-badge[title]:hover::after,
.icon-badge-space[title]:hover::after {
  z-index: 9999 !important;
}


/* ==== Ürün ikonları (biberler yatay, diğerleri dikey) ==== */
.product-card {
  position: relative;
}

.product-icons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: row; /* <--- sadece bu satırı değiştiriyoruz */
  align-items: center;
  gap: 6px;
  z-index: 5;
}


/* Biber grubu */
.spicy-group {
  display: flex;
  gap: 5px;
  margin-bottom: 4px;
}

/* Yuvarlak ikon yapısı */
.icon-badge {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.15s ease;
  position: relative;
}

.icon-badge-space {
  width: 64px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 17%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.15s ease;
  position: relative;
}

.icon-badge:hover { transform: scale(1.1); }

.icon-badge i { font-size: 16px; }

.icon-badge-space:hover { transform: scale(1.1); }

.icon-badge-space i { font-size: 16px; }

.fa-pepper-hot.active { color: #e74c3c; }
.fa-pepper-hot.inactive { color: #bbb; opacity: 0.5; }

.fa-leaf { color: #27ae60; }
.fa-fish { color: #3498db; }
.fa-drumstick-bite { color: #c0392b; }
.fa-wheat-awn-circle-exclamation { color: #f5b041; }


.lang-btn {
      padding-right: 2px;
    padding-left: 2px;
    margin-top: 14px;
}

.lang-btn img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  
  transition: all 0.25s ease;
  
}

.lang-btn:hover img {
  transform: scale(1.15);

}

.lang-btn.active img {
display: none;
}

.ai-assistant-root{
  position:fixed;
  bottom: 90px !important;
  right:20px;
  z-index:1100;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:12px;
}
.ai-assistant-toggle{
  width:70px;
  height:70px;
  background: #04981a;
  color:#fff;
  border:none;
  border-radius:50%;
  padding:0;
  font-weight:600;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  cursor:pointer;
  transition:transform .2s, box-shadow .2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.ai-assistant-toggle:hover{
  transform:translateY(-2px) scale(1.04);
  
 
}
.ai-assistant-icon{
  width:38px;
  height:38px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;

}
.ai-assistant-icon i{
  animation:botPulse 2s ease-in-out infinite;
}
.ai-assistant-label{
  font-size:11px;
  letter-spacing:.35px;
  font-weight:600;
  padding-right: 5px;
  padding-left: 5px;
  margin-top: -10px;
}
@keyframes botPulse{
  0%,100%{transform:translateY(0);opacity:1;}
  50%{transform:translateY(-4px) scale(1.08);opacity:.9;}
}
.ai-assistant-panel{
  width:min(92vw,360px);
  max-height:70vh;
  background:#fff;
  border-radius:18px;
  box-shadow:0 18px 45px rgba(15,23,42,0.25);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid rgba(148,163,184,0.25);
}
.ai-assistant-panel[hidden]{display:none!important;}
.ai-assistant-header{
  padding:16px 20px;
  background:#04981a;
  color:#fff;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.ai-assistant-header small{display:block;margin-top:4px;font-size:12px;opacity:.85;}
.ai-assistant-close{
  background:rgba(255,255,255,0.2);
  color:#fff;
  border:none;
  width:32px;
  height:32px;
  border-radius:50%;
  font-size:18px;
  cursor:pointer;
}
.ai-assistant-messages{
  padding:16px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
  background:#f8fafc;
}
.ai-chat-message{
  border-radius:14px;
  padding:12px 14px;
  max-width:85%;
  font-size:14px;
  line-height:1.5;
  box-shadow:0 6px 18px rgba(15,23,42,0.08);
}
.ai-chat-message.user{
  margin-left:auto;
  background:#04981a;
  color:#fff;
}
.ai-chat-message.assistant{
  margin-right:auto;
  background:#fff;
  color:#1f2937;
}
.ai-chat-message.system{
  margin:0 auto;
  background:#e2e8f0;
  color:#1f2937;
  font-size:12px;
}
.ai-chat-message.typing{
  font-style:italic;
  opacity:.75;
}
.ai-assistant-footer{
  padding:14px;
  border-top:1px solid #e2e8f0;
  background:#fff;
}
.ai-assistant-footer form{
  display:flex;
  gap:10px;
  align-items:flex-end;
}
#aiAssistantInput{
  flex:1;
  resize:none;
  border:1px solid #d1d5db;
  border-radius:12px;
  padding:12px 14px;
  font-size:14px;
  min-height:48px;
  max-height:120px;
}
.ai-assistant-send{
  width:52px;
  height:48px;
  border-radius:12px;
  border:none;
  background:#04981a;;
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  
}
.ai-assistant-send:disabled{
  opacity:.6;
  cursor:not-allowed;
}
.ai-assistant-hint{
  margin-top:10px;
  font-size:12px;
  color:#64748b;
}

@media (max-width: 640px){
  .ai-assistant-root{bottom: 90px !important;right:20px;}
  .ai-assistant-panel{width:min(94vw,360px);max-height:75vh;}
  .ai-assistant-toggle{width:70px;height:70px;}
}
