body {
    background: #fafafa;
    font-family: Inter, sans-serif;
    padding-bottom: 100px;
    overflow: hidden;
}
/* Kapsayıcı: yatay scroll */
.category-nav-inner {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0 0px;
    display: block; /* flex deÃ„Å¸il, scroll için block yeterli */
    /* Scrollbar gizle (tüm tarayıcılar için) */
    scrollbar-width: thin;       /* Firefox */
    scrollbar-color: #ccc transparent;
}
    
    /* Chrome, Safari, Edge */
.category-nav-inner::-webkit-scrollbar {
height: 6px; /* mobilde ince scroll */
}
.category-nav-inner::-webkit-scrollbar-thumb {
background-color: #ccc;
border-radius: 3px;
}
/* Kategori listesi */
.category-nav {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
    flex-wrap: nowrap;     /* default: tek satır */
    min-width: max-content; /* taşan öÃ„Å¸eler scroll açsın */
}
/* Kategori linkleri */
.category-nav a {
    display: inline-block;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 15px;
    text-decoration: none;
    color: #555;
    background: #f8f8f8;
    border-radius: 20px;
    transition: 0.25s;
    white-space: nowrap;
}
/* Aktif kategori */
.category-nav a.active {
    background: #ca6702;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.category-nav a.new-active {
    background: linear-gradient(135deg, #ca6702, #e77c18);
    color: #fff;
    box-shadow: 0 4px 12px rgba(202, 103, 2, 0.35);
    border-radius: 20px;
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
    animation: activePop 0.25s ease;
}
@keyframes activePop {
0% {
transform: scale(0.85);
opacity: 0.3;
}
100% {
transform: scale(1);
opacity: 1;
}
}
.category-nav a.old-active {
    background: linear-gradient(135deg, #b75d02, #d66f12);
    color: #fff;
    opacity: 0.6;
    transform: scale(0.92);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
    animation: oldFadeOut 0.35s ease;
}
@keyframes oldFadeOut {
0% {
opacity: 1;
transform: scale(1);
}
100% {
opacity: 0.6;
transform: scale(0.92);
}
}

/* Desktop: wrap yap */
@media (min-width: 768px) {
.category-nav {
    flex-wrap: wrap;   /* desktopta wrap */
}
.category-nav-inner {
    overflow-x: visible; /* scroll gerekmiyor */
}
}

    .product-card {
    position: relative;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
        opacity: 0.95;
        cursor: grab;
}
    
    .product-card.dragging {
    cursor: grabbing;
}

/* Üst ve sol kenar ince inset shadow */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;          /* yatayda tüm genişlik */
    height: 6px;          /* sadece üstten gölge yüksekliği */
    background: linear-gradient(to bottom, rgba(200,200,200,0.1), rgba(0,0,0,0));
    pointer-events: none;
    border-top-left-radius: 10px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;           /* soldan gölge genişliği */
    height: 100%;         /* tüm yükseklik */
    background: linear-gradient(to right,  rgba(200,200,200,0.1), rgba(0,0,0,0));
    pointer-events: none;
    border-top-left-radius: 10px;
}



    
    .product-card:hover {
  transform: scale(1.02);           /* hafif büyüme */
  filter: brightness(1.05);         /* hafif parlaklık artışı */
         opacity: 1;
}

/* Tıklama / basılı efekti */
.product-card:active {
  transform: scale(0.97);           /* hafif içe basma */
  filter: brightness(0.95);         /* hafif koyulaşma */
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.2); /* hafif içe gölge */
}

    
.product-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;       /* container tamamen dolacak, kırpılabilir */
  object-position: center;
  display: block;
}

.prdcard .product-right img {
    height: 170px !important;
    max-height: 170px !important;
}


.product-card p {
    display: -webkit-box;        /* Webkit için kutu modeli */
    -webkit-box-orient: vertical; /* dikey yön */
    -webkit-line-clamp: 1;       /* maksimum 3 satır */
    overflow: hidden;             /* taşanı gizle */
    text-overflow: ellipsis;      /* â€¦ göster */
}
/* + butonu */
.product-card .add-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: #333;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    z-index: 2; /* kartın üstünde görünmesi için */
}
.product-card .add-btn:hover {
    transform: scale(1.1);
}

#productModal #productImg {
    width: 100%;              /* container genişliği */
    max-height: 200px;
    object-fit: cover;      /* resmi kırpmaz, sığdırır */
    object-position: center;
    background: #fff;         /* boş alan rengi */
    display: block;
    border-radius: 8px;       /* mevcut rounded ile uyumlu */
    overflow: hidden;         /* overlay için gerekli */
    position: relative;       /* ::after için gerekli */
}

/* Alt kısmından tramlı gri overlay */
#productModal #productImg::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 25%;  /* overlay yüksekliği */
    background: linear-gradient(to top, rgba(0,0,0,0.25), rgba(0,0,0,0));
    pointer-events: none;    /* tıklamayı engellemez */
    border-radius: 0 0 8px 8px; /* alt köşeler yuvarlak */
}

    
    
