/* Ritaj Simsim: brand layer on top of Chameleon (tokens, base, header, footer, buttons). */

:root {
  --rs-surface: #fffbf4;
  --rs-sand-100: color-mix(in srgb, var(--rs-accent) 18%, var(--rs-bg));
  --rs-sand-200: color-mix(in srgb, var(--rs-accent) 38%, var(--rs-bg));
  --rs-gold: color-mix(in srgb, var(--rs-accent) 78%, var(--rs-primary));
  --rs-gilt-light: #e2c487;
  --rs-gilt: #c9a259;
  --rs-gilt-deep: #b38a45;
  --rs-order-shadow: inset 0 1px 0 rgb(255 249 225 / 0.95), inset 0 -3px 6px rgb(150 100 20 / 0.35), 0 12px 24px -12px rgb(176 124 30 / 0.85);
  --rs-order-shadow-up: inset 0 1px 0 rgb(255 249 225 / 0.95), inset 0 -3px 6px rgb(150 100 20 / 0.35), 0 20px 34px -12px rgb(196 140 34 / 0.95);
  --rs-muted: color-mix(in srgb, var(--rs-text) 74%, var(--rs-bg));
  --rs-line: color-mix(in srgb, var(--rs-accent) 45%, transparent);
  --rs-radius: 18px;
  --rs-radius-lg: 28px;
  --rs-shadow: 0 18px 40px -24px rgb(57 41 31 / 0.45);
  --rs-shadow-soft: 0 8px 24px -16px rgb(57 41 31 / 0.35);
  --rs-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --rs-gutter: 16px;
  --rs-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 12l3.4 4.6 5.7-.9-.9 5.7L40.8 25l-4.6 3.4.9 5.7-5.7-.9L28 37.8l-3.4-4.6-5.7.9.9-5.7L15.2 25l4.6-3.4-.9-5.7 5.7.9z' fill='none' stroke='%23C8A97E' stroke-width='1' opacity='.55'/%3E%3C/svg%3E");
  --rs-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V54C0 33 14 25 27 17 39 10 46 6 50 0c4 6 11 10 23 17 13 8 27 16 27 37v66z'/%3E%3C/svg%3E");

  /* Chameleon tokens mapped to the brand palette (replaces the runtime colour generator). */
  --font-body-lg: 400 17px/1.7 var(--font-family);
  --font-body-md: 400 16px/1.7 var(--font-family);
  --font-title-md: 600 17px/1.5 var(--font-family);
}

body[data-theme-mode="light"] {
  --color-primary: var(--rs-primary);
  --color-on-primary: var(--rs-bg);
  --color-primary-container: var(--rs-sand-100);
  --color-on-primary-container: var(--rs-text);
  --color-background: var(--rs-bg);
  --color-on-background: var(--rs-text);
  --color-surface: var(--rs-bg);
  --color-on-surface: var(--rs-text);
  --color-surface-container-lowest: var(--rs-surface);
  --color-surface-container-low: color-mix(in srgb, var(--rs-accent) 12%, var(--rs-bg));
  --color-surface-container: var(--rs-sand-100);
  --color-surface-container-high: color-mix(in srgb, var(--rs-accent) 26%, var(--rs-bg));
  --color-surface-container-highest: var(--rs-sand-200);
  --color-surface-variant: var(--rs-sand-100);
  --color-on-surface-variant: var(--rs-muted);
  --color-outline: var(--rs-gold);
  --color-outline-variant: var(--rs-line);
  --color-error: #b3261e;
  --color-on-error: #ffffff;
  --color-error-container: #f9dedc;
  --color-on-error-container: #410e0b;
  --color-overlay: rgb(46 32 24 / 0.45);
  --color-loader: var(--rs-bg);
}

/* Base */
html,
body {
  overflow-x: clip;
}

/* Material icons are written as words ("close_small") until their font arrives: keep those words invisible. */
html.rs-js:not(.rs-icons) [ui-icon] {
  color: transparent;
}

/* Empty states (cart, search, collections) */
.rs-empty[ui-empty] {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 48px 16px;
  text-align: center;

  .rs-empty__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50% 50% 18px 18px;
    color: var(--rs-primary);
    background-color: var(--rs-sand-100);
    opacity: 1;
  }

  .rs-empty__text {
    font-size: 17px;
    font-weight: 600;
    color: var(--rs-text);
  }
}

/* Cart drawer: quantity and remove buttons big enough for a thumb (Chameleon draws them at 24 px). */
ui-drawer.cart .drawer-content .item .actions {
  gap: 8px;

  :is(ui-quantity button[ui-button], ui-cart-remove button[ui-button]) {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }
}

/* Closed drawers sit off-canvas: keep them out of the tab order and out of the RTL scroll area. */
ui-drawer .drawer-content[data-state="closed"] {
  visibility: hidden;
  transition:
    inset-inline-end 0.5s var(--rs-ease),
    visibility 0s linear 0.5s;
}

ui-drawer .drawer-content[data-state="open"] {
  visibility: visible;
  transition: inset-inline-end 0.5s var(--rs-ease);
}

body {
  align-items: stretch;
  padding: 0;
  font: var(--font-body-md);
  color: var(--rs-text);
  background-color: var(--rs-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body > [layout="main"] {
  gap: 0;
}

body:not([data-template="index"], [data-template="page"]) > [layout="main"] {
  gap: var(--spacing-12);
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding: var(--spacing-16);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--rs-primary);
  outline-offset: 3px;
}

.rs-container {
  width: 100%;
  max-width: 1232px;
  margin-inline: auto;
  padding-inline: var(--rs-gutter);
}

.rs-icon {
  flex-shrink: 0;
  display: block;
}

[dir="rtl"] .rs-icon--arrow {
  transform: scaleX(-1);
}

.rs-wordmark {
  display: grid;
  line-height: 1.2;

  .rs-wordmark__main {
    font-weight: 700;
    font-size: clamp(19px, 4.6vw, 22px);
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .rs-wordmark__sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--rs-primary);
  }
}

/* Typography helpers */
.rs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--rs-primary);

  .rs-icon {
    color: var(--rs-gold);
  }
}

.rs-h2 {
  font-weight: 700;
  font-size: clamp(24px, 1.2rem + 1.2vw, 34px);
  line-height: 1.4;
  color: var(--rs-text);
  text-wrap: balance;
}

