@font-face { font-family: "Kayan El Messiri"; src: url("messiri.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
html, body, #root { margin: 0; min-height: 100%; }
body { background: #0f1115; }
.ap-wrap, .ap-wrap *, .ap-wrap button, .ap-wrap input, .ap-wrap select { box-sizing: border-box; font-family: "Kayan El Messiri", "Noto Sans Arabic", sans-serif; }
.ap-wrap { background: #0f1115; padding: 12px; min-height: 100vh; min-height: 100dvh; }
.ap-note { max-width: 430px; margin: 0 auto 10px; text-align: center; font-size: 12px; color: #e8c872; }
.ap { max-width: 430px; height: 720px; margin: 0 auto; background: #fff; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; position: relative; color: #1b2a30; border: 6px solid #1c1f26; }
.ap-top { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg, #07465a, #0b5f73); color: #fff; padding: 10px 8px; flex: none; }
.ap-top h1 { margin: 0; font-size: 17px; font-weight: 600; }
.ap-ib { width: 40px; height: 40px; border: 0; background: transparent; color: #fff; font-size: 28px; display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: pointer; padding: 0; }
.ap-cartb i { position: absolute; top: 2px; left: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: #e5483b; font-size: 11px; font-style: normal; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.ap-toast { position: absolute; top: 58px; right: 12px; left: 12px; z-index: 3; background: #1f9d63; color: #fff; padding: 10px; border-radius: 10px; text-align: center; font-weight: 600; font-size: 14px; }
.ap-main { flex: 1; overflow-y: auto; padding: 12px 14px 18px; background: #fff; }
.ap-banner { background: linear-gradient(120deg, #07465a, #2a8aa0); color: #fff; border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.ap-banner h2 { margin: 0 0 4px; font-size: 21px; } .ap-banner p { margin: 0; font-size: 13px; opacity: .92; }
.ap-cats { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 14px; }
.ap-cats button { flex: 1; border: 0; background: transparent; font-size: 12px; color: #1b2a30; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; }
.ap-cats span { width: 54px; height: 54px; border-radius: 50%; background: #e6f1f4; color: #07465a; display: flex; align-items: center; justify-content: center; }
.ap-h { margin: 6px 0 10px; font-size: 18px; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-card { border: 1px solid #e3eaec; border-radius: 12px; background: #fff; padding: 8px; text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: stretch; font-size: 13px; color: #1b2a30; }
.ap-card b { font-weight: 600; font-size: 13px; line-height: 1.5; min-height: 40px; }
.ap-card em { font-style: normal; color: #07465a; font-weight: 700; font-size: 15px; }
.ap-tile { height: 84px; border-radius: 8px; background: #e6f1f4; color: #07465a; display: flex; align-items: center; justify-content: center; }
.ap-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; }
.ap-chips button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #b7cdd3; background: #fff; color: #07465a; cursor: pointer; font-size: 14px; }
.ap-chips button.on { background: #07465a; color: #fff; border-color: #07465a; }
.ap-hero { height: 190px; background: linear-gradient(#e6f1f4, #f6fafb); color: #07465a; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.ap-name { margin: 12px 0 2px; font-size: 20px; }
.ap-bigprice { margin: 0 0 8px; font-size: 24px; font-weight: 700; color: #07465a; } .ap-bigprice small { font-size: 13px; color: #5a6c72; font-weight: 400; }
.ap-bul { margin: 0 0 14px; padding-inline-start: 20px; font-size: 14px; line-height: 1.9; color: #34474d; }
.ap-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; border: 0; border-radius: 10px; background: #07465a; color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; margin-top: 8px; }
.ap-btn:disabled { opacity: .4; cursor: default; }
.ap-ghost { background: #fff; color: #07465a; border: 1px solid #07465a; }
.ap-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .ap-two .ap-btn { margin-top: 8px; }
.ap-line { display: flex; gap: 12px; align-items: center; border: 1px solid #e3eaec; border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.ap-line > div { flex: 1; } .ap-line b { display: block; font-size: 14px; } .ap-line em { font-style: normal; color: #07465a; font-weight: 700; font-size: 14px; }
.ap-mini { width: 56px; height: 56px; border-radius: 10px; background: #e6f1f4; color: #07465a; display: flex; align-items: center; justify-content: center; flex: none; }
.ap-qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.ap-qty button { width: 36px; height: 36px; border: 1px solid #07465a; background: #fff; color: #07465a; border-radius: 8px; font-size: 20px; cursor: pointer; }
.ap-qty span { min-width: 30px; text-align: center; font-weight: 700; }
.ap-sum { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid #e3eaec; font-size: 15px; } .ap-sum b { color: #07465a; }
.ap-empty { text-align: center; padding: 40px 0; color: #5a6c72; }
.ap-f { display: grid; gap: 4px; font-size: 13px; color: #5a6c72; margin-bottom: 10px; }
.ap-f input, .ap-f select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #c3d4d9; border-radius: 8px; padding: 0 12px; background: #fff; color: #1b2a30; font-size: 15px; }
.ap-pm { display: flex; align-items: center; gap: 10px; border: 1px solid #07465a; background: #e6f1f4; border-radius: 10px; padding: 12px; margin-bottom: 8px; font-weight: 600; }
.ap-radio { width: 16px; height: 16px; border-radius: 50%; border: 5px solid #07465a; background: #fff; }
.ap-warn { background: #fdf1cf; color: #7a5a00; border-radius: 8px; padding: 10px; font-size: 13px; margin: 8px 0; }
.ap-small { font-size: 12px; color: #5a6c72; line-height: 1.7; }
.ap-wallet { display: flex; align-items: center; justify-content: space-between; border: 1px solid #07465a; border-radius: 10px; padding: 10px 12px; margin: 8px 0; gap: 8px; }
.ap-wallet small { display: block; color: #5a6c72; font-size: 12px; } .ap-wallet b { font-size: 19px; }
.ap-steps { padding-inline-start: 22px; font-size: 14px; line-height: 1.9; margin: 8px 0; }
.ap-menu { display: grid; gap: 8px; } .ap-menu a, .ap-menu button { display: block; text-align: right; border: 1px solid #e3eaec; border-radius: 12px; background: #fff; padding: 14px; font-size: 16px; color: #1b2a30; text-decoration: none; cursor: pointer; }
.ap-text h2 { margin: 0 0 8px; font-size: 19px; } .ap-text p { font-size: 14px; line-height: 1.9; color: #34474d; margin: 0 0 8px; }
.ap-nav { display: flex; border-top: 1px solid #e3eaec; background: #fff; flex: none; }
.ap-nav button { flex: 1; border: 0; background: #fff; padding: 8px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: #6a7a80; cursor: pointer; }
.ap-nav button.on { color: #07465a; font-weight: 700; }

.ap-note { display: none; }
.ap-ib { font-family: inherit; }
.ap-copy { border: 1px solid #07465a; background: #fff; color: #07465a; border-radius: 8px; min-height: 40px; padding: 0 12px; font-size: 14px; cursor: pointer; }
@media (max-width: 520px) {
  .ap-wrap { padding: 0; background: #fff; }
  .ap { max-width: none; height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
}