.search-bar-wrapper {
    position: sticky;
    top: 125px;
    z-index: 998;
    background: #fafafa;
    padding: 10px 0;
    border-bottom: 1px solid #eee
}
.logo {
    height: 50px;
    object-fit: contain;
}
.delivery-box {
    line-height: 1.1;
    text-align: left;
    cursor: pointer;
}

    .delivery-time-badge {
    display: inline-flex;
    align-items: center;
}

/* icon circle */
.delivery-time-badge i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
    font-size: 13px;
    margin-right: -8px; /* badge ile birleşme */
    z-index: 2;
}

/* süre badge */
#teslimatSure {
    font-size: 12px !important;
    background: #e9ecef;
    color: #555;
    padding: 6px 10px 6px 12px;
    border-radius: 0 14px 14px 0; /* sol düz, sağ oval */
    border: 1px solid #dee2e6;
    display: inline-block;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(0,0,0,.08);
}


    
    
.user-badge {
    line-height: 1.1;
    text-align: right;
    white-space: nowrap;
}
/* Modal dialog ekranın altına sabitlenmiş ve yatayda ortalanmış */
.modal-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;           /* yatayda ortalar */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    width: 100%;
}
/* Modal content */
.modal-bottom .modal-content {
    width: 100%;
    max-width: 500px;         /* desktop container mantıÃ„Å¸ı */
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    max-height: 80vh;
    overflow-y: auto;
    pointer-events: auto;
    transform: translateY(100%); /* başta ekranın altında */
    transition: transform 0.05s ease-out;
    padding-bottom: 24px;
}

@media (max-width: 768px) {
    .modal-bottom .modal-content {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.modal.show .modal-content {
    transform: translateY(0);
}
.modal-backdrop.fade.show {
    background-color: rgba(0,0,0,0.8) !important;
    backdrop-filter: blur(5px) !important;
    opacity: 0.7 !important;
    transition: opacity 0.35s ease !important;
}


.screen.container {
    padding: 0px !important;
}

.screen {
height: 100vh !important;
}
    
#userBadge {
    cursor: pointer;
}

/* Desktop görünümü: arama kutusu + kategori liste yan yana */
@media (min-width: 768px) {
.category-top-row {
    display: flex;
    align-items: center;
    gap: 15px;
}
#miniProductSearch {
    width: 150px !important;
}
    
body.dikey .spt { padding-top:100px; }
body.yatay .spt { padding-top:150px; }
    
}

/* Mobilde kategori satırı kaydırılabilir olsun */
@media (max-width: 767px) {
#mobileCategoryArea {
    overflow-x: auto;
    white-space: nowrap;
}
#mobileCategoryArea .category-nav {
    flex-wrap: nowrap !important;
}
    
    #miniProductSearch {
    width: 100% !important;
}
    
body.dikey .spt { padding-top:100px; }
body.yatay .spt { padding-top:140px; }

    
}

/* Desktop normal davransın */
@media (min-width: 768px) {
.category-nav {
    flex-wrap: wrap;
}
}
.search-wrapper {
    position: relative;
}
.search-wrapper i.search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.75rem;
    pointer-events: none;
}
/* SaÃ„Å¸daki ikon grubu */
.search-wrapper .right-icons {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}
.right-icons i {
    font-size: 0.75rem;
    color: #666;
    cursor: pointer;
}
/* Input padding ayarları */
.search-wrapper input {
    font-size: 16px;
    padding-left: 45px !important;
    padding-right: 85px !important; /* SaÃ„Å¸daki ikonlara yer açtık */
}
.qty-wrapper {
    display: flex !important;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 120px;     /* BU Ãƒâ€“NEMLÃ„Â° Ã¢â‚¬â€œ TAÃ…Å¾MAYI ENGELLÃ„Â°YOR */
    background: #fff;
}
.qty-btn {
    width: 34px;
    height: 40px;
    border: none;
    background: #f7f7f7;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;   /* BUTONUN KÜÃƒâ€¡ÜLMESÃ„Â°NÃ„Â° ENGELLER */
}
.qty-input {
    flex: 1;
    min-width: 0;     /* BU SATIR INPUTÃ¢â‚¬â„¢UN TAÃ…Å¾MASINI %100 ENGELLER */
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    outline: none;
    background: white;
    user-select: none;
    -webkit-user-select: none; /* iOS/Safari */
    -moz-user-select: none;
    -ms-user-select: none;
}
.add-btn.in-cart {
    background: #28a745;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.add-btn-vertical.in-cart {
    background: #28a745 !important;
    color: #fff !important;
    font-weight: bold;
    font-size: 14px;
  /*  animation: pulseCart 1.2s ease-out infinite;*/
}

@keyframes pulseCart {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(200, 200, 200, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(150, 150, 150, 0);
    }
}



.out-of-service {
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.7;
    pointer-events: none;
}
.product-card.disabled {
    opacity: 0.8;
}
.out-of-service-bar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 24px);
    max-width: 720px;
    background: rgba(220, 53, 69, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 14px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
}
#categoryNav {
    scroll-behavior: smooth;
}
#menuContainer {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: auto;

    cursor: grab; /* sürüklenebilir hissi */
    transition: transform 0.2s ease; /* bırakınca yumuşak dönüş */
        /**/
        padding-bottom: 105px !important;
    
}