/* Long paragraphs are justified from tablet up; on phones the narrow column stays aligned to the start. */
@media (min-width: 768px) {
  .rs-justify,
  .rs-prose p,
  .rs-prose li {
    text-align: justify;
    text-align-last: start;
    /* English words break at syllables instead of stretching the spaces; no effect on Arabic. */
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

/* YouCan adds an anti-spam field to its forms, pushed 9999 px to the left by an inline style. In a right-to-left
   page that widens the page by as much and the content slides off screen (the contact page looked blank).
   Kept in the form for the bots, but in place, 1 px and invisible. */
input[name="hidden_check"] {
  position: absolute !important;
  inset: auto !important;
  inset-inline-start: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
  opacity: 0;
  clip-path: inset(50%);
  pointer-events: none;
}

/* Touch targets: 44 px minimum for the Chameleon drawers too. */
ui-drawer .drawer-content {
  .items .item > a,
  .sub-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .header button[ui-button][as-icon] {
    width: 44px;
    height: 44px;
  }
}

.rs-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--rs-primary);
  text-decoration: underline;
  text-decoration-color: var(--rs-accent);
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s;

  &:hover {
    text-decoration-color: var(--rs-primary);
  }
}

/* Load-in animation for the hero (no JavaScript needed; paused while the intro plays). */
.rs-rise {
  animation: rs-rise 0.9s var(--rs-ease) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

html.rs-intro-wait .rs-rise {
  animation-play-state: paused;
}

@keyframes rs-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rs-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 220px;
  margin-block: 14px 18px;
  color: var(--rs-accent);

  span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rs-accent), transparent);
  }
}

/* Buttons */
.rs-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 16px/1.3 var(--font-family);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--rs-ease),
    box-shadow 0.25s var(--rs-ease),
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;

  &:active {
    transform: scale(0.98);
  }
}

.rs-btn--lg {
  min-height: 58px;
  padding-inline: 32px;
  font-size: 17px;
}

.rs-btn--primary {
  color: var(--rs-bg);
  background-color: var(--rs-primary);
  box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--rs-primary) 90%, transparent);

  &::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-block: 0;
    inset-inline-start: -60%;
    width: 50%;
    background: linear-gradient(100deg, transparent, rgb(255 236 200 / 0.35), transparent);
    transform: skewX(-18deg);
    transition: inset-inline-start 0.7s var(--rs-ease);
  }

  &:hover {
    background-color: color-mix(in srgb, var(--rs-primary) 86%, black);
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -16px color-mix(in srgb, var(--rs-primary) 95%, transparent);

    &::after {
      inset-inline-start: 120%;
    }
  }
}

/* Order button (product pages): bright polished gold, like a jewel (owner's choice), with dark text. Bands of light
   in the gradient, a bevel and a deeper gold rim keep it apart from the cream page. With [data-rs-attention], a short
   burst every 3.6 s (owner's request: it trembles to catch the eye): the button grows a little and shakes for under a
   second, the bag shakes with it, then a white glint sweeps across the gold and a sparkle twinkles at its end. A burst,
   not a constant tremor, so the label stays readable between two. It stops under the pointer or the keyboard focus;
   rs-product.js runs it only while the button is on screen, until the visitor starts filling the form; it never runs
   with reduced motion. */
.rs-btn--order {
  --rs-sweep: 1;
  color: var(--rs-dark);
  background-color: #e0b244;
  background-image: linear-gradient(180deg, #fbe7a1 0%, #f2cc66 28%, #dfae3e 52%, #c99327 78%, #e8c25e 100%);
  border-color: #b07d1e;
  box-shadow: var(--rs-order-shadow);

  &::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-block: 0;
    inset-inline-start: 0;
    width: 32%;
    background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.85), transparent);
    transform: translateX(calc(var(--rs-sweep) * -130%)) skewX(-18deg);
  }

  &:not([data-loading])::before {
    content: "";
    position: absolute;
    inset-block-start: 5px;
    inset-inline-end: 14px;
    width: 19px;
    height: 19px;
    background-color: #fff;
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    opacity: 0;
    scale: 0;
    pointer-events: none;
  }

  &:hover {
    background-image: linear-gradient(180deg, #fff0bf 0%, #f7d679 28%, #e8bb4d 52%, #d29e30 78%, #efcd70 100%);
    transform: translateY(-2px);
    box-shadow: var(--rs-order-shadow-up);

    &::after {
      transform: translateX(calc(var(--rs-sweep) * 300%)) skewX(-18deg);
      transition: transform 0.8s var(--rs-ease);
    }
  }

  &[data-rs-attention-on]:not(:hover, :focus-visible, [data-loading], [disabled]) {
    animation: rs-gilt-shake 3.6s ease-in-out 0.6s infinite;

    &::after {
      animation: rs-gilt-sweep 3.6s ease-in-out 0.6s infinite;
    }

    &::before {
      animation: rs-gilt-twinkle 3.6s ease-out 0.6s infinite;
    }

    svg {
      animation: rs-gilt-tilt 3.6s ease-in-out 0.6s infinite;
    }
  }
}

[dir="rtl"] .rs-btn--order {
  --rs-sweep: -1;
}

@keyframes rs-gilt-shake {
  0%,
  56%,
  80%,
  100% {
    scale: 1;
    rotate: 0deg;
    box-shadow: var(--rs-order-shadow);
  }

  59% {
    scale: 1.05;
    rotate: -2.5deg;
    box-shadow: var(--rs-order-shadow-up);
  }

  62% {
    rotate: 2.5deg;
  }

  65% {
    rotate: -2.5deg;
  }

  68% {
    rotate: 2.5deg;
  }

  71% {
    rotate: -2deg;
  }

  74% {
    scale: 1.05;
    rotate: 1.5deg;
  }

  77% {
    scale: 1.02;
    rotate: 0deg;
  }
}

@keyframes rs-gilt-sweep {
  0%,
  74% {
    transform: translateX(calc(var(--rs-sweep) * -130%)) skewX(-18deg);
  }

  92%,
  100% {
    transform: translateX(calc(var(--rs-sweep) * 300%)) skewX(-18deg);
  }
}

