@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');
/* =====================================================================
   Peekaboo — بيكابو · Salla Custom CSS · v1.1
   Theme: Raed Twig (رائد) · version "29/11/2026" (id 1883207447, draft)
   Store: https://peekaboo-butik.com (Salla store 1157805595)
   Figma: Peekaboo (Copy) › Page 1 › frame "Peekaboo" 1:371 (1440 desktop)
   Mobile: no design — adapted from desktop (section 10)
   Written against: rendered <body> of the draft, Raed 1.382.0 (29 Nov 2026)

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

   PALETTE (all read from Figma — find & replace to reskin)
     --pk-bg      #fef5eb  page background (cream)
     --pk-purple  #3b0764  section titles, search field, footer top line
     --pk-ink     #231f1e  header text + icons
     --pk-brown   #754c28  footer background
     --pk-price   #7c471e  product price
     --pk-title   #1a202c  product name
     --pk-red     #d12148  testimonial names, wishlist "added"
     --pk-badge   #f87171  cart counter
     --pk-wave    #fbcb5d  categories wave
     --pk-tile    #f3f4f6  product image placeholder
     --pk-soft    #f8fafc  testimonials band
   FONT: Figma uses "GE SS Unique" (commercial, not on Google Fonts).
     Tajawal is loaded as the stand-in. With a licensed webfont, add an
     @font-face for 'GE SS Unique' above :root — the stack already asks for it.

   HOME BLOCK ORDER (planned — see section→block map in the delivery)
     fixed-banner (hero) · square-photos ×6 (categories) · products-slider
     · fixed-banner · products-slider · fixed-banner · products-slider
     · fixed-banner · custom-testimonials
   component-ids (draft 1883207447, added 29 Nov 2026):
     664035465 hero · 1903333258 categories · 1547135062 best sellers
     · 488951188 offers banner · 630985375 latest · 2045432989 characters
     banner · 255867706 shoes & socks · 1270346654 dresses banner
     · 2004431256 testimonials (hidden until real reviews are in)
   Selectors use block types (one square-photos / one testimonials block).
   ===================================================================== */
:root {
  --pk-bg:     #fef5eb;
  --pk-purple: #3b0764;
  --pk-ink:    #231f1e;
  --pk-brown:  #754c28;
  --pk-price:  #7c471e;
  --pk-title:  #1a202c;
  --pk-red:    #d12148;
  --pk-badge:  #f87171;
  --pk-wave:   #fbcb5d;
  --pk-tile:   #f3f4f6;
  --pk-soft:   #f8fafc;
  --pk-line:   #eeeeee;
  --pk-cat-title: #50270f;

  --pk-font: 'GE SS Unique', 'Tajawal', var(--font-main), sans-serif;

  /* layout (Figma: 1280 container, 10px gutter, 50px between sections) */
  --pk-wrap: 1280px;
  --pk-gutter: 10px;
  --pk-gap: 50px;

  /* header (desktop) */
  --pk-topbar-h: 60px;
  --pk-row-h: 94px;
  --pk-menu-h: 44px;
  --pk-search-h: 46px;
  --pk-logo-w: 181px;     /* logo 169 + 12 spacing */
  --pk-icons-w: 252px;    /* account + cart group */

  /* product cards: add-to-cart button is not in the Figma card.
     Set to "block" to bring it back. */
  --pk-card-cart: none;
  /* slider arrows are not in the Figma either. "flex" brings them back. */
  --pk-arrows: none;

  /* category tiles: blob + photo export, 287 × 263 */
  --pk-r-cat: 287 / 263;

  /* CSS-hosted assets (see asset list). Paste the hosted URL inside url('…').
     Until then: --pk-cloud = none (CSS bubble fallback), wave + star = inline SVG. */
  --pk-cloud: none;   /* Figma 6:1328, title text 6:1342 hidden, SVG */
  --pk-bubble: #fffaf4;                                        /* → transparent once --pk-cloud is set */
  --pk-bubble-shadow: 0 10px 0 -2px #f3e4d2, 0 2px 14px rgba(80, 39, 15, .08);   /* → none once --pk-cloud is set */
  --pk-wave-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23fbcb5d' d='M0 64C150 22 300 8 470 34S760 112 960 86 1290 10 1440 40V120H0Z'/%3E%3C/svg%3E");   /* replace with Figma 7:1476 */
  --pk-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fcc21b' stroke='%23fcc21b' stroke-width='1.6' stroke-linejoin='round' d='M12 2.8l2.75 5.6 6.15.9-4.45 4.33 1.05 6.12L12 16.86l-5.5 2.89 1.05-6.12L3.1 9.3l6.15-.9z'/%3E%3C/svg%3E");   /* replace with Figma 7:1477 */
  --pk-logo: url('https://cdn.salla.sa/Kijfvk2DnRrbqm9qSaWx4JeSlCVFCMiwu8tmLAKx.png');   /* store logo (footer) */
}

/* ---------------------------------------------------------------------
   00. BASE — overflow fix, background, font, container, section rhythm
   --------------------------------------------------------------------- */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body, #app .app-inner { overflow-x: clip; } }
