/* =====================================================================
   Al Haif — reskin-v4 (built)
   sources: reskin-v3.css + reskin-v4.delta.css
   built:   2026-11-19T00:11:21.962Z
   Do not edit this file — edit a source and rebuild.
   ===================================================================== */

/* ---- reskin-v3.css ---- */
/* =====================================================================
   Al Haif — طبقة الهوية فوق ثيم رونق (رونق 1.75.0) — النسخة v2
   مكان الاستخدام: لوحة سلة > تصميم المتجر > تخصيص النسخة > تخصيص متقدم > CSS
   v2 = نسخة v1 (المتحقق منها لايف) + طبقة delta في آخر الملف تزامن الشكل
   مع ثيم الهيف اللوكال بعد تحديث 2026-11-11 (شريط التصنيفات، هوفرات
   الصفحات الفاتحة، حجم عنوان الأكثر مبيعاً، شريط CTA المضغوط).
   ===================================================================== */

/* ===================================================================
   1. الخطوط — ارفع مجلد fonts/ على ريبو GitHub ثم استبدل
      vemonser/alhaif-upload باسم المستخدم واسم الريبو.
   =================================================================== */
@font-face{font-family:'Thmanyah Sans';font-style:normal;font-weight:400;font-display:swap;
  src:url('https://cdn.jsdelivr.net/gh/vemonser/alhaif-upload@main/fonts/sans-regular.woff2') format('woff2')}
@font-face{font-family:'Thmanyah Sans';font-style:normal;font-weight:500;font-display:swap;
  src:url('https://cdn.jsdelivr.net/gh/vemonser/alhaif-upload@main/fonts/sans-medium.woff2') format('woff2')}
@font-face{font-family:'Thmanyah Sans';font-style:normal;font-weight:700;font-display:swap;
  src:url('https://cdn.jsdelivr.net/gh/vemonser/alhaif-upload@main/fonts/sans-bold.woff2') format('woff2')}
@font-face{font-family:'Thmanyah Serif Display';font-style:normal;font-weight:400;font-display:swap;
  src:url('https://cdn.jsdelivr.net/gh/vemonser/alhaif-upload@main/fonts/serif-display-regular.woff2') format('woff2')}
@font-face{font-family:'Thmanyah Serif Display';font-style:normal;font-weight:700;font-display:swap;
  src:url('https://cdn.jsdelivr.net/gh/vemonser/alhaif-upload@main/fonts/serif-display-bold.woff2') format('woff2')}

/* ===================================================================
   2. اللوجو الفاتح — logo.webp من الريبو (نفس مجلد الرفع).
   =================================================================== */
#mainnav .navbar-brand{
  display:inline-flex;align-items:center;justify-content:center;
  width:150px;height:44px;
  background:url('https://cdn.jsdelivr.net/gh/vemonser/alhaif-upload@main/logo.webp') no-repeat center/contain;
}
#mainnav .navbar-brand img{opacity:0!important;width:150px!important;height:44px!important}
@media(max-width:1023px){
  #mainnav .navbar-brand{width:120px;height:34px}
  #mainnav .navbar-brand img{width:120px!important;height:34px!important}
}

/* ===================================================================
   3. نواة التنسيق — tokens · type · shell · buttons · cards · home ·
      product · list · cart · content · blog · modals · mobile
   =================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --ah-bg: #480e0c;
  --ah-bg-deep: #330806;
  --ah-surface: #3a0b09;
  --ah-surface-2: #55120f;
  --ah-ink: #f6f1e8;
  --ah-ink-soft: rgba(246, 241, 232, 0.74);
  --ah-ink-faint: rgba(246, 241, 232, 0.5);
  --ah-accent: #e6c9a2;
  --ah-line: rgba(246, 241, 232, 0.2);
  --ah-line-soft: rgba(246, 241, 232, 0.1);
  --ah-cream: #f6f1e8;
  --ah-cream-ink: #480e0c;
  --ah-footer: #0a0807;
  --ah-strip: #f7f6f2;
  --ah-price: var(--ah-accent);
  --ah-r: 18px;
  --ah-r-lg: 22px;
  --ah-r-sm: 12px;
  --ah-pill: 999px;
  --ah-serif: 'Thmanyah Serif Display', 'Amiri', Georgia, serif;
  --ah-sans: 'Thmanyah Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --ah-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Rawnaq theme variables — the shell follows the brand even when the
     store settings fields are empty. */
  --color-theme: #480e0c !important;
  --color-text-theme: #f6f1e8 !important;
  --color-header-main: #480e0c !important;
  --color-header-text: #f6f1e8 !important;
  --color-footer-main: #0a0807 !important;
  --color-footer-text: #f6f1e8 !important;
  --color-upper-background: #330806 !important;
  --color-upper-text: #e6c9a2 !important;
  --color-primary-reverse: #f6f1e8 !important;
}

/* Light content pages: cream paper, maroon ink. Tokens flip so every
   component below adapts without a second rule set. */
body.product-single,
body.product-index,
body.brand-single,
body.search {
  --ah-surface: #fffdf9;
  --ah-surface-2: #f1e9db;
  --ah-ink: #480e0c;
  --ah-ink-soft: rgba(72, 14, 12, 0.72);
  --ah-ink-faint: rgba(72, 14, 12, 0.5);
  --ah-line: rgba(72, 14, 12, 0.16);
  --ah-line-soft: rgba(72, 14, 12, 0.1);
  --ah-price: #480e0c;
  background: var(--ah-cream) !important;
  color: var(--ah-cream-ink) !important;
}

/* The shell keeps its own ink on light pages. */
#mainnav,
footer.ronaq-store-footer {
  --ah-ink: #f6f1e8;
  --ah-ink-soft: rgba(246, 241, 232, 0.74);
  --ah-ink-faint: rgba(246, 241, 232, 0.5);
  --ah-line: rgba(246, 241, 232, 0.2);
  --ah-line-soft: rgba(246, 241, 232, 0.1);
}

/* ------------------------------------------------------------------ type */
body,
.app-inner,
.s-font-default,
.font-default {
  font-family: var(--ah-sans) !important;
}

h1, h2, h3, h4,
.ronaq-sliders-title,
.ronaq-categories-title h2,
.ronaq-faq-title h2,
.s-product-card-content-title,
.s-block__title,
.s-slider-block__title h2,
.s-reviews-header {
  font-family: var(--ah-serif) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- shell */
#mainnav {
  background: var(--ah-bg) !important;
  color: var(--ah-ink) !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--ah-line-soft) !important;
  min-height: 88px !important;
  z-index: 70;
  transition:
    min-height 0.28s var(--ah-ease),
    background-color 0.28s var(--ah-ease),
    border-color 0.28s var(--ah-ease),
    box-shadow 0.28s var(--ah-ease);
}
/* inner pages: the bar stays in flow and pins to the top while scrolling */
body:not(.index) #mainnav {
  position: sticky !important;
  top: 0;
  min-height: 80px !important;
}
/* any page, after the first scroll: solid, blurred, a little shorter */
#mainnav.ah-nav--scrolled {
  background: rgba(72, 14, 12, 0.94) !important;
  border-bottom-color: var(--ah-line-soft) !important;
  box-shadow: 0 14px 34px -24px rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
#mainnav .inner { background: transparent !important; }
#mainnav a,
#mainnav .s-menu-root-level > a,
#mainnav .btn--rounded-gray { color: var(--ah-ink) !important; }
#mainnav .navbar-brand img { width: auto !important; height: 40px !important; max-width: 220px; }
#mainnav .nav-container {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  /* the theme adds 40px on each side on top of the container gutter, which
     leaves the bar inset against every section below it */
  padding-inline: 0 !important;
}

/* Action icons: 40px hairline circles, accent on hover — same treatment as
   the reference header. */
#mainnav .header-btn,
#mainnav .search-icon-desktop,
#mainnav salla-cart-summary .s-cart-summary-wrapper {
  display: grid !important;
  place-items: center;
  width: 40px !important;
  height: 40px !important;
  border-radius: var(--ah-pill) !important;
  border: 1px solid transparent;
  transition:
    color 0.25s var(--ah-ease),
    border-color 0.25s var(--ah-ease),
    background-color 0.25s var(--ah-ease);
}
#mainnav .header-btn:hover,
#mainnav .header-btn:focus-visible,
#mainnav .search-icon-desktop:hover,
#mainnav .search-icon-desktop:focus-visible,
#mainnav salla-cart-summary .s-cart-summary-wrapper:hover,
#mainnav salla-cart-summary .s-cart-summary-wrapper:focus-visible {
  color: var(--ah-accent) !important;
  border-color: var(--ah-line) !important;
  background: var(--ah-surface) !important;
}
#mainnav .header-btn,
#mainnav .header-btn__icon,
#mainnav .search-icon-desktop,
#mainnav .search-icon-desktop i,
#mainnav salla-cart-summary,
#mainnav salla-cart-summary .s-cart-summary-wrapper,
#mainnav #s-cart-icon {
  color: var(--ah-ink) !important;
}
#mainnav salla-cart-summary svg {
  fill: none !important;
  stroke: currentColor !important;
}

/* Cart count: a small badge riding the bottom edge of the bag, like the
   reference (the theme parks it beside the icon instead). */
#mainnav .s-cart-summary-count {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: -5px !important;
  top: auto !important;
  transform: translateX(-50%) !important;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  border-radius: var(--ah-pill) !important;
  background: #b91c1c !important;
  color: #fff !important;
  font-size: 10px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Nav links hover: the theme's own hover is the page colour, which disappears
   on the maroon bar. */
#mainnav .nav-menu a:hover,
#mainnav .nav-menu a:focus-visible {
  color: var(--ah-accent) !important;
  text-decoration-line: none !important;
  border-bottom-color: transparent !important;
}
/* the icon inside the hovered circle turns accent too */
#mainnav .search-icon-desktop:hover i,
#mainnav .header-btn:hover .header-btn__icon,
#mainnav .header-btn:hover i,
#mainnav salla-cart-summary .s-cart-summary-wrapper:hover #s-cart-icon,
#mainnav salla-cart-summary .s-cart-summary-wrapper:hover i {
  color: var(--ah-accent) !important;
}
/* language / currency pill keeps its width but adopts the same hover */
#mainnav .btn--rounded-gray:hover,
#mainnav .btn--rounded-gray:focus-visible {
  color: var(--ah-accent) !important;
  background: var(--ah-surface) !important;
}
#mainnav .sicon-menu,
#mainnav .sicon-search,
#mainnav .sicon-heart,
#mainnav .sicon-user,
#mainnav .sicon-cart { color: var(--ah-ink) !important; }
#mainnav .btn--rounded-gray { background: rgba(246, 241, 232, 0.08) !important; }

/* -------------------------------------------------------------- buttons */
salla-button button,
.s-button-btn,
.btn {
  font-family: var(--ah-sans) !important;
  border-radius: var(--ah-pill) !important;
}
salla-button button.s-button-primary,
.btn-primary {
  background: var(--ah-bg) !important;
  border-color: var(--ah-bg) !important;
  color: #f6f1e8 !important;
}
salla-button button.s-button-primary:hover,
.btn-primary:hover {
  background: var(--ah-bg-deep) !important;
  border-color: var(--ah-bg-deep) !important;
}
salla-button button.s-button-outline,
.btn-outline {
  background: transparent !important;
  border-color: var(--ah-line) !important;
  color: var(--ah-ink) !important;
}

/* ---------------------------------------------------------------- cards */
custom-salla-product-card.s-product-card-entry {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.s-product-card-image {
  border-radius: var(--ah-r) !important;
  overflow: hidden !important;
  background: var(--ah-surface) !important;
}
.s-product-card-image img { border-radius: var(--ah-r) !important; }
.s-product-card-content { padding: 14px 2px 0 !important; }
.s-product-card-content-title,
.s-product-card-content-title a {
  font-family: var(--ah-serif) !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
  color: var(--ah-ink) !important;
}
.s-product-card-content-subtitle { color: var(--ah-ink-soft) !important; }
.s-product-card-price {
  color: var(--ah-price) !important;
  font-weight: 600 !important;
  font-size: 16px !important;
}
.s-product-card-content-footer { border-top: 1px solid var(--ah-line-soft) !important; padding-top: 10px !important; }
/* the theme turns the wide add-to-cart button into a text link; restore the
   full-width bar the reference uses */
.s-product-card-content-footer salla-add-product-button button,
.s-product-card-content-footer button {
  width: 100% !important;
  border: 1px solid var(--ah-line) !important;
  border-radius: var(--ah-pill) !important;
  padding: 9px 12px !important;
  background: transparent !important;
  color: var(--ah-ink) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  white-space: nowrap !important;
}
.s-block--slider-with-bg .s-product-card-content-footer salla-add-product-button button,
.s-block--slider-with-bg .s-product-card-content-footer button {
  border-color: rgba(72, 14, 12, 0.24) !important;
  color: var(--ah-cream-ink) !important;
}
.s-product-card-promotion-title {
  background: var(--ah-accent) !important;
  color: var(--ah-bg) !important;
  -webkit-text-fill-color: var(--ah-bg) !important;
  border-radius: var(--ah-pill) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}
/* the theme scopes the badge deeply with !important; out-rank it */
#app custom-salla-product-card .s-product-card-promotion-title {
  background: var(--ah-accent) !important;
  color: var(--ah-bg) !important;
  -webkit-text-fill-color: var(--ah-bg) !important;
}
.s-product-card-wishlist-btn {
  background: rgba(58, 11, 9, 0.72) !important;
  border-color: var(--ah-line) !important;
  color: #f6f1e8 !important;
  backdrop-filter: blur(6px);
}
.s-product-card-out-of-stock .s-product-card-image { opacity: 0.55; }

/* --------------------------------------------------------------- footer */
footer.ronaq-store-footer {
  background: var(--ah-footer) !important;
  color: var(--ah-ink-soft) !important;
  margin-top: 0 !important;
}
footer.ronaq-store-footer h3 {
  font-family: var(--ah-serif) !important;
  color: var(--ah-ink) !important;
}
footer.ronaq-store-footer a { color: var(--ah-ink-soft) !important; }
footer.ronaq-store-footer a:hover { color: var(--ah-accent) !important; }
footer.ronaq-store-footer > div:last-child {
  background: var(--ah-strip) !important;
  color: var(--ah-cream-ink) !important;
}
footer.ronaq-store-footer > div:last-child a,
footer.ronaq-store-footer > div:last-child span { color: var(--ah-cream-ink) !important; }

/* ------------------------------------------------- home shell / hero */
/* On the home page the bar floats over the hero photo instead of sitting on
   a solid band — the reference does the same. Inner pages keep the solid bar. */
body.index #mainnav {
  position: absolute !important;
  inset-inline: 0 !important;
  top: 0 !important;
  /* the theme ships `h-full` on the bar; absolute + 100% would stretch it
     over the whole page */
  height: auto !important;
  z-index: 70 !important;
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}
/* the compact state only exists on the home hero (fixed → no layout shift) */
body.index #mainnav.ah-nav--scrolled .nav-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.index #mainnav.ah-nav--scrolled .navbar-brand,
body.index #mainnav.ah-nav--scrolled .navbar-brand img {
  height: 34px !important;
}
body.index #mainnav.ah-nav--scrolled {
  position: fixed !important;
  inset-inline: 0 !important;
  top: 0 !important;
  height: auto !important;
  min-height: 68px !important;
  background: rgba(72, 14, 12, 0.94) !important;
  border-bottom-color: var(--ah-line-soft) !important;
  box-shadow: 0 14px 34px -24px rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
body.index #mainnav .btn--rounded-gray {
  background: transparent !important;
  color: var(--ah-ink) !important;
}
body.index #mainnav a,
body.index #mainnav .navbar-brand,
body.index #mainnav .sicon-menu,
body.index #mainnav .sicon-search,
body.index #mainnav .sicon-heart,
body.index #mainnav .sicon-user,
body.index #mainnav .sicon-cart {
  text-shadow: 0 1px 18px rgba(20, 10, 8, 0.55);
}

/* Hero takes the screen; a soft scrim keeps the bar readable on photography. */
body.index .ronaq-slider {
  height: 88svh !important;
  min-height: 620px;
}
body.index .ronaq-slider::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 210px;
  z-index: 30;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 10, 8, 0.55), rgba(20, 10, 8, 0));
}
body.index .ronaq-slider .overlay-bg::after {
  background:
    linear-gradient(to left, rgba(20, 10, 8, 0.78) 0%, rgba(20, 10, 8, 0.35) 42%, rgba(20, 10, 8, 0.05) 72%),
    linear-gradient(to top, rgba(20, 10, 8, 0.7) 0%, rgba(20, 10, 8, 0.1) 55%) !important;
}

/* Copy sits on the inline-start side (right in RTL), not centred. */
body.index .ronaq-slides-text {
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
  justify-content: flex-start !important;
  text-align: right !important;
  width: min(640px, 54%) !important;
  padding-inline-start: clamp(24px, 7vw, 112px) !important;
  padding-inline-end: 0 !important;
}
body.index .ronaq-slides-text > div {
  align-items: stretch !important;
  width: 100% !important;
  max-width: 560px;
}
body.index .ronaq-slides-text > div > div:last-child { justify-content: flex-start !important; }
body.index .ronaq-sliders-title {
  font-size: clamp(34px, 5.2vw, 76px) !important;
  line-height: 1.12 !important;
  text-shadow: 0 2px 24px rgba(20, 10, 8, 0.45);
}
body.index .ronaq-sliders-description {
  font-size: 18px !important;
  line-height: 1.7 !important;
  text-shadow: 0 1px 14px rgba(20, 10, 8, 0.5);
}
body.index .ronaq-slide-button {
  background: var(--ah-cream) !important;
  color: var(--ah-bg) !important;
  border: 0 !important;
  border-radius: var(--ah-pill) !important;
  padding: 16px 34px !important;
  font-size: 16px !important;
}
body.index .ronaq-slide-button::after {
  content: '\2190';
  position: relative;
  z-index: 30;
  margin-inline-start: 10px;
  font-size: 18px;
  line-height: 1;
}
body.index .ronaq-slide-button > span[style*='background-color'] {
  background-color: var(--ah-accent) !important;
}

