@font-face { font-family: 'Aref Ruqaa'; src: url('./fonts/ArefRuqaa-Regular.ttf') format('truetype'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Aref Ruqaa'; src: url('./fonts/ArefRuqaa-Bold.ttf') format('truetype'); font-weight: 700; font-display: block; }
@font-face { font-family: 'Tajawal'; src: url('./fonts/Tajawal-Regular.ttf') format('truetype'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Tajawal'; src: url('./fonts/Tajawal-Medium.ttf') format('truetype'); font-weight: 500; font-display: block; }
@font-face { font-family: 'Tajawal'; src: url('./fonts/Tajawal-Bold.ttf') format('truetype'); font-weight: 700; font-display: block; }

.aisha {
    margin: -24px;
    padding: 32px 20px 48px;
    min-height: 72vh;
    background: var(--aisha-bg);
    color: var(--aisha-ink);
    font-family: 'Tajawal', Tahoma, "Segoe UI", sans-serif;
    transition: background-color .5s ease, color .5s ease;
}
.aisha section { animation: aisha-fadein .5s ease both; }
@keyframes aisha-fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .aisha section { animation: none; }
    .aisha *, .aisha *::before, .aisha *::after { transition: none !important; }
}

.aisha-brandname, .aisha-hero-title, .aisha-sectionhead h2,
.aisha-cardname, .aisha-productname, .aisha-details h3, .aisha-log h3, .aisha-form h3,
.aisha-nav a, .aisha-btn, .aisha-cardprice, .aisha-productprice,
.aisha-more, .aisha-count, .aisha-footerlinks a, .aisha-tag, .aisha-empty {
    font-family: 'Reem Kufi', 'Tajawal', Tahoma, serif;
}
@media (min-width: 768px) {
    .aisha { margin: -36px; padding: 40px 36px 56px; }
}
.aisha--noor { --aisha-bg: #faf5ec; --aisha-ink: #2e2416; --aisha-accent: #a8842c; --aisha-soft: #f1e7d3; --aisha-card: #fffdf8; --aisha-hairline: #e3d6ba; }
.aisha--layl { --aisha-bg: #141118; --aisha-ink: #f2e9d8; --aisha-accent: #d4af6a; --aisha-soft: #211c29; --aisha-card: #221d2b; --aisha-hairline: #3a3345; }
.aisha--ward { --aisha-bg: #f9eef0; --aisha-ink: #40222b; --aisha-accent: #b76e79; --aisha-soft: #f3dfe2; --aisha-card: #fffafa; --aisha-hairline: #e8ccd1; }
.aisha--royal { --aisha-bg: #080f22; --aisha-ink: #f4ecd9; --aisha-accent: #d9b96a; --aisha-soft: #0e1830; --aisha-card: #0c1529; --aisha-hairline: #1e2c4d; }
.aisha--burgundy { --aisha-bg: #17090f; --aisha-ink: #f5e9da; --aisha-accent: #d9a86a; --aisha-soft: #26101a; --aisha-card: #200d17; --aisha-hairline: #46202f; }

.aisha h2, .aisha h3 { color: var(--aisha-ink); }

.aisha-ornament { color: var(--aisha-accent); display: flex; justify-content: center; margin: 14px 0; }

.aisha-top { display: flex; flex-direction: column; gap: 16px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--aisha-hairline); margin-bottom: 30px; }
.aisha-brandmark { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--aisha-accent); text-decoration: none; cursor: pointer; }
.aisha-brandwords { display: flex; flex-direction: column; }
.aisha-brandname { font-size: 30px; font-weight: 700; letter-spacing: 0; color: var(--aisha-ink); line-height: 1.15; }
.aisha-brandsub { font-size: 11px; letter-spacing: 3.5px; color: var(--aisha-accent); direction: ltr; text-align: start; }

.aisha-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.aisha-nav a {
    padding: 7.5px 18px; border-radius: 999px; font-size: 14px; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 38px;
    color: var(--aisha-ink); border: 1px solid var(--aisha-hairline); background: var(--aisha-card);
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.aisha-nav a:hover { border-color: var(--aisha-accent); color: var(--aisha-accent); transform: translateY(-1px); }
.aisha-nav a[aria-current="page"] { background: var(--aisha-accent); border-color: var(--aisha-accent); color: var(--aisha-bg); font-weight: 700; }
.aisha-nav a[aria-current="page"]:hover { color: var(--aisha-bg); transform: none; }

.aisha-hero { text-align: center; padding: 30px 0 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.aisha-hero .aisha-brandmark { transform: scale(1.25); margin-bottom: 10px; }
.aisha-hero-title { font-size: 26px; font-weight: 700; margin: 6px 0 0; }
@media (min-width: 768px) { .aisha-hero-title { font-size: 34px; } }
.aisha-hero-sub { color: var(--aisha-accent); font-size: 14px; margin: 0; letter-spacing: 0.5px; }
.aisha-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.aisha-btn {
    display: inline-block; padding: 12px 24px; border-radius: 999px; font-size: 15px; font-weight: 700;
    text-decoration: none; border: 1px solid var(--aisha-accent); cursor: pointer; font-family: inherit;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, opacity .25s ease;
}
.aisha-btn--primary { background: var(--aisha-accent); color: var(--aisha-bg); }
.aisha-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px var(--aisha-accent); }
.aisha-btn--ghost { background: transparent; color: var(--aisha-accent); }
.aisha-btn--ghost:hover { background: var(--aisha-soft); }
.aisha-btn--disabled { background: var(--aisha-soft); border-color: var(--aisha-hairline); color: var(--aisha-ink); opacity: 0.6; cursor: default; }
.aisha-btn:disabled { opacity: 0.5; cursor: default; }

.aisha-sectionhead { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 14px; border-bottom: 1px solid var(--aisha-hairline); padding-bottom: 8px; }
.aisha-sectionhead h2 { font-size: 20px; margin: 0; }
.aisha-more { color: var(--aisha-accent); font-size: 13px; text-decoration: none; }
.aisha-count { color: var(--aisha-accent); font-size: 13px; }

.aisha-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .aisha-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* zo244: home titled sections are single horizontal scrolling rows */
html .aisha-hrow {
    display: flex; flex-wrap: nowrap; align-items: stretch;
    gap: 12px;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none; -ms-overflow-style: none;
    padding: 2px 0 8px;
}
html .aisha-hrow::-webkit-scrollbar { display: none; width: 0; height: 0; }
html .aisha-hrow > * { flex: 0 0 auto; width: 65%; scroll-snap-align: start; scroll-snap-stop: always; }
html .aisha-hrow > *:only-child { width: 100%; }
@media (min-width: 768px) {
    html .aisha-hrow { gap: 18px; }
    html .aisha-hrow > * { width: calc((100% - 36px) / 3); }
    html .aisha-hrow > *:only-child { width: calc((100% - 36px) / 3); }
}
@media (min-width: 1180px) {
    html .aisha-hrow > * { width: calc((100% - 54px) / 4); }
}
.aisha-card {
    display: flex; flex-direction: column; background: var(--aisha-card); border: 1px solid var(--aisha-hairline);
    border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.aisha-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -14px rgba(46, 36, 22, .25); border-color: var(--aisha-accent); }
.aisha-cardimg { position: relative; aspect-ratio: 3 / 4; background: var(--aisha-soft); overflow: hidden; }
.aisha-cardimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.aisha-card:hover .aisha-cardimg img { transform: scale(1.04); }
.aisha-tag {
    position: absolute; top: 10px; inset-inline-start: 10px; background: var(--aisha-accent); color: var(--aisha-bg);
    font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.aisha-cardbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.aisha-cardname { font-size: 16px; font-weight: 700; }
.aisha-cardprice { font-size: 16px; color: var(--aisha-accent); font-weight: 700; }
.aisha-stock { font-size: 13px; opacity: 0.85; }
.aisha-stock--in { color: #4c8a5a; }
.aisha--layl .aisha-stock--in { color: #7fbf8e; }
.aisha-stock--low { color: #b06f1f; }
.aisha--layl .aisha-stock--low { color: #dba255; }
.aisha-stock--out { color: #b3403c; text-decoration: line-through; }
.aisha--layl .aisha-stock--out { color: #d97a74; }
.aisha--royal .aisha-stock--in { color: #86d695; }
.aisha--royal .aisha-stock--low { color: #ecb365; }
.aisha--royal .aisha-stock--out { color: #e88680; }
.aisha--burgundy .aisha-stock--in { color: #86d695; }
.aisha--burgundy .aisha-stock--low { color: #ecb365; }
.aisha--burgundy .aisha-stock--out { color: #e88680; }

.aisha-product { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .aisha-product { max-width: 640px; margin-inline: auto; gap: 22px; } }
.aisha-productimg { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--aisha-hairline); background: var(--aisha-soft); }
.aisha-productimg img { width: 100%; display: block; }
/* zo189: sold-out corner ribbon, in the customer's theme accent */
.aisha-ribbon { position: absolute; inset: 0; overflow: hidden; z-index: 4; pointer-events: none; }
.aisha-ribbon b {
    position: absolute; display: flex; align-items: center; justify-content: center;
    box-sizing: border-box; width: 320px; height: 46px; padding: 0;
    top: 48px; inset-inline-start: 48px; transform: translate(-50%, -50%) rotate(-45deg);
    background: var(--aisha-accent); color: var(--aisha-bg);
    font-family: 'Reem Kufi', 'Tajawal', Tahoma, serif; font-size: 17px; font-weight: 700; line-height: 1; letter-spacing: .2px;
    text-align: center; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(0,0,0,.55);
}
html[dir="rtl"] .aisha-ribbon b { transform: translate(50%, -50%) rotate(45deg); }
.aisha-cardimg .aisha-ribbon b { top: 38px; inset-inline-start: 38px; font-size: 14px; height: 38px; }
@media (min-width: 768px) {
    .aisha-ribbon b { top: 52px; inset-inline-start: 52px; font-size: 18px; height: 50px; }
    .aisha-cardimg .aisha-ribbon b { top: 42px; inset-inline-start: 42px; font-size: 15px; height: 40px; }
}
.aisha-productinfo { display: flex; flex-direction: column; gap: 10px; }
.aisha-productname { font-size: 28px; margin: 0; }
.aisha-productprice { font-size: 26px; font-weight: 700; color: var(--aisha-accent); }
.aisha-details h3 { font-size: 17px; margin: 0 0 4px; color: var(--aisha-accent); }
.aisha-details p { font-size: 16px; line-height: 1.9; margin: 0 0 6px; }

.aisha-about { text-align: center; margin: 34px auto 0; max-width: 560px; }
.aisha-about p { font-size: 15px; line-height: 2; margin: 8px 0; }

.aisha-note { font-size: 13px; opacity: 0.85; line-height: 1.9; margin-top: 18px; }
.aisha-empty { text-align: center; padding: 30px 0; font-size: 15px; }
.aisha-emptywrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.aisha-stocklist { display: flex; flex-direction: column; }
/* zo257: the visible failure banner */
.aisha-notifyhost { position: fixed; inset-inline: 0; bottom: 18px; z-index: 9998; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.aisha-notify { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; max-width: min(560px, 94vw); padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.65; font-weight: 600; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.22); animation: aisha-notifyin .22s ease-out both; }
.aisha-notify span { flex: 1 1 auto; }
.aisha-notify button { flex: 0 0 auto; background: transparent; border: 0; color: inherit; font-size: 20px; line-height: 1; padding: 0 2px; cursor: pointer; opacity: .85; }
.aisha-notify--err { background: #a8352f; }
.aisha-notify--ok { background: #3d6b4f; }
.aisha-notify.is-out { opacity: 0; transition: opacity .35s ease; }
@keyframes aisha-notifyin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* zo256: a rejected save says why, right under the button, and marks the field */
.aisha-formmsg { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.aisha-formmsg:empty { display: none; }
.aisha-formmsg--err { color: #b3403c; font-weight: 600; }
.aisha-formmsg--ok { color: #4c8a5a; font-weight: 600; }
html .aisha-field--bad { border-color: #b3403c !important; box-shadow: 0 0 0 3px rgba(179,64,60,.14) !important; }
@keyframes aisha-rowflashk { 0% { background: rgba(201,162,75,.30); } 100% { background: transparent; } }
html .aisha-userrow.aisha-rowflash { animation: aisha-rowflashk 2.4s ease-out 1; border-radius: 16px; }
.aisha-stockrow {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 12px 0; border-bottom: 1px solid var(--aisha-hairline);
}
.aisha-itemlog { flex-basis: 100%; width: 100%; margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--aisha-hairline); }
/* zo300: one fixed action column for every stock row, so the buttons sit in the same place row to row. */
.aisha-stockrow--stock { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; }
.aisha-stockrow--stock .aisha-itemlog { grid-column: 1 / -1; }
.aisha-stockrow--stock .aisha-stockrow-main { min-width: 0; }
.aisha-stockrow--stock .aisha-stockrow-main > div { min-width: 0; }
.aisha-stockrow--stock .aisha-cardname,
.aisha-stockrow--stock .aisha-stock { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aisha-stockrow--stock .aisha-stockctl { display: flex; gap: 8px; flex: 0 0 auto; }
.aisha-stockrow--stock .aisha-stockctl .aisha-mini { flex: 0 0 38px; width: 38px; }
.aisha-stockrow--stock .aisha-stockctl .aisha-mini--wide { flex: 0 0 88px; width: 88px; padding: 0 8px; }
/* zo310/zo311: الحركة matches the 38px − + pencil, and drops the generic .aisha-mini--wide
   margin-top:8px (which, under align-items:center, pushed its centre down by 4px). */
.aisha-stockrow--stock .aisha-stockctl .aisha-mini--wide { height: 38px; margin-top: 0; }
@media (max-width: 600px) {
  .aisha-stockrow--stock { grid-template-columns: minmax(0, 1fr); }
  .aisha-stockrow--stock .aisha-stockctl { grid-column: 1 / -1; }
}

.aisha-itemlog .aisha-jday { margin: 8px 0 4px; }
.aisha-stockrow-main { display: flex; align-items: center; gap: 12px; }
.aisha-thumb { width: 52px; height: 66px; object-fit: cover; border-radius: 8px; border: 1px solid var(--aisha-hairline); }
.aisha-stockctl { display: flex; gap: 8px; }
.aisha-mini {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--aisha-accent);
    background: var(--aisha-card); color: var(--aisha-accent); font-size: 20px; font-weight: 700; cursor: pointer; font-family: inherit;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.aisha-mini:hover { background: var(--aisha-accent); color: var(--aisha-bg); }
.aisha-mini:active { transform: scale(.94); }
.aisha-mini--wide { width: auto; padding: 0 14px; font-size: 13px; height: 34px; }
.aisha-mini--danger { border-color: #b3403c; color: #b3403c; }
.aisha-mini--danger:hover { background: #b3403c; color: #fff; }
.aisha-footerlinks a { color: var(--aisha-accent); font-size: 14px; text-decoration: none; font-weight: 700; transition: opacity .25s ease; }
.aisha-footerlinks a:hover { opacity: .7; }

.aisha-log { margin-top: 22px; }
.aisha-log h3 { font-size: 15px; color: var(--aisha-accent); margin: 0 0 8px; }
.aisha-logrow { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed var(--aisha-hairline); }
.aisha-logdate { opacity: 0.7; }

.aisha-form {
    background: var(--aisha-card); border: 1px solid var(--aisha-hairline); border-radius: 14px;
    padding: 16px; display: flex; flex-direction: column; gap: 10px; margin: 14px 0 20px; color: #251f21;
}
.aisha-form h3 { margin: 0; font-size: 16px; color: var(--aisha-accent); }
.aisha-form--inline { margin: 10px 0 4px; }

.aisha-adminrow { padding: 12px 0; border-bottom: 1px solid var(--aisha-hairline); display: flex; flex-direction: column; gap: 8px; }
.aisha-adminactions { display: flex; gap: 8px; flex-wrap: wrap; }

.aisha-themepicker { margin-top: 14px; display: flex; justify-content: center; }
.aisha-footer { margin-top: 40px; text-align: center; }
.aisha-footerlinks { display: flex; gap: 18px; justify-content: center; margin-top: 12px; }
.aisha-footnote { font-size: 12px; opacity: 0.75; margin-top: 12px; }
.aisha-sharebox {
    margin: 18px auto 0; max-width: 420px; text-align: center;
    background: var(--aisha-card); border: 1px solid var(--aisha-hairline); border-radius: 14px;
    padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.aisha-sharetitle { margin: 0; font-size: 14px; font-weight: 700; color: var(--aisha-accent); }
.aisha-sharelink { margin: 0; font-size: 11.5px; opacity: 0.65; direction: ltr; word-break: break-all; }
.aisha-shareactions { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }

.aisha .file-control-label { color: var(--aisha-ink); opacity: 0.85; }

/* ---- standalone page adaptation (replaces the hosted-card offsets) ---- */
html.aisha { margin: 0; padding: 0; min-height: 100vh; }
html.aisha body { margin: 0 auto; padding: 28px 20px 48px; max-width: 1024px; }
@media (min-width: 768px) { html.aisha body { padding: 40px 36px 56px; } }
html.aisha .aisha { margin: 0; }

/* ---- auth + staff UI ---- */
.aisha-demobar {
    background: var(--aisha-accent); color: var(--aisha-bg); text-align: center;
    font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.aisha-sessionbar { text-align: center; font-size: 13px; margin-bottom: 10px; opacity: .9; }
.aisha-linkbtn { background: none; border: none; color: var(--aisha-accent); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; }
.aisha-loginwrap { display: flex; justify-content: center; padding: 24px 0; }
.aisha-login { width: 100%; max-width: 380px; }
.aisha-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: inherit; }
.aisha-form input, .aisha-form textarea {
    border: 1px solid var(--aisha-hairline); border-radius: 10px; padding: 10px 12px; font: inherit;
    background: var(--aisha-bg); color: var(--aisha-ink); transition: border-color .25s ease, box-shadow .25s ease;
}
.aisha-form input:focus, .aisha-form textarea:focus { outline: none; border-color: var(--aisha-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--aisha-accent) 20%, transparent); }
.aisha-form { color: var(--aisha-ink); }
.aisha-error { color: #b3403c; font-size: 13px; margin: 0; }
.aisha-themes { display: flex; gap: 8px; justify-content: center; }
.aisha-themebtn {
    border: 1px solid var(--aisha-hairline); background: var(--aisha-card); color: var(--aisha-ink);
    border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 13px; cursor: pointer;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.aisha-themebtn.is-on { background: var(--aisha-accent); border-color: var(--aisha-accent); color: var(--aisha-bg); font-weight: 700; }

/* Users admin screen */
.aisha-userrow .aisha-adminactions { align-items: center; }
.aisha-passinput { padding: 7px 10px; border: 1px solid var(--aisha-line, #d8c9b0); border-radius: 10px; background: var(--aisha-card, #fff); color: inherit; font: inherit; font-size: 13px; width: 140px; }
.aisha-passinput:focus { outline: none; border-color: var(--aisha-accent); }
.aisha-form select { padding: 10px 12px; border: 1px solid var(--aisha-line, #d8c9b0); border-radius: 10px; background: var(--aisha-card, #fff); color: inherit; font: inherit; }
.aisha-form select:focus { outline: none; border-color: var(--aisha-accent); }

.aisha-cardwrap { display: flex; flex-direction: column; gap: 8px; }
.aisha-cardwrap .aisha-card { flex: 1 1 auto; }
.aisha-cardwrap .aisha-addbtn { width: 100%; }
.aisha-carttotal { margin: 16px 0 6px; font-size: 18px; color: var(--aisha-ink); }
.aisha-cartrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.aisha-stockctl { align-items: center; flex-wrap: nowrap; }
.aisha-stockctl .aisha-mini { flex: 0 0 auto; }
.aisha-cartdel { width: auto; min-width: 62px; height: 38px; padding: 0 12px; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; }
@media (max-width: 480px) { .aisha-cartdel { min-width: 56px; padding: 0 8px; font-size: 12px; } }

.aisha-hero { position: relative; padding-bottom: 38px; }
.aisha-hero-orn { position: absolute; inset: 0; pointer-events: none; color: var(--aisha-accent); opacity: .32; }

.aisha-hero-orn { overflow: hidden; border-radius: 18px; }

.aisha-orn-medallion { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, 92%); height: auto; opacity: .22; }
.aisha-orn-panel { position: absolute; top: 0; bottom: 0; width: 74px; height: 100%; opacity: .18; }
.aisha-orn-panel--l { left: 0; }
.aisha-orn-panel--r { right: 0; transform: scaleX(-1); }
.aisha-ornband--hero { position: absolute; left: 50%; transform: translateX(-50%); bottom: 6px; width: min(352px, 72%); height: 26px; opacity: .85; }
.aisha-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 34px auto 26px; color: var(--aisha-accent); opacity: .75; max-width: 520px; }
.aisha-divider-line { flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, transparent, currentColor, transparent); }
.aisha-divider-star { width: 30px; height: 30px; flex: 0 0 auto; }
@media (max-width: 640px) {
  .aisha-orn-panel { width: 42px; opacity: .14; }
  .aisha-orn-medallion { width: 108%; opacity: .16; }
  .aisha-ornband--hero { width: 86%; height: 22px; }
  .aisha-divider { margin: 26px auto 20px; }
  .aisha-divider-star { width: 24px; height: 24px; }
}

.aisha-top { position: relative; }
.aisha-ornband--header { width: min(360px, 82%); height: 22px; margin: 4px auto 0; color: var(--aisha-accent); opacity: .45; }
.aisha-ornband--header svg { width: 100%; height: 22px; display: block; }
@media (max-width: 640px) { .aisha-ornband--header { width: 88%; height: 18px; opacity: .4; } .aisha-ornband--header svg { height: 18px; } }

/* signature credit: fixed at the very end of the page, below the share box */
.aisha-credit {
    display: block; position: static; text-align: center; margin: 26px auto 0; padding: 0 0 24px;
    font-family: 'Reem Kufi', 'Tajawal', Tahoma, serif;
    font-size: 15px; letter-spacing: .14em; color: var(--aisha-accent);
    opacity: .9; user-select: none; white-space: nowrap;
}
.aisha-credit-sep { opacity: .6; margin: 0 4px; }
.aisha-credit-dev { font-size: 12px; letter-spacing: .2em; border: 1px solid var(--aisha-accent); border-radius: 6px; padding: 0 6px; }
.aisha-footlogout { display: flex; justify-content: center; margin-top: 26px; }
.aisha-footlogout .aisha-btn { font-size: 14px; padding: 8px 22px; opacity: .85; }

.aisha-settingscard { border: 1px solid var(--aisha-hairline); background: var(--aisha-card); border-radius: 18px; padding: 18px 20px; margin: 16px 0; }
.aisha-settingscard h3 { margin: 0 0 10px; font-size: 16px; font-family: 'Reem Kufi', 'Tajawal', Tahoma, serif; color: var(--aisha-accent); }
.aisha-settingscard .aisha-themes { justify-content: flex-start; }
.aisha-footadmin { display: block; text-align: center; margin: 22px 0 0; font-size: 12px; letter-spacing: .04em; color: var(--aisha-accent); opacity: .6; text-decoration: none; }
.aisha-footadmin:hover { opacity: .95; }

/* hamburger + side drawer */
.aisha-menubtn { position: fixed; top: 14px; left: 14px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--aisha-accent); background: var(--aisha-card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0; box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); }
.aisha-menubtn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--aisha-accent); transition: transform .25s ease, opacity .2s ease; }
.aisha-menuopen .aisha-menubtn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aisha-menuopen .aisha-menubtn span:nth-child(2) { opacity: 0; }
.aisha-menuopen .aisha-menubtn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.aisha-scrim { position: fixed; inset: 0; z-index: 54; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; display: none; transition: opacity .24s ease-out; }
.aisha-menuopen .aisha-scrim { opacity: 1; pointer-events: auto; display: block; }
.aisha-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 58; width: clamp(220px, 25vw, 340px); box-sizing: border-box; padding: 74px 14px 20px; background: var(--aisha-card); border-right: 1px solid var(--aisha-hairline); display: flex; flex-direction: column; gap: 8px; transform: translateX(-102%); transition: transform .24s cubic-bezier(.2,.7,.2,1); visibility: hidden; }
.aisha-menuopen .aisha-drawer { transform: translateX(0); visibility: visible; }
.aisha-drawitem { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--aisha-hairline); background: transparent; color: var(--aisha-ink); text-decoration: none; font-family: inherit; font-size: 15px; cursor: pointer; text-align: start; }
.aisha-drawitem svg { color: var(--aisha-accent); flex: none; }
.aisha-drawitem span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aisha-drawitem:hover { border-color: var(--aisha-accent); }

.aisha-drawthemes { margin-top: 8px; padding: 14px; border: 1px solid var(--aisha-hairline); border-radius: 14px; }
.aisha-drawlabel { font-size: 13px; color: var(--aisha-accent); margin-bottom: 10px; }
.aisha-drawthemes .aisha-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.aisha-themestoggle { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 0; border: 0; background: transparent; color: var(--aisha-ink); font-family: inherit; font-size: 15px; cursor: pointer; text-align: start; }
.aisha-themestoggle > svg { color: var(--aisha-accent); flex: none; }
.aisha-themeschev { flex: none; color: var(--aisha-accent); margin-inline-start: auto; transition: transform .25s ease; }
.aisha-drawthemes.is-open .aisha-themeschev { transform: rotate(180deg); }
.aisha-themespanel { padding-top: 12px; }

/* ===== Liquid Glass material (iOS 26 style). Switched on/off from Settings ===== */
.aisha--royal { --g-fill: rgba(14,24,48,.52); --g-strong: rgba(12,21,41,.74); --g-input: rgba(255,255,255,.07); --g-edge: rgba(255,255,255,.16); --g-hi: rgba(255,255,255,.30); --g-lo: rgba(255,255,255,.05); --g-shadow: rgba(0,0,0,.5); --g-glow1: rgba(217,185,106,.20); --g-glow2: rgba(70,110,210,.22); }
.aisha--layl  { --g-fill: rgba(34,29,43,.52); --g-strong: rgba(28,23,36,.76); --g-input: rgba(255,255,255,.07); --g-edge: rgba(255,255,255,.15); --g-hi: rgba(255,255,255,.28); --g-lo: rgba(255,255,255,.05); --g-shadow: rgba(0,0,0,.55); --g-glow1: rgba(212,175,106,.18); --g-glow2: rgba(130,90,190,.20); }
.aisha--noor  { --g-fill: rgba(255,253,248,.58); --g-strong: rgba(255,252,245,.80); --g-input: rgba(255,255,255,.55); --g-edge: rgba(168,132,44,.24); --g-hi: rgba(255,255,255,.95); --g-lo: rgba(168,132,44,.08); --g-shadow: rgba(110,80,20,.22); --g-glow1: rgba(224,186,90,.35); --g-glow2: rgba(255,214,170,.40); }
.aisha--ward  { --g-fill: rgba(255,250,250,.58); --g-strong: rgba(255,248,249,.82); --g-input: rgba(255,255,255,.55); --g-edge: rgba(183,110,121,.26); --g-hi: rgba(255,255,255,.95); --g-lo: rgba(183,110,121,.08); --g-shadow: rgba(140,70,85,.22); --g-glow1: rgba(240,170,185,.45); --g-glow2: rgba(255,210,190,.40); }
.aisha--burgundy { --g-fill: rgba(38,16,26,.52); --g-strong: rgba(32,13,23,.76); --g-input: rgba(255,255,255,.07); --g-edge: rgba(255,255,255,.15); --g-hi: rgba(255,255,255,.28); --g-lo: rgba(255,255,255,.05); --g-shadow: rgba(0,0,0,.55); --g-glow1: rgba(217,168,106,.18); --g-glow2: rgba(158,62,84,.24); }

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  html.aisha--glass body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(60% 40% at 88% 6%, var(--g-glow1), transparent 70%), radial-gradient(55% 45% at 6% 62%, var(--g-glow2), transparent 70%), radial-gradient(50% 35% at 70% 100%, var(--g-glow1), transparent 70%); }

  html.aisha--glass .aisha-nav a, html.aisha--glass .aisha-card, html.aisha--glass .aisha-form,
  html.aisha--glass .aisha-sharebox, html.aisha--glass .aisha-settingscard, html.aisha--glass .aisha-stockrow,
  html.aisha--glass .aisha-cartrow, html.aisha--glass .aisha-logrow, html.aisha--glass .aisha-log,
  html.aisha--glass .aisha-carttotal, html.aisha--glass .aisha-adminrow, html.aisha--glass .aisha-btn--ghost,
  html.aisha--glass .aisha-themebtn, html.aisha--glass .aisha-langbtn, html.aisha--glass .aisha-glassbtn,
  html.aisha--glass .aisha-mini, html.aisha--glass .aisha-sessionbar, html.aisha--glass .aisha-drawthemes,
  html.aisha--glass .aisha-drawitem {
    background: linear-gradient(135deg, var(--g-hi) 0%, transparent 38%), var(--g-fill);
    -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
    border-color: var(--g-edge);
    box-shadow: inset 0 1px 0 var(--g-hi), inset 0 -1px 0 var(--g-lo), 0 10px 26px -14px var(--g-shadow);
  }
  html.aisha--glass .aisha-sessionbar { border-radius: 999px; }
  html.aisha--glass .aisha-card { border-radius: 22px; }
  html.aisha--glass .aisha-form, html.aisha--glass .aisha-sharebox,
  html.aisha--glass .aisha-settingscard, html.aisha--glass .aisha-stockrow { border-radius: 22px; }
  html.aisha--glass .aisha-nav a:hover, html.aisha--glass .aisha-card:hover,
  html.aisha--glass .aisha-btn--ghost:hover, html.aisha--glass .aisha-drawitem:hover { border-color: var(--aisha-accent); }

  html.aisha--glass .aisha-nav a[aria-current="page"], html.aisha--glass .aisha-btn--primary,
  html.aisha--glass .aisha-themebtn.is-on, html.aisha--glass .aisha-langbtn.is-on,
  html.aisha--glass .aisha-glassbtn.is-on {
    background: linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,0) 55%), var(--aisha-accent);
    border-color: rgba(255,255,255,.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(0,0,0,.12), 0 10px 24px -12px var(--aisha-accent);
  }
  html.aisha--glass .aisha-form input, html.aisha--glass .aisha-form textarea,
  html.aisha--glass .aisha-form select, html.aisha--glass .aisha-passinput {
    background: var(--g-input); border-color: var(--g-edge);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 2px var(--g-shadow);
  }
  html.aisha--glass .aisha-menubtn { background: linear-gradient(135deg, var(--g-hi) 0%, transparent 45%), var(--g-strong); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    border-color: var(--g-edge); box-shadow: inset 0 1px 0 var(--g-hi), inset 0 -1px 0 var(--g-lo), 0 10px 24px -10px var(--g-shadow); }
  html.aisha--glass .aisha-drawer { background: linear-gradient(160deg, var(--g-hi) 0%, transparent 30%), var(--g-strong); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
    border-right: 1px solid var(--g-edge); box-shadow: inset -1px 0 0 var(--g-hi), 18px 0 44px -18px var(--g-shadow); border-radius: 0 26px 26px 0; }
  html.aisha--glass .aisha-drawitem, html.aisha--glass .aisha-drawthemes { border-radius: 18px; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.aisha--glass .aisha-scrim { background: rgba(0,0,0,.32); }
  /* zo290: the blur exists only while the drawer is open, so a closed scrim has no filter to composite */
  html.aisha--glass.aisha-menuopen .aisha-scrim { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  html.aisha--glass .aisha-tag { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.aisha-sessionbar { width: fit-content; max-width: 92%; margin-left: auto; margin-right: auto; padding: 7px 18px; line-height: 1.5; }

/* Language + Liquid Glass switches (same shape as the theme pills) */
.aisha-langbtn, .aisha-glassbtn {
    border: 1px solid var(--aisha-hairline); background: var(--aisha-card); color: var(--aisha-ink);
    border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 13px; cursor: pointer;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.aisha-langbtn.is-on, .aisha-glassbtn.is-on { background: var(--aisha-accent); border-color: var(--aisha-accent); color: var(--aisha-bg); font-weight: 700; }

/* English (LTR): the Arabic display face does not suit Latin text */
html[dir="ltr"] .aisha-brandname, html[dir="ltr"] .aisha-hero-title, html[dir="ltr"] .aisha-sectionhead h2,
html[dir="ltr"] .aisha-cardname, html[dir="ltr"] .aisha-productname, html[dir="ltr"] .aisha-details h3,
html[dir="ltr"] .aisha-log h3, html[dir="ltr"] .aisha-form h3, html[dir="ltr"] .aisha-nav a,
html[dir="ltr"] .aisha-btn, html[dir="ltr"] .aisha-cardprice, html[dir="ltr"] .aisha-productprice,
html[dir="ltr"] .aisha-more, html[dir="ltr"] .aisha-count, html[dir="ltr"] .aisha-footerlinks a,
html[dir="ltr"] .aisha-tag, html[dir="ltr"] .aisha-empty {
    font-family: Georgia, 'Times New Roman', serif;
}

/* Profit page (owner/developer) */
.aisha-profitrow { flex-direction: column; align-items: stretch; gap: 12px; }
.aisha-profitcalc { display: flex; flex-direction: column; gap: 10px; }
.aisha-profitlbl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.aisha-costinput { padding: 9px 12px; border: 1px solid var(--aisha-hairline); border-radius: 12px; background: var(--aisha-card); color: inherit; font: inherit; width: 100%; box-sizing: border-box; }
.aisha-costinput:focus { outline: none; border-color: var(--aisha-accent); }
.aisha-profitout { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.aisha-pos { color: #3a9d5d; }
.aisha-neg { color: #d4574f; }
html.aisha--glass .aisha-costinput { background: var(--g-input); border-color: var(--g-edge); }

/* ===== Liquid motion (Glass on): springy tab indicator, page and drawer transitions ===== */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  html.aisha--glass .aisha-nav { position: relative; }
  html.aisha--glass .aisha-nav a { position: relative; z-index: 1; transition: color .35s ease, transform .4s cubic-bezier(.34,1.56,.64,1), border-color .3s ease; }
  html.aisha--glass .aisha-nav a[aria-current="page"], html.aisha--glass .aisha-nav a[aria-current="page"]:hover {
    background: transparent; box-shadow: none; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .aisha-navind { display: none; }
  html.aisha--glass .aisha-navind { display: block; position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 55%), var(--aisha-accent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -1px 0 rgba(0,0,0,.12), 0 10px 24px -10px var(--aisha-accent); }
  html.aisha--glass .aisha-navind.is-moving { transition: transform .62s cubic-bezier(.34,1.36,.5,1), width .62s cubic-bezier(.34,1.36,.5,1), height .62s cubic-bezier(.34,1.36,.5,1); }

  html.aisha--glass .aisha-btn, html.aisha--glass .aisha-mini, html.aisha--glass .aisha-card, html.aisha--glass .aisha-drawitem,
  html.aisha--glass .aisha-themebtn, html.aisha--glass .aisha-langbtn, html.aisha--glass .aisha-glassbtn, html.aisha--glass .aisha-menubtn {
    transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease, opacity .25s ease; }
  html.aisha--glass .aisha-nav a:active, html.aisha--glass .aisha-btn:active, html.aisha--glass .aisha-mini:active,
  html.aisha--glass .aisha-drawitem:active, html.aisha--glass .aisha-themebtn:active, html.aisha--glass .aisha-langbtn:active,
  html.aisha--glass .aisha-glassbtn:active, html.aisha--glass .aisha-menubtn:active { transform: scale(.93); transition-duration: .12s; }
  html.aisha--glass .aisha-card:active { transform: scale(.975); transition-duration: .12s; }

  html.aisha--glass .aisha-drawer { transition: transform .24s cubic-bezier(.2,.7,.2,1), visibility 0s linear .24s; }
  html.aisha--glass.aisha-menuopen .aisha-drawer { transition: transform .24s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  html.aisha--glass .aisha-scrim { transition: opacity .24s ease-out; }
  html.aisha--glass .aisha-menubtn span { transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .25s ease; }

  html.aisha--glass .aisha section { animation: aisha-liquidin .65s cubic-bezier(.32,.72,0,1) both; }
  html.aisha--glass .aisha-cardwrap, html.aisha--glass .aisha-stockrow, html.aisha--glass .aisha-settingscard, html.aisha--glass .aisha-form { animation: aisha-liquidin .7s cubic-bezier(.32,.72,0,1) both; }
  html.aisha--glass .aisha-cardwrap:nth-child(2), html.aisha--glass .aisha-stockrow:nth-child(2), html.aisha--glass .aisha-settingscard:nth-child(3) { animation-delay: .05s; }
  html.aisha--glass .aisha-cardwrap:nth-child(3), html.aisha--glass .aisha-stockrow:nth-child(3), html.aisha--glass .aisha-settingscard:nth-child(4) { animation-delay: .1s; }
  html.aisha--glass .aisha-cardwrap:nth-child(n+4), html.aisha--glass .aisha-stockrow:nth-child(n+4), html.aisha--glass .aisha-settingscard:nth-child(n+5) { animation-delay: .15s; }
}
@keyframes aisha-liquidin { from { opacity: .0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.aisha--glass .aisha section, html.aisha--glass .aisha-cardwrap, html.aisha--glass .aisha-stockrow, html.aisha--glass .aisha-settingscard, html.aisha--glass .aisha-form { animation: none; }
  html.aisha--glass .aisha-navind.is-moving { transition: none; }
}

/* ===== iOS 26 floating glass tab bar with liquid lens (Glass on) ===== */
.aisha-navico { display: none; }
.aisha-navin { display: contents; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  html.aisha--glass body { padding-bottom: calc(145px + env(safe-area-inset-bottom)); }
  html.aisha--glass .aisha-top { gap: 6px; }
  html.aisha--glass .aisha-nav {
    position: fixed; z-index: 52; left: 50%; bottom: calc(6px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    display: flex; flex-wrap: nowrap; gap: 0; justify-content: center; align-items: stretch;
    width: max-content; max-width: calc(100vw - 20px); padding: 6px; box-sizing: border-box; border-radius: 999px;
    background: linear-gradient(180deg, var(--g-hi) 0%, transparent 42%), var(--g-strong);
    -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
    border: 1px solid var(--g-edge);
    box-shadow: inset 0 1px 0 var(--g-hi), inset 0 -1px 0 var(--g-lo), 0 18px 40px -14px var(--g-shadow), 0 2px 8px -2px var(--g-shadow);
  }
  html.aisha--glass .aisha-nav a, html.aisha--glass .aisha-nav a:hover, html.aisha--glass .aisha-nav a[aria-current="page"], html.aisha--glass .aisha-nav a[aria-current="page"]:hover {
    position: relative; z-index: 1; flex: 1 1 auto; min-width: 52px; padding: 7px 4px 6px; margin: 0; border: 0; border-radius: 999px; background: none;
    box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--aisha-ink); opacity: .78; font-family: 'Tajawal', Tahoma, sans-serif; font-weight: 500; font-size: 10.5px; line-height: 1.15; white-space: nowrap;
    transition: color .3s ease, opacity .3s ease;
  }
  html.aisha--glass .aisha-nav a[aria-current="page"] { color: var(--aisha-accent); opacity: 1; font-weight: 700; }
  html.aisha--glass .aisha-navin { display: flex; flex-direction: column; align-items: center; gap: 3px; transition: transform .6s cubic-bezier(.34,1.7,.5,1); }
  html.aisha--glass .aisha-navico { display: block; }
  html.aisha--glass .aisha-nav a[aria-current="page"] .aisha-navin { transform: scale(1.16); }
  html.aisha--glass .aisha-nav a.hold-new .aisha-navin { transition: none; transform: scale(1); }
  html.aisha--glass .aisha-nav a.hold-old .aisha-navin { transition: none; transform: scale(1.16); }
  html.aisha--glass .aisha-nav a:active .aisha-navin { transform: scale(.9); transition-duration: .12s; }
  html.aisha--glass .aisha-navlbl { font-family: inherit; }

  /* the lens: clear glass bubble with a rainbow rim, stretched by the spring in JS */
  html.aisha--glass .aisha-navind {
    display: block; position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; border-radius: 999px; transform-origin: 50% 50%;
    background: radial-gradient(120% 90% at 30% 18%, rgba(255,255,255,.34), rgba(255,255,255,.06) 55%, rgba(255,255,255,.16) 100%);
    -webkit-backdrop-filter: blur(1px) brightness(1.45) saturate(1.9) contrast(1.06); backdrop-filter: blur(1px) brightness(1.45) saturate(1.9) contrast(1.06);
    box-shadow: inset 2px 2px 3px rgba(255,255,255,.55), inset -2px -3px 4px rgba(255,255,255,.28), inset 0 0 14px rgba(255,255,255,.14), 0 6px 18px -6px var(--g-shadow);
    transition: none;
  }
  html.aisha--glass .aisha-navind::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
    background: conic-gradient(from 210deg, rgba(255,255,255,0) 0deg, rgba(255,90,140,.85) 50deg, rgba(255,205,70,.8) 95deg, rgba(255,255,255,0) 140deg, rgba(255,255,255,0) 205deg, rgba(70,235,200,.8) 250deg, rgba(90,130,255,.85) 300deg, rgba(255,255,255,0) 345deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: .85;
  }
  html.aisha--glass .aisha-navind::after {
    content: ""; position: absolute; left: 14%; right: 14%; top: 3px; height: 38%; border-radius: 999px; pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0));
    opacity: .75;
  }
  .aisha--noor .aisha-navind, .aisha--ward .aisha-navind { background: radial-gradient(120% 90% at 30% 18%, rgba(255,255,255,.9), rgba(255,255,255,.35) 60%, rgba(255,255,255,.6) 100%); }
  html.aisha--glass .aisha-menuopen .aisha-nav, html.aisha--glass.aisha-menuopen .aisha-nav { opacity: .6; }
}
@media (min-width: 768px) {
  html.aisha--glass .aisha-nav { gap: 3px; padding: 6px; }
  html.aisha--glass .aisha-nav a { min-width: 82px; padding: 7px 6px 6px; font-size: 11.5px; gap: 3px; border-radius: 999px; opacity: .88; transition: background-color .22s ease, color .3s ease, opacity .3s ease, box-shadow .22s ease; }
  html.aisha--glass .aisha-nav a[aria-current="page"] { opacity: 1; }
  html.aisha--glass .aisha-navico { width: 20px; height: 20px; }
  /* desktop: no moving lens — clean static active chip instead */
  html.aisha--glass .aisha-navind { display: none; }
  html.aisha--glass .aisha-nav a[aria-current="page"] {
    min-width: 82px; font-size: 11.5px;
    background: rgba(160,130,70,.14);
    background: color-mix(in srgb, var(--aisha-accent) 14%, transparent);
    box-shadow: inset 0 0 0 1px rgba(160,130,70,.35);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--aisha-accent) 38%, transparent), 0 6px 16px -10px color-mix(in srgb, var(--aisha-accent) 55%, transparent);
  }
  html.aisha--glass .aisha-nav a[aria-current="page"]:hover {
    min-width: 82px; font-size: 11.5px;
    background: rgba(160,130,70,.2);
    background: color-mix(in srgb, var(--aisha-accent) 20%, transparent);
  }
  html.aisha--glass .aisha-nav a:hover { min-width: 82px; font-size: 11.5px; background: rgba(160,130,70,.08); background: color-mix(in srgb, var(--aisha-accent) 8%, transparent); }
}

/* build zb: faster, lighter page-in; lens on its own compositor layer */
html.aisha--glass .aisha section { animation: aisha-liquidin .26s cubic-bezier(.2,.8,.2,1) both; }
html.aisha--glass .aisha-cardwrap, html.aisha--glass .aisha-stockrow, html.aisha--glass .aisha-settingscard, html.aisha--glass .aisha-form { animation: aisha-liquidin .28s cubic-bezier(.2,.8,.2,1) both; }
html.aisha--glass .aisha-cardwrap:nth-child(n), html.aisha--glass .aisha-stockrow:nth-child(n), html.aisha--glass .aisha-settingscard:nth-child(n) { animation-delay: 0s; }
html.aisha--glass .aisha-cardwrap:nth-child(n+2), html.aisha--glass .aisha-stockrow:nth-child(n+2), html.aisha--glass .aisha-settingscard:nth-child(n+2) { animation-delay: .02s; }
html.aisha--glass .aisha-cardwrap:nth-child(n+4), html.aisha--glass .aisha-stockrow:nth-child(n+4), html.aisha--glass .aisha-settingscard:nth-child(n+4) { animation-delay: .04s; }
@keyframes aisha-liquidin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html.aisha--glass .aisha-navind { will-change: transform, width; backface-visibility: hidden; }
html.aisha--glass .aisha-nav a .aisha-navin { transition-duration: .16s; }

/* build zc: no blank frames between pages: content enters from 55% opacity, never from 0 */
@keyframes aisha-liquidin { from { opacity: .55; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes aisha-fadein { from { opacity: .55; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#app { transition: none !important; }

/* build zd: softer page-in */
html.aisha--glass .aisha section { animation-duration: .34s; animation-timing-function: cubic-bezier(.25,.9,.3,1); }
html.aisha--glass .aisha-cardwrap, html.aisha--glass .aisha-stockrow, html.aisha--glass .aisha-settingscard, html.aisha--glass .aisha-form { animation-duration: .36s; animation-timing-function: cubic-bezier(.25,.9,.3,1); }

/* build ze: light and 120Hz-friendly. lens animates transform only, no backdrop-filter on the moving layer, no per-card animations */
html.aisha--glass .aisha-navind { -webkit-backdrop-filter: none; backdrop-filter: none; transform-origin: 0 50%; will-change: transform; width: auto;
  background: radial-gradient(120% 90% at 30% 18%, rgba(255,255,255,.42), rgba(255,255,255,.14) 55%, rgba(255,255,255,.24) 100%); }
.aisha--noor .aisha-navind, .aisha--ward .aisha-navind { background: radial-gradient(120% 90% at 30% 18%, rgba(255,255,255,.95), rgba(255,255,255,.55) 60%, rgba(255,255,255,.75) 100%); }
html.aisha--glass .aisha-cardwrap, html.aisha--glass .aisha-stockrow, html.aisha--glass .aisha-settingscard, html.aisha--glass .aisha-form { animation: none !important; }
html.aisha--glass .aisha section { animation-duration: .26s; }

/* preview-as-customer exit chip */
.aisha-previewbar { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 61; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--aisha-accent); background: color-mix(in srgb, var(--aisha-bg, #0b1530) 82%, transparent); color: var(--aisha-accent); font-family: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

.aisha-previewbar { top: auto; bottom: 98px; }

/* dark olive theme (زيتي) */
.aisha--zeiti { --aisha-bg: #141a0e; --aisha-ink: #f0ead2; --aisha-accent: #cdb665; --aisha-soft: #1c2412; --aisha-card: #19200f; --aisha-hairline: #36411f; }
.aisha--zeiti .aisha-stock--in { color: #9acb7c; }
.aisha--zeiti .aisha-stock--low { color: #e3b35f; }
.aisha--zeiti .aisha-stock--out { color: #e08a78; }
.aisha--zeiti { --g-fill: rgba(30,40,20,.52); --g-strong: rgba(24,32,16,.76); --g-input: rgba(255,255,255,.07); --g-edge: rgba(255,255,255,.15); --g-hi: rgba(255,255,255,.28); --g-lo: rgba(255,255,255,.05); --g-shadow: rgba(0,0,0,.55); --g-glow1: rgba(205,182,101,.18); --g-glow2: rgba(110,150,60,.22); }

/* build zo: five customer features (WhatsApp per card, just-arrived, product links, countdown offer, favorites) */
.aisha-cardwrap { position: relative; }
.aisha-favbtn { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--aisha-hairline); background: color-mix(in srgb, var(--aisha-bg) 55%, transparent); color: var(--aisha-accent); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .15s ease; }
.aisha-favbtn:active { transform: scale(.9); }
.aisha-favbtn.is-fav { color: #d6494f; }
.aisha-favbtn.is-fav svg { fill: #d6494f; stroke: #d6494f; }
.aisha-cardactions { display: flex; gap: 8px; flex-wrap: wrap; }
.aisha-cardactions .aisha-mini { flex: 1 1 132px; text-align: center; white-space: nowrap; }
/* zo203: slim card CTA row - size-ask on every card, notify on sold-out cards */
.aisha-cardcta { display: flex; flex-direction: column; gap: 8px; margin-top: 0; }
.aisha-cardactions:empty { display: none; margin: 0; }
.aisha-cardcta .aisha-mini { flex: 0 0 auto; width: 100%; box-sizing: border-box; min-width: 0; height: 28px; padding: 0 6px; font-size: 11.5px; font-weight: 700; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; text-decoration: none; }
.aisha-cardcta .aisha-mini.aisha-cardnotify { background: var(--aisha-accent); border-color: var(--aisha-accent); color: var(--aisha-bg); }
.aisha-cardcta .aisha-mini.aisha-cardnotify:hover { background: var(--aisha-accent); border-color: var(--aisha-accent); color: var(--aisha-bg); opacity: .88; }

.aisha-wabtn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-color: #1faa53; color: #1faa53; }
.aisha-wabtn:hover { background: #1faa53; color: #fff; }
.aisha-priceold { text-decoration: line-through; opacity: .6; font-weight: 400; font-size: .85em; }
.aisha-pricenew { color: #1faa53; }
.aisha-offerbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin: 0 0 18px; border: 1px solid var(--aisha-accent); border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--aisha-accent) 14%, var(--aisha-card)), var(--aisha-card)); }
.aisha-offertxt { display: flex; flex-direction: column; gap: 2px; }
.aisha-offertxt strong { font-family: 'Reem Kufi', 'Tajawal', Tahoma, serif; color: var(--aisha-accent); font-size: 17px; }
.aisha-offertxt span { font-size: 13px; opacity: .85; }
.aisha-offercount { font-size: 20px; font-weight: 700; letter-spacing: 1px; color: var(--aisha-accent); font-variant-numeric: tabular-nums; }
html.aisha--glass .aisha-offerbar { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* build zo5: store QR code overlay */
.aisha-qrov { position: fixed; inset: 0; z-index: 80; background: rgba(8, 8, 14, .55); display: flex; align-items: center; justify-content: center; padding: 20px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.aisha-qrbox { position: relative; background: var(--aisha-card); border: 1px solid var(--aisha-hairline); border-radius: 22px; padding: 26px 22px 20px; width: 100%; max-width: 340px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.aisha-qrbox h3 { margin: 0; font-family: 'Reem Kufi', 'Tajawal', Tahoma, serif; color: var(--aisha-accent); font-size: 19px; }
.aisha-qrimg { background: #fff; padding: 12px; border-radius: 14px; line-height: 0; }
.aisha-qrimg svg { width: 220px; height: 220px; }
.aisha-qurl { font-size: 13px; opacity: .75; margin: 0; word-break: break-all; }
.aisha-qrclose { position: absolute; top: 10px; inset-inline-end: 12px; background: none; border: none; color: inherit; font-size: 24px; cursor: pointer; line-height: 1; padding: 4px 8px; }

/* build zo6: customer reviews */
.aisha-reviews-wrap { margin-top: 22px; }
.aisha-reviews { margin-top: 0; border-top: 1px solid var(--aisha-hairline); padding-top: 14px; }
.aisha-reviews h3 { color: var(--aisha-accent); font-family: 'Reem Kufi', 'Tajawal', Tahoma, serif; margin: 0 0 8px; font-size: 20px; }
.aisha-stars { color: var(--aisha-accent); font-size: 15px; letter-spacing: 2px; white-space: nowrap; }
.aisha-stars .aisha-starsoff { opacity: .25; }
.aisha-revavg { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.aisha-revrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px dashed var(--aisha-hairline); }
.aisha-revbody { flex: 1; }
.aisha-revbody strong { font-size: 14px; }
.aisha-revbody p { margin: 4px 0 2px; font-size: 14px; line-height: 1.7; }
.aisha-revdate { font-size: 12px; opacity: .6; }
.aisha-revproduct { font-size: 12px; color: var(--aisha-accent); margin-inline-start: 6px; }
.aisha-revform { margin-top: 14px; }
.aisha-revform h4 { margin: 0 0 4px; color: var(--aisha-accent); font-family: 'Reem Kufi', 'Tajawal', Tahoma, serif; font-size: 17px; }
.aisha-revstars { display: flex; gap: 4px; margin: 4px 0 10px; }
.aisha-revstars button { background: none; border: none; font-size: 26px; line-height: 1; color: var(--aisha-hairline); cursor: pointer; padding: 2px; -webkit-tap-highlight-color: transparent; }
.aisha-revstars button.is-on { color: var(--aisha-accent); }
.aisha-mini--danger { color: #b3261e; border-color: rgba(179,38,30,.4); }

/* build zo7 */
.aisha-reverr { margin: 6px 0 10px; }

/* build zo8: drawer scrolls independently, page behind stays fixed */
.aisha-drawer { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html.aisha-menuopen, html.aisha-menuopen body { overflow: hidden; overscroll-behavior: none; }

/* build zo9: gallery + lightbox, shop filters, faq/story, order form, orders page */
.aisha-gallery { position: relative; }
.aisha-galstrip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
.aisha-galstrip::-webkit-scrollbar { display: none; }
.aisha-galstrip img { width: 100%; flex: 0 0 100%; scroll-snap-align: start; object-fit: cover; display: block; }
.aisha-galdots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.aisha-galdots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.55); padding: 0; cursor: pointer; }
.aisha-galdots button.is-on { background: var(--aisha-accent); }
.aisha-galzoom { position: absolute; bottom: 10px; inset-inline-start: 10px; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--aisha-hairline); background: var(--aisha-card); color: var(--aisha-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: .92; z-index: 2; }
.aisha-lbox { position: fixed; inset: 0; z-index: 300; background: #0b0906; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.aisha-lboxstrip { display: flex; width: 100%; height: 100%; overflow: auto; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x; }
.aisha-lboxstrip::-webkit-scrollbar { display: none; }
.aisha-lboxslide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; min-height: 100%; }
.aisha-lboxslide img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center center; transition: transform .2s ease-out; will-change: transform; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.aisha-lbox.is-zoom .aisha-lboxstrip { scroll-snap-type: none; overflow: hidden; touch-action: none; }
.aisha-lbox.is-zoom .aisha-lboxslide { min-width: 100%; overflow: hidden; }
.aisha-lbox.is-zoom .aisha-lboxslide img { transition: none; }
.aisha-lboxclose { position: absolute; top: calc(14px + env(safe-area-inset-top)); inset-inline-end: 14px; z-index: 4; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 22px; cursor: pointer; }
.aisha-lboxbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: center; align-items: center; padding: 22px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(11,9,6,0) 0%, rgba(11,9,6,.86) 55%, #0b0906 100%); pointer-events: none; }
.aisha-lboxcount { position: static; display: inline-block; direction: ltr; unicode-bidi: isolate; color: #fff; opacity: 1; font-size: 13px; line-height: 1; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.aisha-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.aisha-filters input, .aisha-filters select { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--aisha-hairline); background: var(--aisha-card); color: var(--aisha-ink); }
.aisha-filters input { grid-column: 1 / -1; }
html .aisha-orderbox[hidden] { display: none; }
.aisha-orderbox { margin-top: 20px; border-top: 1px solid var(--aisha-hairline); padding-top: 14px; }
.aisha-orderbox h3 { color: var(--aisha-accent); font-family: 'Reem Kufi', 'Tajawal', Tahoma, serif; margin: 0 0 10px; font-size: 20px; }
.aisha-ordersuccess { background: var(--aisha-soft); border: 1px solid var(--aisha-hairline); border-radius: 14px; padding: 16px; text-align: center; }
.aisha-ordererr { margin: 6px 0 10px; }
.aisha-orderrow { background: var(--aisha-card); border: 1px solid var(--aisha-hairline); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.aisha-orderhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aisha-orderhead .aisha-revdate { margin-inline-start: auto; }
.aisha-orderctl { display: flex; gap: 8px; align-items: center; }
.aisha-orderctl select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--aisha-hairline); background: var(--aisha-card); color: var(--aisha-ink); }
.aisha-faq .aisha-qa { background: var(--aisha-card); border: 1px solid var(--aisha-hairline); border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; }
.aisha-faq summary { cursor: pointer; font-weight: 600; }
.aisha-faq .aisha-qa p { margin: 8px 0 2px; line-height: 1.8; }
.aisha-storybody p { line-height: 2; font-size: 17px; }

/* build zo10: ambient animations (scroll reveal, logo shimmer, theme crossfade, cart pulse) */
.aisha-card.aisha-reveal { opacity: 0; transform: translateY(16px); }
.aisha-card.aisha-reveal.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.aisha-brandname {
    background: linear-gradient(90deg, var(--aisha-ink) 42%, var(--aisha-accent) 50%, var(--aisha-ink) 58%);
    background-size: 260% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: aishaLogoShimmer 9.15s linear 1.5s infinite;
}
@keyframes aishaLogoShimmer {
    /* alternating glints: fast pass 1.15s, 3s gap, slow pass 2s, 3s gap (9.15s cycle).
       Constant linear velocity; band fully off-text at both ends; the 12.57%->12.58%
       reset and the loop wrap jump happen entirely off-text.
       zo150: sweep 100%->0% with background-repeat:no-repeat. With the old +-130%
       positions the default repeat tiled the gradient, and a neighbor tile's band
       parked on the name during the 3s hold at -130% (the "stall" he reported).
       The 0..100% sweep keeps the tile covering the text at every position, so
       no-repeat is safe and only one band ever exists. Same direction (left->right),
       same timing. */
    0% { background-position: 100% 0; }
    12.57% { background-position: 0% 0; }
    12.58% { background-position: 100% 0; }
    45.36% { background-position: 100% 0; }
    67.21% { background-position: 0% 0; }
    100% { background-position: 0% 0; }
}
html.aisha-theming *, html.aisha-theming *::before, html.aisha-theming *::after {
    transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease, stroke .5s ease !important;
}
.aisha-nav a.aisha-pulse { animation: aishaPulse .5s ease; }
@keyframes aishaPulse { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
    .aisha-brandname { animation: none; background: none; -webkit-text-fill-color: currentColor; }
    .aisha-nav a.aisha-pulse { animation: none; }
    .aisha-card.aisha-reveal { opacity: 1; transform: none; }
}

/* build zo11: stronger cart feedback (double pulse + count badge pop) */
.aisha-nav a { position: relative; }
.aisha-cartbadge {
    position: absolute; top: 5px; inset-inline-end: calc(50% - 21px);
    min-width: 17px; height: 17px; box-sizing: border-box; padding: 0 4px;
    border-radius: 999px; background: var(--aisha-accent); color: var(--aisha-bg);
    font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
    pointer-events: none; z-index: 3;
}
.aisha-cartbadge.aisha-badgepop { animation: aishaBadgePop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes aishaBadgePop { 0% { transform: scale(.3); } 55% { transform: scale(1.4); } 100% { transform: scale(1); } }
.aisha-nav a.aisha-pulse { animation: aishaPulse .7s ease; }
@keyframes aishaPulse {
    0% { transform: scale(1); }
    18% { transform: scale(1.35); }
    36% { transform: scale(.94); }
    55% { transform: scale(1.18); }
    75% { transform: scale(.98); }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .aisha-cartbadge.aisha-badgepop { animation: none; }
    .aisha-nav a.aisha-pulse { animation: none; }
}

/* build zo13: fast inventory screen (optimistic updates, toast, count bump) */
.aisha-toast {
    position: fixed; bottom: 96px; left: 50%; z-index: 90;
    transform: translateX(-50%) translateY(12px);
    background: var(--aisha-ink); color: var(--aisha-bg);
    padding: 10px 18px; border-radius: 12px; font-size: 14px;
    max-width: 86vw; text-align: center;
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}
.aisha-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.aisha-stockbump { animation: aishaStockBump .3s ease; }
@keyframes aishaStockBump { 35% { transform: scale(1.14); color: var(--aisha-accent); } }
@media (prefers-reduced-motion: reduce) {
    .aisha-stockbump { animation: none; }
    .aisha-toast { transition: none; }
}

/* build zo16: no double-tap zoom site-wide (pinch still works); the lightbox zoom is custom event-based and unaffected */
html, body { touch-action: manipulation; }

/* zo17: partners card in profit screen */
.aisha-partnerrow { border-top: 1px solid var(--aisha-hairline); padding: 14px 0 10px; }
.aisha-partnerrow:first-of-type { border-top: 0; padding-top: 4px; }
.aisha-partnername { font-weight: 700; font-size: 17px; margin-bottom: 8px; color: var(--aisha-accent); font-family: 'Reem Kufi', 'Tajawal', Tahoma, serif; }
.aisha-partnergrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.aisha-partnerrow input:disabled { opacity: .65; }
.aisha-partnerscard .aisha-btn { margin-top: 12px; width: 100%; }

/* zo18: stop iOS auto-zoom when focusing inputs (iOS zooms if font-size < 16px) */
@media (max-width: 820px) {
    .aisha input, .aisha select, .aisha textarea { font-size: 16px; }
}

/* zo22: glass tab bar fits small phones (7 owner items on ~360-400px) */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (max-width: 430px) {
    html.aisha--glass .aisha-nav { padding: 4px; width: calc(100vw - 16px); max-width: calc(100vw - 16px); }
    html.aisha--glass .aisha-nav a, html.aisha--glass .aisha-nav a:hover,
    html.aisha--glass .aisha-nav a[aria-current="page"], html.aisha--glass .aisha-nav a[aria-current="page"]:hover {
      min-width: 0; flex: 1 1 0; padding: 6px 2px 5px; font-size: 9px; gap: 2px; letter-spacing: 0;
    }
    html.aisha--glass .aisha-navico { width: 19px; height: 19px; }
    html.aisha--glass .aisha-navlbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    html.aisha--glass .aisha-cartbadge { top: 3px; inset-inline-end: calc(50% - 19px); min-width: 15px; height: 15px; font-size: 9.5px; padding: 0 3px; }
  }
}

/* zo23: wordmark centered and composed (both lines coaxial) */
.aisha-brandwords { align-items: center; text-align: center; }
.aisha-brandsub { text-align: center; margin-left: 3.5px; }

/* zo25: lens bubble rim follows the active theme palette */
.aisha--noor { --rim1: rgba(224,186,90,.9); --rim2: rgba(255,214,170,.8); }
.aisha--layl { --rim1: rgba(212,175,106,.9); --rim2: rgba(130,90,190,.8); }
.aisha--ward { --rim1: rgba(240,170,185,.9); --rim2: rgba(255,210,190,.8); }
.aisha--royal { --rim1: rgba(217,185,106,.9); --rim2: rgba(70,110,210,.8); }
.aisha--zeiti { --rim1: rgba(205,182,101,.9); --rim2: rgba(110,150,60,.8); }
.aisha--burgundy { --rim1: rgba(217,168,106,.9); --rim2: rgba(158,62,84,.8); }
html.aisha--glass .aisha-navind::before {
  background: conic-gradient(from 210deg, rgba(255,255,255,0) 0deg, var(--rim1, rgba(224,186,90,.9)) 70deg, rgba(255,255,255,0) 140deg, rgba(255,255,255,0) 205deg, var(--rim2, rgba(255,214,170,.8)) 275deg, rgba(255,255,255,0) 345deg);
}
/* zo30: variants, restock, stats */
.aisha-variants { margin: 16px 0 4px; }
.aisha-vargroup { margin-bottom: 12px; }
.aisha-varlabel { display: block; font-size: 13px; opacity: .75; margin-bottom: 7px; }
.aisha-varchips { display: flex; flex-wrap: wrap; gap: 8px; }
.aisha-chip { border: 1px solid var(--aisha-hairline); background: var(--aisha-card); color: var(--aisha-ink); border-radius: 999px; padding: 8px 18px; font-size: 13px; cursor: pointer; font-family: inherit; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.aisha-chip.is-on { background: var(--aisha-accent); color: #fff; border-color: var(--aisha-accent); }
.aisha-restock { border: 1px dashed var(--aisha-hairline); border-radius: 18px; padding: 16px 18px; margin: 18px 0; background: var(--aisha-card); }
.aisha-restock h3 { margin: 0 0 6px; font-size: 16px; font-family: 'Reem Kufi', 'Tajawal', Tahoma, serif; color: var(--aisha-accent); }
.aisha-restock p { margin: 0 0 12px; font-size: 13px; opacity: .8; }
.aisha-statsgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.aisha-stat { text-align: center; border: 1px solid var(--aisha-hairline); border-radius: 14px; padding: 12px 6px; }
.aisha-stat strong { display: block; font-size: 20px; color: var(--aisha-accent); }
.aisha-stat span { font-size: 12px; opacity: .75; }
.aisha-logrow .aisha-mini { text-decoration: none; }
.aisha-logrow .aisha-logdate { display: inline-flex; gap: 6px; align-items: center; flex-shrink: 0; }
.aisha-logrow .aisha-mini { white-space: nowrap; }

/* ===== desktop glass: no live backdrop blur at all (weak GPUs lag); opaque fills keep the frosted look ===== */
@media (min-width: 768px) {
  html.aisha--glass .aisha-nav a, html.aisha--glass .aisha-card, html.aisha--glass .aisha-form,
  html.aisha--glass .aisha-sharebox, html.aisha--glass .aisha-settingscard, html.aisha--glass .aisha-stockrow,
  html.aisha--glass .aisha-cartrow, html.aisha--glass .aisha-logrow, html.aisha--glass .aisha-log,
  html.aisha--glass .aisha-carttotal, html.aisha--glass .aisha-adminrow, html.aisha--glass .aisha-btn--ghost,
  html.aisha--glass .aisha-themebtn, html.aisha--glass .aisha-langbtn, html.aisha--glass .aisha-glassbtn,
  html.aisha--glass .aisha-mini, html.aisha--glass .aisha-sessionbar, html.aisha--glass .aisha-drawthemes,
  html.aisha--glass .aisha-drawitem {
    background: linear-gradient(135deg, var(--g-hi) 0%, transparent 38%), var(--g-strong);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  html.aisha--glass .aisha-nav { -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.aisha--glass .aisha-navind { -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.aisha--glass .aisha-form input, html.aisha--glass .aisha-form textarea,
  html.aisha--glass .aisha-form select, html.aisha--glass .aisha-passinput { -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.aisha--glass .aisha-menubtn, html.aisha--glass .aisha-drawer, html.aisha--glass .aisha-scrim,
  html.aisha--glass .aisha-tag { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* href-less routed links: keep the pointer affordance */
a[data-nav], a[data-ext] { cursor: pointer; }

/* staff: stock add always green, stock deduct always red (all themes) */
.aisha-stockctl .aisha-mini[data-delta="1"] { border-color: #1faa53; color: #1faa53; }
.aisha-stockctl .aisha-mini[data-delta="1"]:hover { background: #1faa53; color: #fff; }
.aisha-stockctl .aisha-mini[data-delta="-1"] { border-color: #b3403c; color: #b3403c; }
.aisha-stockctl .aisha-mini[data-delta="-1"]:hover { background: #b3403c; color: #fff; }
/* staff: add-product / add-account submits always green */
#aisha-addform .aisha-btn--primary, #aisha-userform .aisha-btn--primary { background: #1faa53; border-color: #1faa53; color: #fff; }
#aisha-addform .aisha-btn--primary:hover, #aisha-userform .aisha-btn--primary:hover { background: #178a45; border-color: #178a45; }

/* [hidden] must beat display:flex on forms (edit forms were always visible) */
.aisha-form[hidden] { display: none; }

/* orders screen: clear item rows with separated fields (name / size / color / qty / price) */
.aisha-orderitems { display: flex; flex-direction: column; gap: 6px; }
.aisha-orderitem { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border: 1px solid var(--aisha-hairline); border-radius: 10px; }
.aisha-oiname { font-weight: 700; }
.aisha-oifields { display: flex; flex-wrap: wrap; gap: 6px; }
.aisha-oifield { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--aisha-hairline); font-size: 12px; background: var(--aisha-card); }
.aisha-oifield em { font-style: normal; opacity: .55; font-size: 10.5px; }
.aisha-ordertotal { font-size: 14px; }
.aisha-ordertotal strong { color: var(--aisha-accent); }
.aisha-orderaddr { display: flex; gap: 8px; align-items: baseline; }
.aisha-olabel { flex: 0 0 auto; min-width: 52px; font-size: 11px; opacity: .55; }
.aisha-ophone { color: var(--aisha-accent); text-decoration: none; }

/* zo52: hidden cart checkout form */
.aisha-form[hidden]{display:none}
.aisha-cartorderform{margin-top:14px;max-width:520px}

/* zo53: clearer money chips */
.aisha-oifield { font-size: 13px; font-weight: 700; }
.aisha-oifield em { font-weight: 400; }

/* zo53: customers don't see stock state except sold-out */
.aisha-cardwrap .aisha-stock--in, .aisha-cardwrap .aisha-stock--low, .aisha-cardwrap .aisha-stock--unknown { display: none; }

/* zo53: themed partner inputs (were browser-default white) */
.aisha-partnercapital, .aisha-partnershare {
    border: 1px solid var(--aisha-hairline); border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 700;
    background: var(--aisha-bg); color: var(--aisha-ink); transition: border-color .25s ease, box-shadow .25s ease; width: 100%;
}
.aisha-partnercapital:focus, .aisha-partnershare:focus { outline: none; border-color: var(--aisha-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--aisha-accent) 20%, transparent); }
.aisha-partnershare:disabled { opacity: .55; }

/* zo56: customer cart qty steppers green/red */
.aisha-cartplus { border-color: #1f8a4c; color: #1f8a4c; }
.aisha-cartplus:hover { background: #1f8a4c; color: #fff; }
.aisha-cartminus { border-color: #b3403c; color: #b3403c; }
.aisha-cartminus:hover { background: #b3403c; color: #fff; }

/* zo57: order status select + delete button polish (desktop) */
.aisha-orderctl { margin-top: 10px; }
.aisha-orderctl .aisha-ostatus {
    appearance: none; -webkit-appearance: none;
    height: 34px; padding: 0 12px; padding-inline-end: 30px;
    border-radius: 999px; border: 1px solid var(--aisha-accent);
    background-color: var(--aisha-card); color: var(--aisha-accent);
    font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23b39245' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat; background-position: left 11px center;
}
.aisha-orderctl .aisha-odel { border-radius: 999px; }

/* zo58: delivered orders archive */
.aisha-arch { margin-top: 20px; border-top: 1px solid var(--aisha-hairline); padding-top: 6px; }
.aisha-arch summary { cursor: pointer; color: var(--aisha-accent); font-weight: 700; font-size: 14px; padding: 8px 4px; list-style: none; }
.aisha-arch summary::-webkit-details-marker { display: none; }
.aisha-arch summary::before { content: "◂ "; }
.aisha-arch[open] summary::before { content: "▾ "; }
.aisha-arch .aisha-orderrow { opacity: .72; }

/* zo60: journal screen */
.aisha-jday { margin: 18px 0 6px; display: flex; justify-content: space-between; align-items: baseline; }
.aisha-jday h3 { font-size: 15px; color: var(--aisha-accent); margin: 0; }
.aisha-jday span { font-size: 12px; font-weight: 700; color: var(--aisha-accent); opacity: .85; }
.aisha-jrow { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--aisha-hairline); }
.aisha-jbadge { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--aisha-accent); color: var(--aisha-accent); }
.aisha-demochip { display: inline-block; margin-inline-start: 8px; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px dashed var(--aisha-hairline); opacity: .6; vertical-align: 2px; white-space: nowrap; }
.aisha-jrow--ret .aisha-jbadge, .aisha-jrow--out .aisha-jbadge { border-color: #b3403c; color: #b3403c; }
.aisha-jrow--in .aisha-jbadge { border-color: #1f8a4c; color: #1f8a4c; }
.aisha-jmain { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 700; min-width: 0; }
.aisha-jmeta { font-size: 11px; font-weight: 400; opacity: .75; }
.aisha-jbtns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
.aisha-jstate { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.aisha-jstate--open { border: 1px solid #1f8a4c; color: #1f8a4c; }
.aisha-jstate--arch { border: 1px solid #b3403c; color: #b3403c; }
.aisha-permrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--aisha-hairline); flex-basis: 100%; align-items: center; }
.aisha-perm { font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--aisha-hairline); background: transparent; color: inherit; cursor: pointer; font-family: inherit; opacity: .6; height: 30px; }
.aisha-perm--on { border-color: #1f8a4c; color: #1f8a4c; opacity: 1; }
.aisha-perm--on::before { content: "✓ "; }
.aisha-jtablewrap { overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--aisha-hairline); border-radius: 14px; }
.aisha-jtable { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.aisha-jtable th { text-align: right; padding: 10px 12px; font-size: 12px; font-weight: 800; border-bottom: 1px solid var(--aisha-hairline); opacity: .75; white-space: nowrap; }
.aisha-jtable td { padding: 9px 12px; border-bottom: 1px solid var(--aisha-hairline); vertical-align: middle; white-space: nowrap; }
.aisha-jtable tr:last-child td { border-bottom: 0; }
.aisha-jrowsel td { background: rgba(198, 162, 90, .08); }
.aisha-jacts { display: flex; gap: 6px; flex-wrap: wrap; }
.aisha-jacts .aisha-mini { white-space: nowrap; height: auto; min-height: 30px; padding: 6px 12px; font-size: 11px; line-height: 1.4; border-radius: 999px; }
.aisha-jacts .aisha-jarch { border-color: #1f8a4c; color: #1f8a4c; font-weight: 800; }
.aisha-jacts .aisha-jarch:hover { background: #1f8a4c; color: #fff; }
.aisha-jacts .aisha-junarch { border-color: #b3403c; color: #b3403c; font-weight: 800; }
.aisha-jacts .aisha-junarch:hover { background: #b3403c; color: #fff; }
.aisha-jacts .aisha-jeditdate { opacity: .75; }
.aisha-jaddbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.aisha-jnow { font-size: 13px; font-weight: 800; }
.aisha-jaddform { display: flex; gap: 8px; align-items: center; }
.aisha-jnext { font-size: 12px; font-weight: 700; opacity: .7; padding: 0 4px; }
@media (max-width: 640px) {
  .aisha-jtable { font-size: 12px; min-width: 0; }
  .aisha-jtablewrap { overflow-x: visible; }
  .aisha-jtable thead { display: none; }
  .aisha-jtable tbody, .aisha-jtable tbody tr { display: block; }
  .aisha-jtable tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; }
  .aisha-jtable td { display: block; border-bottom: 0; padding: 0; white-space: nowrap; }
  .aisha-jtable td.c-num::before { content: "#"; opacity: .55; }
  .aisha-jtable td.c-dur::after { content: " يوم"; opacity: .55; font-size: 11px; }
  .aisha-jtable td.c-acts { flex-basis: 100%; margin-top: 4px; }
  .aisha-jaddbar { flex-direction: column; align-items: stretch; }
  .aisha-jaddform { display: flex; justify-content: space-between; }
  .aisha-jaddform .aisha-jnext { align-self: center; }
  .aisha-jaddform .aisha-jadd { flex: 0 0 auto; }
}
.aisha-jlink { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--aisha-accent); text-decoration: none; border: 1px solid var(--aisha-hairline); padding: 3px 10px; border-radius: 999px; }

/* يوميات — التصميم الاحترافي */
.aisha-jphead { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin: 4px 0 2px; }
.aisha-jphead h2 { font-size: 21px; margin: 0; }
.aisha-jphead p { font-size: 11px; opacity: .6; margin: 3px 0 0; }
.aisha-jkpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.aisha-jkpi { background: var(--aisha-card); border: 1px solid var(--aisha-hairline); border-radius: 14px; padding: 10px 6px; text-align: center; }
.aisha-jkpi b { display: block; font-size: 16px; font-weight: 800; direction: ltr; }
.aisha-jkpi--gold b { color: var(--aisha-accent); }
.aisha-jkpi span { font-size: 10px; opacity: .6; }
.aisha-jsecttl { display: flex; justify-content: space-between; align-items: center; margin: 16px 2px 8px; }
.aisha-jsecttl h3 { font-size: 14px; margin: 0; }
.aisha-jfilters { display: flex; gap: 6px; margin-bottom: 10px; }
.aisha-jchip { font: inherit; font-size: 11px; font-weight: 700; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--aisha-hairline); background: transparent; color: inherit; opacity: .75; cursor: pointer; }
.aisha-jchip.is-on { background: var(--aisha-accent); border-color: var(--aisha-accent); color: #221a06; opacity: 1; }
.aisha-jsearch { flex: 1; min-width: 0; background: var(--aisha-card); border: 1px solid var(--aisha-hairline); border-radius: 20px; color: inherit; font: inherit; font-size: 11px; padding: 6px 14px; }
.aisha-jcard { background: var(--aisha-card); border: 1px solid var(--aisha-hairline); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.aisha-jcard.is-sel { border-color: var(--aisha-accent); box-shadow: 0 0 0 1px var(--aisha-accent); }
.aisha-jcardtop { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.aisha-jcarddate { font-size: 15px; font-weight: 800; direction: ltr; text-align: end; }
.aisha-jcarddate small { display: block; font-size: 10px; font-weight: 500; opacity: .6; margin-top: 2px; direction: rtl; }
.aisha-jpill { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; border: 1px solid currentColor; white-space: nowrap; }
.aisha-jpill--arch { opacity: .65; background: var(--aisha-soft); border-color: var(--aisha-hairline); }
.aisha-jcardmid { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 10px; font-size: 11px; opacity: .85; }
.aisha-jcardmid b { font-weight: 800; }
.aisha-jcardsales b { color: var(--aisha-accent); }
.aisha-jcardacts { display: flex; gap: 6px; border-top: 1px solid var(--aisha-hairline); padding-top: 9px; }
.aisha-jabtn { font: inherit; font-size: 11px; font-weight: 700; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--aisha-hairline); background: transparent; color: inherit; cursor: pointer; }
.aisha-jabtn--view { color: var(--aisha-accent); border-color: var(--aisha-accent); }
.aisha-jmorewrap { position: relative; margin-inline-start: auto; }
.aisha-jmore { letter-spacing: 1px; padding: 6px 10px; opacity: .7; }
.aisha-jmenu { position: absolute; left: 0; bottom: calc(100% + 4px); background: var(--aisha-card); border: 1px solid var(--aisha-hairline); border-radius: 10px; padding: 4px; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.aisha-jmenu .aisha-jeditdate { display: block; white-space: nowrap; font: inherit; font-size: 11px; font-weight: 700; padding: 7px 14px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.aisha-jdetail { background: var(--aisha-card); border: 1px solid var(--aisha-accent); border-radius: 16px; padding: 14px; margin: 6px 0 10px; scroll-margin-top: 12px; }
.aisha-jdhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.aisha-jdhead h3 { font-size: 15px; margin: 0; }
.aisha-jdstats { display: flex; gap: 8px; margin-bottom: 12px; }
.aisha-jdstat { flex: 1; background: var(--aisha-soft); border-radius: 10px; padding: 7px 4px; text-align: center; }
.aisha-jdstat b { display: block; font-size: 13px; direction: ltr; }
.aisha-jdstat span { font-size: 9px; opacity: .6; }
.aisha-jtl { border-top: 1px solid var(--aisha-hairline); padding-top: 8px; }
.aisha-jmove { display: flex; gap: 10px; padding: 7px 0; align-items: flex-start; }
.aisha-jdot { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; direction: ltr; border: 1px solid currentColor; }
.aisha-jmv { flex: 1; min-width: 0; }
.aisha-jmv b { font-size: 12px; font-weight: 700; display: block; }
.aisha-jmv span { font-size: 10px; opacity: .55; direction: ltr; display: block; text-align: end; }
.aisha-jmamt { font-size: 12px; font-weight: 800; direction: ltr; white-space: nowrap; }
.aisha-jfold { border: 1px dashed var(--aisha-hairline); border-radius: 12px; padding: 9px 12px; font-size: 11px; opacity: .7; margin: 4px 0 8px; }
.aisha-jdot--ord, .aisha-jmamt--ord { color: var(--aisha-accent); }
.aisha--royal .aisha-jdot--in, .aisha--royal .aisha-jmamt--in { color: #86d695; }
.aisha--royal .aisha-jdot--out, .aisha--royal .aisha-jmamt--out { color: #e08585; }
.aisha--noor .aisha-jdot--in, .aisha--noor .aisha-jmamt--in { color: #2e7d43; }
.aisha--noor .aisha-jdot--out, .aisha--noor .aisha-jmamt--out { color: #b3463c; }
.aisha--layl .aisha-jdot--in, .aisha--layl .aisha-jmamt--in { color: #86d695; }
.aisha--layl .aisha-jdot--out, .aisha--layl .aisha-jmamt--out { color: #e08585; }
.aisha--ward .aisha-jdot--in, .aisha--ward .aisha-jmamt--in { color: #2e7d43; }
.aisha--ward .aisha-jdot--out, .aisha--ward .aisha-jmamt--out { color: #b3463c; }
.aisha--zeiti .aisha-jdot--in, .aisha--zeiti .aisha-jmamt--in { color: #86d695; }
.aisha--zeiti .aisha-jdot--out, .aisha--zeiti .aisha-jmamt--out { color: #e08585; }
.aisha--burgundy .aisha-jdot--in, .aisha--burgundy .aisha-jmamt--in { color: #86d695; }
.aisha--burgundy .aisha-jdot--out, .aisha--burgundy .aisha-jmamt--out { color: #e08585; }
@media (max-width: 640px) {
  .aisha-jcardmid { gap: 10px; }
  .aisha-jkpis { gap: 6px; }
  .aisha-jkpi b { font-size: 14px; }
}
.aisha-jphead .aisha-jadd { white-space: nowrap; }

/* أرشفة حمراء / إلغاء أرشفة خضراء + حذف اليومية */
.aisha--royal .aisha-jabtn--arch, .aisha--layl .aisha-jabtn--arch, .aisha--zeiti .aisha-jabtn--arch, .aisha--burgundy .aisha-jabtn--arch { color: #e08585; border-color: #e08585; }
.aisha--noor .aisha-jabtn--arch, .aisha--ward .aisha-jabtn--arch { color: #b3463c; border-color: #b3463c; }
.aisha--royal .aisha-jabtn--unarch, .aisha--layl .aisha-jabtn--unarch, .aisha--zeiti .aisha-jabtn--unarch, .aisha--burgundy .aisha-jabtn--unarch { color: #86d695; border-color: #86d695; }
.aisha--noor .aisha-jabtn--unarch, .aisha--ward .aisha-jabtn--unarch { color: #2e7d43; border-color: #2e7d43; }
.aisha-jmenu .aisha-jdel { display: block; white-space: nowrap; font: inherit; font-size: 11px; font-weight: 700; padding: 7px 14px; border: 0; background: transparent; cursor: pointer; }
.aisha--royal .aisha-jmenu .aisha-jdel, .aisha--layl .aisha-jmenu .aisha-jdel, .aisha--zeiti .aisha-jmenu .aisha-jdel, .aisha--burgundy .aisha-jmenu .aisha-jdel { color: #e08585; }
.aisha--noor .aisha-jmenu .aisha-jdel, .aisha--ward .aisha-jmenu .aisha-jdel { color: #b3463c; }
.aisha-jmenu .aisha-jdel:disabled { opacity: .4; cursor: not-allowed; }

/* --- order tracking steps --- */
.aisha-trackcard { margin-top: 14px; }
.aisha-tsteps { display: flex; gap: 4px; margin: 14px 0; }
.aisha-tstep { flex: 1; text-align: center; font-size: 11px; opacity: .45; }
.aisha-tstep span { display: block; height: 6px; border-radius: 4px; background: var(--aisha-hairline); margin-bottom: 5px; }
.aisha-tstep.is-done { opacity: 1; font-weight: 700; }
.aisha-tstep.is-done span { background: var(--aisha-accent); }
/* --- size guide modal --- */
/* zo244: order form opens as a centred sheet, same box as the size guide */
html .aisha-ordermodal { z-index: 95; }
html .aisha-ordermodal-box { max-width: 380px; max-height: 76vh; overflow-y: auto; overscroll-behavior: contain; }
html .aisha-orderbox.is-modal { margin: 0; border-top: none; padding-top: 0; }
html .aisha-orderbox.is-modal h3 { margin: 0 0 10px; padding-inline-end: 26px; }
body.aisha-modallock { overflow: hidden; }
.aisha-sizemodal { position: fixed; inset: 0; background: rgba(10,10,20,.55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 18px; }
.aisha-sizebox { background: var(--aisha-card); border: 1px solid var(--aisha-hairline); border-radius: 18px; padding: 20px; max-width: 380px; width: 100%; position: relative; }
.aisha-sizeclose { position: absolute; top: 10px; inset-inline-end: 12px; background: none; border: none; font-size: 22px; color: inherit; cursor: pointer; }
.aisha-sizenum { font-size: 42px; font-weight: 800; text-align: center; color: var(--aisha-accent); margin: 10px 0 4px; direction: ltr; }
.aisha-sizeres { text-align: center; margin-top: 12px; }
/* --- gallery video --- */
.aisha-galstrip video { flex: 0 0 100%; width: 100%; scroll-snap-align: center; background: #000; aspect-ratio: 3/4; object-fit: cover; }
/* --- low stock strip --- */
.aisha-lowstock { background: rgba(200,60,60,.12); border: 1px solid rgba(200,60,60,.35); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
/* --- shipping admin rows --- */
.aisha-shiprow { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--aisha-hairline); }
.aisha-shiprow span { flex: 1; font-size: 14px; }
.aisha-shiprow input { width: 80px; }
/* --- reports top bars --- */
.aisha-toprow { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--aisha-hairline); font-size: 14px; }
.aisha-toprow > span { flex: 0 1 34%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aisha-topbar { height: 8px; border-radius: 5px; background: var(--aisha-accent); flex: 0 1 auto; min-width: 4px; }
.aisha-toprow strong { margin-inline-start: auto; font-size: 13px; white-space: nowrap; }
.aisha-mini--wide { display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; }
.aisha-cardactions .aisha-mini--wide { margin-top: 0; }

.aisha-jkpi strong { display: block; font-size: 15px; font-weight: 800; direction: ltr; overflow-wrap: anywhere; }
.aisha-reports, .aisha-track, section { min-width: 0; }

/* --- fix batch zo96 --- */
.aisha-ordersuccess a:not(.aisha-btn) { color: var(--aisha-accent); font-weight: 700; }
.aisha-footerlinks { flex-wrap: wrap; }
.aisha-shiprow .aisha-mini { width: auto; height: 32px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.aisha-shiprow input { border: 1px solid var(--aisha-hairline); border-radius: 10px; padding: 6px 8px; font: inherit; background: var(--aisha-bg); color: var(--aisha-ink); text-align: center; }
.aisha-shipline { text-align: start; }
/* build zo107: live version banner */
.aisha-verbadge { position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 10px; background: var(--aisha-card); color: var(--aisha-ink); border: 1px solid var(--aisha-accent); border-radius: 999px; padding: 8px 10px 8px 16px; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.aisha-verbadge button { background: var(--aisha-accent); color: var(--aisha-bg); border: 0; border-radius: 999px; padding: 6px 14px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }



/* Corner calligraphy ornament: the approved vector disc is pre-rendered once to
   2000px transparent PNGs (orn-gold / orn-light). Two GPU-composited layers rotate
   via CSS transform (no SMIL -> no per-frame re-raster, smooth on iOS). The sheen
   layer is the light PNG under a moving CSS gradient mask sweeping BR->TL,
   screen-fixed. 460x460 clipped contained box, cannot affect layout. */
html, body { overflow-x: clip; }
.aisha-orn-clip { position: absolute; top: 0; right: 0; width: min(calc(min(236vw,120vh,980px) / 2), 100vw); height: calc(min(236vw,120vh,980px) / 2); overflow: hidden; clip-path: inset(0); -webkit-clip-path: inset(0); pointer-events: none; z-index: -1; }
#aisha-splash .aisha-orn-clip { z-index: 0; }
.aisha-orn-rot { position: absolute; top: 0; right: 0; width: min(236vw,120vh,980px); height: min(236vw,120vh,980px); will-change: transform; transform: translate(50%,-50%); animation: aishaOrnSpin 75s linear infinite; }
.aisha-orn-img { width: 100%; height: 100%; display: block; }
/* Desktop: larger corner disc (owner request zo149). Mobile (<768px) keeps the
   original 236vw/120vh/980px sizing exactly. Clip = half the disc, never over
   100vw wide or 80vh tall, so no cropping or layout impact at any screen size. */
@media (min-width: 768px) {
  /* Desktop disc: purely width-proportional (owner request zo152) so the disc
     keeps the SAME size relative to the screen at every viewport, browser zoom
     and Windows scaling, and always matches the splash. No vh term: height
     made the disc shrink on short/scaled windows. Clip is exactly the quarter
     square, so the circle is never cut by anything but the screen corner. */
  .aisha-orn-clip { width: min(55vw, 100vw); height: 55vw; }
  .aisha-orn-rot { width: 110vw; height: 110vw; }
}
@keyframes aishaOrnSpin { from { transform: translate(50%,-50%) rotate(0deg); } to { transform: translate(50%,-50%) rotate(360deg); } }
.aisha-orn-base { opacity: .22; }
#aisha-splash .aisha-orn-base { opacity: .32; }
.aisha-orn-sheen { position: absolute; inset: 0; opacity: .5; -webkit-mask-image: linear-gradient(135deg, transparent 40%, #000 50%, transparent 60%); mask-image: linear-gradient(135deg, transparent 40%, #000 50%, transparent 60%); -webkit-mask-size: 300% 300%; mask-size: 300% 300%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; animation: aishaOrnSheen 7s linear infinite; }
#aisha-splash .aisha-orn-sheen { opacity: .65; }
@keyframes aishaOrnSheen { from { -webkit-mask-position: 15% 15%; mask-position: 15% 15%; } to { -webkit-mask-position: 85% 85%; mask-position: 85% 85%; } }

/* zo151: fast + smooth navigation - soft fade, no pop, no layout jump */
@keyframes aishaViewIn { from { opacity: 0; } to { opacity: 1; } }
#app.aisha-swap main { animation: aishaViewIn .2s ease-out; }
.aisha-cardimg img, .aisha-galstrip img, .aisha-thumb, .aisha-lboxslide img { opacity: 0; transition: opacity .22s ease-out; }
.aisha-cardimg img.aisha-imgin, .aisha-galstrip img.aisha-imgin, .aisha-thumb.aisha-imgin, .aisha-lboxslide img.aisha-imgin { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    #app.aisha-swap main { animation: none; }
    .aisha-cardimg img, .aisha-galstrip img, .aisha-thumb, .aisha-lboxslide img { transition: none; }
}

/* zo166: restock-alert rows: buttons size to their text, never overlap */
.aisha-restockrow { flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.aisha-restockrow .aisha-restockwho { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.aisha-restockrow .aisha-restockacts { opacity: 1; flex: 0 1 auto; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; max-width: 100%; }
.aisha-restockrow .aisha-restockacts .aisha-mini { width: auto; height: auto; min-height: 36px; min-width: 112px; box-sizing: border-box; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; font-size: 14px; font-family: inherit; line-height: 1.2; white-space: nowrap; }
@media (max-width: 480px) {
  .aisha-restockrow .aisha-restockwho { flex-basis: 100%; }
  .aisha-restockrow .aisha-restockacts { flex: 1 1 100%; justify-content: stretch; }
  .aisha-restockrow .aisha-restockacts .aisha-mini { flex: 1 1 0; min-width: 0; padding: 8px 10px; }
}

/* zo167: finance ledger on the profit screen */
.aisha-fintiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.aisha-fintile { border: 1px solid var(--aisha-hairline); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aisha-fintile span { font-size: 12px; opacity: .75; }
.aisha-fintile strong { font-size: 20px; overflow-wrap: anywhere; }
.aisha-finlist { display: flex; flex-direction: column; }
.aisha-finrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--aisha-hairline); font-size: 13px; flex-wrap: wrap; }
.aisha-finlabel { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.aisha-findate { opacity: .6; }
.aisha-finamt { font-weight: 700; margin-inline-start: auto; white-space: nowrap; }
.aisha-warn { color: #c9922a; font-weight: 600; font-size: 12px; }
@media (max-width: 640px) { .aisha-fintiles { grid-template-columns: 1fr; } }

/* zo172: offline banner */
.aisha-offline { position: fixed; inset-inline: 0; bottom: 0; z-index: 9999; display: none; padding: 10px 16px; background: #8c2f2b; color: #fff; font-size: 13px; line-height: 1.5; text-align: center; box-shadow: 0 -4px 16px rgba(0,0,0,.25); }
.aisha-offline.is-on { display: block; }

/* zo174: collection line on an order row - text-sized button, no square box */
.aisha-orderaddr { flex-wrap: wrap; align-items: center; }
.aisha-orderaddr .aisha-paytoggle {
    flex: 0 0 auto; width: auto; height: 30px; padding: 0 12px; font-size: 13px; font-weight: 700;
    line-height: 28px; border-radius: 999px; white-space: nowrap; margin-inline-start: 4px;
}

/* zo175: payment wallets at checkout + wallet cards */
.aisha-payblock { margin: 14px 0 4px; padding: 14px; border: 1px solid var(--aisha-hairline); border-radius: 14px; background: var(--aisha-card); }
.aisha-payblock h3 { margin: 0 0 6px; font-size: 16px; }
.aisha-paycards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.aisha-paycard { border: 1px solid var(--aisha-hairline); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.aisha-payname { font-weight: 700; font-size: 14px; }
.aisha-paynum { font-size: 16px; letter-spacing: .5px; font-weight: 700; color: var(--aisha-accent); }
.aisha-paynote { font-size: 12px; opacity: .75; }
.aisha-paycard .aisha-paycopy { margin-top: 4px; }
.aisha-payselect { display: block; margin-top: 6px; font-size: 14px; }
.aisha-payselect select { display: block; width: 100%; margin-top: 6px; font: inherit; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--aisha-hairline); background: var(--aisha-bg); color: var(--aisha-ink); }
/* zo178: payment method chooser on product and cart order forms */
.aisha-paychips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; }
.aisha-paychip { font: inherit; font-size: 14px; line-height: 1.2; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--aisha-hairline); background: var(--aisha-bg); color: var(--aisha-ink); cursor: pointer; }
.aisha-paychip.is-on { border-color: var(--aisha-accent); color: var(--aisha-accent); font-weight: 700; box-shadow: inset 0 0 0 1px var(--aisha-accent); }
.aisha-paydetail { border: 1px solid var(--aisha-hairline); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.aisha-paydetail .aisha-paycopy { margin-top: 4px; }
.aisha-walletcard { margin-bottom: 14px; }
.aisha-wtxns { margin-top: 10px; }
.aisha-wtxns .aisha-finrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* zo214 discount codes */
.aisha-codebox { margin: 4px 0 8px; }
.aisha-codelbl { display: block; }
.aisha-coderow { display: flex; gap: 8px; margin-top: 6px; align-items: stretch; }
.aisha-coderow input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; }
.aisha-coderow .aisha-codeapply { flex: 0 0 auto; width: auto; padding: 0 18px; margin: 0; }
.aisha-codemsg.aisha-codeok { color: var(--aisha-accent); font-weight: 700; }
.aisha-codemsg.aisha-codebad { color: #c0392b; }
.aisha-codelist { display: grid; gap: 8px; margin-bottom: 12px; }
.aisha-coderow2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--aisha-hairline); border-radius: 12px; }
.aisha-codename { font-weight: 800; letter-spacing: .06em; color: var(--aisha-accent); }
.aisha-codeval { font-weight: 700; }
.aisha-coderow2 .aisha-mini { margin-inline-start: auto; }
.aisha-coderow2 .aisha-mini ~ .aisha-mini { margin-inline-start: 0; }
.aisha-coderow2 .aisha-mini { width: auto; height: 32px; padding: 0 14px; font-size: 13px; white-space: nowrap; flex: 0 0 auto; margin-top: 0; }
.aisha-coderow2 .aisha-codetoggle { margin-inline-start: auto; }
.aisha-coderow2 .aisha-codedel { margin-inline-start: 0; }
.aisha-codescard .aisha-form--inline { margin-top: 8px; }
.aisha-codemsg[hidden] { display: none; }

/* zo215 restock ready */
.aisha-restockready { border: 1px solid var(--aisha-accent); border-radius: 16px; padding: 14px 16px; margin: 12px 0; background: var(--aisha-card); }
.aisha-restockready h3 { color: var(--aisha-accent); }

/* zo217: card CTA buttons (اطلبي مقاسك / نبّهيني لما يوصل) hover/focus/active.
   The glass-mode background rule outranked .aisha-mini:hover, so the fill never
   changed while the text switched to the (dark) page color. Fixed fill + dark text, all themes. */
html .aisha-cardcta .aisha-mini.aisha-cardsize:hover,
html .aisha-cardcta .aisha-mini.aisha-cardsize:focus-visible,
html .aisha-cardcta .aisha-mini.aisha-cardsize:active,
html .aisha-cardcta .aisha-mini.aisha-cardnotify:hover,
html .aisha-cardcta .aisha-mini.aisha-cardnotify:focus-visible,
html .aisha-cardcta .aisha-mini.aisha-cardnotify:active,
html.aisha--glass .aisha-cardcta .aisha-mini.aisha-cardsize:hover,
html.aisha--glass .aisha-cardcta .aisha-mini.aisha-cardsize:focus-visible,
html.aisha--glass .aisha-cardcta .aisha-mini.aisha-cardsize:active,
html.aisha--glass .aisha-cardcta .aisha-mini.aisha-cardnotify:hover,
html.aisha--glass .aisha-cardcta .aisha-mini.aisha-cardnotify:focus-visible,
html.aisha--glass .aisha-cardcta .aisha-mini.aisha-cardnotify:active {
  background: var(--aisha-accent); border-color: var(--aisha-accent); color: #1a1208; opacity: 1; text-decoration: none;
}
html .aisha-cardcta .aisha-mini.aisha-cardsize:focus-visible,
html .aisha-cardcta .aisha-mini.aisha-cardnotify:focus-visible { outline: 2px solid var(--aisha-ink); outline-offset: 2px; }
html .aisha-cardcta .aisha-mini.aisha-cardnotify, html.aisha--glass .aisha-cardcta .aisha-mini.aisha-cardnotify { color: #1a1208; }

/* zo219: sold-out / new-arrival ribbon legibility on desktop. The calligraphic Aref Ruqaa face at
   14-15px, rotated 45deg, read as garbled on low-DPI desktop screens (the initial noon looked like a
   fa). Use the clean bold Tajawal face, no letter-spacing (it breaks Arabic joining). Geometry unchanged. */
.aisha-ribbon b { font-family: 'Tajawal', 'Aref Ruqaa', Tahoma, sans-serif; font-weight: 700; letter-spacing: 0; color: #1a1208; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.aisha-cardimg .aisha-ribbon b { font-size: 14px; }
@media (min-width: 768px) { .aisha-cardimg .aisha-ribbon b { font-size: 15px; } }

/* zo220: desktop flipping (arrows, mouse drag, keys) for the product gallery and lightbox.
   Arrows show only on mouse devices; touch swipe is unchanged. */
.aisha-galnav { display: none; }
@media (hover: hover) and (pointer: fine) {
  .aisha-galstrip, .aisha-lboxstrip { cursor: grab; }
  .aisha-galstrip.is-dragging, .aisha-lboxstrip.is-dragging { cursor: grabbing; scroll-snap-type: none !important; scroll-behavior: auto; }
  .aisha-galstrip.is-dragging *, .aisha-lboxstrip.is-dragging * { user-select: none; -webkit-user-select: none; }
  .aisha-galstrip img, .aisha-lboxstrip img { -webkit-user-drag: none; user-select: none; }
  .aisha-galnav { display: flex; align-items: center; justify-content: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 42px; height: 42px; padding: 0 0 4px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(20,16,10,.55); color: #fff;
    font-size: 30px; line-height: 1; font-family: Tahoma, Arial, sans-serif; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: background-color .2s ease, color .2s ease, opacity .2s ease, transform .2s ease; }
  .aisha-galnav--l { left: 10px; }
  .aisha-galnav--r { right: 10px; }
  .aisha-galnav:hover:not(:disabled), .aisha-galnav:focus-visible:not(:disabled) { background: var(--aisha-accent); border-color: var(--aisha-accent); color: #1a1208; }
  .aisha-galnav:active:not(:disabled) { transform: translateY(-50%) scale(.92); }
  .aisha-galnav:disabled { opacity: .3; cursor: default; }
  .aisha-lbox .aisha-galnav { position: absolute; z-index: 6; width: 52px; height: 52px; font-size: 36px; }
  .aisha-lbox .aisha-galnav--l { left: 18px; } .aisha-lbox .aisha-galnav--r { right: 18px; }
}
.aisha-galstrip:focus-visible { outline: 2px solid var(--aisha-accent); outline-offset: 2px; }

/* zo222 notify: one button opens the phone field */
html.aisha .aisha-restock, html.aisha--glass .aisha-restock, html.aisha .aisha-restock .aisha-form, html.aisha--glass .aisha-restock .aisha-form {
  border: 0 !important; background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-radius: 0 !important;
}
html.aisha .aisha-restock, html.aisha--glass .aisha-restock { padding: 8px 0 !important; margin: 12px 0 !important; }
html.aisha .aisha-restock .aisha-form, html.aisha--glass .aisha-restock .aisha-form { padding: 0 !important; margin: 8px 0 !important; }
html.aisha .aisha-restock input, html.aisha--glass .aisha-restock input {
  border: 0 !important; border-bottom: 1px solid var(--aisha-hairline) !important; border-radius: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background: color-mix(in srgb, var(--aisha-ink) 4%, transparent) !important; min-height: 46px; padding: 10px 12px; font-size: 16px;
}
html.aisha .aisha-restock input:focus { border-bottom-color: var(--aisha-accent) !important; outline: none; box-shadow: none !important; }
.aisha-restock .aisha-notifyopen { width: 100%; min-height: 50px; }
.aisha-restock .aisha-restockform[hidden] { display: none !important; }

/* zo224: smaller customer-reviews section (spacing and type only) */
html .aisha-reviews-wrap { margin-top: 12px; }
html .aisha-reviews { padding-top: 8px; }
html .aisha-reviews h3 { font-size: 16px; margin: 0 0 4px; }
html .aisha-reviews .aisha-note { font-size: 12.5px; margin: 2px 0 6px; }
html .aisha-reviews .aisha-revavg { margin-bottom: 4px; font-size: 13px; gap: 8px; }
html .aisha-reviews .aisha-stars { font-size: 13px; letter-spacing: 1px; }
html .aisha-reviews .aisha-revrow { padding: 6px 0; gap: 8px; }
html .aisha-reviews .aisha-revbody strong { font-size: 13px; }
html .aisha-reviews .aisha-revbody p { margin: 2px 0 0; font-size: 13px; line-height: 1.55; }
html .aisha-reviews .aisha-revdate { font-size: 11px; }
html .aisha-reviews .aisha-revform { margin-top: 6px; gap: 8px; }
html .aisha-reviews .aisha-revform h4 { font-size: 15px; }
html .aisha-reviews .aisha-revstars { margin: 2px 0 4px; }
html .aisha-reviews .aisha-revstars button { font-size: 21px; padding: 1px; }
html .aisha-reviews .aisha-revform label { font-size: 12.5px; gap: 3px; }
html .aisha-reviews .aisha-revform input[type=text], html .aisha-reviews .aisha-revform textarea { padding: 7px 10px !important; min-height: 0; font-size: 14px; }
html .aisha-reviews .aisha-revform textarea { height: 58px; }
html .aisha-reviews .aisha-revform .aisha-btn { min-height: 42px; }
html .aisha-reviews .aisha-revform h4 { text-align: center; }
html .aisha-reviews .aisha-revstars { justify-content: center; flex-wrap: nowrap; }
.aisha-revfields[hidden] { display: none !important; }
.aisha-revfields { display: flex; flex-direction: column; gap: 8px; }
html .aisha-reviews .aisha-revstars button:not(.is-on) { color: color-mix(in srgb, var(--aisha-accent) 50%, transparent); }

/* zo226: tidy delete button inside the review row (owner only) */
html .aisha-reviews .aisha-revrow { align-items: center; }
html .aisha-reviews .aisha-revrow .aisha-revdel {
  flex: 0 0 auto; align-self: center; width: auto; height: auto; min-width: 0; min-height: 30px; box-sizing: border-box;
  margin: 0 0 0 0; margin-inline-start: 8px; margin-inline-end: 6px; padding: 0 12px; font: inherit; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
  border-radius: 999px; border: 1px solid rgba(179,38,30,.45); color: #b3261e; background: transparent; box-shadow: none; cursor: pointer;
}
html .aisha-reviews .aisha-revrow .aisha-revdel:hover { background: #b3261e; color: #fff; }

/* zo228: single product share button, centered, no glass strip behind it */
html .aisha-cartrow.aisha-shareprodrow {
  background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  padding: 0 !important; border-radius: 0 !important; justify-content: center; align-items: center; overflow: visible;
}
html .aisha-cartrow.aisha-shareprodrow::before, html .aisha-cartrow.aisha-shareprodrow::after { content: none !important; }
html .aisha-shareprodrow .aisha-shareprod { flex: 0 0 auto; width: auto; max-width: 100%; }
html .aisha-shareprodrow { gap: 10px; }
html .aisha-shareprodrow .aisha-shareicon { flex: 0 0 56px; width: 56px; min-width: 56px; padding: 0; display: inline-flex; align-items: center; justify-content: center; position: relative; }
html .aisha-shareprodrow .aisha-shareicon svg { display: block; width: 22px; height: 22px; }
.aisha-shareicon.is-copied::after { content: "تم نسخ الرابط"; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--aisha-ink, #222); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 10px; white-space: nowrap; z-index: 5; }
html .aisha-shareprodrow .aisha-shareicon { height: 44px; min-height: 44px; box-sizing: border-box; }
html .aisha-shareactions { gap: 10px; }
html .aisha-shareactions .aisha-shareicon { flex: 0 0 56px; width: 56px; min-width: 56px; height: 44px; min-height: 44px; box-sizing: border-box; padding: 0; display: inline-flex; align-items: center; justify-content: center; position: relative; }
html .aisha-shareactions .aisha-shareicon svg { display: block; width: 22px; height: 22px; }

/* size request sheet (design) */
.aisha-szov { align-items: flex-end; padding: 0; }
.aisha-szbox { max-width: 440px; border-radius: 22px 22px 0 0; text-align: start; align-items: stretch; max-height: 92vh; overflow-y: auto; padding: 20px 18px 18px; gap: 10px; }
.aisha-szbox .aisha-vargroup { margin-bottom: 0; }
.aisha-szbox .aisha-varlabel { margin-bottom: 6px; }
.aisha-szbox h3 { text-align: center; }
.aisha-szname { margin: 0; text-align: center; font-size: 13px; opacity: .75; }
.aisha-szbox .aisha-chip { min-width: 52px; padding: 9px 14px; text-align: center; }
@media (min-width: 768px) {
  .aisha-szov { align-items: center; justify-content: center; padding: 24px; }
  .aisha-szbox { width: 400px; max-width: 400px; box-sizing: border-box; border-radius: 22px; max-height: 86vh; padding: 22px 20px 20px; }
}
.aisha-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.aisha-swatch { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; color: inherit; min-width: 58px; }
.aisha-swdot { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--aisha-hairline); box-sizing: border-box; box-shadow: 0 0 0 3px transparent; transition: box-shadow .18s; }
.aisha-swatch.is-on .aisha-swdot { box-shadow: 0 0 0 2px var(--aisha-card), 0 0 0 4px var(--aisha-accent); }
.aisha-swname { font-size: 12px; opacity: .8; }
.aisha-swatch.is-on .aisha-swname { opacity: 1; font-weight: 700; color: var(--aisha-accent); }
.aisha-szphone { display: flex; flex-direction: column; gap: 6px; font-size: 13px; margin-top: 0; }
.aisha-szphone input { height: 44px; border-radius: 999px; border: 1px solid var(--aisha-hairline); background: var(--aisha-card); color: var(--aisha-ink); padding: 0 16px; font-size: 15px; box-sizing: border-box; width: 100%; }
.aisha-szconfirm { width: 100%; margin-top: 0; }
.aisha-szconfirm:disabled { opacity: .45; cursor: not-allowed; }
.aisha-szerr { margin: 0; color: #b3261e; font-size: 13px; text-align: center; }
.aisha-sizereq .aisha-restockwho { display: flex; flex-direction: column; gap: 6px; }
.aisha-sizechips { display: flex; flex-wrap: wrap; gap: 6px; }
.aisha-sizepill { border: 1px solid var(--aisha-hairline); border-radius: 999px; padding: 3px 12px; font-size: 12px; background: var(--aisha-card); }
.aisha-sizemeta { font-size: 12px; opacity: .7; }

/* size row: guide + ask side by side, smaller pills */
html .aisha-variants.aisha-sizerow { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 10px; margin: 16px 0 4px; }
html .aisha-btn.aisha-szsmall { width: auto; min-width: 0; height: 38px; min-height: 38px; padding: 0 16px; font-size: 13px; line-height: 1; white-space: nowrap; flex: 0 1 auto; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; margin: 0; }
html .aisha-sizerow .aisha-btn.aisha-szsmall { flex: 1 1 0; max-width: 170px; }
html .aisha-variants.aisha-sizerow { margin: 10px 0 0; }
html .aisha-sizerow + .aisha-restock { margin-top: 0 !important; }

/* buy row: «اطلبيها عبر واتساب» + «اطلبيها من الموقع» side by side, equal size */
html .aisha-buyrow { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; margin: 0; }
html .aisha-buyrow > .aisha-btn { flex: 1 1 0; min-width: 0; width: auto; height: 44px; min-height: 44px; padding: 0 10px; font-size: 14px; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; margin: 0; border-radius: 999px; }
@media (min-width: 768px) { html .aisha-buyrow > .aisha-btn { font-size: 15px; padding: 0 16px; } }
.aisha-orderbox.is-flash { animation: aisha-orderflash 1.4s ease; }
@keyframes aisha-orderflash { 0%, 100% { box-shadow: none; } 25% { box-shadow: 0 0 0 3px var(--aisha-accent) inset; } }
html .aisha-orderbox { scroll-margin-top: 76px; }

/* storefront card: cart + order as two round icon buttons */
html .aisha-cardactions .aisha-cardicons { display: flex; gap: 10px; justify-content: center; align-items: center; width: 100%; }
html .aisha-cardicons .aisha-iconbtn { flex: 0 0 auto; width: 48px; height: 48px; min-width: 48px; min-height: 48px; padding: 0; border-radius: 999px; border: 1px solid var(--aisha-accent); background: transparent; color: var(--aisha-accent); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; text-decoration: none; cursor: pointer; transition: background-color .25s ease, color .25s ease, opacity .25s ease, transform .25s ease; }
html .aisha-cardicons .aisha-iconbtn.aisha-wabtn { background: var(--aisha-accent); color: var(--aisha-bg); }
html .aisha-cardicons .aisha-iconbtn:hover { transform: translateY(-2px); }
html .aisha-cardicons .aisha-iconbtn.aisha-wabtn:hover { box-shadow: 0 8px 20px -8px var(--aisha-accent); }
html .aisha-cardicons .aisha-iconbtn:focus-visible { outline: 2px solid var(--aisha-ink); outline-offset: 2px; }
html .aisha-cardicons .aisha-iconbtn.is-off { opacity: .45; cursor: default; transform: none; }
html .aisha-cardwrap { gap: 10px; }
html .aisha-cardcta:empty { display: none; }
html .aisha-cardnotifyin { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--aisha-accent); color: var(--aisha-bg); font-size: 11.5px; font-weight: 700; margin-top: 2px; }
/* icon pair: optically equal circles (a solid disc reads larger than a ring), even weights */
html .aisha-cardicons .aisha-iconbtn { width: 48px; height: 48px; min-width: 48px; min-height: 48px; }
html .aisha-cardicons .aisha-iconbtn.aisha-wabtn:not(.is-off) { width: 46px; height: 46px; min-width: 46px; min-height: 46px; margin: 1px; }
html .aisha-cardicons .aisha-iconbtn.aisha-addbtn:not(.is-off) { background: color-mix(in srgb, var(--aisha-accent) 14%, transparent); border-color: color-mix(in srgb, var(--aisha-accent) 40%, transparent); }

/* zo248: Reem Kufi as the headings face (variable, one file), body stays Tajawal */
@font-face { font-family: 'Reem Kufi'; src: url('./fonts/ReemKufi-var.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }
/* keep the wordmark on the original calligraphic face */
.aisha-brandname { font-family: 'Aref Ruqaa', 'Tajawal', Tahoma, serif; }
/* product names and body copy stay Tajawal (kufi runs words together at small sizes) */
.aisha-cardname, .aisha-productname, .aisha-cardprice, .aisha-chip, .aisha-btn, .aisha-more { font-family: 'Tajawal', Tahoma, sans-serif; }
/* kufi needs a little more leading than the calligraphic face; section titles must not clip */
.aisha-hero-title { line-height: 1.5; letter-spacing: .2px; padding-bottom: 2px; }
.aisha-sectionhead h2 { line-height: 1.5; letter-spacing: .2px; padding-bottom: 2px; }
.aisha-productname { line-height: 1.35; }

/* zo249: the cart's total block and button row read as the same card column as the item rows */
html .aisha-cartpage .aisha-carttotal, html .aisha-cartpage .aisha-cartrow {
  background: var(--aisha-card); border: 1px solid var(--aisha-hairline); border-radius: 22px;
  padding: 14px 16px; box-sizing: border-box;
}
html .aisha-cartpage .aisha-carttotal { margin: 12px 0 0; font-size: 18px; color: var(--aisha-ink); }
html .aisha-cartpage .aisha-cartrow { margin-top: 10px; }
html.aisha--glass .aisha-cartpage .aisha-carttotal, html.aisha--glass .aisha-cartpage .aisha-cartrow { border-color: var(--g-edge); }
/* saved customer details: one quiet clear link inside the order sheet */
html .aisha-custclear { margin: 0 0 12px; font-size: 12.5px; line-height: 1.7; opacity: .9; }
html .aisha-custclearbtn { background: none; border: 0; padding: 0; color: var(--aisha-accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* zo249: at desktop the nav docks back into the header — a fixed bottom bar always covered the section rows */
@media (min-width: 1024px) {
  html.aisha--glass .aisha-nav {
    position: static; left: auto; bottom: auto; transform: none; width: auto; max-width: none;
    padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px;
  }
  html.aisha--glass .aisha-nav a, html.aisha--glass .aisha-nav a:hover,
  html.aisha--glass .aisha-nav a[aria-current="page"], html.aisha--glass .aisha-nav a[aria-current="page"]:hover {
    flex: 0 0 auto; min-width: 0; padding: 8px 14px; border-radius: 999px; font-size: 12.5px;
  }
  html.aisha--glass .aisha-nav a .aisha-navin { flex-direction: row; gap: 7px; align-items: center; }
  html.aisha--glass .aisha-nav a[aria-current="page"] .aisha-navin { transform: none; }
  html.aisha--glass .aisha-nav a:active .aisha-navin { transform: none; }
  html.aisha--glass body { padding-bottom: 0; }
}
/* zo249: the remaining count is a quiet line under the product name, and never struck through */
html .aisha-stockline { font-family: 'Tajawal', Tahoma, sans-serif; font-size: 13px; line-height: 1.7; margin: 3px 0 0; }
html .aisha-stockline.aisha-stock--out { text-decoration: none; }
html .aisha-stockrow .aisha-stock { font-size: 12.5px; line-height: 1.6; }
/* zo251: the remaining count is visible to customers now (the old rule hid every stock level except sold out) */
html .aisha-stockline.aisha-stock--in, html .aisha-stockline.aisha-stock--low, html .aisha-stockline.aisha-stock--unknown { display: block; }

/* zo263: no browser-blue on touch. Every tap gets a press state in the site's own
   colours, and keyboard focus keeps a brand-coloured ring instead of the default.
   (Selector note: the theme class lives on <html>, so :is(html.aisha, .aisha) covers both cases.) */
html, body, html *, html *::before, html *::after { -webkit-tap-highlight-color: transparent; }
html { accent-color: var(--aisha-accent); }
:is(html.aisha, .aisha) :is(input[type="checkbox"], input[type="radio"], input[type="range"]) { accent-color: var(--aisha-accent); }
:is(html.aisha, .aisha) :is(a, button, [role="button"], input, select, textarea, summary):focus:not(:focus-visible) { outline: none; }
:is(html.aisha, .aisha) :is(a, button, [role="button"], input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--aisha-accent);
  outline-offset: 2px;
}
:is(html.aisha, .aisha) :is(button:active:not(:disabled), a:active, [role="button"]:active, summary:active,
  .aisha-mini:active, .aisha-drawitem:active, .aisha-themebtn:active, .aisha-langbtn:active,
  .aisha-glassbtn:active, .aisha-menubtn:active, .aisha-iconbtn:active, .aisha-favbtn:active,
  .aisha-nav a:active, .aisha-jabtn:active, .aisha-perm:active) {
  filter: brightness(.9) saturate(1.04);
  transition-duration: .06s;
}
:is(html.aisha, .aisha) :is(.aisha-iconbtn:active:not(:disabled), .aisha-favbtn:active, .aisha-wabtn:active) { color: var(--aisha-accent); }
:is(html.aisha, .aisha) .aisha-form :is(input, select, textarea):active { filter: none; }

/* zo269: a field saving with Enter shows the same busy state as its button */
.aisha-busyfield{opacity:.55;transition:opacity .15s ease}

/* zo277: phones - home rows wrap into two columns so no product card is cut off,
   and the theme chips wrap inside their card instead of running past its edge. */
@media (max-width: 640px) {
    html .aisha-hrow {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
        overflow: visible; scroll-snap-type: none; padding: 2px 0;
    }
    html .aisha-hrow > * { width: auto; }
}
.aisha-settingscard .aisha-themes { flex-wrap: wrap; }

/* zo277: first-paint skeleton, so a cold catalogue read shows the shop filling in, not an error. */
.aisha-skel .aisha-cardimg { background: linear-gradient(100deg, var(--aisha-soft) 30%, rgba(255,255,255,.5) 50%, var(--aisha-soft) 70%); background-size: 220% 100%; animation: aishaShimmer 1.3s linear infinite; }
.aisha-skelline { display: block; height: 12px; border-radius: 6px; margin: 6px 0; background: var(--aisha-soft); }
.aisha-skelline--short { width: 55%; }
@keyframes aishaShimmer { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@media (prefers-reduced-motion: reduce) { .aisha-skel .aisha-cardimg { animation: none; } }

/* zo286: the share card's copy button is an icon like the share and Instagram icons beside it,
   so the row stays one shape. Feedback is the icon itself: a check for success, a shake and a red
   border for failure. No text ever replaces it. */
html .aisha-shareactions .aisha-shareicon .aisha-checkico { display: none; }
html .aisha-shareactions .aisha-shareicon.is-done .aisha-copyico { display: none; }
html .aisha-shareactions .aisha-shareicon.is-done .aisha-checkico { display: block; }
html .aisha-shareactions .aisha-shareicon.is-done { animation: aishaPulse .55s ease; }
html .aisha-shareactions .aisha-shareicon.is-failed { border-color: #c0392b !important; animation: aishaCopyShake .3s ease 2; }
@keyframes aishaCopyShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) {
  html .aisha-shareactions .aisha-shareicon.is-done,
  html .aisha-shareactions .aisha-shareicon.is-failed { animation: none; }
}

/* zo288: the add-to-cart control is a bag icon in its own centred row on the product page,
   sized and shaped like the share icon beside it. No words, and the answer to a tap is a pulse. */
html .aisha-cartrow.aisha-addrow {
  background: none !important; border: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  padding: 0 !important; border-radius: 0 !important; justify-content: center; align-items: center; overflow: visible;
}
html .aisha-cartrow.aisha-addrow::before, html .aisha-cartrow.aisha-addrow::after { content: none !important; }
html .aisha-addrow .aisha-shareicon { flex: 0 0 56px; width: 56px; min-width: 56px; height: 44px; min-height: 44px; box-sizing: border-box; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
html .aisha-addrow .aisha-shareicon svg { display: block; width: 22px; height: 22px; }
html .aisha-iconbtn.is-added, html .aisha-addrow .aisha-addbtn.is-added { animation: aishaPulse .55s ease; }
@media (prefers-reduced-motion: reduce) {
  html .aisha-iconbtn.is-added, html .aisha-addrow .aisha-addbtn.is-added { animation: none; }
}

/* zo291: while the drawer is in motion only - transform/opacity animation, will-change on for the
   duration, and the heavy glass filter off so no blurred layer is animated. Cleared by JS 320ms later. */
html .aisha-drawer.is-moving { will-change: transform; }
html.aisha--glass .aisha-drawer.is-moving { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--aisha-card); }
@media (prefers-reduced-motion: reduce) {
  .aisha-drawer, html.aisha--glass .aisha-drawer { transition-duration: .01s; }
  .aisha-scrim, html.aisha--glass .aisha-scrim { transition-duration: .01s; }
}

/* zo301: change log rows wrap cleanly on a phone */
.aisha-changerow { flex-wrap: wrap; gap: 2px 12px; }
.aisha-changerow .aisha-logdate { white-space: nowrap; }

/* zo302: manual stock quantity */
.aisha-stockrow--stock .aisha-stockedit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; padding: 12px; border: 1px dashed var(--line, #d9c9a3); border-radius: 14px; }
.aisha-stockedit label { display: grid; gap: 4px; font-size: 13px; }
.aisha-stockedit input { width: 130px; }
.aisha-stockedit[hidden] { display: none; }
.aisha-editqty-sum { flex: 1 1 160px; font-size: 13px; }
.aisha-editqty-btns { display: flex; gap: 8px; }

/* zo303: one size and one vertical centre for every field. The caret takes its height from the line box,
   so a tall "normal" line-height on the Arabic font made it huge and pushed it off-centre. */
html :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="hidden"], [type="color"]), select):not(.aisha-revform *) {
  box-sizing: border-box;
  height: 44px;
  padding-block: 0;
  padding-inline: 12px;
  line-height: 1.2;
  font-family: inherit;
}
html .aisha-passinput:not(#x) { height: 38px; }

/* zo309: icon buttons centre their icon on both axes; the quantity box sits on the card's own edge, text aligned to the start side */
.aisha-mini { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.aisha-stockrow--stock .aisha-stockctl { align-items: center; }
.aisha-stockrow--stock .aisha-stockedit { padding: 12px 0 0; border: 0; border-top: 1px dashed var(--aisha-hairline); border-radius: 0; }
html :is(input[type="number"], input[type="text"]):not(.aisha-revform *) { text-align: start; }

/* zo313: user-row buttons share the password field's 38px centre line (same 4px margin-top
   artefact as the stock row). row-gap keeps the wrapped rows the same distance apart as before. */
.aisha-userrow .aisha-adminactions { row-gap: 16px; }
.aisha-userrow .aisha-adminactions .aisha-mini--wide { height: 38px; margin-top: 0; }

/* ===== zo315: one shape and one size scale for the glass UI =====
   1. Every card-level glass panel gets the same 22px radius, and the panels that had no
      padding get one, so no glass panel shows a square corner and no text sits on its edge.
   2. A row inside a glass panel (the stock movement row) is a row, not a panel: no own glass.
   3. Stock and user rows get a horizontal inset, so their buttons and thumbnail stop sitting
      on the card's rounded border.
   4. Button scale: small actions 38px, .aisha-btn 44px, chips 30px.
   5. «الحركة» gets more air around the word. */
.aisha-card, .aisha-form, .aisha-sharebox, .aisha-settingscard,
.aisha-stockrow, .aisha-adminrow, .aisha-log, .aisha-cartrow, .aisha-carttotal { border-radius: 22px; }
.aisha-log { padding: 14px 16px; }
.aisha-logrow { border-radius: 14px; padding: 8px 12px; }
.aisha-adminrow { padding: 12px 14px; }
.aisha-cartrow { padding: 10px 12px; }
.aisha-carttotal { padding: 10px 14px; }
.aisha-stockrow--stock, .aisha-userrow { padding-inline: 14px; }
html.aisha--glass .aisha-logrow { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--aisha-hairline); }
.aisha-mini--wide, .aisha-shiprow .aisha-mini, .aisha-coderow2 .aisha-mini { height: 38px; }
.aisha-chip { height: 30px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.aisha-stockrow--stock .aisha-stockctl .aisha-mini--wide { flex: 0 0 auto; width: auto; min-width: 96px; padding: 0 18px; }

/* zo316: the drawer item had 14px off and 18px on glass; one radius now. The size-guide
   chip keeps its own min-width and gets the 30px chip height without vertical padding
   that would clip the label. */
.aisha-drawitem { border-radius: 18px; }
.aisha-szbox .aisha-chip { height: 30px; min-height: 30px; padding: 0 14px; min-width: 52px; }

/* zo320: longest tab label (لوحة التحكم / Dashboard) stays inside its tile on small phones.
   The active tab pops at 1.16 which pushed the label past the tile edge. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (max-width: 430px) {
    html.aisha--glass .aisha-nav a[aria-current="page"] .aisha-navin,
    html.aisha--glass .aisha-nav a.hold-old .aisha-navin { transform: scale(1.02); }
    html.aisha--glass .aisha-nav a[aria-current="page"] .aisha-navlbl { font-weight: 500; }
  }
  @media (max-width: 380px) {
    html.aisha--glass .aisha-nav a,
    html.aisha--glass .aisha-nav a[aria-current="page"] { font-size: 8px; }
    html.aisha--glass .aisha-nav a[aria-current="page"] .aisha-navin,
    html.aisha--glass .aisha-nav a.hold-old .aisha-navin { transform: scale(1.05); }
  }
}

/* zo325: product CTA pair on 360 — the English labels need more air than the
   Arabic ones, so the pair steps down a size on the narrowest phones. */
@media (max-width: 380px) {
  html .aisha-buyrow > .aisha-btn { font-size: 13px; padding: 0 14px; }
}

/* zo331 (finance phase 1) */
.aisha-fintiles--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.aisha-fin-filter{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.aisha-fin-filter label{display:flex;flex-direction:column;gap:4px;font-size:12px;opacity:.8;min-width:140px}
.aisha-fin-form{margin:10px 0 14px;gap:10px}
.aisha-fin-form h4{flex:0 0 100%;margin:0 0 2px;font-size:13px;opacity:.85}
.aisha-fin-actions{display:flex;gap:8px;flex-wrap:wrap;flex:0 0 100%}
.aisha-finrow2{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.aisha-finrow2 .aisha-findate{order:1;font-size:12px;opacity:.72;white-space:nowrap}
.aisha-finrow2 .aisha-finamt{order:2;margin-inline-start:auto;white-space:nowrap}
.aisha-finrow2 .aisha-finlabel{order:3;flex:1 1 100%;min-width:0}
.aisha-finrow2 .aisha-finacts{order:4;flex:1 1 100%;display:flex;gap:6px;justify-content:flex-end}
.aisha-finrow2 .aisha-finacts .aisha-mini{flex:0 0 auto;width:auto;white-space:nowrap;padding:6px 12px;font-size:12.5px}
.aisha-finrow2 .aisha-finlabel{min-width:0;overflow-wrap:anywhere}
.aisha-finrow2 .aisha-finacts{display:flex;gap:6px}
.aisha-finbal{font-size:17px;font-weight:700;white-space:nowrap}
.aisha-fin-totals{margin:12px 0 10px}
.aisha-fin-totals h4{margin:0 0 6px;font-size:13px;opacity:.85}
.aisha-fin-acct .aisha-stockrow-main{gap:10px}
@media (max-width:640px){.aisha-fintiles--2{grid-template-columns:repeat(2,minmax(0,1fr))}.aisha-fintile strong{font-size:17px}}

/* finance accordion (zo338, native <details> since zo347) */
.aisha-acc { padding: 6px 18px 12px; }
.aisha-acc > summary.aisha-acc-head { display: block; width: 100%; padding: 10px 0; margin: 0; cursor: pointer; font: inherit; color: inherit; text-align: start; list-style: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.aisha-acc > summary.aisha-acc-head::-webkit-details-marker { display: none; }
.aisha-acc > summary.aisha-acc-head::marker { content: ""; }
.aisha-acc-headrow { display: flex; align-items: center; gap: 10px; width: 100%; }
.aisha-acc-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--aisha-hairline); color: var(--aisha-accent); pointer-events: none; }
.aisha-acc-title { font-size: 17px; font-weight: 600; font-family: 'Reem Kufi', 'Tajawal', Tahoma, serif; color: var(--aisha-accent); pointer-events: none; }
.aisha-acc-sum { margin-inline-start: auto; display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--aisha-ink); opacity: .9; white-space: nowrap; pointer-events: none; }
.aisha-acc-sum b { font-weight: 700; }
.aisha-acc-chev { flex: 0 0 auto; width: 9px; height: 9px; margin-inline-start: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .18s ease; opacity: .65; pointer-events: none; }
.aisha-acc[open] > summary .aisha-acc-chev { transform: rotate(225deg); }
/* content shows because of the native [open] attribute, never because of an animation */
.aisha-acc-body { display: none; }
.aisha-acc[open] > .aisha-acc-body { display: block; animation: aishaAccIn .18s ease; }
.aisha-acc-inner { overflow: visible; }
.aisha-acc-inner > *:first-child { margin-top: 0; }
@keyframes aishaAccIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .aisha-acc[open] > .aisha-acc-body { animation: none; } .aisha-acc-chev { transition: none; } }
@media (max-width: 480px) { .aisha-acc-headrow { flex-wrap: wrap; } .aisha-acc-title { font-size: 16px; } .aisha-acc-sum { order: 3; width: 100%; margin-inline-start: 0; padding-inline-start: 44px; justify-content: flex-start; font-size: 12px; gap: 10px; } }

/* zo340 admin: order lifecycle, customers, tasks */
.aisha-oprow { border: 1px solid var(--aisha-hairline); border-radius: 14px; padding: 12px 14px; margin: 10px 0; background: var(--aisha-card); }
.aisha-ophead { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.aisha-ophead b { font-size: 15px; font-weight: 600; }
.aisha-opstatus { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--aisha-hairline); white-space: nowrap; display: inline-block; }
.aisha-opstatus--new { color: #8a6d1f; border-color: #d9c48a; background: rgba(217, 196, 138, .16); }
.aisha-opstatus--mid { color: #2f6b8a; border-color: #a9c9da; background: rgba(169, 201, 218, .18); }
.aisha-opstatus--ok { color: #2e7d52; border-color: #a8d3ba; background: rgba(168, 211, 186, .2); }
.aisha-opstatus--bad { color: #a33; border-color: #e0b4b4; background: rgba(224, 180, 180, .18); }
.aisha-opmeta { font-size: 13px; opacity: .78; margin-top: 4px; }
.aisha-opacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.aisha-oplog { margin-top: 10px; border-top: 1px dashed var(--aisha-hairline); padding-top: 8px; }
.aisha-oplogline { font-size: 12px; opacity: .82; line-height: 1.7; }

/* zo341: printable monthly report (browser print-to-PDF) */
#aisha-print { display: none; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body.aisha-printing > *:not(#aisha-print) { display: none !important; }
  body.aisha-printing { background: #fff !important; }
  body.aisha-printing #aisha-print { display: block !important; color: #111; font-family: 'Tajawal', Tahoma, serif; }
  #aisha-print .p-head { border-bottom: 2px solid #b08b3e; padding-bottom: 8px; margin-bottom: 14px; }
  #aisha-print h1 { margin: 0; font-size: 20pt; color: #8a6d1f; }
  #aisha-print .p-sub { font-size: 11pt; color: #444; margin-top: 4px; }
  #aisha-print h2 { font-size: 13pt; margin: 14px 0 6px; color: #8a6d1f; page-break-after: avoid; }
  #aisha-print .p-table { width: 100%; border-collapse: collapse; page-break-inside: avoid; }
  #aisha-print .p-table td { padding: 7px 4px; border-bottom: 1px dotted #bbb; font-size: 11.5pt; }
  #aisha-print .p-table td.n { text-align: left; font-variant-numeric: tabular-nums; direction: ltr; }
  #aisha-print .p-foot { margin-top: 16px; font-size: 9.5pt; color: #666; }
}

/* zo351: staff/owner icon hub — grid of screens, same identity as the site */
.aisha-hubgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.aisha-hubcell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:96px;padding:14px 6px;border-radius:16px;border:1px solid var(--aisha-line,#e6dcc8);background:var(--aisha-card,#fff);color:inherit;text-decoration:none;text-align:center}
.aisha-hubcell:hover,.aisha-hubcell:focus-visible{border-color:var(--aisha-accent,#8a6d3b)}
.aisha-hubico{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:14px;background:rgba(138,109,59,.12);color:var(--aisha-accent,#8a6d3b)}
.aisha-hublbl{font-size:14px;line-height:1.2}
@media (max-width:560px){.aisha-hubgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:360px){.aisha-hubgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