salla-slider, .s-products-slider-wrapper, .swiper { max-width: 100%; }

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

@media (min-width: 1280px) {
  #app .container { max-width: var(--pk-wrap) !important; padding-inline: var(--pk-gutter) !important; }
}

/* 50px between home sections (Raed: 32 / 64) */
#app main#main-content > .s-block { margin-top: var(--pk-gap) !important; }

/* ---------------------------------------------------------------------
   01. TOP BAR (Figma 1:373) — white, 60px
   right: language · contact   |   left: footer links (من نحن · طرق الدفع · …)
   Links = footer menu → theme setting "important links" must stay on.
   --------------------------------------------------------------------- */
#app .top-navbar {
  background: #fff !important;
  color: var(--pk-ink) !important;
  border-bottom: 0;
}
#app .top-navbar :is(a, button, span, .s-menu-topnav-item, .s-contacts-topnav-link) {
  color: var(--pk-ink) !important;
}
#app .top-navbar .s-menu-topnav-list { display: flex; align-items: center; }
#app .top-navbar .s-menu-topnav-item {
  padding: 1px 9px !important;
  font: 700 14px/14px var(--pk-font) !important;
  opacity: .75;
  border-inline-start: 1px solid rgba(156, 163, 175, .2);
}
#app .top-navbar .s-menu-topnav-item:first-child { border-inline-start: 0; }
#app .top-navbar .s-menu-topnav-item:hover { opacity: 1; color: var(--pk-purple) !important; }
#app .top-navbar .s-contacts-topnav-link { font: 700 14px/20px var(--pk-font) !important; opacity: .75; direction: ltr; unicode-bidi: plaintext; }
#app .top-navbar .s-localization-modal-trigger-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  background: rgba(229, 231, 235, .3) !important;
  border: 0 !important;
  font: 700 14px/20px var(--pk-font) !important;
}

@media (min-width: 1024px) {
  #app .top-navbar {
    height: var(--pk-topbar-h) !important; min-height: 0 !important;
    padding: 0 !important;
  }
  #app .top-navbar > .container { height: 100%; align-items: center !important; gap: 24px; }
  /* flatten the right group so items can be reordered with the contacts block */
  #app .top-navbar > .container > .flex-1 { display: contents !important; }
  #app .top-navbar .header-buttons { order: 1; margin: 0 !important; }
  #app .top-navbar salla-contacts { order: 2; margin: 0 !important; }
  #app .top-navbar > .container > .flex-1 > .hidden { order: 3; }
  #app .top-navbar salla-menu[topnav] { order: 4; margin-inline-start: auto !important; }
}

/* ---------------------------------------------------------------------
   02. MAIN ROW (Figma 1:389) — logo (right) · search · account + cart (left)
   Sticky: the whole header sticks at top −60px → the top bar scrolls away,
   logo row + search + menu stay pinned (search lives in .top-navbar, so
   Raed's own pin of #mainnav .inner would leave it behind).
   Desktop menu: Figma draws a hamburger, but Raed's drawer only runs
   ≤1024px → store categories are shown as a slim strip under the row.
   --------------------------------------------------------------------- */
#app #mainnav { background: #fff !important; }
#app #mainnav .sicon-menu { color: var(--pk-ink) !important; }

/* search field — deep purple, light text (Figma 1:403) */
#app .header-search :is(salla-search, .s-search-placeholder-wrapper, .s-search-input-wrapper) { display: block; width: 100%; }
#app .header-search .s-search-input-wrapper { position: relative; }
#app .header-search .s-search-input { width: 100% !important; }
#app .header-search .s-search-input {
  height: var(--pk-search-h) !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 6px !important;
  background: var(--pk-purple) !important;
  color: #fff !important;
  font: 700 14px var(--pk-font) !important;
  box-shadow: inset 0 0 0 1px #f0f0f0;
}
#app .header-search .s-search-input::placeholder { color: #d9d9d9 !important; opacity: 1; }
#app .header-search .s-search-icon svg { fill: #fff !important; width: 16px; height: 16px; }

