/* Bimossa (web uygulaması): renkler tema.js'in yazdığı CSS değişkenlerinden gelir; ölçüler BimossaMobil (MAUI) ekranlarıyla aynı tutuldu. */

:root {
    --ana: #E31E24; --ustbar: #111827; --ozet: #111827; --ozet-cizgi: #1F2937; --ozet-vurgu: #FCA5A5; --ozet-soluk: #A3ADBD;
    --zemin: #F3F4F6; --yuzey: #FFFFFF; --metin: #111827; --metin2: #374151; --soluk: #6B7280; --silik: #9CA3AF; --kenar: #E5E7EB;
    --altbar: #111827; --alt-secili: #FFFFFF; --alt-soluk: #7C8698; --yesil: #15803D; --kirmizi: #B91C1C;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Sayfanın kendi zemini alt menü rengindedir: iPhone'da (ana ekrandan açılınca) alt menünün altında, ana ekran çubuğunun yanında bir
   piksellik bir aralık kalabiliyor; o aralık menüyle aynı renk olunca görünmez (07.10.2026, kullanıcı iPhone'da beyaz çizgi gördü). */
html, body { height: 100%; margin: 0; background: var(--altbar); }
body {
    color: var(--metin);
    font: 15px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: manipulation; }
textarea { font: inherit; }

/* ── İskelet: üst çubuk · sayfa · alt menü ── */
#uyg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; background: var(--zemin); }

#ust {
    flex: none; display: flex; align-items: center; gap: 4px; background: var(--ustbar); color: #fff;
    box-sizing: content-box; height: 52px;
    padding: env(safe-area-inset-top) calc(6px + env(safe-area-inset-right)) 0 calc(14px + env(safe-area-inset-left));
}
#ust-logo { display: block; height: 26px; width: auto; margin-left: 4px; }
#ust-baslik { margin: 0 0 0 4px; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esnek { flex: 1; }
.ust-dugme { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 22px; color: #fff; padding: 0; }
.ust-dugme:active { background: rgba(255, 255, 255, .14); }
#geri { margin-left: -10px; }
#yenile.doner svg { animation: don .8s linear infinite; }
@keyframes don { to { transform: rotate(360deg); } }

#govde { flex: 1; min-height: 0; position: relative; }
.sayfa { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; }
.kaydir { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.sayfa.kaydir { display: block; }
.sayfa > .kaydir { flex: 1; min-height: 0; }
.alt-bosluk { height: 24px; }

/* Alt kenar 1 px taşırılır: yuvarlama aralığı kalmasın. Ana ekran çubuğu payı en çok 34 px: yeni iPhone'larda (iOS 26+) sistem bu değeri
   çok büyük bildirdi, menünün altında koca boşluk kalıyordu (07.10.2026). Bildirilen değer Ayarlar → Bilgi'de görünür. */
:root { --alt-bosluk: env(safe-area-inset-bottom, 0px); }
#alt { flex: none; display: flex; background: var(--altbar); box-shadow: 0 -1px 0 var(--kenar); padding: 0 env(safe-area-inset-right) calc(min(var(--alt-bosluk), 34px) + 1px) env(safe-area-inset-left); margin-bottom: -1px; }
.sekme { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 56px; background: none; border: 0; padding: 0; color: var(--alt-soluk); font-size: 11.5px; }
.sekme.secili { color: var(--alt-secili); font-weight: 600; }

/* ── Ortak parçalar ── */
.kart { background: var(--yuzey); border: 1px solid var(--kenar); border-radius: 16px; padding: 14px 16px; margin: 0 14px 10px; }
.kart.ust-bosluk { margin-top: 12px; }
.kart > * + * { margin-top: 8px; }
.baslik { font-size: 16px; font-weight: 700; }
.baslik.buyuk { font-size: 17px; }
.aciklama { font-size: 12.5px; color: var(--soluk); }
.orta-metin { font-size: 14px; color: var(--soluk); }
.durum { font-size: 11.5px; color: var(--soluk); margin: 10px 18px 0; min-height: 16px; }
.durum.hata, .hata-metin { color: var(--kirmizi); }
.iyi-metin { color: var(--yesil); }
.nokta { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--soluk); }

.dugme { display: block; width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--kenar); background: var(--yuzey); color: var(--metin); font-size: 15px; }
.dugme.ana { background: var(--ana); border-color: var(--ana); color: #fff; font-weight: 700; }
.dugme.yalin { border-color: transparent; background: none; color: var(--kirmizi); }
.dugme:active { opacity: .75; }
.dugme:disabled { opacity: .5; }

/* ── Özet kartı (her temada koyu): sipariş, ciro, site site dağılım ── */
.ozet { background: var(--ozet); color: #fff; border-radius: 16px; padding: 16px 18px; margin: 12px 14px 6px; }
.ozet-ust { font-size: 12px; font-weight: 700; color: var(--ozet-vurgu); text-transform: uppercase; letter-spacing: .02em; }
.ozet-sayilar { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 2px; }
.ozet-sol { display: flex; align-items: flex-end; gap: 8px; }
.ozet-sayi { font-size: 46px; font-weight: 700; line-height: 1.12; }
.ozet-sip { font-size: 15px; color: var(--ozet-soluk); margin-bottom: 10px; }
.ozet-sag { text-align: right; margin-bottom: 8px; }
.ozet-ciro { font-size: 21px; font-weight: 700; white-space: nowrap; }
.ozet-ciro-ad { font-size: 12px; color: var(--ozet-soluk); }
.ozet-alt { font-size: 12.5px; color: var(--ozet-soluk); margin-top: 2px; }
.ozet-cizgi { height: 1px; background: var(--ozet-cizgi); margin: 10px 0 6px; }
.ozet-site { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.ozet-site .nokta { width: 10px; height: 10px; }
.ozet-site .ad { flex: 1; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ozet-site .say { font-size: 15px; font-weight: 700; }
.ozet-site .tutar { flex: none; width: 92px; text-align: right; font-size: 12.5px; color: var(--ozet-soluk); white-space: nowrap; }
.ozet-cubuk { height: 4px; border-radius: 2px; background: var(--ozet-cizgi); margin: 3px 0 0 18px; overflow: hidden; }
.ozet-cubuk > div { height: 100%; border-radius: 2px; }

/* ── Site başlığı + ürün satırları ── */
.site-baslik { display: flex; align-items: center; gap: 10px; padding: 18px 18px 8px; }
.site-baslik .orta { flex: 1; min-width: 0; }
.site-ad { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-alt { font-size: 12px; color: var(--soluk); }
.site-tutar { font-size: 15px; font-weight: 700; color: var(--metin2); white-space: nowrap; }

.urunler { margin: 0 14px; background: var(--yuzey); border: 1px solid var(--kenar); border-radius: 14px; overflow: hidden; }
.urun { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; content-visibility: auto; contain-intrinsic-size: auto 87px; }
.urun + .urun { border-top: 1px solid var(--kenar); }
/* Fotoğraf kutusu her temada beyaz: ürün fotoğraflarının zemini beyaz */
.foto { flex: none; width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--kenar); background: #fff; overflow: hidden; }
.foto img { display: block; width: 100%; height: 100%; object-fit: contain; }
.urun-orta { flex: 1; min-width: 0; align-self: center; }
.urun-ad { font-size: 14px; font-weight: 700; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.urun-fiyat { font-size: 13px; margin-top: 2px; color: var(--soluk); }
.urun-fiyat b { color: var(--metin2); }
.urun-fiyat span + b { margin-left: 6px; }
.urun-fiyat b.cok { color: var(--ana); }
.urun-alt { font-size: 11.5px; color: var(--silik); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.urun-tutar { flex: none; font-size: 14.5px; font-weight: 700; white-space: nowrap; }

/* ── Geçmiş: hazır aralıklar, tarih kutuları, gün kartları ── */
#gecmis-ust { flex: none; background: var(--yuzey); border-bottom: 1px solid var(--kenar); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.cipler { display: flex; gap: 8px; padding: 10px 14px 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cipler::-webkit-scrollbar { display: none; }
.cip { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--kenar); background: var(--yuzey); color: var(--metin2); font-size: 13px; white-space: nowrap; }
.cip.secili { background: var(--ana); border-color: var(--ana); color: #fff; }
.tarihler { display: flex; align-items: center; gap: 8px; padding: 0 14px 10px; }
.tarihler .ok { flex: none; font-size: 16px; color: var(--soluk); }
.tarih-kutu { position: relative; flex: 1; min-width: 0; border: 1px solid var(--kenar); border-radius: 10px; background: var(--yuzey); padding: 5px 12px 6px; }
.tarih-kutu .etiket { font-size: 10.5px; color: var(--soluk); }
.tarih-kutu .satir { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.tarih-kutu .gun { font-size: 14px; white-space: nowrap; }
.tarih-kutu .saat { font-size: 14px; font-weight: 700; color: var(--ana); }
/* Tarih seçici görünmez halde kutunun tamamını kaplar: dokununca telefonun kendi takvimi açılır, yazı her cihazda gg.aa.yyyy kalır */
.tarih-kutu input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; margin: 0; padding: 0; border: 0; font-size: 16px; -webkit-appearance: none; appearance: none; }

.gun-gun { font-size: 11.5px; font-weight: 700; color: var(--soluk); margin: 12px 18px 6px; }
.urunlere-git { display: flex; align-items: center; gap: 10px; background: var(--yuzey); border: 1px solid var(--kenar); border-radius: 14px; padding: 12px 16px; margin: 4px 14px 6px; width: calc(100% - 28px); text-align: left; }
.urunlere-git .orta { flex: 1; min-width: 0; }
.urunlere-git .ad { font-size: 14.5px; font-weight: 700; }
.urunlere-git .alt { font-size: 12px; color: var(--soluk); margin-top: 1px; }
.urunlere-git .git { flex: none; font-size: 24px; line-height: 1; color: var(--ana); }

.gun-kart { display: flex; align-items: center; gap: 12px; background: var(--yuzey); border: 1px solid var(--kenar); border-radius: 16px; padding: 12px 16px; margin: 0 14px 8px; width: calc(100% - 28px); text-align: left; }
.gun-kart .orta { flex: 1; min-width: 0; }
.gun-kart .ad { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gun-kart .aralik { font-size: 11.5px; color: var(--silik); margin-top: 2px; }
.gun-kart .siteler { font-size: 12.5px; color: var(--soluk); margin-top: 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.gun-kart .sag { flex: none; text-align: right; }
.gun-kart .sayi { font-size: 22px; font-weight: 700; line-height: 1.15; }
.gun-kart .sayi.bos { color: var(--silik); }
.gun-kart .tutar { font-size: 12.5px; color: var(--soluk); white-space: nowrap; }
.urunlere-git:active, .gun-kart:active { opacity: .75; }

/* ── Ayarlar: bölüm şeridi, tema kutuları, bağlantı ── */
#ayar-serit { flex: none; padding: 12px calc(14px + env(safe-area-inset-right)) 10px calc(14px + env(safe-area-inset-left)); }
.serit { display: flex; gap: 4px; padding: 4px; background: var(--yuzey); border: 1px solid var(--kenar); border-radius: 12px; }
.serit button { flex: 1; height: 38px; border: 0; border-radius: 9px; background: none; color: var(--metin2); font-size: 13.5px; padding: 0; }
.serit button.secili { background: var(--ana); color: #fff; font-weight: 700; }

.temalar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tema-kutu { display: block; background: var(--yuzey); border: 1px solid var(--kenar); border-radius: 14px; padding: 8px; text-align: left; }
.tema-kutu.secili { border: 2px solid var(--ana); padding: 7px; }
.tema-ornek { display: flex; flex-direction: column; height: 104px; border: 1px solid var(--kenar); border-radius: 9px; overflow: hidden; }
.tema-ornek .t-ust { flex: none; height: 14px; }
.tema-ornek .t-govde { flex: 1; padding: 6px 7px; display: flex; flex-direction: column; gap: 5px; }
.tema-ornek .t-ozet { height: 26px; border-radius: 5px; }
.tema-ornek .t-satir { display: flex; align-items: center; gap: 5px; height: 15px; padding: 0 5px; }
.tema-ornek .t-kare { flex: none; width: 9px; height: 9px; border-radius: 2px; }
.tema-ornek .t-yazi { flex: 1; height: 3px; border-radius: 1.5px; opacity: .75; margin-right: 16px; }
.tema-ornek .t-yazi.kisa { margin-right: 30px; }
.tema-ornek .t-vurgu { flex: none; width: 14px; height: 4px; border-radius: 2px; }
.tema-ornek .t-alt { flex: none; height: 13px; display: flex; align-items: center; justify-content: space-around; }
.tema-ornek .t-alt i { display: block; width: 12px; height: 4px; border-radius: 2px; }
.tema-ad { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; font-size: 13.5px; }
.tema-kutu.secili .tema-ad { color: var(--ana); font-weight: 700; }

.eslestir-kutu { display: block; width: 100%; height: 120px; resize: none; border: 1px solid var(--kenar); border-radius: 10px; background: var(--zemin); color: var(--metin); padding: 10px 12px; font-size: 16px; line-height: 1.3; -webkit-user-select: text; user-select: text; -webkit-appearance: none; appearance: none; }
.eslestir-kutu::placeholder { color: var(--silik); font-size: 13px; }
.madde > .ad { font-size: 13.5px; font-weight: 700; }
.madde > .metin { font-size: 12.5px; color: var(--soluk); margin-top: 2px; }
.kart > .madde + .madde, .kart > .baslik + .madde { margin-top: 12px; }
.satirli { white-space: pre-line; }
.surum { font-size: 11.5px; color: var(--silik); margin: 4px 18px 20px; }
.adimlar { margin: 6px 0 0; padding-left: 20px; font-size: 13px; color: var(--metin2); }
.adimlar li + li { margin-top: 4px; }
.secilebilir { -webkit-user-select: text; user-select: text; }