@keyframes rs-gilt-tilt {
  0%,
  56%,
  80%,
  100% {
    rotate: 0deg;
  }

  60% {
    rotate: -14deg;
  }

  64% {
    rotate: 12deg;
  }

  68% {
    rotate: -10deg;
  }

  72% {
    rotate: 8deg;
  }

  76% {
    rotate: -4deg;
  }
}

@keyframes rs-gilt-twinkle {
  0%,
  86%,
  100% {
    opacity: 0;
    scale: 0;
    rotate: 0deg;
  }

  92% {
    opacity: 1;
    scale: 1;
    rotate: 45deg;
  }

  98% {
    opacity: 0;
    scale: 0.4;
    rotate: 90deg;
  }
}

.rs-btn--outline {
  color: var(--rs-primary);
  border-color: var(--rs-primary);
  background-color: transparent;

  &:hover {
    color: var(--rs-bg);
    background-color: var(--rs-primary);
  }
}

.rs-btn--ghost {
  min-height: 44px;
  padding-inline: 14px;
  color: var(--rs-primary);
  background-color: transparent;

  &:hover {
    background-color: var(--rs-sand-100);
  }
}

.rs-btn--outline-light {
  color: var(--rs-bg);
  border-color: color-mix(in srgb, var(--rs-bg) 55%, transparent);
  background-color: transparent;

  &:hover {
    color: var(--rs-dark);
    background-color: var(--rs-bg);
  }
}

/* Announcement bar */
.rs-announce {
  color: var(--rs-bg);
  background-color: var(--rs-primary);
  font-size: 14px;
  font-weight: 600;

  .rs-announce__list {
    display: grid;
    min-height: 38px;
    align-items: center;
    justify-items: center;
    padding-inline: var(--rs-gutter);
  }

  .rs-announce__item {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(6px);
    transition:
      opacity 0.5s,
      transform 0.5s var(--rs-ease);

    &.is-active {
      opacity: 1;
      transform: none;
    }

    .rs-icon {
      color: var(--rs-accent);
    }
  }
}

/* Header */
#youcan-section--header:has(.rs-header[data-sticky]) {
  position: sticky;
  z-index: 60;
  inset-block-start: 0;
}

.rs-header {
  position: relative;
  isolation: isolate;
  border-block-end: 1px solid var(--rs-line);
  transition: box-shadow 0.3s;

  /* The frosted glass lives on a layer behind the header, never on the header itself: a backdrop-filter
     would make the header the frame of the cart and menu drawers (position: fixed) and crush them. */
  &::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background-color: color-mix(in srgb, var(--rs-bg) 92%, transparent);
    backdrop-filter: saturate(1.2) blur(12px);
    -webkit-backdrop-filter: saturate(1.2) blur(12px);
    pointer-events: none;
  }

  &.is-scrolled {
    box-shadow: 0 10px 30px -22px rgb(57 41 31 / 0.6);
  }

  .rs-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "menu brand actions";
    align-items: center;
    gap: 12px;
    min-height: 68px;
  }

  .rs-header__menu {
    grid-area: menu;
    justify-self: start;
  }

  .rs-header__brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--rs-text);

    img {
      display: block;
      height: auto;
    }
  }

  .rs-header__mark {
    width: 40px;
  }

  .rs-wordmark__sub {
    display: none;
  }

  .rs-header__nav {
    display: none;
  }

  .rs-header__actions {
    grid-area: actions;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .action {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    color: var(--rs-text);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s;

    &:hover {
      background-color: var(--rs-sand-100);
    }
  }

  .rs-cart-count {
    position: absolute;
    inset-block-start: 4px;
    inset-inline-end: 2px;
    min-width: 21px;
    height: 21px;
    padding-inline: 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font: 700 11px/1 var(--font-family);
    color: var(--rs-bg);
    background-color: var(--rs-primary);
    box-shadow: 0 0 0 2px var(--rs-bg);

    ui-cart-bubble {
      line-height: 1;
    }
  }

  .rs-lang__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding-inline: 12px;
    border-radius: 999px;
    border: 1px solid var(--rs-line);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: var(--rs-text);

    &:hover {
      border-color: var(--rs-primary);
    }
  }

  ui-search .search-content {
    color: var(--rs-text);
  }
}

@media (max-width: 767px) {
  .rs-header .rs-lang__link span {
    display: none;
  }

  .rs-header .rs-lang__link {
    width: 44px;
    padding: 0;
    justify-content: center;
    border: none;
  }
}

