:root { --c1: #0ea5a4; --c2: #4f46e5; --bg: #f4f6fb; --bd: #e5e7f0; --mut: #6b7280; --bs-primary: #0ea5a4; --bs-primary-rgb: 14, 165, 164; }
html, body { height: 100%; }
body { background: var(--bg); font-family: "Rubik", "Segoe UI", "Noto Sans Hebrew", "Noto Sans Arabic", Tahoma, sans-serif; color: #1e2333; overscroll-behavior-y: contain; }
* { -webkit-tap-highlight-color: transparent; }
.btn { border-radius: 12px; }
.btn-primary { --bs-btn-bg: var(--c1); --bs-btn-border-color: var(--c1); --bs-btn-hover-bg: #0d9488; --bs-btn-hover-border-color: #0d9488; --bs-btn-active-bg: #0f766e; --bs-btn-disabled-bg: #99d8d7; --bs-btn-disabled-border-color: #99d8d7; }
.btn-outline-primary { --bs-btn-color: var(--c1); --bs-btn-border-color: var(--c1); --bs-btn-hover-bg: var(--c1); --bs-btn-hover-border-color: var(--c1); --bs-btn-active-bg: var(--c1); }
.form-control, .form-select { border-radius: 12px; min-height: 48px; border-color: var(--bd); }
.form-control:focus { border-color: #5eead4; box-shadow: 0 0 0 .2rem rgba(14, 165, 164, .15); }
.splash { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg); z-index: 3000; }

.s-top { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 10px) 14px 10px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bd); }
.s-top img { border-radius: 10px; object-fit: contain; }
.s-brand { flex: 1; min-width: 0; line-height: 1.15; }
.s-brand div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-icon { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--bd); background: #fff; font-size: 1.25rem; display: inline-flex; align-items: center; justify-content: center; }
.s-icon .dot { position: absolute; top: -4px; left: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: #ef4444; color: #fff; font-size: .7rem; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.net { font-size: .85rem; padding: 6px 9px; border-radius: 999px; background: #dcfce7; color: #166534; }
.net.off { background: #fee2e2; color: #991b1b; }
.spin { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.s-view { padding: 14px 14px calc(96px + env(safe-area-inset-bottom)); max-width: 1100px; margin: 0 auto; }
.s-title { font-size: 1.3rem; font-weight: 700; margin: 2px 0 14px; display: flex; gap: 8px; align-items: center; }
.s-title .bi { color: var(--c1); }

.s-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040; display: flex; background: #fff; border-top: 1px solid var(--bd); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(30,35,51,.06); }
.s-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px; color: var(--mut); text-decoration: none; font-size: .72rem; position: relative; }
.s-nav a .bi { font-size: 1.35rem; }
.s-nav a.active { color: var(--c1); font-weight: 600; }
.s-nav a b { position: absolute; top: 3px; left: calc(50% - 22px); background: #ef4444; color: #fff; border-radius: 9px; font-size: .68rem; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.login { min-height: calc(100vh - 30px); display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; padding: 30px 24px; box-shadow: 0 18px 50px rgba(30,35,51,.1); }
.hero { border-radius: 20px; padding: 18px; color: #fff; background: linear-gradient(135deg, #0ea5a4, #4f46e5); margin-bottom: 14px; }
.hero .small { opacity: .9; }

.search { position: relative; margin-bottom: 10px; }
.search .bi { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--mut); }
.search input { padding-right: 40px; border-radius: 14px; height: 50px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; border: 1px solid var(--bd); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: .9rem; white-space: nowrap; }
.chip.active { background: var(--c1); border-color: var(--c1); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
.pc { background: #fff; border: 1px solid var(--bd); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.pc.in { border-color: #5eead4; box-shadow: 0 0 0 2px rgba(14,165,164,.2); }
.pc.na { opacity: .6; }
.pc .im { aspect-ratio: 1 / 1; background: #f3f4f8; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.pc .im img { width: 100%; height: 100%; object-fit: contain; }
.pc .im .bi { font-size: 2.6rem; color: #c7cbe0; }
.pc .bd { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc .nm { font-weight: 600; font-size: .93rem; line-height: 1.25; min-height: 2.5em; }
.pc .pr { font-weight: 800; font-size: 1.05rem; }
.pc .pr s { color: var(--mut); font-weight: 400; font-size: .8rem; margin-inline-start: 4px; }
.pc .bdg { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.pc .bdg .badge { font-size: .68rem; }
.stepper { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.stepper button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--bd); background: #f0fdfa; font-size: 1.2rem; color: #0f766e; flex-shrink: 0; }
.stepper input { text-align: center; font-weight: 700; min-height: 40px; padding: 0; }
.add-btn { margin-top: auto; }
.ut { display: flex; background: #f1f2f8; border-radius: 10px; padding: 3px; }
.ut button { flex: 1; border: 0; background: transparent; border-radius: 8px; font-size: .78rem; padding: 5px 2px; }
.ut button.active { background: #fff; color: #0f766e; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.cart-line { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--bd); border-radius: 16px; padding: 10px; margin-bottom: 10px; }
.cart-line img, .cart-line .ph { width: 58px; height: 58px; border-radius: 12px; object-fit: contain; background: #f3f4f8; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #c7cbe0; }
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .info .n { font-weight: 600; font-size: .92rem; }
.cart-line .stepper { width: 130px; margin: 0; }
.free { background: #f0fdf4; border-color: #bbf7d0; }
.sum { background: #fff; border: 1px solid var(--bd); border-radius: 18px; padding: 14px 16px; }
.sum .r { display: flex; justify-content: space-between; padding: 4px 0; }
.sum .g { font-size: 1.35rem; font-weight: 800; color: #0f766e; border-top: 2px solid var(--bd); margin-top: 6px; padding-top: 8px; }
.checkout-bar { position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 1035; padding: 10px 14px; background: linear-gradient(180deg, rgba(244,246,251,0), var(--bg) 35%); }

.st { font-size: .76rem; padding: .35em .75em; border-radius: 999px; white-space: nowrap; }
.st-0 { background: #fef3c7; color: #92400e; } .st-1 { background: #dcfce7; color: #166534; } .st-2 { background: #fee2e2; color: #991b1b; } .st-3 { background: #e5e7eb; color: #374151; }
.st-p { background: #e0e7ff; color: #3730a3; } .st-e { background: #fecaca; color: #7f1d1d; }
.card-s { background: #fff; border: 1px solid var(--bd); border-radius: 18px; padding: 14px; }
.empty { text-align: center; color: var(--mut); padding: 50px 10px; }
.empty .bi { font-size: 3rem; display: block; color: #c7cbe0; margin-bottom: 8px; }
table.dataTable tbody tr { cursor: pointer; }
div.dt-container .dt-search input { border-radius: 12px; }
.swal2-popup { border-radius: 22px !important; font-family: inherit; }
.swal2-styled { border-radius: 12px !important; }
.gal { max-height: 55vh; max-width: 100%; object-fit: contain; }