@media (min-width: 1024px) {
  #app .store-header { position: relative; z-index: 40; background: #fff; }
  @supports (position: sticky) {
    #app .store-header { position: sticky; top: calc(-1 * var(--pk-topbar-h)); }
  }

  /* search → over the logo row, between the icons and the logo */
  #app .top-navbar .header-search {
    position: absolute !important;
    z-index: 41;
    top: calc(var(--pk-topbar-h) + (var(--pk-row-h) - var(--pk-search-h)) / 2);
    left:  calc(max(0px, (100% - var(--pk-wrap)) / 2) + var(--pk-gutter) + var(--pk-icons-w) + 20px);
    right: calc(max(0px, (100% - var(--pk-wrap)) / 2) + var(--pk-gutter) + var(--pk-logo-w) + 14px);
    width: auto !important; max-width: none !important;
    margin: 0 !important;
    flex: none !important;
  }

  #app #mainnav {
    height: auto !important; min-height: 0 !important;
    box-shadow: none !important;
    border-block: 1px solid var(--pk-line);
  }
  #app #mainnav .inner,
  #app #mainnav.fixed-pinned .inner {            /* neutralise Raed's fixed pin */
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    background: #fff !important;
    padding-bottom: var(--pk-menu-h);
  }
  #app #mainnav .inner > .container > .flex {   /* .relative in Raed → anchors the menu strip */
    position: relative;
    flex-wrap: nowrap !important;
    align-items: center !important;
    min-height: var(--pk-row-h);
  }
  #app #mainnav .navbar-brand { margin: 0 !important; }
  #app #mainnav .navbar-brand img,
  #app #mainnav.fixed-pinned .navbar-brand img {
    max-height: calc(var(--pk-row-h) - 2px) !important;
    max-width: 169px !important;
    width: auto; height: auto;
  }

  /* icons group: fixed width so the search edge never collides */
  #app #mainnav .inner > .container > .flex > .flex:last-child {
    width: var(--pk-icons-w);
    margin: 0 !important;
    gap: 20px;
    justify-content: flex-end !important;
  }

  /* menu strip (store categories) */
  #app #mainnav custom-main-menu {
    position: absolute !important;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: var(--pk-menu-h);
    min-height: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-top: 1px solid var(--pk-line);
    z-index: 30;
  }
  #app .main-menu,
  #app .fixed-pinned .main-menu {
    display: flex !important; flex-wrap: nowrap; justify-content: center; align-items: center;
    column-gap: 36px;
    margin: 0 !important; padding: 0 !important;      /* Raed: mx-6 pt-8 */
  }
  #app .main-menu > li > a,
  #app .fixed-pinned .main-menu > li > a {
    color: var(--pk-ink) !important;
    font: 700 15px/1 var(--pk-font) !important;
    padding: 0 !important;                              /* Raed: pb-8 / 20px pinned */
    line-height: var(--pk-menu-h) !important;
  }
  #app .main-menu > li > a:hover { color: var(--pk-purple) !important; }
  #app .main-menu .sub-menu { border-radius: 0 0 12px 12px; }

  #app .store-header:has(#mainnav.fixed-pinned) { --pk-row-h: 76px; }
}

/* account + cart (Figma 1:393 / 1:395): 30px line icon + 2-line label */
#app #mainnav salla-cart-summary { min-width: 0 !important; margin: 0 !important; }
#app #mainnav .header-btn__icon,
#app #mainnav .s-user-menu-login-btn {
  width: auto !important; height: auto !important;
  margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important;
  background: transparent !important;
  color: var(--pk-ink) !important;
  font-size: 30px !important;
  box-shadow: none !important;
}
#app #mainnav .header-btn__icon::before { color: var(--pk-ink) !important; }
#app #mainnav .s-user-menu-login-btn svg,
#app #mainnav .s-user-menu-trigger svg { width: 30px; height: 30px; fill: var(--pk-ink) !important; }
#app #mainnav .s-cart-summary-wrapper { position: relative; background: transparent !important; border: 0 !important; padding: 0 !important; }
#app #mainnav .s-cart-summary-count {
  position: absolute !important;
  top: -4px !important; right: -6px !important; left: auto !important;
  min-width: 18px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--pk-badge) !important;
  border: 2px solid #f9fafb;
  color: #fff !important;
  font: 700 12px/16px var(--pk-font);
  display: flex; align-items: center; justify-content: center;
}

@media (min-width: 1024px) {
  /* guest account button → icon + "حسابي / تسجيل الدخول" */
  #app #mainnav .s-user-menu-login-btn {
    display: grid !important;
    grid-template-columns: auto auto;
    column-gap: 12px; row-gap: 4px;
    align-items: center;
    text-align: start;
  }
  #app #mainnav .s-user-menu-login-btn svg { grid-column: 1; grid-row: 1 / 3; }
  #app #mainnav .s-user-menu-login-btn::before,
  #app #mainnav .s-user-menu-login-btn::after {
    grid-column: 2;
    font: 700 14px/14px var(--pk-font);
    color: var(--pk-ink);
    white-space: nowrap;
  }
  #app #mainnav .s-user-menu-login-btn::before { content: "حسابي"; grid-row: 1; opacity: .5; }
  #app #mainnav .s-user-menu-login-btn::after  { content: "تسجيل الدخول"; grid-row: 2; }

  /* cart → bag icon + "السلة / total" */
  #app #mainnav .s-cart-summary-wrapper { display: grid !important; grid-template-columns: auto auto; column-gap: 12px; align-items: center; }
  #app #mainnav #s-cart-icon { grid-column: 1; grid-row: 1; display: flex; }
  #app #mainnav .s-cart-summary-content {
    grid-column: 2; grid-row: 1;
    display: flex !important; flex-direction: column; gap: 6px;
    margin: 0 !important;
    text-align: start;
  }
  #app #mainnav .s-cart-summary-content::before {
    content: "السلة";
    font: 700 14px/14px var(--pk-font); color: var(--pk-ink); opacity: .5;
  }
  #app #mainnav .s-cart-summary-total {
    display: block !important;
    font: 700 14px/14px var(--pk-font) !important; color: var(--pk-ink) !important;
  }
}

