/* «Home next» 0.66.3 — loaded on every page only while Riviera_Home_Next::on() (option home_next, or ?rv_next=1 for editors).
   1 · (0.66.2) the navy-black site-wide dark of 0.66.0 is withdrawn: every page uses its own dark again (product pages: line-tinted ground).
   2 · Home hero rotation (five images in the portrait slot).
   3 · Product-colour grounds on cards / pack plates: light, graded, the same in light and dark (0.66.3).
   4 · Home in dark mode: light-blue / white gradient (Riviera logo colours).
   5 · The «which product suits you» bar on product pages follows the product page design (0.66.3). */

/* ---------- 1 · dark mode: back to the site's own dark (0.66.2, Hazem: undo the navy unification) ---------- */

/* ---------- 2 · Home hero: four images play one after another ---------- */
.rvhc-portrait.is-rot { overflow: hidden; }
.rvhc-hero:has(.rvhc-portrait.is-rot) .rvhc-still { display: none; }   /* the packs now live inside the images; the plinth would cover them */
@media (min-width: 861px) {
  .rvhc-portrait.is-rot { width: 50%; }
  html[dir="rtl"] .rvhc-portrait.is-rot { -webkit-mask-image: linear-gradient(to right, #000 58%, transparent 96%); mask-image: linear-gradient(to right, #000 58%, transparent 96%); }
  html[dir="ltr"] .rvhc-portrait.is-rot { -webkit-mask-image: linear-gradient(to left, #000 58%, transparent 96%); mask-image: linear-gradient(to left, #000 58%, transparent 96%); }
}
/* one image at a time: the outgoing one fades first, then the next one rises (no double exposure) */
.rvnx-slide { transition: opacity .38s ease, visibility 0s linear .38s; }
.rvnx-slide[data-rvnx-on] { transition: opacity .55s ease; }
.rvnx-rot { position: absolute; inset: 0; }
.rvnx-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s; }
.rvnx-slide[data-rvnx-on] { opacity: 1; visibility: visible; transition: opacity 1.2s ease; z-index: 1; }
.rvhc-hero .rvhc-portrait.is-rot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45% !important; transform: none !important; scale: 1.06; transform-origin: 50% 50%; }   /* the Hero crop settings and the LTR mirror do not apply: product text is never mirrored */
.rvnx-slide[data-rvnx-on] img { animation: rvnx-zoom 3.6s cubic-bezier(.25,.6,.35,1) forwards; }
@keyframes rvnx-zoom { from { scale: 1.14; translate: 1.5% 1%; } to { scale: 1.02; translate: -0.5% -0.5%; } }
.rvnx-dots { position: absolute; z-index: 2; bottom: 14px; inset-inline-start: 18px; display: flex; gap: 6px; }
.rvnx-dots i { display: block; width: 18px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.45); box-shadow: 0 0 0 1px rgba(10,37,64,.12); }
.rvnx-dots i.is-on { background: #fff; width: 30px; transition: width .4s; }
@media (max-width: 860px) {
  .rvhc-hero .rvhc-portrait.is-rot img { object-position: 50% 35% !important; }
}
@media (prefers-reduced-motion: reduce) {
  .rvnx-slide, .rvnx-slide[data-rvnx-on] { transition: none; }
  .rvnx-slide[data-rvnx-on] img { animation: none; }
}

/* ---------- Home score button ---------- */
.rvnx-sound { position: fixed; z-index: 60; bottom: 18px; inset-inline-start: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(10,37,64,.18); background: rgba(255,255,255,.82); color: #0a2540; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(8px); box-shadow: 0 10px 24px -12px rgba(10,37,64,.45); transition: transform .2s, background .2s; }
.rvnx-sound:hover { transform: translateY(-1px); }
.rvnx-sound:focus-visible { outline: 2px solid var(--rv-accent, #0b7d68); outline-offset: 3px; }
.rvnx-sound .rvnx-off-ic { display: none; }
.rvnx-sound[aria-pressed="false"] .rvnx-on-ic { display: none; }
.rvnx-sound[aria-pressed="false"] .rvnx-off-ic { display: block; }
.rvnx-sound[aria-pressed="false"] { opacity: .75; }
body.rv-dark .rvnx-sound { background: rgba(18,27,45,.85); color: #e6edf3; border-color: rgba(255,255,255,.14); }
@media (prefers-color-scheme: dark) { body:not(.rv-light) .rvnx-sound { background: rgba(18,27,45,.85); color: #e6edf3; border-color: rgba(255,255,255,.14); } }
@media (max-width: 640px) { .rvnx-sound { bottom: 14px; inset-inline-start: 14px; width: 38px; height: 38px; } }

/* ---------- 3 · product colours (0.66.3, Hazem 2026-11-06): every product card / pack plate sits on a LIGHT, graded ground derived from the
   product's own colour (--rvpc: line colour, see Riviera_Home_Next::product_color): white light from the top, the product colour as a soft
   pastel wash towards the bottom. The same light ground in light AND dark mode. Product photos are multiplied onto this very light ground (the 0.66.1 ground was too strong and «dyed» them). ---------- */
.rv-next .rvc-media[style*="--rvpc"], .rv-next .rvhc-line-plate[style*="--rvpc"], .rv-next .rvhc-story-plate[style*="--rvpc"],
body.rv-next.rv-dark .rvc-media[style*="--rvpc"], body.rv-next.rv-dark .rvhc-line-plate[style*="--rvpc"], body.rv-next.rv-dark .rvhc-story-plate[style*="--rvpc"] {
  background:
    radial-gradient(110% 70% at 50% 0%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(120% 85% at 50% 108%, color-mix(in srgb, var(--rvpc) 24%, #fff) 0%, rgba(255,255,255,0) 75%),
    linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--rvpc) 6%, #fff) 45%, color-mix(in srgb, var(--rvpc) 14%, #fff) 100%) !important;
  border-color: color-mix(in srgb, var(--rvpc) 16%, #fff);
}
.rv-next .rvc-media[style*="--rvpc"] .rvc-tint { display: none; }
/* the studio photos are light neutral grey: multiplied onto this light ground they pick up only a faint product-coloured grade (white at the top) */
.rv-next .rvhc-line-plate[style*="--rvpc"] .rvhc-pack, .rv-next .rvhc-story-plate[style*="--rvpc"] .rvhc-pack, .rv-next .rvc-media[style*="--rvpc"] img { mix-blend-mode: multiply; filter: brightness(1.04); }
.rv-next .rvc-card:has(.rvc-media[style*="--rvpc"]):hover .rvc-media { box-shadow: 0 18px 36px -24px color-mix(in srgb, var(--rvpc) 55%, transparent); }
body.rv-next.rv-dark .rvc-media[style*="--rvpc"], body.rv-next.rv-dark .rvhc-line-plate[style*="--rvpc"], body.rv-next.rv-dark .rvhc-story-plate[style*="--rvpc"] {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--rvpc) 22%, transparent), 0 18px 40px -26px color-mix(in srgb, var(--rvpc) 60%, transparent);
}
@media (prefers-color-scheme: dark) {
  body.rv-next:not(.rv-light) .rvc-media[style*="--rvpc"], body.rv-next:not(.rv-light) .rvhc-line-plate[style*="--rvpc"], body.rv-next:not(.rv-light) .rvhc-story-plate[style*="--rvpc"] {
    background:
      radial-gradient(110% 70% at 50% 0%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 70%),
      radial-gradient(120% 85% at 50% 108%, color-mix(in srgb, var(--rvpc) 24%, #fff) 0%, rgba(255,255,255,0) 75%),
      linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--rvpc) 6%, #fff) 45%, color-mix(in srgb, var(--rvpc) 14%, #fff) 100%) !important;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--rvpc) 22%, transparent), 0 18px 40px -26px color-mix(in srgb, var(--rvpc) 60%, transparent);
  }
}

/* ---------- 4 · Home in dark mode (0.66.2, Hazem): a luminous light-blue / white gradient — the colours of the Riviera logo — instead of a dark ground.
   The Home keeps light text tokens in dark mode so everything stays readable; other pages follow the site's own dark mode. ---------- */
body.home.rv-next.rv-dark { --rv-bg: #ffffff; --rv-canvas: #f4f9fd; --rv-surface: #ffffff; --rv-surface-2: #f7fbfe; --rv-media: #e9eef3; --rv-heading: #0a2540; --rv-text: #334155; --rv-muted: #5b6b7f; --rv-line: #dbe7f1; --rv-line-strong: #c3d6e6; --rv-accent: #00735f; --rv-accent-soft: #e7f3f1; --rv-action: #00735f; --rv-action-hover: #005c4c; --rv-action-ink: #ffffff; --rv-navy: #0a2540; --rv-navy-ink: #ffffff; --rv-band-navy: #0a2540; --rv-ink: #0a2540; --rv-slate: #5b6b7f; --rv-mist: #f4f9fd; --rv-canvas-warm: #f4f9fd; --rv-paper: #ffffff; --rv-teal-ink: #00735f; --rv-aqua-50: #e7f3f1; --rv-focus: #0ea5e9; --rv-scrim: rgba(10, 37, 64, .55); --rv-shadow: 0 12px 32px -12px rgba(10, 37, 64, .18); color-scheme: light; }
html:has(body.home.rv-next.rv-dark) { background-color: #eef7fd; }
body.home.rv-next.rv-dark .rvhc { --c-pearl: #f3f9fe; --c-pearl-2: #e6f2fb; --c-plate: #ffffff; --c-sea: #00735f; --c-sea-hover: #005c4c; --c-sea-mist: #e3f1fb; --c-blush: #e9eff8; --c-shadow: 0 2px 8px -2px rgba(10, 37, 64, .06), 0 1px 3px -1px rgba(10, 37, 64, .04); --c-shadow-h: 0 14px 28px -10px rgba(10, 37, 64, .18), 0 4px 8px -2px rgba(10, 37, 64, .06);
  background: radial-gradient(1100px 760px at 6% 4%, rgba(255, 255, 255, .95), transparent 62%),
    radial-gradient(1000px 720px at 94% 14%, rgba(147, 197, 237, .55), transparent 62%),
    radial-gradient(1100px 820px at 14% 42%, rgba(186, 222, 247, .55), transparent 64%),
    radial-gradient(1000px 760px at 90% 62%, rgba(255, 255, 255, .9), transparent 60%),
    radial-gradient(1100px 820px at 22% 86%, rgba(160, 205, 240, .5), transparent 64%),
    linear-gradient(180deg, #eef7fd 0%, #ffffff 30%, #e3f1fb 58%, #ffffff 80%, #e8f4fc 100%); }
body.home.rv-next.rv-dark .rvhc .rvhc-curated { background: linear-gradient(180deg, rgba(255,255,255,0), rgba(214,234,249,.6)); }
body.home.rv-next.rv-dark .rvhc .rvhc-science { background: #e3f1fb; }
body.home.rv-next.rv-dark .rvhc-hero-bg { opacity: .9; }
body.home.rv-next.rv-dark .rvhc-science-bg { opacity: 1; }
body.home.rv-next.rv-dark .rvhc-btn-primary { color: #fff !important; }
body.home.rv-next.rv-dark .rvnx-sound { background: rgba(255,255,255,.85); color: #0a2540; border-color: rgba(10,37,64,.18); }
@media (prefers-color-scheme: dark) {
  body.home.rv-next:not(.rv-light) { --rv-bg: #ffffff; --rv-canvas: #f4f9fd; --rv-surface: #ffffff; --rv-surface-2: #f7fbfe; --rv-media: #e9eef3; --rv-heading: #0a2540; --rv-text: #334155; --rv-muted: #5b6b7f; --rv-line: #dbe7f1; --rv-line-strong: #c3d6e6; --rv-accent: #00735f; --rv-accent-soft: #e7f3f1; --rv-action: #00735f; --rv-action-hover: #005c4c; --rv-action-ink: #ffffff; --rv-navy: #0a2540; --rv-navy-ink: #ffffff; --rv-band-navy: #0a2540; --rv-ink: #0a2540; --rv-slate: #5b6b7f; --rv-mist: #f4f9fd; --rv-canvas-warm: #f4f9fd; --rv-paper: #ffffff; --rv-teal-ink: #00735f; --rv-aqua-50: #e7f3f1; --rv-focus: #0ea5e9; --rv-scrim: rgba(10, 37, 64, .55); --rv-shadow: 0 12px 32px -12px rgba(10, 37, 64, .18); color-scheme: light; }
  html:has(body.home.rv-next:not(.rv-light)) { background-color: #eef7fd; }
  body.home.rv-next:not(.rv-light) .rvhc { --c-pearl: #f3f9fe; --c-pearl-2: #e6f2fb; --c-plate: #ffffff; --c-sea: #00735f; --c-sea-hover: #005c4c; --c-sea-mist: #e3f1fb; --c-blush: #e9eff8; --c-shadow: 0 2px 8px -2px rgba(10, 37, 64, .06), 0 1px 3px -1px rgba(10, 37, 64, .04); --c-shadow-h: 0 14px 28px -10px rgba(10, 37, 64, .18), 0 4px 8px -2px rgba(10, 37, 64, .06);
    background: radial-gradient(1100px 760px at 6% 4%, rgba(255, 255, 255, .95), transparent 62%),
      radial-gradient(1000px 720px at 94% 14%, rgba(147, 197, 237, .55), transparent 62%),
      radial-gradient(1100px 820px at 14% 42%, rgba(186, 222, 247, .55), transparent 64%),
      radial-gradient(1000px 760px at 90% 62%, rgba(255, 255, 255, .9), transparent 60%),
      radial-gradient(1100px 820px at 22% 86%, rgba(160, 205, 240, .5), transparent 64%),
      linear-gradient(180deg, #eef7fd 0%, #ffffff 30%, #e3f1fb 58%, #ffffff 80%, #e8f4fc 100%); }
  body.home.rv-next:not(.rv-light) .rvhc .rvhc-curated { background: linear-gradient(180deg, rgba(255,255,255,0), rgba(214,234,249,.6)); }
  body.home.rv-next:not(.rv-light) .rvhc .rvhc-science { background: #e3f1fb; }
  body.home.rv-next:not(.rv-light) .rvhc-hero-bg { opacity: .9; }
  body.home.rv-next:not(.rv-light) .rvhc-science-bg { opacity: 1; }
  body.home.rv-next:not(.rv-light) .rvhc-btn-primary { color: #fff !important; }
  body.home.rv-next:not(.rv-light) .rvnx-sound { background: rgba(255,255,255,.85); color: #0a2540; border-color: rgba(10,37,64,.18); }
}
.rvnx-sound.is-done { opacity: .35; pointer-events: none; }

/* ---------- 5 · «أيّ منتجات … تناسبك؟» on product pages (0.66.3, Hazem): the bar the KETOX / LISTREX / Minoxidil home plugins add under the buy box
   now follows the product page itself (template B tokens: the product's own accent, surface, line, heading, muted; light and dark), instead of
   the landing colours (teal / red / gold) that clashed with the product colour. ---------- */
.rvb .rv-kx-finder, .rvb .rv-lx-finder, .rvb .rv-mx-finder {
  background: linear-gradient(90deg, color-mix(in srgb, var(--rvb-accent) 7%, var(--rvb-surface)), var(--rvb-surface)) !important;
  color: var(--rvb-heading) !important; border: 1px solid var(--rvb-line) !important;
  border-radius: 12px !important; box-shadow: none !important; padding: 14px 16px !important; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.rvb .rv-kx-finder:hover, .rvb .rv-lx-finder:hover, .rvb .rv-mx-finder:hover { border-color: color-mix(in srgb, var(--rvb-accent) 45%, var(--rvb-line)) !important; box-shadow: 0 12px 28px -20px var(--rvb-accent) !important; }
.rvb .rv-kx-finder b, .rvb .rv-lx-finder b, .rvb .rv-mx-finder b { color: var(--rvb-heading) !important; font-weight: 700; font-size: 15.5px; }
.rvb .rv-kx-finder .lat, .rvb .rv-lx-finder .lat, .rvb .rv-mx-finder .lat { color: var(--rvb-accent) !important; }
.rvb .rv-kx-finder small, .rvb .rv-lx-finder small, .rvb .rv-mx-finder small { color: var(--rvb-muted) !important; opacity: 1 !important; }
.rvb .rv-kx-finder i, .rvb .rv-lx-finder i, .rvb .rv-mx-finder i { background: var(--rvb-accent) !important; color: #fff !important; width: 34px !important; height: 34px !important; font-size: 16px !important; box-shadow: none !important; }
.rvb .rv-kx-finder:focus-visible, .rvb .rv-lx-finder:focus-visible, .rvb .rv-mx-finder:focus-visible { outline: 2px solid var(--rvb-focus, var(--rvb-accent)) !important; outline-offset: 3px; }

/* ---------- 0.72.2 (Hazem 2026-11-11) ---------- */
/* Home hero, wide screens: the whole pack stays in view — the image sits complete over a blurred copy of itself (portrait photos in a wide slot were cut) */
.rvnx-slide .rvnx-bg { display: none; }
@media (min-width: 861px) {
  .rvhc-hero .rvhc-portrait.is-rot .rvnx-slide img.rvnx-bg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(26px) saturate(1.05) brightness(.96); transform: scale(1.18) !important; scale: 1 !important; animation: none !important; }
  .rvhc-hero .rvhc-portrait.is-rot img.rvnx-img { position: absolute; inset: 0; object-fit: contain; object-position: 50% 50% !important; scale: 1; }
  .rvnx-slide[data-rvnx-on] img.rvnx-img { animation: rvnx-zoom-c 3.6s cubic-bezier(.25,.6,.35,1) forwards; }
  @keyframes rvnx-zoom-c { from { scale: 1.05; } to { scale: 1; } }
}
@media (prefers-reduced-motion: reduce) { .rvnx-slide[data-rvnx-on] img.rvnx-img { animation: none; } }
/* Home score: a clear pill with a word instead of a small round icon */
.rvnx-sound { width: auto !important; height: 44px; padding: 0 16px 0 14px; gap: 8px; display: inline-flex !important; align-items: center; border-radius: 999px; background: #0a2540 !important; color: #fff !important; border-color: rgba(255,255,255,.25) !important; font: 600 13.5px/1 inherit; box-shadow: 0 12px 28px -12px rgba(10,37,64,.6); }
.rvnx-sound .rvnx-sound-t { white-space: nowrap; }
.rvnx-sound[aria-pressed="false"] { opacity: 1; background: rgba(255,255,255,.92) !important; color: #0a2540 !important; border-color: rgba(10,37,64,.25) !important; }
@media (max-width: 640px) { .rvnx-sound { height: 40px; padding: 0 12px; } }

/* 0.77.6 (Hazem 2026-11-12): phone Home hero — the images at their own shape (2:3), full width: the focus of the first screen */
@media (max-width: 767px) {
  .rvhc-hero .rvhc-hero-media { aspect-ratio: 2 / 3; width: calc(100% + 40px); margin-inline: -20px; height: auto; }
}

/* 0.77.6 (Hazem 2026-11-12): sound button — small, frosted, sits in the hero text (never on the images), «المس الشاشة» until it plays, gone with the scroll */
.rvnx-sound.rvnx-sound--v2 { position: absolute !important; top: auto !important; bottom: 14px !important; height: 30px !important; width: auto !important; padding: 0 10px !important; gap: 6px; font: 600 12px/1 inherit !important; border-radius: 999px; background: rgba(255,255,255,.38) !important; color: #0a2540 !important; border: 1px solid rgba(255,255,255,.65) !important; -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 6px 18px -10px rgba(10,37,64,.35) !important; opacity: 1; transition: opacity .35s ease, transform .35s ease; z-index: 5; }
html[dir="rtl"] .rvnx-sound.rvnx-sound--v2 { left: 14px !important; right: auto !important; }
html[dir="ltr"] .rvnx-sound.rvnx-sound--v2 { right: 14px !important; left: auto !important; }
.rvhc-hero-media { position: relative; }
.rvnx-sound.rvnx-sound--v2 svg { width: 14px; height: 14px; }
.rvnx-sound.rvnx-sound--v2[aria-pressed="false"] { background: rgba(255,255,255,.38) !important; color: #0a2540 !important; border-color: rgba(255,255,255,.65) !important; }
.rvnx-sound.rvnx-sound--v2.is-away { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.rvnx-sound.rvnx-sound--v2.is-done { display: none !important; }

/* 0.77.6 (Hazem 2026-11-12): collections as film cards */
.rvhc-lines.rvhc-cols { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px !important; justify-content: stretch; }
@media (max-width: 767px) { .rvhc-lines.rvhc-cols { grid-template-columns: 1fr !important; gap: 14px !important; } }
.rvhc-cols > li { display: flex; }
.rvhc-col { display: flex; flex-direction: column; flex: 1; border-radius: 20px; overflow: hidden; background: var(--rv-surface, #fff); border: 1px solid var(--c-line, rgba(10,37,64,.1)); color: inherit; text-decoration: none; transition: transform .3s ease, box-shadow .3s ease; }
.rvhc-col:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(10,37,64,.45); }
.rvhc-col-media { display: block; aspect-ratio: 16 / 10; background: #0a0a0b; overflow: hidden; }
.rvhc-col-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.rvhc-col-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.rvhc-col-name { font: 800 1.25rem/1.2 var(--font-heading); letter-spacing: .08em; color: var(--c-ink, #0a2540); }
.rvhc-col-tag { color: var(--c-muted, #5b6b7f); font-size: .9375rem; line-height: 1.65; }
.rvhc-col-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; font-size: .875rem; color: var(--c-muted, #5b6b7f); }
.rvhc-col-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--rv-accent, #0b7d68); }

/* 0.77.6 (Hazem 2026-11-12): product cards line up — same heights, row by row */
.rvhc-cur-item { display: flex; }
.rvhc-cur-item > .rvc-card { flex: 1; }
.rvc-card .rvc-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rvc-card .rvc-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.rvc-card .rvc-desc-ar { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; }

/* 0.77.8 (Hazem 2026-11-13): bigger product plate on the collection stories */
.rvhc-story-plate { width: 40% !important; border-radius: 20px; }
@media (max-width: 767px) { .rvhc-story-plate { width: 48% !important; } }

/* 0.78.0 (Hazem 2026-11-14): Home hero = one photograph per slide in the shape of the screen — wide on desktop (whole hero, pack large on the
   image side, calm side under the title), tall 2:3 on phones; each collection story in its own scene (wide desktop / 4:5 phone). */
@media (min-width: 861px) {
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-hero-bg { display: none; }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-hero-media { position: static; }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-portrait.is-rot { inset: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .rvhc-hero .rvhc-portrait.is-rot .rvnx-slide[data-rvnx-wide] img.rvnx-bg { display: none !important; }
  .rvhc-hero .rvhc-portrait.is-rot .rvnx-slide[data-rvnx-wide] img.rvnx-img { object-fit: cover; object-position: 50% 50% !important; }
  .rvnx-slide[data-rvnx-wide][data-rvnx-on] img.rvnx-img { animation: rvnx-zoom-w 3.6s cubic-bezier(.25,.6,.35,1) forwards; }
  @keyframes rvnx-zoom-w { from { scale: 1.06; } to { scale: 1; } }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-portrait.is-rot::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  html[dir="rtl"] .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-portrait.is-rot::after { background: linear-gradient(to left, rgba(251,248,243,.88), rgba(251,248,243,.55) 32%, rgba(251,248,243,0) 52%); }
  html:not([dir="rtl"]) .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-portrait.is-rot::after { background: linear-gradient(to left, rgba(251,248,243,.88), rgba(251,248,243,.55) 32%, rgba(251,248,243,0) 52%); }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-hero-grid { min-height: min(56.25vw, calc(100vh - 96px)); }   /* close to the 16:9 photo, so packs are not cropped */
  /* sound button on the calm (title) side, never over the packs */
  html[dir="rtl"] .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvnx-sound.rvnx-sound--v2 { right: 18px !important; left: auto !important; bottom: 36px !important; }
  html:not([dir="rtl"]) .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvnx-sound.rvnx-sound--v2 { right: 18px !important; left: auto !important; bottom: 36px !important; }
  /* 0.78.1 (Hazem): the copy stays on the right in English too — the packs sit on the left of every wide photo */
  html:not([dir="rtl"]) .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-hero-copy { grid-column: 2; grid-row: 1; }
  html:not([dir="rtl"]) .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-hero-media { grid-column: 1; grid-row: 1; }
}
.rvhc-story-media > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
@media (max-width: 767px) { .rvhc-story-media:has(> picture) { aspect-ratio: 4 / 5; } }

/* 0.78.1 (Hazem 2026-11-15): phone hero = one full screen — the tall photo fills it, the title, line and buttons sit on its calm lower part
   (nothing cut below the fold); sound button and dots move to the top of the photo. */
@media (max-width: 860px) {
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) { height: calc(100svh - 65px); min-height: 540px; max-height: 980px; }
  body.admin-bar .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) { height: calc(100svh - 111px); }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-hero-bg { display: none; }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-hero-grid { position: static; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 0; padding-block: 0 22px; }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-hero-media { position: absolute !important; inset: 0; width: auto !important; height: auto !important; margin: 0 !important; aspect-ratio: auto !important; order: 0; }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-portrait.is-rot { position: absolute; inset: 0; width: 100%; -webkit-mask-image: none !important; mask-image: none !important; }
  .rvhc-hero .rvhc-portrait.is-rot .rvnx-slide[data-rvnx-wide] img.rvnx-img { object-fit: cover; object-position: 50% 30% !important; }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-portrait.is-rot::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(to top, rgba(251,248,243,.96) 0%, rgba(251,248,243,.86) 22%, rgba(251,248,243,.35) 38%, rgba(251,248,243,0) 50%); }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-hero-copy { position: relative; z-index: 3; gap: 10px; min-width: 0; width: 100%; }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-display { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-lead { font-size: 1rem; }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-actions { flex-wrap: wrap; gap: 10px; margin-top: 4px; }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-actions .rvhc-btn { flex: 1 1 auto; min-width: 0; padding: 0 12px; min-height: 46px; gap: 6px; font-size: .875rem; }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvhc-actions .rvhc-btn-primary { flex-grow: 1.4; }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvnx-sound.rvnx-sound--v2 { top: 14px !important; bottom: auto !important; }
  .rvhc-hero:has(.rvnx-slide[data-rvnx-wide]) .rvnx-dots { top: 20px; bottom: auto; inset-inline-start: auto; inset-inline-end: 18px; }
}
/* 0.78.1 (Hazem): phones get the language switch in the header, beside search (short label: «EN» on Arabic pages, «ع» on English pages) */
@media (max-width: 767px) {
  .rvs-tools .rvs-lang { display: inline-flex !important; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 999px;
    border: 1px solid var(--rv-line, rgba(10,37,64,.16)); font-size: 0 !important; color: var(--rv-heading, #0a2540) !important; text-decoration: none; flex: none; }
  .rvs-tools .rvs-lang::before { font: 700 12.5px/1 var(--font-heading, system-ui); letter-spacing: .04em; }
  .rvs-tools .rvs-lang[lang="en"]::before { content: "EN"; }
  .rvs-tools .rvs-lang[lang="ar"]::before { content: "ع"; font-family: var(--font-ar-heading, system-ui); font-size: 15px; }
}
/* 0.78.1 (Hazem): collection story plate = frosted glass, so the scene behind keeps its beauty */
.rv-next .rvhc-story-plate, .rv-next .rvhc-story-plate[style*="--rvpc"], body.rv-next.rv-dark .rvhc-story-plate[style*="--rvpc"] {
  background: rgba(255,255,255,.22) !important; -webkit-backdrop-filter: blur(16px) saturate(1.35); backdrop-filter: blur(16px) saturate(1.35);
  border: 1px solid rgba(255,255,255,.55); box-shadow: 0 18px 40px -22px rgba(10,37,64,.45) !important; padding: 6% !important; }
.rv-next .rvhc-story-plate .rvhc-pack { object-fit: contain !important; mix-blend-mode: multiply; filter: none !important; border-radius: 12px; }

/* 0.78.2 (Hazem): stories show the pack cut-out (transparent PNG) on the frosted glass — no photo background inside the plate */
.rv-next .rvhc-story-plate.has-cut { padding: 7% !important; }
.rv-next .rvhc-story-plate.has-cut .rvhc-pack { object-fit: contain !important; mix-blend-mode: normal !important; border-radius: 0; filter: drop-shadow(0 12px 14px rgba(10,37,64,.28)) !important; }