body.yatay .screen .page-wrapper {
    padding-top: 150px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    
}


body.dikey .screen .page-wrapper {
    padding-top: 110px !important;
    
    
}



#menuContainer.dragging {
    cursor: grabbing;
    transition: none; /* sürüklerken ani hareket */
}

    
    
#swipelayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* tüm alanı kaplamak için */
    z-index: 5; /* menünün üstünde ama butonları engellemeyecek */
    pointer-events: none; /* tıklamaları engellemesin */
}
.no-products {
    padding-top: 80px;
    padding-bottom: 80px;
    color: #777;
    display: flex;
    flex-direction: column;
    justify-content: center; /* dikey ortalama */
    align-items: center;     /* yatay ortalama */
    text-align: center;
    min-height: 50vh; /* boş sayfada daha iyi hizalama */
}
.fade-in {
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.no-products i {
    font-size: 48px;
    opacity: 0.4;
    margin-bottom: 12px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#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: 130px;
    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 */
}
}
.iconPopuler {
    font-size: 16px; /* ikon boyutu */
    background: linear-gradient(45deg, #ff4500, #ff8c00, #ff6347); /* kırmızı-turuncu tonlar */
    -webkit-background-clip: text; /* sadece yazıyı/ikonu doldur */
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: flame 1s infinite alternate;
    background-size: 200% 200%; /* gradient animasyonu için genişletme */
}
@keyframes flame {
0% {
background-position: 0% 50%;
filter: brightness(1);
}
50% {
background-position: 100% 50%;
filter: brightness(1.3);
}
100% {
background-position: 0% 50%;
filter: brightness(1);
}
}
.option-required {
    border: 1.5px solid #dc3545;
    background: rgba(220, 53, 69, 0.04);
}
.option-required .form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}
.option-required h6 {
    color: #b02a37;
}
/* Footer iç bar */
.footer-bar {
    display: flex;
    align-items: center;
}
/* TOPLAM ALANI â†’ ekranın %45'i */
.footer-bar .price-box {
    width: 30%;
    flex: 0 0 30%;
    line-height: 1.2;
}
/* Kalan alan */
.footer-bar .qty-wrapper {
    flex: 0 0 auto;
}
.footer-bar #addToCartFromModal {
    flex: 1 1 auto;
}
/* Zorunlu option grubu */
.option-required .accordion-button {
    background: rgba(220, 53, 69, 0.06);
}
.option-required .accordion-button:not(.collapsed) {
    background: rgba(220, 53, 69, 0.1);
}
/* Badge daha premium dursun */
.option-required .badge {
    font-size: 0.7rem;
    padding: 0.35em 0.6em;
}
/* Accordion item rounding */
#productModal .accordion-item {
    border-radius: 1.5rem; /* rounded-4 */
    overflow: hidden;    /* collapse taşmalarını engeller */
    margin-bottom: 0.75rem;
}
/* Header buton da rounding'e uyum saÄŸlasın */
#productModal .accordion-button {
    border-radius: 1rem;
}
/* Açıkken alt köşeleri düzleştir (daha temiz görünüm) */

#productModal .accordion-item:not(.collapsed) .accordion-button {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
/* Accordion body alt köşeleri */
#productModal .accordion-body {
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}
#productModal .accordion-button:not(.collapsed) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.addToCartBtn {
}
button:focus, button:focus-visible {
outline: none !important;
box-shadow: none !important;
}
#productModal .accordion-body {
    padding: 5px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 13px !important;
    font-weight: bold;
}
    
      .min-cart-badge {
    display: inline-flex;
    align-items: center;
          font-size: 12px;
}
    
    .min-cart-text {
        min-width: 60px;
        padding-left: 12px;
    } 

/* icon circle */
.min-cart-badge i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
    font-size: 13px;
    margin-right: -8px; /* badge ile birleşme */
    z-index: 2;
}

/* min sepet badge */
#minTutar {
    white-space: nowrap;
    font-size: 12px;
    background: #e9ecef;
    color: #555;
    padding: 6px 10px 6px 6px;
    border-radius: 0 14px 14px 0; /* sol düz, sağ oval */
    border: 1px solid #dee2e6;
    display: inline-block;
    line-height: 1;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0,0,0,.08);
}

/* istersen "Yok" veya özel durumlar için renk varyasyonu */
#minTutar.no-min {
    background: #ffc107; /* örnek: sarı */
    border-color: #ffc107;
    color: #111;
}

    
    .delivery-badge {
    display: inline-flex;
    align-items: center;
}

/* icon circle */
.delivery-badge i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
    font-size: 13px;
    margin-right: -8px; /* span ile birleşme */
    z-index: 2;
}

/* ücret badge */
#teslimatUcret {
    white-space: nowrap;
    font-size: 12px;
    background: #e9ecef;
    color: #555;
    padding: 6px 10px 6px 12px;
    border-radius: 0 14px 14px 0; /* sol düz, sağ oval */
    border: 1px solid #dee2e6;
    display: inline-block;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(0,0,0,.08);
}