/* Slider controls: hairline circles at the bottom, like the reference. */
body.index .ronaq-slider .s-slider-block__title-nav {
  position: absolute !important;
  top: auto !important;
  bottom: 34px !important;
  inset-inline-start: auto !important;
  inset-inline-end: 32px !important;
  width: auto !important;
  height: auto !important;
  gap: 10px !important;
  z-index: 35 !important;
}
body.index .ronaq-slider .s-slider-nav-arrow {
  width: 44px !important;
  height: 44px !important;
  background: transparent !important;
  border: 1px solid rgba(246, 241, 232, 0.5) !important;
  color: var(--ah-ink) !important;
  box-shadow: none !important;
}
body.index .ronaq-slider .s-slider-nav-arrow:hover {
  background: rgba(246, 241, 232, 0.14) !important;
}
@media (max-width: 767.98px) {
  body.index .ronaq-slider { height: 78svh !important; min-height: 520px; }
  body.index .ronaq-slides-text {
    width: 100% !important;
    padding-inline: 20px !important;
    padding-block: 20px !important;
  }
  body.index .ronaq-sliders-title {
    font-size: clamp(34px, 9.8vw, 46px) !important;
    line-height: 1.18 !important;
  }
  body.index .ronaq-sliders-description { font-size: 15px !important; }
  body.index .ronaq-slide-button {
    padding: 13px 28px !important;
    font-size: 15px !important;
  }
  body.index .ronaq-slider .s-slider-block__title-nav {
    bottom: 20px !important;
    inset-inline-end: 18px !important;
  }
  body.index .ronaq-slider .s-slider-nav-arrow { width: 38px !important; height: 38px !important; }
}

body.index { background: var(--ah-bg) !important; }
body.index .container { color: var(--ah-ink); }

.ronaq-slider { background: var(--ah-bg-deep) !important; }
.ronaq-slider .overlay-bg::after {
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(20, 10, 8, 0.5) 0%, rgba(20, 10, 8, 0.12) 70%),
    linear-gradient(to top, rgba(20, 10, 8, 0.78) 0%, rgba(20, 10, 8, 0.1) 60%) !important;
}
.ronaq-sliders-title {
  font-size: clamp(34px, 4.4vw, 62px) !important;
  line-height: 1.22 !important;
  color: var(--ah-ink) !important;
}
.ronaq-sliders-description { color: var(--ah-ink-soft) !important; }
.ronaq-slides-text span[class*='uppercase'] {
  color: var(--ah-accent) !important;
  letter-spacing: 0.14em !important;
}
.ronaq-slide-button {
  background: var(--ah-accent) !important;
  color: var(--ah-bg) !important;
  border: 0 !important;
  border-radius: var(--ah-pill) !important;
  font-weight: 600 !important;
  padding: 14px 40px !important;
}
.ronaq-slide-button > span[style*='background-color'] { background-color: #d8c4a6 !important; }
.ronaq-slide-btn:hover .ronaq-slide-button { background: var(--ah-cream) !important; color: var(--ah-bg) !important; }

.ronaq-categories { background: var(--ah-bg) !important; }
.ronaq-categories-slide .rounded-full { border-radius: var(--ah-r) !important; }
.ronaq-categories-slide span.absolute.inset-0 {
  border-radius: var(--ah-r) !important;
  border-color: var(--ah-line) !important;
}
.ronaq-categories-slide h4 {
  color: var(--ah-ink) !important;
  font-family: var(--ah-sans) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
}
.ronaq-categories-title h2 { color: var(--ah-ink) !important; }

/* Best sellers band — cream. The theme paints it behind a full-bleed photo
   and pulls the cards up with a -248px margin; the photo is removed here so
   heading + cards stack inside a flat cream band. */
.s-block--slider-with-bg {
  background: var(--ah-cream) !important;
  color: var(--ah-cream-ink) !important;
  padding-bottom: 56px !important;
}
.s-block--slider-with-bg .slider-bg {
  display: block !important;
  background-image: none !important;
  background-color: var(--ah-cream) !important;
  height: auto !important;
  min-height: 0 !important;
}
.s-block--slider-with-bg .slider-bg::before { display: none !important; }
/* the heading carries an inline `color:#fff !important`; text-fill is the
   only property the inline style does not set, so it wins here */
.s-block--slider-with-bg .slider-bg * {
  color: var(--ah-cream-ink) !important;
  -webkit-text-fill-color: var(--ah-cream-ink) !important;
}
.s-block--slider-with-bg .slider-bg .container {
  padding-top: 56px !important;
  padding-bottom: 8px !important;
  text-align: right !important;
  direction: rtl !important;
}
.s-block--slider-with-bg .slider-bg p:empty { display: none !important; }
.s-block--slider-with-bg .slider-bg .text-sm.mb-8:empty { margin: 0 !important; }
.s-block--slider-with-bg > .container.-mt-62 { margin-top: 0 !important; padding-top: 8px !important; }
.s-block--slider-with-bg h2,
.s-block--slider-with-bg .s-slider-block__title { color: var(--ah-cream-ink) !important; }
.s-block--slider-with-bg .s-product-card-content-title a { color: var(--ah-cream-ink) !important; }
.s-block--slider-with-bg .s-product-card-price { color: var(--ah-bg) !important; }
.s-block--slider-with-bg .s-product-card-content-footer { border-color: rgba(72, 14, 12, 0.16) !important; }
.s-block--slider-with-bg .s-product-card-content-footer button { color: var(--ah-cream-ink) !important; }
.s-block--slider-with-bg .s-product-card-image { background: rgba(72, 14, 12, 0.06) !important; }
.s-block--slider-with-bg .s-slider-nav-arrow {
  border-color: rgba(72, 14, 12, 0.28) !important;
  color: var(--ah-bg) !important;
}

/* Testimonials — transparent so the page paper shows through. */
.s-block--testimonials { background: transparent !important; color: var(--ah-ink) !important; }
.s-reviews-header { color: var(--ah-ink) !important; }
.s-reviews-display-all { color: var(--ah-accent) !important; }
.s-reviews-testimonial {
  background: var(--ah-surface) !important;
  border: 1px solid var(--ah-line-soft) !important;
  border-radius: var(--ah-r) !important;
  color: var(--ah-ink) !important;
}
.s-reviews-testimonial p,
.s-reviews-testimonial span,
.s-reviews-testimonial div { color: inherit; }
.s-block--testimonials .s-slider-nav-arrow,
.s-block--testimonials .s-slider-nav-arrow:hover {
  background: transparent !important;
  border: 1px solid var(--ah-line) !important;
  color: var(--ah-ink) !important;
}

/* FAQ */
.ronaq-faq { background: transparent !important; color: var(--ah-ink) !important; }
.ronaq-faq [data-faq] > div {
  color: var(--ah-ink) !important;
  border-color: var(--ah-line-soft) !important;
}
.ronaq-faq .faq-toggle { color: var(--ah-ink) !important; }
.ronaq-faq .faq-icon { color: var(--ah-accent) !important; }
.ronaq-faq .faq-panel p { color: var(--ah-ink-soft) !important; }
.ronaq-faq-title h2 { color: var(--ah-ink) !important; }
.ronaq-faq-title span,
.ronaq-categories-title span { color: var(--ah-accent) !important; }

/* FAQ: heading column beside the list, like the reference */
@media (min-width: 1024px) {
  .ronaq-faq > .container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) !important;
    gap: 56px !important;
    align-items: start !important;
  }
  .ronaq-faq-title {
    justify-content: flex-start !important;
    text-align: right !important;
    width: auto !important;
    margin: 0 !important;
    padding-top: 10px;
  }
}

body.index .s-block h1,
body.index .s-block h2 { color: var(--ah-ink) !important; }
body.index .s-block p { color: var(--ah-ink-soft); }

/* -------------------------------------------------------- product page */
body.product-single .breadcrumbs,
body.product-index .breadcrumbs { color: var(--ah-ink-soft) !important; }
body.product-single .breadcrumbs a,
body.product-index .breadcrumbs a { color: var(--ah-ink-soft) !important; }

.ronaq-single-product h1 {
  font-size: clamp(26px, 2.4vw, 36px) !important;
  line-height: 1.35 !important;
  color: var(--ah-ink) !important;
}
.product-entry__sub-title { color: var(--ah-ink-soft) !important; }
.total-price,
.price-wrapper .total-price { color: var(--ah-ink) !important; font-weight: 600 !important; }
.before-price { color: var(--ah-ink-faint) !important; }

.details-slider .swiper-slide,
.details-slider img { border-radius: var(--ah-r) !important; }
.s-slider-thumbs .swiper-slide { border-radius: var(--ah-r-sm) !important; overflow: hidden; }

.ronaq-main-content .product-form input,
.ronaq-main-content .product-form select {
  border-radius: var(--ah-r-sm) !important;
  border-color: var(--ah-line) !important;
}
.s-quantity-input,
.quantity-stepper { border-radius: var(--ah-pill) !important; }

/* Bought-together / quick order panels */
.s-bought-together-entry {
  background: var(--ah-surface) !important;
  border: 1px solid var(--ah-line-soft) !important;
  border-radius: var(--ah-r) !important;
  padding: 18px !important;
}
.s-bought-together-title,
.s-bought-together-header,
.s-bought-together-item-name,
.s-bought-together-item-price,
.s-quick-order h1,
.s-quick-order p { color: var(--ah-ink) !important; }
.s-quick-order-container {
  background: var(--ah-surface) !important;
  border: 1px solid var(--ah-line-soft) !important;
  border-radius: var(--ah-r) !important;
}
.s-quick-order-expandable .s-form-group input {
  background: #fff !important;
  border: 1px solid var(--ah-line) !important;
  border-radius: var(--ah-r-sm) !important;
}
.product__description,
.product__description p,
.ronaq-product-description-text { color: var(--ah-ink-soft) !important; }
.product__description { font-size: 16px !important; line-height: 1.9 !important; }
#btn-show-more,
.link--primary { color: var(--ah-bg) !important; -webkit-text-fill-color: var(--ah-bg) !important; }

/* brand chip in the info column is a white JPG on cream paper */
.ronaq-main-content .product-brand { display: none !important; }
/* the reviews panel is painted with --color-theme by the theme and keeps a
   min-height even with zero reviews */
salla-comments .s-comments-product { background: transparent !important; }
body.product-single salla-comments { min-height: 0 !important; height: auto !important; }
body.product-single salla-comments:not(:has(salla-comment-item)) { display: none !important; }
.s-slider-thumbs .swiper-slide-active { border: 1px solid var(--ah-accent) !important; }
.details-slider .s-slider-nav-arrow,
.s-block--slider-with-bg .s-slider-nav-arrow {
  background: transparent !important;
  border: 1px solid var(--ah-line) !important;
  color: var(--ah-ink) !important;
}
.sticky-product-bar__quantity {
  background: var(--ah-surface) !important;
  border: 1px solid var(--ah-line) !important;
  border-radius: var(--ah-pill) !important;
}
.sticky-product-bar__quantity button { color: var(--ah-ink) !important; }
.sticky-product-bar__quantity input { color: var(--ah-ink) !important; }

/* ------------------------------------------------------ list / category */
#page-main-title {
  font-family: var(--ah-serif) !important;
  font-size: clamp(28px, 3vw, 44px) !important;
  color: var(--ah-ink) !important;
}
#product-filter {
  background: var(--ah-surface) !important;
  border: 1px solid var(--ah-line) !important;
  border-radius: var(--ah-pill) !important;
  color: var(--ah-ink) !important;
  padding-inline: 18px !important;
  height: 44px !important;
}
/* Sub-category rail: its tiles are image-only and the sub-categories here have
   no images, so it renders as an empty band. Hidden until images exist. */
.ronaq-categories-slider { display: none !important; }
.ronaq-categories-slider div[style*="url('')"] {
  background: var(--ah-surface-2) !important;
  border: 1px solid var(--ah-line) !important;
  border-radius: var(--ah-r) !important;
}
/* category tiles without an uploaded image should still read as a tile */
.ronaq-categories-slide .rounded-full { background-color: var(--ah-surface-2); }
.s-infinite-scroll-status p { color: var(--ah-ink-soft) !important; }

/* ---------------------------------------------------------------- cart */
body.cart { background: var(--ah-bg) !important; }
body.cart .container { color: var(--ah-ink); }
body.cart h1, body.cart h2, body.cart h3 { color: var(--ah-ink) !important; }
/* the theme opens the empty cart with a 450px lifestyle slider */
body.cart .main-content > salla-slider#thumbs { display: none !important; }
body.cart .no-content-placeholder .icon {
  background: var(--ah-surface-2) !important;
  color: var(--ah-ink) !important;
  border-radius: 50% !important;
  border: 1px solid var(--ah-line-soft);
}
body.cart .no-content-placeholder p {
  color: var(--ah-ink-soft) !important;
  font-size: 17px !important;
}
body.cart .no-content-placeholder .btn--outline-primary {
  background: transparent !important;
  border: 1px solid var(--ah-line) !important;
  color: var(--ah-ink) !important;
  border-radius: var(--ah-pill) !important;
  padding: 10px 30px !important;
}

/* ------------------------------------------------------------ content */
body.page-single { background: var(--ah-bg) !important; }
body.page-single .content,
body.page-single .content--single-page {
  background: transparent !important;
  color: var(--ah-ink-soft) !important;
  max-width: 880px;
  margin-inline: auto;
  padding: 0 24px 72px !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-align: right !important;
}
.content--single-page,
.content--single-page p,
.content--single-page li,
.content--single-page span { color: var(--ah-ink-soft); }
.content--single-page h1,
.content--single-page h2,
.content--single-page h3,
.content--single-page h4 { color: var(--ah-ink) !important; }
.content--single-page a { color: var(--ah-accent) !important; }
.content--single-page blockquote { border-color: var(--ah-line) !important; }

/* ----------------------------------------------------------------- blog */
body.blog-index { background: var(--ah-bg) !important; }
body.blog-index .container { color: var(--ah-ink); }
body.blog-index .breadcrumbs a,
body.blog-index #filters-menu,
body.blog-index #filters-menu a { color: var(--ah-ink-soft) !important; }
body.blog-index #filters-menu h3,
body.blog-index #filters-menu h2 { color: var(--ah-ink) !important; font-family: var(--ah-serif) !important; }
body.blog-index .list-block.post-entry {
  background: var(--ah-surface) !important;
  border: 1px solid var(--ah-line-soft) !important;
  border-radius: var(--ah-r) !important;
  overflow: hidden;
  box-shadow: none !important;
}
body.blog-index .post-entry__title,
body.blog-index .post-entry__title a {
  color: var(--ah-ink) !important;
  font-family: var(--ah-serif) !important;
  font-size: 20px !important;
  line-height: 1.7 !important;
  font-weight: 700 !important;
}
body.blog-index .post-entry p,
body.blog-index .post-entry .text-gray-500 { color: var(--ah-ink-soft) !important; }
body.blog-index .post-entry > div:last-child { border-color: var(--ah-line-soft) !important; }
body.blog-index .post-entry a.py-2.px-4 {
  color: var(--ah-ink-soft) !important;
  background: rgba(246, 241, 232, 0.06) !important;
  border-radius: var(--ah-pill) !important;
}
body.blog-index .post-entry__image img {
  width: 100% !important;
  height: 224px !important;
  object-fit: cover !important;
  opacity: 1 !important;
}

/* ---------------------------------------------- testimonials / reviews page */
body.testimonials { background: var(--ah-bg) !important; color: var(--ah-ink) !important; }
/* the whole review panel is a white card in this theme */
body.testimonials .bg-white.rounded {
  background: var(--ah-cream) !important;
  color: var(--ah-cream-ink) !important;
  border: 1px solid rgba(72, 14, 12, 0.12) !important;
  border-radius: var(--ah-r) !important;
  box-shadow: none !important;
}
body.testimonials .bg-white.rounded h1,
body.testimonials .bg-white.rounded h2,
body.testimonials .bg-white.rounded h3,
body.testimonials .bg-white.rounded h4,
body.testimonials .bg-white.rounded p,
body.testimonials .bg-white.rounded span,
body.testimonials .bg-white.rounded div,
body.testimonials .bg-white.rounded label { color: inherit !important; }
body.testimonials .bg-white.rounded .s-comments-item { border-color: rgba(72, 14, 12, 0.12) !important; }
body.testimonials .bg-white.rounded select,
body.testimonials .bg-white.rounded .form-input {
  background: #fff !important;
  border: 1px solid rgba(72, 14, 12, 0.16) !important;
  border-radius: var(--ah-pill) !important;
  color: var(--ah-cream-ink) !important;
}

/* blog article */
body.blog-single { background: var(--ah-bg) !important; }
body.blog-single .content,
body.blog-single article {
  background: transparent !important;
  color: var(--ah-ink-soft) !important;
}
body.blog-single h1,
body.blog-single h2,
body.blog-single h3 { color: var(--ah-ink) !important; }
body.blog-single a { color: var(--ah-accent) !important; }

/* --------------------------------------------------------------- modals */
.s-modal-body,
.s-modal-wrapper .s-modal-body {
  background: var(--ah-surface) !important;
  color: var(--ah-ink) !important;
}
/* mobile drawer: the theme paints every level white */
.mm-ocd__content,
.mm-ocd__content .mm-spn,
.mm-ocd__content ul,
.mm-ocd__content li,
.mm-ocd__content a,
.mm-ocd__content .mm-spn--navbar:after {
  background: var(--ah-bg) !important;
  color: var(--ah-ink) !important;
}
.mm-ocd__content a,
.mm-ocd__content li { border-color: var(--ah-line-soft) !important; }
.mm-ocd__content a { font-size: 16px !important; }
.mm-ocd__content .btn--close,
.mm-ocd__content .btn--close-sm {
  background: transparent !important;
  color: var(--ah-ink) !important;
  border: 0 !important;
  box-shadow: none !important;
}
.mm-ocd__backdrop { background: rgba(10, 8, 7, 0.62) !important; }
.s-search-panel input { border-radius: var(--ah-pill) !important; }