@media (min-width: 1025px) {
  :root {
    --rs-gutter: 32px;
  }

  .rs-header {
    .rs-header__inner {
      grid-template-columns: auto 1fr auto;
      grid-template-areas: "brand nav actions";
      gap: 32px;
      min-height: 80px;
    }

    .rs-header__menu {
      display: none;
    }

    .rs-header__mark {
      width: 46px;
    }

    .rs-wordmark__sub {
      display: block;
    }

    .rs-header__nav {
      grid-area: nav;
      display: flex;
      justify-content: center;

      ul {
        display: flex;
        gap: 6px;
      }
    }

    .rs-header__link {
      position: relative;

      & > a {
        display: block;
        padding: 10px 14px;
        font-weight: 600;
        font-size: 16px;
        text-decoration: none;
        white-space: nowrap;
        color: var(--rs-text);
        background-image: linear-gradient(var(--rs-accent), var(--rs-accent));
        background-size: 0 2px;
        background-position: 50% calc(100% - 4px);
        background-repeat: no-repeat;
        transition: background-size 0.3s var(--rs-ease), color 0.2s;
      }

      & > a:hover,
      &:focus-within > a {
        color: var(--rs-primary);
        background-size: calc(100% - 28px) 2px;
      }

      .rs-header__sub {
        position: absolute;
        inset-block-start: 100%;
        inset-inline-start: 0;
        min-width: 220px;
        display: grid;
        padding: 8px;
        border-radius: 16px;
        background-color: var(--rs-surface);
        border: 1px solid var(--rs-line);
        box-shadow: var(--rs-shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition:
          opacity 0.2s,
          transform 0.25s var(--rs-ease),
          visibility 0.2s;

        a {
          padding: 10px 12px;
          border-radius: 10px;
          text-decoration: none;

          &:hover {
            background-color: var(--rs-sand-100);
          }
        }
      }

      &:hover .rs-header__sub,
      &:focus-within .rs-header__sub {
        opacity: 1;
        visibility: visible;
        transform: none;
      }
    }
  }
}

/* Medium desktops: the menu links stay on one line (tighter links, the language button shrinks to its globe). */
@media (min-width: 1025px) and (max-width: 1279px) {
  .rs-header {
    .rs-header__inner {
      gap: 20px;
    }

    .rs-header__nav ul {
      gap: 0;
    }

    .rs-header__link {
      & > a {
        padding-inline: 8px;
        font-size: 15px;
      }

      & > a:hover,
      &:focus-within > a {
        background-size: calc(100% - 16px) 2px;
      }
    }

    .rs-lang__link {
      width: 44px;
      padding: 0;
      justify-content: center;
      border: none;

      span {
        display: none;
      }
    }
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --rs-gutter: 24px;
  }
}

/* Footer */
.rs-footer {
  position: relative;
  overflow: hidden;
  margin-block-start: 0;
  color: #e9dfcf;
  background-color: var(--rs-dark);

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

  .rs-footer__pattern {
    position: absolute;
    inset: 0;
    background-image: var(--rs-star);
    background-size: 56px;
    opacity: 0.25;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
    pointer-events: none;
  }

  .rs-footer__inner {
    position: relative;
    display: grid;
    gap: 40px;
    padding-block: 56px 32px;
  }

  .rs-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--rs-bg);
  }

  .rs-wordmark__sub {
    color: var(--rs-accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .rs-footer__tagline {
    margin-block: 14px 22px;
    font-size: 17px;
    color: var(--rs-accent);
  }

  .rs-footer__social {
    display: flex;
    gap: 10px;
    margin-block-start: 22px;

    a {
      display: grid;
      place-items: center;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1px solid color-mix(in srgb, var(--rs-accent) 45%, transparent);
      transition:
        background-color 0.2s,
        color 0.2s;

      &:hover {
        color: var(--rs-dark);
        background-color: var(--rs-accent);
      }
    }
  }

  .rs-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .rs-footer__title {
    margin-block-end: 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--rs-bg);
  }

  .rs-footer__col a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #e3d7c4;
    transition: color 0.2s;

    &:hover {
      color: var(--rs-accent);
    }
  }

  .rs-footer__promises {
    display: grid;
    gap: 14px;
    padding-block-start: 28px;
    border-block-start: 1px solid color-mix(in srgb, var(--rs-accent) 25%, transparent);

    li {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 600;
    }

    .rs-icon {
      color: var(--rs-accent);
    }
  }

  .rs-footer__bottom {
    position: relative;
    border-block-start: 1px solid color-mix(in srgb, var(--rs-accent) 20%, transparent);
    font-size: 14px;
  }

  .rs-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding-block: 18px;
    color: #d8ccb8;
  }

  .rs-footer__domain {
    direction: ltr;
  }
}

@media (min-width: 1025px) {
  .rs-footer {
    .rs-footer__inner {
      grid-template-columns: 1.2fr 2fr;
      gap: 48px 64px;
      padding-block: 72px 40px;
    }

    .rs-footer__links {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rs-footer__promises {
      grid-column: 1 / -1;
      grid-template-columns: repeat(3, auto);
      justify-content: start;
      gap: 40px;
    }
  }
}

/* Floating WhatsApp */
.rs-wa {
  position: fixed;
  z-index: 70;
  inset-block-end: 20px;
  inset-inline-end: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--rs-bg);
  background-color: var(--rs-primary);
  box-shadow: var(--rs-shadow);
  text-decoration: none;
  transition:
    transform 0.3s var(--rs-ease),
    inset-block-end 0.35s var(--rs-ease);

  &::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid var(--rs-accent);
    opacity: 0;
    animation: rs-ring 2.8s 3s 3;
  }

  .rs-wa__label {
    display: none;
    font-weight: 600;
    white-space: nowrap;
  }

  &:hover {
    transform: translateY(-3px);
  }
}

@media (min-width: 1025px) {
  .rs-wa .rs-wa__label {
    display: inline;
  }

  .rs-wa {
    padding-inline: 16px 22px;
  }
}

body.rs-sticky-on .rs-wa {
  inset-block-end: 88px;
}

@keyframes rs-ring {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

/* Photos that wait for the page's main photo (snippet rs-later-img, rs-brand.js): without JavaScript they would stay
   empty, so the copy in <noscript> is shown instead. */
html:not(.rs-js) img[data-rs-later] {
  display: none;
}

/* Tilt towards the cursor (rs-brand.js sets the angles, mouse only) */
[data-rs-tilt] {
  transition: transform 0.6s var(--rs-ease);
  will-change: auto;

  &.is-tilting {
    transform: perspective(900px) rotateX(var(--rs-rx, 0deg)) rotateY(var(--rs-ry, 0deg));
    transition-duration: 0.15s;
  }
}

/* Reading progress, driven by the scroll itself (browsers without scroll timelines simply do not show it) */
.rs-progress {
  position: fixed;
  z-index: 90;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rs-accent), var(--rs-primary));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

[dir="rtl"] .rs-progress {
  transform-origin: right;
}

@supports (animation-timeline: scroll()) {
  .rs-progress {
    animation: rs-progress linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes rs-progress {
  to {
    transform: scaleX(1);
  }
}

/* Scroll reveal: only armed once rs-brand.js runs, so content stays visible if scripts fail. */
.rs-reveal-ready [data-rs-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--rs-ease),
    transform 0.8s var(--rs-ease);
  transition-delay: var(--rs-delay, 0ms);
}

.rs-reveal-ready [data-rs-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* "Reduce motion": decorative movement stops, colour and opacity feedback stay.
   html[data-motion="on"] (set with ?motion=on) brings the motion back for testing. */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) {
    scroll-behavior: auto;

    .rs-wa::before,
    .rs-rise,
    .rs-progress,
    [data-rs-motion] {
      animation: none !important;
    }

    .rs-progress {
      display: none;
    }

    [data-rs-tilt] {
      transform: none !important;
    }

    .rs-btn:hover,
    .rs-btn:active {
      transform: none;
    }

    .rs-btn--order::after,
    .rs-btn--order:not([data-loading])::before {
      display: none;
    }
  }
}