/* ücretsiz ise yeşil */
#teslimatUcret.green {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

/* Küçük ekranlar (5 inç ve altı için güvenli alan) */
@media (max-width: 450px) {
#selly {
    bottom: 115px;
}
.addToCartBtn {
    width: 80px;
    font-size: 12px;
    padding-left: 5px;
    padding-right: 5px;
}
.qty-wrapper {
    width: 110px;
}
.qty-input {
    font-size: 12px;
    height: 35px;
    font-weight: bold;
}
/*#teslimatUcret {
    white-space: nowrap;
    font-size: 12px;
    background: #e9ecef;
    color: #555;
    padding: 3px 7px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    display: inline-block;
    line-height: 1;
}
    
    #teslimatUcret.green {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}*/
    
    
    
  


#tSureDiv {
    white-space: nowrap;
    font-size: 12px;
}
#mSepetDiv {
    white-space: nowrap;
    font-size: 12px;
}
.price-box {
    white-space: nowrap;
    font-size: 12px;
}
#productPriceWrapper {
    white-space: nowrap;
    font-size: 12px;
}
#productDesc {
    font-size: 12px;
}
.qty-btn {
    width: 25px;
    height: 35px;
}
.product-card p {
    font-size: 12px;
}
.product-card h6 {
    font-size: 14px;
    margin-bottom: 5px;
}
.product-card div strong {
    font-size: 14px;
}
.product-card .add-btn {
    font-size: 12px;
    width: 24px;
    height: 24px;
}
button.accordion-button {
    padding: 10px !important;
}
button.accordion-button::after {
    background-size: 15px 20px !important;
}
button.accordion-button span.fw-semibold.me-2 {
    font-size: 14px;
}
button.accordion-button span.option-summary {
    font-size: 12px;
}
#productImg {
    height: 140px !important;
}
#productModal .modal-body {
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-top: 0px !important;
}
#productModal h5#productTitle {
    font-size: 16px;
}
.category-nav {
    padding-bottom: 10px;
    scrollbar-width: thin;       /* Firefox */
    scrollbar-color: #ccc transparent;
}
.category-nav a {
    font-size: 14px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 4px;
    padding-bottom: 4px;
}
}

/* Ã‡ok küçük ekranlar (ekstra garanti) */
@media (max-width: 320px) {
.addToCartBtn {
    font-size: 13px;
}
}
.out-of-service-bar {
    background: #fff5f5;
    border: 1px solid #ffd6d6;
    border-radius: 16px;
    padding: 28px 20px;
    margin-bottom: 20px;
}
.oos-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    background: #ffe3e3;
    color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.oos-text h5 {
    font-weight: 600;
    color: #212529;
}
.oos-text p {
    font-size: 14px;
    color: #6c757d;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.5;
}
.oos-action .btn {
    border-radius: 12px;
    font-weight: 500;
}
</style>
<style>
.campaign-strip-wrapper {
    overflow-x: auto;
    padding: 0px !important;
}

.campaign-strip-wrapper.has-items {
    padding: 8px 0;
}

.campaign-strip {
    display: flex;
    gap: 14px;
}

.campaign-card {
    
    max-width: 320px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff6a00, #ff9f00);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}



.campaign-left {
    flex: 1;
    padding-right: 10px;
}

.campaign-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.campaign-desc {
    font-size: 12px;
    opacity: .95;
    line-height: 1.2;
    margin-top: 4px;

    display: -webkit-box;
    -webkit-line-clamp: 2; /* max 2 satır */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.campaign-right {
    min-width: 60px;
    text-align: right;
}

.campaign-discount {
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.campaign-unit {
    font-size: 10px;
    font-weight: 600;
    opacity: .9;
}
        
        .page-title {
    font-size: 1.4rem;              /* Büyük görünümü törpüler */
    font-weight: 600;               /* Modern yarı-bold */
    letter-spacing: -0.02em;        /* Premium hissi */
    color: #1f2937;                 /* Soft koyu gri */
    margin: 0px;
    padding-left: 10px;
    position: relative;
    margin-top: 20px;  
            margin-bottom: 20px;
}

.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(180deg, #ff7a18, #ffb347);
    border-radius: 2px;
}
        
        .campaign-modal {
    display: none; /* başta gizli */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1300 !important;
    overflow-y: auto;
}



/* Mobilde full screen */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        padding: 0px;
    }
    
    /* Kapat butonunu modal içinde en alta sabitle */
    #modalClose {
        position: sticky;
        bottom: 10px;
        align-self: stretch;
    }
}

        .campaign-terms ul {
    padding-left: 20px;
}

    
    
    /* Cover */
.cover-wrapper {
  position: relative;
  overflow: hidden;
}

.cover-img {
  width: 100%;
  height: 150px; /* dolgun ve görünür */
  object-fit: cover;
  display: block;
  filter: brightness(0.6);
}

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;               /* tam cover */
 
  display: block;          /* flex iptal, childleri kendi flowunda bırak */
  z-index: 2;

  /* Modern premium arkaplan */
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);

  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
  transition: all 0.3s ease;
}
.cover-overlay > .container {
    position: relative;
    z-index: 4;
}



