@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Lalezar&display=swap');
/* =====================================================================
   سلفا (Salfa) — Salla Custom CSS · Theme: Selia (سيليا) 1.220.0
   Store: https://salfa.store  (store id 1152531731) — Selia LIVE (theme 632105401)
   Figma: implementation-Projects › Page 1 › "سلفا" (node 2006:370, 1440 desktop)
   Mobile: no design — adapted from desktop (section 13)
   v2.5 — verified against the live store <body> + Selia app.css/app.js 1.220.0
   (Oct 11 2026) and render-tested injected on salfa.store at 1440px.
   Home blocks (component-id): hero 474346733 · square links 1763458203 ·
   custom products 551317917 · hero 1 1256699632 · custom products 1641568996 ·
   hero 2 1990849778 · enhanced features 1564597748 · reviews 791608565 ·
   FAQ 56934123 · map 584437647

   Author: Khaled Omar <KO />
   Portfolio: https://sunnysapartment.com
   LinkedIn: https://linkedin.com/in/khaledmahmoudomar
   GitHub: SunnysApartment

   PALETTE (Figma 2006:371 / 478 / 487 — read directly; VERIFY = lower
   sections, Figma MCP cap hit before their fills could be read):
     --sf-navy   #0d1230  announcement bar, hero base, footer (footer VERIFY)
     --sf-ink    #17134e  search button, primary buttons, hover fills
     --sf-text   #11182c  headings, menu, icons
     --sf-muted  #4f5a70  section subtitles, body copy
     --sf-hint   #7f899c  search placeholder
     --sf-link   #3158d8  "view all", active menu item
     --sf-badge  #6d5ce8  cart count
     --sf-soft   #f6f8fc  icon tiles, search field, categories band
     --sf-line   #dce2ed  borders, menu divider
     --sf-card   #1e1e1e  product card text + outline button
   FONTS: IBM Plex Sans Arabic (UI). Section titles in Figma use
   "VIP Cartoon" (licensed, not on Google Fonts) → Lalezar stands in.
   If the client owns VIP Cartoon webfonts, add @font-face and change
   --sf-display only.

   ⚠ Theme primary is #366a9b → set it to #17134e in theme settings
     (Selia colours buttons/links/badges from it).
   ===================================================================== */
:root {
  --sf-navy:  #0d1230;
  --sf-ink:   #17134e;
  --sf-text:  #11182c;
  --sf-muted: #4f5a70;
  --sf-hint:  #7f899c;
  --sf-link:  #3158d8;
  --sf-badge: #6d5ce8;
  --sf-soft:  #f6f8fc;
  --sf-line:  #dce2ed;
  --sf-card:  #1e1e1e;
  --sf-tint:  rgba(13, 13, 85, .10);           /* card BNPL strip + tag pill */
  --sf-shadow: 0 4px 40px rgba(156, 154, 178, .16);

  --sf-ui: 'IBM Plex Sans Arabic', sans-serif;
  --sf-display: 'Lalezar', 'IBM Plex Sans Arabic', sans-serif;

  --sf-faq-bg:     var(--sf-soft);  /* VERIFY 2006:1310 fill */
  --sf-why-card:   var(--sf-soft);  /* VERIFY 2006:1225 fill */
  --sf-footer-bg:  var(--sf-navy);  /* VERIFY 2006:1397 fill */

  /* media ratios (w / h) from Figma frames */
  --sf-r-hero:   1320 / 500;        /* 2006:1690 · 2006:787 · 2006:1152 */
  --sf-r-map:    1320 / 420;        /* 2006:1360 */

  /* Selia reads these */
  --font-main: var(--sf-ui);
}

/* ---------------------------------------------------------------------
   00. BASE — font, overflow guard, 1320 container, page rhythm
   --------------------------------------------------------------------- */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body, #app .app-inner { overflow-x: clip; } }
salla-slider, .swiper { max-width: 100%; }

body, #app, #app button, #app input, #app textarea, #app select { font-family: var(--sf-ui); }
html:not(.dark) body, html:not(.dark) #app .app-inner { background: #fff !important; }

@media (min-width: 1360px) {
  #app .container { max-width: 1352px !important; padding-inline: 16px !important; }  /* 1320 content */
}
/* home blocks control their own spacing (Figma paddings below) */
body.index #app main > .s-block { margin-top: 0 !important; margin-bottom: 0 !important; }

/* ---------------------------------------------------------------------
   01. ANNOUNCEMENT BAR (2006:372) — 36px navy, centered 12px white
   Drawn by CSS (store-header::before) so it needs no dashboard setup.
   If a Salla advertisement bar is ever switched on, this one hides itself.
   Selia top bar (policies + email) is not in the design → hidden; the
   policies are already in the footer menu.
   --------------------------------------------------------------------- */
#app .store-header::before {
  content: "شحن سريع لجميع مناطق المملكة 🇸🇦";
  display: flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 16px;
  background: var(--sf-navy); color: #fff;
  font: 500 12px/1 var(--sf-ui); text-align: center;
}
#app .app-inner:has(salla-advertisement *) .store-header::before { display: none; }
#app salla-advertisement .s-advertisement,
#app .promotion-banner,
#app .animated-text {
  background: var(--sf-navy) !important;
  color: #fff !important;
  min-height: 36px;
  padding-block: 0 !important;
  display: flex; align-items: center; justify-content: center;
}
#app salla-advertisement .s-advertisement *,
#app .promotion-banner a, #app .animated-text a {
  color: #fff !important;
  font: 500 12px/36px var(--sf-ui) !important;
}
#app .store-header .top-navbar { display: none !important; }