/* Rich text from the YouCan editors (pages and product descriptions) */
.rs-prose {
  max-width: 760px;
  width: 100%;
  margin-inline: auto;
  font-size: 17px;
  line-height: 1.9;
  color: var(--rs-text);

  > * + * {
    margin-block-start: 1em;
  }

  h2 {
    position: relative;
    margin-block-start: 1.8em;
    padding-block-start: 0.6em;
    font-size: clamp(21px, 1rem + 0.8vw, 25px);
    line-height: 1.45;
    font-weight: 700;
    scroll-margin-top: 110px;

    &::before {
      content: "";
      position: absolute;
      inset-block-start: 0;
      inset-inline-start: 0;
      width: 44px;
      height: 3px;
      border-radius: 3px;
      background: linear-gradient(90deg, var(--rs-accent), var(--rs-primary));
    }

    &:first-child {
      margin-block-start: 0;
    }
  }

  h3 {
    margin-block-start: 1.4em;
    font-size: 19px;
    font-weight: 700;
    color: var(--rs-primary);
  }

  p,
  li {
    color: color-mix(in srgb, var(--rs-text) 88%, var(--rs-bg));
  }

  ul,
  ol {
    padding-inline-start: 1.4em;
  }

  ul {
    list-style: none;
    padding-inline-start: 0;

    li {
      position: relative;
      padding-inline-start: 1.6em;

      &::before {
        content: "";
        position: absolute;
        inset-inline-start: 0.2em;
        inset-block-start: 0.72em;
        width: 9px;
        height: 9px;
        rotate: 45deg;
        border: 1.5px solid var(--rs-accent);
        border-radius: 2px;
      }
    }
  }

  ol {
    list-style: decimal;
  }

  li + li {
    margin-block-start: 0.45em;
  }

  strong {
    font-weight: 700;
    color: var(--rs-text);
  }

  a {
    color: var(--rs-primary);
    text-decoration: underline;
    text-decoration-color: var(--rs-accent);
    text-underline-offset: 4px;
  }

  blockquote {
    padding: 16px 20px;
    border-radius: 14px;
    border-inline-start: 4px solid var(--rs-accent);
    background-color: var(--rs-surface);
  }

  hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rs-accent), transparent);
    margin-block: 2em;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;

    th,
    td {
      padding: 10px 12px;
      border-block-end: 1px solid var(--rs-line);
      text-align: start;
    }
  }
}

/* Text only for screen readers */
.rs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Customer review cards (home page and reviews page) */
.rs-reviews__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84%, 340px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: 6px 12px;
}

.rs-review {
  position: relative;
  scroll-snap-align: start;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px 22px 22px;
  border-radius: var(--rs-radius);
  background-color: var(--rs-surface);
  border: 1px solid var(--rs-line);
  box-shadow: var(--rs-shadow-soft);
  transition:
    transform 0.4s var(--rs-ease),
    box-shadow 0.4s var(--rs-ease);

  .rs-review__keyhole {
    position: absolute;
    inset-block-start: 18px;
    inset-inline-end: 20px;
    width: 14px;
    height: 24px;
    background: var(--rs-accent);
    -webkit-mask:
      radial-gradient(circle at 50% 30%, black 4.5px, transparent 5px) top / 100% 12px no-repeat,
      linear-gradient(black, black) 50% 100% / 6px 14px no-repeat;
    mask:
      radial-gradient(circle at 50% 30%, black 4.5px, transparent 5px) top / 100% 12px no-repeat,
      linear-gradient(black, black) 50% 100% / 6px 14px no-repeat;
    opacity: 0.8;
  }

  .rs-review__stars {
    letter-spacing: 2px;
    color: var(--rs-sand-200);

    .is-on {
      color: var(--rs-gold);
    }
  }

  .rs-review__text {
    font-size: 16px;
    line-height: 1.85;
  }

  .rs-review__author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    font-size: 15px;

    span {
      color: var(--rs-muted);
    }
  }

  .rs-review__product {
    flex-basis: 100%;
    font-size: 14px;
    color: var(--rs-primary);
  }

  a.rs-review__product {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: underline;
    text-decoration-color: var(--rs-accent);
    text-underline-offset: 4px;
  }
}

@media (min-width: 768px) {
  .rs-reviews__list {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (min-width: 1025px) {
  .rs-reviews__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Delivery zone of a product (snippets/rs-zone-badge): its flags, or the pin, and "Delivery: the UAE only".
   Placed on the product photo by each card (rs-home.css for the brand cards, below for the category pages). */
.rs-zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  color: var(--rs-text);

  .rs-zone-badge__flags {
    display: inline-flex;
    flex-shrink: 0;
    gap: 3px;
  }

  .rs-flag {
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 12%);
  }

  /* An image flag (Saudi Arabia, see rs-flag) keeps its 12 px height inside the cards, whose photo rules size every
     image to the whole card. */
  .rs-zone-badge__flags img.rs-flag {
    inline-size: auto;
    block-size: 12px;
    max-inline-size: none;
    object-fit: fill;
  }

  [data-rs-icon],
  svg:not(.rs-flag) {
    flex-shrink: 0;
    color: var(--rs-primary);
  }
}

[block="product"] .media {
  position: relative;

  .rs-zone-badge {
    position: absolute;
    inset-block-end: 8px;
    inset-inline-start: 8px;
    max-inline-size: calc(100% - 16px);
    padding: 6px 10px;
    border-radius: 999px;
    background-color: var(--rs-surface);
    box-shadow: 0 1px 4px rgb(60 36 20 / 16%);
  }
}

/* Pages fade into each other (2026-11-10; browsers with cross-document view transitions, nothing elsewhere).
   Part of the "alive" layer (rs-alive.css), kept here because a page must know it before its first paint. */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: rs-page-out 0.2s ease-in both;
}

::view-transition-new(root) {
  animation: rs-page-in 0.42s var(--rs-ease) both;
}

@keyframes rs-page-out {
  to {
    opacity: 0;
    scale: 1.012;
  }
}