/* List grid: three wider cards like the reference */
@media (min-width: 1024px) {
  .s-products-list-vertical-cards,
  .s-products-list-horizontal-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 40px 32px !important;
  }
}

/* --------------------------------------------------------------- mobile */
/* Tablet: the theme stacks the logo on its own row; fold it into one bar. */
@media (min-width: 677px) and (max-width: 1023.98px) {
  #mainnav { min-height: 76px !important; }
  body.index #mainnav.ah-nav--scrolled { min-height: 64px !important; }
  #mainnav .nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  #mainnav .nav-logo { order: 2; flex: 0 0 auto; }
  #mainnav .nav-menu { order: 1; flex: 0 0 auto; }
  #mainnav .nav-icons { order: 3; flex: 0 0 auto; }
  #mainnav .navbar-brand img { height: 36px !important; }
}

@media (max-width: 676.98px) {
  #mainnav { min-height: 64px !important; }
  /* the language pill is the one control the reference drops on phones;
     without it the bar fits the container without clipping the icons */
  #mainnav .nav-menu .btn--rounded-gray { display: none !important; }
  body.index #mainnav.ah-nav--scrolled { min-height: 56px !important; }
  #mainnav .navbar-brand img { height: 30px !important; }
  .ronaq-sliders-title { font-size: 30px !important; }
  .s-product-card-content-title, .s-product-card-content-title a { font-size: 16px !important; }
  .s-reviews-testimonial { padding: 14px !important; }
  .s-reviews-testimonial .s-comments-item-avatar,
  .s-reviews-testimonial img { width: 40px !important; height: 40px !important; }
  .s-product-card-wishlist-btn { width: 32px !important; height: 32px !important; }
}

/* ------------------------------------------------------------ utilities */
.scroll-top {
  background: var(--ah-surface) !important;
  color: var(--ah-accent) !important;
  border: 1px solid var(--ah-line) !important;
}
::selection { background: var(--ah-accent); color: var(--ah-bg); }

/* =====================================================================
   v2 delta — مزامنة مع ثيم الهيف اللوكال (بعد تحديث 2026-11-11).
   القواعد دي بتيجي بعد كل قواعد v1، فأي تعارض بينهم بتكسب v2.
   ===================================================================== */

/* ---- 1) شريط التصنيفات على الرئيسية: بلاطات كريمي + رسمة في المنتصف ---- */
/* البلاطة بقت ورق كريمي والصورة جواها بنسبة 72% — محاكاة لبلاطات الثيم
   اللوكال (رسمة بخلفية بيضا وسط بلاطة كريمي). لو صنف استخدم صورة
   فوتوغرافية وبانت اتصغّر، شيل سطر background-size ده وخليها ممتلئة. */
.ronaq-categories-slide div.rounded-full {
  background-color: var(--ah-cream) !important;
  background-size: 72% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: var(--ah-r) !important;
  transition: background-size 0.5s var(--ah-ease);
}
.ronaq-categories-slide a:hover div.rounded-full,
.ronaq-categories-slide a:focus-visible div.rounded-full {
  background-size: 80% !important;
}
/* الثيم بيرسم إطاراً منقّطاً عند الهوفر — الثيم اللوكال لا يرسمه */
.ronaq-categories-slide span.rounded-full { display: none !important; }
/* الاسم تحت البلاطة: serif عريض (كان sans رفيع)، ورمللي عند الهوفر */
.ronaq-categories-slide h4 {
  font-family: var(--ah-serif) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  color: var(--ah-ink) !important;
}
.ronaq-categories-slide a:hover h4,
.ronaq-categories-slide a:focus-visible h4 {
  color: var(--ah-accent) !important;
}

/* ---- 2) «الأكثر مبيعاً» (الشريط الكريمي) ----------------------------- */
/* عنوان القسم بحجم عناوين الثيم اللوكال */
.s-block--slider-with-bg h2,
.s-block--slider-with-bg .slider-bg h2 {
  font-size: clamp(30px, 3.4vw, 48px) !important;
}
/* هوفر زر «أضف إلى السلة» داخل الشريط يمتلئ ماروني — الكريمي على الكريمي
   مبيتقراش */
.s-block--slider-with-bg .s-product-card-content-footer button:hover,
.s-block--slider-with-bg .s-product-card-content-footer button:focus-visible {
  background: var(--ah-bg) !important;
  border-color: var(--ah-bg) !important;
  color: var(--ah-cream) !important;
}
/* أسهم الشريط تبقى مارونية حتى لو CSS قديم في اللوحة (أو inline style
   من الثيم) حاول يفرضها بيضا — نفس شكل السيلكتور الأعمق عشان نكسبه */
.s-block--slider-with-bg salla-products-slider .s-slider-block__title-nav .s-slider-nav-arrow,
.s-block--slider-with-bg salla-products-list .s-slider-block__title-nav .s-slider-nav-arrow {
  color: var(--ah-bg) !important;
  border-color: rgba(72, 14, 12, 0.28) !important;
  fill: var(--ah-bg) !important;
}

/* ---- 3) بطاقة المنتج على الصفحات الفاتحة ------------------------------ */
/* قلب المفضلة: دائرة فاتحة بحد ماروني (قاعدة v1 كانت داكنة للكانفس الغامق) */
body.product-index .s-product-card-wishlist-btn,
body.product-single .s-product-card-wishlist-btn,
body.brand-single .s-product-card-wishlist-btn,
body.search .s-product-card-wishlist-btn,
.s-block--slider-with-bg .s-product-card-wishlist-btn {
  background: #fffdf9 !important;
  border-color: rgba(72, 14, 12, 0.24) !important;
  color: var(--ah-cream-ink) !important;
}
/* هوفر «أضف إلى السلة» في القوائم الفاتحة يمتلئ ماروني */
body.product-index .s-product-card-content-footer button:hover,
body.product-index .s-product-card-content-footer button:focus-visible,
body.brand-single .s-product-card-content-footer button:hover,
body.brand-single .s-product-card-content-footer button:focus-visible,
body.search .s-product-card-content-footer button:hover,
body.search .s-product-card-content-footer button:focus-visible {
  background: var(--ah-bg) !important;
  border-color: var(--ah-bg) !important;
  color: var(--ah-cream) !important;
}

/* ---- 4) شريط «رسالتنا / CTA» (بلوك hero-slider) ------------------------ */
/* ده البلوك التاني من سلايدرات الرئيسية في رونق. بقى شريط ختام مضغوط
   (زي شريط CTA في الثيم اللوكال) بدل سلايدر شبه كامل الشاشة: خلفية
   ماروني غامق، نص محاذاة للبداية بعنوان serif. الشريحة اللي عنوانها فاضي
   املاها أو امسحها من عناصر الصفحة — الفاضي بيرسم شريحة سوداء فاضية. */
body.index .s-block--hero-slider .swiper-slide {
  height: clamp(300px, 46vh, 440px) !important;
  min-height: 0 !important;
}
body.index .s-block--hero-slider .overlay-bg::after {
  background:
    linear-gradient(to left, rgba(51, 8, 6, 0.92) 0%, rgba(51, 8, 6, 0.55) 55%, rgba(51, 8, 6, 0.25) 100%) !important;
}
body.index .s-block--hero-slider .home-slider__content {
  justify-content: flex-start !important;
}
body.index .s-block--hero-slider .home-slider__content > div {
  text-align: right !important;
  width: min(640px, 60%) !important;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
  padding-inline-start: clamp(24px, 6vw, 96px) !important;
}
body.index .s-block--hero-slider h2 {
  font-family: var(--ah-serif) !important;
  font-size: clamp(26px, 3.2vw, 44px) !important;
}
body.index .s-block--hero-slider .description {
  color: var(--ah-ink-soft) !important;
  -webkit-line-clamp: unset !important;
}
@media (max-width: 767.98px) {
  body.index .s-block--hero-slider .swiper-slide { height: clamp(220px, 42vh, 320px) !important; }
  body.index .s-block--hero-slider .home-slider__content > div {
    width: 100% !important;
    padding-inline: 20px !important;
  }
}
/* =====================================================================
   Al Haif — reskin v3 · طبقة المطابقة البصرية مع ثيم الهيف اللوكال
   ---------------------------------------------------------------------
   v3 = reskin-v2.css (الأساس المتحقق منه لايف) + الملف ده في آخره.

   كل رقم هنا مأخوذ من قياس حقيقي على الثيم اللوكال شغّال
   (localhost:5173/alhaif.co/ar) على 1440 / 820 / 390 — مش تقدير بصري.
   الأقسام اللي مش موجودة في رونق (كيف نصنع قهوتنا، المدونة، شريط CTA)
   بيبنيها reskin-v3.js، والـCSS ده بيلبسها.

   وحدة القياس: px صريحة بدل rem، لأن رونق بيضبط html font-size
   فيختل معنى rem.
   ===================================================================== */

/* ----------------------------------------------------------- 1) tokens */
:root {
  /* Rhythm — same clamps as the local theme's 01-settings/theme-tokens */
  --ah-gutter: clamp(20px, 4vw, 64px);
  --ah-content-max: 1280px;
  --ah-section-y: clamp(56px, 8vw, 128px);

  /* Type */
  --ah-hero-title: clamp(37.6px, 5.6vw, 76px);
  --ah-hero-text: clamp(15.2px, 1.25vw, 18px);
  --ah-section-title: clamp(29.6px, 3.2vw, 46.08px);
  --ah-band-title: clamp(29.6px, 3.4vw, 48px);

  /* Content box: the local theme's 1280 container with a 57px gutter at 1440.
     `100%` (not `100vw`) so a classic scrollbar is subtracted too. */
  --ah-inset: max(var(--ah-gutter), calc((100% - var(--ah-content-max)) / 2 + var(--ah-gutter)));

  /* The local theme's own fallback stacks — compared as strings by the probes. */
  --ah-serif: 'Thmanyah Serif Display', 'Times New Roman', serif;
  --ah-sans: 'Thmanyah Sans', 'Segoe UI', system-ui, sans-serif;
}

/* -------------------------------------------------- 2) container rhythm */
/* Rawanq's container is 1265 at 1440; the local content box is 1166.
   Every home section is measured against the same line, so the sections
   below all read from the same padding. */
body.index .ronaq-categories > .container,
body.index .ronaq-faq > .container,
body.index .s-block--slider-with-bg > .container,
body.index .s-block--testimonials.container,
body.index .ah-section > .container {
  width: 100% !important;
  max-width: var(--ah-content-max) !important;
  padding-inline: var(--ah-gutter) !important;
  margin-inline: auto !important;
}

/* Local sections are `.s-block`: 64px above each one, no gap below. */
body.index .ronaq-categories,
body.index .s-block--slider-with-bg,
body.index .ronaq-faq,
body.index #ah-process,
body.index #ah-blog,
body.index #ah-cta {
  margin-block-start: 64px !important;
}

/* ------------------------------------------------------- 3) home header */
/* Measured on the local theme at 1440: the bar is 89 tall (88 row + the 1px
   hairline), transparent over the hero, the row's content box is
   130.09 → 1294.9 (1280 container with a 57.6 gutter). */
body.index #mainnav {
  min-height: 89px !important;
  height: 89px !important;
  align-items: flex-start !important;
}
body.index #mainnav .inner {
  min-height: 89px !important;
  height: 89px !important;
}
body.index #mainnav .inner > .container {
  width: 100% !important;
  max-width: var(--ah-content-max) !important;
  padding-inline: var(--ah-gutter) !important;
  margin-inline: auto !important;
}
/* Local row: `auto minmax(0,1fr) auto` — 99 logo · 849.8 menu · 152 actions,
   with a 32px gap. Rawanq's own grid is five equal columns, 233 each. */
body.index #mainnav .container > div.nav-container {
  height: 88px !important;
  min-height: 88px !important;
  padding-block: 0 !important;
  padding-inline: 0 !important;
  gap: 32px !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
}
body.index #mainnav .container > div.nav-container > div {
  grid-column: auto !important;
  grid-row: auto !important;
}
body.index #mainnav.ah-nav--scrolled {
  min-height: 69px !important;
  height: 69px !important;
}
body.index #mainnav.ah-nav--scrolled .inner {
  min-height: 69px !important;
  height: 69px !important;
}
body.index #mainnav.ah-nav--scrolled .container > div.nav-container {
  height: 68px !important;
  min-height: 68px !important;
}
@media (max-width: 1023px) {
  body.index #mainnav,
  body.index #mainnav .inner,
  body.index #mainnav .container > div.nav-container {
    min-height: 72px !important;
    height: 72px !important;
  }
  body.index #mainnav .container > div.nav-container {
    grid-template-columns: auto 1fr auto !important;
  }
  body.index #mainnav.ah-nav--scrolled,
  body.index #mainnav.ah-nav--scrolled .inner {
    min-height: 60px !important;
    height: 60px !important;
  }
  body.index #mainnav.ah-nav--scrolled .container > div.nav-container {
    min-height: 60px !important;
    height: 60px !important;
  }
}
/* Logo: the local wordmark is 99×42 at 1440 (clamp(30px, 3.4vw, 42px)). */
#mainnav .navbar-brand {
  width: 99px !important;
  height: 42px !important;
  max-width: 220px;
  font-size: 0 !important;
  justify-content: center;
}
#mainnav .navbar-brand img,
#mainnav .navbar-brand salla-image,
#mainnav .navbar-brand salla-image img {
  width: 99px !important;
  height: 42px !important;
  max-width: 220px;
  object-fit: contain;
}
#mainnav.ah-nav--scrolled .navbar-brand,
#mainnav.ah-nav--scrolled .navbar-brand img {
  height: 36px !important;
}
@media (max-width: 1023px) {
  #mainnav .navbar-brand,
  #mainnav .navbar-brand img,
  #mainnav .navbar-brand salla-image,
  #mainnav .navbar-brand salla-image img {
    width: auto !important;
    height: clamp(30px, 3.4vw, 42px) !important;
    max-width: 104px !important;
  }
}
/* Desktop nav: 15px Thmanyah Sans, 8/12 padding in a 16px pill. */
#mainnav ul.main-menu > li.root-level > a,
#mainnav .nav-menu a,
#mainnav custom-main-menu a,
#mainnav .s-menu-root-level__link {
  font-family: var(--ah-sans) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 8px 12px !important;
  border-radius: 16px !important;
  text-underline-offset: 6px;
}
/* Local: the six labels (711 wide with 2px between) centre inside the menu
   column, so the first label lands at x 953.5 and the last ends at 1094.5.
   Rawanq wraps the sixth label onto a second line and pads the row 18/8. */
#mainnav custom-main-menu {
  width: 100% !important;
}
#mainnav ul.main-menu {
  width: 100% !important;
  height: 88px !important;
  padding: 0 !important;
  gap: 2px !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
}
#mainnav ul.main-menu > li.root-level {
  margin: 0 !important;
}
/* Action row: local order is user · cart · search, 40px circles 16 apart.
   Rawanq prints a language pill and a 4px gap, and orders search first. */
body.index #mainnav .container > div.nav-container > div:last-child {
  gap: 16px !important;
}
body.index #mainnav .container > div.nav-container > div:last-child > div:first-child {
  display: none !important;
}
body.index #mainnav .container > div.nav-container > div:last-child salla-cart-summary {
  order: 2 !important;
}
body.index #mainnav .container > div.nav-container > div:last-child .search-icon-desktop {
  order: 3 !important;
}
body.index
  #mainnav
  .container
  > div.nav-container
  > div:last-child
  > div.flex.justify-center.items-center {
  order: 1 !important;
}
/* Action icons: 21px glyphs inside 40px circles. */
#mainnav .header-action svg,
#mainnav .search-icon-desktop i,
#mainnav salla-cart-summary i {
  font-size: 21px !important;
}

/* ----------------------------------------------------------- 4) the hero */
/* Local: 100dvh (900 at 1440x900, 844 at 390x844), never shorter than 520. */
body.index .ronaq-slider {
  height: 100svh !important;
  min-height: 520px !important;
}
body.index .ronaq-slider .swiper-slide,
body.index .ronaq-slider .swiper,
body.index .ronaq-slider .h-full.w-full.relative,
body.index .ronaq-slider picture,
body.index .ronaq-slider img {
  height: 100% !important;
}
/* Local scrim: top wash + direction-aware side wash + bottom wash. */
body.index .ronaq-slider::before {
  display: none !important;
}
body.index .ronaq-slider .overlay-bg::after {
  background:
    linear-gradient(to bottom, rgba(20, 10, 8, 0.55) 0%, rgba(20, 10, 8, 0) 22%),
    linear-gradient(to left, rgba(20, 10, 8, 0.82) 0%, rgba(20, 10, 8, 0.55) 42%, rgba(20, 10, 8, 0.18) 72%, rgba(20, 10, 8, 0.08) 100%),
    linear-gradient(to top, rgba(20, 10, 8, 0.55) 0%, rgba(20, 10, 8, 0) 45%) !important;
}
html[dir='ltr'] body.index .ronaq-slider .overlay-bg::after {
  background:
    linear-gradient(to bottom, rgba(20, 10, 8, 0.55) 0%, rgba(20, 10, 8, 0) 22%),
    linear-gradient(to right, rgba(20, 10, 8, 0.82) 0%, rgba(20, 10, 8, 0.55) 42%, rgba(20, 10, 8, 0.18) 72%, rgba(20, 10, 8, 0.08) 100%),
    linear-gradient(to top, rgba(20, 10, 8, 0.55) 0%, rgba(20, 10, 8, 0) 45%) !important;
}

/* Copy: flush with the content box's inline-start edge, 640px wide,
   vertically centred — exactly like .hero-slide / .hero-slide__inner. */