/* ---------------------------------------------------------------------
   03. BANNERS — every fixed-banner full-bleed, natural image ratio
   Hero 1440×600 (1:416) · offers 1440×600 (9:1687)
   · characters 1440×700 (9:1702) · dresses 1440×600 (1:706)
   Composed images (text + CTA baked in). Link → block field.
   --------------------------------------------------------------------- */
#app .s-block--fixed-banner .container { max-width: none !important; padding: 0 !important; }
#app .s-block--fixed-banner .banner--fixed { display: block; border-radius: 0 !important; }
#app .s-block--fixed-banner img {
  display: block;
  width: 100% !important; max-width: none !important;
  height: auto !important;
  object-fit: cover !important;
}

/* ---------------------------------------------------------------------
   04. SECTION TITLES — centered, purple, 30/36 (Figma 9:1560)
   --------------------------------------------------------------------- */
#app .s-block__title,
#app .s-slider-block__title {
  position: relative;
  display: flex !important;
  justify-content: center !important;
  text-align: center;
  margin-bottom: 50px !important;
}
#app .s-block__title .right-side,
#app .s-slider-block__title-right {
  flex: 1 1 100%; width: 100%;
  text-align: center;
  padding-inline: 0 !important;   /* salla-slider RTL padding-left:2rem */
  margin-inline: 0 !important;
}
#app .s-block__title h2,
#app .s-slider-block__title-right h2 {
  display: block; width: 100%;
  margin: 0; padding-inline: 0 !important;
  text-align: center !important;
  color: var(--pk-purple) !important;
  font: 700 30px/36px var(--pk-font) !important;
  letter-spacing: -.5px;
}
#app .s-slider-block__title-right p { color: #64748b; text-align: center; }
#app .s-slider-block__title-left { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
#app .s-block--best-offers .s-slider-block__title-nav { display: var(--pk-arrows) !important; }
#app .s-slider-block__display-all { color: var(--pk-purple) !important; font: 700 13px var(--pk-font) !important; }

/* ---------------------------------------------------------------------
   05. CATEGORIES — "تسوّقوا حسب القسم" · square-photos, 6 items
   item image = tile export (blob + photo, no label) · item text = name
   · item link = category. Order (RTL, right → left):
   1 شرابات · 2 ولاد · 3 بنات · 4 شنط · 5 العاب اطفال · 6 مواليد
   Title field = "تسوّقوا حسب القسم" (sits on the cloud graphic).
   If a 2nd square-photos block is ever added, switch these selectors
   to that block's [component-id="…"].
   --------------------------------------------------------------------- */
#app [data-testid="store-home-square-photos"] {
  position: relative;
  padding-bottom: calc(126 / 1499 * 100vw + 40px);
  background:
    var(--pk-star) left 3% top 168px / 74px no-repeat,
    var(--pk-star) right 4% top 100px / 74px no-repeat;
}
/* wave, full bleed, under the tiles (Figma 7:1476) */
#app [data-testid="store-home-square-photos"]::after {
  content: "";
  position: absolute; z-index: 0;
  bottom: 0; left: 50%;
  width: 100vw; aspect-ratio: 1499 / 126;
  transform: translateX(-50%);
  background: var(--pk-wave-img) center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

/* title on the cloud (Figma 6:1328: 786 × 216) */
#app [data-testid="store-home-square-photos"] .s-block__title {
  width: min(786px, 100%);
  aspect-ratio: 786 / 216;
  margin: 0 auto 28px !important;
  align-items: flex-end;
  padding-bottom: 4.6%;   /* puts the text on the cloud's belly */
  background: var(--pk-cloud) center / contain no-repeat;
}
#app [data-testid="store-home-square-photos"] .s-block__title h2 {
  color: var(--pk-cat-title) !important;
  font: 700 clamp(26px, 3.5vw, 50px) / 1.2 var(--pk-font) !important;
  letter-spacing: -.75px;
}
/* white bubble behind the title = stand-in for the cloud.
   Once --pk-cloud has its URL, set --pk-bubble: transparent (in :root). */
#app [data-testid="store-home-square-photos"] .s-block__title .right-side {
  display: flex; justify-content: center;
}
#app [data-testid="store-home-square-photos"] .s-block__title h2 {
  display: inline-block; width: auto;
  padding: .35em 1.1em;
  border-radius: 999px;
  background: var(--pk-bubble);
  box-shadow: var(--pk-bubble-shadow);
}

/* grid: 6 equal columns, reset Raed equal-3 / featured spans */
#app [data-testid="store-home-square-photos"] .square-photos-grid {
  position: relative; z-index: 1;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  gap: 16px !important;
  align-items: start;
}
#app [data-testid="store-home-square-photos"] .square-photos-grid > .banner-entry:nth-child(n) {
  grid-row: auto !important; grid-column: auto !important;
  position: relative;
  display: flex !important; flex-direction: column; align-items: center;
  height: auto !important; min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important; border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