@keyframes rs-page-in {
  from {
    opacity: 0;
    scale: 0.992;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"])::view-transition-group(*),
  html:not([data-motion="on"])::view-transition-old(*),
  html:not([data-motion="on"])::view-transition-new(*) {
    animation: none !important;
  }
}

/* ==========================================================================================================
   The "maison" look (2026-11-11), applied when the theme setting rs_look is "maison".
   The owner's bar: the image of a great house, elegant, poised and modern. So restraint everywhere:
   - one face, Alexandria, light for titles and regular for text (loaded by snippets/_config.liquid);
   - air between the parts, hairlines instead of boxes, small corners, no shadow;
   - no ornament but the gate itself: the star lattice stays unseen until the lantern passes (rs-alive), the
     floating card, seal, dust and dividers are not drawn (sections/rs-hero.liquid), the promises stand still;
   - product tiles show the photo, the name and the price; the order link stays, quiet.
   Everything is an override of the rules above and of rs-home.css, under html[data-rs-look="maison"] (heavier
   selectors, so the order of the files does not matter): the "classique" look is untouched and comes back with
   the setting. Kept in this file, not in one of its own, so the page waits for one stylesheet less. The order button of the product page (.rs-btn--order) is left as the
   owner chose it. */

html[data-rs-look="maison"] {
  --rs-radius: 4px;
  --rs-radius-lg: 6px;
  --rs-shadow: 0 0 0 0 transparent;
  --rs-shadow-soft: 0 0 0 0 transparent;
  --rs-line: color-mix(in srgb, var(--rs-accent) 42%, var(--rs-bg));
  --rs-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-body-lg: 400 17px/1.9 var(--font-family);
  --font-body-md: 400 16px/1.9 var(--font-family);
  --font-title-md: 500 17px/1.6 var(--font-family);

  /* The face stops at medium (snippets/_config.liquid): no artificial bold where the theme asks for more. */
  font-synthesis: none;

  ::selection {
    color: var(--rs-text);
    background-color: color-mix(in srgb, var(--rs-accent) 45%, var(--rs-bg));
  }

  /* ---------- Type roles ---------- */

  h1,
  h2,
  h3,
  .rs-h2 {
    font-weight: 300;
  }

  strong,
  b {
    font-weight: 500;
  }

  .rs-h2 {
    font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.75rem);
    line-height: 1.4;
  }

  .rs-section__lead {
    max-width: 34rem;
    margin-block-start: 12px;
    font-size: 1rem;
    line-height: 1.9;
  }

  .rs-link {
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration-thickness: 1px;
  }

  /* An eyebrow above a title says twice what the title says. */
  .rs-spotlight__eyebrow {
    display: none;
  }

  /* The lattice is not drawn at rest (the lantern lights it where the visitor looks); the footer keeps its own. */
  .rs-hero__pattern,
  .rs-trust__pattern,
  .rs-spotlight__pattern,
  .rs-steps__pattern,
  .rs-reviews__pattern,
  .rs-page__pattern,
  .rs-read-night__pattern,
  .rs-pr__pattern {
    display: none;
  }

  .rs-lantern.is-lit .rs-lantern__beam {
    opacity: 0.8;
  }

  /* ---------- Buttons (the product page's order button keeps its own dress) ---------- */

  .rs-btn:not(.rs-btn--order) {
    min-height: 48px;
    padding-inline: 28px;
    font-weight: 500;
    font-size: 0.9375rem;
    box-shadow: none;

    &:hover,
    &:active {
      box-shadow: none;
      transform: none;
    }
  }

  .rs-btn--lg:not(.rs-btn--order) {
    min-height: 56px;
    padding-inline: 38px;
  }

  .rs-btn--outline {
    border-width: 1px;
  }

  /* ---------- Sections: more air ---------- */

  .rs-section {
    padding-block: 72px;
  }

  .rs-section__head {
    margin-block-end: 36px;
  }

  /* ---------- Announcement and header ---------- */

  .rs-announce .rs-announce__item span {
    font-weight: 400;
    font-size: 0.8125rem;
  }

  .rs-wordmark {
    .rs-wordmark__main {
      font-weight: 500;
      letter-spacing: 0;
    }

    .rs-wordmark__sub {
      font-weight: 400;
      font-size: 0.6875rem;
    }
  }

  .rs-header {
    &.is-scrolled,
    &.is-scrolled::before {
      box-shadow: none;
    }

    .rs-header__link a {
      font-size: 0.9375rem;
      font-weight: 400;
    }

    .rs-lang__link {
      border-color: transparent;
      background-color: transparent;

      span {
        font-weight: 400;
      }
    }
  }

  /* ---------- Hero: the gate, a title, one sentence, one button ---------- */

  .rs-hero {
    padding-block: 28px 56px;
    background: var(--rs-bg);

    .rs-hero__light {
      display: none;
    }

    .rs-hero__media::before {
      inset: -6px;
      opacity: 0.7;
    }

    .rs-hero__title {
      margin-block: 0 16px;
      font-weight: 300;
      font-size: clamp(2.125rem, 1.15rem + 3.1vw, 3.875rem);
      line-height: 1.36;
    }

    .rs-hero__rotator {
      --rs-line: 1.38em;
    }

    .rs-hero__text {
      max-width: 30rem;
      font-size: 1.0625rem;
      line-height: 1.95;
      text-wrap: balance;
    }

    .rs-hero__actions {
      gap: 14px 30px;
      margin-block-start: 30px;
    }

    .rs-hero__note {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-block-start: 28px;
      padding-block-start: 18px;
      border-block-start: 1px solid var(--rs-line);
      font-size: 0.875rem;
      color: var(--rs-muted);

      .rs-icon {
        color: var(--rs-gold);
      }
    }
  }

  /* ---------- Promises: a still line between two hairlines ---------- */

  .rs-trust {
    padding-block: 22px;
    color: var(--rs-text);
    background: var(--rs-bg);
    border-block: 1px solid var(--rs-line);

    .rs-trust__track {
      width: auto;
      padding-inline: var(--rs-gutter);
      justify-content: center;
      animation: none;
    }

    .rs-trust__list {
      flex-wrap: wrap;
      flex-shrink: 1;
      min-width: 0;
      justify-content: center;
      gap: 12px 0;
    }

    .rs-trust__list--copy {
      display: none;
    }

    .rs-trust__item {
      padding-inline: 26px;
      white-space: normal;
      font-size: 0.875rem;

      &::after {
        display: none;
      }

      & + .rs-trust__item {
        border-inline-start: 1px solid var(--rs-line);
      }

      strong {
        font-weight: 500;
      }

      span {
        color: var(--rs-muted);
      }
    }
  }

  /* ---------- Categories: the picture, then its name ---------- */

  .rs-cats {
    .rs-cats__link {
      overflow: visible;
      border: 0;
      border-radius: 0;
      background: none;
      box-shadow: none;

      &:hover {
        transform: none;
        box-shadow: none;
      }
    }

    .rs-cats__media {
      overflow: hidden;
      border-radius: var(--rs-radius);
    }

    .rs-cats__caption {
      padding: 16px 2px 0;
      border: 0;
      background: none;
    }

    .rs-cats__name {
      font-weight: 400;
      font-size: 1.125rem;
    }

    .rs-cats__go {
      font-weight: 400;
      font-size: 0.875rem;
    }
  }

  /* ---------- Product tiles: photo, name, price; a quiet order link ---------- */

  .rs-grid {
    --rs-gap: 14px;
  }

  .rs-card[data-rs-tilt] {
    transform: none !important;
  }

  .rs-card {
    .rs-card__link {
      overflow: visible;
      border: 0;
      border-radius: 0;
      background: none;

      &::after {
        display: none;
      }

      &:hover {
        transform: none;
        box-shadow: none;

        .rs-card__cta {
          color: var(--rs-text);
          background: none;
          text-decoration-color: var(--rs-primary);
        }
      }
    }

    .rs-card__media {
      border-radius: var(--rs-radius);
      background: var(--rs-sand-100);
    }

    .rs-card__body {
      padding: 14px 2px 0;
    }

    .rs-card__title {
      font-weight: 500;
      font-size: 0.9375rem;
      line-height: 1.7;
    }

    .rs-card__alt {
      font-weight: 400;
      font-size: 0.8125rem;
    }

    .rs-card__price {
      margin-block-start: 8px;
    }

    .rs-card__now {
      font-weight: 500;
      font-size: 0.9375rem;
      color: var(--rs-text);
    }

    .rs-card__was {
      font-weight: 400;
      font-size: 0.8125rem;
    }

    /* Where the product is delivered: a line of text under the price. */
    .rs-card__zone--line {
      position: static;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      max-width: 100%;
      margin-block-start: 8px;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: none;
      box-shadow: none;
      font-weight: 400;
      font-size: 0.8125rem;
      color: var(--rs-muted);

      span {
        font-weight: 400;
        font-size: inherit;
      }
    }

    .rs-card__cta {
      align-self: flex-start;
      width: auto;
      min-height: 0;
      margin-block-start: 14px;
      padding: 0 0 2px;
      border: 0;
      border-radius: 0;
      background: none;
      font-weight: 500;
      font-size: 0.875rem;
      color: var(--rs-primary);
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-decoration-color: var(--rs-accent);
      text-underline-offset: 6px;
    }

    /* The second photo takes the place of the first under the pointer (no keyhole in this look). */
    .rs-card__media .rs-card__peek {
      -webkit-mask: none;
      mask: none;
      background:
        var(--rs-peek-img, none) center / var(--product-image-fit, cover) no-repeat,
        var(--rs-sand-100);
      transition: opacity 0.7s var(--rs-ease);
    }
  }

  /* ---------- Featured product ---------- */

  .rs-spotlight {
    .rs-spotlight__badge {
      display: none;
    }

    .rs-spotlight__title {
      font-weight: 300;
      font-size: clamp(1.875rem, 1.25rem + 1.8vw, 2.875rem);
      line-height: 1.4;
    }

    .rs-spotlight__alt bdi {
      font-weight: 400;
    }

    .rs-spotlight__now {
      font-weight: 400;
      font-size: 1.625rem;
    }

    .rs-spotlight__was {
      font-size: 1rem;
    }

    .rs-spotlight__media,
    .rs-spotlight__media img {
      border-radius: var(--rs-radius);
      box-shadow: none;
    }
  }

  .rs-zone-badge:not(.rs-card__zone) {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--rs-muted);

    span {
      font-weight: 400;
    }
  }

  /* ---------- How to order ---------- */

  .rs-steps {
    .rs-step__num {
      border: 1px solid color-mix(in srgb, var(--rs-accent) 75%, transparent);
      font-weight: 300;
      font-size: 1.0625rem;
      color: var(--rs-accent);
      background: var(--rs-dark);
      box-shadow: none;
    }

    .rs-step h3 {
      font-weight: 500;
      font-size: 1.0625rem;
    }

    .rs-steps__media,
    .rs-steps__media img {
      border-radius: var(--rs-radius);
    }

    .rs-steps__note {
      border-radius: var(--rs-radius);
      box-shadow: none;

      span {
        font-weight: 400;
      }
    }
  }

  /* ---------- Story, questions, reviews, footer ---------- */

  .rs-story {
    .rs-story__title {
      font-weight: 300;
    }

    .rs-divider,
    .rs-story__sheen,
    .rs-story__seal {
      display: none;
    }
  }

  .rs-faq .rs-faq__item summary span {
    font-weight: 500;
    font-size: 1rem;
  }

  .rs-reviews {
    .rs-reviews__invite {
      border: 1px solid var(--rs-line);
      box-shadow: none;
    }

    .rs-reviews__invite-title {
      font-weight: 300;
      font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem);
    }
  }

  .rs-footer {
    .rs-footer__title {
      font-weight: 500;
      font-size: 0.875rem;
      color: var(--rs-accent);
    }

    .rs-footer__links a {
      font-size: 0.9375rem;
    }

    .rs-footer__promises span {
      font-weight: 400;
      font-size: 0.875rem;
    }
  }
}