/* Hover efekti (opsiyonel) */
.cover-overlay:hover {
  background: rgba(0,0,0,0.5);
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}


/* Delivery Box */
.delivery-box {
  position: absolute;
  top: 110px; /* cover üstüne binecek */
  left: 0;
  right: 0;
  height: 40px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  background-color: #fff;
  z-index: 5;
    /*margin-left: 10px;
    margin-right: 10px;
    width: calc(100% - 20px);*/
}

/* Campaign Strip */
.campaign-strip-wrapper {
  margin-top: 80px; /* delivery-box alt boşluk */
}

.campaign-strip {
  height: 40px; /* istediğin yüksekliği ayarlayabilirsin */
  background-color: #f8f9fa; /* placeholder renk */
  border-radius: 8px;
}


.text-white {
    text-shadow: 0 1px 2px rgba(0,0,0,0.6); /* hafif gölge, okunabilirlik için */
}

/* İstersen daha belirgin yapmak için */
.text-white .fw-bold,
.text-white .small {
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.sepetSecimler {
    font-size: 11px;
}


/* Başlangıçta modal aşağıda */
.modal.modal-bottom .modal-dialog {
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
  margin: 0; /* bottom sheet için */
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* Açılınca yukarı kayacak */
.modal.modal-bottom.show .modal-dialog {
  transform: translateY(0);
}

/* Opsiyonel: modal-content rounded-top */
.modal.modal-bottom .modal-content {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  overflow: hidden;
}
    
.delivery-badge {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    border-radius: 8px;
}

/* Sol kısım */
.delivery-left {
    background-color: #f1f1f1;
    padding: 6px 12px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    margin-right: -6px;
}

/* Ortadaki icon */
.delivery-center {
   
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sağ kısım */
.delivery-right {
    background-color: #f1f1f1;
    padding: 6px 12px;
    
       border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 12px;
}

/* Ücretsiz teslimat için özel renk */
.delivery-right.free {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(
        110deg,
        #c1121f 25%,
        #ff4d6d 45%,
        #c1121f 65%
    );
    background-size: 200% 100%;
    animation: redShine 2s linear infinite;
    border-radius: 8px;
}

@keyframes redShine {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}


    
    .dragging-clone {
        z-index: 101 !important;
    transition: transform 0.4s ease, opacity 0.4s ease;
}



/* ========================================
   DİKEY MİMARİ STYLES
======================================== */

/* Dikey Mimari aktif olduğunda */
.vertical-layout .category-section {
    display: block;
    box-sizing: border-box;
    padding-bottom: 20px;
    padding-top: 20px;
}

.category-section.no-populer {
    margin-top: 30px !important;
}



.price-new {
    color: #2e7d32;
    font-weight: 600;
    margin-right: 6px;
}

.price-old {
    color: #888;
    text-decoration: line-through;
    font-size: 0.9em;
}



.category-section.highlight {
    animation: blinkHighlight .9s linear;
}

@keyframes blinkHighlight {
    0%, 20%, 60%,100% {
        background-color: inherit; /* normal renk */
    }
    40%,80% {
        background-color: #ffe3e3; /* kırmızı blink */
    }
}


.vertical-layout .category-title {
    font-size: 20px;
    font-weight: 700;
    color: #4e4e4e !important;
    padding-left: 32px;
    margin:0px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}


.vertical-layout .category-title i {
    font-size: 20px;
    color: #ca6702;
}

/* Grid yapı - Her satırda 2 ürün */
.vertical-layout .products-grid-vertical {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-left: 16px;
    padding-right: 16px;
    
}

/* Dikey ürün kartı */
/*.vertical-layout .product-card-vertical {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: stretch;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    min-height: 140px;
    position: relative;
    cursor: pointer;
     border: 1px solid transparent;
}*/

.vertical-layout .product-card-vertical {
    background: rgba(255,255,255,0.8);
    border:1px solid #CCC !important;
    border-radius: 12px;
    overflow: hidden;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.08);*/
    display: flex;
    align-items: stretch;
    /*transition: box-shadow 0.3s ease, transform 0.2s ease;*/
    min-height: 140px;
    position: relative;
    cursor: pointer;
     /*border: 1px solid transparent;*/
}

.qty-editor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 20px;
    padding: 4px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.qty-editor button {
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
}

.qty-editor .qty {
    text-align: center;
    font-weight: 600;
    color: #111 !important;
}



.vertical-layout .product-card-vertical:hover {
    /* box-shadow: 0 8px 20px rgba(0,0,0,0.12); */
    /*transform: translateY(-2px);*/
    background-color: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.18);
}


.vertical-layout .product-card-vertical:active {
    transform: translateY(0);
}

/* Sol taraf - Bilgiler */
.vertical-layout .product-left {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vertical-layout .product-name-vertical {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vertical-layout .product-description-vertical {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vertical-layout .product-price-vertical {
    font-size: 16px;
    font-weight: 700;
    color: #444;
}

.vertical-layout .populer-vertical {
    font-size: 12px;
    color: #444;
    margin-bottom: 10px;

    display: inline-block;       /* badge gibi davranması için */
    padding: 2px 6px;            /* iç boşluk */
    border: 1px solid #999;      /* gri outline */
    border-radius: 12px;         /* yuvarlatılmış köşe */
    background-color: transparent; /* arka plan şeffaf */
    font-weight: 600;             /* istersen biraz kalın */
}


.vertical-layout .populer-vertical i{
font-size: 12px;
}

/* Sağ taraf - Resim */
.vertical-layout .product-right {
    position: relative;
    width: 140px;
    min-height: 140px;
    flex-shrink: 0;
}

.vertical-layout .product-image-vertical {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f1f3f5;
}

/* Sepete Ekle Butonu - Sağ Alt Köşede */
.vertical-layout .add-btn-vertical {
    position: absolute;
    bottom: 8px;
    right: 8px;
    min-width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #FFF;
    color: #333;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;

    box-shadow: 0 4px 12px rgba(50, 50, 50, 0.3);
    font-size: 14px; /* icon için ideal */
    line-height: 1;
    padding: 0;

    z-index: 10;
}

/* ikon ortalama garantisi */
.vertical-layout .add-btn-vertical i {
    pointer-events: none;
}

.vertical-layout .add-btn-vertical:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.5);
    background: #333;
    color: #FFF;
}
    
    
    

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

/* Responsive - Mobilde tek sütun */
@media (max-width: 576px) {
    .vertical-layout .products-grid-vertical {
        grid-template-columns: 1fr;
    }

    .vertical-layout .product-card-vertical {
        flex-direction: row;
    }

    .vertical-layout .product-right {
        width: 120px;
        min-height: 120px;
    }

    .vertical-layout .add-btn-vertical {
        bottom: 6px;
        right: 6px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .vertical-layout .product-name-vertical {
        font-size: 14px;
    }

    .vertical-layout .product-description-vertical {
        font-size: 12px;
    }

    .vertical-layout .product-price-vertical {
        font-size: 14px;
    
    }
    
    .vertical-layout .category-title {
        font-size: 18px;
    }
}

/* Tablet için özel düzenleme */
@media (min-width: 577px) and (max-width: 768px) {
    .vertical-layout .product-right {
        width: 130px;
        min-height: 130px;
    }
    
    .vertical-layout .product-name-vertical {
        font-size: 15px;
    }
}

/* Görünüm değiştirme toggle butonu */
.view-toggle-wrapper {
    background: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view-toggle-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.toggle-switch-control {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

.toggle-switch-control input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 28px;
}

.toggle-slider-round:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .toggle-slider-round {
    background: linear-gradient(135deg, #ca6702, #e77c18);
}

input:checked + .toggle-slider-round:before {
    transform: translateX(28px);
}



/* Boş kategori mesajı */
.vertical-layout .empty-category {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.vertical-layout .empty-category i {
    font-size: 32px;
    opacity: 0.4;
    margin-bottom: 10px;
}

.overlay-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: rgba(0,0,0,0.2);
    backdrop-filter: blur(.8px); /* hafif blur efekti */
    -webkit-backdrop-filter: blur(.8px); /* Safari uyumluluğu */
    z-index: 10;
}

.badge-dark {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    color: #fff; /* yazı rengi beyaz */
    background-color: #212529; /* koyu gri / siyah */
}


.populer-section {
    box-sizing: border-box !important;
    width: 100% !important;

    padding-left: 16px !important;
    padding-bottom: 16px !important;
    padding-top: 16px !important;
    margin-top: 30px;

    overflow-x: auto;
    overflow-y: hidden;

    /* Satış odaklı animasyonlu gradient */
    background: linear-gradient(
        120deg,
        #fff5f5,
        #ffe3e3,
        #ffd6d6,
        #ffecec,
        #fff5f5
    );
    background-size: 300% 300%;
    animation: populerGradientFlow 8s ease infinite;

    /* Alt gölge */
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

@keyframes populerGradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


@media (min-width: 992px) {
    .populer-section {
        width: calc(100% - 28px) !important;
        border-radius: 16px !important;
        margin-left: 14px !important;
        margin-right: 14px !important;
         margin-top: 54px !important;
        
    }
}




/* Yatay scroll container */
/* Yatay scroll container */
.populer-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

/* WebKit tarayıcılar (Chrome, Safari, Edge) */
.populer-row::-webkit-scrollbar {
    display: none;
}

.populer-card {
    position: relative;
    flex: 0 0 auto;
    max-width: 160px;
    border: 1px solid #ffe3e3 !important;
    border-radius: 12px !important;
    background: #fff;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.5rem;
    cursor: pointer;
}



.populer-card:hover {
    filter: brightness(1.1);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6);
}



.populer-card:last-child {
    margin-right: 16px !important;
}


.populer-img-wrapper {
    width: 80px;
    height: 80px; /* max height */
    position: relative;
    overflow: hidden;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.populer-img-wrapper img.populer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.populer-name {
    font-size: 0.65rem;
    text-align: left;
    margin-bottom: 0;
}

.populer-price {
    font-size: 0.65rem;
    text-align: left;
    /*margin: 0 0 0.5rem 0;*/
    color: #6c757d;
}

.add-btn-populer {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 16px;
    height: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    /* Kırmızı gradyan */
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff; /* Beyaz ikon/göstergeler için */
    
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;

    box-shadow: 0 4px 12px rgba(50, 50, 50, 0.3);
    font-size: 8px;
    line-height: 1;
    padding: 0;

    z-index: 10;
}

/* Hover efekti (isteğe bağlı) */
.add-btn-populer:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(50, 50, 50, 0.4);
}

@keyframes populerGlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}



/* ===== Split Product Modal Layout ===== */

/* ===== SPLIT PRODUCT MODAL ===== */

.modal-product-split {
    border-radius: 20px !important;
    overflow: hidden !important;
    height: auto;
    max-height: 90vh;
    z-index: 51;

    /* premium shadow */
    box-shadow:
        0 30px 80px rgba(0,0,0,0.35),
        0 10px 30px rgba(0,0,0,0.2) !important;

    border: none !important;
}

/* Bootstrap override */
.modal-content.modal-product-split {
    background: #fff !important;
}

/* modal body */
.modal-product-split .modal-body {
    height: 100%;
    padding: 0 !important;
    overflow: hidden;
}

/* iki kolon layout */
.modal-product-split .product-layout {
    display: flex;
    height: 100%;
}

/* SOL: görsel alan */
.modal-product-split .product-left {
    position: relative;
    width: 40%;
    background: #000;

    /* sağa doğru yumuşak shadow */
    box-shadow: 12px 0 24px rgba(0,0,0,0.18);
    z-index: 2;
}


.modal-product-split .product-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.heart-favorite {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.7); /* beyaz arka plan */
    border: 1px solid rgba(0,0,0,0.1); /* hafif çerçeve */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: rgba(10,10,10,0.7); /* koyu renk ikon */
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 10;
    text-decoration: none;
}

.heart-favorite:hover {
    transform: scale(1.1);
    background: #f0f0f0; /* hover hafif gri */
}

/* SAĞ: içerik alanı */
.modal-product-split .product-right {
    width: 60%;
    display: flex;
    flex-direction: column;
    padding: 0px;
    overflow: hidden;
    background: #fff;
}

/* üst başlık */
.modal-product-split .product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #f7f7f7;
    border-bottom: 1px solid #e5e5e5;

    padding: 12px;

    border-top-right-radius: 20px;

    min-height: 56px; /* dikey merkez stabil olur */
}

.modal-product-split .product-header h5 {
    margin: 0;
    display: flex;
    align-items: center;
}


.ios-glass-close{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;

    /* Glass effect */
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
     color: #333 !important;
}

.ios-glass-close .btn-close{
    opacity: 0.9;
    color: #333 !important;
}



/* içerik scroll alanı */
.modal-product-split .product-scroll {
    flex: 1;
    overflow-y: auto;
    margin-top: 10px;
    padding: 16px;
    color:#666;
    font-size: 14px;
}

/* alt aksiyon alanı */
.modal-product-split .product-actions {
    margin: 16px;

    /* üst çizgi ve boşluk */
    border-top: 1px solid #e5e5e5;
    padding-top: 16px;
}


/* scroll görünümü */
.modal-product-split .product-scroll::-webkit-scrollbar {
    width: 6px;
}

.modal-product-split .product-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
}

/* küçük ekran fallback */
@media (max-width: 991px) {
    .modal-product-split .product-layout {
        flex-direction: column;
    }

    .modal-product-split .product-left {
        width: 100%;
        height: 220px;
    }

    .modal-product-split .product-right {
        width: 100%;
    }
}

/* dialog ortalama */
.modal-dialog-centered {
    min-height: calc(100% - 1rem) !important;
    display: flex !important;
    align-items: center !important;
}

.modal-flyback {
    position: fixed !important;
    margin: 0 !important;
    z-index: 2000;
    transition: transform 450ms cubic-bezier(.22,1,.36,1),
                opacity 450ms ease;
    will-change: transform, opacity;
}


.xcategory-navbar-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    background: #fff !important;
    border-bottom: 1px solid #ddd !important;
    position: fixed !important;
    top: 151px !important;
    left: 0 !important;
    z-index: 50 !important;

    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;

    border-radius: 0px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;

    /* scroll bar gizleme */
    -ms-overflow-style: none;  /* IE ve Edge */
    scrollbar-width: none;     /* Firefox */
}
.xcategory-navbar-wrapper::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}


