:root {
  --ink: #18211c;
  --paper: #fdfcf9;
  --mist: #eff1ea;
  --sand: #efe9dc;
  --cream: #ebe7df;
  --forest: #3a4f43;
  --pine: #233129;
  --thread-yellow: #f6d21f;
  --thread-blue: #2aa5e8;

  --soft: color-mix(in srgb, var(--ink) 68%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 14%, var(--paper));
  --ground: var(--forest);

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 72px;

  --gutter: clamp(20px, 5vw, 72px);
  --page: 1180px;
  --display: 'Aref Ruqaa', 'IBM Plex Sans Arabic', serif;
  --text: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --stitch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14'%3E%3Cpath d='M0 13 10 5 20 13' fill='none' stroke='%2318211c' stroke-width='1.6'/%3E%3Cpath d='M0 9 10 1 20 9' fill='none' stroke='%23f6d21f' stroke-width='2.6'/%3E%3C/svg%3E");
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 8 36 22 22 36 8 22ZM22 17 27 22 22 27 17 22Z' fill='none' stroke='%233a4f43' stroke-opacity='.09' stroke-width='1.2'/%3E%3C/svg%3E");
}

body[data-color='red'] {
  --ground: var(--pine);
}

body[data-color='black'] {
  --ground: #e3dbc9;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
fieldset {
  margin: 0;
  padding: 0;
}

fieldset {
  border: 0;
  min-width: 0;
}

ul,
ol {
  list-style: none;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--thread-blue);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.45;
  color: var(--forest);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.625rem, 1.9rem + 3vw, 4rem);
}

h2 {
  font-size: clamp(2.125rem, 1.7rem + 1.8vw, 2.875rem);
}

h3 {
  font-size: 1.625rem;
}

.topbar {
  display: flex;
  justify-content: center;
  padding: var(--s3) var(--gutter);
}

.brand {
  border-radius: 50%;
}

.brand img {
  width: 60px;
  height: 60px;
}

.tag {
  padding: var(--s1) var(--s3);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--forest);
  background: color-mix(in srgb, var(--forest) 13%, var(--paper));
  white-space: nowrap;
}

.product {
  display: grid;
  gap: var(--s5);
  padding: 0 var(--s3) var(--s7);
}

.gallery {
  display: grid;
  gap: var(--s3);
  min-width: 0;
}

.stage {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ground);
  transition: background-color 480ms ease;
}

.stage::after {
  content: '';
  position: absolute;
  inset-inline: var(--s5);
  inset-block-end: var(--s4);
  height: 14px;
  background: var(--stitch) repeat-x center;
  pointer-events: none;
}

.stage__track {
  position: relative;
  display: flex;
  aspect-ratio: 4 / 3;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.stage__track::-webkit-scrollbar {
  display: none;
}

.stage__track:focus-visible {
  outline-offset: -6px;
}

.stage__track li {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.stage__track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: flex;
  justify-content: center;
  gap: var(--s2);
}

.thumb {
  appearance: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ground);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 160ms ease, background-color 480ms ease, translate 160ms ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb:hover {
  opacity: 0.85;
  translate: 0 -2px;
}

.thumb[aria-current='true'] {
  opacity: 1;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.buybox {
  display: grid;
  gap: var(--s3);
  min-width: 0;
  padding-inline: var(--s2);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--soft);
  max-width: 30rem;
}

.offer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s3);
}

.price {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  white-space: nowrap;
}

.offer .price {
  font-size: 2rem;
}

.was {
  color: var(--soft);
  font-weight: 400;
  font-size: 1.125rem;
  text-decoration-thickness: 1.5px;
  white-space: nowrap;
}

.proof {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: fit-content;
  max-width: 100%;
  padding: var(--s2) var(--s3);
  padding-inline-end: var(--s4);
  border-radius: 20px;
  font-size: 0.9375rem;
  color: inherit;
  text-decoration: none;
  background: var(--sand);
  transition: background-color 160ms ease, translate 160ms ease;
}