/* Narrow phones: the name in the header a size smaller, so it never meets the icons beside it. */
@media (max-width: 400px) {
  html[data-rs-look="maison"] .rs-header .rs-wordmark .rs-wordmark__main {
    font-size: 1.0625rem;
  }
}

/* Phones: a last card alone on its row has its photo beside its text; the text keeps clear of the photo. */
@media (max-width: 767px) {
  html[data-rs-look="maison"] .rs-grid[data-odd] > .rs-card:last-child .rs-card__body {
    padding-block: 0;
    padding-inline: 18px 2px;
  }
}

/* Phones: the four promises on two columns, their titles only. */
@media (max-width: 767px) {
  html[data-rs-look="maison"] .rs-trust {
    .rs-trust__list:not(.rs-trust__list--copy) {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px 12px;
      width: 100%;
    }

    .rs-trust__item {
      gap: 8px;
      padding-inline: 0;

      & + .rs-trust__item {
        border-inline-start: 0;
      }

      span {
        display: none;
      }
    }
  }
}

@media (min-width: 1025px) {
  html[data-rs-look="maison"] {
    .rs-section {
      padding-block: 92px;
    }

    .rs-section__head {
      margin-block-end: 56px;
    }

    .rs-hero {
      padding-block: 56px 80px;

      .rs-hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: 72px;
      }

      /* A little larger than in the classique look, still whole on a laptop screen. */
      .rs-hero__media.rs-hero__media--gate {
        width: min(100%, 480px, (100vh - 210px) * 0.716);
        width: min(100%, 480px, (100svh - 210px) * 0.716);
      }

      .rs-hero__text {
        font-size: 1.125rem;
      }
    }

    .rs-grid {
      --rs-gap: 28px;
    }
  }
}