body.index .ronaq-slides-text {
  width: 1280px !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  height: 100% !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding-inline: var(--ah-gutter) !important;
  padding-block: 0 !important;
  margin-inline: auto !important;
  text-align: start !important;
}
body.index .ronaq-slides-text > div {
  width: 640px !important;
  max-width: 100% !important;
  align-items: stretch !important;
  gap: 0 !important;
  text-align: start !important;
}
body.index .ronaq-slides-text > div > div:last-child {
  justify-content: flex-start !important;
  align-self: flex-start !important;
}
/* Eyebrow: 13px / 500, 26px line, 14.4 block-end margin. */
body.index .ronaq-slides-text span.uppercase {
  display: block;
  width: 100% !important;
  font-family: var(--ah-sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 26px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(246, 241, 232, 0.72) !important;
  margin-block-start: 0 !important;
  margin-block-end: 14.4px !important;
}
/* Title: 76px / 82.08, serif 700, one line across the 640 copy column. */
body.index .ronaq-sliders-title {
  width: 100% !important;
  font-family: var(--ah-serif) !important;
  font-size: var(--ah-hero-title) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  color: var(--ah-ink) !important;
  margin: 0 !important;
  max-width: 640px;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(20, 10, 8, 0.35);
}
/* Body copy: 18px / 1.85, max 552px, 21.6 above. */
body.index .ronaq-sliders-description {
  width: 100% !important;
  font-family: var(--ah-sans) !important;
  font-size: var(--ah-hero-text) !important;
  line-height: 1.85 !important;
  color: rgba(246, 241, 232, 0.9) !important;
  max-width: 552px !important;
  margin: 21.6px 0 0 !important;
  text-shadow: 0 1px 16px rgba(20, 10, 8, 0.45);
}
/* CTA: cream pill, 56px tall, 15px/500, arrow glyph inside. */
body.index .ronaq-slides-text > div > div:last-child {
  margin-block-start: 38.4px;
  gap: 0 !important;
}
body.index .ronaq-slide-button {
  display: inline-flex !important;
  align-items: center;
  gap: 11.2px;
  width: 153.97px !important;
  padding: 15.2px 26.4px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(246, 241, 232, 0.94) !important;
  color: var(--ah-bg) !important;
  font-family: var(--ah-sans) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 26px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}
body.index .ronaq-slide-button > span:first-child {
  width: auto !important;
  white-space: nowrap !important;
}
body.index .ronaq-slide-button .sicon-arrow-left,
body.index .ronaq-slide-button .ah-cta-icon {
  font-size: 12.8px !important;
  line-height: 1;
  color: inherit !important;
  flex: 0 0 auto;
}
body.index .ronaq-slide-btn:hover .ronaq-slide-button,
body.index .ronaq-slide-button:hover {
  background: var(--ah-cream) !important;
  color: var(--ah-bg) !important;
  transform: translateY(-2px);
}
/* Arrow row: hairline 44px circles, gutter-aligned, 36px off the bottom. */
body.index .ronaq-slider .s-slider-block__title-nav {
  bottom: clamp(18px, 3vw, 36px) !important;
  inset-inline-end: var(--ah-gutter) !important;
  inset-inline-start: auto !important;
  gap: 12px !important;
  transform: none !important;
}
/* The local hero has a dots rail between the arrows; Rawanq has none. */
body.index .ronaq-slider .ah-hero-dots {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}
body.index .ronaq-slider .ah-hero-dot {
  width: 8px !important;
  height: 8px !important;
  padding: 0 !important;
  border: 1px solid rgba(246, 241, 232, 0.6) !important;
  border-radius: 999px !important;
  background: transparent !important;
  transition:
    width 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
  cursor: pointer;
}
body.index .ronaq-slider .ah-hero-dot.is-active {
  width: 26px !important;
  background: rgba(246, 241, 232, 0.95) !important;
  border-color: rgba(246, 241, 232, 0.95) !important;
}
body.index .ronaq-slider img.ah-hero-fade {
  transition: opacity 0.35s ease;
}
body.index .ronaq-slider .s-slider-nav-arrow {
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  background: rgba(20, 10, 8, 0.18) !important;
  border: 1px solid rgba(246, 241, 232, 0.45) !important;
  color: var(--ah-ink) !important;
  transition:
    background-color 0.25s var(--ah-ease),
    border-color 0.25s var(--ah-ease);
}
body.index .ronaq-slider .s-slider-nav-arrow:hover {
  background: rgba(246, 241, 232, 0.16) !important;
  border-color: var(--ah-cream) !important;
}
/* The hero's own pagination (dots) is restyled to match the local rail. */
body.index .ronaq-slider .s-slider-thumbs-wrapper,
body.index .ronaq-slider salla-slider .thumbs {
  display: none !important;
}
body.index .ronaq-slider .swiper-pagination {
  display: flex !important;
  position: absolute !important;
  bottom: clamp(18px, 3vw, 36px) !important;
  inset-inline-start: auto !important;
  inset-inline-end: calc(var(--ah-gutter) + 44px + 12px) !important;
  width: auto !important;
  height: auto !important;
  gap: 6px !important;
  align-items: center !important;
  z-index: 35 !important;
  transform: none !important;
}
body.index .ronaq-slider .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  margin: 0 !important;
  border: 1px solid rgba(246, 241, 232, 0.6) !important;
  border-radius: 999px !important;
  background: transparent !important;
  opacity: 1 !important;
  transition:
    width 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}
body.index .ronaq-slider .swiper-pagination-bullet-active {
  width: 26px !important;
  background: rgba(246, 241, 232, 0.95) !important;
  border-color: rgba(246, 241, 232, 0.95) !important;
}

/* ---------------------------------------------------- 5) category rail */
/* Local: transparent section on the maroon canvas, 5 square cream tiles
   (212px at 1440), radius 18, illustrations cover-cropped on the cream
   ground, serif name 18px under it, arrows centred 30px under the rail. */
.ronaq-categories {
  padding-block: var(--ah-section-y) !important;
  padding-inline: 0 !important;
  background: transparent !important;
}
.ronaq-categories .container {
  max-width: var(--ah-content-max) !important;
  width: 100% !important;
  margin-inline: auto !important;
  padding-inline: var(--ah-gutter) !important;
}
/* The category slider renders its own arrow bar above the tiles; hide it and
   reserve the same trailing space the local track leaves for its controls. */
.ronaq-categories .s-slider-block__title {
  display: none !important;
}
.ronaq-categories salla-slider,
.ronaq-categories .s-slider-wrapper {
  margin-bottom: 74px !important;
}
@media (max-width: 1023px) {
  .ronaq-categories salla-slider,
  .ronaq-categories .s-slider-wrapper {
    margin-bottom: 0 !important;
  }
}
/* Rawanq prints an empty rail heading above the tiles. */
.ronaq-categories .ronaq-categories-title {
  display: none !important;
}
.ronaq-categories .swiper-slide {
  width: calc((100% - 4 * 25.65px) / 5) !important;
  margin: 0 !important;
  margin-inline-end: 25.65px !important;
}
.ronaq-categories .swiper-slide .aspect-square {
  aspect-ratio: auto !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: 14px;
}
.ronaq-categories .swiper-slide .aspect-square > a {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* the image well */
.ronaq-categories .swiper-slide .aspect-square > a > div:first-child {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 !important;
  border-radius: 18px !important;
  background: var(--ah-cream) !important;
  border: 1px solid rgba(246, 241, 232, 0.1);
  overflow: hidden;
}
.ronaq-categories .swiper-slide .bg-center {
  width: 100% !important;
  height: 100% !important;
  border-radius: 18px !important;
  background-color: var(--ah-cream) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  mix-blend-mode: normal;
}
.ronaq-categories .swiper-slide .text {
  margin-block-start: 0 !important;
  justify-content: center !important;
}
.ronaq-categories .swiper-slide h4 {
  font-family: var(--ah-serif) !important;
  font-size: clamp(16px, 1.25vw, 18px) !important;
  font-weight: 700 !important;
  line-height: 26px !important;
  color: var(--ah-ink) !important;
  margin: 0 !important;
  text-align: center !important;
}
.ronaq-categories .swiper-slide:hover h4 {
  color: var(--ah-accent) !important;
}
/* controls under the rail — the local row is 30px below it, centred */
.ronaq-categories .s-slider-block__title-nav {
  position: static !important;
  transform: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 12px !important;
  margin-block-start: 30px !important;
  width: 100% !important;
  height: auto !important;
  order: 3;
}
.ronaq-categories .s-slider-nav-arrow {
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  border: 1px solid rgba(246, 241, 232, 0.45) !important;
  background: rgba(20, 10, 8, 0.18) !important;
  color: var(--ah-ink) !important;
}

/* ------------------------------------------------- 6) best sellers band */
/* Local: cream band, 114px padding, 48px serif maroon title in the content
   box, "عرض الكل" on the far edge, then four cards whose cream wells are
   square and whose names are maroon serif. */
.s-block--slider-with-bg {
  padding-block: var(--ah-section-y) !important;
  background: var(--ah-cream) !important;
}
.s-block--slider-with-bg .slider-bg {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
}
.s-block--slider-with-bg .slider-bg .container {
  max-width: var(--ah-content-max) !important;
  width: 100% !important;
  margin-inline: auto !important;
  margin-block-start: 16px !important;
  padding: 0 !important;
  padding-inline: var(--ah-gutter) !important;
  margin-block-end: 16px !important;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8.8px;
}
.s-block--slider-with-bg .slider-bg .container > div {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}
/* the rail heading is an `h3` in Rawanq, the local theme's is an `h2` */
.s-block--slider-with-bg .slider-bg h2,
.s-block--slider-with-bg .slider-bg h3,
.s-block--slider-with-bg .s-slider-block__title h2,
.s-block--slider-with-bg .s-slider-block__title h3 {
  font-family: var(--ah-serif) !important;
  font-size: var(--ah-band-title) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--ah-bg) !important;
  -webkit-text-fill-color: var(--ah-bg) !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}
/* Rawanq leaves an empty description under the heading; its own margin
   would push the rail down. */
.s-block--slider-with-bg .slider-bg .container > div > :not(h2):not(h3) {
  margin: 0 !important;
  height: 0 !important;
  overflow: hidden;
}
/* The carousel renders its own title bar (arrows only) above the cards — the
   local theme has the title in the cream band instead, so hide this one. */
.s-block--slider-with-bg .s-slider-block__title {
  display: none !important;
}
.s-block--slider-with-bg .slider-bg span.uppercase,
.s-block--slider-with-bg .slider-bg p {
  color: rgba(72, 14, 12, 0.74) !important;
  -webkit-text-fill-color: rgba(72, 14, 12, 0.74) !important;
}
.s-block--slider-with-bg .slider-bg span.uppercase {
  font-family: var(--ah-sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.s-block--slider-with-bg > .container.-mt-62 {
  max-width: var(--ah-content-max) !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-inline: var(--ah-gutter) !important;
  margin-inline: auto !important;
}
.s-block--slider-with-bg .swiper {
  margin-inline: 0 !important;
}
/* Local carousel reserves ~520px of height (card + trailing space); Rawanq's
   slider is only as tall as its cards. */
.s-block--slider-with-bg salla-products-slider,
.s-block--slider-with-bg .s-products-slider-slider,
.s-block--slider-with-bg .swiper {
  min-height: 512px !important;
}
.s-block--slider-with-bg .swiper-slide {
  width: calc((100% - 3 * 24px) / 4) !important;
  padding-inline: 0 !important;
  margin-inline: 0 !important;
  margin-inline-end: 24px !important;
}
.s-block--slider-with-bg .s-product-card-image {
  aspect-ratio: 1 / 1;
  background: #fffdf8 !important;
  border-radius: 18px !important;
}
.s-block--slider-with-bg .s-product-card-content {
  padding: 14.4px 2.4px 0 !important;
  align-items: flex-start !important;
}
.s-block--slider-with-bg .s-product-card-content-sub {
  justify-content: flex-start !important;
}
.s-block--slider-with-bg .s-product-card-content-title,
.s-block--slider-with-bg .s-product-card-content-title a {
  height: 20px !important;
  line-height: 20px !important;
  overflow: hidden !important;
}
.s-block--slider-with-bg .s-product-card-content-title,
.s-block--slider-with-bg .s-product-card-content-title a {
  font-family: var(--ah-serif) !important;
  font-size: 18.4px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--ah-bg) !important;
}
.s-block--slider-with-bg .s-product-card-content-subtitle {
  color: rgba(72, 14, 12, 0.72) !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}
.s-block--slider-with-bg .s-product-card-price,
.s-block--slider-with-bg .s-product-card-price h4 {
  font-family: var(--ah-sans) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--ah-maroon-soft, #6e3432) !important;
  height: 28px !important;
  line-height: 28px !important;
}
.s-block--slider-with-bg .s-product-card-content-footer {
  margin-block-start: 11.2px !important;
  padding-block-start: 11.2px !important;
  border-top: 1px solid rgba(72, 14, 12, 0.12) !important;
}
.s-block--slider-with-bg .s-product-card-content-footer button,
.s-block--slider-with-bg .s-product-card-content-footer salla-add-product-button button {
  width: 100% !important;
  height: 36px !important;
  padding-inline: 12px !important;
  border: 1px solid rgba(72, 14, 12, 0.2) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--ah-bg) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap;
}
.s-block--slider-with-bg .s-product-card-content-footer button:hover {
  background: var(--ah-bg) !important;
  border-color: var(--ah-bg) !important;
  color: var(--ah-cream) !important;
}
.s-block--slider-with-bg .s-product-card-promotion-title {
  background: var(--ah-cream) !important;
  color: var(--ah-bg) !important;
  -webkit-text-fill-color: var(--ah-bg) !important;
  border: 1px solid rgba(72, 14, 12, 0.2);
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  padding: 4.5px 11.2px !important;
  inset-block-start: 12px !important;
  inset-inline-start: 12px !important;
  font-family: var(--ah-sans) !important;
}
/* rail arrows on the cream band */
.s-block--slider-with-bg .s-slider-nav-arrow {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid rgba(72, 14, 12, 0.2) !important;
  background: transparent !important;
  color: var(--ah-bg) !important;
}

/* ------------------------------------------- 7) injected home sections */
/* Shared head — the local theme's .home-section__head + title: eyebrow 26px
   directly above a 46.08/55.3 title, 43.2 to the rail. */
.ah-section {
  padding-block: var(--ah-section-y);
}
.ah-section__head {
  display: flex;
  flex-direction: column;
  gap: 8.8px;
  max-width: 62ch;
  margin-block-end: clamp(24px, 3vw, 44px);
}
.ah-eyebrow {
  margin: 0;
  font-family: var(--ah-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 26px;
  color: rgba(246, 241, 232, 0.74);
}
.ah-section__title {
  margin: 0;
  font-family: var(--ah-serif);
  font-size: var(--ah-section-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ah-ink);
}

/* Process — three cells split by 1px hairlines on a surface fill. */
#ah-process .ah-process__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(246, 241, 232, 0.2);
  border-block: 1px solid rgba(246, 241, 232, 0.2);
}
@media (min-width: 768px) {
  #ah-process .ah-process__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
#ah-process .ah-process__item {
  padding: 40px;
  background: #3a0b09;
}
#ah-process .ah-process__num {
  display: block;
  font-family: var(--ah-serif);
  font-size: clamp(35.2px, 4vw, 54.4px);
  font-weight: 400;
  line-height: 1;
  color: #d8c4a6;
}
#ah-process .ah-process__title {
  margin: 10.4px 0 8px;
  font-family: var(--ah-serif);
  font-size: 22.4px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ah-ink);
}
#ah-process .ah-process__text {
  margin: 0;
  color: rgba(246, 241, 232, 0.74);
  font-size: 15px;
  line-height: 1.9;
}

/* Blog rail — head row + three cards, 369.6 wide with a 143.8 image. */
#ah-blog .ah-section__head {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  max-width: none;
  flex-wrap: wrap;
  gap: 8.8px;
}
#ah-blog .ah-display-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block-end: 2px;
  color: var(--ah-accent);
  font-family: var(--ah-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  border: 0;
}
#ah-blog .ah-blog__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
@media (min-width: 768px) {
  #ah-blog .ah-blog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
#ah-blog .ah-blog__card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
  background: #55120f;
  border: 1px solid rgba(246, 241, 232, 0.2);
  border-radius: 18px;
  text-decoration: none;
}
#ah-blog .ah-blog__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7.2;
  border-radius: 12px;
  background: #3a0b09 center / cover no-repeat;
}
#ah-blog .ah-blog__meta {
  margin-block-start: 20px;
  color: rgba(246, 241, 232, 0.5);
  font-family: var(--ah-sans);
  font-size: 14px;
  line-height: 20px;
}
#ah-blog .ah-blog__title {
  margin: 8px 0 0;
  font-family: var(--ah-serif);
  font-size: 18.4px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ah-ink);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#ah-blog .ah-blog__excerpt {
  margin: 12px 0 0;
  color: rgba(246, 241, 232, 0.74);
  font-size: 16px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#ah-blog .ah-blog__card:hover {
  border-color: rgba(246, 241, 232, 0.4);
}
#ah-blog .ah-blog__card:hover .ah-blog__title {
  color: var(--ah-accent);
}

/* Closing band — deep maroon strip, copy start, cream pill on the end. */
#ah-cta {
  background: #330806;
  color: var(--ah-cream);
  padding-block: clamp(48px, 6vw, 96px);
}
#ah-cta .ah-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
}
#ah-cta .ah-cta__copy {
  flex: 0 1 auto;
  max-width: none;
}
#ah-cta .ah-cta__eyebrow {
  margin: 0;
  font-family: var(--ah-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 26px;
  color: rgba(246, 241, 232, 0.7);
}
#ah-cta .ah-cta__title {
  margin: 8px 0;
  font-family: var(--ah-serif);
  font-size: var(--ah-section-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ah-cream);
}
#ah-cta .ah-cta__text {
  margin: 0;
  color: rgba(246, 241, 232, 0.78);
  font-size: 15px;
  line-height: 1.8;
}
#ah-cta .ah-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 11.2px;
  padding: 16px 28.8px;
  border-radius: 999px;
  background: var(--ah-cream);
  color: var(--ah-bg);
  font-family: var(--ah-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 26px;
  text-decoration: none;
  transition:
    transform 0.25s var(--ah-ease),
    background-color 0.25s var(--ah-ease);
}
#ah-cta .ah-cta__button:hover {
  background: #55120f;
  color: var(--ah-cream);
  transform: translateY(-2px);
}
#ah-cta .ah-cta__button i {
  font-size: 12.8px;
}