.proof:hover {
  translate: 0 -2px;
  background: color-mix(in srgb, var(--forest) 10%, var(--sand));
}

.proof__faces {
  display: flex;
  flex: none;
}

.proof__faces img {
  width: 40px;
  height: 40px;
  border: 2px solid var(--sand);
  border-radius: 50%;
  object-fit: cover;
}

.proof__faces img + img {
  margin-inline-start: calc(var(--s3) * -1);
}

.proof__text {
  display: grid;
  line-height: 1.5;
}

.proof__quote {
  font-weight: 500;
}

.proof__more {
  font-size: 0.875rem;
  color: var(--soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order {
  display: grid;
  gap: var(--s4);
  margin-block-start: var(--s3);
  padding-block-start: var(--s5);
  border-block-start: 1px solid var(--line);
  scroll-margin-block-start: var(--s3);
}

.order legend,
.field > span:first-child {
  margin-block-end: var(--s1);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--soft);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.swatches legend {
  width: 100%;
}

.swatch {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  padding: var(--s1) var(--s4) var(--s1) var(--s3);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.swatch input,
.size input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.swatch__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent);
}

.swatch:hover,
.size:hover {
  border-color: var(--soft);
}

.swatch:has(input:checked) {
  border-color: var(--forest);
  background: var(--mist);
}

.swatch:has(input:focus-visible),
.size:has(input:focus-visible) {
  outline: 3px solid var(--thread-blue);
  outline-offset: 3px;
}

.sizes__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s2);
}

.size {
  position: relative;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.size:has(input:checked) {
  color: var(--paper);
  background: var(--forest);
  border-color: var(--forest);
}

.sizes.is-invalid .size {
  border-color: #c4161c;
}

.order__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3) var(--s4);
}

.order__fields > * {
  grid-column: 1 / -1;
}

.field {
  display: grid;
}

.field input,
.field textarea {
  width: 100%;
  padding: var(--s3) var(--s4);
  border: 1.5px solid transparent;
  border-radius: 10px;
  font: 400 1.0625rem/1.5 var(--text);
  color: var(--ink);
  background: var(--mist);
  resize: vertical;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.field input[dir='ltr'] {
  text-align: end;
}

.field input::placeholder {
  color: color-mix(in srgb, var(--ink) 38%, var(--mist));
}

.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--forest);
  background: var(--paper);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 22%, transparent);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #c4161c;
}

.error {
  margin-block-start: var(--s1);
  font-size: 0.875rem;
  font-weight: 500;
  color: #b01218;
}

.order__submit {
  display: grid;
  gap: var(--s2);
  margin-block-start: var(--s2);
}

.order__submit .error {
  text-align: center;
}

.order__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  font-weight: 500;
}

.note {
  font-size: 0.9375rem;
  color: var(--soft);
  text-align: center;
}

.btn {
  appearance: none;
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: var(--s4) var(--s6);
  font: 600 1.125rem/1.4 var(--text);
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--thread-yellow);
  outline: 1.5px dashed color-mix(in srgb, var(--ink) 70%, transparent);
  outline-offset: -7px;
  cursor: pointer;
  transition: outline-offset 160ms ease, translate 160ms ease, background-color 160ms ease;
}

.btn:hover {
  outline-offset: -5px;
  translate: 0 -2px;
  background: #ffe04a;
}

.btn:active {
  translate: 0 0;
  scale: 0.98;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  translate: 0 0;
}

.btn:focus-visible {
  outline: 3px solid var(--thread-blue);
  outline-offset: 3px;
}

.btn--wide {
  width: 100%;
  padding-block: 18px;
  font-size: 1.1875rem;
}

.done {
  display: grid;
  justify-items: center;
  gap: var(--s3);
  margin-block-start: var(--s3);
  padding: var(--s7) var(--s5);
  border-radius: 22px;
  text-align: center;
  background: var(--mist);
}

.done__mark {
  width: 64px;
  height: 64px;
  color: var(--forest);
}

.done h2:focus {
  outline: 0;
}

.voices {
  padding: var(--s8) var(--gutter);
  background: var(--sand) var(--motif);
}

