/* Folio Souq v3 — app layer loaded last on every page.
   White canvas, one orange accent, soft "orange glow" reserved for primary actions and key cards.
   Font: Cairo, self-hosted in /assets/fonts (declared in site.css). */
:root {
  --fs-bg: #FFFFFF;
  --fs-surface: #FFFFFF;
  --fs-soft: #FFF6EE;
  --fs-ink: #1C140F;
  --fs-ink-2: #3B2E26;
  --fs-muted: #6B5D54;
  --fs-line: #F0E4DA;
  --fs-o: #F76707;
  --fs-o-2: #FF922B;
  --fs-o-ink: #B83D06;
  --fs-o-soft: #FFEBDC;
  --fs-ok: #2B8A3E;
  --fs-ok-soft: #E8F6EC;
  --fs-warn: #8A5A00;
  --fs-warn-soft: #FFF4D6;
  --fs-r: 20px;
  --fs-r-sm: 14px;
  --fs-shadow: 0 1px 2px rgba(28, 20, 15, .05), 0 10px 28px -18px rgba(28, 20, 15, .22);
  --fs-glow: 0 0 0 1px rgba(247, 103, 7, .18), 0 10px 30px -10px rgba(247, 103, 7, .45);
  --fs-ring: 0 0 0 3px #fff, 0 0 0 5px var(--fs-o);
  --fs-tabbar-h: 64px;
}

body { background: var(--fs-bg); color: var(--fs-ink); font-family: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif; }
body::before { display: none; }
.v2-strip { display: none; }

/* Cards: clean white, rounded, light shadow */
.glass, .card, .pcard, .v2-cat, .nc, .fs-card {
  background: var(--fs-surface);
  border: 1px solid var(--fs-line);
  box-shadow: var(--fs-shadow);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.pcard:hover, .v2-cat:hover, .fs-card.is-link:hover { transform: translateY(-3px); box-shadow: var(--fs-shadow), var(--fs-glow); }

/* Buttons and focus */
.btn-primary, .fs-btn {
  background: linear-gradient(135deg, var(--fs-o-2), var(--fs-o) 60%);
  color: #fff; border: 0;
  box-shadow: 0 8px 22px -10px rgba(247, 103, 7, .65);
}
.btn-primary:hover, .fs-btn:hover { box-shadow: var(--fs-glow); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: none; box-shadow: var(--fs-ring); border-radius: 10px;
}
.fs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
}
.fs-btn.ghost { background: #fff; color: var(--fs-o-ink); border: 1.5px solid rgba(247, 103, 7, .35); box-shadow: none; }
.fs-btn.ghost:hover { background: var(--fs-o-soft); }
.fs-btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---------- Header ---------- */
.site-header.fs-hdr {
  position: sticky; top: 0; z-index: 40; margin: 0;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fs-line);
}
.fs-hdr-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.fs-hdr .v2-brand { color: var(--fs-ink); }
.fs-nav { display: flex; flex: 1; gap: 4px; align-items: center; }
.fs-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--fs-ink-2); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
}
.fs-nav a:hover { background: var(--fs-soft); color: var(--fs-o-ink); }
.fs-nav a[aria-current="page"] { background: var(--fs-o-soft); color: var(--fs-o-ink); }
.fs-nav a.is-noon { color: var(--fs-o-ink); }
.fs-hdr .fs-cta { min-height: 44px; padding: 0 18px; font-size: .95rem; flex: none; }
.fs-noon-pill { display: none; }

