/* Digits (U+0030-0039) excluded so the Arabic-Indic glyphs never render —
   they fall back to the Latin digit override in the theme's root style.css.
   Must mirror the exclusion there; otherwise these later-loaded faces would
   win the digit range and bring back ٠١٢٣. */
@font-face {
  font-family: "GE SS Two";
  src: url("../fonts/GE-SSTwo-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  unicode-range: U+0-2F, U+003A-10FFFF;
}

@font-face {
  font-family: "GE SS Two";
  src: url("../fonts/GE-SSTwo-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0-2F, U+003A-10FFFF;
}

@font-face {
  font-family: "GE SS Two";
  src: url("../fonts/GE-SSTwo-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0-2F, U+003A-10FFFF;
}

:root {
  --quiz-pink-80: #602532;
  --quiz-pink-60: #782e3f;
  --quiz-pink-base: #f05c7e;
  --quiz-pink-40: #f9becb;
  --quiz-pink-20: #fcdee5;
  --quiz-pink-10: #fff4f7;
  --quiz-white: #fff;
  --quiz-border: #f8c9d4;
  --quiz-shadow: rgba(120, 46, 63, 0.12);
  --quiz-text-soft: rgba(120, 46, 63, 0.8);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-width: 1440px;
  background: var(--quiz-white);
  color: var(--quiz-pink-80);
  direction: rtl;
  font-family: "GE SS Two", Arial, sans-serif;
  text-align: right;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
}

.quiz-topbar {
  width: 1440px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  background: var(--quiz-pink-80);
  color: var(--quiz-white);
}

.quiz-topbar p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.quiz-topbar__arrow {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  filter: brightness(0) invert(1);
}

.quiz-header {
  width: 1440px;
  height: 116px;
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 4px 8px rgba(120, 46, 63, 0.04);
  backdrop-filter: blur(3px);
}

.quiz-header__top {
  width: 1440px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 80px;
  border-bottom: 1px solid var(--quiz-border);
  direction: ltr;
}

.quiz-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  direction: rtl;
}

.quiz-icon {
  width: 40px;
  height: 40px;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--quiz-pink-80);
}

.quiz-icon__mask {
  width: 24px;
  height: 24px;
  display: block;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.quiz-icon__mask--bag {
  width: 25px;
  mask-image: url("../img/bag.svg");
}

.quiz-icon__mask--heart {
  mask-image: url("../img/heart.svg");
}

.quiz-icon__mask--compare {
  width: 17px;
  height: 17px;
  mask-image: url("../img/compare-real.svg");
}

.quiz-icon__mask--globe {
  mask-image: url("../img/globe.svg");
}

.quiz-icon__mask--user {
  mask-image: url("../img/user.svg");
}

.quiz-icon__mask--search {
  width: 16px;
  height: 16px;
  color: var(--quiz-pink-60);
  mask-image: url("../img/search-real.svg");
}

.quiz-icon__count {
  position: absolute;
  top: 2px;
  inset-inline-end: 4px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ff8282;
  color: var(--quiz-white);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
}

.quiz-header__brand-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  direction: rtl;
}

.quiz-search {
  width: 386px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding: 7px 12px;
  border: 1.101px solid var(--quiz-border);
  border-radius: 99px;
  background: var(--quiz-white);
}

.quiz-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--quiz-pink-60);
  font-family: "Cairo", "GE SS Two", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-align: right;
}

.quiz-search input::placeholder {
  color: rgba(120, 46, 63, 0.55);
}

.quiz-logo {
  width: 186px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--quiz-pink-80);
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
}

.quiz-nav {
  width: 1440px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 120px;
  border-bottom: 1px solid var(--quiz-border);
  direction: rtl;
}