#app [data-testid="store-home-square-photos"] .square-photos-grid > .banner-entry:nth-child(1),
#app [data-testid="store-home-square-photos"] .square-photos-grid > .banner-entry:nth-child(2) { margin-top: -10px; }
#app [data-testid="store-home-square-photos"] .banner-entry::after { display: none !important; }   /* Raed hover overlay */
#app [data-testid="store-home-square-photos"] .banner-entry .lazy__bg {
  position: relative !important; inset: auto !important;
  width: 100% !important;
  height: 0 !important;
  padding-bottom: calc(100% / (var(--pk-r-cat)));
  background-size: contain !important;
  background-position: center bottom !important;
  background-color: transparent !important;
}

/* label pill (Figma 7:1442 …): colour + tilt per item */
#app [data-testid="store-home-square-photos"] h3.text-with-border {
  position: relative; z-index: 2;
  display: inline-flex !important;
  height: auto !important;
  margin: -22px 0 0 !important;
  padding: 8px clamp(14px, 2.2vw, 34px) !important;
  border: 1px solid #fafafa !important;
  border-radius: 32px !important;
  background: var(--pk-pill-bg, #fff);
  color: var(--pk-pill-fg, var(--pk-ink)) !important;
  font: 700 clamp(15px, 1.95vw, 28px) / 1.25 var(--pk-font) !important;
  letter-spacing: -.5px;
  white-space: nowrap;
  opacity: 1 !important;                       /* Raed hides h3 until hover on lg */
  transform: rotate(var(--pk-tilt, .8deg)) !important;
  box-shadow: 0 3px 8px -4px rgba(0, 0, 0, .18);
}
#app [data-testid="store-home-square-photos"] h3.text-with-border span { -webkit-line-clamp: 1; display: block; }
#app [data-testid="store-home-square-photos"] .banner-entry:nth-child(1) { --pk-pill-bg: #fed261; --pk-pill-fg: #4b3600; }
#app [data-testid="store-home-square-photos"] .banner-entry:nth-child(2) { --pk-pill-bg: #aed8f0; --pk-pill-fg: #472a17; }
#app [data-testid="store-home-square-photos"] .banner-entry:nth-child(3) { --pk-pill-bg: #fec2cd; --pk-pill-fg: #472a17; }
#app [data-testid="store-home-square-photos"] .banner-entry:nth-child(4) { --pk-pill-bg: #e1c9ee; --pk-pill-fg: #601a5f; --pk-tilt: -7.34deg; }
#app [data-testid="store-home-square-photos"] .banner-entry:nth-child(5) { --pk-pill-bg: #d3e8a7; --pk-pill-fg: #456221; --pk-tilt: -7.34deg; }
#app [data-testid="store-home-square-photos"] .banner-entry:nth-child(6) { --pk-pill-bg: #fbd78f; --pk-pill-fg: #860201; }

/* ---------------------------------------------------------------------
   06. PRODUCT SLIDERS — products-slider ×3, 4 per view, 28px gutter
   (Figma 9:1559: 1152 grid inside 1280 → 54px extra side padding)
   --------------------------------------------------------------------- */
#app .s-block--best-offers { padding-block: 48px 36px; }
@media (min-width: 1280px) {
  #app .s-block--best-offers { padding-inline: 64px !important; }
}
@media (min-width: 1024px) {
  #app .s-products-slider-card { width: 25% !important; max-width: none !important; padding-inline: 14px !important; }
  #app .s-block--best-offers .swiper { margin-inline: -14px; }
}

/* ---------------------------------------------------------------------
   07. PRODUCT CARD (Figma 9:1562) — no frame, rounded photo,
   title + heart on one row, brown price. Applies store-wide.
   --------------------------------------------------------------------- */
#app custom-salla-product-card.s-product-card-vertical {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  justify-content: flex-start !important;   /* fit-height cards spread content → keeps title under the photo */
}
#app custom-salla-product-card .s-product-card-image {
  position: relative;
  flex: 0 0 auto !important;
  height: auto !important;
  aspect-ratio: 4 / 4.3;
  overflow: visible !important;
  background: transparent !important;
  border-radius: 0 !important;
}
#app custom-salla-product-card .s-product-card-image > a {
  display: block; width: 100%; height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pk-tile);
}
#app custom-salla-product-card .s-product-card-image img { width: 100%; height: 100% !important; object-fit: cover !important; }
#app custom-salla-product-card .s-product-card-content { padding: 14px 0 0 !important; text-align: start; }
#app custom-salla-product-card .s-product-card-content-main { padding-inline-end: 34px; margin: 0 !important; }
#app custom-salla-product-card .s-product-card-content-title,
#app custom-salla-product-card .s-product-card-content-title a {
  margin: 0 !important;
  color: var(--pk-title) !important;
  font: 700 17px/23px var(--pk-font) !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#app custom-salla-product-card .s-product-card-content-sub { margin-top: 6px !important; justify-content: flex-start; gap: 8px; }