/* ---------- Mobile: compact header + bottom tab bar ---------- */
.fs-tabbar { display: none; }
@media (max-width: 900px) {
  .fs-nav, .fs-hdr .fs-cta { display: none; }
  .fs-hdr-in { min-height: 58px; justify-content: space-between; }
  .fs-noon-pill {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px;
    background: var(--fs-o-soft); color: var(--fs-o-ink); font-weight: 800; font-size: .95rem; text-decoration: none;
    border: 1px solid rgba(247, 103, 7, .25);
  }
  .fs-noon-pill[aria-current="page"] { background: var(--fs-o); color: #fff; }
  .fs-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
    min-height: var(--fs-tabbar-h); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--fs-line);
    box-shadow: 0 -8px 24px -18px rgba(28, 20, 15, .35);
  }
  .fs-tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: var(--fs-tabbar-h); color: var(--fs-muted); text-decoration: none; font-size: .72rem; font-weight: 700; line-height: 1.2;
  }
  .fs-tabbar svg { width: 24px; height: 24px; }
  .fs-tabbar a[aria-current="page"] { color: var(--fs-o-ink); }
  .fs-tabbar a[aria-current="page"] svg { filter: drop-shadow(0 4px 8px rgba(247, 103, 7, .45)); }
  body { padding-bottom: calc(var(--fs-tabbar-h) + env(safe-area-inset-bottom)); }
  .fs-dock { bottom: calc(var(--fs-tabbar-h) + env(safe-area-inset-bottom) + 10px); }
}

/* ---------- Footer ---------- */
footer.fs-foot { margin-top: 56px; background: var(--fs-soft); color: var(--fs-ink-2); border-top: 1px solid var(--fs-line); padding: 44px 0 28px; font-size: .95rem; }
.fs-fcols { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.fs-foot .v2-brand { color: var(--fs-ink); }
.fs-foot p { color: var(--fs-muted); margin: 10px 0 0; }
.fs-fh { font-weight: 900; color: var(--fs-ink); margin: 0 0 10px; font-size: 1rem; }
.fs-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fs-foot li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--fs-ink-2); text-decoration: none; }
.fs-foot li a:hover { color: var(--fs-o-ink); text-decoration: underline; text-underline-offset: 4px; }
.fs-fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--fs-line); color: var(--fs-muted); font-size: .86rem; }
@media (max-width: 900px) { .fs-fcols { grid-template-columns: 1fr 1fr; } .fs-fcols > :first-child { grid-column: 1 / -1; } }

/* ---------- Generic page pieces (home, hubs, tools) ---------- */
.fs-sec { padding-block: 40px 8px; }
.fs-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.fs-head h2 { margin: 0; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); font-weight: 900; line-height: 1.35; }
.fs-head p { margin: 4px 0 0; color: var(--fs-muted); }
.fs-kicker { display: inline-block; color: var(--fs-o-ink); font-weight: 800; font-size: .88rem; margin-bottom: 4px; }
.fs-more { color: var(--fs-o-ink); font-weight: 800; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.fs-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.fs-note { color: var(--fs-muted); font-size: .88rem; margin: 10px 0 0; }

.fs-hero { padding-block: 36px 18px; }
.fs-hero-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .fs-hero-in { grid-template-columns: 1.15fr .85fr; } }
.fs-hero h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); line-height: 1.3; font-weight: 900; margin: 6px 0 12px; }
.fs-hero h1 em { font-style: normal; color: var(--fs-o); }
.fs-hero .lead { font-size: 1.1rem; color: var(--fs-ink-2); margin: 0 0 20px; max-width: 38em; }
.fs-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fs-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--fs-ink-2); font-weight: 700; font-size: .92rem; }
.fs-trust li::before { content: "✓"; color: var(--fs-ok); margin-inline-end: 6px; font-weight: 900; }
.fs-hero-card { border-radius: 26px; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; box-shadow: var(--fs-shadow), var(--fs-glow); }
.fs-hero-card a { display: block; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--fs-line); }
.fs-hero-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

.fs-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.fs-grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.fs-card { border-radius: var(--fs-r); padding: 18px; color: var(--fs-ink); text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: transform .2s, box-shadow .2s; }
.fs-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.fs-card p { margin: 0; color: var(--fs-muted); font-size: .95rem; }
.fs-card .fs-card-cta { margin-top: auto; color: var(--fs-o-ink); font-weight: 800; }
.fs-card.key { box-shadow: var(--fs-shadow), var(--fs-glow); }
.fs-store { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }
.fs-store .fs-badge { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--fs-o-2), var(--fs-o)); }
.fs-store .fs-badge.ae { background: linear-gradient(135deg, #3B2E26, #1C140F); }
.fs-store p, .fs-store .fs-card-cta { grid-column: 1 / -1; }
.fs-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--fs-o-soft); color: var(--fs-o-ink); }
.fs-ico svg { width: 24px; height: 24px; }

