/* Falez Beauty — shared design tokens and components (store + admin).
   Light theme only. Change brand colours here and the whole site follows. */
:root{
  color-scheme:light;
  /* colour */
  --bg:#FBF8F9; --surface:#FFFFFF; --surface-2:#F6EFF2; --surface-3:#EFE5EA;
  --ink:#22141A; --muted:#7B6971; --line:#EEE3E8; --line-2:#E2D4DB;
  --accent:#8E2453; --accent-2:#C4456F; --accent-ink:#FFFFFF; --accent-soft:#FBE8F0;
  --navy:#1E2550; --gold:#A47A2C;
  --ok:#23805A; --ok-soft:#E1F3EA; --warn:#9A6414; --warn-soft:#FCEFD9; --bad:#B4382F; --bad-soft:#FBE3E0; --info:#2D68A6; --info-soft:#E3EEF9;
  /* type */
  --f-display:"Alexandria","IBM Plex Sans Arabic",system-ui,sans-serif;
  --f-body:"IBM Plex Sans Arabic",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;
  --f-mono:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  /* shape */
  --r:20px; --r-sm:12px; --r-xs:8px;
  --sh-1:0 1px 2px rgba(34,20,26,.05),0 6px 18px -10px rgba(34,20,26,.14);
  --sh-2:0 24px 48px -24px rgba(142,36,83,.38);
  --ease:cubic-bezier(.2,.7,.2,1);
  --gutter-l:max(16px, env(safe-area-inset-left, 0px)); --gutter-r:max(16px, env(safe-area-inset-right, 0px));
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:15px;line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
[hidden]{display:none!important}
h1,h2,h3,h4{font-family:var(--f-display);line-height:1.3;margin:0;text-wrap:balance;font-weight:600;letter-spacing:-.005em}
p{margin:0}
a{color:var(--accent)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2.5px solid var(--accent);outline-offset:2px;border-radius:8px}
.wrap{max-width:1200px;margin:0 auto;padding-left:var(--gutter-l);padding-right:var(--gutter-r)}
.num{font-variant-numeric:tabular-nums}
.muted{color:var(--muted)}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;letter-spacing:.06em;color:var(--accent);font-weight:600}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:999px;padding:11px 22px;font-weight:600;font-size:15px;background:var(--accent);color:var(--accent-ink);text-decoration:none;white-space:nowrap;transition:transform .2s var(--ease),box-shadow .2s var(--ease),background .2s;box-shadow:0 8px 20px -10px rgba(142,36,83,.55)}
.btn:hover{transform:translateY(-1px);box-shadow:0 12px 26px -12px rgba(142,36,83,.6)}
.btn:active{transform:translateY(0)}
.btn.ghost{background:var(--surface);color:var(--ink);border-color:var(--line-2);box-shadow:none}
.btn.ghost:hover{background:var(--surface-2)}
.btn.soft{background:var(--accent-soft);color:var(--accent);box-shadow:none}
.btn.dark{background:var(--ink);color:#fff;box-shadow:none}
.btn.sm{padding:7px 15px;font-size:13.5px}
.btn.block{width:100%}
.btn.danger{background:var(--bad);color:#fff;box-shadow:none}
.btn[disabled]{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.icon-btn{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:999px;border:1px solid var(--line);background:var(--surface);position:relative;transition:background .2s}
.icon-btn:hover{background:var(--surface-2)}
.icon-btn svg{width:20px;height:20px}
.linkish{background:none;border:0;color:var(--accent);font-weight:600;padding:0}

/* forms */
.field{display:grid;gap:6px;min-width:0}
.field.full{grid-column:1/-1}
.field label,.field .lbl{font-size:13px;font-weight:600}
.field .hint{font-size:12px;color:var(--muted)}
.field .err{color:var(--bad);font-size:12.5px}
.in,.sel{border:1px solid var(--line-2);background:var(--surface);border-radius:var(--r-sm);padding:11px 14px;width:100%;transition:border-color .2s,box-shadow .2s}
.in:focus,.sel:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
textarea.in{min-height:84px;resize:vertical}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:560px){.fields{grid-template-columns:1fr}}
.switch{position:relative;display:inline-block;width:40px;height:23px;flex:none}
.switch input{opacity:0;width:0;height:0;position:absolute}
.switch i{position:absolute;inset:0;border-radius:99px;background:var(--line-2);transition:.2s}
.switch i::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:17px;height:17px;border-radius:99px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:.2s var(--ease)}
.switch input:checked + i{background:var(--ok)}
.switch input:checked + i::after{inset-inline-start:20px}
.switch input:focus-visible + i{outline:2.5px solid var(--accent);outline-offset:2px}

/* pills & status */
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;padding:5px 12px;border-radius:999px;background:var(--surface-2);color:var(--ink)}
.st{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;padding:4px 11px;border-radius:999px;white-space:nowrap}
.st::before{content:"";width:7px;height:7px;border-radius:99px;background:currentColor}
.st.new{background:var(--info-soft);color:var(--info)}
.st.confirmed{background:var(--accent-soft);color:var(--accent)}
.st.shipped{background:var(--warn-soft);color:var(--warn)}
.st.delivered{background:var(--ok-soft);color:var(--ok)}
.st.cancelled{background:var(--surface-3);color:var(--muted)}
.note{font-size:13.5px;padding:11px 14px;border-radius:var(--r-sm);background:var(--info-soft)}
.note.warn{background:var(--warn-soft)}
.note.bad{background:var(--bad-soft);color:var(--bad)}
.empty{padding:44px 20px;text-align:center;color:var(--muted);border:1.5px dashed var(--line-2);border-radius:var(--r)}
.skel{background:linear-gradient(90deg,var(--surface-2),var(--surface),var(--surface-2));background-size:200% 100%;animation:sk 1.4s infinite;border-radius:var(--r);min-height:280px}
@keyframes sk{to{background-position:-200% 0}}