#app custom-salla-product-card .s-product-card-price,
#app custom-salla-product-card .s-product-card-sale-price h4 {
  color: var(--pk-price) !important;
  font: 700 17px/25px var(--pk-font) !important;
}
#app custom-salla-product-card .s-product-card-sale-price span { color: #94a3b8 !important; font-size: 13px; }
#app custom-salla-product-card .s-product-card-content-footer { display: var(--pk-card-cart) !important; margin-top: 12px; }
#app custom-salla-product-card salla-add-product-button .s-button-btn {
  border-radius: 6px !important;
  background: var(--pk-purple) !important; border-color: var(--pk-purple) !important;
  color: #fff !important;
  font: 700 13px var(--pk-font) !important;
}

/* heart: out of the photo, onto the title row (left side in RTL) */
#app custom-salla-product-card salla-button.s-product-card-wishlist-btn {
  position: absolute !important;
  top: calc(100% + 11px) !important;           /* centred on the 23px title line */
  left: 0 !important; right: auto !important; bottom: auto !important;
  display: block !important; width: 28px; height: 28px;
  margin: 0 !important;
  z-index: 2;
}
#app custom-salla-product-card salla-button.s-product-card-wishlist-btn > button {
  position: static !important;
  display: flex !important; align-items: center; justify-content: center;
  width: 28px !important; height: 28px !important; min-width: 0 !important;
  margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b7280 !important;
}
#app custom-salla-product-card salla-button.s-product-card-wishlist-btn > button i { font-size: 20px; color: inherit !important; }
#app custom-salla-product-card salla-button.s-product-card-wishlist-btn:is(.favorited, .added, .s-product-card-wishlist-added) > button { color: var(--pk-red) !important; }

/* ---------------------------------------------------------------------
   08. TESTIMONIALS — custom-testimonials (Figma 1:778)
   Raed header text is fixed ("آراء العملاء") → swapped by CSS.
   Cards: quote on top, divider, avatar + name (right) · stars (left).
   Raed slider: active card wide, neighbours narrow → forced to 3 equal
   cards on desktop (VERIFY once the block is in).
   --------------------------------------------------------------------- */
#app .s-block--custom-testimonials {
  background: var(--pk-soft);
  box-shadow: 0 0 0 100vmax var(--pk-soft);
  clip-path: inset(0 -100vmax);
  padding-block: 64px;
}
#app .s-block--custom-testimonials .s-reviews-header-wrapper { justify-content: center !important; margin-bottom: 42px; }
#app .s-block--custom-testimonials .s-reviews-header {
  margin: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
#app .s-block--custom-testimonials .s-reviews-header::after {
  content: "بعض الآراء من عملائنا";
  display: block;
  color: var(--pk-purple);
  font: 700 30px/36px var(--pk-font);
  letter-spacing: -.75px;
}
@media (min-width: 1024px) {
  #app .s-block--custom-testimonials .s-reviews-container .swiper-slide { width: 33.3333% !important; padding-inline: 12px !important; }
}
#app .s-block--custom-testimonials .swiper-slide .s-reviews-testimonial {
  height: 100%;
  padding: 25px !important;
  background: #fff !important;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 16px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05) !important;
  opacity: 1 !important;
  justify-content: stretch !important;
}
#app .s-block--custom-testimonials .swiper-slide .s-reviews-testimonial__inner {
  position: relative;
  display: grid !important;
  grid-template-columns: 44px auto 1fr;
  column-gap: 12px;
  align-items: center;
  width: 100%;
  text-align: start !important;
}
#app .s-block--custom-testimonials .s-reviews-testimonial__text,
#app .s-block--custom-testimonials .s-reviews-testimonial__name_wrapper { display: contents !important; }
#app .s-block--custom-testimonials .swiper-slide .s-reviews-testimonial__text p {
  display: block !important;
  grid-column: 1 / -1; grid-row: 1;
  margin: 0 0 17px !important;
  padding: 0 26px 16px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #334155 !important;
  font: 700 15px/24.4px var(--pk-font) !important;
  -webkit-line-clamp: 4;
}
#app .s-block--custom-testimonials .swiper-slide .s-reviews-testimonial__avatar {
  grid-column: 1; grid-row: 2;
  width: 44px; height: 44px;
  margin: 0 !important;
}
#app .s-block--custom-testimonials .s-reviews-testimonial__avatar img {
  width: 44px !important; height: 44px !important;
  border: 1px solid #f1f5f9; border-radius: 50%;
  object-fit: cover;
}
#app .s-block--custom-testimonials .swiper-slide .s-reviews-testimonial__info { grid-column: 2; grid-row: 2; margin: 0 !important; }
#app .s-block--custom-testimonials .s-reviews-testimonial__info h2 { color: var(--pk-red) !important; font: 700 14px/20px var(--pk-font) !important; }
#app .s-block--custom-testimonials .swiper-slide .s-reviews-testimonial__rating {
  display: block !important;
  grid-column: 3; grid-row: 2;
  justify-self: end;
}
#app .s-block--custom-testimonials .s-reviews-testimonial__rating :is(i, .s-rating-stars-selected, svg) { color: #fbbf24 !important; fill: #fbbf24 !important; }
#app .s-block--custom-testimonials .swiper-slide .s-reviews-testimonial__icon {
  position: absolute; top: 0; right: 0;
  margin: 0 !important;
}
#app .s-block--custom-testimonials .swiper-slide .s-reviews-testimonial__icon svg {
  position: static !important; transform: none !important;
  width: 16px !important; height: 16px !important;
  fill: #94a3b8 !important;
}

