
@font-face { font-family: "Cairo"; src: url("../assets/Cairo.ttf"); font-weight: 200 1000; }
@font-face { font-family: "Inter"; src: url("../assets/Inter.ttf"); font-weight: 100 900; }
@font-face { font-family: "Naskh"; src: url("../assets/NotoNaskhArabic.ttf"); font-weight: 400 700;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
:root {
  --paper: #F0EEE6;       /* warm background */
  --card: #FAF9F5;        /* raised surface */
  --ink: #141413;
  --ink-soft: #3D3D3A;
  --muted: #6E6B64;
  --line: #E3E0D6;
  --clay: #D97757;        /* accent */
  --clay-deep: #B5573B;
  --leaf: #5C7F58;        /* good / cheaper */
  --sand: #CC9B7A;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { background: var(--paper); font-family: "Cairo", system-ui, sans-serif; color: var(--ink); padding-bottom: 24px; }
.sheet { max-width: 460px; margin: 0 auto; background: var(--paper); min-height: 100vh; }
.n { font-family: "Inter", sans-serif; direction: ltr; unicode-bidi: isolate; font-feature-settings: "tnum"; }
.serif { font-family: "Naskh", "Inter", serif; }
img { max-width: 100%; display: block; }

/* ---------- identity ---------- */
.band { padding: 15px 20px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.head { padding: 18px 20px 0; }
.band .store { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--muted); }
.band .store img { width: 28px; height: 28px; border-radius: 50%; }
.stock { font-size: 10.5px; font-weight: 700; border-radius: 30px; padding: 5px 11px; background: rgba(92,127,88,.14); color: var(--leaf); white-space: nowrap; }
.stock.out { background: rgba(181,87,59,.13); color: var(--clay-deep); }
.stock.checking { background: rgba(204,155,122,.2); color: #8A6440; }
.soldout.checking { background: rgba(204,155,122,.14); border-color: rgba(204,155,122,.4); }
.soldout.checking b { color: #8A6440; }
h1 { font-family: "Naskh", "Inter", sans-serif; font-size: 22px; font-weight: 700; line-height: 1.6; letter-spacing: -.2px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.meta span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.meta span + span::before { content: "·"; margin-inline-end: 6px; color: var(--line); }

/* ---------- photo + price ---------- */
.shot { margin: 0 14px; border-radius: 24px; padding: 14px 16px; background: #FFFFFF;
        box-shadow: 0 1px 2px rgba(20,20,19,.04), 0 10px 24px -14px rgba(20,20,19,.25); }
.shot img { margin: 0 auto; max-height: 215px; width: auto; }
.money { margin: 14px 20px 0; display: flex; align-items: flex-end; gap: 12px; }
.money .lbl { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .4px; }
.money .cash { font-family: "Inter"; font-weight: 800; font-size: 38px; letter-spacing: -1.4px; line-height: 1.05; }
.money .cur { font-size: 13px; font-weight: 700; color: var(--muted); }
.money .inst { margin-inline-start: auto; text-align: left; font-size: 10.5px; font-weight: 600; color: var(--muted); line-height: 1.7; }
.money .inst b { font-family: "Inter"; font-weight: 800; font-size: 15px; color: var(--ink); }
.price { margin: 20px 20px 0; }
.price .lbl { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .3px; }
.price .big { font-family: "Inter", sans-serif; font-weight: 800; font-size: 44px; letter-spacing: -2px;
              line-height: 1.12; margin-top: 1px; display: flex; align-items: baseline; gap: 7px;
              direction: ltr; unicode-bidi: isolate; justify-content: flex-end; }
.price .big small { font-family: "Cairo", sans-serif; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.price .save { display: inline-block; margin-top: 10px; font-size: 11.5px; font-weight: 800; color: var(--leaf);
               background: rgba(92,127,88,.12); border-radius: 30px; padding: 6px 12px; }
.price .inst { margin-top: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.price .inst b { font-weight: 800; color: var(--ink); }
.pay { margin: 16px 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay .opt { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; }
.pay .opt.cash { background: rgba(217,119,87,.1); border-color: rgba(217,119,87,.3); }
.pay .k { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.pay .v { font-family: "Inter"; font-weight: 800; font-size: 25px; letter-spacing: -1px; margin-top: 5px; line-height: 1.1; }
.pay .v small { font-family: "Cairo"; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.pay .tip { font-size: 10px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.pay .cash .tip { color: var(--leaf); }
.pay .opt:only-child { grid-column: 1 / -1; }
.paynote { margin: 10px 20px 0; background: rgba(92,127,88,.1); border: 1px solid rgba(92,127,88,.25); border-radius: 12px; padding: 11px 13px; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.7; }
.paynote b { font-weight: 800; color: var(--ink); }
.fresh { margin: 10px 20px 0; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--muted); }
.fresh .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); flex-shrink: 0; }
.soldout { margin: 16px 20px 0; padding: 15px 16px; border-radius: 14px; background: rgba(217,119,87,.1); border: 1px solid rgba(217,119,87,.28); }
.soldout b { display: block; font-family: "Naskh", "Inter", sans-serif; font-size: 16px; color: var(--clay-deep); margin-bottom: 5px; }
.soldout span { font-size: 12px; font-weight: 600; color: var(--ink-soft); line-height: 1.7; }


/* ---------- why this product ---------- */
.points { margin: 24px 20px 0; }
.points .pt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; }
.points .pt + .pt { border-top: 1px solid var(--line); }
.points .pt i { width: 5px; height: 5px; border-radius: 50%; background: var(--clay);
                margin-top: 9px; flex-shrink: 0; }
.points .pt p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--ink-soft); }
.points .pt b { color: var(--ink); font-weight: 800; }

/* ---------- this price, beside the nearest ones ---------- */
.compare { margin: 26px 20px 0; }
.cmp-list { display: grid; gap: 7px; }
.cmp-row { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 13px;
           background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit;
           min-width: 0; }
.cmp-row.me { background: var(--ink); border-color: var(--ink); color: #F3F1EC; }
.cmp-name { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 700; line-height: 1.5;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-price { font-family: "Inter", sans-serif; font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.cmp-diff { font-size: 10px; font-weight: 800; white-space: nowrap; border-radius: 20px; padding: 5px 8px; }
.cmp-diff.up { color: var(--clay-deep); background: rgba(181,87,59,.12); }
.cmp-diff.down { color: var(--leaf); background: rgba(92,127,88,.14); }
.cmp-diff.here { color: rgba(243,241,236,.6); background: rgba(255,255,255,.1); }
.cmp-note { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-top: 10px; }

/* ---------- the one line that answers "is it right for me" ---------- */
.fit { margin: 16px 20px 0; display: flex; gap: 9px; align-items: flex-start;
       border-inline-start: 3px solid rgba(92,127,88,.45); padding: 2px 13px 2px 0;
       font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
.fit .tick { color: var(--leaf); font-weight: 800; flex-shrink: 0; }
.fit p { margin: 0; flex: 1; }
.fit b { color: var(--ink); font-weight: 800; }

/* ---------- كايرو, the assistant ---------- */
.kairo { margin: 0; background: #1B1B19; color: #F3F1EC; border-radius: 20px; padding: 16px 15px 15px; }
.kairo-top { display: flex; align-items: center; gap: 11px; }
.kairo-who { min-width: 0; }
.kairo-top .lang { margin-inline-start: auto; }
.kairo-face { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; color: #fff;
              background: linear-gradient(150deg, var(--clay), #E0906F); display: grid; place-items: center; }
.kairo-face svg { width: 19px; height: 19px; }
.kairo-top b { font-family: "Naskh", "Inter", sans-serif; font-size: 15px; font-weight: 700; display: block; }
.kairo-top span { font-size: 11px; opacity: .62; }
.kairo-asks { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.kairo-asks .ask { font: inherit; font-size: 12px; font-weight: 700; color: #FFF6F1; cursor: pointer;
                   background: rgba(217,119,87,.18); border: 1px solid rgba(217,119,87,.45);
                   border-radius: 30px; padding: 8px 14px; }
.kairo-bar { display: flex; align-items: center; gap: 6px; margin-top: 12px; background: #fff;
             border-radius: 30px; padding: 6px 6px 6px 10px; }
.kairo-bar input { flex: 1; border: 0; background: none; font: inherit; font-family: "Cairo", sans-serif;
                   font-size: 13.5px; color: var(--ink); outline: none; min-width: 0; padding: 6px 0; }
.kairo-bar button[type="submit"] { border: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--clay);
                    display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.kairo-bar button svg { width: 16px; height: 16px; }
.kairo-bar .mic { border: 0; background: none; color: var(--muted); width: 32px; height: 32px;
                  display: grid; place-items: center; cursor: pointer; flex-shrink: 0; border-radius: 50%; }
.kairo-bar .mic svg { width: 19px; height: 19px; }
.kairo-bar .mic.on { color: #fff; background: var(--clay); animation: hear 1.1s ease-in-out infinite; }
@keyframes hear { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,119,87,.5); } 50% { box-shadow: 0 0 0 7px rgba(217,119,87,0); } }
.kairo .lang { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
               color: #F3F1EC; cursor: pointer; font: inherit; font-size: 11px; font-weight: 800;
               border-radius: 20px; padding: 6px 11px; flex-shrink: 0; }
.kairo-thread { margin-top: 13px; display: flex; flex-direction: column; gap: 9px;
                max-height: 340px; overflow-y: auto; }
.kairo-hint { margin-top: 11px; background: rgba(217,119,87,.16); border: 1px solid rgba(217,119,87,.4);
              border-radius: 12px; padding: 10px 12px; font-size: 11.5px; line-height: 1.7; color: #F3F1EC; }
.kairo-hint b { font-weight: 800; }
.turn { display: flex; }
.turn.me { justify-content: flex-start; }
.turn.them { justify-content: flex-end; }
.turn .b { max-width: 88%; border-radius: 14px; padding: 10px 13px; font-size: 13px; line-height: 1.75;
           white-space: pre-wrap; }
.turn.me .b { background: rgba(255,255,255,.1); border-start-start-radius: 4px; }
.turn.them .b { background: #fff; color: var(--ink); border-start-end-radius: 4px; }
.turn .b.dots { color: var(--muted); letter-spacing: 3px; animation: breathe 1.1s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.turn .handover { background: var(--clay); color: #fff; font-size: 12.5px; font-weight: 800;
                  border-radius: 12px; padding: 10px 16px; }

/* ---------- everything else, one tap away ---------- */
.more { display: grid; gap: 9px; }
.more details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.more summary { list-style: none; cursor: pointer; padding: 13px 16px; gap: 12px;
                display: flex; align-items: center; justify-content: space-between; }
.more summary div b { display: block; font-family: "Naskh", "Inter", sans-serif; font-size: 14.5px; font-weight: 700; }
.more summary div span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.more summary::-webkit-details-marker { display: none; }
.more .chev { width: 9px; height: 9px; flex-shrink: 0; border-right: 2px solid var(--muted);
              border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px,-2px);
              transition: transform .15s ease; }
.more details[open] .chev { transform: rotate(-135deg) translate(-2px,-2px); }
.more .inner { padding: 0 16px 16px; }
.more .cmp { border: 0; }

/* ---------- sections ---------- */
section { margin: 22px 20px 0; }
h2 { font-family: "Naskh", "Inter", sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.lede { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.7; margin-bottom: 13px; }

/* stat tiles */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px; }
.stat .k { font-size: 12px; font-weight: 700; color: var(--muted); }
.stat .v.small { font-family: "Cairo"; font-size: 15px; letter-spacing: 0; }
.stat .v { font-family: "Inter"; font-size: 21px; font-weight: 800; margin-top: 6px; line-height: 1.1; letter-spacing: -.5px; }
.stat .v small { font-family: "Cairo"; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.stat .note { font-size: 11.5px; font-weight: 700; margin-top: 6px; line-height: 1.5; }
.up { color: var(--clay-deep); } .down { color: var(--leaf); } .flat { color: var(--muted); }

/* price meter */
.meter { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.meter .cap { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 11px; }
.meter .track { position: relative; height: 7px; border-radius: 6px; margin-top: 26px; background: linear-gradient(to left, rgba(92,127,88,.45), rgba(217,119,87,.5)); }
.meter .pin { position: absolute; top: -27px; transform: translateX(50%); background: var(--clay); color: #fff; font-size: 10px; font-weight: 800; border-radius: 7px; padding: 3px 7px; white-space: nowrap; }
.meter .pin::after { content: ""; position: absolute; bottom: -9px; inset-inline-start: calc(50% - 5px); width: 10px; height: 10px; background: var(--clay); transform: rotate(45deg); border-radius: 2px; box-shadow: 0 1px 2px rgba(20,20,19,.18); }
.meter .ends { display: flex; justify-content: space-between; margin-top: 9px; font-size: 11.5px; font-weight: 700; color: var(--muted); }

/* guidance + explainer */
.advice { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.advice p { font-size: 12.5px; line-height: 1.85; color: var(--ink-soft); }
.advice p + p { margin-top: 9px; }
.advice b { color: var(--ink); }
.scale { display: flex; gap: 6px; margin-top: 12px; }
.scale div { flex: 1; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); background: rgba(20,20,19,.045); border-radius: 8px; padding: 7px 3px; line-height: 1.5; }
.scale div.on { background: var(--clay); color: #fff; }
.scale div.on span { color: rgba(255,255,255,.85); }
.scale span { display: block; font-family: "Inter"; font-weight: 800; font-size: 11px; color: var(--ink); }

/* faq */
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 15px; }
.faq .q { padding: 12px 0; border-bottom: 1px solid var(--line); }
.faq .q:last-child { border: 0; }
.faq .q b { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.faq .q span { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.65; }

/* comparison */
.cmp { width: 100%; border-collapse: collapse; font-size: 11.5px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cmp th, .cmp td { padding: 10px 5px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp thead th { font-weight: 700; font-size: 10.5px; line-height: 1.4; vertical-align: bottom; }
.cmp thead th a { color: inherit; text-decoration: none; display: block; padding: 6px 2px; margin: -6px -2px; }
.cmp thead th .go { display: block; font-size: 11px; font-weight: 700; color: var(--clay-deep); margin-top: 4px; }
.cmp thead th small { display: block; font-weight: 600; color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.cmp tbody th { text-align: right; font-weight: 600; color: var(--muted); font-size: 10.5px; white-space: nowrap; padding-inline-start: 12px; }
.cmp td { font-weight: 700; }
.cmp .me { background: rgba(217,119,87,.1); }
.cmp .best { color: var(--leaf); font-weight: 800; }
.cmp .best::after { content: " ✓"; font-size: 9px; }
.mytag { display: inline-block; font-size: 9px; font-weight: 800; color: #fff; background: var(--clay); border-radius: 20px; padding: 2px 8px; margin-bottom: 5px; }
.legend { margin-top: 10px; font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.6; }

/* facts + specs */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
         border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fct { background: var(--card); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.fct span { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.fct b { font-size: 13px; font-weight: 800; color: var(--ink); }
.about { font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); margin-top: 12px; }
.specs { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 15px; }
.sp { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sp:last-child { border: 0; }
.sp .k { flex: 1; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.sp .v { font-size: 12.5px; font-weight: 700; text-align: left; }

.note-foot { margin: 24px 20px 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.9; }
.note-foot b { font-family: "Inter"; color: var(--ink-soft); }


/* alternatives when a product has no price */
.alts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.alt-card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 9px; text-decoration: none; color: inherit; display: block; }
.alt-card img { border-radius: 9px; margin-bottom: 8px; width: 100%; }
.alt-card b { display: block; font-size: 11px; font-weight: 700; line-height: 1.45; height: 47px; overflow: hidden; }
.alt-card span { display: block; font-family: "Inter"; font-weight: 800; font-size: 12.5px; color: var(--clay-deep); margin-top: 6px; }
.alt-card span small { font-family: "Cairo"; font-size: 10px; font-weight: 700; color: var(--muted); }

/* index finder */
.finder { padding: 0 20px; display: grid; gap: 10px; }
.search { display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; color: var(--muted); }
.search svg { width: 17px; height: 17px; flex-shrink: 0; }
.search input { flex: 1; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink); outline: none; min-width: 0; }
.tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; }
.tab { font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; background: var(--card); color: var(--ink-soft); border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px; }
.tab.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab .n { opacity: .6; font-size: 11px; }
.tab:focus-visible, .search input:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.empty { text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; padding: 30px 0; }
.item .p.out { color: var(--muted); font-family: "Cairo"; font-size: 11.5px; font-weight: 700; }
.item .p small { font-family: "Cairo"; font-size: 10.5px; font-weight: 700; color: var(--muted); }

/* index */
.page { max-width: 460px; margin: 0 auto; min-height: 100vh; }
.top { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brandline { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.brandline img { width: 32px; height: 32px; border-radius: 50%; }
.brandline b { font-family: "Naskh", "Inter", sans-serif; font-size: 15px; font-weight: 700; }
.brandline span { display: block; font-size: 10px; color: var(--muted); font-weight: 600; }
.where { font-size: 10.5px; font-weight: 700; color: var(--muted); background: rgba(20,20,19,.05); border-radius: 8px; padding: 6px 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 8px 20px 24px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 11px; text-decoration: none; color: inherit; }
.item img { border-radius: 10px; margin-bottom: 9px; }
.item b { display: block; font-size: 11.5px; font-weight: 700; line-height: 1.45; height: 33px; overflow: hidden; }
.item .p { font-family: "Inter"; font-weight: 800; font-size: 13px; color: var(--clay-deep); margin-top: 7px; }
.wrap { padding: 0 20px 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.kicker { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.sub { margin-top: 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.sub b { font-family: "Inter"; font-weight: 700; color: var(--ink); }
.note { margin-top: 16px; text-align: center; font-size: 10px; color: var(--muted); font-weight: 600; }
