
        /* TEMEL AYARLAR */
        :root { --primary: #ff5a00; --bg: #f8f9fa; --text: #333; --green: #02c076; --red: #e74c3c; --orange: #f39c12; }
        @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
        * { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }
        html { overflow-x: hidden; }
        html { overflow-x: hidden; }
        html { overflow-x: hidden; }
        html { overflow-x: hidden; }
        body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); margin: 0; padding-bottom: calc(118px + env(safe-area-inset-bottom)); color: var(--text); overflow-x: hidden; scroll-behavior: smooth; }
        
        /* LOGO SPLASH CSS */
        #splashOverlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100dvh;
            background: linear-gradient(180deg,#ffefd9 0%,#fffaf3 45%,#ffffff 100%);
            z-index: 99999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        /* Logo etrafında yumuşak altın parıltı halkası */
        #splashLogoWrap {
            position: relative;
            width: 220px;
            height: 220px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #splashLogoWrap::before {
            content: '';
            position: absolute;
            inset: -30px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(212,168,67,0.35) 0%, rgba(212,168,67,0.12) 45%, transparent 70%);
            animation: splashGlow 1.6s ease-in-out 0.35s infinite alternate;
            opacity: 0;
        }

        #splashLogo {
            width: 220px;
            height: 220px;
            object-fit: contain;
            position: relative;
            z-index: 1;
            /* Küçükten büyüğe dönerek gelir, sonunda hafif zıplama */
            animation: splashSpinIn 0.65s cubic-bezier(0.22,1.2,0.36,1) both;
            will-change: transform, opacity;
        }

        #splashTagline {
            color: rgba(107,74,34,0.75);
            font-size: 14px;
            font-weight: 600;
            margin-top: 18px;
            letter-spacing: 1px;
            animation: splashFadeIn 0.4s ease 0.35s both;
        }

        #splashDots {
            display: flex;
            gap: 8px;
            margin-top: 40px;
            animation: splashFadeIn 0.4s ease 0.45s both;
        }

        #splashDots span {
            width: 7px; height: 7px;
            background: var(--primary);
            border-radius: 50%;
            animation: splashDot 1.2s ease-in-out infinite;
        }
        #splashDots span:nth-child(2) { animation-delay: 0.2s; }
        #splashDots span:nth-child(3) { animation-delay: 0.4s; }

        @keyframes splashSpinIn {
            0%   { transform: scale(0.15) rotate(-360deg); opacity: 0; }
            60%  { transform: scale(1.08) rotate(8deg);    opacity: 1; }
            80%  { transform: scale(0.97) rotate(-2deg); }
            100% { transform: scale(1)    rotate(0deg);    opacity: 1; }
        }
        @keyframes splashGlow {
            from { opacity: 0.4; transform: scale(0.92); }
            to   { opacity: 1;   transform: scale(1.06); }
        }
        @keyframes splashFadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @keyframes splashDot {
            0%, 80%, 100% { transform: scale(1);   opacity: 0.4; }
            40%            { transform: scale(1.4); opacity: 1;   }
        }
        /* Hareket hassasiyeti olan kullanıcılar için dönmeyi kapat */
        @media (prefers-reduced-motion: reduce) {
            #splashLogo { animation: splashFadeIn 0.3s ease both; }
            #splashLogoWrap::before { animation: none; opacity: 0.5; }
        }

        /* HEADER & NAVBAR */
        .app-header { background: white; padding: 10px 15px; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; align-items: center; gap: 10px; }
        .logo-img { height: 45px; object-fit: contain; width: auto; }
        .header-info { flex: 1; display: flex; flex-direction: column; justify-content: center; cursor: pointer; }
        .app-title { font-weight: 800; font-size: 16px; line-height: 1.2; }
        .branch-select-btn { font-size: 12px; color: var(--primary); display: flex; align-items: center; gap: 5px; font-weight: 600; }
        .change-branch-hint { font-size: 10px; color: #aaa; font-weight: 500; margin-top: 1px; display: none; }

        /* BÖLGE ARAMA */
        .area-search-wrap { position: relative; margin-bottom: 8px; position: sticky; top: 0; z-index: 10; background: #f8f6f4; padding-bottom: 4px; }
        .area-search-input { width: 100%; padding: 18px 58px 18px 52px; border: 3px solid var(--primary); border-radius: 18px; font-size: 17px; font-weight: 600; outline: none; transition: box-shadow 0.2s, border-color 0.2s; background: #fff8f5; box-sizing: border-box; box-shadow: 0 8px 24px rgba(255,90,0,.16); }
        .area-search-input::placeholder { font-weight: 500; color: #c98a6a; }
        .area-search-input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 5px rgba(255,90,0,.15), 0 8px 24px rgba(255,90,0,.18); }
        .area-search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 19px; pointer-events: none; }
        .area-search-hint { font-size: 11.5px; color: #999; margin-bottom: 10px; margin-top: -8px; text-align: center; }
        @keyframes searchPulse { 0%,100%{box-shadow:0 0 0 0 rgba(255,90,0,.25)} 50%{box-shadow:0 0 0 6px rgba(255,90,0,.0)} }
        .area-search-input.pulse-once { animation: searchPulse 1.2s ease 3; }
        /* Search results: inline panel — cardBody scroll ile yönetilir */
        .area-suggestions {
            display: none;
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 6px 24px rgba(0,0,0,0.13);
            overflow: hidden;
            max-height: 220px;
            overflow-y: auto;
            /* input'u kapatmasın — flow içinde, altında */
            position: relative;
            z-index: 10;
            margin-top: 6px;
        }
        .area-suggestion-item { padding: 11px 14px; cursor: pointer; font-size: 14px; border-bottom: 1px solid #f0ece8; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: background 0.12s; border-radius: 11px; margin-bottom: 3px; background: white; }
        .area-suggestion-item:last-child { border-bottom: none; margin-bottom: 0; }
        .area-suggestion-item:hover, .area-suggestion-item.highlighted { background: #fff5f0; border-color: #ffd5bf; }
        /* When searching: hide chips/grid/dividers, show results full-height */
        /* searching class artık kullanılmıyor — yeni layout'ta suggestions hero içinde */
        .area-suggestion-branch { font-size: 11px; color: var(--primary); font-weight: 700; margin-left: auto; white-space: nowrap; }
        .area-detected-badge { background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #2e7d32; margin-bottom: 12px; display: none; align-items: center; gap: 8px; font-weight: 600; }
        .area-or-divider { display: flex; align-items: center; gap: 10px; color: #bbb; font-size: 12px; margin: 0 0 10px; }
        .area-or-divider::before, .area-or-divider::after { content:''; flex:1; height:1px; background:#eee; }
        .lang-switch { background: #f0f0f0; border-radius: 20px; padding: 6px 12px; font-size: 12px; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 5px; margin-left: auto; }
        #langSwitchBtn { background: var(--primary) !important; color: white !important; padding: 8px 14px !important; font-size: 13px !important; border-radius: 22px !important; box-shadow: 0 2px 8px rgba(255,90,0,0.35); transition: transform 0.15s, box-shadow 0.15s; }
        #langSwitchBtn:active { transform: scale(0.95); }
        #langSwitchBtn i { font-size: 15px; }
        
        /* ── HERO SECTION (slider yerine) ─────────────────────── */
        .header-slider { width: 100%; height: 260px; position: relative; overflow: hidden; background: #1a1a1a; }
        @media (min-width: 768px) { .header-slider { height: 420px; } }
        @media (min-width: 1024px) { .header-slider { height: 560px; } }

        .hero-bg-img {
            width: 100%; height: 100%;
            object-fit: cover;
            position: absolute; top: 0; left: 0;
            transition: opacity 0.8s ease;
        }
        .hero-overlay {
            position: absolute; inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.08) 65%);
            display: flex; flex-direction: column; justify-content: flex-end;
            padding: 22px 20px 26px;
            z-index: 2;
        }
        @media (min-width: 768px) { .hero-overlay { padding: 36px 40px 44px; } }
        .hero-badge {
            display: inline-block;
            background: var(--primary);
            color: white; font-size: 11px; font-weight: 800;
            padding: 4px 12px; border-radius: 20px;
            margin-bottom: 10px; letter-spacing: 0.5px; width: fit-content;
        }
        .hero-title {
            color: white; font-size: 22px; font-weight: 900;
            line-height: 1.25; margin-bottom: 6px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.6);
        }
        @media (min-width: 768px) { .hero-title { font-size: 34px; } }
        .hero-price {
            color: rgba(255,255,255,0.88);
            font-size: 16px; font-weight: 700; margin-bottom: 18px;
        }
        .hero-cta {
            display: inline-flex; align-items: center; gap: 8px;
            background: var(--primary); color: white;
            font-size: 15px; font-weight: 700;
            padding: 13px 26px; border-radius: 30px;
            border: none; cursor: pointer;
            box-shadow: 0 4px 20px rgba(255,90,0,0.5);
            width: fit-content; transition: transform 0.15s, box-shadow 0.15s;
            font-family: inherit;
        }
        .hero-cta:active { transform: scale(0.96); box-shadow: 0 2px 10px rgba(255,90,0,0.4); }
        .hero-skeleton {
            position: absolute; inset: 0;
            background: linear-gradient(90deg, #1e1e1e 25%, #2d2d2d 50%, #1e1e1e 75%);
            background-size: 200% 100%;
            animation: heroSkel 1.5s ease-in-out infinite;
        }
        @keyframes heroSkel { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
        [lang="ar"] .hero-overlay { align-items: flex-end; text-align: right; }
        /* ─────────────────────────────────────────────────────── */
        
        /* BANNER */
        .closed-banner { background: #fff4e2; color: #7a4300; border-bottom: 1px solid #f3d6a4; padding: 11px 14px; text-align: center; font-size: 13.5px; font-weight: 700; line-height: 1.4; display: none; position: relative; z-index: 1001; box-shadow: 0 3px 10px rgba(122,67,0,0.08); }
        /* 📅 Kapalı şube bandı: kırmızı "kapalı" uyarısı müşteriyi caydırıyordu. "Closed" rozeti zaten
           üstte duruyor; bu bant artık ön-sipariş DAVETİ (krem zemin, sıcak kahve yazı, turuncu takvim). */
        .closed-banner .cb-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-inline-end: 7px; vertical-align: middle; border-radius: 50%; background: #ff5a00; color: #fff; font-size: 12px; box-shadow: 0 2px 6px rgba(255,90,0,.3); }
        /* 🟠 Yoğun şube bandı — kapalı bandı ile aynı dil: uyarı değil, davet (sipariş alınmaya devam ediyor) */
        .busy-banner { background: #fff4e2; color: #7a4300; border-bottom: 1px solid #f3d6a4; padding: 11px 14px; text-align: center; font-size: 13.5px; font-weight: 700; line-height: 1.4; display: none; position: relative; z-index: 1001; box-shadow: 0 3px 10px rgba(122,67,0,0.08); }
        .busy-banner .cb-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-inline-end: 7px; vertical-align: middle; border-radius: 50%; background: #ff5a00; color: #fff; box-shadow: 0 2px 6px rgba(255,90,0,.3); }
        
        .hero { padding: 15px; padding-top: 20px; } 
        @keyframes gradient-anim { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
        .promo-banner { background: linear-gradient(-45deg, #ff5a00, #ff9045, #ff3d00, #ffb74d); background-size: 400% 400%; animation: gradient-anim 5s ease infinite; color: white; border-radius: 12px; margin-bottom: 10px; position: relative; box-shadow: 0 4px 18px rgba(255, 90, 0, 0.4); min-height: 64px; display: flex; flex-direction: column; align-items: stretch; overflow: hidden; border: 1.5px solid rgba(255,255,255,0.25); }
        /* Parlama süpürmesi */
        .promo-banner::after { content:''; position:absolute; top:0; left:-100%; width:60%; height:100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent); animation: promoBannerShimmer 2.8s ease-in-out infinite; z-index:3; pointer-events:none; }
        @keyframes promoBannerShimmer { 0%{left:-60%} 60%,100%{left:130%} }
        /* Kayan yazı şeridi */
        .promo-ticker-wrap { background: rgba(0,0,0,0.18); backdrop-filter:blur(4px); overflow:hidden; white-space:nowrap; padding: 4px 0; border-top: 1px solid rgba(255,255,255,0.15); flex-shrink:0; }
        .promo-ticker-inner { display:inline-block; animation: promoTicker 18s linear infinite; }
        .promo-ticker-inner:hover { animation-play-state: paused; }
        @keyframes promoTicker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
        .promo-ticker-item { display:inline-block; font-size:11px; font-weight:700; padding:0 18px; letter-spacing:0.3px; }
        .promo-ticker-dot { display:inline-block; opacity:0.6; margin:0 4px; }
        .promo-content { padding: 10px 14px 8px; width: 100%; z-index: 2; flex:1; }
        .promo-img-overflow { position: absolute; right: 8px; bottom: -6px; top: -8px; height: 100px; width: auto; max-width: 100px; object-fit: contain; transform: rotate(-5deg); filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); z-index: 5; }
        .promo-title { font-size: 15px; font-weight: 800; margin-bottom: 2px; text-shadow: 0 1px 3px rgba(0,0,0,0.3); line-height: 1.1; }
        /* İndirim badge'i nabız atar */
        .promo-val-badge { display:inline-block; background:white; color:#ff3d00; font-size:13px; font-weight:900; padding:2px 10px; border-radius:20px; animation: promoValPulse 1.5s ease-in-out infinite; box-shadow:0 2px 8px rgba(0,0,0,0.2); }
        @keyframes promoValPulse { 0%,100%{transform:scale(1);box-shadow:0 2px 8px rgba(0,0,0,0.2)} 50%{transform:scale(1.06);box-shadow:0 4px 16px rgba(255,61,0,0.4)} }
        .timer-badge { background: rgba(0,0,0,0.25); padding: 2px 8px; border-radius: 20px; font-size: 10px; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; width: fit-content; backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2); }
        /* CAMPAIGN PRODUCT THUMBNAILS */
        .campaign-section { margin-bottom: 20px; }
        .campaign-prods-label { font-size: 12px; font-weight: 700; color: var(--primary); margin: 8px 4px 6px 4px; display: flex; align-items: center; gap: 5px; }
        .campaign-prods-scroll { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 92px; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x proximity; }
        .campaign-prods-scroll::-webkit-scrollbar { display: none; }
        .campaign-prod-thumb { width: 100%; scroll-snap-align: start; background: white; border-radius: 10px; overflow: hidden; border: 1.5px solid #ffe0cc; box-shadow: 0 2px 8px rgba(255,90,0,0.1); cursor: pointer; transition: transform 0.15s; }
        .campaign-prod-thumb:active { transform: scale(0.95); }
        .campaign-prod-thumb img { width: 100%; height: 70px; object-fit: cover; display: block; background: #f9f9f9; }
        .campaign-prod-thumb-info { padding: 5px 6px 6px; }
        .campaign-prod-name { font-size: 10px; font-weight: 700; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
        .campaign-prod-price { display: flex; flex-direction: column; gap: 0px; }
        @media (max-width: 767px) {
            .campaign-prods-scroll { grid-auto-columns: 80px; gap: 6px; }
            .campaign-prod-thumb img { height: 56px; }
            .campaign-prod-thumb-info { padding: 4px 5px 5px; }
            .campaign-prod-name { font-size: 9px; margin-bottom: 1px; }
        }
        
        /* LİSTELER */
        .popular-scroll { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 10px; scrollbar-width: none; margin-bottom: 20px; }
        .popular-item { min-width: 120px; width: 120px; background: white; border-radius: 10px; padding: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); text-align: center; cursor: pointer; border: 1px solid #f0f0f0; }
        .popular-img { width: 100%; height: 80px; object-fit: contain; border-radius: 8px; margin-bottom: 5px; background: #f9f9f9; padding: 5px; }
        .popular-name { font-size: 11px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        
        .branch-details { background: #333; color: #ddd; padding: 15px; font-size: 13px; display: none; border-top: 1px solid #444; position: sticky; top: 65px; z-index: 1001; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
        .controls-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 15px 10px 15px; position: sticky; top: 65px; background: var(--bg); z-index: 800; padding-top: 10px; }
        .view-toggles { display: none; }
        
        .cat-scroll { display: flex; overflow-x: auto; gap: 10px; padding: 0 15px 15px 15px; scrollbar-width: none; position: sticky; top: 105px; background: var(--bg); z-index: 799; padding-bottom: 10px; }
        .cat-pill { background: white; padding: 8px 16px; border-radius: 20px; font-weight: 600; color: #666; white-space: nowrap; border: 1px solid #eee; transition: .2s; cursor: pointer; font-size: 13px; }
        .cat-pill.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 2px 5px rgba(255, 90, 0, 0.3); }
        .cat-section-title { font-size: 18px; font-weight: 800; margin: 20px 15px 10px 15px; padding-top: 10px; color: var(--text); display: flex; align-items: center; gap: 10px; }
        .cat-section-title::after { content:''; flex:1; height:1px; background:#e0e0e0; }

        /* --- AKILLI TASARIM (RESPONSIVE GRID) --- */
        .prod-grid { display: grid; gap: 10px; padding: 0 10px; grid-template-columns: repeat(2, 1fr); }
        .prod-card { 
            background: white; border-radius: 12px; overflow: hidden; 
            box-shadow: 0 2px 5px rgba(0,0,0,0.03); position: relative; cursor: pointer; 
            border: 1px solid #f0f0f0; transition: transform 0.1s;
            display: flex; flex-direction: column; align-items: flex-start; padding: 0; min-height: unset;
        }
        .prod-img-wrap { width: 100%; height: 140px; background: #f9f9f9; border-radius: 0; flex-shrink: 0; margin-right: 0; position: relative; overflow: hidden; padding: 0; }
        .prod-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; background: #f0f0f0; }
        /* 🌫️ Blur-up: görseller yüklenirken "pat" diye belirip kaybolmasın,
           bulanıktan nete yumuşak gelsin (sayfa dolarken anormallik hissi olmaz) */
        .prod-img, .bm-pick-img, .bm-prod-img {
            opacity: 0;
            filter: blur(14px);
            transition: opacity .55s ease, filter .55s ease,
                        transform .45s cubic-bezier(.2,.7,.25,1);
        }
        .prod-img.img-loaded, .bm-pick-img.img-loaded, .bm-prod-img.img-loaded {
            opacity: 1;
            filter: blur(0);
        }
        .prod-info { width: 100%; display: flex; flex-direction: column; justify-content: center; padding: 8px; padding-bottom: 76px; }
        .prod-name { font-size: 12px; font-weight: 700; margin-bottom: 4px; color: var(--text); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .prod-desc-preview { display: none; }
        .prod-price { font-size: 13px; font-weight:800; color:var(--text); }
        .action-btns { position: absolute; bottom: 8px; left: 8px; right: 8px; display: flex; flex-direction: column; gap: 6px; }
        .action-row { display: flex; gap: 6px; }

        /* ÜYELİK TEŞVİK BANNER */
        .membership-banner {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            margin: 15px;
            border-radius: 15px;
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
            display: none;
            animation: slideDown 0.5s ease;
        }
        @keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
        .membership-banner h3 { margin: 0 0 10px 0; font-size: 18px; }
        .membership-banner p { margin: 5px 0; font-size: 13px; opacity: 0.9; }
        .membership-benefits { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
        .benefit-tag { background: rgba(255,255,255,0.2); padding: 8px 12px; border-radius: 20px; font-size: 11px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); }
        .membership-actions { display: flex; gap: 10px; margin-top: 15px; }
        .membership-actions button { flex: 1; padding: 10px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; }
        .btn-join { background: white; color: #667eea; }
        .btn-skip { background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.3); }

        /* SOSYAL GİRİŞ BUTONLARI */
        .social-auth-btn {
            display: flex; align-items: center; justify-content: center; gap: 12px;
            width: 100%; padding: 13px 16px; border-radius: 12px; font-size: 15px;
            font-weight: 600; cursor: pointer; border: 1.5px solid #e0e0e0;
            background: white; color: #222; margin-bottom: 10px;
            transition: all 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
            -webkit-tap-highlight-color: transparent;
        }
        .social-auth-btn:active { transform: scale(0.98); background: #f5f5f5; }
        .social-auth-btn.apple { background: #000; color: #fff; border-color: #000; }
        .social-auth-btn.apple:active { background: #222; }
        .social-auth-btn svg { flex-shrink: 0; }
        .social-or-divider {
            display: flex; align-items: center; gap: 10px; margin: 5px 0 15px 0; color: #aaa; font-size: 13px;
        }
        .social-or-divider::before, .social-or-divider::after { content:''; flex:1; height:1px; background:#e8e8e8; }
        .otp-toggle-btn {
            width: 100%; padding: 13px; border-radius: 12px; font-size: 14px;
            font-weight: 600; cursor: pointer; border: 1.5px solid #e0e0e0;
            background: #fafafa; color: #555; margin-bottom: 5px;
            display: flex; align-items: center; justify-content: center; gap: 8px;
            transition: all 0.2s;
        }
        .otp-toggle-btn:active { background: #f0f0f0; }
        #otpSection { display: none; }
        #otpSection.visible { display: block; }

        /* SOSYAL GİRİŞ SONRASI TELEFON MODAL */
        #socialPhoneModal .modal-center { max-width: 380px; }
        .social-user-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; background: #f8f9fa; border-radius: 12px; padding: 12px; }
        .social-user-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #ddd; }
        .social-user-info { flex: 1; }
        .social-user-name { font-weight: 700; font-size: 14px; }
        .social-user-email { font-size: 12px; color: #888; }

        /* PWA INSTALL BANNER */
        .install-banner {
            background: linear-gradient(135deg, #ff5a00 0%, #ff9045 100%);
            color: white;
            padding: 15px 20px;
            margin: 15px;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(255, 90, 0, 0.3);
            display: none;
            align-items: center;
            gap: 15px;
            animation: slideDown 0.5s ease;
            position: relative;
        }
        .install-banner.show { display: flex; }
        .install-icon { font-size: 32px; }
        .install-content { flex: 1; }
        .install-content h4 { margin: 0 0 5px 0; font-size: 16px; font-weight: 700; }
        .install-content p { margin: 0; font-size: 12px; opacity: 0.9; }
        .install-actions { display: flex; gap: 8px; flex-direction: column; }
        .install-btn { padding: 10px 20px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 13px; background: white; color: #ff5a00; white-space: nowrap; }
        .install-dismiss { padding: 8px 15px; background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; font-size: 12px; cursor: pointer; }

        /* ================= BAKLAVAJI APP INSTALL SHEET (v2) ================= */
        #bjInstallSheet { position: fixed; inset: 0; z-index: 100000; display: none; }
        #bjInstallSheet.show { display: block; }
        .bjis-backdrop {
            position: absolute; inset: 0; background: rgba(15, 10, 5, .62);
            backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
            animation: bjisFade .25s ease both;
        }
        .bjis-card {
            position: absolute; left: 0; right: 0; bottom: 0;
            background: #fff; border-radius: 24px 24px 0 0;
            padding: 10px 20px calc(24px + env(safe-area-inset-bottom, 0px));
            max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
            box-shadow: 0 -14px 40px rgba(0,0,0,.3);
            animation: bjisUp .34s cubic-bezier(.2,.9,.3,1.05) both;
        }
        @media (min-width: 640px) {
            /* Ortalama: açılış animasyonu (bjisUp) transform'u eziyordu → kart
               yarım ekran yukarı kayıp üstü görünmüyordu. Masaüstünde sadece
               opaklık animasyonu; konum top:50% + translateY(-50%). */
            .bjis-card { max-width: 440px; margin: 0 auto; border-radius: 24px;
                         top: 50%; bottom: auto; transform: translateY(-50%);
                         max-height: calc(100vh - 40px);
                         animation: bjisFade .25s ease both; }
        }
        @keyframes bjisFade { from { opacity: 0 } to { opacity: 1 } }
        @keyframes bjisUp   { from { transform: translateY(100%) } to { transform: translateY(0) } }

        .bjis-grab { width: 40px; height: 4px; border-radius: 4px; background: #e2e2e2; margin: 2px auto 14px; }
        .bjis-x {
            position: absolute; top: 12px; inset-inline-end: 14px;
            width: 30px; height: 30px; border: none; border-radius: 50%;
            background: #f2f2f2; color: #777; font-size: 20px; line-height: 1;
            cursor: pointer; -webkit-tap-highlight-color: transparent;
        }
        .bjis-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
        .bjis-appicon {
            width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
            background: linear-gradient(135deg, #ff5a00, #ff9045);
            display: flex; align-items: center; justify-content: center;
            font-size: 28px; overflow: hidden;
            box-shadow: 0 5px 14px rgba(255,90,0,.32);
        }
        .bjis-appicon img { width: 100%; height: 100%; object-fit: cover; }
        .bjis-htxt h3 { margin: 0; font-size: 18.5px; font-weight: 800; color: #1c1c1c; line-height: 1.25; }
        .bjis-htxt p  { margin: 3px 0 0; font-size: 12px; color: #999; font-weight: 600; }

        .bjis-reward {
            background: linear-gradient(135deg, #fff4e0, #ffe8c4);
            border: 1px dashed #f0a94a; border-radius: 14px;
            padding: 12px 14px; margin-bottom: 15px; text-align: center;
        }
        .bjis-reward-lbl  { font-size: 11px; font-weight: 800; color: #a86612; letter-spacing: .3px; }
        .bjis-reward-val  { font-size: 16px; font-weight: 900; color: #7a3d00; margin-top: 3px; line-height: 1.3; }
        .bjis-reward-code {
            display: inline-block; margin-top: 7px; background: #fff;
            border: 1px solid #f0c98a; border-radius: 7px;
            padding: 4px 14px; font-size: 14px; font-weight: 900;
            letter-spacing: 1.5px; color: #c94000;
        }

        .bjis-lead { font-size: 13.5px; color: #555; line-height: 1.55; margin-bottom: 14px; }

        .bjis-benefits { list-style: none; padding: 0; margin: 0 0 18px; }
        .bjis-benefits li {
            display: flex; align-items: center; gap: 11px;
            padding: 9px 0; font-size: 13.5px; color: #333; font-weight: 600;
            border-bottom: 1px solid #f4f4f4;
        }
        .bjis-benefits li:last-child { border-bottom: none; }
        .bjis-benefits i {
            width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
            background: #fff2e8; color: #ff5a00; font-size: 13px;
            display: flex; align-items: center; justify-content: center;
        }

        .bjis-step {
            display: flex; align-items: flex-start; gap: 12px;
            padding: 11px 0; border-bottom: 1px solid #f4f4f4;
        }
        .bjis-step:last-of-type { border-bottom: none; }
        .bjis-num {
            width: 25px; height: 25px; border-radius: 50%; flex-shrink: 0;
            background: #ff5a00; color: #fff; font-size: 12.5px; font-weight: 800;
            display: flex; align-items: center; justify-content: center; margin-top: 1px;
        }
        .bjis-stxt { flex: 1; font-size: 13.5px; color: #2b2b2b; line-height: 1.5; }
        .bjis-stxt b { color: #000; font-weight: 800; }
        .bjis-stxt span { display: block; font-size: 11.5px; color: #999; margin-top: 3px; font-weight: 500; }
        .bjis-sicon { flex-shrink: 0; }
        .bjis-share {
            width: 40px; height: 40px; border-radius: 10px; background: #f0f6ff;
            display: flex; align-items: center; justify-content: center;
            border: 1px solid #d9e7fb;
        }

        .bjis-arrowwrap { text-align: center; height: 26px; margin-top: 6px; }
        .bjis-arrow { font-size: 20px; color: #007aff; animation: bjisBounce 1.3s ease-in-out infinite; }
        @keyframes bjisBounce {
            0%, 100% { transform: translateY(0); opacity: .45 }
            50%      { transform: translateY(9px); opacity: 1 }
        }

        .bjis-url {
            display: flex; align-items: center; gap: 8px;
            background: #f6f6f6; border-radius: 10px; padding: 9px 10px; margin: 13px 0 4px;
        }
        .bjis-url span {
            flex: 1; font-size: 11.5px; color: #555; word-break: break-all;
            text-align: start; direction: ltr;
        }
        .bjis-url button {
            background: #ff5a00; color: #fff; border: none; border-radius: 7px;
            padding: 7px 13px; font-size: 11.5px; font-weight: 700;
            cursor: pointer; white-space: nowrap;
        }

        .bjis-main {
            width: 100%; margin-top: 16px; padding: 15px;
            border: none; border-radius: 13px;
            background: linear-gradient(135deg, #ff5a00, #ff8a3d); color: #fff;
            font-size: 15.5px; font-weight: 800; cursor: pointer;
            box-shadow: 0 7px 18px rgba(255,90,0,.32);
            -webkit-tap-highlight-color: transparent;
        }
        .bjis-main:active { transform: scale(.985); }
        .bjis-main i { margin-inline-end: 7px; }
        .bjis-pulse { animation: bjisPulse 1.5s ease 3; }
        @keyframes bjisPulse {
            0%,100% { box-shadow: 0 7px 18px rgba(255,90,0,.32) }
            50%     { box-shadow: 0 7px 26px rgba(255,90,0,.6) }
        }
        .bjis-ghost {
            width: 100%; margin-top: 9px; padding: 12px;
            border: none; background: none; color: #999;
            font-size: 13.5px; font-weight: 600; cursor: pointer;
        }
        @media (prefers-reduced-motion: reduce) {
            .bjis-card, .bjis-backdrop, .bjis-arrow, .bjis-pulse { animation: none !important; }
        }

        /* --------- Kurulum sonrası ödül kartı (sadece uygulama içinde) --------- */
        #bjAppRewardCard { display: none; margin: 14px 15px 0; }
        .bjar-in {
            position: relative; display: flex; align-items: center; gap: 12px;
            background: linear-gradient(135deg, #fff4e0, #ffe4b8);
            border: 1px dashed #eba949; border-radius: 14px; padding: 13px 14px;
        }
        .bjar-ico { font-size: 26px; flex-shrink: 0; }
        .bjar-txt { flex: 1; min-width: 0; }
        .bjar-t { font-size: 13.5px; font-weight: 800; color: #7a3d00; line-height: 1.35; }
        .bjar-c {
            display: inline-block; margin-top: 5px; background: #fff;
            border: 1px solid #f0c98a; border-radius: 6px; padding: 2px 10px;
            font-size: 12.5px; font-weight: 900; letter-spacing: 1.2px; color: #c94000;
        }
        .bjar-spent { background: #f6f6f6 !important; border-color: #e0e0e0 !important; opacity: .9; }
        .bjar-spent .bjar-t { color: #666; }
        .bjar-spent .bjar-s { color: #999; }
        .bjar-s { font-size: 11px; color: #9a7440; margin-top: 5px; font-weight: 600; }
        .bjar-btn {
            flex-shrink: 0; background: #ff5a00; color: #fff; border: none;
            border-radius: 9px; padding: 10px 14px; font-size: 12px;
            font-weight: 800; cursor: pointer; white-space: nowrap;
        }
        .bjar-x {
            position: absolute; top: 4px; inset-inline-end: 6px;
            background: none; border: none; color: #b98a45;
            font-size: 17px; line-height: 1; cursor: pointer; padding: 2px 5px;
        }



        /* GÜVENLİK ROZETLER */
        .security-badges {
            display: flex;
            justify-content: center;
            gap: 15px;
            padding: 15px;
            background: white;
            margin: 0 15px 15px 15px;
            border-radius: 12px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            flex-wrap: wrap;
        }
        .security-badge {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            padding: 10px;
            flex: 1;
            min-width: 80px;
        }
        .security-badge i {
            font-size: 24px;
            color: var(--green);
        }
        .security-badge span {
            font-size: 10px;
            text-align: center;
            color: #666;
            font-weight: 600;
        }

        /* TAVSİYE ÜRÜNLER BÖLÜMÜ */
        .recommendations-section {
            background: #f8f9fa;
            padding: 20px 15px;
            margin: 20px 0;
        }
        .recommendations-title {
            font-size: 16px;
            font-weight: 800;
            margin-bottom: 15px;
            color: var(--text);
        }
        .recommendations-scroll {
            display: flex;
            overflow-x: auto;
            gap: 12px;
            scrollbar-width: none;
            padding-bottom: 10px;
        }
        .rec-card {
            min-width: 150px;
            background: white;
            border-radius: 12px;
            padding: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            cursor: pointer;
            border: 1px solid #f0f0f0;
        }
        .rec-img {
            width: 100%;
            height: 100px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 8px;
        }
        .rec-name {
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 5px;
        }
        .rec-price {
            color: var(--primary);
            font-weight: 700;
            font-size: 13px;
        }



        @media (min-width: 768px) {
            .prod-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 0 15px; }
            .prod-card { flex-direction: column; align-items: flex-start; padding: 0; height: auto; }
            .prod-img-wrap { width: 100%; height: 185px; margin-right: 0; border-radius: 0; }
            .prod-info { width: 100%; padding: 12px; padding-bottom: 90px; }
            .prod-name { font-size: 15px; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
            .prod-desc-preview { display: none; } 
            .action-btns { bottom: 12px; left: 12px; right: 12px; }
            .sheet { max-width: 600px !important; margin: 5vh auto !important; border-radius: 20px !important; }
            .modal-center { max-width: 500px !important; }
        }
        /* Mobilde sepet ikonu biraz küçük */
        @media (max-width: 767px) {
            #navCartBtn i { font-size: 17px; }
        }

        /* ORTAK BUTON STİLLERİ */
        .btn-quick-add, .btn-buy-now { border: none; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s, filter 0.12s; }
        .btn-quick-add {
            flex: 1; min-width: 0; height: 38px;
            display: flex; align-items: center; justify-content: center; gap: 7px;
            background: linear-gradient(135deg, var(--green), #00a865);
            color: white;
            font-size: 13px; font-weight: 800;
            font-family: inherit;
            letter-spacing: 0.2px;
            border-radius: 11px;
            box-shadow: 0 4px 12px rgba(2,192,118,0.30);
            position: relative;
            overflow: hidden;
            -webkit-tap-highlight-color: transparent;
        }
        .btn-quick-add i { font-size: 13px; }
        /* Varyantlı ürünler: detaya gitme (›) butonu */
        .btn-view-detail {
            flex-shrink: 0;
            width: 38px; height: 38px;
            display: flex; align-items: center; justify-content: center;
            background: #fff;
            color: var(--green);
            border: 1.5px solid rgba(2,192,118,0.45);
            border-radius: 11px;
            font-size: 13px;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.06);
            transition: transform 0.12s, background 0.12s;
            -webkit-tap-highlight-color: transparent;
        }
        .btn-view-detail:active { transform: scale(0.92); background: rgba(2,192,118,0.08); }
        /* Kart üzerinde adet seçici (Add to Cart'ın üstünde, ayrı satır) */
        .card-qty {
            height: 28px;
            display: flex; align-items: center; justify-content: space-between;
            background: #f6f6f6;
            border: 1px solid #ebebeb;
            border-radius: 9px;
            overflow: hidden;
            -webkit-tap-highlight-color: transparent;
        }
        .card-qty .cs-btn {
            width: 44px; height: 100%;
            display: flex; align-items: center; justify-content: center;
            color: var(--green); font-size: 16px; font-weight: 800;
            cursor: pointer; user-select: none;
            transition: background 0.12s;
        }
        .card-qty .cs-btn:active { background: rgba(2,192,118,0.14); }
        .card-qty .cs-num { color: var(--text); font-weight: 800; font-size: 13px; }
        @media (max-width: 767px) {
            .btn-quick-add { height: 33px; font-size: 11.5px; border-radius: 9px; gap: 5px; }
            .btn-quick-add i { font-size: 11.5px; }
            .btn-view-detail { width: 33px; height: 33px; border-radius: 9px; font-size: 12px; }
            .card-qty { height: 25px; border-radius: 8px; }
            .card-qty .cs-btn { width: 38px; font-size: 15px; }
            .card-qty .cs-num { font-size: 12px; }
        }
        /* Hafif parlama efekti (shine) */
        .btn-quick-add::before {
            content: '';
            position: absolute;
            top: 0; left: -75%;
            width: 50%; height: 100%;
            background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
            transform: skewX(-20deg);
            animation: qaShine 3.5s ease-in-out infinite;
        }
        html[dir="rtl"] .btn-quick-add::before { animation: qaShineRtl 3.5s ease-in-out infinite; }
        @keyframes qaShine {
            0%   { left: -75%; }
            45%  { left: 125%; }
            100% { left: 125%; }
        }
        @keyframes qaShineRtl {
            0%   { left: 125%; }
            45%  { left: -75%; }
            100% { left: -75%; }
        }
        .btn-quick-add:active { transform: scale(0.96); box-shadow: 0 2px 6px rgba(2,192,118,0.25); }
        .btn-quick-add:disabled { filter: grayscale(1); opacity: 0.55; cursor: not-allowed; }
        .btn-buy-now { display: none !important; }

        /* ✨ Masaüstü hover hissiyatı — dokunmatik cihazlarda devre dışı
           (mobilde sticky-hover sorunu olmaması için hover:hover ile sınırlı) */
        @media (hover: hover) and (pointer: fine) {
            .prod-card {
                transition: transform .28s cubic-bezier(.2,.7,.25,1),
                            box-shadow .28s ease, border-color .28s ease;
            }
            .prod-card:hover {
                transform: translateY(-6px) scale(1.02);
                box-shadow: 0 16px 30px rgba(0,0,0,0.13);
                border-color: rgba(2,192,118,0.35);
                z-index: 3;
            }
            /* Görsel hafif zoom (wrapper overflow:hidden olduğu için temiz görünür) */
            .prod-card:hover .prod-img { transform: scale(1.08); }

            /* Açılış (bölge modalı) ürün kartlarında da hover hissiyatı */
            .bm-pick-card { transition: transform .28s cubic-bezier(.2,.7,.25,1), box-shadow .28s ease; }
            .bm-pick-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,.13); }
            .bm-pick-card:hover .bm-pick-img { transform: scale(1.06); }
            .bm-prod-card:hover .bm-prod-img { transform: scale(1.07); }

            /* Add butonu alanı hover'da yukarı doğru "belirir" gibi yükselsin */
            .prod-card .action-btns { transition: transform .28s cubic-bezier(.2,.7,.25,1); }
            .prod-card:hover .action-btns { transform: translateY(-4px); }
            /* Buton vurgusu (transform'a dokunmadan → :active scale bozulmaz) */
            .prod-card:hover .btn-quick-add {
                box-shadow: 0 9px 20px rgba(2,192,118,0.42);
                filter: brightness(1.04);
            }
            .btn-quick-add:hover { filter: brightness(1.07); }
            .btn-view-detail:hover { background: rgba(2,192,118,0.10); }
        }
        /* Variant chips */
        .variant-chips { display:flex; flex-wrap:wrap; gap:4px; margin-top:5px; margin-bottom:2px; }
        .variant-chip { background:#f0f0f0; color:#555; font-size:10px; font-weight:700; padding:2px 7px; border-radius:20px; border:1px solid #e0e0e0; white-space:nowrap; pointer-events:none; }
        .variant-chip.first { background:#fff2eb; color:var(--primary); border-color:rgba(255,90,0,0.25); }
        .variant-more { font-size:10px; color:#aaa; font-weight:600; align-self:center; }
        .prod-card.sold-out { opacity: 0.6; pointer-events: none; filter: grayscale(1); }
        .sold-out-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.1); z-index: 30; display: flex; align-items: center; justify-content: center; }
        .sold-out-badge { background: #333; color: white; padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 11px; text-transform: uppercase; }
        .discount-badge { position: absolute; top: 8px; left: 8px; background: var(--red); color: white; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 6px; z-index: 25; box-shadow: 0 2px 5px rgba(0,0,0,0.2); pointer-events: none; }
        .old-price { text-decoration: line-through; color: #999; font-size: 11px; font-weight: normal; margin-right: 5px; }
        .btn-fav { 
            position: absolute; 
            top: 8px; 
            right: 8px; 
            width: 26px; 
            height: 26px; 
            border-radius: 50%; 
            background: rgba(255,255,255,0.9); 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            z-index: 21; 
            cursor: pointer; 
            color: #ccc; 
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .btn-fav.active { color: var(--red); }
        .btn-fav.fav-pop { animation: favPop .38s cubic-bezier(.34,1.56,.64,1); }
        @keyframes favPop {
            0%   { transform: scale(1); }
            40%  { transform: scale(1.38); }
            100% { transform: scale(1); }
        }
        .fav-count {
            position: absolute;
            bottom: -6px;
            right: -6px;
            background: var(--primary);
            color: white;
            font-size: 10px;
            font-weight: 800;
            line-height: 1;
            min-width: 17px;
            height: 17px;
            border-radius: 9px;
            border: 1.5px solid #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.28);
            pointer-events: none;
        }
        
        /* REVIEWS & RATINGS */
        .reviews-section {
            border-top: 1px solid #eee;
            padding-top: 20px;
            margin-top: 20px;
        }
        .reviews-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        .avg-rating {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .rating-number {
            font-size: 24px;
            font-weight: 800;
            color: var(--text);
        }
        .rating-stars {
            color: #ffa726;
            font-size: 14px;
        }
        .rating-count {
            font-size: 12px;
            color: #888;
        }
        .add-review-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
        }
        .review-item {
            background: #f9f9f9;
            padding: 12px;
            border-radius: 10px;
            margin-bottom: 10px;
        }
        .review-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        .reviewer-name {
            font-weight: 600;
            font-size: 13px;
        }
        .review-stars {
            color: #ffa726;
            font-size: 12px;
        }
        .review-date {
            font-size: 10px;
            color: #999;
        }
        .review-text {
            font-size: 12px;
            color: #555;
            line-height: 1.4;
        }
        
        /* IMAGE ZOOM MODAL */
        /* ── Image viewer — compact centered card ── */
        .image-zoom-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.55);
            z-index: 11000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }
        .image-zoom-modal.active {
            display: flex;
            animation: izFadeIn 0.2s ease;
        }
        @keyframes izFadeIn {
            from { opacity:0; }
            to   { opacity:1; }
        }
        .zoom-close {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0,0,0,0.5);
            color: white;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1;
            line-height: 1;
        }
        .zoom-image-container {
            position: relative;
            background: white;
            border-radius: 16px;
            overflow: hidden;
            max-width: min(480px, 92vw);
            max-height: 75vh;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
            animation: izPopIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
        }
        @keyframes izPopIn {
            from { transform: scale(0.88); opacity:0; }
            to   { transform: scale(1);    opacity:1; }
        }
        .zoom-image {
            display: block;
            width: 100%;
            height: auto;
            max-height: 75vh;
            object-fit: contain;
        }
        .zoom-controls { display: none; }
        .zoom-btn      { display: none; }
        .btn-share { position: absolute; top: 8px; right: 40px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; z-index: 21; cursor: pointer; color: #333; font-size: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

        /* NAVIGATION */
        /* ── BOTTOM NAV — elevated cart style ─────────────────── */
        .bottom-nav {
            position: fixed;
            bottom: calc(12px + env(safe-area-inset-bottom));
            left: 50%;
            transform: translateX(-50%);
            width: min(calc(100% - 28px), 400px);
            background: rgba(255,255,255,0.85);
            -webkit-backdrop-filter: blur(22px) saturate(1.7);
            backdrop-filter: blur(22px) saturate(1.7);
            border: 1px solid rgba(255,255,255,0.7);
            display: flex; align-items: center; justify-content: space-around;
            padding: 10px 14px;
            z-index: 10001;
            border-radius: 999px;
            box-shadow: 0 12px 36px rgba(0,0,0,0.18), 0 2px 10px rgba(0,0,0,0.08);
        }
        .nav-btn {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            color: #9a9a9a; font-size: 10px; font-weight: 600;
            border: none; background: none; cursor: pointer;
            padding: 8px 22px; gap: 0;
            border-radius: 999px;
            position: relative;
            touch-action: manipulation;
            transition: color 0.18s, background 0.18s, transform 0.12s;
            -webkit-tap-highlight-color: transparent;
        }
        .nav-btn:active { transform: scale(0.92); }
        .nav-btn i { font-size: 21px; transition: transform 0.18s; }
        /* Etiketler gizli — Instagram tarzı ikon-odaklı pill (çeviri/JS bozulmasın diye DOM'da kalır) */
        .nav-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
        .nav-btn.active { color: var(--primary); background: rgba(255,90,0,0.10); }
        .nav-btn.active::after {
            content: '';
            position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
            width: 4px; height: 4px; border-radius: 50%;
            background: var(--primary);
        }
        /* Centre cart button — elevated circle */
        #navCartBtn {
            position: relative;
            margin-top: -34px;
            background: linear-gradient(145deg, var(--primary), #ff7a2e);
            color: white !important;
            width: 60px; height: 60px;
            border-radius: 50%;
            box-shadow: 0 8px 22px rgba(255,90,0,0.45), 0 2px 6px rgba(255,90,0,0.3);
            padding: 0;
            border: 4px solid rgba(255,255,255,0.95);
            flex-shrink: 0;
        }
        #navCartBtn::after { display: none; }
        #navCartBtn.active { background: linear-gradient(145deg, var(--primary), #ff7a2e); }
        #navCartBtn i { font-size: 22px; margin: 0; }
        #navCartBtn span { display: none; }
        #navCartBtn.active { color: white !important; }
        .cart-badge {
            position: absolute; top: -2px; right: -2px;
            background: #bbb; color: white;
            border-radius: 50%; width: 19px; height: 19px;
            font-size: 10px; font-weight: 800;
            display: flex; align-items: center; justify-content: center;
            border: 2px solid white;
            transition: transform 0.2s, background 0.2s;
        }
        /* ─────────────────────────────────────────────────────── */
        
        /* MODALLER VE FORMLAR */
        .modal {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%;
            height: 100vh;        /* fallback */
            height: calc(var(--vh, 1vh) * 100); /* iOS Safari dynamic */
            height: 100dvh;       /* modern browsers */
            background: rgba(0,0,0,0.6);
            z-index: 10050;
            align-items: flex-end;
            overscroll-behavior: contain;
        }
        .modal.full {
            align-items: flex-start;
            justify-content: center;
            z-index: 10055;
            overflow-y: auto;
            padding: 20px 0;
            overscroll-behavior: contain;
        }
        #issueModal {
            align-items: flex-end !important;
            padding: 0 !important;
            overflow: hidden !important;
            z-index: 10005 !important;
        }
        #issueModal .modal-center {
            border-radius: 20px 20px 0 0 !important;
            margin: 0 !important;
            width: 100% !important;
            max-width: 520px !important;
            height: 88vh !important;
            max-height: 88vh !important;
            display: flex !important;
            flex-direction: column !important;
            overflow: hidden !important;
        }
        /* iOS body scroll lock */
        body.modal-lock {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }
        .sheet { background: white; width: 100%; max-width: 500px; border-radius: 20px 20px 0 0; max-height: 85vh; overflow-y: auto; padding: 20px; padding-bottom: 180px; animation: slideUp 0.3s; margin: 0 auto; position: relative; }
        
        /* ÜRÜN MODAL STICKY FOOTER — yüzen, köşeleri yuvarlatılmış kart */
        .product-sticky-footer { 
            position: fixed; 
            bottom: calc(12px + env(safe-area-inset-bottom));
            left: 50%;
            transform: translateX(-50%);
            width: min(calc(100% - 28px), 460px);
            background: rgba(255,255,255,0.94);
            -webkit-backdrop-filter: blur(22px) saturate(1.7);
            backdrop-filter: blur(22px) saturate(1.7);
            border: 1px solid rgba(255,255,255,0.7);
            padding: 14px 18px calc(14px + max(0px, env(safe-area-inset-bottom) - 6px));
            box-shadow: 0 16px 44px rgba(0,0,0,0.22), 0 4px 14px rgba(0,0,0,0.10);
            z-index: 10051;
            display: none;
            border-radius: 26px;
        }
        .product-sticky-footer.active { display: block; animation: stickyFloatUp 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
        @keyframes stickyFloatUp {
            from { transform: translateX(-50%) translateY(90px); opacity: 0; }
            to   { transform: translateX(-50%) translateY(0); opacity: 1; }
        }
        .sticky-price-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0; gap: 12px; }
        .sticky-price { font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
        .sticky-buttons { display: flex; gap: 10px; align-items: center; }
        .sticky-qty-ctrl { 
            display: flex; 
            align-items: center; 
            gap: 8px; 
            background: #f1f1f3; 
            border-radius: 999px; 
            padding: 9px 12px;
        }
        .sticky-qty-ctrl span { cursor: pointer; padding: 0 8px; font-weight: bold; }
        #stickyAddToCartBtn { border-radius: 999px !important; box-shadow: 0 6px 18px rgba(255,90,0,0.35); }
        
        /* COUNTDOWN TIMER */
        /* CART PREVIEW BANNER */
        .cart-preview-banner {
            position: fixed;
            bottom: calc(88px + env(safe-area-inset-bottom));
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 500px;
            background: linear-gradient(135deg, var(--primary) 0%, #6a11cb 100%);
            color: white;
            border-radius: 20px;
            padding: 15px 20px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.3);
            z-index: 2500;
            display: none;
            animation: slideUpBanner 0.3s ease-out;
        }
        .cart-preview-banner.active { display: block; }
        
        @keyframes slideUpBanner {
            from { transform: translateX(-50%) translateY(100px); opacity: 0; }
            to { transform: translateX(-50%) translateY(0); opacity: 1; }
        }
        
        .banner-content {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .banner-progress {
            background: rgba(255,255,255,0.2);
            border-radius: 10px;
            padding: 10px;
            text-align: center;
        }
        
        .banner-amount {
            font-size: 24px;
            font-weight: 800;
            margin-bottom: 5px;
        }
        
        .banner-message {
            font-size: 12px;
            opacity: 0.9;
        }
        
        .banner-discount {
            background: rgba(46, 213, 115, 0.3);
            border: 2px solid #2ed573;
            border-radius: 10px;
            padding: 8px;
            text-align: center;
            font-weight: 600;
            font-size: 13px;
        }
        
        .banner-actions {
            display: flex;
            gap: 10px;
            margin-top: 5px;
        }
        
        .banner-btn {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
        }
        
        .banner-btn-cart {
            background: white;
            color: var(--primary);
        }
        
        .banner-btn-continue {
            background: rgba(255,255,255,0.2);
            color: white;
            border: 2px solid white;
        }
        
        .banner-close {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        @keyframes slideInLeft { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
        .modal-center { background: white; width: 90%; max-width: 400px; border-radius: 15px; padding: 25px; animation: popIn 0.3s; text-align: center; max-height: 90vh; overflow-y: auto; }
        .trust-badge-row { display: flex; justify-content: center; gap: 15px; font-size: 22px; color: #636e72; }
        @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
        @keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        
        .btn { width: 100%; padding: 15px; background: var(--primary); color: white; border: none; border-radius: 12px; font-weight: bold; font-size: 16px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; }
        .btn-outline { background: white; color: var(--text); border: 2px solid #eee; }
        .btn-outline.active { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); }
        .btn:disabled { background: #ccc; cursor: not-allowed; }
        select, input, textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 10px; font-size: 16px; background: white; }
        /* INVALID INPUT STYLE */
        input.invalid-phone { border: 2px solid red !important; background-color: #fff0f0; animation: shake 0.3s; }
        @keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } 100% { transform: translateX(0); } }

        .half-input { display: flex; gap: 10px; }
        .half-input input { flex: 1; }
        
        .cart-item { display: flex; gap: 12px; margin-bottom: 12px; background: white; border-radius: 16px; border: 1px solid #f0f0f0; padding: 14px; align-items: center; overflow: hidden; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: box-shadow 0.2s; }
        .cart-item:active { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }

        /* SEPET SEÇİM SİSTEMİ */
        .cart-select-bar {
            display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
            padding: 0 2px;
        }
        .cart-tab-btn {
            padding: 7px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
            border: 1.5px solid #eee; background: white; color: #999; cursor: pointer;
            display: flex; align-items: center; gap: 5px; transition: all 0.15s;
        }
        .cart-tab-btn.active {
            background: var(--primary); color: white; border-color: var(--primary);
        }
        .cart-tab-btn i { font-size: 12px; }
        .cart-select-all-wrap { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #555; cursor: pointer; }

        /* CHECKBOX STİLİ */
        .cart-item-checkbox-wrap { display: flex; align-items: center; padding-top: 3px; margin-right: 4px; flex-shrink: 0; }
        .cart-item-checkbox { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ccc; appearance: none; -webkit-appearance: none; cursor: pointer; position: relative; transition: all 0.15s; flex-shrink: 0; }
        .cart-item-checkbox:checked { background: var(--primary); border-color: var(--primary); }
        .cart-item-checkbox:checked::after { content: ''; position: absolute; left: 5px; top: 2px; width: 7px; height: 11px; border: 2px solid white; border-top: none; border-left: none; transform: rotate(45deg); }
        .cart-item.unselected { opacity: 0.45; }
        /* YENİ SEPET KARTI STİLLERİ */
        .cart-item-img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; flex-shrink: 0; background: #f5f5f5; }
        .cart-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
        .cart-item-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .cart-item-opts { font-size: 11px; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .cart-item-unit { font-size: 11.5px; color: #bbb; }
        .cart-item-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
        .cart-item-total { font-size: 15px; font-weight: 800; color: var(--primary); }
        /* SEPET BAŞLIĞI */
        .cart-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
        .cart-page-title { font-size: 20px; font-weight: 800; color: var(--text); margin: 0; }
        .cart-add-more { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--primary); background: #fff5f0; border: 1.5px solid #ffd5bf; border-radius: 20px; padding: 6px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
        /* SEPET ÖZET KARTI */
        .cart-summary-card { background: white; border-radius: 16px; border: 1px solid #f0f0f0; padding: 16px; margin-top: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
        .cart-summary-title { font-size: 13px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
        .cart-summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; }
        .cart-summary-row-label { color: #888; }
        .cart-summary-row-val { font-weight: 600; color: var(--text); }
        .cart-summary-total-row { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px dashed #eee; padding-top: 14px; margin-top: 4px; }
        .cart-summary-total-label { font-size: 15px; font-weight: 700; color: var(--text); }
        .cart-summary-total-val { font-size: 22px; font-weight: 800; color: var(--text); }
        /* ÖDEME BUTONU */
        #btnPlaceOrder { background: var(--primary); color: white; border: none; border-radius: 14px; padding: 16px 24px; font-size: 16px; font-weight: 800; width: 100%; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 4px 16px rgba(255,90,0,0.25); transition: transform 0.15s, box-shadow 0.15s; }
        #btnPlaceOrder:active { transform: scale(0.98); box-shadow: 0 2px 8px rgba(255,90,0,0.2); }
        #btnPlaceOrder:disabled { background: #ccc; box-shadow: none; cursor: not-allowed; }

        /* ══ WhatsApp ikincil checkout yolu (#BJWEB) ══════════════════════ */
        #waCheckoutAlt { margin-top: 16px; }
        .wa-alt-sep { display: flex; align-items: center; gap: 12px; color: #b0b0b0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
        .wa-alt-sep::before, .wa-alt-sep::after { content: ""; flex: 1; height: 1px; background: #e8e8e8; }
        /* 💳 18.10 — WhatsApp ödeme seçim penceresi */
        #bjWaPay { position: fixed; inset: 0; z-index: 10080; display: none; background: rgba(0,0,0,.5); align-items: flex-end; justify-content: center; }
        #bjWaPay.on { display: flex; }
        #bjWaPay .bjwp-box { background: #fff; width: 100%; max-width: 480px; border-radius: 20px 20px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); box-sizing: border-box; text-align: start; animation: bjwpUp .22s ease; }
        @keyframes bjwpUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
        @media (min-width: 700px) { #bjWaPay { align-items: center; } #bjWaPay .bjwp-box { border-radius: 20px; } }
        #bjWaPay .bjwp-hd { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
        #bjWaPay .bjwp-x { border: none; background: #f2f2f2; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; color: #555; }
        #bjWaPay .bjwp-tot { font-size: 13px; color: #777; margin: 4px 0 12px; }
        #bjWaPay .bjwp-tot b { color: #222; }
        #bjWaPay .bjwp-opt { width: 100%; display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid #e6e6e6; border-radius: 14px; padding: 12px 13px; margin-bottom: 9px; font-family: inherit; cursor: pointer; text-align: start; color: #222; }
        #bjWaPay .bjwp-opt.on { border-color: #25D366; background: #f2fcf6; box-shadow: 0 0 0 3px rgba(37,211,102,.12); }
        #bjWaPay .bjwp-opt.dis { opacity: .45; cursor: not-allowed; }
        #bjWaPay .bjwp-ic { width: 42px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
        #bjWaPay .bjwp-knet { background: #0057A8; color: #F5C400; font-size: 10.5px; font-weight: 900; border-radius: 5px; padding: 6px 5px; letter-spacing: .5px; }
        #bjWaPay .bjwp-tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
        #bjWaPay .bjwp-tx b { font-size: 14.5px; }
        #bjWaPay .bjwp-tx small { font-size: 11.5px; color: #888; line-height: 1.4; }
        #bjWaPay .bjwp-rd { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #ccc; flex-shrink: 0; box-sizing: border-box; }
        #bjWaPay .bjwp-opt.on .bjwp-rd { border: 6px solid #25D366; }
        #bjWaPay .bjwp-go { width: 100%; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 9px; background: #25D366; color: #fff; border: none; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer; }
        #bjWaPay .bjwp-go:disabled { background: #cfd8d3; cursor: not-allowed; }
        .wa-alt-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; background: #fff; color: #128C4A; border: 1.5px solid #25D366; border-radius: 12px; padding: 13px 16px; font-size: 14.5px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background .18s ease, transform .12s ease; }
        .wa-alt-btn:hover { background: #f2fbf5; }
        .wa-alt-btn:active { transform: scale(.985); }
        .wa-alt-btn:focus-visible { outline: 3px solid rgba(37,211,102,.4); outline-offset: 2px; }
        .wa-alt-btn i { font-size: 18px; color: #25D366; }
        .wa-alt-note { text-align: center; font-size: 11.5px; color: #8a8a8a; line-height: 1.5; margin-top: 8px; padding: 0 6px; }
        .wa-alt-btn.is-urgent { background: #25D366; color: #fff; border-color: #25D366; animation: waAltPulse 1.5s ease-in-out 3; }
        .wa-alt-btn.is-urgent i { color: #fff; }
        @keyframes waAltPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); } }
        @media (prefers-reduced-motion: reduce) { .wa-alt-btn.is-urgent { animation: none; } }
        #waIntlLinkWrap a { background: #f2fbf5; border: 1px solid #cdeedb; border-radius: 999px; padding: 5px 12px; }
        /* CHECKOUT SECTION KARTLARI */
        .checkout-section-card { background: white; border-radius: 14px; border: 1px solid #f0f0f0; padding: 15px; margin-bottom: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.03); }
        .cart-selected-count { background: var(--primary); color: white; border-radius: 10px; font-size: 11px; font-weight: 800; padding: 1px 7px; }
        .qty-ctrl { display: flex; align-items: center; gap: 0; background: #f5f5f5; border-radius: 10px; overflow: hidden; border: 1px solid #ebebeb; }
        .qty-ctrl span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-size: 18px; cursor: pointer; color: var(--text); font-weight: 400; transition: background 0.15s; user-select: none; -webkit-tap-highlight-color: transparent; }
        .qty-ctrl span:first-child { color: #888; }
        .qty-ctrl span:last-child { background: var(--primary); color: white; border-radius: 0 9px 9px 0; }
        .qty-ctrl span:last-child:active { background: #e04e00; }
        .qty-ctrl-count { font-size: 14px; font-weight: 700; min-width: 28px; text-align: center; color: var(--text); }
        .variant-pill { 
            background: white;
            border: 2px solid #e0e0e0; 
            padding: 12px 18px; 
            border-radius: 10px; 
            margin: 0 8px 8px 0; 
            display: inline-block; 
            font-size: 14px; 
            cursor: pointer;
            transition: all 0.2s ease;
            font-weight: 600;
            color: var(--text);
        }
        .variant-pill.active { 
            background: white;
            color: var(--text);
            border-color: var(--primary);
            border-width: 2px;
        }
        /* PER-VARIANT QTY ROWS (compact) */
        .variant-qty-row {
            display: flex; align-items: center; justify-content: space-between;
            padding: 8px 10px 8px 14px; border: 1.5px solid #ececec; border-radius: 12px;
            margin-bottom: 8px; background: #fff; transition: all 0.15s;
        }
        .variant-qty-row.has-qty {
            border-color: var(--primary); background: #fff8f5;
            box-shadow: 0 2px 8px rgba(255,90,0,0.10);
        }
        .variant-qty-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
        .variant-qty-name { font-weight: 700; font-size: 13.5px; color: var(--text); line-height: 1.25; }
        .variant-qty-price { font-size: 12.5px; color: var(--primary); font-weight: 700; line-height: 1.2; }
        .vqty-ctrl {
            display: flex; align-items: center; gap: 0; flex-shrink: 0;
            background: #f4f4f4; border-radius: 18px; overflow: hidden;
            border: 1px solid #ebebeb;
        }
        .vqty-btn {
            width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
            cursor: pointer; font-size: 18px; font-weight: 700; color: var(--primary);
            user-select: none; transition: background 0.15s; -webkit-tap-highlight-color: transparent;
        }
        .vqty-btn:active { background: rgba(255,90,0,0.18); }
        .vqty-num {
            min-width: 26px; text-align: center; font-size: 14px; font-weight: 800;
            color: var(--text); background: white; padding: 4px 4px;
        }
        
        .del-toggle { display: flex; gap: 10px; margin-bottom: 15px; }
        .del-opt { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 8px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 5px; }
        .del-opt.active { background: var(--primary); color: white; border-color: var(--primary); }
        .del-opt.disabled { background: #f0f0f0; color: #999; cursor: not-allowed; border-color: #eee; }
        .pickup-save-badge { display: inline-flex; align-items: center; gap: 3px; background: #e7f7ec; color: #1e9e54; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 20px; line-height: 1.4; border: 1px solid #b9e7c9; white-space: nowrap; }
        .del-opt.active .pickup-save-badge { background: rgba(255,255,255,0.22); color: #fff; border-color: rgba(255,255,255,0.4); }
        
        .stepper { display: flex; justify-content: space-between; margin-bottom: 20px; position: relative; }
        .stepper::before { content: ''; position: absolute; top: 15px; left: 0; width: 100%; height: 2px; background: #eee; z-index: 0; }
        .step { position: relative; z-index: 1; text-align: center; flex: 1; }
        .step-circle { width: 30px; height: 30px; background: #eee; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 5px; color: #999; font-size: 12px; border: 2px solid white; }
        .step.active .step-circle { background: var(--green); color: white; }
        .step-label { font-size: 10px; color: #999; }
        .step.active .step-label { color: var(--text); font-weight: bold; }
        
        .chat-container { height: 250px; display: flex; flex-direction: column; border: 1px solid #eee; border-radius: 8px; margin-bottom: 10px; }
        .chat-msgs { flex: 1; overflow-y: auto; padding: 10px; background: #fcfcfc; }
        .chat-msg { margin-bottom: 8px; padding: 8px 12px; border-radius: 12px; max-width: 80%; font-size: 13px; }
        .msg-cust { background: var(--primary); color: white; align-self: flex-end; margin-left: auto; border-bottom-right-radius: 0; }
        .msg-staff { background: #eee; color: #333; align-self: flex-start; border-bottom-left-radius: 0; }
        .chat-input { display: flex; border-top: 1px solid #eee; padding: 5px; }
        
        .reward-toggle-box { background: linear-gradient(135deg, #fff3e0, #fff); border: 1px solid #ffcc80; padding: 15px; border-radius: 12px; margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; }
        .reward-info b { color: var(--primary); display: block; font-size: 14px; }
        .reward-info span { font-size: 11px; color: #d35400; }
        .switch-sm { position: relative; display: inline-block; width: 34px; height: 20px; }
        .switch-sm input { opacity: 0; width: 0; height: 0; }
        .slider-sm { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
        .slider-sm:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
        input:checked + .slider-sm { background-color: var(--primary); }
        input:checked + .slider-sm:before { transform: translateX(14px); }

        .flying-img { position: fixed; z-index: 9999; border-radius: 50%; width: 50px; height: 50px; object-fit: cover; pointer-events: none; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
        
        /* PROFILE */
        .profile-header { padding-bottom: 20px; }
        .profile-name { font-size: 24px; font-weight: 800; margin: 0; color: var(--text); }
        .profile-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 20px; }
        .profile-menu-item { background: white; border-radius: 12px; padding: 15px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.02); border: 1px solid #eee; cursor: pointer; transition: transform 0.2s; }
        .profile-menu-item:active { transform: scale(0.95); }
        .profile-menu-item i { font-size: 24px; color: #555; margin-bottom: 8px; display: block; }
        .profile-menu-item span { font-size: 12px; font-weight: 600; color: #333; }
        
        .past-order-card { 
            background: white; 
            border-radius: 12px; 
            padding: 0; 
            margin-bottom: 10px; 
            box-shadow: 0 2px 5px rgba(0,0,0,0.03); 
            border: 1px solid #eee; 
            overflow: hidden;
        }
        .po-accordion-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            cursor: pointer;
            transition: background 0.2s;
        }
        .po-accordion-header:hover {
            background: #f9f9f9;
        }
        .po-accordion-left {
            flex: 1;
        }
        .po-accordion-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .po-chevron {
            transition: transform 0.3s;
            color: #999;
        }
        .po-accordion-header.active .po-chevron {
            transform: rotate(180deg);
        }
        .po-accordion-body {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            border-top: 1px solid #eee;
        }
        .po-accordion-body.active {
            max-height: 500px;
        }
        .po-accordion-content {
            padding: 15px;
        }
        .po-header { display: flex; gap: 10px; margin-bottom: 10px; }
        .po-logo { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; background: #eee; }
        .po-info { flex: 1; }
        .po-name { font-weight: 800; font-size: 15px; margin-bottom: 2px; }
        .po-price { font-weight: bold; color: var(--text); font-size: 14px; }
        .po-meta { font-size: 11px; color: #888; margin-top: 3px; }
        .po-delete-btn {
            background: #ffebee;
            color: #e74c3c;
            border: none;
            width: 28px;
            height: 28px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            transition: all 0.2s;
        }
        .po-delete-btn:hover {
            background: #e74c3c;
            color: white;
        }
        
        .wallet-strip { background: linear-gradient(45deg, #ff5a00, #ff9045); color: white; padding: 15px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(255,90,0,0.2); }
        
        /* 🎁 REFERRAL BANNER STYLES */
        .referral-banner {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
            position: relative;
            overflow: hidden;
            display: none; /* Başlangıçta gizli */
        }
        
        .referral-banner::before {
            content: '🎁';
            position: absolute;
            right: -10px;
            top: -10px;
            font-size: 80px;
            opacity: 0.2;
        }
        
        .referral-title {
            font-size: 18px;
            font-weight: 800;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .referral-desc {
            font-size: 13px;
            opacity: 0.95;
            margin-bottom: 15px;
            line-height: 1.5;
        }
        
        .referral-code-box {
            background: rgba(255,255,255,0.2);
            padding: 12px;
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            backdrop-filter: blur(10px);
        }
        
        .referral-code {
            font-family: 'Courier New', monospace;
            font-size: 16px;
            font-weight: bold;
            letter-spacing: 2px;
        }
        
        .copy-btn {
            background: white;
            color: #667eea;
            border: none;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            transition: 0.2s;
        }
        
        .copy-btn:active {
            transform: scale(0.95);
        }
        
        .share-buttons {
            display: flex;
            gap: 8px;
        }
        
        .share-btn {
            flex: 1;
            padding: 10px;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: 0.2s;
        }
        
        .share-btn-wa {
            background: #25D366;
            color: white;
        }
        
        .share-btn-share {
            background: rgba(255,255,255,0.9);
            color: #667eea;
        }
        
        .share-btn:active {
            transform: scale(0.98);
        }
        .list-group { border: 1px solid #eee; border-radius: 12px; margin-bottom: 20px; background: white; }
        .list-link { display: flex; justify-content: space-between; align-items: center; background: white; padding: 15px; border-bottom: 1px solid #eee; cursor: pointer; font-size: 14px; font-weight: 500; }
        .list-link:last-child { border-bottom: none; }
        
        /* Notification Badge */
        .notification-badge {
            background: var(--red);
            color: white;
            font-size: 11px;
            font-weight: bold;
            padding: 2px 7px;
            border-radius: 10px;
            min-width: 18px;
            text-align: center;
        }
        
        /* Notification Modal */
        .notification-item {
            background: white;
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 10px;
            border-left: 4px solid var(--primary);
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        .notification-item.unread {
            background: #fff9f0;
        }
        .notification-title {
            font-weight: bold;
            font-size: 14px;
            margin-bottom: 5px;
            color: var(--text);
        }
        .notification-message {
            font-size: 13px;
            color: #666;
            margin-bottom: 8px;
            line-height: 1.4;
        }
        .notification-time {
            font-size: 11px;
            color: #999;
        }
        .notification-empty {
            text-align: center;
            padding: 40px 20px;
            color: #999;
        }
        .notification-empty i {
            font-size: 48px;
            margin-bottom: 15px;
            color: #ddd;
        }
        
        .coupon-ticket { background: linear-gradient(to right, #f39c12, #f1c40f); color: white; padding: 10px; border-radius: 8px; margin-bottom: 5px; position: relative; overflow: hidden; border: 1px dashed rgba(255,255,255,0.5); }
        
        /* INVOICE FIX */
        #invoice-capture { display: none; position: fixed; top: 0; left: 0; width: 350px; background: white; padding: 20px; color: black; z-index: 10000; border: 1px solid #ccc; }
        .inv-header { text-align: center; margin-bottom: 15px; border-bottom: 1px dashed #000; padding-bottom: 10px; }
        .inv-logo { height: 60px; margin-bottom: 10px; object-fit: contain; display: block; margin: 0 auto; }
        .inv-row { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 12px; }
        .inv-total { border-top: 1px dashed #000; margin-top: 10px; padding-top: 5px; font-weight: bold; }
        
        .support-btn { display: none !important; }
        .support-btn:active { transform: scale(0.9); }
        .support-btn::before { content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%; background: var(--green); opacity: 0.5; animation: support-heartbeat 1.8s ease-out infinite; }
        @keyframes support-heartbeat {
          0%   { transform: scale(1);   opacity: 0.5; }
          50%  { transform: scale(1.7); opacity: 0; }
          100% { transform: scale(1.7); opacity: 0; }
        }

        /* YENİLENMİŞ YARDIM MERKEZİ & MENU İNDİRME */
        .faq-item { background: #f9f9f9; margin-bottom: 10px; border-radius: 8px; border: 1px solid #eee; overflow: hidden; }
        .faq-q { padding: 15px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #444; }
        .faq-q i { transition: transform 0.3s; color: #999; }
        .faq-item.active .faq-q { background: #fff; color: var(--primary); border-bottom: 1px solid #eee; }
        .faq-item.active .faq-q i { transform: rotate(180deg); color: var(--primary); }
        .faq-a { display: none; padding: 15px; background: white; font-size: 13px; color: #666; line-height: 1.5; animation: fadeIn 0.3s; }
        .faq-item.active .faq-a { display: block; }

        .tabs { display: flex; gap: 10px; margin-bottom: 15px; background: #f5f5f5; padding: 5px; border-radius: 12px; }
        .tab { flex: 1; text-align: center; padding: 10px; border-radius: 8px; cursor: pointer; font-weight: 600; color: #777; transition: 0.2s; }
        .tab.active { background: white; color: var(--primary); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

        .branch-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; margin-bottom: 12px; justify-content: center; }
        .branch-card { background: white; border: 1.5px solid #eee; border-radius: 30px; padding: 8px 14px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
        .branch-card:active { transform: scale(0.97); }
        .branch-card.active { border-color: var(--primary); background: #fff8f0; box-shadow: 0 2px 8px rgba(255, 90, 0, 0.15); }
        .branch-card i { font-size: 13px; color: var(--primary); }
        .branch-card .bc-name { font-size: 13px; font-weight: 700; color: var(--text); }
        /* Durum noktası — kartın sağ ucunda küçük renkli nokta */
        .branch-card .bc-dot {
            width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-left: 1px;
        }
        .branch-card.bs-open   { border-color: #a8dfc0; }
        .branch-card.bs-open   .bc-dot { background: #02c076; box-shadow: 0 0 0 2px rgba(2,192,118,0.22); animation: bsPulse 2s ease-in-out infinite; }
        .branch-card.bs-busy   { border-color: #fcd08a; }
        .branch-card.bs-busy   .bc-dot { background: #f59e0b; }
        .branch-card.bs-closed { border-color: #fca5a5; }
        .branch-card.bs-closed .bc-dot { background: #ef4444; }
        .branch-card.bs-unknown .bc-dot { background: #d1d5db; }
        .branch-card.active.bs-open   { border-color: var(--primary); }
        .branch-card.active.bs-busy   { border-color: var(--primary); }
        .branch-card.active.bs-closed { border-color: var(--primary); }
        @keyframes bsPulse {
            0%,100% { box-shadow: 0 0 0 0 rgba(2,192,118,0.4); }
            50%      { box-shadow: 0 0 0 4px rgba(2,192,118,0); }
        }
        /* Şube grid başlık etiketi */
        .branch-grid-label { font-size: 11px; font-weight: 700; color: #aaa; letter-spacing: 0.8px; text-transform: uppercase; text-align: center; margin-bottom: 8px; margin-top: 2px; }
        .zone-item { padding: 12px; background: #f9f9f9; border-radius: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid #eee; }
        .zone-item:active { background: #eee; }
        @keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

        /* FOOTER STYLES */
        .app-footer {
            background: #1a1a1a;
            color: #ffffff;
            padding: 30px 15px 85px 15px;
            margin-top: 30px;
            text-align: center;
        }
        .footer-logo {
            max-width: 90px;
            height: auto;
            margin: 0 auto 15px auto;
            display: block;
        }
        .footer-brand-name {
            font-size: 20px;
            font-weight: 800;
            color: white;
            margin-bottom: 8px;
            letter-spacing: 1px;
        }
        .footer-tagline {
            font-size: 12px;
            color: #888;
            margin-bottom: 20px;
        }
        .social-links {
            display: flex;
            gap: 12px;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        .social-link {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
            transition: all 0.3s ease;
            text-decoration: none;
            border: 2px solid transparent;
        }
        .social-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 90, 0, 0.3);
        }
        .social-link.instagram {
            background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        }
        .social-link.facebook {
            background: #1877f2;
        }
        .social-link.tiktok {
            background: #000000;
            border: 2px solid #69C9D0;
        }
        
        .social-link.snapchat {
            background: #fffc00;
            color: #000;
            border: 2px solid rgba(0,0,0,0.15);
        }
.footer-links {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: center;
            list-style: none;
            padding: 0;
            margin: 0 0 20px 0;
            font-size: 13px;
        }
        .footer-link {
            color: #ccc;
            cursor: pointer;
            transition: color 0.2s;
            position: relative;
        }
        .footer-link:after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s;
        }
        .footer-link:hover {
            color: var(--primary);
        }
        .footer-link:hover:after {
            width: 100%;
        }
        .footer-bottom {
            text-align: center;
            padding-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 11px;
            color: #888;
        }

        /* POLICY MODAL STYLES */
        .policy-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10000;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        .policy-modal.active {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding: 20px;
        }
        .policy-content {
            background: white;
            border-radius: 15px;
            max-width: 600px;
            width: 100%;
            margin: auto;
            position: relative;
            animation: slideUp 0.3s ease;
        }
        .policy-header {
            padding: 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .policy-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text);
        }
        .policy-close {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 20px;
            color: #666;
        }
        .policy-body {
            padding: 25px;
            max-height: 60vh;
            overflow-y: auto;
            line-height: 1.6;
        }
        .policy-body h3 {
            color: var(--primary);
            margin-top: 20px;
            margin-bottom: 10px;
            font-size: 16px;
        }
        .policy-body p {
            margin-bottom: 15px;
            color: #555;
            font-size: 14px;
        }
        .policy-body ul {
            padding-left: 20px;
            margin-bottom: 15px;
        }
        .policy-body li {
            margin-bottom: 8px;
            color: #555;
            font-size: 14px;
        }
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    
        /* cat-scroll desktop override — yeni kurallar aşağıda DESKTOP LAYOUT FIXES bloğunda */


        /* FIRSAT ÜRÜN (FLASH DEAL) */
        .flash-deal-card { background: linear-gradient(135deg,#ff3d00,#ff9045); border-radius:12px; margin:0 16px 12px; padding:0; overflow:hidden; position:relative; box-shadow:0 4px 18px rgba(255,61,0,.4); cursor:pointer; display:flex; align-items:stretch; min-height:76px; border:1.5px solid rgba(255,255,255,0.2); }
        .flash-deal-card::after { content:''; position:absolute; top:0; left:-100%; width:60%; height:100%; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.18),transparent); animation:promoBannerShimmer 2.2s ease-in-out infinite; z-index:3; pointer-events:none; }
        .flash-deal-badge { position:absolute; top:8px; left:10px; background:white; color:#ff3d00; font-size:10px; font-weight:900; padding:3px 8px; border-radius:20px; z-index:5; animation:flashPulse 1s ease-in-out infinite; }
        @keyframes flashPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.7;transform:scale(1.06)} }
        .flash-deal-content { flex:1; padding:28px 12px 10px; color:white; z-index:2; }
        .flash-deal-name { font-size:14px; font-weight:800; margin-bottom:2px; line-height:1.2; text-shadow:0 1px 3px rgba(0,0,0,.2); }
        .flash-deal-prices { display:flex; align-items:center; gap:6px; margin-top:4px; }
        .flash-deal-old { font-size:11px; text-decoration:line-through; opacity:.75; }
        .flash-deal-new { font-size:17px; font-weight:900; }
        .flash-deal-timer { font-size:10px; background:rgba(0,0,0,.2); padding:2px 7px; border-radius:10px; margin-top:4px; display:inline-block; }
        .flash-deal-img { width:90px; min-width:90px; object-fit:cover; }
                .pay-method-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:11px 16px; border:2px solid #e0e0e0; border-radius:12px; cursor:pointer; font-size:13px; font-weight:600; background:white; transition:all .18s; user-select:none; box-shadow:0 1px 3px rgba(0,0,0,.07); min-height:48px; }
        .pay-method-btn.active { border-color:#ff5a00; background:#fff5f0; box-shadow:0 0 0 3px rgba(255,90,0,.18); }
        .pay-method-btn:hover:not(.active) { border-color:#bbb; background:#f9f9f9; transform:translateY(-1px); box-shadow:0 3px 8px rgba(0,0,0,.1); }
        #onlineMethodsBox { display:none; margin-top:12px; gap:8px; flex-wrap:wrap; }
        #onlineMethodsBox { display:none; margin-top:12px; gap:8px; flex-wrap:wrap; }
    
        /* === ISSUE REPORT MODAL === */
        .issue-type-btn {
            background: white;
            border: 2px solid #eee;
            border-radius: 10px;
            padding: 8px 6px;
            text-align: center;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            color: #333;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }
        .issue-type-btn:active { transform: scale(0.95); }
        .issue-type-btn.selected {
            border-color: var(--primary);
            background: var(--primary-bg, #fff0e6);
            color: var(--primary);
        }
    /* ═══════════════════════════════════════════════
       KW CART FAB + SLIDE-UP PANEL
       ═══════════════════════════════════════════════ */
    #kwFab { position:fixed; right:20px; bottom:152px; z-index:3600; display:none; }
    html[dir="rtl"] #kwFab { right:auto; left:20px; }
    #kwFabBtn {
        width:42px; height:42px; background:var(--primary); color:white;
        border:none; border-radius:50%; font-size:17px; cursor:pointer;
        display:flex; align-items:center; justify-content:center;
        box-shadow:0 4px 14px rgba(255,90,0,0.4); position:relative;
        transition:transform 0.15s; -webkit-tap-highlight-color:transparent;
    }
    @media (max-width: 767px) {
        #kwFabBtn { width:42px; height:42px; font-size:17px; }
        #kwFab { bottom:185px; right:14px; }
    }
    #kwFabBtn:active { transform:scale(0.9); }
    @keyframes kwFabPop { 0%{transform:scale(1)} 35%{transform:scale(1.28)} 65%{transform:scale(0.92)} 100%{transform:scale(1)} }
    #kwFabBtn.kwPopping { animation:kwFabPop 0.4s ease; }
    #kwFabN {
        position:absolute; top:-5px; right:-5px;
        background:var(--red); color:white; font-size:11px; font-weight:800;
        min-width:20px; height:20px; border-radius:10px; padding:0 5px;
        display:flex; align-items:center; justify-content:center;
        border:2px solid white; pointer-events:none;
    }
    @keyframes kwBadgePop { 0%{transform:scale(1)} 40%{transform:scale(1.7)} 80%{transform:scale(0.88)} 100%{transform:scale(1)} }
    #kwFabN.kwBumping { animation:kwBadgePop 0.35s ease; }
    .kwFlyItem {
        position:fixed; z-index:9999; width:42px; height:42px; border-radius:50%;
        pointer-events:none; display:flex; align-items:center; justify-content:center;
        background:white; box-shadow:0 4px 14px rgba(0,0,0,0.22);
        transition:all 0.65s cubic-bezier(0.2,0.8,0.2,1); font-size:18px; overflow:hidden;
    }
    .kwFlyItem img { width:100%; height:100%; object-fit:cover; }
    #kwOverlay {
        display:none; position:fixed; inset:0; background:rgba(0,0,0,0.52);
        z-index:10010; transition:opacity 0.3s;
    }
    #kwOverlay.kwOpen { display:block; }
    #kwPanel {
        position:fixed; bottom:0; left:0; right:0;
        background:#f4f5f7; border-radius:22px 22px 0 0;
        max-height:88vh; display:flex; flex-direction:column;
        z-index:10011; transform:translateY(100%);
        transition:transform 0.38s cubic-bezier(0.32,0.72,0,1); overflow:hidden;
        max-width:500px; margin:0 auto;
    }
    #kwOverlay.kwOpen #kwPanel { transform:translateY(0); }
    .kwPH { background:white; padding:14px 16px 12px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #edeef2; flex-shrink:0; }
    .kwPH-left { display:flex; align-items:center; gap:10px; }
    .kwPH-title { font-size:17px; font-weight:800; }
    .kwPH-pill { background:#fff2eb; color:var(--primary); font-size:12px; font-weight:800; padding:3px 10px; border-radius:20px; }
    .kwCloseBtn { width:34px; height:34px; background:#f0f0f0; border:none; border-radius:50%; font-size:16px; cursor:pointer; display:flex; align-items:center; justify-content:center; color:#555; flex-shrink:0; }
    #kwBody { flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; padding-bottom:6px; }
    #kwBody::-webkit-scrollbar { width:3px; }
    #kwBody::-webkit-scrollbar-thumb { background:#ddd; border-radius:2px; }
    .kwShipWrap { background:#fff2eb; margin:10px 12px 0; border-radius:12px; padding:12px 14px; border:1px solid rgba(255,90,0,0.15); }
    .kwShipTxt { font-size:12px; font-weight:700; color:var(--primary); margin-bottom:7px; display:flex; align-items:center; gap:6px; }
    .kwShipTrack { height:5px; background:rgba(255,90,0,0.15); border-radius:3px; overflow:hidden; }
    .kwShipFill { height:100%; background:var(--primary); border-radius:3px; transition:width 0.5s ease; }
    .kwItemsCard { background:white; margin:10px 12px 0; border-radius:14px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,0.05); }
    .kwCI { display:flex; align-items:center; gap:12px; padding:12px 14px; border-bottom:1px solid #edeef2; animation:kwFadeIn 0.2s ease; }
    .kwCI:last-child { border-bottom:none; }
    @keyframes kwFadeIn { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)} }
    .kwCIImg { width:56px; height:56px; border-radius:10px; flex-shrink:0; display:flex; align-items:center; justify-content:center; background:#fff5f0; border:1px solid #edeef2; overflow:hidden; font-size:22px; }
    .kwCIImg img { width:100%; height:100%; object-fit:cover; }
    .kwCIInfo { flex:1; min-width:0; }
    .kwCIName { font-size:13px; font-weight:700; margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .kwCIPrice { font-size:14px; font-weight:800; color:var(--primary); }
    .kwQty { display:flex; align-items:center; background:#f4f5f7; border-radius:20px; border:1px solid #edeef2; overflow:hidden; flex-shrink:0; }
    .kwQtyBtn { width:30px; height:30px; background:none; border:none; font-size:15px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--primary); transition:background 0.15s; -webkit-tap-highlight-color:transparent; }
    .kwQtyBtn:active { background:rgba(255,90,0,0.1); }
    .kwQtyNum { min-width:26px; text-align:center; font-size:13px; font-weight:800; }
    .kwEmpty { padding:40px 20px; text-align:center; }
    .kwEmpty i { font-size:44px; color:#ddd; margin-bottom:12px; display:block; }
    .kwEmptyTitle { font-size:15px; font-weight:700; margin-bottom:5px; }
    .kwEmptySub { font-size:12px; color:#999; }
    .kwRecsCard { background:white; margin:10px 12px 0; border-radius:14px; padding:13px; box-shadow:0 2px 8px rgba(0,0,0,0.05); }
    .kwRecsTitle { font-size:13px; font-weight:800; margin-bottom:11px; display:flex; align-items:center; gap:7px; }
    .kwRecsTitle i { color:var(--primary); }
    .kwRecsScroll { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; padding-bottom:2px; }
    .kwRecsScroll::-webkit-scrollbar { display:none; }
    .kwRecCard {
        min-width:130px; max-width:130px;
        background:#fafafa; border-radius:11px; padding:8px;
        border:1.5px solid #edeef2; cursor:pointer; flex-shrink:0;
        transition:border-color 0.2s; -webkit-tap-highlight-color:transparent;
        display:flex; flex-direction:column; gap:5px;
    }
    .kwRecCard:active { border-color:var(--primary); }
    .kwRecImg {
        width:100%; height:52px; border-radius:7px;
        background:#fff5f0; display:flex; align-items:center;
        justify-content:center; font-size:22px; overflow:hidden; flex-shrink:0;
    }
    .kwRecImg img { width:100%; height:100%; object-fit:cover; }
    .kwRecName {
        font-size:11px; font-weight:700; line-height:1.3;
        display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
        flex:1;
    }
    .kwRecPrice { font-size:12px; font-weight:800; color:var(--primary); }
    .kwRecAddBtn {
        width:100%; background:var(--primary); color:white; border:none;
        border-radius:16px; padding:5px 4px; font-size:11px; font-weight:700;
        cursor:pointer; -webkit-tap-highlight-color:transparent; flex-shrink:0;
    }
    .kwSumCard { background:white; margin:10px 12px 0; border-radius:14px; padding:14px; box-shadow:0 2px 8px rgba(0,0,0,0.05); }
    .kwSumTitle { font-size:13px; font-weight:800; margin-bottom:10px; display:flex; align-items:center; gap:7px; }
    .kwSumTitle i { color:var(--primary); }
    .kwSumRow { display:flex; justify-content:space-between; align-items:center; padding:5px 0; font-size:13px; color:#777; border-bottom:1px solid #f0f0f0; }
    .kwSumRow:last-child { border-bottom:none; }
    .kwSumRow.kwTotal { font-size:15px; font-weight:800; color:#1a1a2e; padding-top:10px; }
    .kwSumRow.kwTotal .kwSumVal { color:var(--primary); font-size:16px; }
    .kwSumLbl { font-weight:600; }
    .kwSumVal { font-weight:700; }
    .kwFooter { background:white; padding:12px 14px 14px; border-top:1px solid #edeef2; flex-shrink:0; }
    .kwConfirmBtn {
        width:100%; background:var(--primary); color:white; border:none; border-radius:14px;
        padding:15px 18px; font-size:15px; font-weight:800; cursor:pointer;
        display:flex; align-items:center; justify-content:space-between;
        position:relative; overflow:hidden; transition:transform 0.15s;
        -webkit-tap-highlight-color:transparent;
    }
    .kwConfirmBtn:active { transform:scale(0.98); background:#d44d00; }
    @keyframes kwShimmer { to{left:130%;} }
    .kwConfirmBtn::before { content:''; position:absolute; top:0; left:-100%; width:50px; height:100%; background:rgba(255,255,255,0.18); transform:skewX(-22deg); animation:kwShimmer 2.5s infinite; }
    .kwConfirmLeft { display:flex; flex-direction:column; align-items:flex-start; gap:1px; }
    .kwConfirmLbl { font-size:15px; font-weight:800; }
    .kwConfirmSub { font-size:11px; opacity:0.82; }
    .kwConfirmTotal { font-size:17px; font-weight:900; }
    .kwConfirmArrow { width:32px; height:32px; background:rgba(255,255,255,0.2); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
    html[dir="rtl"] .kwPH-left{flex-direction:row-reverse} html[dir="rtl"] .kwCI{flex-direction:row-reverse} html[dir="rtl"] .kwCIInfo{text-align:right}
    html[dir="rtl"] .kwConfirmBtn{flex-direction:row-reverse} html[dir="rtl"] .kwConfirmLeft{align-items:flex-end} html[dir="rtl"] .kwConfirmArrow i{transform:scaleX(-1)}
    html[dir="rtl"] .kwSumRow{flex-direction:row-reverse} html[dir="rtl"] .kwRecsTitle{flex-direction:row-reverse} html[dir="rtl"] .kwSumTitle{flex-direction:row-reverse} html[dir="rtl"] .kwShipTxt{flex-direction:row-reverse}
    /* ═══ CART PREVIEW BANNER — KW panel tarafından üstlenildi, gizlendi ═══ */
    #cartPreviewBanner { display:none !important; pointer-events:none !important; }

    /* ═══ ORDER REVIEW MODAL — sabit header/footer, ortası kayar ═══
       Çok ürün eklenince "Place Order" ekranın altına düşüyordu; artık
       buton footer'da sabit, sadece liste kayıyor. JS display:block/none
       yönetmeye devam ediyor — o yüzden overlay block kalıyor. */
    #orderReviewOverlay { box-sizing:border-box; overflow:hidden;
        padding: calc(16px + env(safe-area-inset-top, 0px)) 12px calc(16px + env(safe-area-inset-bottom, 0px)); }
    body.bj-inapp #orderReviewOverlay { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
    #orderReviewOverlay .bjRevCard { background:white; border-radius:20px; max-width:480px; margin:0 auto;
        position:relative; box-sizing:border-box; max-height:100%; display:flex; flex-direction:column; overflow:hidden; }
    #orderReviewOverlay .bjRevHead { flex-shrink:0; display:flex; align-items:center; justify-content:space-between;
        padding:18px 20px 12px; border-bottom:1px solid #f0f0f0; }
    #orderReviewOverlay .bjRevBody { flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch;
        overscroll-behavior:contain; padding:12px 20px 12px; }
    #orderReviewOverlay .bjRevFoot { flex-shrink:0; background:white; padding:12px 20px 16px;
        border-top:1px solid #eee; box-shadow:0 -6px 16px rgba(0,0,0,0.06); }
    html[dir="rtl"] #orderReviewOverlay .bjRevHead { flex-direction:row; }

    /* ═══════════════════════════════════════════════════
       DESKTOP LAYOUT FIXES
       ═══════════════════════════════════════════════════ */

    /* 1) #prodList yanlışlıkla prod-grid sınıfı taşıyor.
          Masaüstünde kategorileri yan yana koyuyor → block yap */
    #prodList {
        display: block !important;
        padding: 0 !important;
    }

    /* 2) Desktop: tüm home içeriğini ortala, max-width sınırla */
    @media (min-width: 900px) {
        #view-home {
            max-width: 1320px;
            margin: 0 auto;
        }

        /* 3) Kategori bar — wrap yerine yatay kaydırma (orphan pill sorunu çözülür) */
        .cat-scroll {
            flex-wrap: nowrap !important;
            overflow-x: auto !important;
            justify-content: flex-start !important;
            padding-left: 20px !important;
            padding-right: 20px !important;
            row-gap: 0 !important;
            scrollbar-width: thin !important;
            scrollbar-color: #ddd transparent !important;
        }
        .cat-scroll::-webkit-scrollbar { height: 4px; }
        .cat-scroll::-webkit-scrollbar-track { background: transparent; }
        .cat-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

        /* 4) Ürün grid — masaüstünde daha iyi sütun dağılımı */
        .prod-grid {
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 16px;
            padding: 0 20px;
        }

        /* 5) Her kategori bloğu tam genişlikte kalsın */
        .cat-section { width: 100%; }
        .cat-section-title { margin: 24px 20px 12px 20px; font-size: 20px; }

        /* 6) Controls bar ve popular section padding hizala */
        .controls-bar { padding-left: 20px; padding-right: 20px; }
        #popularSection { padding-left: 20px !important; padding-right: 20px !important; }
    }

    /* Geniş ekran: daha büyük kartlar */
    @media (min-width: 1200px) {
        .prod-grid {
            grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
        }
    }
    