/* BeautyflowIQ editorial scene and navigation layout.
   All colors inherit the existing Beauty business theme. No IKEA assets. */
html[data-business="beauty"] {
  --bf-rose: var(--primary);
  --bf-ink: var(--foreground);
  --bf-muted: #8b6c73;
  --bf-cream: #fff8f4;
  --bf-blush: #f4d6d6;
}
html[data-business="beauty"] .site-header { background: rgba(253, 246, 242, .97); }
html[data-business="beauty"] .header-inner { column-gap: 24px; }
html[data-business="beauty"] .search input[type="search"] { border-radius: 999px; }
html[data-business="beauty"] .card { border-radius: 18px; overflow: hidden; }
html[data-business="beauty"] .card .media { background: linear-gradient(160deg, #fff9f6, #f7e5e2); }
html[data-business="beauty"] .card:hover { box-shadow: 0 20px 45px -27px rgba(101, 41, 55, .50); }

/* Multi-scene hero: source is admin-managed Banner media. */
.bf-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(450px, 51vw, 650px);
  background: linear-gradient(130deg, #fffaf7 3%, #f9e7e2 54%, #edd0d2 100%);
  color: var(--bf-ink); direction: rtl;
}
.bf-hero-scenes { position: absolute; inset: 0; }
.bf-hero-scene {
  position: absolute; inset: 0; display: grid; align-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 1s cubic-bezier(.65, 0, .25, 1), opacity 1s ease, visibility 0s linear 1s;
  will-change: transform;
}
.bf-hero-scene.is-current { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; transition: transform 1s cubic-bezier(.65, 0, .25, 1), opacity .5s ease, visibility 0s; }
/* The slide that is leaving stays visible while it slides away, then disappears. */
.bf-hero-scene.is-leaving { opacity: 1; visibility: visible; z-index: 2; transition: transform 1s cubic-bezier(.65, 0, .25, 1), opacity 1s ease .35s, visibility 0s linear 1s; }
.bf-hero-media, .bf-hero-media::after { position: absolute; inset: 0; }
.bf-hero-media picture, .bf-hero-media picture img { display: block; width: 100%; height: 100%; }
.bf-hero-media picture img { object-fit: cover; object-position: center; }
.bf-hero-media::after {
  content: ""; z-index: 1; background: linear-gradient(270deg, rgba(253,246,242,.97) 1%, rgba(253,246,242,.88) 32%, rgba(253,246,242,.38) 69%, rgba(253,246,242,.08) 100%);
}
.bf-hero-media .bf-hero-product {
  position: absolute; z-index: 2; inset-inline-end: clamp(7%, 10vw, 14%);
  bottom: 7%; width: min(28vw, 350px); height: 74%; object-fit: contain;
  filter: drop-shadow(0 25px 20px rgba(70, 27, 40, .17));
}
.bf-hero-content { position: relative; z-index: 3; width: 100%; padding-block: 76px 105px; }
.bf-hero-copy { max-width: 530px; }
.bf-hero-eyebrow { display: inline-block; color: #94525d; font-size: 12px; font-weight: 800; letter-spacing: .17em; margin-bottom: 20px; direction: ltr; text-align: start; }
.bf-hero-copy h1, .bf-hero-copy h2 { font-size: clamp(40px, 5.2vw, 78px); line-height: 1.11; font-weight: 800; letter-spacing: -.035em; max-width: 680px; margin-bottom: 22px; }
.bf-hero-accent { color: var(--bf-rose); }
.bf-hero-copy p { max-width: 470px; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.8; color: #695057; margin-bottom: 30px; }
.bf-hero-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; background: var(--bf-rose); color: #fff; border: 1px solid transparent; border-radius: 999px; padding: 14px 27px; min-height: 48px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.bf-hero-button:hover { background: var(--primary-dark); transform: translateY(-2px); }
.bf-hero-button:focus-visible { outline: 3px solid var(--bf-rose); outline-offset: 4px; }
.bf-hero-controls { position: absolute; z-index: 4; bottom: 25px; inset-inline: 0; display: flex; align-items: center; gap: 22px; }
.bf-hero-index { display: inline-flex; gap: 5px; direction: ltr; color: #85646a; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bf-hero-pager { display: inline-flex; gap: 9px; align-items: center; }
.bf-hero-pager button { border: 0; border-radius: 15px; background: #c9a1a9; height: 7px; width: 23px; padding: 0; transition: width .25s, background .25s; }
.bf-hero-pager button[aria-current="true"] { width: 38px; background: var(--bf-rose); }
.bf-hero-arrows { display: flex; gap: 7px; margin-inline-start: auto; }
.bf-hero-arrows button { width: 42px; height: 42px; display: grid; place-items: center; color: var(--bf-ink); background: rgba(255,255,255,.64); border: 1px solid #dfc9c8; border-radius: 50%; transition: background .2s; }
.bf-hero-arrows button:hover { background: #fff; }

/* Fallback hero uses abstract typography; no invented stock or model photo. */
.bf-hero-empty-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .84fr); gap: 45px; align-items: center; padding-block: 70px; min-height: inherit; }
.bf-hero-empty .bf-hero-copy { z-index: 1; }
.bf-hero-art { width: min(100%, 430px); aspect-ratio: 1; position: relative; margin-inline: auto; display: grid; place-items: center; }
.bf-art-orbit { width: 84%; aspect-ratio: 1; border: 1px solid rgba(166,75,85,.33); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fff9f6 0 40%, #f9e5e1 42% 55%, #f4d7d7 75%, #ecc5ca); box-shadow: 0 24px 80px rgba(154,87,92,.12); }
.bf-art-orbit::before, .bf-art-orbit::after { content: ""; position: absolute; border: 1px solid rgba(166,75,85,.18); border-radius: 50%; }
.bf-art-orbit::before { width: 100%; height: 100%; transform: rotate(-18deg) scaleY(.74); }
.bf-art-orbit::after { width: 72%; height: 72%; }
.bf-art-center { position: relative; z-index: 1; font: 800 clamp(38px, 5vw, 66px)/1.06 var(--font-sans); color: #814851; text-align: center; letter-spacing: .075em; direction: ltr; }
.bf-art-center span { color: #ba7e86; letter-spacing: .32em; font-weight: 400; }
.bf-art-sparkle { position: absolute; color: #bb7d86; font-size: 38px; }
.bf-art-sparkle-one { top: 4%; inset-inline-end: 2%; }
.bf-art-sparkle-two { bottom: 8%; inset-inline-start: 0; }

/* Categories remain visible before products are imported. */
.bf-home-content { padding-top: clamp(20px, 3vw, 35px); padding-bottom: 25px; }
html[data-business="beauty"] .cat-strip { gap: 17px; }
html[data-business="beauty"] .cat-tile { border-radius: 19px; overflow: hidden; }
html[data-business="beauty"] .cat-tile .media { background: linear-gradient(140deg, #fff4f0, #efd8d8); }
.bf-category-letter { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 100%; aspect-ratio: 1; font-weight: 800; font-size: clamp(60px, 8vw, 120px); color: #b97280; }
html[data-business="beauty"] .cat-tile:hover .bf-category-letter { color: var(--primary); }

/* Gallery coexists with existing variant selection and cart behavior. */
.bf-gallery-thumbs { display: flex; gap: 10px; width: 100%; padding: 12px 2px 4px; overflow-x: auto; }
.bf-gallery-thumb { width: 74px; height: 74px; padding: 4px; flex: 0 0 auto; border: 2px solid transparent; border-radius: 13px; background: #fff; }
.bf-gallery-thumb[aria-pressed="true"] { border-color: var(--primary); }
.bf-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
/* Slides that are finished pictures (text inside the artwork): no overlay, whole picture visible. */
.bf-hero-scene--art .bf-hero-media::after { display: none; }
.bf-hero-art-link { position: absolute; inset: 0; z-index: 2; }
.bf-hero-art-link:focus-visible { outline: 3px solid var(--bf-rose); outline-offset: -6px; }
.bf-hero.bf-hero--art { min-height: 0; height: min(56.28vw, 88vh); }
.bf-hero--art .bf-hero-media picture img { object-position: center; }
/* A picture much wider than the frame is shown whole (never cropped); the hero background fills the rest. */
.bf-hero--art .bf-hero-media picture img.is-wide { object-fit: contain; }
@media (max-width: 760px) {
  .bf-hero.bf-hero--art { min-height: 0; height: 56.28vw; }
  .bf-hero--art .bf-hero-media picture img { object-position: center; }
}
@media (max-width: 760px) {
  .bf-hero { min-height: 470px; }
  .bf-hero-content { padding-block: 58px 91px; }
  .bf-hero-media::after { background: linear-gradient(180deg, rgba(253,246,242,.94), rgba(253,246,242,.72) 55%, rgba(253,246,242,.10)); }
  .bf-hero-media picture img { object-position: 62% center; }
  .bf-hero-media .bf-hero-product { width: 30%; height: 38%; bottom: 13%; inset-inline-end: 6%; opacity: .8; }
  .bf-hero-copy { max-width: 400px; }
  .bf-hero-copy h1, .bf-hero-copy h2 { font-size: clamp(40px, 9vw, 60px); }
  .bf-hero-copy p { font-size: 15px; }
  .bf-hero-empty-inner { display: block; padding-block: 54px 65px; }
  .bf-hero-art { opacity: .17; position: absolute; width: 340px; bottom: -130px; inset-inline-end: -110px; pointer-events: none; }
  .bf-hero-controls { bottom: 18px; }
  .bf-hero-arrows button { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-hero-scene, .bf-hero-pager button, .bf-hero-button { transition: none !important; }
  .bf-hero-scene { transform: none !important; }
  .bf-hero-button:hover { transform: none; }
}

/* Product page: the photo zooms inside its own square; thumbnails sit below it and never zoom. */
@media (min-width: 900px) {
  .pdp-media { position: sticky; top: 140px; align-self: start; }
  .pdp-media .pdp-gallery { position: relative; top: auto; }
}
.pdp-details { max-width: 860px; margin: 8px auto 40px; }
.pdp-details h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.pdp-detail { border: 1px solid var(--border); border-radius: 16px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.pdp-detail summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pdp-detail summary::-webkit-details-marker { display: none; }
.pdp-detail summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--primary); }
.pdp-detail[open] summary::after { content: "−"; }
.pdp-detail summary:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.pdp-detail-body { padding: 0 20px 18px; color: #5a4547; line-height: 1.95; }
.pdp-detail-body p + p, .pdp-detail-body p + ul, .pdp-detail-body ul + p { margin-top: 10px; }
.pdp-detail-body ul { padding-inline-start: 22px; list-style: disc; }

/* A product that cannot be bought shows "نفد المخزون" in place of its price. */
.price-unavailable { color: var(--muted-foreground); font-weight: 800; font-size: 15px; }
.pdp-price .price-unavailable { font-size: 22px; }


/* BeautyflowIQ: cinematic promotions empty state. Scoped to this component only. */
.bf-promo-empty {
  --bf-promo-ink: #51363d;
  --bf-promo-muted: #735b60;
  --bf-promo-rose: #a85f6c;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: clamp(420px, 58vh, 620px);
  margin-block: clamp(16px, 3vw, 34px);
  padding: clamp(36px, 6.5vw, 76px) clamp(18px, 5vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(168, 95, 108, .22);
  border-radius: clamp(20px, 3vw, 32px);
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255,255,255,.96) 0, rgba(255,255,255,0) 48%),
    radial-gradient(ellipse at 8% 90%, rgba(226,173,180,.30) 0, rgba(226,173,180,0) 42%),
    radial-gradient(ellipse at 95% 78%, rgba(239,207,201,.52) 0, rgba(239,207,201,0) 43%),
    linear-gradient(135deg, #fffaf7 0%, #f9eeeb 48%, #f3dfe1 100%);
  box-shadow: 0 22px 65px rgba(111, 58, 68, .08);
  color: var(--bf-promo-muted);
  text-align: center;
}

.bf-promo-atmosphere {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bf-promo-glow {
  position: absolute;
  top: -22%;
  left: 50%;
  width: clamp(210px, 40vw, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.94) 0%, rgba(231,184,190,.25) 42%, rgba(231,184,190,0) 72%);
  filter: blur(5px);
  transform: translateX(-50%);
}

.bf-promo-ribbon {
  position: absolute;
  display: block;
  width: min(82%, 720px);
  height: clamp(42px, 8vw, 92px);
  border: 1px solid rgba(174, 105, 119, .24);
  border-inline-start-color: rgba(255,255,255,.82);
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.34) 42%, rgba(205,143,153,.10) 65%, transparent 100%);
  box-shadow: 0 8px 24px rgba(159, 93, 107, .035);
  will-change: transform;
}

.bf-promo-ribbon--one {
  top: 16%;
  left: -18%;
  transform: rotate(-17deg);
  animation: bfPromoRibbonOne 15s ease-in-out infinite alternate;
}

.bf-promo-ribbon--two {
  right: -22%;
  bottom: 13%;
  opacity: .68;
  transform: rotate(15deg);
  animation: bfPromoRibbonTwo 18s ease-in-out infinite alternate;
}

.bf-promo-petal {
  position: absolute;
  display: block;
  width: 20px;
  height: 34px;
  border: 1px solid rgba(168, 95, 108, .22);
  border-radius: 100% 0 100% 0;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(215,157,166,.32));
  box-shadow: 0 7px 18px rgba(126, 67, 80, .08);
  animation: bfPromoPetalFloat 8s ease-in-out infinite;
}

.bf-promo-petal--one {
  top: 18%;
  right: 13%;
  transform: rotate(25deg);
}

.bf-promo-petal--two {
  bottom: 17%;
  left: 12%;
  width: 15px;
  height: 26px;
  animation-delay: -3s;
  transform: rotate(-32deg);
}

.bf-promo-spark {
  position: absolute;
  color: rgba(166, 93, 108, .72);
  line-height: 1;
  animation: bfPromoSparkle 5s ease-in-out infinite;
}

.bf-promo-spark--one {
  top: 23%;
  left: 19%;
  font-size: clamp(19px, 3vw, 28px);
}

.bf-promo-spark--two {
  right: 20%;
  bottom: 25%;
  font-size: clamp(14px, 2vw, 20px);
  animation-delay: -2s;
}

.bf-promo-spark--three {
  top: 42%;
  right: 9%;
  font-size: 15px;
  animation-delay: -3.5s;
}

.bf-promo-content {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  margin-inline: auto;
}

.bf-promo-emblem {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: clamp(82px, 10vw, 108px);
  aspect-ratio: 1;
  margin: 0 auto 21px;
  padding: 12px;
  border: 1px solid rgba(168, 95, 108, .30);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff 0%, #fff8f5 48%, #f0d7da 100%);
  box-shadow: 0 0 0 8px rgba(255,255,255,.32), 0 15px 40px rgba(132, 69, 82, .14);
  animation: bfPromoEmblemFloat 7s ease-in-out infinite;
}

.bf-promo-emblem img {
  display: block;
  width: 100%;
  max-width: 86px;
  max-height: 58px;
  height: auto;
  object-fit: contain;
}

.bf-promo-kicker {
  margin: 0 0 17px;
  color: #98616c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .20em;
}

.bf-promo-content h2 {
  margin: 0 0 12px;
  color: var(--bf-promo-ink);
  font-size: clamp(29px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.bf-promo-subtitle {
  margin: 0 0 12px;
  color: #985865;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 800;
  line-height: 1.8;
  text-wrap: balance;
}

.bf-promo-message {
  max-width: 570px;
  margin: 0 auto 27px;
  color: var(--bf-promo-muted);
  font-size: clamp(14px, 1.45vw, 17px);
  line-height: 2;
  text-wrap: pretty;
}

.bf-promo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 49px;
  max-width: 100%;
  padding: 13px 26px;
  border: 1px solid #a85f6c;
  border-radius: 999px;
  background: #a85f6c;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(168, 95, 108, .18);
  transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.bf-promo-button:hover {
  background: #8f4e5b;
  border-color: #8f4e5b;
  color: #fff;
  box-shadow: 0 13px 28px rgba(168, 95, 108, .24);
  transform: translateY(-2px);
}

.bf-promo-button:focus-visible {
  outline: 3px solid #a85f6c;
  outline-offset: 4px;
}

@keyframes bfPromoRibbonOne {
  from { transform: translate3d(-1%, -3px, 0) rotate(-17deg); }
  to   { transform: translate3d(5%, 12px, 0) rotate(-12deg); }
}

@keyframes bfPromoRibbonTwo {
  from { transform: translate3d(2%, 5px, 0) rotate(15deg); }
  to   { transform: translate3d(-5%, -12px, 0) rotate(10deg); }
}

@keyframes bfPromoPetalFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}

@keyframes bfPromoSparkle {
  0%, 100% { opacity: .48; }
  50% { opacity: 1; }
}

@keyframes bfPromoEmblemFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 760px) {
  .bf-promo-empty {
    min-height: 0;
    margin-block: 14px;
    padding: 38px 20px 42px;
    border-radius: 22px;
  }

  .bf-promo-glow {
    top: -12%;
    width: 260px;
  }

  .bf-promo-ribbon {
    width: 132%;
    height: 44px;
  }

  .bf-promo-ribbon--one {
    top: 13%;
    left: -42%;
  }

  .bf-promo-ribbon--two {
    right: -45%;
    bottom: 10%;
  }

  .bf-promo-emblem {
    width: 78px;
    margin-bottom: 17px;
    padding: 10px;
  }

  .bf-promo-emblem img {
    max-width: 64px;
    max-height: 44px;
  }

  .bf-promo-kicker {
    margin-bottom: 13px;
    font-size: 9px;
    letter-spacing: .15em;
  }

  .bf-promo-content h2 {
    font-size: clamp(27px, 7.5vw, 36px);
    line-height: 1.4;
  }

  .bf-promo-subtitle {
    font-size: clamp(16px, 4.6vw, 20px);
    line-height: 1.8;
  }

  .bf-promo-message {
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.95;
  }

  .bf-promo-button {
    width: min(100%, 320px);
    min-height: 48px;
    padding: 12px 18px;
    font-size: 14px;
  }

  .bf-promo-petal--one {
    right: 7%;
  }

  .bf-promo-petal--two {
    left: 7%;
  }

  .bf-promo-spark--one {
    left: 8%;
  }

  .bf-promo-spark--two {
    right: 8%;
    bottom: 22%;
  }

  .bf-promo-spark--three {
    right: 5%;
  }
}

@media (max-width: 380px) {
  .bf-promo-empty {
    padding: 32px 15px 35px;
  }

  .bf-promo-content h2 {
    font-size: 27px;
  }

  .bf-promo-message {
    font-size: 13.5px;
  }

  .bf-promo-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bf-promo-ribbon,
  .bf-promo-petal,
  .bf-promo-spark,
  .bf-promo-emblem {
    animation: none !important;
    will-change: auto;
  }

  .bf-promo-button {
    transition: none !important;
  }

  .bf-promo-button:hover {
    transform: none;
  }
}

/* Plain-language "about" block: tells visitors (and Google's app review) what the store is */
.bf-about { margin: 28px 0 8px; padding: 18px 20px; border: 1px solid #E5D6D8; border-radius: 14px; background: #FFF9F7; line-height: 1.9; font-size: 14px; color: #192637; }
.bf-about h2 { font-size: 17px; margin: 0 0 8px; }
.bf-about p { margin: 0 0 8px; }
.bf-about a { color: #A64B55; text-decoration: underline; text-underline-offset: 3px; }
.legal-en { margin: 18px 0; padding: 16px 18px; border: 1px solid #E5D6D8; border-radius: 14px; background: #FFF9F7; line-height: 1.7; }
.legal-en h2 { font-size: 18px; margin: 0 0 8px; }
.legal-en h3 { font-size: 15px; margin: 14px 0 4px; }