/* ---------------------------------------------------------------------
   02. HEADER — desktop ≥1024 (2006:374)
   Row 1  logo 170×64 (right) · search field (flex) · حسابي + user + cart (left)
   Row 2  menu, centered, divider on top
   Live Selia puts nav#mobile-menu inside .header__main-start (next to the
   logo) → .header__main-start becomes display:contents and the nav wraps to
   its own full-width row (order 3). Normal flow, so Selia's JS measures
   #mainnav height correctly (sticky keeps working).
   Sticky → theme editor "sticky header" toggle (Selia .fixed-header).
   Search = Selia's search button restyled as a field; opens the native modal.
   Menu = store categories (unchanged): 26 makes → 2 centered lines.
   --------------------------------------------------------------------- */
#app .store-header,
#app #mainnav,
#app #mainnav .inner { background: #fff !important; color: var(--sf-text); }
#app #mainnav.fixed-pinned .inner { backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 6px 24px rgba(17, 24, 44, .06); }

/* icon tiles (cart + account) */
#app .header__main-end .header-btn,
#app .header__main-end .s-user-menu-login-btn,
#app .header__main-end .s-user-menu-trigger,
#app .header__main-end .s-cart-summary-wrapper {
  width: 44px; height: 44px; min-width: 44px;
  display: inline-flex !important; align-items: center; justify-content: center;
  background: var(--sf-soft) !important;
  border: 0 !important; border-radius: 8px !important;
  color: var(--sf-text) !important;
  position: relative; padding: 0 !important; margin: 0 !important;
}
#app .header__main-end .header-btn__icon { width: auto; height: auto; margin: 0 !important; font-size: 20px; color: var(--sf-text); }
#app .header__main-end .s-user-menu-login-btn svg,
#app .header__main-end .s-cart-summary-icon svg { width: 20px; height: 20px; fill: var(--sf-text); }
/* Selia renders a fallback icon + its own icon — keep one */
#app salla-user-menu:has(> .header-btn) > slot-fb { display: none !important; }
#app #s-cart-icon:has(> .header-btn__icon) > slot-fb { display: none !important; }
#app .header__cart-summary { margin: 0 !important; }
#app .s-cart-summary-count {
  position: absolute; top: -3px !important; right: -3px !important; left: auto !important;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--sf-badge) !important; color: #fff !important;
  font: 700 9px/18px var(--sf-ui); text-align: center;
}
#app .s-cart-summary-content { display: none !important; }

@media (min-width: 1024px) {
  #app .main-nav-container { min-height: 0; }
  #app #mainnav .inner { padding: 20px 0 0 !important; }
  #app .header__main-row { flex-wrap: wrap; align-items: center !important; column-gap: 24px; row-gap: 0; }
  #app .header__main-start { display: contents; }
  #app .header__main-start .navbar-brand { order: 1; }
  #app .navbar-brand img { height: 64px !important; max-height: 64px; width: auto !important; max-width: 170px; object-fit: contain; }

  #app .header__main-end { order: 2; flex: 1 1 0; min-width: 0; gap: 8px; justify-content: flex-start !important; }

  /* search field */
  #app [data-selia="header-search-button"] {
    order: 0; flex: 1 1 auto; min-width: 0;
    height: 50px; margin-inline-end: 16px;
    display: flex; align-items: center; gap: 12px;
    padding: 0 8px 0 16px;            /* RTL: button sits 8px from the right edge */
    background: var(--sf-soft); border: 1px solid var(--sf-line); border-radius: 10px;
    cursor: text; transition: border-color .2s;
  }
  #app [data-selia="header-search-button"]:hover { border-color: #c5cede; }
  #app [data-selia="header-search-button"] .header-btn__icon {
    width: 34px; height: 34px; margin: 0 !important; flex: none;
    border-radius: 8px; background: var(--sf-ink); color: #fff; font-size: 16px;
  }
  #app [data-selia="header-search-button"]::after {
    content: "ابحث باسم القطعة، رقم القطعة أو موديل السيارة";
    font: 400 14px var(--sf-ui); color: var(--sf-hint);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* "حسابي" label beside the account tile */
  #app .header__main-end salla-user-menu { order: 1; display: flex; align-items: center; gap: 8px; }
  #app .header__main-end salla-user-menu::before { content: "حسابي"; font: 500 12px var(--sf-ui); color: var(--sf-text); white-space: nowrap; }
  #app .header__main-end salla-cart-summary { order: 2; }

  /* menu row (nav#mobile-menu on desktop; .main-menu-row if that option is ever enabled) */
  #app #mainnav nav.mobile-menu,
  #app #mainnav .main-menu-row {
    order: 3; flex: 0 0 100%; width: 100%;
    margin: 14px 0 0 !important; padding: 0 0 6px !important;
    border-top: 1px solid var(--sf-line); background: #fff !important;
  }
  #app #mainnav .main-menu {
    margin: 0 !important; padding: 0 !important;
    display: flex !important; flex-wrap: wrap; justify-content: center; column-gap: 28px; row-gap: 0;
  }
  #app #mainnav .main-menu li.root-level > a {
    padding: 14px 0 !important;
    font: 500 13px/20px var(--sf-ui) !important; color: var(--sf-text);
  }
  #app #mainnav .main-menu li.root-level > a:hover,
  #app #mainnav .main-menu li.root-level:hover > a,
  #app #mainnav .main-menu li.root-level.is-active > a { color: var(--sf-link) !important; }
  #app #mainnav .main-menu .has-children.root-level > a::after { font-size: 13px; opacity: .6; margin-inline-start: 5px; }
  #app #mainnav .main-menu .sub-menu { border: 1px solid var(--sf-line); border-radius: 0 0 10px 10px; box-shadow: 0 12px 32px rgba(17, 24, 44, .08); }
  #app #mainnav .main-menu .sub-menu a { font: 500 13px var(--sf-ui); color: var(--sf-text); }
}