/* Tablets and up: the promises in even columns (two, then four), each with its title over its detail. */
@media (min-width: 768px) {
  html[data-rs-look="maison"] .rs-trust {
    .rs-trust__track {
      max-width: 1232px;
      margin-inline: auto;
    }

    .rs-trust__list:not(.rs-trust__list--copy) {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px 0;
      width: 100%;
    }

    .rs-trust__item {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-content: start;
      align-items: start;
      gap: 2px 12px;
      padding-inline: 24px;
      line-height: 1.7;

      .rs-icon {
        grid-row: span 2;
        margin-block-start: 3px;
      }

      strong,
      span {
        grid-column: 2;
      }
    }
  }
}

@media (min-width: 1025px) {
  html[data-rs-look="maison"] .rs-trust .rs-trust__list:not(.rs-trust__list--copy) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  html[data-rs-look="maison"] .rs-trust .rs-trust__item:nth-child(odd) {
    border-inline-start: 0;
  }
}

/* Maison look: the product page */
html[data-rs-look="maison"] {
  /* An eyebrow above a title says twice what the title says (details, related products, any section head). */
  .rs-pd-details__head .rs-eyebrow,
  .rs-section__head .rs-eyebrow {
    display: none;
  }

  /* Gallery: the photo on its own, no frame around it. */
  .rs-gallery {
    .rs-gallery__viewport {
      padding: 0;
      border: 0;
      border-radius: var(--rs-radius);
      background: var(--rs-sand-100);
    }

    .rs-gallery__slide {
      padding: 0;
    }

    .rs-gallery__count {
      font-size: 0.75rem;
    }

    .rs-gallery__arrow {
      border: 1px solid var(--rs-line);
      box-shadow: none;
    }

    .rs-gallery__thumb {
      border-radius: var(--rs-radius);
    }
  }

  /* Name, price, facts: text and hairlines instead of boxes. */
  .rs-pd {
    .rs-pd__share {
      background: none;
    }

    .rs-pd__now {
      font-weight: 400;
      font-size: 1.625rem;
      color: var(--rs-text);
    }

    .rs-pd__save {
      padding: 0;
      background: none;
      font-weight: 400;
      color: var(--rs-primary);
    }

    .rs-pd__zone {
      padding-inline: 0;
      border: 0;
      border-block: 1px solid var(--rs-line);
      border-radius: 0;
      background: none;

      p {
        font-size: 0.9375rem;
      }
    }

    .rs-pd__facts {
      padding: 0;
      border: 0;
      background: none;
    }

    .rs-pd__form {
      border: 1px solid var(--rs-line);
      border-radius: var(--rs-radius-lg);
      box-shadow: none;

      input,
      select,
      textarea {
        border-radius: var(--rs-radius);
      }
    }

    .rs-pd__form-title {
      font-size: 1.125rem;
    }
  }

  /* The four guarantees under the order form: one line between two hairlines. */
  .rs-pd-trust {
    padding-block: 18px;
    border-block: 1px solid var(--rs-line);

    li {
      border: 0;
      border-radius: 0;
      background: none;
      box-shadow: none;
    }
  }

  /* Details of the product. */
  .rs-pd-details {
    .rs-pd-details__nav a {
      border-color: var(--rs-line);
      background: none;
      font-weight: 400;
    }

    .rs-pd-details__body {
      img {
        border-radius: var(--rs-radius);
      }

      li {
        box-shadow: none;
      }

      .rs-d-icon {
        border-radius: var(--rs-radius);
        box-shadow: none;
      }
    }
  }

  /* Reviews of the product. */
  .rs-pr {
    .rs-pr__summary,
    .rs-pr__empty,
    .rs-pr__write,
    .rs-pr__card {
      border: 1px solid var(--rs-line);
      box-shadow: none;
    }

    .rs-pr__avg {
      font-weight: 300;
    }

    .rs-pr__empty-photo,
    .rs-pr__status {
      border-radius: var(--rs-radius);
    }
  }

  /* Way back to the categories, at the end of the page: a plain panel. */
  .rs-related .rs-related__back {
    background: var(--rs-surface);
  }

  .rs-related .rs-related__back-title {
    font-weight: 300;
    font-size: 1.375rem;
  }
}

/* The order button keeps its gold and its tremble (the owner's choice). On a phone its sentence is too long for one
   line in this wider face: it may take two, evenly, instead of pushing the page sideways. */
@media (max-width: 480px) {
  html[data-rs-look="maison"] .rs-btn.rs-btn--order,
  html[data-rs-look="maison"] .rs-pd .rs-pd__form .rs-btn.rs-btn--order {
    min-width: 0;
    padding-block: 10px;
    line-height: 1.45;
    white-space: normal;
    text-wrap: balance;
  }
}

/* Phones: quantity on one line, the total on the next, as on the narrowest phones in rs-product.css, but up to
   480 px in this wider face; a hairline sets the total apart. */
@media (max-width: 480px) {
  html[data-rs-look="maison"] .rs-pd {
    .rs-pd__cta {
      grid-template-columns: auto minmax(0, 1fr);
      grid-template-areas:
        "label qty"
        "total total"
        "buy buy"
        "cart cart";
    }

    ui-quantity {
      justify-self: end;
    }

    .rs-pd__total {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      justify-self: stretch;
      padding-block-start: 12px;
      border-block-start: 1px solid var(--rs-line);
    }
  }
}

@media (min-width: 768px) {
  html[data-rs-look="maison"] .rs-pd-trust li + li {
    border-inline-start: 1px solid var(--rs-line);
  }
}