.quiz-nav a {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  color: var(--quiz-pink-80);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.quiz-nav span {
  width: 1px;
  height: 20px;
  background: var(--quiz-border);
}

.quiz-main {
  width: 1440px;
}

.quiz-hero {
  width: 1440px;
  height: 502px;
  position: relative;
  background: var(--quiz-pink-10);
  overflow: hidden;
}

.quiz-hero__image-wrap {
  position: absolute;
  left: 213.096px;
  top: 73.806px;
  width: 466.809px;
  height: 354.389px;
}

.quiz-hero__shadow {
  position: absolute;
  left: 0;
  top: 6.389px;
  width: 452px;
  height: 348px;
  border-radius: 24px;
  background: var(--quiz-pink-40);
  opacity: 0.5;
}

.quiz-hero__image {
  position: absolute;
  left: 16.809px;
  top: 0;
  width: 450px;
  height: 337px;
  object-fit: cover;
  border-radius: 24px;
}

.quiz-hero h1 {
  position: absolute;
  left: 780.904px;
  top: 147px;
  width: 446px;
  height: 208px;
  margin: 0;
  color: var(--quiz-pink-80);
  font-size: 36px;
  font-weight: 700;
  line-height: 52px;
  text-align: right;
}

.quiz-panel-section {
  width: 1440px;
  height: auto;
  position: relative;
  background: var(--quiz-white);
}

.quiz-panel-container {
  position: static;
  width: 1120px;
  margin: 56px auto 0;
  padding-bottom: 56px;
  height: auto;
}

/* Desktop quiz panel = a clean vertical flow (was a fixed-px absolute layout
   that overlapped the result card). Mobile overrides live in the media query. */
.quiz-panel-stack {
  position: static;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.quiz-panel-stack h2 {
  position: static;
  left: auto;
  top: auto;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0;
  color: var(--quiz-pink-80);
  font-size: 36px;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
}

.quiz-card {
  position: static;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  padding: 40px;
  box-sizing: border-box;
  border-radius: 28px;
  background: var(--quiz-pink-20);
}

.quiz-card__inner {
  position: static;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  direction: ltr;
}

.quiz-chevron {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin-top: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.quiz-chevron img {
  width: 48px;
  height: 48px;
}

/* Directional arrows from the shared down-chevron (RTL: right = next, left = prev). */
[data-quiz-prev] .quiz-chevron__icon { transform: rotate(90deg); }
[data-quiz-next] .quiz-chevron__icon { transform: rotate(-90deg); }

.quiz-questions {
  flex: 1 1 auto;
  min-width: 0;
  direction: rtl;
}

.quiz-question {
  position: static;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* The flow layout's display:flex would otherwise beat the [hidden] attribute the
   JS toggles — keep hidden questions/result collapsed (mirrors .fp-card[hidden]). */
.quiz-question[hidden],
.quiz-result[hidden] { display: none; }

.quiz-question__title {
  position: static;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  margin: 0;
  color: var(--quiz-pink-80);
  font-size: 24px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
}

.quiz-answers {
  position: static;
  left: auto;
  top: auto;
  width: 100%;
  max-width: 674px;
  height: auto;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-answer {
  width: 100%;
  height: auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--quiz-border);
  border-radius: 14px;
  background: var(--quiz-white);
  color: var(--quiz-text-soft);
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: background .15s, color .15s, border-color .15s;
}

.quiz-answer:hover {
  background: var(--quiz-pink-10);
  border-color: var(--quiz-pink-40);
}

.quiz-answer.is-active {
  background: var(--quiz-pink-base);
  border-color: var(--quiz-pink-base);
  color: var(--quiz-white);
}

.quiz-progress {
  position: static;
  left: auto;
  top: auto;
  width: auto;
  height: auto;
  margin: 24px auto 0;
  color: var(--quiz-text-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.quiz-footer {
  width: 1440px;
  height: 416px;
  padding: 48px 80px 24px;
  overflow: hidden;
  border-top: 1px solid rgba(252, 222, 229, 0.4);
  background: var(--quiz-pink-80);
  color: var(--quiz-white);
}

.quiz-footer__inner {
  width: 1280px;
  height: 244px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.quiz-footer h2,
.quiz-footer h3,
.quiz-footer p {
  margin: 0;
}

.quiz-footer__newsletter {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-footer__newsletter h2,
.quiz-footer__column h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.quiz-footer__newsletter p,
.quiz-footer__brand p,
.quiz-footer__column a,
.quiz-footer__bottom {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.quiz-footer__form {
  width: 300px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.quiz-footer__form button {
  width: 88px;
  height: 44px;
  border-radius: 99px;
  background: var(--quiz-white);
  color: var(--quiz-pink-80);
  font-weight: 700;
  cursor: pointer;
}

.quiz-footer__form input {
  width: 204px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(252, 222, 229, 0.3);
  border-radius: 99px;
  outline: 0;
  background: rgba(252, 222, 229, 0.1);
  color: var(--quiz-white);
  text-align: right;
}

.quiz-footer__form input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.quiz-footer__column {
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-footer__column a {
  color: rgba(255, 255, 255, 0.86);
}

.quiz-footer__brand {
  width: 285px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.quiz-footer__brand strong {
  font-family: Arial, sans-serif;
  font-size: 30px;
  line-height: 49px;
  letter-spacing: 0;
}

.quiz-footer__brand > span {
  width: 285px;
  height: 1px;
  background: rgba(252, 222, 229, 0.42);
}

.quiz-footer__social {
  display: flex;
  gap: 8px;
}

.quiz-footer__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--quiz-white);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.quiz-footer__bottom {
  width: 1280px;
  height: 52px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(252, 222, 229, 0.28);
  padding-top: 20px;
}

.quiz-footer__bottom p {
  font-size: 14px;
}

.quiz-footer__bottom div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-footer__bottom span {
  width: 1px;
  height: 16px;
  background: rgba(252, 222, 229, 0.42);
}

/* =====================================================================
   Quiz — mobile layout (Figma mobile frame 9566:58197, 375px)
   Desktop quiz is a fixed 1440px absolute layout; this stacks it fluidly.
   ===================================================================== */
@media (max-width: 767px) {
  .quiz-main {
    width: 100%;
    height: auto;
    padding: 0 0 32px;
  }

  /* Hero: stack image, title, subtitle */
  .quiz-hero {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 16px;
    text-align: center;
  }
  .quiz-hero__image-wrap {
    position: static;
    width: 100%;
    max-width: 343px;
    height: auto;
    aspect-ratio: 450 / 337;
    margin: 0 auto;
  }
  .quiz-hero__shadow { display: none; }
  .quiz-hero__image {
    position: static;
    width: 100%;
    height: 100%;
  }
  .quiz-hero h1 {
    position: static;
    width: 100%;
    left: auto; top: auto;
    font-size: 22px;
    line-height: 30px;
    text-align: center;
  }
  .quiz-hero__sub {
    position: static;
    width: 100%;
    left: auto; top: auto;
    font-size: 15px;
    line-height: 22px;
    text-align: center;
  }

  /* Card */
  .quiz-card {
    position: static;
    width: 100%;
    height: auto;
    top: auto; left: auto;
    margin-top: 8px;
  }
  .quiz-card__inner {
    position: static;
    width: 100%;
    height: auto;
    left: auto; top: auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 16px;
    box-sizing: border-box;
  }

  /* Question + answers stack */
  .quiz-question {
    position: static;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    left: auto; top: auto;
  }
  .quiz-question__title {
    position: static;
    width: 100%;
    height: auto;
    left: auto; top: auto;
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 16px;
    text-align: right;
  }
  .quiz-answers {
    position: static;
    width: 100%;
    height: auto;
    left: auto; top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .quiz-answer {
    width: 100%;
    height: auto;
    min-height: 48px;
    font-size: 15px;
    box-sizing: border-box;
  }

  /* Nav chevrons: shrink and align beside the question */
  .quiz-chevron {
    margin-top: 0;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }
  /* The icon is a masked <span> with an inline 48px size — override it here. */
  .quiz-chevron .quiz-chevron__icon { width: 22px !important; height: 22px !important; }

  .quiz-card { padding: 20px 16px; }
}

/* ---- Quiz result card (shown after the last question) ---- */
.quiz-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 8px 0;
  text-align: center;
}
.quiz-result__lead {
  margin: 0;
  color: var(--quiz-pink-60);
  font-size: 18px;
  font-weight: 700;
}
.quiz-result__card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  padding: 16px;
  border: 1px solid var(--quiz-border);
  border-radius: 16px;
  background: var(--quiz-pink-10);
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
.quiz-result__card:hover { box-shadow: 0 12px 28px var(--quiz-shadow); transform: translateY(-2px); }
.quiz-result__media {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
}
.quiz-result__media img { width: 100%; height: 100%; object-fit: contain; }
.quiz-result__info { display: flex; flex-direction: column; gap: 6px; text-align: right; min-width: 0; }
.quiz-result__name { color: var(--quiz-pink-80); font-size: 16px; font-weight: 700; line-height: 1.5; }
.quiz-result__price { color: var(--quiz-pink-base); font-size: 18px; font-weight: 800; }
.quiz-result__note {
  margin: 0;
  max-width: 420px;
  color: var(--quiz-text-soft);
  font-size: 14px;
  line-height: 1.7;
}
.quiz-result__restart {
  margin-top: 4px;
  padding: 12px 28px;
  border: 1.5px solid var(--quiz-pink-base);
  border-radius: 999px;
  background: var(--quiz-pink-base);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.quiz-result__restart:hover { background: var(--quiz-pink-60); border-color: var(--quiz-pink-60); }

.quiz-chevron[disabled] { opacity: .4; cursor: default; }

/* Nav chevrons take the page (pink) primary color via the masked icon */
.quiz-chevron { color: var(--primary, #c04a65); }
.quiz-chevron__icon { width: 48px; height: 48px; }

/* Quiz result — "أضف للسلة" primary CTA (Step 11). */
.quiz-result__add {
  margin-top: 4px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--quiz-pink-base);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.quiz-result__add:hover { background: var(--quiz-pink-60); }
.quiz-result__add:disabled { opacity: .6; cursor: default; }