/* ---------------------------------------------------------------------
   03. HERO (2006:1690) + HERO 1/2 (2006:787 · 2006:1152)
   Selia "advanced slider" ×3 (component 474346733 · 1256699632 · 1990849778),
   1 slide each, 1320×500, r16.
   The uploaded images are photos only (no text). Two ways to get the Figma
   text: (a) fill the slide's title / description / button fields → styled
   below (navy gradient appears only when a title exists), or (b) upload the
   composed exports A1–A3 (text baked in) and leave the fields empty.
   --------------------------------------------------------------------- */
#app main section.advanced-slider {
  max-width: 1352px; margin: 0 auto !important; padding: 0 16px;
}
#app main section.advanced-slider .swiper,
#app main section.advanced-slider .advanced-slider__slide {
  border-radius: 16px; overflow: hidden; background: var(--sf-navy);
}
#app main section.advanced-slider .advanced-slider__image { aspect-ratio: var(--sf-r-hero); height: auto !important; }
/* Live heroes are composed images (text baked in) → no overlay. The empty caption
   layer stays transparent and click-through. (A ":empty" test can't be used: Selia
   leaves whitespace in empty titles — it dimmed the baked text in v2.) */
#app main section.advanced-slider .advanced-slider__caption { pointer-events: none; }
#app main section.advanced-slider .advanced-slider__caption a,
#app main section.advanced-slider .advanced-slider__caption button { pointer-events: auto; }
#app main section.advanced-slider .advanced-slider__caption { z-index: 1; inset: 0 !important; height: auto !important; }
/* Slide link (editor "banner link"): Selia renders a.advanced-slider__slide-link INSIDE the caption.
   Keep it a transparent full-banner click area — v2.4 styled it as a caption button,
   which shrank it to a 46px strip at the top (hover glitch, clicks below it did nothing). */
#app main section.advanced-slider a.advanced-slider__slide-link {
  position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important;
  display: block !important; padding: 0 !important; margin: 0 !important;
  background: transparent !important; border: 0 !important; border-radius: 0 !important;
  pointer-events: auto !important; z-index: 2; cursor: pointer;
}
#app main section.advanced-slider a.advanced-slider__slide-link:hover { background: transparent !important; }
#app main section.advanced-slider .advanced-slider__caption__inner {
  justify-content: flex-start !important; text-align: right !important; padding-inline: 48px;
}
#app main section.advanced-slider .advanced-slider__caption__inner__content { max-width: 530px; margin: 0 !important; text-align: right; }
#app main section.advanced-slider .advanced-slider__caption__inner__content__heading {
  font: 400 48px/1.18 var(--sf-display) !important; color: #fff !important; margin: 0 0 20px !important;
}
#app main section.advanced-slider .advanced-slider__caption__inner__content__text {
  font: 500 17px/1.65 var(--sf-ui) !important; color: rgba(255, 255, 255, .78) !important; margin: 0 0 20px !important;
}
#app main section.advanced-slider .advanced-slider__caption__inner a,
#app main section.advanced-slider .advanced-slider__caption__inner .s-button-btn {
  display: inline-flex; align-items: center; height: 46px; padding: 0 22px !important;
  border-radius: 8px !important; background: #fff !important; color: var(--sf-ink) !important; border: 0 !important;
  font: 600 14px var(--sf-ui) !important;
}
#app main section.advanced-slider .advanced-slider__caption__inner a:hover,
#app main section.advanced-slider .advanced-slider__caption__inner .s-button-btn:hover { background: var(--sf-ink) !important; color: #fff !important; }

.white-dots .s-slider-wrapper .swiper-pagination-bullet-active {
    background-color: #ffffff;
}

/* ---------------------------------------------------------------------
   04. SECTION TITLES (shared)
   Slider blocks (categories, products): title + subtitle right, "view all ←" left.
   Content blocks (why, reviews, FAQ, visit): centered.
   --------------------------------------------------------------------- */
#app main .s-slider-block__title {
  display: flex !important; justify-content: space-between; align-items: flex-end !important;
  margin-bottom: 32px !important; border: 0 !important;
}
#app main .s-slider-block__title-right { border: 0 !important; padding-bottom: 0 !important; }   /* Selia 2px divider */
#app main .s-slider-block__title h2,
#app main .home-block-title h2 {
  font: 400 30px/1.25 var(--sf-display) !important;
  color: var(--sf-text) !important; letter-spacing: 0 !important; margin: 0 !important;
}
#app main .s-slider-block__title p,
#app main .home-block-title h2 + p {
  font: 400 15px/1.5 var(--sf-ui) !important; color: var(--sf-muted) !important; margin-top: 8px !important;
}
#app main .s-slider-block__display-all {
  font: 600 14px var(--sf-ui) !important; color: var(--sf-link) !important;
  background: none !important; border: 0 !important; padding: 0 !important;
}
#app main .s-slider-block__display-all::after { content: " ←"; }
#app main .s-slider-block__title-nav button {
  width: 36px; height: 36px; border-radius: 8px !important;
  background: var(--sf-soft) !important; border: 1px solid var(--sf-line) !important; box-shadow: none !important;
  color: var(--sf-text) !important;
}
#app main .home-block-title { margin-bottom: 32px !important; text-align: center; }
#app main .home-block-title .home-block-line { display: none; }

/* ---------------------------------------------------------------------
   05. SHOP BY SECTION (2006:478) — Selia "square links" (1763458203)
   Soft band 72/80 · title right · 4-col grid, gap 24 · white square cards
   r17 · cutout image 214×211 · label 20px bold (= item title field).
   --------------------------------------------------------------------- */