/* ---------------------------------------------------------------------
   09. FOOTER (Figma 1:863) — brown, 4 equal columns, white text
   brand (logo · description · social · commercial register) | روابط مهمة
   | تواصل معنا | حمِّل التطبيق · bottom: payment badges + copyright
   Commercial register badge stays visible (salla-trust-badges).
   --------------------------------------------------------------------- */
#app .store-footer,
#app .store-footer .store-footer__inner {
  background: var(--pk-brown) !important;
  background-image: none !important;
  color: #fff !important;
}
#app .store-footer { border-top: 1px solid var(--pk-purple); }
#app .store-footer .store-footer__inner { padding: 49px 0 0 !important; }
#app .store-footer__inner > .container {
  gap: 32px !important;
  padding-bottom: 41px !important;
  border-bottom: 1px solid rgba(88, 28, 135, .6);
}
@media (min-width: 1024px) {
  #app .store-footer__inner > .container { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  #app .store-footer__inner > .container > * { grid-column: auto !important; padding-inline: 0 !important; }
}
@media (min-width: 1280px) {
  #app .store-footer__inner > .container,
  #app .store-footer > div:last-of-type { padding-inline: 32px !important; }
}

/* brand column — logo instead of the store name */
#app .store-footer__inner > .container > div:first-child > a h3 {
  width: 169px; height: 92px;
  margin: 0 0 15px !important;
  background: var(--pk-logo) right center / contain no-repeat;
  font-size: 0 !important; color: transparent !important;
}
#app .store-footer__inner > .container > div:first-child .leading-6 {
  margin-bottom: 16px !important;
  color: #fff !important;
  font: 700 12px/19.5px var(--pk-font) !important;
}
#app .store-footer .s-social-list { display: flex; gap: 12px; }
#app .store-footer .s-social-link a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1) !important;
  border: 0 !important;
  color: #fff !important;
}
#app .store-footer .s-social-icon svg { width: 13px; height: 13px; fill: #fff !important; }
#app .store-footer .s-trust-badges-wrapper :is(p, b) { color: #fff !important; }

/* headings + links */
#app .store-footer h3,
#app .store-footer .s-contacts-title {
  margin-bottom: 16px !important;
  color: #fff !important;
  font: 700 14px/20px var(--pk-font) !important;
}
#app .store-footer .s-menu-footer-list,
#app .store-footer .s-contacts-list { display: grid !important; gap: 8px !important; }
#app .store-footer .s-menu-footer-item,
#app .store-footer .s-contacts-item {
  color: #fff !important;
  font: 700 12px/16px var(--pk-font) !important;
  padding: 0 !important; margin: 0 !important;
}
#app .store-footer .s-menu-footer-item:hover,
#app .store-footer .s-contacts-item:hover { color: #fbd78f !important; }
#app .store-footer .s-contacts-icon {
  width: 22px; height: 22px; min-width: 22px;
  margin-inline-end: 8px !important;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1) !important;
  border: 0 !important;
}
#app .store-footer .s-contacts-icon svg { width: 11px; height: 11px; fill: #fff !important; }
#app .store-footer .s-contacts-item .unicode { direction: ltr; unicode-bidi: plaintext; }

/* bottom bar — payment badges, then copyright (centred) */
#app .store-footer > div:last-of-type {
  display: flex !important;
  flex-direction: column-reverse;
  align-items: center;
  gap: 16px;
  padding-block: 24px 32px !important;
  background: var(--pk-brown);
}
#app .store-footer .copyright-text p {
  margin: 0 !important;
  color: rgba(216, 180, 254, .8) !important;
  font: 700 12px/16px var(--pk-font) !important;
}
#app .store-footer .copyright-text a { color: inherit !important; }
#app .store-footer .s-payments-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#app .store-footer .s-payments-list-item {
  height: 24px; width: auto; min-width: 40px;
  padding: 3px 8px;
  display: flex; align-items: center; justify-content: center;
  background: #fff !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
#app .store-footer .s-payments-list-item img { height: 16px !important; width: auto !important; }

/* ---------------------------------------------------------------------
   10. MOBILE (< 1024px) — no mobile design; adapted from desktop
   --------------------------------------------------------------------- */