.xcategory-navbar-wrapper .container {
    padding: 0px !important;
}


.xcategory-navbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-search {
    position: relative;
    margin-left: 16px;
}

.category-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 12px;
}

.category-search input {
    width: 140px;
    padding: 4px 10px 4px 28px;
    border-radius: 16px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 12px;
    line-height: 1.2;
    height: 28px;
    background: #f1f3f5; /* gri arka plan */
}

.category-search input.compact {
    width: 16px !important;
    
}


.category-search input:focus {
    border-color: #bbb;
}


.xcategory-navbar {
    display: flex;
    gap: 1rem;
    padding: 0rem 1rem; /* dikey padding artırıldı, modern boşluk */
    overflow-x: auto;
    scrollbar-width: none; /* Firefox scrollbar gizle */
    flex: 1;
}
.xcategory-navbar::-webkit-scrollbar {
    display: none; /* Chrome/Safari scrollbar gizle */
}

.xcategory-navbar a {
    text-decoration: none;
    color: #4a4a4a !important;
    font-weight: 600;
    padding: 0.5rem 0; /* alt üst padding ile link yüksekliği arttı */
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.85rem;
    padding-bottom: 0.5rem;
}

.xcategory-navbar a small{
color:#777;
}

.xcategory-navbar a:hover {
    color: #000; /* hover ile kontrast artışı */
}