#app main .s-block--square-links { background: var(--sf-soft); padding: 72px 0 80px !important; }
#app main .s-block--square-links .home-block-title { text-align: right !important; }
#app main .s-block--square-links .home-block-title p:empty { display: none; }
#app main .s-block--square-links .square-links__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 24px !important;
}
#app main .s-block--square-links .square-links__item > a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 25px;
  aspect-ratio: 1; padding: 25px; height: 100%;
  background: #fff; border-radius: 17px; box-shadow: 0 3px 33px rgba(156, 154, 178, .16);
  transition: transform .25s, box-shadow .25s;
}
#app main .s-block--square-links .square-links__item > a:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(156, 154, 178, .28); }
#app main .s-block--square-links .square-links__image-wrap { border-radius: 0 !important; overflow: visible !important; width: 100%; display: flex; justify-content: center; }
#app main .s-block--square-links .square-links__image-wrap img {
  width: 214px !important; max-width: 100%; height: auto !important; aspect-ratio: 214 / 211 !important;
  object-fit: contain !important; border-radius: 0 !important; transform: none !important;
}
#app main .s-block--square-links .square-links__item-title {
  margin: 0 !important; font: 700 20px/1.3 var(--sf-ui) !important; color: rgba(30, 30, 30, .9) !important;
}
#app main .s-block--square-links .square-links__item-title:empty,
#app main .s-block--square-links .square-links__item-subtitle { display: none; }

/* ---------------------------------------------------------------------
   06. PRODUCT CARDS + product sliders (2006:487 · 2006:852)
   Live blocks: Selia "custom products" ×2 (551317917 "الأكثر مبيعاً",
   1641568996 "الزيوت"). Global for custom-salla-product-card.
   Works with the CURRENT card setting (hover style 1): the image wrapper
   becomes display:contents so Selia's add-to-cart bar (normally an overlay
   on the image) drops under the price as the full-width outline button.
   Hover style 4 (.product-card__normal-cart) is styled the same, so either
   setting works. Optional: "show subtitle" ON → grey tag pill.
   BNPL logos = Salla CDN payment icons of this store's installment
   methods (Tamara, MISpay, Emkan, Madfu).
   --------------------------------------------------------------------- */
#app main .s-block--custom-products,
#app main .s-block:has(salla-products-slider),
#app main .s-block:has(salla-products-list) { padding-top: 60px !important; padding-bottom: 60px !important; }

#app .product-card {
  background: #fff !important; border: 0 !important;
  border-radius: 20px !important; box-shadow: 0 2px 10px rgba(156, 154, 178, .2) !important;   /* Figma 0 4 40 → tightened: the slider clips wide shadows */
  padding: 16px; gap: 12px; height: 100%;
  flex-direction: column; text-align: right;
}
#app .swiper-slide:has(> custom-salla-product-card) { height: auto; }
/* 4 per view, card 312 + gap 24 (Figma). Slides sized by % + padding (Selia: slidesPerView auto, spaceBetween 0) */
#app salla-products-slider .swiper { padding: 12px 0 28px !important; margin: -12px -12px -28px !important; width: calc(100% + 24px) !important; max-width: none; }
#app main salla-products-slider .swiper-wrapper > .s-products-slider-card.swiper-slide {
  width: 25% !important; max-width: 25% !important; flex: 0 0 25% !important; padding-inline: 12px !important;
}

/* image */
#app .product-card .product-card__image { display: contents; }
#app .product-card .product-card__image > a {
  order: 0; display: block; flex: none;
  height: 236px; border-radius: 4px; overflow: hidden; background: #fff;
}
#app .product-card .product-card__image > a img { width: 100%; height: 100% !important; object-fit: contain !important; }
#app .product-card .product-card__content { order: 1; }
#app .product-card__promotion { border-radius: 4px; background: var(--sf-ink) !important; top: 24px; left: 24px; }
#app .product-card__out-label { order: 0; }

/* hover icons → not in the design */
#app .product-card .product-card__buttons,
#app .product-card .product-card__actions { display: none !important; }

#app .product-card .product-card__content {
  padding: 0 !important; margin: 0 !important;
  display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto;
  text-align: right;
}
/* BNPL strip */
#app .product-card .product-card__content::before {
  content: "اطلب الآن\A وادفع لاحقاً";
  white-space: pre; text-align: right;
  display: block; min-height: 52px; padding: 8px 20px; box-sizing: border-box;
  border-radius: 4px;
  font: 400 12px/18px var(--sf-ui); color: #1a1a1a;
  background:
    url("https://cdn.salla.network/images/payment/tamara_installment_mini.png") left 20px center / 30px auto no-repeat,
    url("https://cdn.salla.network/images/payment/mispay_installment_mini.png") left 56px center / 30px auto no-repeat,
    url("https://cdn.assets.salla.network/static/images/payment/emkan_installment_mini.png") left 92px center / 30px auto no-repeat,
    url("https://cdn.salla.network/images/payment/madfu_installment_mini.png") left 128px center / 30px auto no-repeat,
    var(--sf-tint);
}
#app .product-card .product-card__content-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
#app .product-card .product-card__subtitle {
  order: -1; margin: 0 !important;
  padding: 4px 12px; border-radius: 4px; background: var(--sf-tint);
  font: 400 12px/18px var(--sf-ui) !important; color: #1a1a1a !important;
}
#app .product-card .product-card__title { margin: 0 !important; width: 100%; }
#app .product-card .product-card__title a {
  font: 500 18px/1.5 var(--sf-ui) !important; color: var(--sf-card) !important; text-align: right;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 3em;
}
#app .product-card .product-card__title a:hover { color: var(--sf-link) !important; }
#app .product-card .s-product-card-rating { display: none; }
#app .product-card .product-card__price { justify-content: center !important; color: var(--sf-card); margin-top: auto; }
#app .product-card .product-card__price .total-price { font: 600 18px/1.9 var(--sf-ui) !important; top: 0; }
#app .product-card .product-card__price .starting-or-normal-price .total-price { color: var(--sf-card) !important; }

/* full-width outline add-to-cart
   hover style 1 → .product-card__addToCart (desktop) / .product-card__addToCart.mobile (≤990, Selia toggles them)
   hover style 4 → .product-card__normal-cart */
