/* RIFT — classic top (from the original site): top bar, centred-logo header, rounded hero banner,
   plus the "In the Spotlight" 3D ring, search bar and wishlist hearts. Loaded after fx.css. */

/* ---------- Top bar ---------- */
.topbar { background: #161616; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding-block: 5px; }
.topbar__pill { display: inline-flex; align-items: center; gap: .5em; padding: .5em 1em; border-radius: 999px; background: #0b0b0b; color: #f4f4f5;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 4px 14px -8px rgba(0,0,0,.6); transition: transform .2s; }
.lang-ar .topbar__pill { letter-spacing: 0; font-size: 12px; }
.topbar__pill:hover { transform: translateY(-1px); }
.topbar__msg { color: var(--muted); text-align: center; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__lang { font-weight: 700; letter-spacing: .04em; color: var(--muted); direction: ltr; white-space: nowrap; }
.topbar__lang .is-on { color: var(--text); }
.topbar__lang:hover { color: var(--text); }
@media (max-width: 640px) { .topbar__msg { display: none; } }

/* ---------- Header (centred logo) ---------- */
.header--classic { background: #000; border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header--classic .header__inner { position: relative; height: 72px; justify-content: space-between; }
.header--classic .nav { margin: 0; gap: clamp(14px, 1.8vw, 30px); font-size: 15px; }
.header--classic .nav a { color: #f2f2f0; opacity: .88; font-weight: 500; border: 0; position: relative; padding-block: 6px; }
.header--classic .nav a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: 0; background: currentColor; transition: width .25s var(--ease); }
.header--classic .nav a:hover, .header--classic .nav a[aria-current] { opacity: 1; }
.header--classic .nav a:hover::after, .header--classic .nav a[aria-current]::after { width: 100%; }
.brand-full { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 118px; height: 62px; overflow: hidden; z-index: 2; transition: transform .25s var(--ease); }
.brand-full:hover { transform: translate(-50%, -50%) scale(1.04); }
.brand-full img { position: absolute; left: 0; top: -26px; width: 118px; height: 118px; max-width: none; }
.header--classic .header__actions { gap: 4px; margin-inline-start: auto; }
.header--classic .icon-btn { width: 42px; height: 42px; }
.header--classic .icon-btn:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.btn-pill { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: 8px; padding: 12px 22px; border-radius: 999px; background: #f4f4f5; color: #0a0a0a;
  font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.btn-pill:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255,255,255,.4); }
[dir="rtl"] .btn-pill .ic { transform: scaleX(-1); }
.wish-btn.has-items { color: var(--accent); }
@media (max-width: 1099px) {
  .header--classic .nav { display: none; }
  .header--classic .header__burger { display: inline-grid; }
  .btn-pill { display: none; }
}
@media (min-width: 1100px) { .header--classic .header__burger { display: none; } }
@media (max-width: 520px) {
  .header--classic .header__actions .acc-btn { display: none; }
  .brand-full { width: 100px; height: 54px; }
  .brand-full img { width: 100px; height: 100px; top: -22px; }
}

/* Search bar under the header */
.searchbar { position: absolute; left: 0; right: 0; top: 100%; background: #111; border-bottom: 1px solid var(--line); animation: drop-in .25s var(--ease); }
.searchbar__inner { display: flex; align-items: center; gap: 12px; padding-block: 14px; color: var(--muted); }
.searchbar input { flex: 1; min-height: 44px !important; border: 0 !important; background: transparent !important; font-size: 17px; color: var(--text); padding: 0 !important; }
.searchbar input:focus { outline: none; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Hero banner (rounded, like the original site) ---------- */
.hero-classic { padding: clamp(14px, 2.4vw, 28px) var(--gutter) 0; }
.hero-classic__frame { position: relative; max-width: var(--wrap); margin-inline: auto; aspect-ratio: 16 / 9; border-radius: 32px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 50px -24px rgba(0,0,0,.7); background: #111; }
.hero-classic__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; line-height: 0; }
.hero-classic__slide.is-active { opacity: 1; pointer-events: auto; }
.hero-classic__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-classic__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; border: 0;
  border-radius: 999px; color: #0a0a0a; background: rgba(255,255,255,.82); backdrop-filter: blur(6px); transition: background .2s; }
.hero-classic__arrow:hover { background: var(--accent); }
.hero-classic__arrow--prev { left: clamp(10px, 2vw, 28px); }
.hero-classic__arrow--prev .ic { transform: scaleX(-1); }
.hero-classic__arrow--next { right: clamp(10px, 2vw, 28px); }
.hero-classic__dots { position: absolute; left: 50%; bottom: clamp(12px, 2.4vw, 26px); transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; direction: ltr; }
.hero-classic__dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: rgba(10,10,10,.35); border: 1.5px solid rgba(10,10,10,.5); transition: all .2s; }
.hero-classic__dots button.is-active { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
@media (max-width: 640px) { .hero-classic__frame { border-radius: 20px; } .hero-classic__arrow { width: 36px; height: 36px; } }
.hero-classic + .tapes { margin-top: 18px; }

/* ---------- Wishlist hearts ---------- */
.card__wish { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10,10,10,.55); color: #fff; backdrop-filter: blur(6px); cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.card__wish:hover { transform: scale(1.08); }
.card__wish.is-on { color: #ff4d6d; background: rgba(255,255,255,.92); }
.card__wish.is-on .ic, .wish-toggle.is-on .ic { fill: currentColor; }
.card__num { top: auto; bottom: 12px; }
.wish-toggle.is-on { border-color: #ff4d6d; color: #ff6b84; }

/* ---------- Color dots on product cards (switch the photo) ---------- */
.swatches { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.sw { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--sw); cursor: pointer; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 0 0 2px var(--bg), 0 0 0 3px transparent; transition: box-shadow .2s, transform .2s; }
.sw::before { content: ""; position: absolute; inset: -6px; }          /* bigger tap area on phones */
.sw:hover { transform: scale(1.12); }
.sw.is-on { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.card.is-picked .card__hover { display: none; }
.card__media img { transition: opacity .25s, transform .6s var(--ease); }

/* ---------- Scroll cue under the hero (mouse icon) ---------- */
.scroll-cue { display: block; position: relative; width: 34px; height: 56px; margin: 22px auto 0; border: 2px solid rgba(255,255,255,.55); border-radius: 18px;
  transition: border-color .2s, transform .2s; }
.scroll-cue:hover { border-color: var(--accent); transform: translateY(2px); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 5px; height: 12px; margin-left: -2.5px; border-radius: 3px; background: var(--accent);
  box-shadow: 0 0 10px rgba(163,230,53,.7); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.hero-classic + .tapes { margin-top: 6px; }
@media (max-width: 640px) { .scroll-cue { width: 30px; height: 50px; margin-top: 16px; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* ---------- In the Spotlight: full 3D cylinder with curved cards (like the original site) ---------- */
.spotlight { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 44px); overflow: hidden; background: #111; }
.spotlight__head { text-align: center; max-width: 640px; }
.spotlight__head .eyebrow { color: #fff; letter-spacing: .22em; }
.spotlight__head .h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; letter-spacing: -.01em; }
.lang-ar .spotlight__head .h2 { font-family: var(--font); }
.spotlight__head .muted { margin: 8px auto 0; max-width: 560px; }
.ring { position: relative; height: clamp(400px, 44vw, 560px); margin-top: 12px; direction: ltr; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; }
.ring.is-dragging { cursor: grabbing; }
.ring:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 12px; }
.ring__fit { position: absolute; left: 50%; top: calc(50% - 40px); width: 0; height: 0; transform-style: preserve-3d; transform-origin: 0 0; }
.ring__tilt, .ring__spin { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.ring__card { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; --d: 0; }
.ring__strip { position: absolute; left: -16.625px; top: -156px; width: 33.25px; height: 312px; background-image: var(--img); background-size: 250px 312px;
  background-repeat: no-repeat; background-color: #1a1a1a; backface-visibility: visible; -webkit-backface-visibility: visible; will-change: transform; }
.ring__strip::after { content: ""; position: absolute; inset: 0; background: #111; opacity: var(--d); pointer-events: none; }
.ring__strip.is-first { border-radius: 16px 0 0 16px; }
.ring__strip.is-last { border-radius: 0 16px 16px 0; }
.ring__strip.is-first::after { border-radius: 16px 0 0 16px; }
.ring__strip.is-last::after { border-radius: 0 16px 16px 0; }
.ring__caption { position: absolute; left: 0; right: 0; bottom: 6px; display: grid; justify-items: center; gap: 2px; text-align: center; pointer-events: none; }
.ring__caption b { font-size: 15px; letter-spacing: .04em; color: #f4f4f5; }
.ring__caption span { font-size: 15px; color: #9a9a96; }
.ring__caption small { font-size: 12px; color: #6f6f6c; font-weight: 600; letter-spacing: .08em; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- "Added to cart" popup ---------- */
.added { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.added__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.added__panel { position: relative; width: min(440px, 100%); background: #141414; border: 1px solid #2a2a2a; border-radius: 22px; padding: 26px 24px 18px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(163,230,53,.06); display: grid; gap: 16px;
  transform: translateY(18px) scale(.97); opacity: 0; transition: transform .35s var(--ease), opacity .25s; }
.added.is-open .added__backdrop { opacity: 1; }
.added.is-open .added__panel { transform: none; opacity: 1; }
.added__x { position: absolute; top: 10px; inset-inline-end: 10px; color: var(--muted); }
.added__head { display: flex; align-items: center; gap: 12px; }
.added__head h2 { margin: 0; font-size: 20px; }
.added__check { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 6px rgba(163,230,53,.14); }
.added.is-open .added__check { animation: pop .45s var(--ease) .05s both; }
.added__item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 12px; border: 1px solid #262626; border-radius: 14px; background: #101010; }
.added__item img { width: 84px; height: 112px; object-fit: cover; border-radius: 10px; background: #1b1b1b; }
.added__item div { display: grid; gap: 4px; }
.added__item b { font-size: 15px; letter-spacing: .04em; }
.added__item small { color: var(--muted); font-size: 13px; }
.added__item span { color: var(--accent); font-weight: 600; font-size: 14px; }
.added__free p { margin: 0 0 8px; font-size: 13px; color: #cfcfcb; }
.added__free .freebar__track span { transition: width .9s var(--ease); }
.added__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 4px; border-top: 1px solid #262626; padding-top: 14px; }
.added__sum span { color: var(--muted); font-size: 14px; }
.added__sum b { font-size: 19px; }
.added__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.added__actions .btn { min-height: 50px; padding-inline: 12px; white-space: normal; text-align: center; }
[dir="rtl"] .added__actions .ic { transform: scaleX(-1); }
.added__cart { justify-self: center; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.added__cart:hover { color: var(--text); }
body.has-modal { overflow: hidden; }
@media (max-width: 520px) {
  .added { place-items: end center; padding: 0; }
  .added__panel { width: 100%; border-radius: 22px 22px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); }
  .added.is-open .added__panel { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .added__panel, .added__backdrop { transition: none; } }