.xcategory-navbar a.active {
    border-bottom: 3px solid #ff4d4f; /* modern accent renk */
    color: #000;
}


#dikeyCats {
    position: sticky !important;
    width: 25%;
    top: 160px !important;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 50vh;
    background: #fff;

    border: 1px solid #e5e7eb;      /* gri border */
    border-radius: 14px;            /* köşeler yuvarlak */

    box-shadow: 0 4px 14px rgba(0,0,0,0.08); /* hafif gölge */
    
    overflow: hidden; /* iç radius düzgün görünsün */
    margin-left:20px;
}


/* kategori alanı */
#catsView {
    flex: 1;
    overflow-y: auto;
    
}

/* sepet alanı */
#cartView {
    border-top: 1px solid #eee;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;

    /* Firefox */
    scrollbar-width:thin;
    scrollbar-color: rgba(0,0,0,.25) transparent;
}

/* Chrome, Edge, Safari */
#cartView::-webkit-scrollbar {
    width: 2px !important;
}

#cartView::-webkit-scrollbar-track {
    background: transparent;
}

#cartView::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.25);
    border-radius: 10px;
    transition: background .2s;
}

#cartView::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,.3);
}


/* başlık */
.cart-header {
    padding: 6px;
    padding-left: 12px;
    padding-right: 12px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    background: #fff;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-clear-btn {
    border: none;
    background: transparent;
    color: #ff3b30;
    font-size: 15px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
}