#app .product-card .product-card__addToCart {
  order: 2; position: static !important;
  opacity: 1 !important; visibility: visible !important; transform: none !important;
}
#app .product-card .product-card__normal-cart { order: 2; display: block !important; margin-top: 0 !important; }
#app .product-card .product-card__addToCart__btn salla-button,
#app .product-card .product-card__normal-cart salla-button {
  display: block; height: auto; line-height: normal; background: transparent !important; overflow: visible;
}
#app .product-card .product-card__addToCart__btn salla-button::before,
#app .product-card .product-card__addToCart__btn salla-button::after { display: none !important; }
#app .product-card .product-card__addToCart .s-button-btn,
#app .product-card .product-card__normal-cart .s-button-btn {
  width: 100%; height: 58px; border-radius: 6px !important;
  background: transparent !important; border: 1.2px solid var(--sf-card) !important; color: var(--sf-card) !important;
  font: 600 14px var(--sf-ui) !important; transition: background .2s, color .2s, border-color .2s;
}
#app .product-card .product-card__addToCart .s-button-text,
#app .product-card .product-card__normal-cart .s-button-text { display: flex; align-items: center; justify-content: center; gap: 12px; color: inherit; }
#app .product-card .product-card__addToCart .s-button-text i,
#app .product-card .product-card__normal-cart .s-button-text i { display: none; }
#app .product-card .product-card__addToCart .s-button-text::after,
#app .product-card .product-card__normal-cart .s-button-text::after { content: "+"; font: 300 28px/1 var(--sf-ui); }
#app .product-card .product-card__addToCart .s-button-btn:hover,
#app .product-card .product-card__normal-cart .s-button-btn:hover {
  background: var(--sf-ink) !important; border-color: var(--sf-ink) !important; color: #fff !important;
}
/* hover style 1 + 4 together would show two buttons → keep the normal one */
#app .product-card:has(.product-card__normal-cart) .product-card__addToCart { display: none !important; }

/* ---------------------------------------------------------------------
   08. WHY SALFA "ليش سلفا" (2006:1217) — Selia "enhanced features"
   p60 · title centered · 4 cards 318×146, gap 16, icon 44 on top, centered.
   Live block 1564597748 (still Selia demo content → replace in the editor).
   A 2nd enhanced-features block placed right after the map gets the §11 variant.
   --------------------------------------------------------------------- */
#app main .s-block--enhanced-features { padding: 60px 16px !important; }
#app main .s-block--enhanced-features .enhanced-features__grid { gap: 16px !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
#app main .s-block--enhanced-features .s-block--enhanced-features__item {
  grid-column: auto !important;
  padding: 22px !important; min-height: 146px; justify-content: flex-start;
  background: var(--sf-why-card); border: 1px solid var(--sf-line) !important; border-radius: 16px;
  transform: none !important; text-align: center;
}
#app main .s-block--enhanced-features .s-block--enhanced-features__item > .absolute { display: none; } /* Selia hover lines */
#app main .s-block--enhanced-features .feature-icon { width: 44px !important; height: 44px !important; margin: 0 0 14px !important; }
#app main .s-block--enhanced-features .feature-icon img { max-height: 44px !important; width: 44px; object-fit: contain; }
#app main .s-block--enhanced-features .s-block--enhanced-features__item h2 {
  font: 600 16px/21px var(--sf-ui) !important; color: var(--sf-text) !important; margin: 0 0 3px !important;
}
#app main .s-block--enhanced-features .s-block--enhanced-features__item p {
  font: 400 13px/17px var(--sf-ui) !important; color: var(--sf-muted) !important; opacity: 1;
}

/* ---------------------------------------------------------------------
   09. REVIEWS "آراء عملائنا" (2006:1249) — Selia "custom reviews"
   3 cards 428×224 · stars top-start · quote · avatar 42 + name bottom-start.
   (Figma also shows a city line — the block has no field for it.)
   --------------------------------------------------------------------- */
#app main .s-block--custom-reviews { padding: 60px 0 !important; }
#app main .s-block--custom-reviews.has-bg::before { display: none !important; }   /* Selia pattern */
#app main .s-block--custom-reviews .swiper { padding: 16px 12px !important; margin: -16px -12px !important; }
#app main .s-block--custom-reviews .swiper-wrapper { padding-block: 4px 24px; }
#app main .s-block--custom-reviews .reviews__card {
  position: relative; padding: 57px 24px 24px !important;
  background: #fff !important; border: 1px solid var(--sf-line); border-radius: 16px !important;
  box-shadow: 0 2px 14px rgba(156, 154, 178, .14) !important;   /* small: swiper clips big shadows */
}
#app main .s-block--custom-reviews .sicon-quote { display: none; }
#app main .s-block--custom-reviews .reviews__text {
  margin: 0 !important; font: 400 14px/22px var(--sf-ui) !important; color: var(--sf-muted) !important;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
#app main .s-block--custom-reviews .reviews__author { margin: 18px 0 0 !important; gap: 12px; }
#app main .s-block--custom-reviews .reviews__avatar { width: 42px !important; height: 42px !important; margin: 0 !important; }
#app main .s-block--custom-reviews .reviews__author-info { margin: 0 !important; }
#app main .s-block--custom-reviews .reviews__author-name { margin: 0 !important; font: 600 14px/20px var(--sf-ui) !important; color: var(--sf-text) !important; }
#app main .s-block--custom-reviews .comment__rating {
  position: absolute; top: 24px; inset-inline-start: 24px; margin: 0 !important;
  display: flex; gap: 3px; font-size: 15px;
}
#app main .s-block--custom-reviews .swiper-pagination-bullet-active { background: var(--sf-ink) !important; }