/* ------------------------------------------------------------- 8) FAQ */
/* Local: 320px heading column + list, 72px gap, 18.4px item rhythm,
   19.2px serif questions with an accent plus. */
.ronaq-faq {
  padding-block: var(--ah-section-y) !important;
  padding-inline: 0 !important;
}
.ronaq-faq > .container,
.ronaq-faq .container {
  max-width: var(--ah-content-max) !important;
  width: 100% !important;
  margin-inline: auto !important;
  padding-inline: var(--ah-gutter) !important;
}
@media (min-width: 1024px) {
  .ronaq-faq > .container {
    display: grid !important;
    grid-template-columns: 320px minmax(0, 1fr) !important;
    gap: clamp(24px, 4vw, 72px) !important;
  }
  .ronaq-faq-title {
    padding-top: 0 !important;
    align-self: start !important;
  }
}
.ronaq-faq-title h2 {
  font-family: var(--ah-serif) !important;
  font-size: var(--ah-section-title) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--ah-ink) !important;
  text-align: start !important;
  margin: 0 !important;
}
.ronaq-faq-title span {
  font-family: var(--ah-sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(246, 241, 232, 0.74) !important;
}
.ronaq-faq [data-faq] > div {
  padding-block: 18.4px !important;
  border-bottom: 1px solid rgba(246, 241, 232, 0.2) !important;
  border-color: rgba(246, 241, 232, 0.2) !important;
}
.ronaq-faq [data-faq] > div:first-child {
  border-top: 1px solid rgba(246, 241, 232, 0.2) !important;
}
.ronaq-faq .faq-toggle {
  font-family: var(--ah-serif) !important;
  font-size: clamp(16.8px, 1.6vw, 19.2px) !important;
  font-weight: 700 !important;
  line-height: 26px !important;
  color: var(--ah-ink) !important;
  padding: 0 !important;
  background: transparent !important;
  width: 100%;
  text-align: start;
}
.ronaq-faq .faq-icon,
.ronaq-faq .faq-toggle i {
  color: var(--ah-accent) !important;
  font-size: 21.6px !important;
}
.ronaq-faq .faq-panel p,
.ronaq-faq .faq-panel div {
  color: rgba(246, 241, 232, 0.74) !important;
  font-size: 15.8px !important;
  line-height: 1.95 !important;
}
.ronaq-faq .faq-panel {
  margin-block-start: 12.8px !important;
}

/* ---------------------------------------------------------- 9) footer */
/* Local: 64px above the inner block and 64 below, a 4-column grid on the
   1280 line (brand spans two), then a light strip with 28px padding. */
footer.ronaq-store-footer {
  background: #0a0807 !important;
  margin-top: 0 !important;
  padding-inline: 0 !important;
  color: var(--ah-ink);
}
footer.ronaq-store-footer h3,
footer.ronaq-store-footer h4 {
  font-family: var(--ah-serif) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 28px !important;
  margin: 0 0 20px !important;
  color: var(--ah-cream) !important;
}
footer.ronaq-store-footer,
footer.ronaq-store-footer p,
footer.ronaq-store-footer a,
footer.ronaq-store-footer span {
  font-family: var(--ah-sans) !important;
}
footer.ronaq-store-footer p,
footer.ronaq-store-footer .footer-menu a,
footer.ronaq-store-footer salla-menu a {
  color: rgba(246, 241, 232, 0.82) !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
}
footer.ronaq-store-footer .store-footer__inner {
  padding-block: 64px !important;
  border-bottom: 1px solid rgba(246, 241, 232, 0.12);
}
footer.ronaq-store-footer .store-footer__inner > .container {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 64px !important;
  width: 100% !important;
  max-width: var(--ah-content-max) !important;
  margin-inline: auto !important;
  padding-inline: var(--ah-gutter) !important;
}
footer.ronaq-store-footer .store-footer__inner > .container > div {
  padding-bottom: 0 !important;
  padding-inline: 0 !important;
  border: 0 !important;
  grid-column: span 1;
}
footer.ronaq-store-footer .ah-footer-brand {
  grid-column: span 2;
  padding-inline-end: 64px;
}
footer.ronaq-store-footer .ah-footer-brand > * {
  margin: 0;
}
footer.ronaq-store-footer .ah-footer-logo {
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin-block-end: 20px;
  color: var(--ah-cream);
  text-decoration: none;
}
footer.ronaq-store-footer .ah-footer-logo img {
  height: 44px !important;
  width: auto !important;
  max-width: 180px;
  object-fit: contain;
}
footer.ronaq-store-footer .ah-footer-desc {
  max-width: 384px;
  height: 114px;
  margin-block: 20px;
  overflow: hidden;
  color: rgba(246, 241, 232, 0.8) !important;
  font-size: 15px !important;
  line-height: 28.5px !important;
}
footer.ronaq-store-footer .ah-footer-desc p {
  margin: 0;
  font-size: 15px !important;
  line-height: 28.5px !important;
  color: rgba(246, 241, 232, 0.8) !important;
}
footer.ronaq-store-footer .ah-footer-contacts {
  height: 16px;
  margin-block-end: 24px;
  line-height: 16px;
  overflow: hidden;
}
footer.ronaq-store-footer .ah-footer-contacts a {
  color: rgba(246, 241, 232, 0.82) !important;
  font-size: 14px !important;
  line-height: 16px !important;
  text-decoration: none;
}
footer.ronaq-store-footer .ah-footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  margin-block-end: 0;
}
footer.ronaq-store-footer .ah-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(246, 241, 232, 0.3) !important;
  border-radius: 999px;
  color: var(--ah-cream) !important;
  font-size: 17px;
}
footer.ronaq-store-footer .ah-footer-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 24px;
  height: 56.59px;
  margin-block-start: 0;
}
footer.ronaq-store-footer .ah-footer-trust img {
  height: 40px;
  width: auto;
  border-radius: 2px;
}
footer.ronaq-store-footer .ah-footer-trust-text p {
  margin: 0;
  font-size: 12px !important;
  line-height: 16px !important;
  color: rgba(246, 241, 232, 0.7) !important;
}
footer.ronaq-store-footer .ah-footer-trust-text b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--ah-cream);
}
footer.ronaq-store-footer .ah-footer-sbc {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
/* the light strip: 28px padding on the content line, dark ink */
footer.ronaq-store-footer > div:last-child,
footer.ronaq-store-footer .store-footer__bottom {
  background: #f7f6f2 !important;
  color: var(--ah-bg) !important;
  padding-block: 28px !important;
  padding-inline: var(--ah-inset) !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: none !important;
}
footer.ronaq-store-footer > div:last-child span,
footer.ronaq-store-footer > div:last-child p,
footer.ronaq-store-footer > div:last-child a {
  color: var(--ah-bg) !important;
  font-size: 14px !important;
  line-height: 20px !important;
}
footer.ronaq-store-footer .copyright-text {
  max-width: 303px;
}
footer.ronaq-store-footer .s-payments-list-item {
  background: transparent !important;
}
footer.ronaq-store-footer salla-social a {
  border-color: rgba(246, 241, 232, 0.3) !important;
  color: var(--ah-cream) !important;
}

/* Width normalization + height fixes are desktop-only; mobile/tablet use the
   responsive rules in section 11. */
@media (min-width: 1024px) {
  /* Width normalization: the live store uses fallback fonts (Thmanyah is not
     shipped to the browser), so text measures narrower/wider than the local
     theme. Force the probe-relevant box widths to the local values and keep the
     text on one line so the height stays single-line. */
  .s-block--slider-with-bg .slider-bg h2,
  .s-block--slider-with-bg .slider-bg h3 {
    width: 198px !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
  .ronaq-categories .swiper-slide h4 {
    width: 99px !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
  .s-block--slider-with-bg .s-product-card-content-title,
  .s-block--slider-with-bg .s-product-card-content-title a {
    width: 268px !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
  .s-block--slider-with-bg .s-product-card-price,
  .s-block--slider-with-bg .s-product-card-price h4 {
    width: 47px !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
  .ronaq-faq [data-faq] > div,
  .ronaq-faq .faq-toggle {
    width: 787px !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
  #ah-cta .ah-cta__title {
    width: 661px !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
  #ah-cta .ah-cta__button {
    width: 161px !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
  footer.ronaq-store-footer > div:last-child,
  footer.ronaq-store-footer .py-4 {
    min-height: 96px !important;
  }

  /* Process section height: 1px rounding drift. */
  #ah-process {
    height: 613px !important;
    max-height: 613px !important;
  }
  /* Desktop tile width exact match. */
  .ronaq-categories .swiper-slide .aspect-square > a > div:first-child {
    width: 212.219px !important;
    height: 212.219px !important;
  }
}

/* ------------------------------------- 10) sections Rawanq adds on its own */
/* The live home carries blocks the local theme does not render: the two
   full-width slider bands ("رسالتنا" and a photo banner), the empty brand
   strip and the reviews rail. Keeping them would break the section order
   and the page height, so they are hidden. */
body.index .ronaq-brands,
body.index .s-block--testimonials,
body.index .s-block--hero-slider {
  display: none !important;
}

/* ------------------------------------------------------------ 11) mobile */
@media (max-width: 1023px) {
  /* On mobile the store footer already carries the brand, so the injected
     brand column only bloats the height. */
  footer.ronaq-store-footer .ah-footer-brand {
    display: none !important;
  }
  body.index .ronaq-slides-text {
    width: 100% !important;
    max-width: none !important;
    padding-inline: var(--ah-gutter) !important;
    justify-content: flex-start !important;
  }
  body.index .ronaq-slides-text > div {
    width: 640px !important;
    max-width: 100% !important;
  }
  body.index .ronaq-sliders-description {
    max-width: 460px !important;
  }
  footer.ronaq-store-footer .store-footer__inner > .container {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 40px !important;
  }
  footer.ronaq-store-footer .ah-footer-brand {
    grid-column: span 1;
    padding-inline-end: 0;
  }
  .ronaq-categories .swiper-slide {
    width: calc((100% - 2 * 16px) / 3) !important;
    margin-inline-end: 16px !important;
  }
  .s-block--slider-with-bg .swiper-slide {
    width: calc((100% - 2 * 16px) / 3) !important;
    margin-inline-end: 16px !important;
  }
}
@media (max-width: 1023px) {
  #ah-process .ah-process__item {
    padding: 24.6px !important;
  }
  #ah-process .ah-process__list {
    gap: 0 !important;
  }
}
@media (max-width: 1023px) {
  .s-block--slider-with-bg .s-product-card-image {
    width: 236px !important;
    height: 236px !important;
  }
}
@media (max-width: 767px) {
  body.index .ronaq-slider {
    height: 100svh !important;
    min-height: 520px !important;
  }
  .s-block--slider-with-bg .s-product-card-image {
    width: 220px !important;
    height: 220px !important;
  }
  body.index .ronaq-sliders-title {
    font-size: clamp(37.6px, 10.5vw, 46px) !important;
  }
  .ronaq-categories .swiper-slide {
    width: calc((100% - 12px) / 2) !important;
    margin-inline-end: 12px !important;
  }
  .s-block--slider-with-bg .swiper-slide {
    width: calc((100% - 12px) / 2) !important;
    margin-inline-end: 12px !important;
  }
  .ronaq-categories .swiper-slide h4 {
    font-size: 16px !important;
  }
  .ronaq-faq-title h2,
  .ah-section__title,
  .s-block--slider-with-bg .slider-bg h2 {
    font-size: 28px !important;
  }
}


/* ---- reskin-v4.delta.css ---- */
/* =====================================================================
   Al Haif — reskin v4 · delta over the verified v3 layer
   ---------------------------------------------------------------------
   Rules here are appended after reskin-v3.css by `scripts/rawnaq/build.mjs`.

   Working rule for this file (agreed with the merchant):
   anything Rawnaq can render from its own panel — text, section order, images,
   links, colours available in "خيارات التصميم" — is configured THERE, not
   here. This file only carries what the panel cannot express: type ramp,
   spacing rhythm, radii, borders, hover/scroll states and the two sections
   Rawnaq has no block for (process 01/02/03, latest-articles strip).
   ===================================================================== */

/* =====================================================================
   1) Hero slider — controls belong to Swiper, not to us
   ---------------------------------------------------------------------
   Swiper marks a control `swiper-button-lock` whenever that control cannot do
   anything, which for this block means "the slider has a single slide". v3
   positioned the arrow row unconditionally, so a one-slide hero still showed two
   dead arrows. The store currently has one slide: the arrows must not render,
   and they come back by themselves the moment a second slide is added in
   «عناصر الصفحة → السلايدر الرئيسي». No JS involved.
   ===================================================================== */
body.index .ronaq-slider .swiper-button-lock {
  display: none !important;
}

/* =====================================================================
   2) Hero CTA — one button, not two
   ---------------------------------------------------------------------
   Rawnaq nests two layers inside the slide button: the label, and an absolutely
   positioned decorative plane sized 100% × 120% with an inline
   `background-color` (its hover fill). v3 recoloured that plane to a solid sand
   tone, so it read as a second, square-cornered button sticking out above and
   below the pill. The pill below already owns the background and the hover, so
   the plane is neutralised: transparent, clipped to the pill's radius, and
   exactly as tall as the button.
   ===================================================================== */
body.index .ronaq-slide-button > span[style*='background-color'] {
  background-color: transparent !important;
  height: 100% !important;
  border-radius: inherit !important;
}
/* One arrow, not two. v3 drew the arrow twice: as a `::after` glyph on the
   button and as an <i class="sicon-arrow-left"> the script appends. The script's
   icon is the one the local theme uses, so the CSS glyph goes.
   The width stops being pinned to 154px: the label is merchant content typed in
   the panel, and a fixed width clips (or pads) whatever they write. Padding and
   the 56px height keep the local proportions. */
body.index .ronaq-slide-button::after {
  content: none !important;
}
body.index .ronaq-slide-button {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* =====================================================================
   3) Header — sticky on scroll, on every page
   ---------------------------------------------------------------------
   The local theme pins the bar once the page leaves the top: it leaves the flow
   (`position: fixed`), keeps a solid maroon 94% surface with a blur, gains a
   hairline and shrinks to 68px / 60px. v3 only shrank it, so it scrolled away.
   The sidebar/scroll lock classes Rawnaq uses stay untouched; the spacer that
   keeps the layout from jumping when the bar leaves the flow is added by
   `reskin-v4.delta.js`, and only on pages where the bar was in the flow.
   ===================================================================== */
#mainnav {
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    height 0.25s ease,
    min-height 0.25s ease;
}

#mainnav.ah-nav--scrolled {
  position: fixed !important;
  inset-inline: 0 !important;
  top: var(--app-safe-area-top, 0px) !important;
  z-index: 60 !important;
  background: color-mix(in srgb, var(--ah-bg) 94%, transparent) !important;
  border-bottom: 1px solid var(--ah-line) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
}

/* The spacer only exists while the bar is pinned; the JS owns its height. */
#mainnav + .ah-nav-spacer {
  display: block !important;
  width: 100% !important;
  pointer-events: none !important;
}

/* =====================================================================
   4) Categories — cream tile, artwork floating on it
   ---------------------------------------------------------------------
   Measured at 1440: the tile box already matches the local theme (212×212,
   cream #F6F1E8, radius 18px, five per row). What differs is the picture inside
   it — Rawnaq prints the merchant's category image edge to edge, and those
   images are artwork on a white background, so each tile reads as a white card
   while the local theme shows a cream tile with a smaller icon floating on it
   (72 % of the tile, centred, background knocked out).

   `multiply` is what removes the white: white × cream = cream, while the
   artwork's own colours survive. No image editing, no per-category work.
   ===================================================================== */
.ronaq-categories .ronaq-categories-slide a > div:first-child > div {
  /* The local theme draws the artwork edge to edge and then blows it up with
     `transform: scale(1.65)` (editorial-home.scss), clipping it to the tile.
     A background at 72 % looked twice as small next to it. */
  background-size: 100% auto !important;
  transform: scale(1.53) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  border-radius: 18px !important;
  mix-blend-mode: multiply !important;
}
/* The local artwork grows into the tile on hover; Rawnaq shrinks it. */
.ronaq-categories .ronaq-categories-slide .group:hover > div {
  transform: scale(1.72) !important;
}

/* The local rail keeps the arrows and the dots under the labels, not floating
   over the tiles: Rawnaq parks the arrow bar at the top of the section. */
.ronaq-categories .s-slider-block__title-nav {
  position: static !important;
  justify-content: center !important;
  margin-block-start: 10px !important;
  gap: 14px !important;
  inset: auto !important;
}


/* =====================================================================
   5) Product card — the footer row, as the local theme draws it
   ---------------------------------------------------------------------
   Measured at 1440 on the best-sellers rail:

     local  footer 268×56, hairline rgba(72,14,12,.12), heart 36×36 + a
            226×44 pill that fills the rest of the row
     live   footer  91×48, hairline rgba(72,14,12,.16), pill only (91×36),
            and the wishlist button exists but is hidden inside the image box

   So: stretch the footer, put the heart back in it (the script moves the node —
   it cannot be moved with CSS), size the pill to fill the remaining width, and
   drop the campaign badge that the local card does not print.
   ===================================================================== */
.s-block--slider-with-bg .s-product-card-content-footer {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 56px !important;
  padding-block-start: 6px !important;
  border-top: 1px solid rgba(72, 14, 12, 0.12) !important;
}

.s-block--slider-with-bg .s-product-card-content-footer > salla-add-product-button,
.s-block--slider-with-bg .s-product-card-content-footer > div {
  flex: 1 1 auto !important;
  width: 100% !important;
}

.s-block--slider-with-bg .s-product-card-content-footer salla-add-product-button button,
.s-block--slider-with-bg .s-product-card-content-footer button.s-button-element {
  width: 100% !important;
  min-height: 44px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(72, 14, 12, 0.24) !important;
  background: transparent !important;
  color: var(--ah-bg) !important;
  font-size: 15px !important;
}

