/* Nutriplus Farmasi by Maram Pharmacy — design tokens + shared components (website, app, admin, brand book). */
:root {
  --em-900: #0E2F2C; --em-800: #153D39; --em-700: #1C4D47; --em-500: #2F7A6F; --sage: #A9C2B5; --sage-100: #E7EFE9;
  --gold: #C6A15B; --gold-l: #E6CF9C; --gold-d: #9C7A3C; --blush: #F2E3DA; --rose: #D29C8E;
  --ivory: #FAF6F0; --paper: #FFFFFF; --ink: #18201F; --ink-2: #4A5553; --ink-3: #7D8785; --line: #E8E1D6; --line-2: #F0EBE3;
  --ok: #2F7A6F; --warn: #C98A2B; --bad: #B4534B;
  --f-display: "Cormorant Garamond", Georgia, serif; --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ar-display: "El Messiri", "IBM Plex Sans Arabic", serif; --f-ar-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --shadow: 0 1px 2px rgba(14,47,44,.05), 0 8px 28px rgba(14,47,44,.08);
  --shadow-lg: 0 24px 60px rgba(14,47,44,.16); --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--ivory); line-height: 1.55; -webkit-font-smoothing: antialiased; }
[dir="rtl"] body { font-family: var(--f-ar-body); }
h1, h2, h3, .display { font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; margin: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .display { font-family: var(--f-ar-display); letter-spacing: 0; line-height: 1.35; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.ic { flex: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-d); font-weight: 700; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 13px; }

/* logo lockups */
.np-logo { display: inline-flex; align-items: center; gap: calc(var(--ls) * .26); color: var(--em-900); }
.np-logo.dark { color: var(--ivory); }
.np-logo .lw { display: flex; flex-direction: column; line-height: 1; text-align: start; }
.np-logo .lw-sub { font-family: var(--f-body); font-size: calc(var(--ls) * .2); letter-spacing: .42em; font-weight: 700; color: var(--gold-d); margin-bottom: calc(var(--ls) * .08); }
.np-logo.dark .lw-sub { color: var(--gold-l); }
/* v1.1: tighter tracking + heavier italic "plus" so the wordmark holds at small sizes */
.np-logo .lw-main { font-family: var(--f-display); font-size: calc(var(--ls) * .64); font-weight: 600; letter-spacing: -.012em; }
.np-logo .lw-main em { font-style: italic; font-weight: 600; color: var(--em-500); letter-spacing: -.005em; margin-inline-start: .02em; }
.np-logo.dark .lw-main em { color: var(--gold-l); }
/* Arabic lockup balanced to the Latin one: larger name, gold descriptor at the same visual weight as the Latin one */
.np-logo[dir="rtl"] { gap: calc(var(--ls) * .3); }
.np-logo .lw-ar { font-family: var(--f-ar-display); font-size: calc(var(--ls) * .62); font-weight: 700; line-height: 1.15; order: 1; }
.np-logo .lw-ar + .lw-sub { order: 0; letter-spacing: 0; font-family: var(--f-ar-body); font-weight: 700; font-size: calc(var(--ls) * .3); line-height: 1; margin-bottom: calc(var(--ls) * .02); }
/* "Maram Pharmacy": descriptor sits under the name so it reads Maram → Pharmacy */
.np-logo .lw-sub.lw-under { order: 2; margin: calc(var(--ls) * .1) 0 0; letter-spacing: .5em; }
/* Arabic descriptor under the name: no tracking (it would break letter joining) */
[dir="rtl"].np-logo .lw-sub.lw-under { letter-spacing: 0; margin-top: calc(var(--ls) * .02); line-height: 1.4; }
.np-logo .lw-end { order: 3; font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: max(11px, calc(var(--ls) * .26)); color: var(--ink-3); margin-top: calc(var(--ls) * .1); white-space: nowrap; }
.np-logo.dark .lw-end { color: rgba(255,255,255,.7); }
/* Arabic: no nowrap/letter-spacing, which make the PNG renderer split letters and break Arabic joining */
[dir="rtl"].np-logo .lw-end { font-family: var(--f-ar-body); font-style: normal; font-size: max(11px, calc(var(--ls) * .24)); white-space: normal; letter-spacing: 0; line-height: 1.7; }
.np-logo.stacked { flex-direction: column; text-align: center; }
.np-logo.stacked .lw { align-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px; letter-spacing: .02em; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--em-700); color: #fff; }
.btn-primary:hover { background: var(--em-900); box-shadow: 0 10px 24px rgba(28,77,71,.25); }
.btn-gold { background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: var(--em-900); }
.btn-gold:hover { box-shadow: 0 10px 24px rgba(198,161,91,.35); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--em-700); color: var(--em-700); }
.btn-light { background: rgba(255,255,255,.9); color: var(--em-900); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; border: 0; background: transparent; position: relative; transition: background .2s; }
.icon-btn:hover { background: rgba(28,77,71,.07); }
.dot { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--em-900); font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.dot:empty { display: none; }