/* product card used by generated pages and tools */
.fs-p { border-radius: var(--fs-r); padding: 10px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--fs-ink); background: #fff; border: 1px solid var(--fs-line); box-shadow: var(--fs-shadow); transition: transform .2s, box-shadow .2s; }
.fs-p:hover { transform: translateY(-3px); box-shadow: var(--fs-shadow), var(--fs-glow); }
.fs-p img, .fs-p .noimg { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 14px; background: #fff; }
.fs-p h3 { font-size: .98rem; margin: 2px 4px 0; line-height: 1.55; }
.fs-p .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: auto 4px 2px; font-size: .86rem; color: var(--fs-muted); }
.fs-p .pp { font-weight: 900; color: var(--fs-o-ink); white-space: nowrap; }
.fs-tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--fs-soft); color: var(--fs-ink-2); font-size: .78rem; font-weight: 800; }
.fs-tag.noon { background: var(--fs-o-soft); color: var(--fs-o-ink); }
.noimg { display: grid; place-items: center; text-align: center; padding: 14px; background: linear-gradient(160deg, #FFF6EE, #FFE6D2); color: var(--fs-o-ink); font-weight: 800; font-size: .9rem; line-height: 1.6; }

.fs-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.fs-steps li { counter-increment: s; border-radius: var(--fs-r); padding: 18px; background: #fff; border: 1px solid var(--fs-line); box-shadow: var(--fs-shadow); }
.fs-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--fs-o-soft); color: var(--fs-o-ink); font-weight: 900; margin-bottom: 8px; }
.fs-steps strong { display: block; margin-bottom: 4px; }
.fs-steps span { color: var(--fs-muted); font-size: .95rem; }
.fs-disc { margin-top: 16px; border-radius: var(--fs-r); padding: 16px 18px; background: var(--fs-soft); border: 1px solid var(--fs-line); color: var(--fs-ink-2); }

/* ---------- Tools ---------- */
.fs-tool { border-radius: 24px; padding: clamp(16px, 3vw, 28px); background: #fff; border: 1px solid var(--fs-line); box-shadow: var(--fs-shadow), var(--fs-glow); }
.fs-form { display: grid; gap: 16px; }
@media (min-width: 720px) { .fs-form.cols { grid-template-columns: 1fr 1fr; align-items: start; } .fs-form .full { grid-column: 1 / -1; } }
.fs-field { display: grid; gap: 6px; }
.fs-field label, .fs-field legend { font-weight: 800; }
.fs-field .hint { color: var(--fs-muted); font-size: .88rem; }
.fs-input, .fs-select {
  width: 100%; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid #E2D3C6; background: #fff;
  font: inherit; font-size: 1.05rem; color: var(--fs-ink);
}
.fs-input:focus, .fs-select:focus { border-color: var(--fs-o); }
.fs-input[aria-invalid="true"] { border-color: #C92A2A; background: #FFF5F5; }
.fs-err { color: #C92A2A; font-weight: 700; font-size: .9rem; min-height: 1.2em; margin: 0; }
.fs-unit { position: relative; }
.fs-unit .fs-input { padding-inline-end: 52px; direction: ltr; text-align: right; }
.fs-unit span { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--fs-muted); font-weight: 800; pointer-events: none; }
.fs-choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); border: 0; padding: 0; margin: 0; }
.fs-choice { position: relative; }
.fs-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fs-choice span { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid #E2D3C6; background: #fff; font-weight: 700; }
.fs-choice input:checked + span { border-color: var(--fs-o); background: var(--fs-o-soft); color: var(--fs-o-ink); box-shadow: var(--fs-glow); }
.fs-choice input:focus-visible + span { box-shadow: var(--fs-ring); }
.fs-result { margin-top: 20px; border-radius: 20px; padding: 18px; background: var(--fs-soft); border: 1px solid var(--fs-line); }
.fs-result[hidden] { display: none; }
.fs-result h3 { margin: 0 0 6px; }
.fs-kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 12px 0; }
.fs-kpi { border-radius: 14px; background: #fff; border: 1px solid var(--fs-line); padding: 12px 14px; }
.fs-kpi b { display: block; font-size: 1.45rem; font-weight: 900; color: var(--fs-o-ink); direction: ltr; text-align: right; }
.fs-kpi span { color: var(--fs-muted); font-size: .86rem; font-weight: 700; }
.fs-match { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--fs-line); margin-top: 10px; }
.fs-match img, .fs-match .noimg { width: 96px; height: 96px; object-fit: contain; border-radius: 12px; font-size: .7rem; padding: 6px; }
.fs-match h4 { margin: 0 0 4px; font-size: 1rem; line-height: 1.5; }
.fs-match p { margin: 0; font-size: .88rem; color: var(--fs-muted); }
.fs-match .fit { font-weight: 800; }
.fs-match .fit.ok { color: var(--fs-ok); } .fs-match .fit.no { color: #C92A2A; } .fs-match .fit.maybe { color: var(--fs-warn); }
.fs-alert { border-radius: 14px; padding: 12px 14px; background: var(--fs-warn-soft); color: var(--fs-warn); font-weight: 700; }

/* compare */
.fs-picker { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .fs-picker { grid-template-columns: 1fr 1fr; } }
.fs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.fs-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--fs-o-soft); color: var(--fs-o-ink); font-weight: 800; font-size: .9rem; }
.fs-chip button { width: 32px; height: 32px; border-radius: 999px; border: 0; background: #fff; color: var(--fs-o-ink); font-size: 1.1rem; cursor: pointer; }
.fs-table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--fs-line); margin-top: 16px; -webkit-overflow-scrolling: touch; }
.fs-table { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; font-size: .95rem; }
.fs-table th, .fs-table td { padding: 12px 14px; border-bottom: 1px solid var(--fs-line); text-align: start; vertical-align: top; }
.fs-table thead th { background: var(--fs-soft); font-weight: 900; position: sticky; top: 0; }
.fs-table tbody th { width: 120px; color: var(--fs-muted); font-weight: 800; background: #FFFCFA; }
.fs-table td ul { margin: 0; padding-inline-start: 1.1em; }
.fs-table img { width: 88px; height: 88px; object-fit: contain; border-radius: 12px; display: block; margin-bottom: 6px; }
.fs-best { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--fs-ok-soft); color: var(--fs-ok); font-weight: 800; font-size: .8rem; }
.fs-na { color: #8D7F76; }

/* price tracker */
.fs-chart { width: 100%; height: auto; display: block; }
.fs-empty { border-radius: 16px; padding: 16px; background: #fff; border: 1px dashed #E2C9B4; color: var(--fs-ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fs-p img { height: auto; }
fieldset.fs-field { border: 0; padding: 0; margin: 0; min-width: 0; }
/* keep focused / scrolled-to elements clear of the sticky header and the mobile tab bar */
html { scroll-padding-top: 80px; }
@media (max-width: 900px) { html { scroll-padding-top: 70px; scroll-padding-bottom: calc(var(--fs-tabbar-h) + 24px); } }
/* growth.js dock: keep only the product buy dock (price + button); the tab bar already covers navigation */
.fs-dock:not(.show) { visibility: hidden; }
.fs-dock:not(:has(.dock-price)) { display: none !important; }
.fs-ptools { margin: 4px 0 18px; padding: 14px 16px; border-radius: var(--fs-r); background: var(--fs-soft); border: 1px solid var(--fs-line); }
.fs-ptools .fs-kicker { margin: 0 0 2px; }
.fs-ptools .fs-actions { gap: 4px 18px; }
details.fs-card { margin-bottom: 10px; }
details.fs-card summary { cursor: pointer; min-height: 32px; list-style-position: inside; }
details.fs-card p { margin-top: 8px; }

/* hide the empty image box on products that have no photo */
.product .media:not(:has(img)){display:none}
@media (min-width:900px){.product:not(:has(.media img)){grid-template-columns:minmax(0,1fr);max-width:760px}}