/* ---------------------------------------------------------------------
   10. FAQ (2006:1310) — Selia "FAQ"
   one column 1320 · rows 68px · "+" in a 32px circle (left) · answer below.
   Selia toggles .single-faq.open (app.js initFAQ).
   WhatsApp CTA under the list → custom JS snippet (see delivery notes).
   --------------------------------------------------------------------- */
#app main .s-block--faq { background: var(--sf-faq-bg) !important; padding: 60px 0 !important; }
#app main .s-block--faq.has-bg::before { display: none !important; }
#app main .s-block--faq .faq__grid { grid-template-columns: 1fr !important; gap: 12px !important; }
#app main .s-block--faq .single-faq {
  background: #fff !important; border: 1px solid var(--sf-line) !important; border-radius: 12px !important;
  padding: 0 20px !important;
}
#app main .s-block--faq .faq-btn { min-height: 68px; }
#app main .s-block--faq .faq__question { font: 500 16px/23px var(--sf-ui) !important; color: var(--sf-text) !important; }
#app main .s-block--faq .faq-btn i {
  flex: none; width: 32px; height: 32px; padding: 0 !important;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sf-soft) !important; color: var(--sf-ink) !important; border-radius: 999px;
}
#app main .s-block--faq .faq-btn i::before { content: "+" !important; font: 400 22px/1 var(--sf-ui) !important; transition: transform .25s; }
#app main .s-block--faq .single-faq.open .faq-btn i::before { transform: rotate(45deg); }
#app main .s-block--faq .faq__answer { padding: 0 0 18px !important; font: 400 15px/23px var(--sf-ui) !important; color: var(--sf-muted) !important; }
/* CTA injected by the JS snippet */
#app .sf-faq-cta { display: flex; justify-content: center; margin-top: 32px; }
#app .sf-faq-cta a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 69px; padding: 0 32px;
  border-radius: 999px; background: #fff; border: 1px solid var(--sf-line);
  font: 600 15px var(--sf-ui); color: var(--sf-text); transition: border-color .2s, color .2s;
}
#app .sf-faq-cta a:hover { border-color: #25d366; color: #128c4b; }

/* ---------------------------------------------------------------------
   11. VISIT US "شرفنا بزيارتك" (2006:1354) — Selia "map" (584437647)
   Title centered · live Google map 1320×420, r16 (Selia's tilted
   700px map + fade → flattened).
   The 4 info cards (address · hours · phone · directions) aren't on the
   page yet: add an "enhanced features" block DIRECTLY AFTER the map
   → styled by the rules below.
   --------------------------------------------------------------------- */
#app main .s-block--map { padding: 60px 0 0 !important; margin: 0 !important; }
#app main .s-block--map .map__subtitle:empty { display: none; }
#app main .s-block--map .map__title { font: 400 30px/1.25 var(--sf-display) !important; color: var(--sf-text) !important; margin: 0 !important; }
#app main .s-block--map .map__media { overflow: visible !important; }
#app main .s-block--map .s-block--map__element {
  display: block; width: 100%; height: 420px !important; margin: 0 !important;
  border-radius: 16px !important; box-shadow: none !important; --tw-ring-shadow: 0 0 transparent; border: 1px solid var(--sf-line) !important;
  transform: none !important;
}
#app main .s-block--map .map__fade { display: none !important; }
#app main .s-block--map:last-of-type { padding-bottom: 60px !important; }

#app main .s-block--map + .s-block--enhanced-features { padding-top: 32px !important; }
#app main .s-block--map + .s-block--enhanced-features .s-block--enhanced-features__item {
  align-items: flex-start !important; text-align: right; min-height: 158px; padding: 24px !important;
  background: #fff;
}
#app main .s-block--map + .s-block--enhanced-features .feature-icon {
  border-radius: 12px; background: var(--sf-soft); margin-bottom: 16px !important;
}
#app main .s-block--map + .s-block--enhanced-features .feature-icon img { width: 22px; max-height: 22px !important; }
#app main .s-block--map + .s-block--enhanced-features h2 { font-size: 16px !important; line-height: 23px !important; margin-bottom: 6px !important; }
#app main .s-block--map + .s-block--enhanced-features p { font-size: 14px !important; line-height: 21px !important; }
/* generic image banners, if any are added later */
#app main .s-block--fixed-banner .banner { border-radius: 16px; overflow: hidden; }

/* Visit-us cards injected by salfa-home.js (2006:1368) — 4 × 318×158, icon tile top-start */
#app main .sf-visit { padding: 32px 0 60px; }
#app main .sf-visit__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#app main .sf-visit__card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 158px;
  padding: 24px; background: #fff; border: 1px solid var(--sf-line); border-radius: 16px;
  text-align: right; color: var(--sf-text); transition: border-color .2s, transform .2s;
}
#app main a.sf-visit__card:hover { border-color: var(--sf-ink); transform: translateY(-2px); }
#app main .sf-visit__icon {
  width: 44px; height: 44px; margin-bottom: 10px; border-radius: 12px; background: var(--sf-soft);
  display: inline-flex; align-items: center; justify-content: center; color: var(--sf-ink); font-size: 22px;
}
#app main .sf-visit__card strong { font: 600 16px/23px var(--sf-ui); color: var(--sf-text); }
#app main .sf-visit__text { font: 400 14px/21px var(--sf-ui); color: var(--sf-muted); direction: rtl; unicode-bidi: plaintext; }
/* "ليش سلفا" title injected by salfa-home.js */
#app main .s-block--enhanced-features .sf-why-title { grid-column: 1 / -1; }

/* ---------------------------------------------------------------------
   12. FOOTER (2006:1397) — navy (VERIFY), brand column right, link columns,
   bottom row: rights (right) · payment logos (left).
   Theme editor alternative: footer custom colours → bg #0d1230.
   Figma has 5 link columns → create them as footer menus in the dashboard;
   CSS lays out whatever columns exist.
   --------------------------------------------------------------------- */