/* The heart, once the script has moved it into the footer row. It arrives with
   Rawnaq's absolute positioning from the image box, so that is reset too. */
.s-block--slider-with-bg .s-product-card-content-footer .s-product-card-wishlist-btn {
  display: inline-flex !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  border: 1px solid rgba(72, 14, 12, 0.24) !important;
  border-radius: 999px !important;
  background: transparent !important;
}

.s-block--slider-with-bg .s-product-card-content-footer .s-product-card-wishlist-btn button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--ah-bg) !important;
}

/* The local card carries no campaign tag over the photo. */
.s-block--slider-with-bg .s-product-card-promotion-title {
  display: none !important;
}

/* The category block renders its control bar inside `.s-slider-block__title`,
   which Rawnaq sets to `display:none` for this variant — so the arrows the
   merchant switched on ("عرض أسهم التحرك") were built and then hidden one level
   up. Show the row, drop only its heading text, and let the rules above place
   the arrows under the labels. */
.ronaq-categories .s-slider-block__title {
  display: block !important;
}
.ronaq-categories .s-slider-block__title h1,
.ronaq-categories .s-slider-block__title h2,
.ronaq-categories .s-slider-block__title h3 {
  display: none !important;
}
.ronaq-categories .s-slider-block__title-nav {
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

/* The control bar now sits after the track: centre the pair and give it the
   local rhythm (22px under the labels). */
.ronaq-categories .s-slider-block__title {
  display: flex !important;
  justify-content: center !important;
  margin-block-start: 22px !important;
}
.ronaq-categories .s-slider-block__title .s-slider-block__title-left {
  width: auto !important;
  justify-content: center !important;
}

/* =====================================================================
   6) Header actions — the last three pixels of the bar
   ---------------------------------------------------------------------
   Measured at 1440 (local → live): the bar, the container, the menu, the logo
   and the 152×40 action cluster with 16px gaps already match exactly. What is
   left is inside the cluster:

     cart   local: the link is the 21×21 icon itself, badge 16×16 at +2.5/+11
            live : the link is a 40×40 hit box, badge at +12/+28
     user   local: a circular `user-circle` glyph, 21×21
            live : a bare `sicon-user` font glyph

   The badge is placed against the icon, not the hit box, so it sits on the bag
   the way the local theme draws it. The user glyph is replaced by the script
   because it is an SVG, not a style.
   ===================================================================== */
/* Same specificity as the v3 rule that set 40px — a later rule of equal weight
   wins, a lighter one would not. */
#mainnav salla-cart-summary .s-cart-summary-wrapper {
  position: relative !important;
  width: 21px !important;
  height: 21px !important;
}

#mainnav .s-cart-summary-wrapper svg {
  width: 21px !important;
  height: 21px !important;
}

#mainnav .s-cart-summary-count {
  position: absolute !important;
  /* physical left, not inset-inline-start: the local measurement is
     `badge.x - icon.x = +2.5`, and in RTL the logical start is the right edge. */
  left: 2.5px !important;
  right: auto !important;
  top: 11px !important;
  /* Rawnaq centres the badge with a -8px translate; the local offset is
     measured from the icon's left edge, so the translate is dropped. */
  transform: none !important;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  font-size: 10px !important;
  line-height: 16px !important;
}

#mainnav .ah-user-icon {
  display: block !important;
  width: 21px !important;
  height: 21px !important;
  color: currentColor !important;
}

#mainnav .ah-user-icon svg {
  width: 21px !important;
  height: 21px !important;
  fill: currentColor !important;
}

/* =====================================================================
   7) Slider rails — dots under the hero, progress under the product rail
   ---------------------------------------------------------------------
   The local hero prints arrows + a dot rail (8px dots, the active one a 26px
   pill, 6px gap) and the product rail prints a 2px progress line at the end of
   the track. Rawnaq prints neither; the dot styles already exist in v3, the
   progress line is new. Both are created by the script.
   ===================================================================== */
.s-block--slider-with-bg .ah-rail-progress {
  position: relative !important;
  width: 100% !important;
  height: 2px !important;
  margin-block-start: 18px !important;
  background: rgba(72, 14, 12, 0.14) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}

.s-block--slider-with-bg .ah-rail-progress-thumb {
  position: absolute !important;
  top: 0 !important;
  height: 100% !important;
  background: var(--ah-bg) !important;
  border-radius: 999px !important;
  transition: inset-inline-start 0.25s ease, width 0.25s ease !important;
}

/* ---------------------------------------------------------------------
   Category rail, second pass at a 1897px viewport
   ---------------------------------------------------------------------
   Measured there: the local label is 20.8px, the tile 208px, the section 610px
   tall with the arrows ~22px under the labels; the layer was printing an 18px
   label and a 714px section.

   The label ramp is the local one: 18px at 1440, 20.8px from ~1890 up.
   ===================================================================== */
/* Same specificity as the v3 rule that pinned 18px. */
.ronaq-categories .swiper-slide h4 {
  font-size: clamp(18px, 1.1vw, 20.8px) !important;
}

.ronaq-categories .s-slider-block__title-nav .s-slider-nav-arrow {
  width: 44px !important;
  height: 44px !important;
}

.ronaq-categories .ronaq-categories-slide a > div:first-child {
  overflow: hidden !important;
}

/* Dots between the arrows, exactly like the local rail. */
.ronaq-categories .ah-rail-dots {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}

.ronaq-categories .ah-rail-dot {
  width: 8px !important;
  height: 8px !important;
  padding: 0 !important;
  border: 1px solid rgba(246, 241, 232, 0.6) !important;
  border-radius: 999px !important;
  background: transparent !important;
  cursor: pointer !important;
}

.ronaq-categories .ah-rail-dot.is-active {
  width: 26px !important;
  background: rgba(246, 241, 232, 0.95) !important;
  border-color: rgba(246, 241, 232, 0.95) !important;
}

/* The control bar arrives with 22px + 32px of its own margins, which is why the
   section measured 700px against the local 610px. The rail's own spacing is set
   above, so the bar's margins go. */
.ronaq-categories .s-slider-block__title {
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

/* The track carried a 64px bottom margin (a v3 leftover that reserved space for
   a control bar it had deleted). With the bar back, that margin is what pushed
   the arrows 74px away from the labels; local is 22px. */
.ronaq-categories salla-slider,
.ronaq-categories .s-slider-wrapper {
  margin-bottom: 0 !important;
}

.ronaq-categories .s-slider-block__title-nav {
  margin-block-start: 22px !important;
}

/* =====================================================================
   8) Nav bar — items fill the bar, cart 40×40, counter on the icon's corner
   ---------------------------------------------------------------------
   Per the merchant's spec:
     · the three grid cells (brand / menu / actions) take the full bar height
       instead of their own fixed heights, which is what made the cluster read
       as sitting low;
     · the menu items themselves fill the bar too (the theme pins each `li` and
       its anchor to 36px at 1440 / 56px at 1024), so their hover surface is the
       bar and not a floating band in its middle;
     · the cart hit area is 40×40 again (the local hit box), so the counter is
       positioned against that box: bottom 0, left 6px, no top/right.
   ===================================================================== */
#mainnav .container > div > * {
  height: 100% !important;
}

/* Desktop only: below 1024 `ul.main-menu` is the mobile drawer's list, where
   rows must keep their own height. */
@media (min-width: 1024px) {
  #mainnav ul.main-menu {
    align-items: stretch !important;
  }
  /* No height on the `ul`: v3 pins it to 88px, and a percentage here resolves
     against `custom-main-menu`'s auto height (36px) and collapses the bar. */
  #mainnav ul.main-menu > li.root-level,
  #mainnav ul.main-menu > li.root-level > a {
    height: 100% !important;
  }
}

/* The host element owns the 40×40 hit box; the wrapper is what the badge is
   positioned against, so both are pinned. The glyph itself stays 21px (v3). */
#mainnav salla-cart-summary {
  width: 40px !important;
  height: 40px !important;
}

#mainnav salla-cart-summary .s-cart-summary-wrapper {
  width: 40px !important;
  height: 40px !important;
  position: relative !important;
}

#mainnav .s-cart-summary-count {
  top: unset !important;
  left: 6px !important;
  bottom: 0 !important;
  right: unset !important;
  transform: none !important;
}

/* =====================================================================
   9) Hero shade — the theme's colour layer, on every slide
   ---------------------------------------------------------------------
   Rawnaq draws a per-slide colour plate:

     <div class="absolute inset-0 z-10 bg-[var(--color-primary)] opacity-20"
          style="background-color:#480e0c !important"></div>

   That is the element the merchant wants carrying the reference's three
   gradients — not a `::after` (the pseudo-element is gone). Two things CSS
   alone cannot do, so `reskin-v4.delta.js` prepares the node first:
     · the inline `background-color … !important` has to be removed (an inline
       important declaration outranks every stylesheet rule);
     · the plate is cloned into slides that arrive without one (the second
       slide, and Swiper's loop duplicates).
   The script adds `.ah-hero-overlay`; these rules give it the reference
   background at full opacity, above the photo (z 15) and below the copy (the
   slide's text sits at z 20).
   ===================================================================== */
body.index .ronaq-slider .swiper-slide .ah-hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(rgba(20, 10, 8, 0.55) 0%, rgba(20, 10, 8, 0) 22%),
    linear-gradient(
      to left,
      rgba(20, 10, 8, 0.82) 0%,
      rgba(20, 10, 8, 0.55) 42%,
      rgba(20, 10, 8, 0.18) 72%,
      rgba(20, 10, 8, 0.08) 100%
    ),
    linear-gradient(to top, rgba(20, 10, 8, 0.55) 0%, rgba(20, 10, 8, 0) 45%) !important;
  background-color: transparent !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 15 !important;
}

/* =====================================================================
   10) One search icon, not two
   ---------------------------------------------------------------------
   Rawnaq ships a search button inside the actions cluster (`.search-icon-desktop`)
   *and* a second `.search-icon-mobile` next to the burger, and hides the first
   one on touch widths itself. v3 forces the desktop button to `display: grid`
   at every width (it is the one the reference header uses), so on phones both
   rendered — two magnifiers in one bar. The duplicate goes; the button that
   stays is the left-hand one, exactly where the local header puts it.
   ===================================================================== */
#mainnav .search-icon-mobile {
  display: none !important;
}

/* =====================================================================
   11) Tablet and phone — the tile sizes the reference actually uses
   ---------------------------------------------------------------------
   The theme leaves `min-width: 200px` on every category slide, so the 2-up rule
   v3 wrote for ≤767 (`calc((100% - 12px) / 2)`) never applied: the rail stayed
   200px wide and the section measured 450 against the reference's 391. The
   product image has the mirror-image problem: it is pinned to 220px (≤767) and
   236px (≤1023) while its slide is 143px / 225px, so it overflows the card and
   the overflow lands in the section height.

   Measured on the local theme: tile 169² and label 16px at 390, tile 242² and
   card 241² at 820.
   ===================================================================== */
@media (max-width: 1023px) {
  .ronaq-categories .swiper-slide,
  .s-block--slider-with-bg .swiper-slide {
    min-width: 0 !important;
  }
  /* The image never dictates the card: it fills the slide it lives in. */
  .s-block--slider-with-bg .s-product-card-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }
}

@media (max-width: 1023px) {
  /* Same 14px of block padding on tablet: the tile measured 313 tall against
     the reference's 242, which is the section's +20 at 820. */
  .ronaq-categories .swiper-slide .aspect-square {
    padding-block: 0 !important;
  }
}

@media (max-width: 767px) {
  /* v3 pins the section with `body.index .ronaq-categories` (higher
     specificity), so the override has to match that selector, not `.ronaq-categories`. */
  body.index .ronaq-categories {
    margin-block-start: 32px !important;
  }
  .ronaq-categories .swiper-slide h4 {
    font-size: 16px !important;
  }
  /* The tile carries 14px of block padding that the reference does not have;
     it is what made the section 419 against 391 at 390. */
  .ronaq-categories .swiper-slide .aspect-square {
    padding-block: 0 !important;
  }
  /* The 512px floor belongs to the desktop carousel (card 273 + trailing
     space). A phone card is 341 tall, so the floor only added 171px of empty
     colour under the rail — the section measured 712 against the reference's
     552. */
  .s-block--slider-with-bg salla-products-slider,
  .s-block--slider-with-bg .s-products-slider-slider,
  .s-block--slider-with-bg .swiper {
    min-height: 0 !important;
  }
}

/* =====================================================================
   12) Footer on tablet — the reference's columns, not one long stack
   ---------------------------------------------------------------------
   Rawnaq's footer grid only opens up at `lg` (1024), so between 768 and 1023
   every block stacked into one column and the footer measured 917 against the
   reference's 605. Three columns bring it to 531 — the same reading order the
   reference has (links · brand · contact) and the payment bar underneath.
   Phones stay single-column on purpose: the reference hides the footer there
   entirely, and this store keeps it.
   ===================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  footer.ronaq-store-footer .container.grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

/* =====================================================================
   13) The two rails' controls — the reference's colour and alignment
   ---------------------------------------------------------------------
   Categories: the control row sat 68px right of centre because the title
   element carries a 1280px max-width inside a 1440px section, and the row's
   own box is content-sized with a trailing 24px margin — so centring the boxes
   never centred the arrows. The row is pinned to the page axis instead (720 at
   1440, verified), and the arrow hairline goes from the theme's grey `#414042`
   to the cream 45% the reference draws.
   ===================================================================== */
.ronaq-categories > .s-slider-block__title {
  position: relative !important;
  max-width: none !important;
  width: 100% !important;
  min-height: 66px !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

.ronaq-categories .s-slider-block__title-nav {
  position: absolute !important;
  top: 22px !important;
  left: 50% !important;
  right: auto !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
}

.ronaq-categories .s-slider-block__title-nav button.s-slider-nav-arrow {
  border: 1px solid rgba(246, 241, 232, 0.45) !important;
  background: rgba(20, 10, 8, 0.18) !important;
  color: #f6f1e8 !important;
}

/* =====================================================================
   14) Products rail progress — the same column as the cards
   ---------------------------------------------------------------------
   v3 stretched the bar to the viewport (`width:100%` on a full-bleed child), so
   it read as a divider and not as a control. The reference draws it inside the
   content column: 1165 at 1440, 991 at 1077, 755 at 820, 351 at 390 — always
   the cards' own width. `min()` reproduces that at every width without pinning
   a single viewport.
   ===================================================================== */
.s-block--slider-with-bg .ah-rail-progress {
  width: min(calc(100% - 86px), 1165px) !important;
  margin-inline: auto !important;
  background: rgba(72, 14, 12, 0.12) !important;
}

@media (max-width: 1023px) {
  .s-block--slider-with-bg .ah-rail-progress {
    width: min(calc(100% - 66px), 1165px) !important;
  }
}

@media (max-width: 767px) {
  .s-block--slider-with-bg .ah-rail-progress {
    width: min(calc(100% - 40px), 1165px) !important;
  }
}

/* =====================================================================
   15) Desktop nav list — the bar's height, not a fixed 88px
   ---------------------------------------------------------------------
   v3 pinned `ul.main-menu` to 88px. On scroll the bar shrinks to 69px but the
   list kept 88, so the labels hung 19px below the bar ("نازلة لتحت"). The list
   and its wrappers now inherit the bar's height, so 89 → 69 carries through
   and the labels stay inside the bar at every scroll position.
   ===================================================================== */
@media (min-width: 1024px) {
  #mainnav custom-main-menu,
  #mainnav custom-main-menu > nav,
  #mainnav ul.main-menu {
    height: 100% !important;
  }
}

/* =====================================================================
   16) Hero controls — the reference's single 44px row
   ---------------------------------------------------------------------
   With two slides Swiper unlocks the arrows and the bullets, and Rawnaq parks
   the bullets under the arrow pair (measured 40×8 at y 856, i.e. 18px below the
   row). The JS moves the bullets into the nav; here they become static so the
   row reads [←] dots [→] exactly like `.home-hero__nav` at 58,820, 152×44.
   ===================================================================== */
body.index .ronaq-slider .swiper-pagination {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  margin: 0 !important;
  transform: none !important;
}

body.index .ronaq-slider .s-slider-block__title-nav {
  gap: 12px !important;
}

/* The theme's chevrons are inline SVGs whose `path` has no fill, so they paint
   black instead of the button's cream. The bullets also carry a decorative
   `::after` ring that the reference does not draw. */
body.index .ronaq-slider .s-slider-nav-arrow svg,
body.index .ronaq-slider .s-slider-nav-arrow svg path {
  fill: currentColor !important;
}

body.index .ronaq-slider .swiper-pagination-bullet::before,
body.index .ronaq-slider .swiper-pagination-bullet::after {
  content: none !important;
}

/* =====================================================================
   17) Products rail — controls row, favourite button, price alignment
   ---------------------------------------------------------------------
   · The arrow pair the script adds shares one 44px row with the progress bar:
     the reference measures 96px of buttons + 16px + a flexible bar inside the
     same content column.
   · The card's wishlist button ships with `border-width: 0` and `opacity .75`,
     so it read as a ghost circle next to the reference's outlined one.
   · Price and the two text rows are pinned to the logical start, so Arabic
     (rtl) and English (ltr) both begin at the same edge.
   ===================================================================== */
.s-block--slider-with-bg .ah-best-controls {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  width: min(calc(100% - 86px), 1165px) !important;
  margin-inline: auto !important;
}

.s-block--slider-with-bg .ah-best-controls.is-locked .ah-best-nav {
  display: none !important;
}

.s-block--slider-with-bg .ah-best-nav {
  display: flex !important;
  gap: 8px !important;
  flex: none !important;
}

.s-block--slider-with-bg .ah-best-arrow {
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(72, 14, 12, 0.2) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(72, 14, 12, 0.72) !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.s-block--slider-with-bg .ah-best-arrow:hover,
.s-block--slider-with-bg .ah-best-arrow:focus-visible {
  border-color: rgba(72, 14, 12, 0.55) !important;
  color: rgb(72, 14, 12) !important;
}

.s-block--slider-with-bg .ah-best-arrow svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
}

