* {
      user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: manipulation;   
     
    
    
}   

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-size: 16px;
}

a, button, img,.product-card {
    -webkit-touch-callout: none;  /* iOS long-press menü */
    -webkit-user-select: none;    /* metin seçimi */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a {
    -webkit-tap-highlight-color: transparent;
}

    .screen {
        position: absolute !important;
        top: 50px !important;
        left: 0;
        right: 0;
        overflow: auto;
        width: 100vw !important;
        height: calc(100vh - 100px) !important;
        padding-bottom: 120px !important;
        
    }


 

/* Scroll Down Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #000000b5;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    animation: pulse 1.4s infinite;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

/* Yanıp sönen animasyon */
@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Gizle */
.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

 .screenwob {
        position: absolute !important;
        top: 50px !important;
        left: 0;
        right: 0;
        overflow: auto;
        width: 100vw !important;
        height: calc(100vh - 130px) !important;
        
    }


.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e5e5e5;
    z-index: 100;
    transition: transform 0.35s cubic-bezier(.22,.61,.36,1), opacity 0.35s ease;
    will-change: transform;
}

.bottom-nav.hide-nav {
    transform: translateY(110%);
    opacity: 0;
}

.bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    font-size: 13px;
    text-decoration: none;
    padding: 8px 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    color:#888;
}

.bottom-nav .nav-item i {
    width: 100%;
    text-align: center;
    font-size: 22px;
    margin-bottom: 3px;
    display: block;
    transition: 0.25s;
    
}

/* Hover Efekti */
.bottom-nav .nav-item:hover {
    color: #000814;
   
}

.bottom-nav .nav-item.active {
   
    color: var(--themeColor, #444444); ;
    font-weight: bold;
}



/* Divider – daha soft */
.divider {
    width: 1px;
    height: 30px;
    background: rgba(0,0,0,0.15);
    display: block;
}



.cart-wrapper {
    position: relative;
    display: block;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
}



.sepetbtn {
    position: relative;
    font-size: 24px; 
    color: #333;
}


.cart-count {
    position: absolute;
    top: -4px;      
    left: calc(50% + 10px);      
    transform: translateX(-50%);
    background: #ff3b30;
    color: #fff;
    font-size: 12px;
    width: 18px;
    height: 18px;
    font-weight: bold;
    padding: 2px;
    border-radius: 50%;
    border: none;
    line-height: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    pointer-events: none;
    box-sizing: border-box;
    font-family: 'Arial',sans-serif;
}



/* Modal backdrop blur */
.modal-backdrop.show {
    backdrop-filter: blur(4px);
}


/* Modal tüm ekranı kaplasın ama içeriği alta hizalasın */
#loginBottomSheet .modal-dialog {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); /* MERKEZLER */
    margin: 0;
    width: 100%;
    max-width: 480px; /* Mobil + desktop uyumlu */
    animation: slideUp .1s ease;
}

/* Modal iç kutu → üst köşeler yuvarlak */
#loginBottomSheet .modal-content {
    border-radius: 20px 20px 0 0;
}


#outsideServiceAreaModal .modal-dialog {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); /* MERKEZLER */
    margin: 0;
    width: 100%;
    max-width: 480px; /* Mobil + desktop uyumlu */
    animation: slideUp .1s ease;
}

/* Modal iç kutu → üst köşeler yuvarlak */
#outsideServiceAreaModal .modal-content {
    border-radius: 20px 20px 0 0;
}


#noSavedAddressModal .modal-dialog {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); /* MERKEZLER */
    margin: 0;
    width: 100%;
    max-width: 480px; /* Mobil + desktop uyumlu */
    animation: slideUp .1s ease;
}

/* Modal iç kutu → üst köşeler yuvarlak */
#noSavedAddressModal .modal-content {
    border-radius: 20px 20px 0 0;
}




/* Slide-up animasyonu */
@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Bootstrap backdrop bug fix (bazı sayfalarda kaymaya sebep olur) */
.modal {
    --bs-modal-margin: 0 !important;
    padding-right: 0 !important;
}

.drag-handle {
    width: 45px;
    height: 5px;
    background: #ccc;
    border-radius: 20px;
    cursor: grab;
    touch-action: none;
}


.swal-bottom-offset {
  margin-bottom: 100px !important;
}

.swal-small-toast {
  display: flex !important;
  align-items: center !important;
}

.swal-small-toast .swal2-icon {
  flex-shrink: 0;
  margin: 0 8px 0 0 !important;
}

.swal-small-toast .swal2-title {
  line-height: 1.2 !important;
}


 @media (min-width: 768px) {
       .screen {
         
        position: absolute !important;
        top: 50px !important;
        left: 0;
        right: 0;
        overflow-y: auto;
        width: 100vw !important;
        height: calc(100vh - 5px) !important;
        padding-bottom: 120px !important;
            scrollbar-width: none;
        
    }
      
      .screen::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge için */
}
    
  }

 @media (max-width: 768px) {
       

        .screen {
         
       
        padding-bottom: 220px !important;
        
    }
     
    
  }

@media (max-width: 576px) {
    .qr-text {
        display: block;
        width: 100%;          /* max-width yerine width veriyoruz */
        padding: 0 6px;       /* sağ ve soldan boşluk */
        box-sizing: border-box; /* padding width’e dahil olsun */
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        text-align: center;
    }
}

    
    .toast-alert {
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
        max-width:400px; 
}
    
    
    @media (max-width: 768px){
    
         .toast-alert {
             bottom: 150px;
        }
        
}

.toast-alert.show {
    opacity: 1;
    transform: translateX(-50%) translateY(10px);
}

/* Arka plan */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 999999;
    transition: opacity .3s ease;
}

.global-loader.hide {
    opacity: 0;
    pointer-events: none;
}

/* Logo + ring kutusu */
.loader-box {
    width: 80px;
    height: 80px;
}

/* Dönen çember */
.loader-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 5px solid #dcdcdc;
    border-top-color: var(--loaderColor, #777777); /* İstersen burayı mekan rengi yaparız */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spinRing 1s linear infinite;
}

@keyframes spinRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Logo */
.loader-logo {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



#aiLoadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px); /* ekranı blur yapar */
    background: rgba(0,0,0,0.2); /* biraz karartma */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-circle {
    width: 80px;
    height: 80px;
    border: 8px solid #f3f3f3; /* açık gri dış çember */
    border-top: 8px solid #007bff; /* dönen renkli kısım */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



#aiOrderBtn {
        position: fixed;
        bottom: 100px;
        right: 25px;
        width: 60px;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1050;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        transition: transform 0.2s, box-shadow 0.2s;
    }
    #aiOrderBtn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }



#selly::before {
    content: "Selly AI";
    position: absolute;
    bottom: -40px; /* #selly divinin altına 15px boşluk */
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 12px;
    background: linear-gradient(90deg, #007bff, #00d4ff); /* mavi gradient */
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    pointer-events: none; /* hover vs etkilenmesin */
}
    
           #selly {
      position: fixed;
      bottom: 140px;
      right: 30px;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      border: 3px solid #fff;
      background: linear-gradient(135deg, #FFFFFF, #EFEFEF);
      z-index: 100;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  #selly:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  }

#selly::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.6); /* açık cyan başlangıç */
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.6); /* açık cyan */
    }
    50% {
        box-shadow: 0 0 0 9px rgba(0, 200, 255, 0.3); /* orta ton cyan */
    }
    100% {
        box-shadow: 0 0 0 18px rgba(0, 150, 255, 0); /* koyu cyan, şeffaf */
    }
}


