/* NST campaign & conversion pieces — same palette as the home page */
:root {
  --nst-forest: #033221;
  --nst-forest-2: #0b4430;
  --nst-linen: #eeebe4;
  --nst-line: #d6d2c8;
  --nst-brass: #a8844f;
  --nst-gold: #d4b27a;
  --nst-ink: #18241e;
  --nst-mute: #5f6b64;
  --nst-hot: #b4472f;
}
.nst-ic { flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Countdown ---------- */
.nst-cd { display: inline-flex; gap: 6px; align-items: stretch; direction: ltr; font-variant-numeric: tabular-nums; }
.nst-cd__u { display: grid; justify-items: center; min-width: 54px; padding: 8px 6px 6px; border-radius: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); }
.nst-cd__u b { font-size: 26px; line-height: 1; font-weight: 700; color: #fff; }
.nst-cd__u small { margin-top: 4px; font-size: 11px; color: rgba(255, 255, 255, .75); }
.nst-cd--mini { gap: 3px; }
.nst-cd--mini .nst-cd__u { display: inline-flex; min-width: 0; padding: 2px 5px; border-radius: 4px; background: var(--nst-forest); border: 0; }
.nst-cd--mini .nst-cd__u b { font-size: 13px; color: #fff; }
.nst-cd--mini .nst-cd__u small { display: none; }
.nst-cd--mini .nst-cd__u + .nst-cd__u::before { content: ":"; margin-inline-end: 3px; color: #fff; opacity: .6; }

/* ---------- Top bar ---------- */
.nst-topbar { background: var(--nst-forest); color: #fff; font-size: 13px; position: relative; z-index: 60; }
.nst-topbar__in { width: min(1320px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px; min-height: 52px; }
.nst-topbar__deal { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--nst-gold); color: var(--nst-forest) !important; text-decoration: none !important; font-weight: 700; }
.nst-topbar__deal .nst-ic { width: 18px; height: 18px; }
.nst-topbar__deal strong { font-size: 13.5px; }
.nst-topbar__ends { font-weight: 500; font-size: 12px; opacity: .85; }
.nst-topbar__list { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; justify-content: space-around; gap: 18px; }
.nst-topbar__list li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.nst-topbar__list .nst-ic { color: var(--nst-gold); width: 22px; height: 22px; }
.nst-topbar__list span { display: grid; line-height: 1.25; }
.nst-topbar__list strong { font-weight: 600; font-size: 13.5px; color: #fff; }
.nst-topbar__list small { font-size: 11.5px; color: rgba(255, 255, 255, .72); }
@media (max-width: 1023px) {
  .nst-topbar__in { flex-direction: column; gap: 6px; padding-block: 8px; }
  .nst-topbar__list { width: 100%; justify-content: center; }
  .nst-topbar__list li { display: none; }
  .nst-topbar__list li.is-on { display: flex; animation: nstFade .4s ease; }
  .nst-topbar__list.is-static li { display: flex; }
}
@keyframes nstFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons used by the campaign ---------- */
.nst-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; font-weight: 500; text-decoration: none !important; transition: background-color .2s, color .2s, border-color .2s; }
.nst-btn--gold { background: var(--nst-gold); color: var(--nst-forest) !important; font-weight: 700; border: 0; cursor: pointer; }
.nst-btn--gold:hover { background: #e2c48f; }
.nst-btn--ghost { border: 1px solid rgba(255, 255, 255, .6); color: #fff !important; }
.nst-btn--ghost:hover { background: #fff; color: var(--nst-forest) !important; }

/* ---------- Campaign hero ---------- */
.nst-home .nst-camp { position: relative; background: var(--nst-forest); color: #fff; overflow: hidden; }
.nst-camp__media { position: relative; aspect-ratio: 4 / 3; }
.nst-camp__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
.nst-camp__body { position: relative; }
.nst-camp__card { padding: 28px 0 40px; }
.nst-camp__eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--nst-gold); color: var(--nst-forest); font-weight: 700; font-size: 14px; }
.nst-home .nst-camp__title { margin: 16px 0 0; color: #fff; font-family: var(--nst-display); font-weight: 600; font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.12; text-wrap: balance; }
.nst-camp__big { margin: 10px 0 0; font-size: clamp(1.2rem, 2vw, 1.6rem); color: rgba(255, 255, 255, .9); }
.nst-camp__big b { font-family: var(--nst-display); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--nst-gold); margin-inline-start: 6px; }
.nst-camp__sub { margin: 12px 0 0; max-width: 34rem; font-size: 1.05rem; line-height: 1.9; color: rgba(255, 255, 255, .85); }
.nst-camp__timer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.nst-camp__timer > span { font-weight: 600; color: var(--nst-gold); }
.nst-camp .nst-actions { margin-top: 26px; }
@media (min-width: 1024px) {
  .nst-home .nst-camp { min-height: min(80vh, 720px); display: flex; align-items: center; }
  .nst-camp__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .nst-camp__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(3, 50, 33, .96) 0%, rgba(3, 50, 33, .88) 34%, rgba(3, 50, 33, .25) 62%, rgba(3, 50, 33, 0) 80%); }
  [dir="ltr"] .nst-camp__media::after, html:not([dir="rtl"]) .nst-camp__media::after { background: linear-gradient(to right, rgba(3, 50, 33, .96) 0%, rgba(3, 50, 33, .88) 34%, rgba(3, 50, 33, .25) 62%, rgba(3, 50, 33, 0) 80%); }
  html[dir="rtl"] .nst-camp__media::after { background: linear-gradient(to left, rgba(3, 50, 33, .96) 0%, rgba(3, 50, 33, .88) 34%, rgba(3, 50, 33, .25) 62%, rgba(3, 50, 33, 0) 80%); }
  .nst-camp__card { max-width: 560px; padding: 72px 0; }
}

/* ---------- Pills ---------- */
.nst-home .nst-pills { margin-top: 40px; }
.nst-pills__title { font-size: 1.15rem !important; font-weight: 600; margin: 0 0 14px !important; color: var(--nst-forest); }
.nst-pills ul { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.nst-pills ul::-webkit-scrollbar { display: none; }
.nst-pills a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border: 1px solid var(--nst-line); border-radius: 999px; color: var(--nst-ink) !important; text-decoration: none !important; white-space: nowrap; font-weight: 500; transition: border-color .2s, background .2s, color .2s; }
.nst-pills a:hover { border-color: var(--nst-forest); background: var(--nst-forest); color: #fff !important; }

/* ---------- Flash deals ---------- */
.nst-flash__t { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.nst-flash__t .nst-title { display: inline-flex; align-items: center; gap: 8px; }
.nst-flash__t .nst-title .nst-ic { width: 28px; height: 28px; color: var(--nst-brass); }
.nst-flash__ends { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--nst-mute); }

/* ---------- Category banners ---------- */
.nst-home .nst-banner { position: relative; display: block; margin-top: 72px; border-radius: 14px; overflow: hidden; color: #fff !important; text-decoration: none !important; background: var(--nst-forest); min-height: 300px; }
.nst-banner__img { position: absolute; inset: 0; }
.nst-banner__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.nst-banner:hover .nst-banner__img img { transform: scale(1.03); }
.nst-banner__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(3, 50, 33, .92) 0%, rgba(3, 50, 33, .7) 38%, rgba(3, 50, 33, .05) 75%); }
html:not([dir="rtl"]) .nst-banner__img::after { background: linear-gradient(to right, rgba(3, 50, 33, .92) 0%, rgba(3, 50, 33, .7) 38%, rgba(3, 50, 33, .05) 75%); }
.nst-banner__body { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; min-height: 300px; max-width: 520px; padding: 36px clamp(24px, 4vw, 56px); }
.nst-banner__off { padding: 5px 14px; border-radius: 999px; background: var(--nst-gold); color: var(--nst-forest); font-weight: 700; font-size: 14px; }
.nst-banner__title { font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif; font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.15; color: #fff; }
.nst-banner__sub { font-size: 1rem; line-height: 1.8; color: rgba(255, 255, 255, .88); }
.nst-banner__cta { margin-top: 6px; font-weight: 600; color: var(--nst-gold); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
@media (min-width: 1024px) { .nst-home .nst-banner, .nst-banner__body { min-height: 380px; } }
.nst-home .nst-banner + .nst-rail { margin-top: 36px; }

/* ---------- Product page ---------- */
.nst-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.nst-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; border: 1px solid; }
.nst-chip--hot { color: var(--nst-hot); border-color: color-mix(in srgb, var(--nst-hot) 45%, transparent); background: color-mix(in srgb, var(--nst-hot) 6%, #fff); }
.nst-chip--warn { color: #8a5a00; border-color: #e3c27a; background: #fff8e6; }
.nst-chip--timer { color: var(--nst-forest); border-color: var(--nst-line); background: #fff; }
.nst-save-bar { display: flex; align-items: stretch; margin: 0 0 18px; border-radius: 8px; overflow: hidden; background: linear-gradient(90deg, #f3e6cf, #ead6b2); color: var(--nst-forest); font-size: 14px; }
.nst-save-bar__tag { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; padding-inline-end: 24px; background: var(--nst-forest); color: #fff; font-weight: 700; white-space: nowrap; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
html[dir="rtl"] .nst-save-bar__tag { clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%); }
.nst-save-bar__tag .nst-ic { width: 17px; height: 17px; color: var(--nst-gold); }
.nst-save-bar ul { list-style: none; margin: 0; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.nst-save-bar li { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.nst-save-bar li .nst-ic { width: 16px; height: 16px; }
.nst-trust { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--nst-line); border-radius: 10px; overflow: hidden; }
.nst-trust li { display: flex; align-items: flex-start; gap: 10px; padding: 14px; }
.nst-trust li:nth-child(even) { border-inline-start: 1px solid var(--nst-line); }
.nst-trust li:nth-child(n+3) { border-top: 1px solid var(--nst-line); }
.nst-trust .nst-ic { color: var(--nst-brass); width: 24px; height: 24px; margin-top: 2px; }
.nst-trust span { display: grid; gap: 2px; line-height: 1.4; }
.nst-trust strong { color: var(--nst-forest); font-size: 14px; }
.nst-trust small { color: var(--nst-mute); font-size: 12.5px; }
.nst-trust__ship strong { color: #1a7f37; }

/* ---------- "Before you leave" ---------- */
.nst-leave { width: min(460px, calc(100% - 32px)); padding: 36px 28px 28px; border: 0; border-radius: 16px; text-align: center; color: var(--nst-ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.nst-leave::backdrop { background: rgba(10, 20, 15, .55); }
.nst-leave h2 { margin: 0; font-size: 1.45rem; line-height: 1.5; color: var(--nst-forest); }
.nst-leave p { margin: 8px 0 0; color: var(--nst-mute); }
.nst-leave h2 { padding-inline: 28px; }
.nst-leave .nst-leave__x { position: absolute; top: 10px; inset-inline-end: 12px; width: 36px; height: 36px; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; outline-offset: 2px; font-size: 28px; line-height: 1; cursor: pointer; color: var(--nst-ink) !important; }
.nst-leave__perks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; justify-content: center; gap: 12px; }
.nst-leave__perks li { flex: 1; display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border-radius: 10px; background: var(--nst-linen); }
.nst-leave__perks .nst-ic { width: 30px; height: 30px; color: var(--nst-brass); }
.nst-leave__perks strong { font-size: 14px; color: var(--nst-forest); }
.nst-leave__perks small { font-size: 12px; color: var(--nst-mute); }
.nst-leave__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.nst-leave__btns .nst-btn { min-height: 50px !important; padding: 0 16px !important; border-radius: 999px !important; font-size: 16px !important; font-weight: 700 !important; }
.nst-leave__btns .nst-btn--gold { background: var(--nst-forest) !important; color: #fff !important; border: 0 !important; }
.nst-leave__btns .nst-btn--outline { border: 1px solid var(--nst-line) !important; color: var(--nst-ink) !important; background: #fff !important; }
@media (max-width: 520px) {
  .nst-topbar__deal { padding: 5px 10px; gap: 6px; }
  .nst-topbar__deal strong { white-space: nowrap; font-size: 12.5px; }
  .nst-topbar__ends { display: none; }
}

/* Campaign banner = the campaign artwork itself */
.nst-home .nst-camp--banner { display: block !important; min-height: 0 !important; background: #f3efe8; color: inherit; }
.nst-camp__banner { display: block; line-height: 0; }
.nst-camp__banner img { display: block; width: 100%; height: auto; }
.nst-camp__strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 14px 16px; background: var(--nst-forest); color: #fff; font-weight: 600; }
.nst-camp__strip > span { color: var(--nst-gold); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Language switcher */
.nst-lang { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid currentColor; border-radius: 999px; font-weight: 600; font-size: 13px; text-decoration: none !important; white-space: nowrap; }
.nst-lang--top { color: #fff !important; border-color: rgba(255, 255, 255, .5); flex: none; }
.nst-lang--top:hover { background: #fff; color: var(--nst-forest) !important; }
.nst-lang--foot { margin-top: 14px; color: inherit !important; }
@media (max-width: 1023px) { .nst-topbar__in { position: relative; } .nst-lang--top { position: absolute; top: 8px; inset-inline-end: 0; padding: 2px 8px; font-size: 12px; } .nst-topbar__deal { margin-inline-end: 64px; } }
.nst-ar-only { padding: 10px 14px; border-radius: 8px; background: #f3efe8; color: #5f6b64; font-size: 14px; }

/* Language globe beside the cart */
.nst-lang-icon { display: inline-flex; align-items: center; gap: 4px; padding: 6px; margin-inline: 4px; color: inherit !important; text-decoration: none !important; font-size: 12px; font-weight: 700; line-height: 1; border-radius: 999px; transition: color .2s, background .2s; align-self: center; }
.nst-lang-icon:hover { color: var(--nst-brass) !important; }
.nst-lang-icon span { letter-spacing: .02em; }
.nst-lang-in-header .nst-lang--top { display: none !important; }
.nst-lang-in-header .nst-topbar__deal { margin-inline-end: 0; }

/* Banner photo always covers the whole banner (themes set img height:auto) */
.nst-home .nst-banner .nst-banner__img { position: absolute !important; inset: 0 !important; overflow: hidden; }
.nst-home .nst-banner .nst-banner__img img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover !important; object-position: 50% 60% !important; margin: 0 !important; border-radius: 0 !important; aspect-ratio: auto !important; }
.nst-banner__off { display: none !important; }
.nst-home .nst-banner .nst-banner__img::after { z-index: 1; background: linear-gradient(to left, rgba(3, 50, 33, .88) 0%, rgba(3, 50, 33, .55) 30%, rgba(3, 50, 33, 0) 58%) !important; }
html:not([dir="rtl"]) .nst-home .nst-banner .nst-banner__img::after { background: linear-gradient(to right, rgba(3, 50, 33, .88) 0%, rgba(3, 50, 33, .55) 30%, rgba(3, 50, 33, 0) 58%) !important; }
.nst-home .nst-banner .nst-banner__body { z-index: 2; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }

/* Single pieces on a plain background: the whole photo, nothing cut */
.products .product img.nst-whole { object-fit: contain !important; object-position: center !important; }
.products .product .nst-whole-box { background-image: none !important; }

/* ---------- Horizontal rows with left / right arrows ---------- */
.nst-slider { position: relative; }
.nst-slider__track { scroll-behavior: smooth; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.nst-slider__track::-webkit-scrollbar { display: none; }
.nst-slider__btn { position: absolute; top: 50%; z-index: 4; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-top: -21px; padding: 0 !important; border: 1px solid var(--nst-line) !important; border-radius: 50% !important; background: #fff !important; color: var(--nst-forest) !important; box-shadow: 0 6px 18px rgba(3, 50, 33, .14); cursor: pointer; transition: opacity .2s, background .2s, color .2s; }
.nst-slider__btn:hover { background: var(--nst-forest) !important; color: #fff !important; }
.nst-slider__btn--right { right: -6px; }
.nst-slider__btn--left { left: -6px; }
.nst-slider__btn[disabled] { opacity: 0; pointer-events: none; }
.nst-slider.is-static .nst-slider__btn { display: none; }
.nst-pills .nst-slider__track { padding-inline: 52px !important; }
.nst-pills .nst-slider.is-static .nst-slider__track { padding-inline: 0 !important; }
.nst-pills .nst-slider__btn { width: 38px; height: 38px; margin-top: -22px; }

/* «تسوق حسب الأوضة»: wide room photos in a row */
.nst-home .nst-rooms { display: flex !important; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 !important; padding: 0 0 6px !important; }
.nst-home .nst-rooms li { flex: 0 0 82% !important; scroll-snap-align: start; }
@media (min-width: 768px) { .nst-home .nst-rooms li { flex-basis: calc((100% - 20px) / 2) !important; } }
@media (min-width: 1100px) { .nst-home .nst-rooms li { flex-basis: calc((100% - 40px) / 3) !important; } }
.nst-home .nst-rooms__img { aspect-ratio: 4 / 3 !important; position: relative; border-radius: 12px; }
.nst-home .nst-rooms__img img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; object-position: 50% 70%; }
.nst-home .nst-rooms__img img.nst-whole { object-fit: contain !important; object-position: center !important; }
.nst-home .nst-rooms__name { font-size: 1.15rem; margin-top: 14px; }
.nst-slider--rooms .nst-slider__btn { top: calc(50% - 22px); }

/* Whole-photo cards decided on the server */
.products .product .ct-media-container:has(> img.nst-whole),
.products .product .ct-image-container:has(> img.nst-whole),
.products .product figure:has(img.nst-whole) { background: #fff !important; }
.products .product img.nst-whole { object-fit: contain !important; object-position: center !important; padding: 6px !important; box-sizing: border-box !important; }
html body ul.products li.product img.nst-whole,
html body .products .product .ct-media-container img.nst-whole { object-fit: contain !important; object-position: center !important; }
.nst-home ul.products li.product a:has(> img.nst-whole), html body ul.products li.product img.nst-whole { background-color: #fff; }
html body ul.products li.product img.nst-whole, html body .products .product img.nst-whole { background: var(--nst-bg, #fff) !important; }

/* NST contact info inside the theme's mobile menu / contact box */
.nst-oc-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 15px; line-height: 1.6; }
.nst-oc-info li { display: grid; gap: 2px; }
.nst-oc-info b { font-weight: 700; color: inherit; }
.nst-oc-info span { opacity: .9; }
.nst-oc-info a { color: inherit !important; text-decoration: underline; text-underline-offset: 4px; }
.nst-oc-info a.nst-oc-wa { display: inline-flex; justify-content: center; margin-top: 4px; padding: 10px 18px; border-radius: 999px; background: #25d366; color: #fff !important; text-decoration: none; font-weight: 700; }