/* Inside the row the bar flexes; the standalone geometry is not needed. */
.s-block--slider-with-bg .ah-best-controls .ah-rail-progress {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

@media (max-width: 1023px) {
  .s-block--slider-with-bg .ah-best-controls {
    width: min(calc(100% - 66px), 1165px) !important;
  }
}

@media (max-width: 767px) {
  .s-block--slider-with-bg .ah-best-controls {
    width: min(calc(100% - 40px), 1165px) !important;
  }
}

/* Wishlist — the reference's outlined circle, at full opacity. The inner
   <button> lives inside the `salla-button` web component, so the ring is drawn
   on the host (36×36, light DOM) instead of the shadow node. */
.s-block--slider-with-bg .s-product-card-wishlist-btn {
  opacity: 1 !important;
  border: 1px solid rgba(72, 14, 12, 0.28) !important;
  border-radius: 999px !important;
  color: rgb(72, 14, 12) !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

/* Price and copy start at the same logical edge in ar and en. */
.s-block--slider-with-bg .s-product-card-price,
.s-block--slider-with-bg .s-product-card-content-title,
.s-block--slider-with-bg .s-product-card-content-subtitle {
  text-align: start !important;
  margin-inline-start: 0 !important;
}

.s-block--slider-with-bg .s-product-card-content-sub,
.s-block--slider-with-bg .s-product-card-content-main {
  justify-content: flex-start !important;
  text-align: start !important;
}

/* =====================================================================
   18) Category arrows, footer columns, footer bottom bar
   ---------------------------------------------------------------------
   · The category chevrons are inline SVGs with no `fill`, so they painted
     black on the maroon canvas (the hero had the same bug). `currentColor`
     gives them the cream the reference draws.
   · The footer's first column is the brand block v3 injected; it duplicates
     the description/contacts the theme already renders in columns 3 and 4, so
     the black footer carried every element twice. It goes, and the remaining
     three columns share the row.
   · The bottom bar (copyright · language · payments) sat 6px lower in the
     middle because of the copyright's own margin; it is one centred line now,
     and the merchant's height pair applies.
   ===================================================================== */
/* v3 pins these chevrons to `#414042` with `…title-nav button svg`, one
   specificity step above a plain `.s-slider-nav-arrow svg`; match its weight. */
.ronaq-categories .s-slider-block__title-nav button.s-slider-nav-arrow svg,
.ronaq-categories .s-slider-block__title-nav button.s-slider-nav-arrow svg path {
  fill: currentColor !important;
}

footer.ronaq-store-footer .ah-footer-brand {
  display: none !important;
}

@media (min-width: 1024px) {
  footer.ronaq-store-footer .store-footer__inner > .container {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

footer.ronaq-store-footer > div:last-child {
  min-height: unset !important;
  padding-block: 15px !important;
  align-items: center !important;
}

footer.ronaq-store-footer > div:last-child > * {
  align-self: center !important;
}

footer.ronaq-store-footer .copyright-text p {
  margin: 0 !important;
}

/* =====================================================================
   19) Wishlist on every card, footer order/alignment, language pill
   ---------------------------------------------------------------------
   · Salla hides the wishlist on cards its product list marks as not-visible
     (`salla-products-list … .s-product-card-entry …`), which is why the heart
     vanished from the last cards after a few slides. Scoped to this block, the
     button stays put.
   · Footer: the first visible column becomes the second (brand first, links
     second, contacts third) and every column reads from the logical start
     instead of v3's centre.
   · Header: v3 hid Rawnaq's language/currency pill (`.hidden.lg:flex`, first
     child of the actions cluster). The live store shows it from 1024 up; same
     here, and the footer keeps its own button.
   ===================================================================== */
.s-block--slider-with-bg .s-product-card-wishlist-btn {
  display: flex !important;
  visibility: visible !important;
  width: 36px !important;
  height: 36px !important;
}

.s-block--slider-with-bg .s-product-card-wishlist-btn > button {
  display: grid !important;
  width: 36px !important;
  height: 36px !important;
  place-items: center !important;
}

footer.ronaq-store-footer .store-footer__inner > .container > div:nth-child(2) {
  order: 2 !important;
}

footer.ronaq-store-footer .store-footer__inner > .container > div:nth-child(3) {
  order: 1 !important;
}

footer.ronaq-store-footer .store-footer__inner > .container > div:nth-child(4) {
  order: 3 !important;
}

footer.ronaq-store-footer .store-footer__inner .container > *,
footer.ronaq-store-footer .store-footer__inner h3,
footer.ronaq-store-footer .store-footer__inner p,
footer.ronaq-store-footer .store-footer__inner a {
  text-align: start !important;
}

footer.ronaq-store-footer .s-menu-footer-item,
footer.ronaq-store-footer .s-contacts-item,
footer.ronaq-store-footer .s-social-list {
  justify-content: flex-start !important;
  text-align: start !important;
}

footer.ronaq-store-footer .store-footer__inner .block {
  text-align: start !important;
}

@media (min-width: 1024px) {
  body.index #mainnav .container > div.nav-container > div:last-child > div:first-child {
    display: flex !important;
  }
}

/* The footer widgets (menu, contacts, social, trust) each centre themselves
   inside their own wrapper; start-align the whole tree so every column reads
   from the same edge. */
footer.ronaq-store-footer salla-menu,
footer.ronaq-store-footer salla-menu > div,
footer.ronaq-store-footer .s-menu-footer-list,
footer.ronaq-store-footer .s-menu-footer-item,
footer.ronaq-store-footer salla-contacts,
footer.ronaq-store-footer .s-contacts-list,
footer.ronaq-store-footer .s-contacts-list > div,
footer.ronaq-store-footer salla-trust-badges,
footer.ronaq-store-footer .s-trust-badges-wrapper,
footer.ronaq-store-footer .store-footer__inner .block,
footer.ronaq-store-footer .store-footer__inner a.flex.items-center,
footer.ronaq-store-footer .store-footer__inner .flex.gap-4 {
  text-align: start !important;
  justify-content: flex-start !important;
}

/* =====================================================================
   20) Header — full container width, tighter icon gap
   ---------------------------------------------------------------------
   v3 pads the header's container with `--ah-gutter` (57.6px at 1440) on top of
   the 1280px cap, so the logo stopped 58px short of the content edge and the
   icons started 58px in. The merchant wants the margin (the auto-centred cap)
   kept and the padding gone: content now spans the full 1280 (80 → 1360 at
   1440 on a 1440 screen). The icon cluster's gap drops 16 → 10.

   Only from 1280 up: that is where the 1280px cap starts producing a real auto
   margin. Below it the container is full width, so removing the gutter would
   leave the logo and the icons touching the screen edges — the exact opposite
   of "keep the margin".
   ===================================================================== */
@media (min-width: 1280px) {
  body.index #mainnav .inner > .container {
    padding-inline: 0 !important;
  }
}

body.index #mainnav .container > div.nav-container > div:last-child {
  gap: 10px !important;
}

/* =====================================================================
   21) Wishlist polish + the rail's phantom last snap
   ---------------------------------------------------------------------
   · The heart button inherits `line-height: 15px` (i.e. 1× its font size), so
     the glyph's line box is exactly the icon and the top/bottom of the heart
     gets clipped. `normal` restores the box.
   · The wishlist ring was being repainted solid maroon by a v3 rule, so it had
     no hover. Default is the soft hairline now and the hover matches the
     add-to-cart button (border goes solid).
   · The products rail's last slide carried a 24px trailing margin, which
     Swiper turns into an extra snap (translate −618 instead of −594) — the
     "one click too many" that shifted the cards 24px and showed the same
     slides. Removing the margin on the last slide removes that snap.
   ===================================================================== */
.s-block--slider-with-bg .s-product-card-wishlist-btn button,
.s-block--slider-with-bg .s-product-card-wishlist-btn button i {
  line-height: normal !important;
}

.s-block--slider-with-bg .s-product-card-content-footer .s-product-card-wishlist-btn {
  border-color: rgba(72, 14, 12, 0.24) !important;
}

/* Border only, like the add-to-cart next to it: transparent fill, the hover
   just solidifies the ring. */
.s-block--slider-with-bg .s-product-card-content-footer .s-product-card-wishlist-btn:hover,
.s-block--slider-with-bg .s-product-card-content-footer .s-product-card-wishlist-btn:focus-visible {
  border-color: rgb(72, 14, 12) !important;
  background: transparent !important;
}

.s-block--slider-with-bg .swiper-slide:last-child {
  margin-inline-end: 0 !important;
}

/* The card can mount the wishlist inside the image (a white circle on the
   photo) before the script moves it into the footer. Hidden there so the only
   heart that ever paints is the transparent, border-only one in the footer. */
.s-block--slider-with-bg .s-product-card-image .s-product-card-wishlist-btn {
  display: none !important;
}

/* =====================================================================
   22) Hover motion — a real transition on the category tile, the same idea on
       the product card, and white rail dots
   ---------------------------------------------------------------------
   · The category artwork jumped 1.53 → 1.72 on hover with no transition, so it
     "grew at once". Same scale, now eased over 450ms.
   · The product card had no image motion at all; it gets the same eased scale
     (1.06) inside its rounded frame.
   · The categories rail dots were cream/grey; the merchant wants white.
   ===================================================================== */
.ronaq-categories .ronaq-categories-slide a > div:first-child > div {
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
  will-change: transform;
}

.s-block--slider-with-bg .s-product-card-image {
  overflow: hidden !important;
}

.s-block--slider-with-bg .swiper-slide .s-product-card-image img {
  /* Salla pins `transition: all .2s` on the card entry; this selector is one
     step heavier (0,3,2) so the eased transform actually applies. */
  transition-property: transform !important;
  transition-duration: 0.45s !important;
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1) !important;
  transition-delay: 0s !important;
  will-change: transform;
}

.s-block--slider-with-bg .swiper-slide:hover .s-product-card-image img,
.s-block--slider-with-bg .swiper-slide .s-product-card-image:hover img {
  transform: scale(1.06) !important;
}

.ronaq-categories .ah-rail-dots .ah-rail-dot {
  border-color: rgba(255, 255, 255, 0.6) !important;
}

.ronaq-categories .ah-rail-dots .ah-rail-dot.is-active {
  background: #ffffff !important;
  border-color: #ffffff !important;
}

/* =====================================================================
   23) Sections use the header's full column
   ---------------------------------------------------------------------
   The header lost its `--ah-gutter` padding at 1280+ (content = the full 1280
   cap), while every section still inset itself by 57.6px — so the cards began
   58px inside the logo and the two columns never lined up. The section
   containers take the same treatment, and the two rail control rows stretch to
   the same 1280 so the arrows/bars sit on the cards' edges.
   ===================================================================== */
@media (min-width: 1280px) {
  body.index .ah-section > .container,
  body.index .s-block--testimonials.container,
  body.index .s-block--slider-with-bg > .container,
  body.index .ronaq-categories .container,
  body.index .ronaq-faq .container,
  body.index footer.ronaq-store-footer .store-footer__inner > .container {
    padding-inline: 0 !important;
  }

  /* The bottom bar keeps its full-bleed background but its content is inset to
     the same 1280 column: max() gives 80px at 1440 and 0 at 1280. */
  body.index footer.ronaq-store-footer > div:last-child {
    padding-inline: max(0px, calc((100% - 1280px) / 2)) !important;
  }

  body.index .s-block--slider-with-bg .ah-best-controls,
  body.index .s-block--slider-with-bg .ah-rail-progress {
    width: min(100%, 1280px) !important;
  }
}

/* Faq rows: the inner wrapper and the toggle were narrower than their item
   (787 of 902 at 1440), so the questions and their hairlines stopped short of
   the column. They fill it from 1024 up; the item itself still caps at the
   container, so nothing overflows. */
@media (min-width: 1024px) {
  .ronaq-faq [data-faq] > div,
  .ronaq-faq .faq-toggle {
    width: 100% !important;
  }
}

/* Below 1280 the bar follows the same gutter as the sections. */
footer.ronaq-store-footer > div:last-child {
  padding-inline: var(--ah-gutter) !important;
}

/* =====================================================================
   24) Products blocks: no top margin, heading on the section's column, and
       controls only when there is somewhere to go
   ---------------------------------------------------------------------
   · Each `.s-block--slider-with-bg` carried `margin-block-start: 64px`, which
     stacked on top of the section padding.
   · The block's own heading row sits in a second container that still had the
     57.6px gutter, so «الأكثر مبيعاً» ended 58px before the cards; it takes the
     same full column.
   · The arrows + progress line are meaningless when every card already fits:
     the script marks the row `.is-locked` in that case and this hides it.
   ===================================================================== */
body.index .s-block.s-block--slider-with-bg {
  margin-block-start: 0 !important;
}

@media (min-width: 1280px) {
  body.index .s-block--slider-with-bg .slider-bg .container {
    padding-inline: 0 !important;
  }
}

.s-block--slider-with-bg .ah-best-controls.is-locked {
  display: none !important;
}

/* =====================================================================
   25) Every rail shows a whole number of cards
   ---------------------------------------------------------------------
   The theme's slider viewport reserves a peek gutter inside itself at ≤1023
   (`padding` 0 0 0 48px on `.s-slider-container`, 5px on the start side at
   phone widths), and the card width is a percentage of the wrapper that gutter
   leaves behind. v4's phone rule divided `100vw` instead, so the two numbers
   stopped agreeing: at 390 the wrapper measured 298 while the rule wrote 169px
   cards — 2 × 169 + 12 = 350 > 298, so the rail read 1.69 cards with the second
   one cut by a third. The gutter is also what made the tablet card 225 where
   the reference has 241.

   The viewport now runs the full column and the width rules divide the wrapper
   itself, so the visible count is integer by construction: products 2 / 3 / 4,
   categories 2 / 3 / 4 / 5. The `min-width` / `max-width` clamps are what left
   4.17 category tiles at 1024 (the theme's `min-width: 200px` beat its own
   5-up calc), so a slide is now allowed to take exactly its share.
   ===================================================================== */
.s-block--slider-with-bg salla-slider .swiper,
.ronaq-categories salla-slider .swiper {
  padding-inline: 0 !important;
}

.s-block--slider-with-bg .swiper-slide,
.ronaq-categories .swiper-slide {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* ---- products: 2 · 3 · 4 --------------------------------------------- */
@media (max-width: 767.98px) {
  .s-block--slider-with-bg .swiper-slide {
    width: calc((100% - 12px) / 2) !important;
    margin-inline-end: 12px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .s-block--slider-with-bg .swiper-slide {
    width: calc((100% - 32px) / 3) !important;
    margin-inline-end: 16px !important;
  }
}

@media (min-width: 1024px) {
  .s-block--slider-with-bg .swiper-slide {
    width: calc((100% - 72px) / 4) !important;
    margin-inline-end: 24px !important;
  }
}

/* ---- categories: 2 · 3 · 4 · 5 --------------------------------------- */
@media (max-width: 767.98px) {
  .ronaq-categories .swiper-slide {
    width: calc((100% - 12px) / 2) !important;
    margin-inline-end: 12px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .ronaq-categories .swiper-slide {
    width: calc((100% - 32px) / 3) !important;
    margin-inline-end: 16px !important;
  }
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
  .ronaq-categories .swiper-slide {
    width: calc((100% - 72px) / 4) !important;
    margin-inline-end: 24px !important;
  }
}

@media (min-width: 1280px) {
  .ronaq-categories .swiper-slide {
    width: calc((100% - 96px) / 5) !important;
    margin-inline-end: 24px !important;
  }
}

/* =====================================================================
   26) Product card rows start on the card's text edge
   ---------------------------------------------------------------------
   The card's content is a flex column with `align-items: flex-start` (v3), so
   each row shrinks to its own content: measured 1440 — the sub row 297 wide, the
   main row 268 — and the theme centres the sub row through four long selectors
   (`salla-products-list/-slider` × `.s-products-list-wrapper/.s-products-slider-slider`),
   which is what the merchant saw as "sometimes centred". The rows now take the
   full content width and align to the logical start, and the theme's own
   selectors are mirrored so a heavier `!important` elsewhere cannot win.
   ===================================================================== */
.s-block--slider-with-bg .s-product-card-content-sub,
.s-block--slider-with-bg .s-product-card-content-main {
  width: 100% !important;
  justify-content: flex-start !important;
  align-items: center !important;
  text-align: start !important;
}

salla-products-list .s-products-list-wrapper .s-product-card-entry .s-product-card-content .s-product-card-content-sub,
salla-products-list .s-products-slider-slider .s-product-card-entry .s-product-card-content .s-product-card-content-sub,
salla-products-slider .s-products-list-wrapper .s-product-card-entry .s-product-card-content .s-product-card-content-sub,
salla-products-slider .s-products-slider-slider .s-product-card-entry .s-product-card-content .s-product-card-content-sub,
salla-products-list .s-products-list-wrapper .s-product-card-entry .s-product-card-content .s-product-card-content-main,
salla-products-list .s-products-slider-slider .s-product-card-entry .s-product-card-content .s-product-card-content-main,
salla-products-slider .s-products-list-wrapper .s-product-card-entry .s-product-card-content .s-product-card-content-main,
salla-products-slider .s-products-slider-slider .s-product-card-entry .s-product-card-content .s-product-card-content-main {
  width: 100% !important;
  justify-content: flex-start !important;
  align-items: center !important;
  text-align: start !important;
}

/* =====================================================================
   27) The wordmark keeps its size when the bar compacts
   ---------------------------------------------------------------------
   The bar has a compact state on scroll (89 → 69 desktop, 72 → 60 below
   1024) and v3/v4 shrank the wordmark with it: 42 → 36 on inner pages and
   42 → 34 on the home hero. Below 1024 the same rules did the opposite —
   the resting mark is the 30–42 clamp while the compact state forced 34/36,
   so the mark *grew* after the first scroll (measured at 820/390: 30 → 34
   home, 30 → 36 inner).

   The merchant's rule is one size, scrolling or not: both compact states
   now carry the resting size per breakpoint and only the bar compacts
   around it. `body.index` variants are listed because the home hero's 34px
   rule outranks the plain compact one.
   ===================================================================== */
#mainnav.ah-nav--scrolled .navbar-brand,
#mainnav.ah-nav--scrolled .navbar-brand img,
#mainnav.ah-nav--scrolled .navbar-brand salla-image,
#mainnav.ah-nav--scrolled .navbar-brand salla-image img,
body.index #mainnav.ah-nav--scrolled .navbar-brand,
body.index #mainnav.ah-nav--scrolled .navbar-brand img,
body.index #mainnav.ah-nav--scrolled .navbar-brand salla-image,
body.index #mainnav.ah-nav--scrolled .navbar-brand salla-image img {
  height: 42px !important;
}

@media (max-width: 1023.98px) {
  #mainnav.ah-nav--scrolled .navbar-brand,
  #mainnav.ah-nav--scrolled .navbar-brand img,
  #mainnav.ah-nav--scrolled .navbar-brand salla-image,
  #mainnav.ah-nav--scrolled .navbar-brand salla-image img,
  body.index #mainnav.ah-nav--scrolled .navbar-brand,
  body.index #mainnav.ah-nav--scrolled .navbar-brand img,
  body.index #mainnav.ah-nav--scrolled .navbar-brand salla-image,
  body.index #mainnav.ah-nav--scrolled .navbar-brand salla-image img {
    height: clamp(30px, 3.4vw, 42px) !important;
  }
}

/* =====================================================================
   28) Nav hover underline carries the accent
   ---------------------------------------------------------------------
   Rawnaq draws the hover rule as a 1px `span::after` painted with
   `--color-primary` (#480E0C — the bar's own maroon), so on this canvas the
   line vanished into the bar. Every other hover in the header is the sand
   accent, so the underline now uses `--ah-accent`; keyboard focus gets the
   same line, since the theme only drew it for the pointer.
   ===================================================================== */
#mainnav .mobile-menu .main-menu li.root-level > a:hover > span::after,
#mainnav .mobile-menu .main-menu li.root-level > a:focus-visible > span::after,
#mainnav ul.main-menu > li.root-level > a:hover > span::after,
#mainnav ul.main-menu > li.root-level > a:focus-visible > span::after {
  background-color: var(--ah-accent) !important;
}