#app .store-footer,
#app .store-footer .store-footer__inner,
#app .store-footer .store-footer__contacts-row,
#app .store-footer .footer-bottom { background: var(--sf-footer-bg) !important; color: rgba(255, 255, 255, .78); border: 0 !important; }
#app .store-footer { margin-top: 0 !important; }
#app .store-footer > svg, #app .store-footer__curve { display: none !important; }
#app .store-footer h3, #app .store-footer__menu-title { font: 600 15px/21px var(--sf-ui) !important; color: #fff !important; margin-bottom: 14px !important; }
#app .store-footer__menu-link { font: 400 13px/18px var(--sf-ui) !important; color: rgba(255, 255, 255, .7) !important; margin-bottom: 14px !important; }
#app .store-footer__menu-link:hover { color: #fff !important; opacity: 1; }
#app .store-footer .footer-description, #app .store-footer__brand p { font: 400 13px/20px var(--sf-ui); color: rgba(255, 255, 255, .7); }
#app .store-footer__contacts-row a, #app .store-footer__contacts-row span { color: rgba(255, 255, 255, .78) !important; }
#app .store-footer .contact-icon { border-color: rgba(255, 255, 255, .2) !important; border-radius: 8px; }
#app .store-footer .s-social-icon svg { fill: #fff; }
/* store logo is navy → white on the navy footer (swap for the 2006:1429 export if you upload a white logo) */
#app .store-footer__logo-link img { filter: brightness(0) invert(1); }
#app .store-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1) !important; }
#app .store-footer .footer-rights p, #app .store-footer .footer-rights a { font: 400 12px var(--sf-ui); color: rgba(255, 255, 255, .6) !important; }
#app .store-footer .s-payments-list-item { background: #fff; border-radius: 3px; }

@media (min-width: 1024px) {
  #app .store-footer__inner { padding: 56px 0 40px !important; }
  #app .store-footer__grid { display: flex !important; gap: 32px; align-items: flex-start; text-align: right; }
  #app .store-footer__brand {
    order: -1; flex: 0 0 260px; margin: 0 !important; text-align: right;
    display: flex; flex-direction: column; align-items: flex-start;
  }
  #app .store-footer__brand .store-footer__logo-link { justify-content: flex-start !important; }
  #app .store-footer__brand .store-footer__logo-link img { height: 63px !important; width: auto; }
  #app .store-footer__brand .footer-description, #app .store-footer__brand p { text-align: right !important; margin: 16px 0 !important; }
  #app .store-footer__brand .footer-badges { justify-content: flex-start !important; }
  #app .store-footer__menu { flex: 0 0 180px; text-align: right !important; order: 0; }
  #app .store-footer__apps { margin-inline-start: auto; }
  #app .store-footer__contacts-row { padding: 0 0 24px; }
  #app .store-footer__bottom-inner { padding-block: 18px !important; }
}

/* ---------------------------------------------------------------------
   13. MOBILE / TABLET (no Figma — adapted)
   --------------------------------------------------------------------- */
@media (max-width: 1023px) {
  #app .navbar-brand img { height: 40px !important; }
  #app .header__main-end { gap: 6px; }
  #app [data-selia="header-search-button"] {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--sf-soft); border-radius: 8px;
  }
  #app [data-selia="header-search-button"] .header-btn__icon { margin: 0 !important; font-size: 18px; color: var(--sf-text); }
  #app .header__main-end .header-btn,
  #app .header__main-end .s-user-menu-login-btn,
  #app .header__main-end .s-user-menu-trigger,
  #app .header__main-end .s-cart-summary-wrapper { width: 40px; height: 40px; min-width: 40px; }

  #app main section.advanced-slider { padding: 0 12px; }
  #app main section.advanced-slider .swiper,
  #app main section.advanced-slider .advanced-slider__slide { border-radius: 12px; }
  #app main section.advanced-slider .advanced-slider__caption__inner { padding-inline: 16px; }
  #app main section.advanced-slider .advanced-slider__caption__inner__content { max-width: 62%; }
  #app main section.advanced-slider .advanced-slider__caption__inner__content__heading { font-size: 20px !important; margin-bottom: 6px !important; }
  #app main section.advanced-slider .advanced-slider__caption__inner__content__text { font-size: 12px !important; line-height: 1.5 !important; margin-bottom: 8px !important; }
  #app main section.advanced-slider .advanced-slider__caption__inner a,
  #app main section.advanced-slider .advanced-slider__caption__inner .s-button-btn { height: 32px; padding: 0 12px !important; font-size: 12px !important; }

  #app main .s-slider-block__title { margin-bottom: 20px !important; }
  #app main .s-slider-block__title h2, #app main .home-block-title h2, #app main .s-block--map .map__title { font-size: 24px !important; }
  #app main .s-slider-block__title p, #app main .home-block-title h2 + p { font-size: 13px !important; }
  #app main .home-block-title { margin-bottom: 20px !important; }

  #app main .s-block--square-links { padding: 40px 0 44px !important; }
  #app main .s-block--square-links .square-links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  #app main .s-block--square-links .square-links__item > a { aspect-ratio: auto; justify-content: flex-start; gap: 10px; padding: 14px 12px 16px; border-radius: 14px; }
  #app main .s-block--square-links .square-links__image-wrap img { width: 100% !important; max-width: 150px; }
  #app main .s-block--square-links .square-links__item-title { font-size: 14px !important; }

  #app main .s-block--custom-products,
  #app main .s-block:has(salla-products-slider),
  #app main .s-block:has(salla-products-list) { padding-top: 40px !important; padding-bottom: 40px !important; }
  #app salla-products-slider .swiper { margin: -12px -6px -28px !important; width: calc(100% + 12px) !important; }
  #app main salla-products-slider .swiper-wrapper > .s-products-slider-card.swiper-slide {
    width: 50% !important; max-width: 50% !important; flex: 0 0 50% !important; padding-inline: 6px !important;
  }
  #app .product-card { padding: 10px; gap: 10px; border-radius: 14px !important; }
  #app .product-card .product-card__image > a { height: 150px; }
  #app .product-card .product-card__content::before {
    content: "اطلب الآن وادفع لاحقاً"; min-height: 0; padding: 34px 8px 6px; text-align: center; font-size: 11px; line-height: 15px;
    background-position: left 8px top 8px, left 42px top 8px, left 76px top 8px, left 110px top 8px, 0 0;
    background-size: 26px auto, 26px auto, 26px auto, 26px auto, auto;
  }
  #app .product-card .product-card__title a { font-size: 14px !important; }
  #app .product-card .product-card__price .total-price { font-size: 15px !important; }
  #app .product-card .product-card__addToCart .s-button-btn,
  #app .product-card .product-card__normal-cart .s-button-btn { height: 44px; font-size: 13px !important; }
  #app .product-card .product-card__addToCart .s-button-text::after,
  #app .product-card .product-card__normal-cart .s-button-text::after { font-size: 22px; }

  #app main .s-block--enhanced-features { padding: 40px 12px !important; }
  #app main .s-block--enhanced-features .enhanced-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  #app main .s-block--enhanced-features .s-block--enhanced-features__item { padding: 16px 12px !important; min-height: 0; }
  #app main .s-block--map { padding-top: 40px !important; }
  #app main .s-block--map .s-block--map__element { height: 280px !important; }
  #app main .s-block--map + .s-block--enhanced-features { padding-top: 16px !important; }
  #app main .s-block--map + .s-block--enhanced-features .s-block--enhanced-features__item { padding: 16px !important; }

  #app main .sf-visit { padding: 16px 0 40px; }
  #app main .sf-visit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #app main .sf-visit__card { min-height: 0; padding: 16px; }
  #app main .sf-visit__card strong { font-size: 14px; }
  #app main .sf-visit__text { font-size: 12px; line-height: 18px; }
  #app main .s-block--custom-reviews, #app main .s-block--faq { padding: 40px 0 !important; }
  #app main .s-block--faq .faq__question { font-size: 14px !important; }
  #app main .s-block--faq .faq__answer { font-size: 13px !important; }
  #app .sf-faq-cta a { min-height: 52px; padding: 0 22px; font-size: 13px; }

  #app .store-footer__inner { padding-top: 40px !important; }
}