.voices__head,
.voices__wall {
  max-width: var(--page);
  margin-inline: auto;
}

.voices__head p {
  max-width: 34rem;
  margin-block-start: var(--s2);
  color: var(--soft);
}

.voices__wall {
  margin-block-start: var(--s6);
  column-gap: var(--s5);
}

.chat {
  display: grid;
  justify-items: start;
  gap: 3px;
  break-inside: avoid;
  padding-block-end: var(--s6);
}

.bubble {
  position: relative;
  max-width: min(100%, 23rem);
  margin: 0;
  padding: var(--s2) var(--s4);
  border-radius: 20px;
  line-height: 1.6;
  background: #fff;
  box-shadow: 0 1px 1px color-mix(in srgb, var(--ink) 10%, transparent);
}

.bubble + .bubble {
  border-start-start-radius: 6px;
}

.bubble:not(:last-child) {
  border-end-start-radius: 6px;
}

.bubble--photo {
  max-width: 16rem;
  padding: var(--s1);
}

.bubble--photo img {
  width: 100%;
  border-radius: 16px;
}

.bubble--photo + .bubble {
  border-start-start-radius: 6px;
}

.bubble--photo figcaption {
  padding: var(--s2) var(--s3) var(--s1);
}

.chat > :last-child::after {
  content: '\2764\FE0F';
  position: absolute;
  inset-block-end: -16px;
  inset-inline-start: var(--s3);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font: 13px/1 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  background: #fff;
  box-shadow: 0 0 0 2px var(--sand);
  transition: scale 420ms cubic-bezier(0.3, 1.7, 0.5, 1);
}

.voices.is-armed .chat:not(.is-seen) > :last-child::after {
  scale: 0;
}

.voices__more {
  appearance: none;
  display: block;
  margin: var(--s2) auto 0;
  padding: var(--s3) var(--s5);
  border: 1.5px solid var(--forest);
  border-radius: 999px;
  font: 600 1rem/1.4 var(--text);
  color: var(--forest);
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.voices__more:hover {
  color: var(--paper);
  background: var(--forest);
}

.why {
  padding: var(--s8) var(--gutter);
  color: var(--cream);
  background: var(--forest);
}

.why h2,
.why h3 {
  color: inherit;
}

.why h2,
.why__list {
  max-width: var(--page);
  margin-inline: auto;
}

.why__list {
  display: grid;
  gap: var(--s6);
  margin-block-start: var(--s6);
}

.why__item {
  display: grid;
  grid-template-columns: 34% 1fr;
  align-items: center;
  gap: var(--s5);
}

.why__item img {
  width: 100%;
  height: 128px;
  border-radius: 14px;
  object-fit: cover;
}

.why__item p {
  color: color-mix(in srgb, var(--cream) 80%, var(--forest));
}

.how {
  display: grid;
  gap: var(--s5);
  max-width: calc(var(--page) + var(--gutter) * 2);
  margin-inline: auto;
  padding: var(--s8) var(--gutter);
}

.steps {
  display: grid;
  gap: var(--s3);
  counter-reset: step;
  max-width: 34rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--s3);
  align-items: baseline;
}

.steps li::before {
  content: counter(step);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--forest);
}

.reels {
  padding-block: var(--s8);
  color: var(--cream);
  background: var(--forest);
}