@media (max-width: 1023px) {
  :root { --pk-gap: 28px; }

  /* header — top bar = language + search (the policy links stay in the footer) */
  #app .top-navbar { padding-block: 8px !important; }
  #app .top-navbar salla-menu[topnav] { display: none !important; }
  #app .top-navbar .header-search { flex: 1 1 auto !important; min-width: 0; }
  #app .top-navbar .container { flex-wrap: wrap; gap: 8px; }
  #app #mainnav { border-bottom: 1px solid var(--pk-line); }
  #app #mainnav .navbar-brand img { max-height: 54px !important; width: auto; }
  #app #mainnav .header-btn__icon,
  #app #mainnav .s-user-menu-login-btn { font-size: 26px !important; }
  #app #mainnav .s-user-menu-login-btn svg { width: 26px; height: 26px; }
  #app #mainnav .s-cart-summary-content { display: none !important; }
  #app #mainnav .inner > .container > .flex > .flex:last-child { gap: 16px; }
  #app .header-search .s-search-input { height: 40px !important; }

  /* titles */
  #app .s-block__title,
  #app .s-slider-block__title { margin-bottom: 20px !important; }
  #app .s-block__title h2,
  #app .s-slider-block__title-right h2,
  #app .s-block--custom-testimonials .s-reviews-header::after { font-size: 22px !important; line-height: 30px !important; }
  #app .s-slider-block__title-left { position: static; transform: none; }

  /* categories: 3 × 2 */
  #app [data-testid="store-home-square-photos"] {
    padding-bottom: calc(126 / 1499 * 100vw + 24px);
    background-size: 40px, 40px;
    background-position: left 2% top 70px, right 2% top 24px;
  }
  #app [data-testid="store-home-square-photos"] .s-block__title { margin-bottom: 12px !important; }
  #app [data-testid="store-home-square-photos"] .square-photos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px 10px !important;
  }
  #app [data-testid="store-home-square-photos"] .square-photos-grid > .banner-entry:nth-child(n) { margin-top: 0; }
  #app [data-testid="store-home-square-photos"] h3.text-with-border { margin-top: -14px !important; padding: 5px 14px !important; }

  /* product sliders: 2 per view */
  #app .s-block--best-offers { padding-block: 24px 12px; }
  #app .s-products-slider-card { width: 50% !important; max-width: none !important; padding-inline: 6px !important; }
  #app custom-salla-product-card .s-product-card-content { padding-top: 10px !important; }
  #app custom-salla-product-card .s-product-card-content-main { padding-inline-end: 28px; }
  #app custom-salla-product-card .s-product-card-content-title,
  #app custom-salla-product-card .s-product-card-content-title a { font-size: 14px !important; line-height: 20px !important; }
  #app custom-salla-product-card .s-product-card-price,
  #app custom-salla-product-card .s-product-card-sale-price h4 { font-size: 14px !important; line-height: 20px !important; }
  #app custom-salla-product-card .s-product-card-image > a { border-radius: 10px; }
  #app custom-salla-product-card salla-button.s-product-card-wishlist-btn { top: calc(100% + 8px) !important; width: 24px; height: 24px; }
  #app custom-salla-product-card salla-button.s-product-card-wishlist-btn > button { width: 24px !important; height: 24px !important; }
  #app custom-salla-product-card salla-button.s-product-card-wishlist-btn > button i { font-size: 17px; }

  /* testimonials */
  #app .s-block--custom-testimonials { padding-block: 36px; }
  #app .s-block--custom-testimonials .s-reviews-header-wrapper { margin-bottom: 20px; }
  #app .s-block--custom-testimonials .s-reviews-container .swiper-slide { width: 86% !important; padding-inline: 6px !important; }
  #app .s-block--custom-testimonials .swiper-slide .s-reviews-testimonial { padding: 18px !important; }
  #app .s-block--custom-testimonials .swiper-slide .s-reviews-testimonial__text p { font-size: 14px !important; line-height: 22px !important; }

  /* footer: stacked, centred */
  #app .store-footer .store-footer__inner { padding-top: 32px !important; text-align: center; }
  #app .store-footer__inner > .container { gap: 28px !important; padding-bottom: 28px !important; }
  #app .store-footer__inner > .container > div:first-child > a { justify-content: center; }
  #app .store-footer__inner > .container > div:first-child > a h3 { margin-inline: auto !important; background-position: center; }
  #app .store-footer__inner > .container > div:first-child .leading-6 { margin-inline: auto; }
  #app .store-footer .s-menu-footer-list,
  #app .store-footer .s-contacts-list { justify-items: center; }
  #app .store-footer :is(.s-social-list, .flex.gap-4, .s-apps-icons-list) { justify-content: center; }
}
@media (max-width: 767px) {
  #app .top-navbar salla-contacts { display: none !important; }
  #app [data-testid="store-home-square-photos"] h3.text-with-border { font-size: 14px !important; }
  #app .s-products-slider-card { width: 50% !important; }
}

/* ---------------------------------------------------------------------
   11. MOTION — hover on real pointers only, off with reduced motion
   --------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  #app custom-salla-product-card .s-product-card-image img { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
  #app custom-salla-product-card:hover .s-product-card-image img { transform: scale(1.05); }
  #app custom-salla-product-card salla-button.s-product-card-wishlist-btn > button { transition: transform .2s, color .2s; }
  #app custom-salla-product-card salla-button.s-product-card-wishlist-btn > button:hover { transform: scale(1.15); color: var(--pk-red) !important; }
  #app [data-testid="store-home-square-photos"] .banner-entry:hover { transform: translateY(-8px) rotate(-1deg); }
  #app .s-block--fixed-banner img { transition: filter .4s; }
  #app .s-block--fixed-banner .banner--fixed:hover img { filter: brightness(1.04) saturate(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  #app *, #app *::before, #app *::after { transition: none !important; animation: none !important; }
}
/* ========================== END ========================== */