/* Folio Souq — growth layer: kitchen quiz + one-tap sharing.
   No cookies, no third-party scripts: share buttons are plain links. */

/* Quiz link in the nav is for phones only; on wider screens the header button links to the quiz. */
@media (min-width: 861px) { .nav .nav-quiz { display: none; } }

/* Header brand: Arabic descenders no longer touch the Latin line under the name. */
.brand-name { line-height: 1.3; }
.brand-latin { margin-top: 1px; }

/* Hero: keep the highlighted price phrase on one line, and on tablets keep the
   illustration and its floating notes together instead of spread across the full width. */
.hero h1 .grad-text { white-space: nowrap; }
@media (min-width: 521px) and (max-width: 959px) {
  .hero .stage { width: 100%; max-width: 560px; margin-inline: auto; min-height: 500px; }
}

/* ---------- Share bar ---------- */
.fs-share { border-radius: 22px; padding: 14px 16px; display: grid; gap: 10px; margin-top: 16px; }
.fs-share-title { font-weight: 800; font-size: .95rem; color: var(--ink); margin: 0; }
.fs-share-sub { font-size: .85rem; color: var(--muted); margin: -4px 0 0; }
.fs-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-size: .9rem; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.fs-btn:hover { transform: translateY(-2px); border-color: rgba(247,103,7,.35); box-shadow: 0 10px 24px -14px rgba(232,89,12,.55); }
.fs-btn:focus-visible { outline: 3px solid var(--o-2); outline-offset: 2px; }
.fs-btn svg { width: 18px; height: 18px; flex: none; }
.fs-btn.wa svg { color: #128C4A; }
.fs-btn.tg svg { color: #1F7FB8; }
.fs-btn.fb svg { color: #1D5BD8; }
.fs-btn.primary { background: var(--grad); color: #fff; border-color: transparent; }
.fs-btn.primary svg { color: #fff; }
.fs-status { font-size: .85rem; font-weight: 700; color: var(--o-ink); min-height: 1.2em; margin: 0; }

/* ---------- Quiz invitation (home, products, product pages) ---------- */
.quiz-band {
  border-radius: 30px; padding: 26px; display: grid; gap: 18px; align-items: center;
  position: relative; overflow: hidden;
}
@media (min-width: 820px) { .quiz-band { grid-template-columns: auto 1fr auto; gap: 26px; padding: 30px 34px; } }
.quiz-band .qb-icon {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 14px 30px -12px var(--glow);
}
.quiz-band .qb-icon svg { width: 34px; height: 34px; }
.quiz-band h2, .quiz-band h3 { margin: 0 0 6px; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 900; }
.quiz-band p { margin: 0; color: var(--muted); }
.quiz-band .btn { white-space: nowrap; }
.quiz-band.compact { padding: 18px 20px; border-radius: 24px; }
.quiz-band.compact h3 { font-size: 1.1rem; }
.quiz-band.compact .qb-icon { width: 52px; height: 52px; border-radius: 16px; }
.quiz-band.compact .qb-icon svg { width: 28px; height: 28px; }
.fs-after-details { margin: 0 0 40px; }

/* ---------- Product cards (same look as the products page) ---------- */
.crumbs { font-size: .92rem; color: var(--muted); margin: 26px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--o-ink); }
.pgrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pcard { border-radius: 22px; padding: 12px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 26px 60px -22px rgba(232,89,12,.5), 0 0 0 1px rgba(247,103,7,.25); }
.pcard img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 16px; background: #fff; }
.pcard h3 { font-size: 1rem; margin: 2px 4px 0; }
.pcard .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 4px 4px; }
.pcard .pp { font-weight: 900; color: var(--o-ink); direction: ltr; }
.pcard .ppw { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.pcard .ppw small { font-size: .68rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.pcard .over { font-size: .72rem; font-weight: 800; color: var(--muted); }

/* ---------- Quiz page ---------- */
.quiz-wrap { max-width: 860px; margin: 0 auto; }
.quiz-card { border-radius: 30px; padding: clamp(20px, 4vw, 36px); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 800; font-size: .9rem; color: var(--muted); }
.quiz-progress { height: 8px; border-radius: 999px; background: var(--o-soft); overflow: hidden; margin-bottom: 22px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width .35s ease; }
.quiz-q { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); font-weight: 900; margin: 0 0 18px; outline: none; }
.quiz-opts { display: grid; gap: 10px; }
@media (min-width: 640px) { .quiz-opts.two { grid-template-columns: 1fr 1fr; } }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px;
  border-radius: 18px; border: 1.5px solid var(--line); background: rgba(255,255,255,.8);
  font: inherit; font-weight: 700; color: var(--ink); text-align: start; cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.opt:hover { border-color: rgba(247,103,7,.45); background: #fff; transform: translateY(-1px); }
.opt:focus-visible { outline: 3px solid var(--o-2); outline-offset: 2px; }
.opt[aria-pressed="true"] { border-color: var(--o-2); background: var(--o-soft); }
.opt .dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #D9C7B8; display: grid; place-items: center; }
.opt[aria-pressed="true"] .dot { border-color: var(--o-2); background: var(--o-2); box-shadow: inset 0 0 0 4px #fff; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.linkbtn { background: none; border: 0; padding: 10px 4px; min-height: 44px; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; }
.linkbtn:hover { color: var(--o-ink); }
.linkbtn[disabled] { visibility: hidden; }
.quiz-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }

.persona { display: grid; gap: 18px; }
.persona-head { display: flex; align-items: center; gap: 16px; }
.persona-icon { width: 76px; height: 76px; flex: none; border-radius: 24px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 16px 34px -14px var(--glow); }
.persona-icon svg { width: 40px; height: 40px; }
.persona-kicker { display: block; font-size: .9rem; font-weight: 800; color: var(--o-ink); }
.persona-name { margin: 2px 0 0; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); font-weight: 900; line-height: 1.2; outline: none; }
.persona p { margin: 0; }
.persona .tip { padding: 12px 16px; border-radius: 16px; background: var(--o-soft); color: var(--o-ink); font-weight: 700; line-height: 1.7; }
.persona h3.sub { margin: 8px 0 0; font-size: 1.2rem; }
.price-note { font-size: .84rem; color: var(--muted); margin: 0; }
.quiz-again { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

@media (max-width: 560px) {
  .pgrid { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard { padding: 8px; border-radius: 18px; }
  .pcard h3 { font-size: .9rem; }
  .persona-head { align-items: flex-start; }
  .persona-icon { width: 60px; height: 60px; border-radius: 18px; }
  .persona-icon svg { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .fs-btn, .opt, .pcard, .quiz-progress span { transition: none; }
}

/* =====================================================================
   2026 refresh: real products in the hero (bento), quieter decoration,
   mobile action dock, gentle scroll reveal. Light theme only.
   ===================================================================== */

/* Badge can be a link to the quiz */
a.badge { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.badge:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(232,89,12,.6); }
a.badge::after { content: "←"; margin-inline-start: 8px; color: var(--o-ink); font-weight: 900; }

/* Calmer hero background: the dotted texture fades out sooner */
.hero::before { opacity: .55; }
.hero h1 { letter-spacing: -.015em; }

/* Hero product bento: one large tile (2x2), four squares, and a "browse all" square */
.hero h1 { font-size: clamp(1.8rem, 1rem + 2.8vw, 3.1rem); max-width: none; text-wrap: balance; }
.hero h1 .grad-text { display: block; }
.hero-shop {
  display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%; max-width: 500px; margin-inline: auto;
}
.hs-tile {
  position: relative; display: block; overflow: hidden; aspect-ratio: 1; border-radius: 22px; background: #fff;
  border: 1px solid rgba(28,20,15,.07); text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 40px -26px rgba(232,89,12,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hs-tile:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -24px rgba(232,89,12,.55), 0 0 0 1px rgba(247,103,7,.22); }
.hs-tile:focus-visible, .hs-all:focus-visible { outline: 3px solid var(--o-2); outline-offset: 3px; }
.hs-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; background: #fff; }
.hs-big { grid-column: span 2; grid-row: span 2; border-radius: 28px; }
.hs-big img { padding: 14px 14px 70px; }
.hs-meta {
  position: absolute; inset-inline: 10px; bottom: 10px; display: grid; gap: 1px; padding: 10px 14px;
  border-radius: 18px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(28,20,15,.07);
}
.hs-cat { font-size: .72rem; font-weight: 800; color: var(--o-ink); }
.hs-name { font-size: .92rem; font-weight: 800; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.hs-price { display: flex; align-items: baseline; gap: 6px; direction: ltr; justify-content: flex-end; font-weight: 900; color: var(--o-ink); font-size: 1.1rem; }
.hs-price small { direction: rtl; font-size: .68rem; font-weight: 700; color: var(--muted); }
.hs-chip {
  position: absolute; inset-inline-start: 7px; bottom: 7px; padding: 2px 9px; border-radius: 999px;
  background: rgba(255,255,255,.94); border: 1px solid rgba(28,20,15,.08);
  font-weight: 900; font-size: .8rem; color: var(--o-ink); direction: ltr;
}
.hs-all {
  aspect-ratio: 1; display: grid; place-content: center; gap: 4px; text-align: center; padding: 10px;
  border-radius: 22px; text-decoration: none; font-weight: 900; color: #fff; background: var(--grad);
  box-shadow: 0 18px 36px -18px var(--glow); transition: transform .25s ease;
}
.hs-all:hover { transform: translateY(-4px); }
.hs-all b { font-size: 1.4rem; line-height: 1; }
.hs-all span { font-size: .85rem; line-height: 1.35; }
.hs-note { grid-column: 1 / -1; margin: 0; font-size: .76rem; color: var(--muted); }
@media (max-width: 959px) { .hero-shop { margin-top: 4px; } }
@media (max-width: 400px) { .hero-shop { gap: 8px; } .hs-name { font-size: .85rem; } .hs-price { font-size: .95rem; } .hs-big img { padding-bottom: 64px; } }

/* Barely-there product cards */
.pcard { border: 1px solid rgba(28,20,15,.06); }
.pcard img { padding: 4px; }

/* Mobile action dock */
.fs-dock {
  position: fixed; inset-inline: 12px; bottom: 12px; z-index: 40; display: none; align-items: center; gap: 8px;
  padding: 8px; border-radius: 22px; background: rgba(255,255,255,.88); backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.95); box-shadow: 0 18px 40px -16px rgba(28,20,15,.35), 0 0 0 1px rgba(28,20,15,.05);
  transform: translateY(140%); transition: transform .3s ease;
}
.fs-dock.show { transform: none; }
.fs-dock .btn { flex: 1; min-height: 48px; justify-content: center; font-size: .95rem; padding-inline: 12px; }
.fs-dock .dock-price { flex: none; padding-inline: 8px 4px; line-height: 1.15; }
.fs-dock .dock-price b { display: block; font-size: 1.15rem; font-weight: 900; color: var(--o-ink); direction: ltr; text-align: right; }
.fs-dock .dock-price small { font-size: .7rem; color: var(--muted); font-weight: 700; }
@media (max-width: 860px) { .fs-dock { display: flex; } body.has-dock .site-footer { padding-bottom: 84px; } }

/* Gentle reveal on scroll (only when JS is running, and never with reduced motion) */
html.fs-js .fs-rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.fs-js .fs-rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.fs-js .fs-rv { opacity: 1; transform: none; transition: none; }
  .hs-tile, a.badge, .fs-dock { transition: none; }
}

/* Phones: the two-row header slides away while scrolling down and returns when scrolling up */
@media (max-width: 860px) {
  .site-header { transition: transform .3s ease; }
  .site-header.hdr-hide { transform: translateY(calc(-100% - 16px)); }
}
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