/* qty stepper */
.qty{display:inline-flex;align-items:center;border:1px solid var(--line-2);border-radius:999px;background:var(--surface)}
.qty button{width:38px;height:40px;border:0;background:none;font-size:18px;font-weight:600;border-radius:999px}
.qty button:hover{background:var(--surface-2)}
.qty span{min-width:30px;text-align:center;font-weight:600}
.qty.sm button{width:30px;height:30px;font-size:15px}

/* drawer */
.scrim{position:fixed;inset:0;background:rgba(24,10,16,.38);backdrop-filter:blur(2px);z-index:50;opacity:0;pointer-events:none;transition:opacity .25s}
.scrim.on{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;bottom:0;inset-inline-end:0;width:min(450px,100%);background:var(--bg);z-index:60;display:flex;flex-direction:column;transform:translateX(105%);transition:transform .35s var(--ease);box-shadow:-30px 0 60px -30px rgba(0,0,0,.35);padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
[dir="rtl"] .drawer{transform:translateX(-105%)}
.drawer.on{transform:none!important}
.drawer.wide{width:min(640px,100%)}
.dr-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line);background:var(--surface)}
.dr-head h3{font-size:19px}
.dr-body{flex:1;overflow:auto;padding:18px 20px;display:flex;flex-direction:column;gap:12px}
.dr-foot{padding:16px 20px;border-top:1px solid var(--line);background:var(--surface);display:grid;gap:10px}

/* line items & sums */
.line-item{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm);padding:8px}
.thumb{width:64px;height:64px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--tone) 16%,var(--surface));overflow:hidden}
.thumb:has(img){background:#fff}
.thumb svg{width:40px;height:auto}
.thumb img{width:100%;height:100%;object-fit:contain}
.line-item b{font-size:14px;font-weight:600;display:block;line-height:1.4}
.line-item small{color:var(--muted);font-size:12.5px}
.rm{background:none;border:0;color:var(--muted);font-size:12px;padding:0;text-decoration:underline}
.sumrow{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.sumrow.total{font-size:17px;font-weight:700;padding-top:8px;border-top:1px solid var(--line)}

.toast{position:fixed;bottom:calc(22px + env(safe-area-inset-bottom,0px));left:50%;transform:translate(-50%,30px);background:var(--ink);color:#fff;padding:11px 20px;border-radius:999px;font-size:14px;font-weight:600;opacity:0;transition:.3s var(--ease);z-index:90;pointer-events:none;max-width:calc(100% - 32px);text-align:center;box-shadow:0 12px 30px -12px rgba(0,0,0,.45)}
.toast.on{opacity:1;transform:translate(-50%,0)}
.toast[data-kind="bad"]{background:var(--bad)}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