.cart-clear-btn:hover {
    background: rgba(255,59,48,0.08);
}

/* ürün listesi */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    min-height: 0; /* scroll buglarını engeller */
    padding-bottom: 6px;
}

/* tek ürün */
.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    background: #fff;
    padding: 8px;
    font-size: 12px;
    transition: 0.2s;
    border-bottom: 1px solid #efefef;
}

.cart-item:hover {
  
}
.product-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}


/* alt toplam alanı */
.cart-footer {
    padding: 12px;
    background: #fff;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}


/* sipariş butonu */
.cart-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}


.cart-item-modern {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #fff;
    margin-bottom: 0px;
    border-bottom: 1px solid #efefef;
}
.cart-item-modern:last-child {
    border-bottom: none;
}

/* ürün resmi */
.cart-product-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

/* sağ taraf */
.cart-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;          /* satırlar arası boşluk */
    line-height: 1.2;  /* metin yüksekliği */
}


/* üst satır */
.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.sepetUrunAdi {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}


/* kaldır butonu */
.cart-remove-btn {
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    padding: 4px;
}

.cart-remove-btn:hover {
    color: #ff3b30;
}

/* alt satır */
.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sepetTutar {
    font-size: 12px;
    color: #666;
}

/* adet kontrol */
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #CCC;
    border-radius: 20px;
    overflow: hidden;
}

.qty-control button {
    background: transparent;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #CCC;
    border-radius: 50%;
    padding: 4px;
    margin: 0px !important;
    color: #555;
}

.qty-control button:hover {
    background: #EFEFEF;
}


.qty-control span {
    width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}


.btn-gradient-red {
    color: #fff;
    border: none;
    background: linear-gradient(135deg, #c1121f, #e5383b, #ba181b);
    background-size: 200% 200%;
    transition: all .25s ease;
}

.btn-gradient-red:hover {
    background-position: right center;
    filter: brightness(1.05);
}

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

/* disabled state */
.btn-gradient-red:disabled,
.btn-gradient-red.disabled {
    background: #d6d6d6;
    color: #888;
    cursor: not-allowed;
    filter: none;
    transform: none;
    box-shadow: none;
}

.cartNotifyArea {
    background: #f5f6f8;
    color: #555;
    font-size: 14px;
    padding: 10px 12px;
    border-top: 1px solid #e2e3e6;
    display: none;
}

.cartNotifyArea.active {
    display: block;
}

.cartCampaignArea {
    display: none;
   
    padding: 12px 14px;

    color: #fff;
    font-weight: 600;
    font-size: 14px;

    background: linear-gradient(135deg, #c1121f, #e5383b, #ba181b);
    background-size: 200% 200%;
    animation: campaignShine 3s linear infinite;

    box-shadow: 0 6px 18px rgba(0,0,0,0.15);

    position: relative;
    overflow: hidden;
}

/* ikon efekti */
.cartCampaignArea::before {
    content: "\f295";
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
}


/* hafif shine */
@keyframes campaignShine {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}

/* aktif olduğunda göster */
.cartCampaignArea.active {
    display: block;
}



