/* RESTOM_TASARIM_V1: telefon/tablet siparis ekraninda fotografsiz urun kartlari (isim + fiyat okunur, QR menu havasinda) */
@media (max-width: 1100px) {
    #orderModal #productList .product-item.rs-no-photo { height: auto !important; min-height: 104px !important; padding: 12px 12px 10px !important; display: flex !important; flex-direction: column !important; justify-content: space-between !important; gap: 8px; text-align: left !important; background: linear-gradient(150deg, #ffffff 55%, #e6f6ee) !important; border: 1px solid rgba(17, 175, 102, .18) !important; border-radius: 16px !important; box-shadow: 0 6px 16px rgba(16, 60, 38, .08) !important; isolation: auto !important; }
    #orderModal #productList .product-item.rs-no-photo::before,
    #orderModal #productList .product-item.rs-no-photo::after { display: none !important; }
    #orderModal #productList .product-item.rs-no-photo .product-item-img { display: none !important; }
    #orderModal #productList .product-item.rs-no-photo strong { color: #0f2a1c !important; font-size: 15px !important; font-weight: 700 !important; text-transform: none !important; text-shadow: none !important; margin: 0 !important; padding: 0 !important; text-align: left !important; max-height: none !important; -webkit-line-clamp: 3 !important; line-clamp: 3 !important; }
    #orderModal #productList .product-item.rs-no-photo .product-item-price { color: #057449 !important; font-size: 16px !important; font-weight: 800 !important; text-shadow: none !important; padding: 0 !important; margin: 0 !important; text-align: left !important; }
    #orderModal #productList .product-item.rs-no-photo:active { transform: scale(.98); border-color: #11af66 !important; }
}
body.dark-mode #orderModal #productList .product-item.rs-no-photo { background: linear-gradient(150deg, #1f2a24 55%, #1b3a2b) !important; border-color: rgba(126, 240, 178, .2) !important; }
body.dark-mode #orderModal #productList .product-item.rs-no-photo strong { color: #e8f5ee !important; }
body.dark-mode #orderModal #productList .product-item.rs-no-photo .product-item-price { color: #7ef0b2 !important; }
@media (min-width: 600px) and (max-width: 1100px) {
    #orderModal #productList { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; }
}
#productList .product-item .product-item-price.rs-sec { font-weight: 800; letter-spacing: .01em; }
/* alt kategori sekmeleri: bilgisayarda sagdaki kategoriler kaybolmasin, satirlar alt alta sarilir */
@media (min-width: 769px) {
    #orderModal #subCategoryTabs { flex-wrap: wrap !important; overflow-x: visible !important; overflow-y: auto; max-height: 176px; row-gap: 8px; }
    #orderModal #subCategoryTabs .category-tab-btn { flex: 0 0 auto; }
}
/* fotografsiz kartta "GORSEL EKLENECEK" yer tutucusu isimle ust uste binmesin (rs-no-photo sinifi yoksa bile) */
#orderModal #productList .product-item:not(.rs-no-photo) .product-item-img[style*="R09SU0VMPC90ZXh0"] { background-image: none !important; background-color: #2d343c !important; }
/* alt kategori popup */
#subCategoryTabs.rs-sub-popup { display: none !important; }
.rs-sub-trigger { display: inline-flex; align-items: center; gap: 10px; margin: 8px 20px; padding: 10px 16px; border: 1.5px solid rgba(17, 175, 102, .35); border-radius: 14px; background: #fff; color: #0f2a1c; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 2px 8px rgba(16, 60, 38, .08); }
.rs-sub-trigger span { color: #64748b; font-weight: 600; }
.rs-sub-trigger b { color: #057449; }
.rs-sub-trigger i { font-style: normal; background: #e6f6ee; color: #057449; border-radius: 99px; padding: 1px 9px; font-size: 12px; }
.rs-sub-trigger em { font-style: normal; color: #057449; }
.rs-subpop { position: fixed; inset: 0; z-index: 9500; background: rgba(10, 18, 14, .55); display: grid; place-items: center; padding: 16px; animation: rs-pop-fade .16s ease-out; }
.rs-subpop-box { width: min(1200px, 98vw); max-height: 96vh; display: flex; flex-direction: column; background: #fff; color: #0f2a1c; border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .4) inset; overflow: hidden; animation: rs-pop-up .2s cubic-bezier(.2, .9, .3, 1); }
.rs-subpop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 22px 12px; background: linear-gradient(135deg, #effaf4 0%, #fff 70%); border-bottom: 1px solid rgba(17, 175, 102, .14); }
.rs-subpop-head h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: #0b3b25; }
.rs-subpop-head p { margin: 3px 0 0; font-size: 13px; font-weight: 600; color: #64748b; }
.rs-subpop-x { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .08); background: #fff; color: #334155; font-size: 22px; line-height: 1; cursor: pointer; transition: background .15s, transform .15s; }
.rs-subpop-x:hover { background: #f1f5f2; transform: scale(1.05); }
.rs-subpop-search { padding: 12px 22px 0; }
.rs-subpop-search input { width: 100%; box-sizing: border-box; height: 42px; padding: 0 16px; border-radius: 13px; border: 1.5px solid rgba(0, 0, 0, .1); background: #f6f9f7; color: inherit; font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.rs-subpop-search input:focus { border-color: #11af66; box-shadow: 0 0 0 4px rgba(17, 175, 102, .14); background: #fff; }
.rs-subpop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 9px; padding: 14px 22px 20px; overflow-y: auto; }
.rs-subpop-item { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 58px; padding: 9px 14px; border-radius: 16px; border: 1.5px solid rgba(15, 42, 28, .09); background: linear-gradient(160deg, #ffffff, #f4f8f6); color: #0f2a1c; font: inherit; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.rs-subpop-item:hover, .rs-subpop-item:focus-visible { transform: translateY(-2px); border-color: #11af66; box-shadow: 0 10px 22px rgba(16, 60, 38, .13); outline: none; }
.rs-si-name { font-size: 14px; font-weight: 700; line-height: 1.25; padding-right: 22px; }
.rs-si-count { font-size: 12px; font-weight: 600; color: #6b7c73; }
.rs-si-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.rs-subpop-item.on { background: linear-gradient(135deg, #16b96b, #078c52); border-color: #078c52; color: #fff; box-shadow: 0 10px 24px rgba(7, 140, 82, .3); }
.rs-subpop-item.on .rs-si-count { color: rgba(255, 255, 255, .85); }
.rs-subpop-empty { padding: 28px; text-align: center; color: #64748b; font-weight: 600; }
@keyframes rs-pop-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rs-pop-up { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rs-subpop, .rs-subpop-box { animation: none; } .rs-subpop-item, .rs-subpop-x { transition: none; } }
body.dark-mode .rs-sub-trigger, body.dark-mode .rs-subpop-box { background: #1f2a24; color: #e8f5ee; }
body.dark-mode .rs-sub-trigger b { color: #7ef0b2; }
body.dark-mode .rs-subpop-head { background: linear-gradient(135deg, #223a2f, #1f2a24 70%); border-color: rgba(255, 255, 255, .08); }
body.dark-mode .rs-subpop-head h3 { color: #e8f5ee; }
body.dark-mode .rs-subpop-x, body.dark-mode .rs-subpop-search input { background: #26352d; color: #e8f5ee; border-color: rgba(255, 255, 255, .1); }
body.dark-mode .rs-subpop-item { background: #26352d; color: #e8f5ee; border-color: rgba(255, 255, 255, .08); }
body.dark-mode .rs-si-count { color: #a9bdb1; }
@media (max-width: 768px) { .rs-sub-trigger { margin: 8px 12px; } .rs-subpop { padding: 10px; } .rs-subpop-box { border-radius: 20px; max-height: 88vh; } .rs-subpop-head, .rs-subpop-search, .rs-subpop-grid { padding-left: 16px; padding-right: 16px; } .rs-subpop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
#subCategoryTabs.rs-sub-popup + .rs-sub-trigger, .rs-sub-trigger { display: none !important; }
.rs-pick-btn { padding: 12px 22px; border-radius: 14px; border: 0; background: linear-gradient(135deg, #16b96b, #078c52); color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 8px 20px rgba(7, 140, 82, .28); }
/* ana kategori ekrani */
.rs-home { grid-column: 1 / -1; padding: 8px 4px 24px; }
.rs-home h4 { margin: 4px 0 14px; font-size: 18px; font-weight: 800; color: #0b3b25; }
.rs-home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.rs-home-tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 132px; padding: 18px 20px; text-align: left; border-radius: 20px; border: 1.5px solid rgba(17, 175, 102, .22); background: linear-gradient(150deg, #ffffff 40%, #dff5e8); color: #0f2a1c; font: inherit; cursor: pointer; box-shadow: 0 8px 22px rgba(16, 60, 38, .08); transition: transform .15s, box-shadow .15s, border-color .15s; }
.rs-home-tile:hover, .rs-home-tile:focus-visible { transform: translateY(-3px); border-color: #11af66; box-shadow: 0 14px 30px rgba(16, 60, 38, .16); outline: none; }
.rs-home-name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.rs-home-meta { font-size: 13px; font-weight: 600; color: #5f7468; }
body.dark-mode .rs-home h4 { color: #e8f5ee; }
body.dark-mode .rs-home-tile { background: linear-gradient(150deg, #26352d 40%, #1b3a2b); color: #e8f5ee; border-color: rgba(126, 240, 178, .2); }
body.dark-mode .rs-home-meta { color: #a9bdb1; }
@media (max-width: 768px) { .rs-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .rs-home-tile { min-height: 104px; padding: 14px; } .rs-home-name { font-size: 16px; } }
/* ilk acilis mesaji (ana kategori kartlari yerine) */
.rs-home { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 72px 16px; min-height: 260px; }
.rs-home-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #e3f6ec, #fff); border: 1.5px solid rgba(17, 175, 102, .25); color: #078c52; font-size: 26px; font-weight: 800; margin-bottom: 14px; box-shadow: 0 8px 20px rgba(16, 60, 38, .08); }
.rs-home h4 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: #0b3b25; }
.rs-home p { margin: 0; font-size: 14px; font-weight: 600; color: #64748b; }
/* telefonda popup ici kaydirma */
.rs-subpop-grid { flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.rs-subpop-box { min-height: 0; }
@supports (height: 100dvh) { .rs-subpop-box { max-height: 96dvh; } }
/* telefonda pencereler: fuat-pro.css tum .modal-body'lere overflow:hidden veriyordu (siparis ekrani icin); diger pencerelerde icerik kaydirilamiyordu (or. kullanici ekle > sifre alani) */
@media (max-width: 768px) {
    .modal:not(#orderModal) .modal-body { overflow-y: auto !important; overflow-x: hidden !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
}
@media (max-width: 768px) {
    .modal:not(#orderModal) .modal-body::after { content: ""; display: block; flex: none; height: 24px; }
}