/* ---------------------------------------------------------------------
   14. NAVY ACCENTS — buttons, cards, FAQ (client request, Oct 11)
   Brand navy = --sf-ink #17134e (same as the search button / hero CTA).
   Overrides the neutral #1e1e1e of the Figma card button.
   --------------------------------------------------------------------- */
/* buttons */
#app .product-card .product-card__addToCart .s-button-btn,
#app .product-card .product-card__normal-cart .s-button-btn {
  border-color: var(--sf-ink) !important; color: var(--sf-ink) !important;
}
#app .product-card .product-card__addToCart .s-button-btn:hover,
#app .product-card .product-card__normal-cart .s-button-btn:hover {
  background: var(--sf-ink) !important; border-color: var(--sf-ink) !important; color: #fff !important;
}
#app main .s-slider-block__title-nav button {
  background: var(--sf-ink) !important; border-color: var(--sf-ink) !important; color: #fff !important;
}
#app main .s-slider-block__title-nav button svg { fill: #fff !important; }
#app main .s-slider-block__title-nav button:disabled { background: var(--sf-soft) !important; border-color: var(--sf-line) !important; }
#app main .s-slider-block__title-nav button:disabled svg { fill: var(--sf-hint) !important; }
#app .sf-faq-cta a { background: var(--sf-ink); border-color: var(--sf-ink); color: #fff; }
#app .sf-faq-cta a:hover { background: var(--sf-navy); border-color: var(--sf-navy); color: #fff; }

/* cards */
#app .product-card { border: 1px solid rgba(23, 19, 78, .10) !important; transition: border-color .2s, box-shadow .2s; }
#app .product-card:hover { border-color: var(--sf-ink) !important; }
#app .product-card .product-card__price .total-price,
#app .product-card .product-card__price .starting-or-normal-price .total-price { color: var(--sf-ink) !important; }
#app main .s-block--square-links .square-links__item > a { border: 1px solid transparent; }
#app main .s-block--square-links .square-links__item > a:hover { border-color: var(--sf-ink); }
#app main .s-block--square-links .square-links__item-title { color: var(--sf-ink) !important; }
#app main .s-block--enhanced-features .s-block--enhanced-features__item { border-color: rgba(23, 19, 78, .12) !important; }
#app main .s-block--enhanced-features .s-block--enhanced-features__item:hover { border-color: var(--sf-ink) !important; }
#app main .s-block--enhanced-features .s-block--enhanced-features__item h2 { color: var(--sf-ink) !important; }
#app main .s-block--custom-reviews .reviews__card { border-color: rgba(23, 19, 78, .12) !important; border-top: 3px solid var(--sf-ink) !important; }
#app main .s-block--custom-reviews .reviews__author-name { color: var(--sf-ink) !important; }
#app main .sf-visit__card { border-color: rgba(23, 19, 78, .12); }
#app main .sf-visit__icon { background: var(--sf-ink); color: #fff; }
#app main .sf-visit__card strong { color: var(--sf-ink); }

/* FAQ */
#app main .s-block--faq .single-faq { border-color: rgba(23, 19, 78, .12) !important; transition: border-color .2s; }
#app main .s-block--faq .faq-btn i { background: var(--sf-ink) !important; color: #fff !important; }
#app main .s-block--faq .single-faq.open { border-color: var(--sf-ink) !important; }
#app main .s-block--faq .single-faq.open .faq__question { color: var(--sf-ink) !important; font-weight: 600 !important; }

/* ========================== END ========================== */