.reels__head {
  max-width: calc(var(--page) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.reels__head h2 {
  color: inherit;
}

.reels__head p {
  margin-block-start: var(--s2);
  color: color-mix(in srgb, var(--cream) 80%, var(--forest));
}

.reels__rail {
  display: flex;
  gap: var(--s4);
  margin-block-start: var(--s6);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.reels__rail::-webkit-scrollbar {
  display: none;
}

.reel {
  position: relative;
  flex: 0 0 min(68%, 280px);
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  scroll-snap-align: center;
  background: var(--pine);
}

.reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel__toggle {
  appearance: none;
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.reel__toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 64px;
  height: 64px;
  margin: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='32' fill='%23ebe7df' fill-opacity='.92'/%3E%3Cpath d='M26 20 46 32 26 44Z' fill='%2318211c'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity 200ms ease, scale 200ms ease;
}

.reel.is-playing .reel__toggle::after {
  opacity: 0;
  scale: 0.8;
}

.reel__toggle:focus-visible {
  outline-offset: -6px;
}

.reel__pick {
  appearance: none;
  position: absolute;
  inset-inline: var(--s3);
  inset-block-end: var(--s3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  font: 600 1rem/1.4 var(--text);
  color: var(--ink);
  background: var(--cream);
  cursor: pointer;
  transition: translate 160ms ease, background-color 160ms ease;
}

.reel__pick:hover {
  translate: 0 -2px;
  background: #fff;
}

.reel__pick:active {
  translate: 0 0;
  scale: 0.98;
}

.footer {
  display: grid;
  justify-items: center;
  gap: var(--s2);
  padding: var(--s7) var(--gutter) calc(var(--s8) * 2 + var(--s4));
  font-size: 0.9375rem;
  color: var(--soft);
  border-block-start: 1px solid var(--line);
}

.footer img {
  width: 72px;
  height: 72px;
  margin-block-end: var(--s2);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2) var(--s5);
  margin-block-start: var(--s2);
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  color: var(--forest);
  font-weight: 500;
  text-underline-offset: 3px;
}

.float {
  position: fixed;
  left: var(--gutter);
  bottom: calc(72px + var(--s4) + env(safe-area-inset-bottom));
  z-index: 4;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ink) 28%, transparent);
  scale: 0.6;
  opacity: 0;
  visibility: hidden;
  transition: scale 200ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease, visibility 200ms;
}

.float.is-visible {
  scale: 1;
  opacity: 1;
  visibility: visible;
}

.float:active {
  scale: 0.94;
}

.dock {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));
  color: var(--cream);
  background: var(--pine);
  translate: 0 110%;
  visibility: hidden;
  transition: translate 240ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 240ms;
}

.dock.is-visible {
  translate: 0 0;
  visibility: visible;
}

.dock .btn {
  flex: 1;
  max-width: 260px;
  padding-block: var(--s3);
}

.dock .was {
  display: block;
  color: color-mix(in srgb, var(--cream) 64%, var(--pine));
  font-size: 0.8125rem;
  line-height: 1.2;
}

@media (max-width: 559px) {
  .voices__wall.is-folded {
    max-height: 42rem;
    overflow: hidden;
    mask-image: linear-gradient(#000 72%, transparent);
  }
}

@media (min-width: 560px) {
  .voices__wall {
    columns: 2;
  }

  .voices__more {
    display: none;
  }

  .order__fields > .field--half {
    grid-column: span 1;
  }

  .sizes__row {
    grid-template-columns: repeat(6, 56px);
  }

  .why__item img {
    height: 168px;
  }
}

@media (min-width: 900px) {
  .product {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--s8);
    max-width: calc(var(--page) + var(--gutter) * 2);
    margin-inline: auto;
    padding: var(--s3) var(--gutter) var(--s8);
  }

  .gallery {
    position: sticky;
    inset-block-start: var(--s5);
  }

  .thumb {
    width: 60px;
    height: 60px;
  }

  .buybox {
    padding-inline: 0;
  }

  .brand img {
    width: 68px;
    height: 68px;
  }

  .voices__wall {
    columns: 3;
    column-gap: var(--s7);
  }

  .reels__rail {
    justify-content: center;
    gap: var(--s6);
  }

  .why__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s7);
  }

  .why__item {
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: start;
  }

  .why__item img {
    height: 220px;
  }

  .dock {
    inset-inline: auto;
    inset-block-end: var(--s5);
    left: 50%;
    width: min(520px, 100vw - 48px);
    padding: var(--s3);
    padding-inline-start: var(--s5);
    border-radius: 16px;
    translate: -50% 160%;
  }

  .dock.is-visible {
    translate: -50% 0;
  }

  .float {
    bottom: var(--s5);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