/* badges & chips */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.b-sale { background: var(--bad); color: #fff; } .b-new { background: var(--em-700); color: #fff; } .b-best { background: var(--gold-l); color: var(--em-900); }
.b-demo { background: #fff; color: var(--ink-3); border: 1px dashed #C9C2B6; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; transition: .2s; }
.chip.on, .chip:hover { background: var(--em-700); border-color: var(--em-700); color: #fff; }

/* product card */
.pcard { position: relative; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard .pimg { aspect-ratio: 1; position: relative; overflow: hidden; display: block; }
.pcard .pimg > svg, .pcard .pimg > img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pimg > svg, .pcard:hover .pimg > img { transform: scale(1.05); }
.pcard .badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.pcard .wish { position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--ink-2); transition: .2s; }
.pcard .wish.on { color: var(--bad); } .pcard .wish.on svg path { fill: currentColor; }
.pcard .pbody { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .pbrand { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
[dir="rtl"] .pcard .pbrand { letter-spacing: 0; font-size: 12px; }
.pcard .pname { font-weight: 600; font-size: 14.5px; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .prow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-weight: 800; color: var(--em-900); font-size: 15px; }
.price s { color: var(--ink-3); font-weight: 500; font-size: 12.5px; margin-inline-start: 6px; }
.price.sale { color: var(--bad); }
.add { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--em-700); color: #fff; display: grid; place-items: center; transition: .2s; flex: none; }
.add:hover { background: var(--gold); color: var(--em-900); transform: rotate(90deg); }
.stars { color: var(--gold); display: inline-flex; gap: 1px; align-items: center; }
.stars svg path { fill: currentColor; }
.muted { color: var(--ink-3); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.input, select.input, textarea.input { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 14px; outline: none; transition: border .2s, box-shadow .2s; width: 100%; }
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--em-500); box-shadow: 0 0 0 4px rgba(47,122,111,.12); }
.input.err { border-color: var(--bad); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: var(--em-900); color: #fff; padding: 12px 20px; border-radius: 999px;
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .35s var(--ease); z-index: 1000; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { color: var(--gold-l); }

/* demo strip */
.demo-strip { background: var(--em-900); color: var(--gold-l); font-size: 12px; text-align: center; padding: 7px 16px; letter-spacing: .02em; }
.demo-strip a { text-decoration: underline; color: #fff; }

/* reveal-on-scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } * { animation: none !important; transition: none !important; } }

/* Brand lockup (2026-10-29): gold badge style */
.np-logo .lw-main { font-family: "Cinzel", Georgia, serif; font-weight: 600; letter-spacing: .06em; font-size: calc(var(--ls) * .5);
  background: linear-gradient(115deg, #7A5719 0%, #C9A257 30%, #E9D08C 50%, #B98B3D 72%, #80601F 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.np-logo.dark .lw-main { background: linear-gradient(115deg, #C9A257, #F4E3AC 50%, #C9A257); -webkit-background-clip: text; background-clip: text; }
.np-logo .lw-sub.lw-under { display: flex; align-items: center; gap: .55em; font-family: "Cinzel", Georgia, serif; font-weight: 500; letter-spacing: .38em; font-size: calc(var(--ls) * .17); color: #A07A35; margin-top: calc(var(--ls) * .08); }
.np-logo .lw-sub.lw-under i { flex: 1; min-width: calc(var(--ls) * .25); height: 1px; background: currentColor; opacity: .7; }
.np-logo.dark .lw-sub.lw-under { color: var(--gold-l); }
.np-logo .lw-end { font-family: "Pinyon Script", cursive; font-style: normal; font-weight: 400; font-size: max(13px, calc(var(--ls) * .32)); color: #6B4E1C; margin-top: calc(var(--ls) * .04); }
.np-logo.dark .lw-end { color: #F3E6C2; }
[dir="rtl"].np-logo .lw-ar { background: linear-gradient(115deg, #7A5719, #C9A257 40%, #B98B3D); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"].np-logo.dark .lw-ar { background: linear-gradient(115deg, #C9A257, #F4E3AC 50%, #C9A257); -webkit-background-clip: text; background-clip: text; }
[dir="rtl"].np-logo .lw-sub.lw-under { letter-spacing: 0; font-family: var(--f-ar-body); font-weight: 700; }
[dir="rtl"].np-logo .lw-end { font-family: var(--f-ar-body); font-size: max(11px, calc(var(--ls) * .24)); color: #8A6A2C; }
.np-logo.stacked .lw-sub.lw-under { justify-content: center; }
