/* Article typography. Change the two font variables to restyle every article at once. */
:root {
    --art-head: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif; /* headings only (700) */
    --art-ui: 'Tajawal', system-ui, sans-serif;
    --art-body: 'Noto Naskh Arabic', 'Tajawal', serif;
    --art-ink: #1e293b;
}
html { scroll-behavior: smooth; }
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 70; background: linear-gradient(90deg, #22b455, #138a3f); transform: scaleX(0); transform-origin: right; }
.preview-note { background: #fef3c7; color: #92400e; border-radius: 10px; padding: 8px 14px; margin-bottom: 14px; font-weight: 700; text-align: center; }

/* layout: reading column (+ sticky table of contents on wide screens) */
.art-wrap { max-width: 780px; margin: 0 auto; }
@media (min-width: 1100px) {
    .art-wrap.has-toc { max-width: 1060px; display: grid; grid-template-columns: 260px minmax(0, 740px); gap: 56px; align-items: start; }
}
.toc { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 6px 18px; margin-bottom: 18px; }
@media (min-width: 1100px) { .toc { position: sticky; top: 18px; margin-bottom: 0; max-height: calc(100vh - 36px); overflow: auto; } .toc summary { pointer-events: none; } .toc summary::after { display: none; } }
.toc summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-family: var(--art-ui); font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .i { color: var(--green); }
.toc summary::after { content: '▾'; margin-inline-start: auto; color: var(--muted); }
.toc[open] summary::after, .toc details[open] summary::after { transform: rotate(180deg); }
.toc ol { display: grid; gap: 2px; padding: 4px 0 12px; border-top: 1px solid var(--line); counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: #475569; font-family: var(--art-ui); font-size: 14.5px; line-height: 1.6; border-inline-start: 3px solid transparent; }
.toc li.l3 a { padding-inline-start: 24px; font-size: 13.5px; color: #64748b; }
.toc a:hover { background: #f1f5f9; }
.toc a.on { color: var(--green-d); background: var(--green-soft); border-inline-start-color: var(--green); font-weight: 700; }

/* header */
.art-head { text-align: start; margin-bottom: 22px; }
.art-head h1 { font-family: var(--art-head); font-weight: 700; font-size: clamp(28px, 4.6vw, 44px); line-height: 1.45; letter-spacing: -.01em; margin: 14px 0 16px; color: #0b1220; text-wrap: balance; }
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-family: var(--art-ui); font-size: 14.5px; }
.art-meta span { display: inline-flex; align-items: center; gap: 7px; }
.art-meta .i { width: 17px; height: 17px; }
.art-hero { margin: 0 0 30px; }
.art-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; box-shadow: 0 18px 50px rgba(15, 23, 42, .14); background: #e5e9ee; }

/* body */
.lead { font-family: var(--art-body); font-size: clamp(19px, 2.3vw, 22px); line-height: 2; color: #334155; border-inline-start: 4px solid var(--green); padding-inline-start: 18px; margin: 0 0 1.6em; }
.art-body { font-family: var(--art-body); font-size: clamp(18px, 2vw, 20px); line-height: 2.05; color: var(--art-ink); overflow-wrap: anywhere; }
.art-body > :first-child { margin-top: 0; }
.art-body p { margin: 0 0 1.35em; }
.art-body strong { font-weight: 700; color: #0b1220; }
.art-body a { color: var(--green-d); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: rgba(22, 163, 74, .35); transition: text-decoration-color .15s; }
.art-body a:hover { text-decoration-color: var(--green); }
.art-body h2, .art-body h3, .art-body h4 { font-family: var(--art-head); color: #0b1220; text-wrap: balance; scroll-margin-top: 20px; }
.art-body h2 { position: relative; font-size: clamp(23px, 3vw, 30px); font-weight: 700; line-height: 1.5; margin: 2.3em 0 .75em; padding-inline-start: 20px; }
.art-body h2::before { content: ''; position: absolute; inset-inline-start: 0; top: .32em; bottom: .32em; width: 6px; border-radius: 6px; background: linear-gradient(180deg, #2fc965, #138a3f); }
.art-body h3 { font-size: clamp(20px, 2.4vw, 23px); font-weight: 700; line-height: 1.55; margin: 1.8em 0 .5em; color: #14532d; }
.art-body h4 { font-size: 18px; font-weight: 700; margin: 1.5em 0 .4em; }

.art-body ul, .art-body ol { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: .55em; }
.art-body ol { counter-reset: n; }
.art-body li { position: relative; padding-inline-start: 38px; }
.art-body ul > li::before { content: ''; position: absolute; inset-inline-start: 9px; top: .95em; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.art-body ol > li { counter-increment: n; }
.art-body ol > li::before { content: counter(n); position: absolute; inset-inline-start: 0; top: .5em; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font: 700 14px/28px var(--art-ui); text-align: center; }
.art-body li ul, .art-body li ol { margin: .6em 0 0; }

.art-body blockquote { position: relative; margin: 2em 0; padding: 26px 28px 26px 26px; background: linear-gradient(135deg, var(--green-soft), #f6fbf8); border-radius: 18px; border-inline-start: 6px solid var(--green); font-family: var(--art-ui); font-size: clamp(19px, 2.4vw, 22px); line-height: 1.9; color: #14532d; font-weight: 700; }
.art-body blockquote p:last-child { margin-bottom: 0; }

.art-body aside { margin: 2em 0; padding: 20px 24px; border-radius: 18px; border: 1px solid; font-size: .94em; line-height: 1.95; }
.art-body aside p:last-child { margin-bottom: 0; }
.art-body aside.tip { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.art-body aside.warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.art-body aside.note { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.art-body aside.key-points, .art-body aside.callout, .art-body aside.success { background: #0f172a; border-color: #0f172a; color: #e2e8f0; }
.art-body aside.key-points strong, .art-body aside.callout strong { color: #fff; }
.art-body aside.key-points li::before { background: #4ade80; box-shadow: 0 0 0 5px rgba(74, 222, 128, .18); }
.art-body aside.key-points a { color: #86efac; }

.art-body table { display: block; overflow-x: auto; max-width: 100%; border-collapse: separate; border-spacing: 0; margin: 2em 0; border: 1px solid var(--line); border-radius: 16px; font-size: .88em; line-height: 1.8; }
.art-body th, .art-body td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); min-width: 110px; }
.art-body th { background: #f1f5f9; font-family: var(--art-ui); font-weight: 700; white-space: nowrap; }
.art-body tr:last-child td { border-bottom: 0; }
.art-body tbody tr:nth-child(even) td { background: #fafbfc; }

.art-body figure { margin: 2em 0; }
.art-body img { max-width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(15, 23, 42, .1); }
.art-body figcaption { text-align: center; color: var(--muted); font-family: var(--art-ui); font-size: 14px; margin-top: 10px; }
.art-body hr { border: 0; text-align: center; margin: 2.6em 0; height: 22px; }
.art-body hr::before { content: '• • •'; color: var(--green); letter-spacing: 14px; font-size: 18px; }
.art-body code { background: #f1f5f9; border-radius: 6px; padding: 1px 7px; font-size: .88em; direction: ltr; unicode-bidi: embed; }
.art-body mark { background: #fef08a; padding: 0 4px; border-radius: 4px; }
.art-body .center { text-align: center; }
.art-body .muted, .art-body .small { color: var(--muted); font-size: .88em; }

.art-body details { border: 1px solid var(--line); border-radius: 16px; margin: 12px 0; background: #fff; overflow: hidden; }
.art-body details[open] { border-color: #bbf7d0; box-shadow: 0 6px 20px rgba(22, 163, 74, .08); }
.art-body summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px; cursor: pointer; font-family: var(--art-ui); font-weight: 700; font-size: 1.02em; list-style: none; }
.art-body summary::-webkit-details-marker { display: none; }
.art-body summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green-d); font: 700 20px/30px var(--art-ui); text-align: center; }
.art-body details[open] summary::after { content: '−'; background: var(--green); color: #fff; }
.art-body details p { margin: 0; padding: 0 22px 18px; color: #475569; }

/* product call to action (end of article) */
.pcta { display: grid; gap: 20px; margin-top: 3em; padding: 20px; background: #fff; border: 1px solid #bbf7d0; border-radius: 26px; box-shadow: 0 20px 50px rgba(22, 163, 74, .12); font-family: var(--art-ui); }
@media (min-width: 640px) { .pcta { grid-template-columns: 210px 1fr; align-items: center; padding: 24px; gap: 28px; } }
.pc-img { position: relative; display: block; aspect-ratio: 1; border-radius: 18px; background: #fafbfc; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pc-label { display: inline-block; background: var(--green-soft); color: var(--green-d); border-radius: 999px; padding: 2px 14px; font-size: 13px; font-weight: 700; }
.pc-title { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; line-height: 1.45; margin: 10px 0 6px; font-family: var(--art-ui); }
.pc-title a { color: inherit; }
.pc-desc { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0 0 12px; }
.pc-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 16px; }
.pc-price b { font-size: 32px; font-weight: 700; color: var(--green-d); line-height: 1.2; }
.pc-price small { font-size: 16px; }
.pc-price s { color: var(--muted); font-size: 17px; }
.pc-free { display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: var(--green-d); border-radius: 999px; padding: 2px 12px; font-size: 13.5px; font-weight: 700; }
.pc-free .i { width: 16px; height: 16px; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-lg { min-height: 52px; padding-inline: 22px; font-size: 16.5px; border-radius: 14px; }
.pc-actions .btn-wa { flex: 1 1 220px; }
.pc-note { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; }

/* compact card injected before the 3rd H2 */
.pcta-inline { display: grid; grid-template-columns: 76px 1fr; gap: 6px 16px; align-items: center; margin: 2.2em 0; padding: 14px 16px; background: linear-gradient(135deg, #f0fdf4, #fff); border: 1px solid #bbf7d0; border-radius: 20px; font-family: var(--art-ui); font-size: 16px; line-height: 1.5; }
.pcta-inline .btn { grid-column: 1 / -1; }
@media (min-width: 640px) { .pcta-inline { grid-template-columns: 84px 1fr auto; } .pcta-inline .btn { grid-column: auto; } }
.pi-img { aspect-ratio: 1; border-radius: 14px; background: #fff; overflow: hidden; }
.pi-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; margin: 0; border-radius: 0; box-shadow: none; }
.pi-text small { display: block; color: var(--green-d); font-weight: 700; font-size: 12.5px; }
.art-body .pi-name { display: block; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 16.5px; }
.pi-price { font-size: 15px; color: var(--green-d); display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.pi-price b { font-size: 17px; }
.pi-price s { color: var(--muted); }
.pi-price span { background: var(--green-soft); border-radius: 999px; padding: 0 10px; font-size: 12.5px; font-weight: 700; }

/* sticky product bar (always visible while reading) */
body:has(.pbar) { padding-bottom: 100px; }
.pbar { position: fixed; z-index: 55; bottom: 12px; inset-inline: 12px; margin-inline: auto; width: min(780px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 12px; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border: 1px solid #d1fae5; border-radius: 20px; box-shadow: 0 14px 44px rgba(15, 23, 42, .22); font-family: var(--art-ui); animation: pbarIn .5s .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pbarIn { from { transform: translateY(140%); opacity: 0; } to { transform: none; opacity: 1; } }
.pbar-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.pbar-main img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; background: #fafbfc; flex: none; }
.pbar-text { min-width: 0; display: grid; line-height: 1.4; }
.pbar-text small { color: var(--green-d); font-size: 12px; font-weight: 700; }
.pbar-text b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar-price { display: grid; line-height: 1.25; text-align: center; flex: none; }
.pbar-price b { color: var(--green-d); font-size: 17px; font-weight: 700; }
.pbar-price s { color: var(--muted); font-size: 12.5px; }
.pbar .btn { flex: none; min-height: 46px; padding-inline: 18px; border-radius: 14px; }
@media (max-width: 560px) { .pbar-price s { display: none; } .pbar .btn span { display: none; } .pbar .btn { width: 46px; padding: 0; } .pbar-text small { display: none; } }

/* listings */
.agrid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .agrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .agrid { grid-template-columns: repeat(3, 1fr); } }
.acard { display: flex; flex-direction: column; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; font-family: var(--art-ui); }
.acard:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(15, 23, 42, .05), 0 18px 36px rgba(15, 23, 42, .1); }
.acard-img { display: block; aspect-ratio: 16 / 10; background: #eef2f6; overflow: hidden; }
.acard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.acard:hover .acard-img img { transform: scale(1.05); }
.acard-ph { display: grid; place-items: center; height: 100%; color: #94a3b8; }
.acard-ph .i { width: 44px; height: 44px; }
.acard-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 18px; flex: 1; align-items: flex-start; }
.acard h3 { font-size: 19px; font-weight: 700; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acard p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acard-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; width: 100%; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); }
.acard-foot span { display: inline-flex; align-items: center; gap: 5px; }
.acard-foot .i { width: 15px; height: 15px; }
.acard-prod { background: var(--green-soft); color: var(--green-d); border-radius: 999px; padding: 0 10px; font-weight: 700; }
.acard-foot em { font-style: normal; margin-inline-start: auto; color: var(--green-d); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.related-articles { margin-top: 56px; }
.related-articles h2 { font-family: var(--art-ui); font-size: 26px; font-weight: 700; margin-bottom: 16px; }
.empty-box { text-align: center; padding: 56px 16px; display: grid; gap: 14px; justify-items: center; color: var(--muted); }
.empty-box .i { width: 46px; height: 46px; color: #94a3b8; }
.art-links { display: grid; gap: 8px; }
.art-links a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; }
.art-links a:hover { background: var(--green-soft); }
.art-links .i { color: var(--green); }
.art-links span { flex: 1; font-weight: 700; }
.art-links em { font-style: normal; color: var(--muted); font-size: 13.5px; }

/* when the cover is the product photo, show the whole bottle instead of cropping it */
.art-hero.is-product img { object-fit: contain; aspect-ratio: 16 / 10; padding: 18px; background: linear-gradient(135deg, #f8fafc, #eaf0f5); }
.acard-img.is-product { background: linear-gradient(135deg, #f8fafc, #eaf0f5); }
.acard-img.is-product img { object-fit: contain; padding: 12px; }

/* ---------- static pages (about, contact, policies) ---------- */
.page-badge { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--green-soft); color: var(--green-d); margin-bottom: 4px; }
.page-badge .i { width: 26px; height: 26px; }
.art-body .muted { color: var(--muted); }
.art-body code { font-family: ui-monospace, Consolas, monospace; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 2.6em 0 0; padding: 22px 26px; border-radius: 22px; background: linear-gradient(135deg, #0f3d24, #16794a); color: #fff; font-family: var(--art-ui); }
.cta-band div { display: grid; gap: 2px; }
.cta-band b { font-size: 20px; font-weight: 700; }
.cta-band span { opacity: .9; font-size: 15px; }
.art-body .cta-band a { color: #fff; text-decoration: none; }
.cta-band .btn-wa { background: #fff; color: var(--green-d) !important; }
.contact-cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 1.6em 0 2.2em; font-family: var(--art-ui); }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
.ccard { display: grid; gap: 6px; justify-items: start; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); line-height: 1.6; }
.ccard.wa { border-color: #bbf7d0; background: linear-gradient(135deg, #f0fdf4, #fff); }
.ccard-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--green-soft); color: var(--green-d); }
.ccard-ic .i { width: 22px; height: 22px; }
.ccard b { font-size: 17px; font-weight: 700; }
.ccard p { margin: 0 !important; color: #475569; font-size: 16px; line-height: 1.7; }
.art-body .ccard .btn { margin-top: 6px; text-decoration: none; }
.art-body .ccard .btn-wa { color: #fff; }
.cform-wrap { margin: 1.2em 0 2em; font-family: var(--art-ui); font-size: 16px; line-height: 1.6; }
.cform { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.cf-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .cf-row { grid-template-columns: 1fr 1fr; } }
.cform label { display: grid; gap: 6px; font-weight: 700; font-size: 14.5px; }
.cform input, .cform select, .cform textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #cfd6df; border-radius: 12px; background: #fff; font: 400 16px/1.6 var(--art-ui); color: var(--ink); }
.cform textarea { resize: vertical; min-height: 140px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 3px solid rgba(22, 163, 74, .25); border-color: var(--green); }
.cf-note { margin: 0 !important; color: var(--muted); font-size: 13.5px; }
.cform .btn { justify-self: start; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-ok { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 14px; border-radius: 16px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.cform-ok .i { width: 28px; height: 28px; background: var(--green); color: #fff; border-radius: 50%; padding: 5px; flex: none; stroke-width: 3; }
.cform-ok p { margin: 2px 0 0 !important; font-size: 15px; }
.cform-err { padding: 14px 18px; margin-bottom: 14px; border-radius: 16px; background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
.cform-err ul { display: grid; gap: 4px; margin: 0; list-style: disc; padding-inline-start: 20px; }