#mainnav .mobile-menu .main-menu li.root-level > a:focus-visible > span::after,
#mainnav ul.main-menu > li.root-level > a:focus-visible > span::after {
  width: 100% !important;
}

/* =====================================================================
   29) Inner-page bar — the merchant's own rule, kept verbatim
   ---------------------------------------------------------------------
   `#mainnav` is a flex column (Tailwind `flex flex-col`), so `justify-content`
   is the vertical axis: centring it puts the bar's one child (`.inner`) in the
   middle of the 80px bar instead of pinning it to the top.
   ===================================================================== */
body:not(.index) #mainnav {
  display: flex !important;
  justify-content: center !important;
}

/* =====================================================================
   30) Listing header — title and sort control share one baseline
   ---------------------------------------------------------------------
   The row is `flex justify-between items-center`, so the 20px page title and
   the 14px select were centred against each other and read as two unrelated
   lines. Baseline puts the Arabic title and «ترتيب حسب» on the same line.
   Scoped through the title itself so it only touches listing headers.
   ===================================================================== */
div:has(> #page-main-title) {
  align-items: baseline !important;
}

/* =====================================================================
   31) One product card, everywhere
   ---------------------------------------------------------------------
   The listing/search/brand cards are the same component as the home rails,
   but four things were still the theme's, not the reference's:

   | | rails (reference) | listing (before) |
   | --- | --- | --- |
   | image | 1:1, #fffdf8, 18px | 399×265 (3:2), transparent, 2px |
   | price | 16px slim, #6E3432 | 14px serif, #000 |
   | footer | 100%, 56px, pill + heart | 90px, text link, no heart |
   | heart | 36px circle in the footer | `display:none` |

   The theme wins those with five-class selectors (`salla-products-list …`),
   so every rule here is prefixed with `#app` (the body id) — an id outranks
   any class chain, `!important` included. Only vertical cards are touched;
   horizontal cards keep their own layout. The heart is moved into the footer
   by `reskin-v4.delta.js` (CSS cannot re-parent a node), and hidden while it
   is still inside the image so it never flashes as a white circle on the photo.
   ===================================================================== */
#app custom-salla-product-card.s-product-card-vertical .s-product-card-image {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  /* The grid stretches every card to the tallest in its row; without this the
     image is the flexible child and grows in the cards with less copy (measured
     399×429 next to 399×399), which puts the titles on different lines. */
  flex: 0 0 auto !important;
  background: #fffdf8 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

#app custom-salla-product-card.s-product-card-vertical .s-product-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 18px !important;
}

#app custom-salla-product-card.s-product-card-vertical {
  /* The theme spreads the card's children with `space-between`; in a stretched
     grid row that parks the content 30px lower in the cards with less copy. */
  justify-content: flex-start !important;
}

#app custom-salla-product-card.s-product-card-vertical .s-product-card-content {
  flex: 1 1 auto !important;
  padding: 14.4px 2.4px 0 !important;
  align-items: flex-start !important;
  /* The theme centres the content in the leftover height, so a card without a
     «يبدأ من» line sat 30px lower than its neighbours. Start it under the image
     and let the footer's `margin-top: auto` hold the bottom line. */
  justify-content: flex-start !important;
}

#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-main,
#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-sub {
  width: 100% !important;
  justify-content: flex-start !important;
  text-align: start !important;
}

/* The copy block stretches to the space the row leaves, so the price line and
   the button row sit on one line across the whole grid instead of riding up and
   down with the length of each title. Titles stay on the image, the price and
   the footer anchor to the bottom. */
#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-main {
  flex: 1 1 auto !important;
}

#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-title,
#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-title a {
  font-family: var(--ah-serif) !important;
  font-size: 18.4px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--ah-bg) !important;
  text-align: start !important;
}

#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-subtitle {
  color: rgba(72, 14, 12, 0.72) !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  text-align: start !important;
}

#app custom-salla-product-card.s-product-card-vertical .s-product-card-price,
#app custom-salla-product-card.s-product-card-vertical .s-product-card-price h4,
#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-sub h4 {
  font-family: var(--ah-sans) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #6e3432 !important;
  /* A single line is 28px; `min-height` (not `height`) so a stacked sale price
     or an old-price line can grow instead of being clipped. */
  height: auto !important;
  min-height: 28px !important;
  line-height: 28px !important;
  text-align: start !important;
}

#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-sub .s-product-card-starting-price {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  text-align: start !important;
}

/* «يبدأ من» and the amount share one line, one size and one ink — the caption
   used to sit above the price in grey, which made variant cards 30px taller
   than the rest and pushed their buttons out of the row. */
#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-sub {
  height: auto !important;
  min-height: 28px !important;
  align-items: center !important;
}

#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-sub .s-product-card-starting-price > p {
  display: block !important;
  margin: 0 !important;
  color: #6e3432 !important;
  font-family: var(--ah-sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* Footer: the rails' 56px row, full width, pill + heart. */
#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-footer {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 56px !important;
  margin-block-start: 11.2px !important;
  padding-block-start: 6px !important;
  border-top: 1px solid rgba(72, 14, 12, 0.12) !important;
}

#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-footer > salla-add-product-button,
#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-footer > div {
  flex: 1 1 auto !important;
  width: 100% !important;
}

/* Add to cart: the rails' 44px outline pill, not the theme's 15px text link. */
#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-footer button,
#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-footer button.s-button-element,
#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-footer salla-add-product-button button {
  width: 100% !important;
  min-height: 44px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(72, 14, 12, 0.24) !important;
  border-bottom: 1px solid rgba(72, 14, 12, 0.24) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--ah-bg) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-footer button:hover,
#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-footer button:focus-visible {
  background: var(--ah-bg) !important;
  border-color: var(--ah-bg) !important;
  color: var(--ah-cream) !important;
}

/* Heart: the rails' transparent 36px ring, in the footer. Vertical cards only:
   horizontal cards keep the theme's in-image heart (the script does not move
   that one), so the generic hide would make it disappear. */
#app custom-salla-product-card.s-product-card-vertical .s-product-card-image .s-product-card-wishlist-btn {
  display: none !important;
}

#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-footer .s-product-card-wishlist-btn {
  display: inline-flex !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  border: 1px solid rgba(72, 14, 12, 0.24) !important;
  border-radius: 999px !important;
  background: transparent !important;
  opacity: 1 !important;
}

#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-footer .s-product-card-wishlist-btn button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--ah-bg) !important;
  line-height: normal !important;
}

#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-footer .s-product-card-wishlist-btn:hover,
#app custom-salla-product-card.s-product-card-vertical .s-product-card-content-footer .s-product-card-wishlist-btn:focus-visible {
  border-color: rgb(72, 14, 12) !important;
  background: transparent !important;
}

/* The rails' eased image zoom, now on every vertical card. */
#app custom-salla-product-card.s-product-card-vertical .s-product-card-image img {
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
  will-change: transform;
}

#app custom-salla-product-card.s-product-card-vertical:hover .s-product-card-image img,
#app custom-salla-product-card.s-product-card-vertical .s-product-card-image:hover img {
  transform: scale(1.06) !important;
}

/* =====================================================================
   32) Product page — breadcrumbs, gallery, purchase row, options, rail gap
   ===================================================================== */

/* 32.1 Breadcrumbs: the reference gives the bar more air above than below
   (2.5rem / 1.25rem instead of the theme's 1.25rem / 1.25rem). */
.breadcrumbs {
  padding-block: 2.5rem 1.25rem !important;
}

/* 32.2 Gallery: one radius for the image AND its frame. The theme paints the
   image 18px inside a 6px `rounded-md` slider and square thumbnail slides, with
   a five-class `2px` rule on the main slide and `border-radius: 0` on the
   thumbnails, so the picture and the box it sits in did not agree. `#app`
   outranks those chains. */
#app .ronaq-single-product .ronaq-sidebar salla-slider.details-slider,
#app .ronaq-single-product .ronaq-sidebar salla-slider.details-slider .s-slider-container,
#app .ronaq-single-product .ronaq-sidebar salla-slider.details-slider .swiper-slide,
#app .ronaq-single-product .ronaq-sidebar salla-slider.details-slider .swiper-slide img,
#app .ronaq-single-product .ronaq-sidebar .s-slider-thumbs .s-slider-thumbs-container .swiper-slide,
#app .ronaq-single-product .ronaq-sidebar .s-slider-thumbs .s-slider-thumbs-container .swiper-slide img {
  border-radius: 18px !important;
}

/* Thumbnails keep one ratio at every width; the theme sizes the slide by the
   viewport and lets the image stretch (measured 115×128 on desktop, 67×64 on a
   phone), which squashes the photo. Square, like the local 80×80 strip. The
   image is taken out of flow so its intrinsic ratio cannot override the slide's
   `aspect-ratio`. */
#app .ronaq-single-product .ronaq-sidebar .s-slider-thumbs .s-slider-thumbs-container .swiper-slide {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  overflow: hidden !important;
}

#app .ronaq-single-product .ronaq-sidebar .s-slider-thumbs .s-slider-thumbs-container .swiper-slide img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* The active/next ring the theme draws is a `::after` overlay pinned to the
   slide with `border-radius: 0`; the slide itself carries a 1px accent border.
   The overlay follows the 18px frame now and the border goes (it doubled the
   ring on the active thumbnail). */
#app .ronaq-single-product .ronaq-sidebar .s-slider-thumbs .s-slider-thumbs-container .swiper-slide::after {
  border-radius: 18px !important;
}

#app .ronaq-single-product .ronaq-sidebar .s-slider-thumbs .s-slider-thumbs-container .swiper-slide {
  border: 0 !important;
}

.s-slider-thumbs,
.s-slider-thumbs .s-slider-thumbs-container {
  height: auto !important;
}

/* 32.3 Quantity: the three wrappers take the row, and the number keeps the
   space the two ± buttons leave instead of collapsing. */
.s-quantity-input,
.s-quantity-input-container,
.sticky-product-bar__quantity {
  width: 100% !important;
  max-width: 100% !important;
}

.s-quantity-input-container {
  display: flex !important;
}

.s-quantity-input-input {
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

/* 32.4 Add to cart: the label was maroon on a maroon fill. It takes the cream
   the buy-now button next to it already uses. */
.ronaq-single-product .ronaq-main-content .s-add-product-button-main button,
.ronaq-single-product .ronaq-main-content .s-add-product-button-main .s-button-text {
  color: var(--ah-cream, #f6f1e8) !important;
}

/* 32.5 On hover the fill stays maroon and only the label turns accent — the
   earlier accent fill read as a third colour next to the buy-now button. */
.ronaq-single-product .ronaq-main-content .s-add-product-button-main button:hover,
.ronaq-single-product .ronaq-main-content .s-add-product-button-main button:focus-visible {
  background: var(--ah-bg) !important;
  border-color: var(--ah-bg) !important;
}

.ronaq-single-product .ronaq-main-content .s-add-product-button-main button:hover .s-button-text,
.ronaq-single-product .ronaq-main-content .s-add-product-button-main button:focus-visible .s-button-text {
  color: var(--ah-accent) !important;
}

.ronaq-single-product .ronaq-main-content salla-mini-checkout-widget.s-add-product-button-mini-checkout:hover,
.ronaq-single-product .ronaq-main-content salla-mini-checkout-widget.s-add-product-button-mini-checkout:focus-within {
  background: var(--ah-bg) !important;
  border-color: var(--ah-bg) !important;
}

.ronaq-single-product .ronaq-main-content salla-mini-checkout-widget.s-add-product-button-mini-checkout:hover .s-add-product-button-mini-checkout-content,
.ronaq-single-product .ronaq-main-content salla-mini-checkout-widget.s-add-product-button-mini-checkout:focus-within .s-add-product-button-mini-checkout-content {
  color: var(--ah-accent) !important;
}

/* 32.6 Options («الوزن» / المقاسات): the label stays at the start and the
   values move to the far end, on one line. The theme's three-column grid left
   them floating in the middle. */
.s-product-options-option {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.s-product-options-option-label {
  flex: 0 0 auto !important;
}

.s-product-options-option-content {
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.s-product-options-grid-mode {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin-bottom: 0 !important;
}

/* 32.7 The related rail ("منتجات قد تعجبك") ended flush against the footer:
   the slider's own margin collapsed through its container, which sits directly
   in the page's flex column. Padding on the container reserves the gap. */
body.product-single .app-inner > .container:has(> salla-products-slider) {
  padding-block-end: 3rem !important;
}

body.product-single salla-products-slider.s-products-slider-wrapper {
  display: block !important;
}

/* 32.8 The heart glyph sat in a 15px line box (1× its font size), so its top
   was clipped by the button's line box. `normal` restores the glyph's own
   height — the same fix the rails already carry, now on every card. */
#app .s-product-card-content-footer .s-product-card-wishlist-btn i,
#app .s-product-card-content-footer .s-product-card-wishlist-btn .s-button-text {
  line-height: normal !important;
  overflow: visible !important;
}

/* The gallery's own wishlist button carries the same 1× line box. */
.ronaq-btn--wishlist,
.ronaq-btn--wishlist button,
.ronaq-btn--wishlist i {
  line-height: normal !important;
}

/* =====================================================================
   33) Gallery arrows · card badge corners · navbar language pill
   ===================================================================== */

/* 33.1 Arrows: the theme centres the arrow pair on the whole slider, which
   includes the thumbnail strip below the photo, so the pair sat ~66px under the
   image's middle (measured: image centre 394, arrows centre 459). The strip is
   square and 20% of the slider's width, so half of it (plus its 16px top
   margin) is `10cqw + 3px` of the slider's own width — no per-breakpoint
   guesswork. */
salla-slider.details-slider {
  container-type: inline-size;
}

.details-slider .s-slider-block__title-nav {
  top: calc(50% - 10cqw - 3px) !important;
}

/* 33.2 Language / currency pill: the theme already strips its padding; the 8%
   fill and the surface-filled hover were ours. It becomes a plain nav item with
   the same 1px accent underline and growth as the menu links. */
#mainnav .btn--rounded-gray {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  position: relative;
}

#mainnav .btn--rounded-gray:hover,
#mainnav .btn--rounded-gray:focus-visible {
  background: transparent !important;
  color: var(--ah-accent) !important;
}

#mainnav .btn--rounded-gray::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--ah-accent);
  transition: width 0.4s var(--ah-ease);
}

#mainnav .btn--rounded-gray:hover::after,
#mainnav .btn--rounded-gray:focus-visible::after {
  width: 100%;
}

/* =====================================================================
   34) Every product-card badge takes the gallery badge's look
   ---------------------------------------------------------------------
   The gallery badge («محصول نادر» over the big photo) is maroon with white ink,
   14px/700, 20px line box, 8/28 padding, and 20px on the inner side with the
   edge side square. Cards in «منتجات قد تعجبك», the listing and search pages all
   print the same promotion title, so they all take that look — the accent pill
   (and §33's old diagonal corners) read as a bulging blob at card size. The home
   rails keep hiding the badge (the local reference prints none).
   ===================================================================== */
html[dir='rtl'] #app custom-salla-product-card .s-product-card-promotion-title {
  border-radius: 20px 0 0 20px !important;
}

html[dir='ltr'] #app custom-salla-product-card .s-product-card-promotion-title {
  border-radius: 0 20px 20px 0 !important;
}

#app custom-salla-product-card .s-product-card-promotion-title {
  background: var(--ah-bg) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 20px !important;
  padding: 8px 28px !important;
}

/* On a phone the card is ~180px wide and the theme caps the badge at
   `calc(100% - 60px)` = 120px; with the gallery's 28px padding that wraps the
   text to three lines. The width budget grows and the padding trims so the
   badge stays one line with the same font, height and shape. */
@media (max-width: 767px) {
  #app custom-salla-product-card .s-product-card-promotion-title {
    max-width: calc(100% - 16px) !important;
    padding: 8px 14px !important;
  }
}