/* تغيير ألوان أيقونات Lordicon في سكشن كورة المرايا */
#informative-content-20 .image-wrap.flex-shrink-0.w-20.flex-center lord-icon {
  --lord-icon-primary: #671B2E !important;
  --lord-icon-secondary: #AC7683 !important;
}


/* مطابقة سلايدرات الأقسام مع سكشن "منتجاتنا المميزة" في عدد المنتجات المعروضة */
#app section.s-block--products-slider .s-products-slider-card {
  height: auto !important;
  max-width: 250px !important;
  width: 50% !important;
}

@media (min-width: 640px) {
  #app section.s-block--products-slider .s-products-slider-card {
    max-width: 320px !important;
  }
}

@media (min-width: 768px) {
  #app section.s-block--products-slider .s-products-slider-card {
    width: 33.333333% !important;
  }
}

@media (min-width: 1024px) {
  #app section.s-block--products-slider .s-products-slider-card {
    width: 20% !important;
  }
}


/* عرض بنرين جنب بعض في الجوال لنفس سكشن البانرات فقط */
@media (max-width: 767px) {
  #app section.blln-mobile-two-banners > .container > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #app section.blln-mobile-two-banners > .container > .grid > * {
    min-width: 0;
  }
}


/* Ballonia Visual Card Showcase - Clean Theme-Aligned CSS
   Source-based from live ballonia.sa / Salla theme:
   - Typography inherits theme tokens: --font-main, --title-size, --card-title-font-size
   - Radius follows var(--border-radius)
   - Images stay square
   - Cards use 4:3 portrait shell like the Figma reference
   - Cards are even height
   - Arrows are centered on the square image area
   - Image lazy animation follows Salla lazy pattern
*/

/* =========================
   Root / Theme Tokens
========================= */

.blln-vcs-block {
  --blln-vcs-cards-active: var(--blln-vcs-cards-desktop, 3.5);
  --blln-vcs-gap-size: var(--blln-vcs-card-gap, var(--blln-vcs-gap, 28px));

  /* Ballonia/Salla theme tokens */
  --blln-vcs-font: var(--font-main, inherit);
  --blln-vcs-primary: var(--color-primary, #671b2e);
  --blln-vcs-text: var(--main-text-color, #231f1e);
  --blln-vcs-muted: var(--color-text, rgba(35, 31, 30, .7));
  --blln-vcs-bg: var(--body-color, var(--background-color, #fffafb));
  --blln-vcs-radius: var(--border-radius, 8px);
  --blln-vcs-title-size: var(--title-size, 24px);
  --blln-vcs-card-title-size: var(--card-title-font-size, .875rem);
  --blln-vcs-card-title-clamp: var(--card-title-line-clamp-count, 2);

  /* Visual tokens */
  --blln-vcs-section-radius: calc(var(--blln-vcs-radius) + 16px);
  --blln-vcs-border-color: rgba(103, 27, 46, .18);
  --blln-vcs-image-bg: color-mix(in srgb, var(--blln-vcs-primary), white 92%);
  --blln-vcs-scroll-track: color-mix(in srgb, var(--blln-vcs-text), transparent 84%);
  --blln-vcs-scroll-thumb: color-mix(in srgb, var(--blln-vcs-text), transparent 8%);

  /* Slider/control tokens */
  --blln-vcs-scroll-hit: 20px;
  --blln-vcs-scroll-line: 2px;
  --blln-vcs-arrow-size: 40px;
  --blln-vcs-arrow-icon-width: 22px;
  --blln-vcs-arrow-icon-height: 32px;

  /*
    Card width:
    Fallback uses 100%.
    Modern browsers/Salla Chrome use 100cqw through @supports below.
  */
  --blln-vcs-card-width: calc(
    (100% - (var(--blln-vcs-gap-size) * (var(--blln-vcs-cards-active) - 1)))
    / var(--blln-vcs-cards-active)
  );

  /*
    Figma reference:
    384w × 512h
    height = width × 4 / 3
  */
  --blln-vcs-card-portrait-min-height: calc(var(--blln-vcs-card-width) * 4 / 3);

  direction: rtl;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;

  width: min(100%, var(--blln-vcs-container-width, 1280px));
  margin: clamp(34px, 5vw, 64px) auto;
  padding: clamp(24px, 4vw, 44px) clamp(14px, 3vw, 30px);

  background: var(--blln-vcs-bg);
  color: var(--blln-vcs-text);
  border: 1px solid var(--blln-vcs-border-color);
  border-radius: var(--blln-vcs-section-radius);
  font-family: var(--blln-vcs-font);
  font-size: inherit;
  line-height: inherit;
  box-shadow: none;
}

/*
  Use container query units for width-derived height/arrow calculations.
  This avoids the bug where percentage-based custom properties resolve
  against height when used in height/top.
*/
@supports (width: 1cqw) {
  .blln-vcs-block {
    --blln-vcs-card-width: calc(
      (100cqw - (var(--blln-vcs-gap-size) * (var(--blln-vcs-cards-active) - 1)))
      / var(--blln-vcs-cards-active)
    );
    --blln-vcs-card-portrait-min-height: calc(var(--blln-vcs-card-width) * 4 / 3);
  }
}

/* No prototype gradient */
.blln-vcs-block::before {
  content: none !important;
  display: none !important;
}

/* =========================
   Layout
========================= */

.blln-vcs-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.blln-vcs-inner {
  position: relative;
  z-index: 1;
}

.blln-vcs-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: end;
  margin: 0 0 24px;
}

.blln-vcs-titles {
  max-width: 700px;
}

/* =========================
   Header Typography
========================= */

.blln-vcs-before-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--blln-vcs-primary);
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 700;
}

.blln-vcs-before-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.blln-vcs-title {
  margin: 0 0 6px;
  color: var(--blln-vcs-text);
  font-size: var(--blln-vcs-title-size);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

.blln-vcs-subtitle {
  margin: 12px 0 16px;
  color: var(--blln-vcs-text);
  max-width: 660px;
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 400;
  opacity: .72;
}

/* Alignment settings */
.blln-vcs-block[data-title-align="center"] .blln-vcs-head,
.blln-vcs-block[data-heading-align="center"] .blln-vcs-head,
.blln-vcs-block[data-title-alignment="center"] .blln-vcs-head,
.blln-vcs-block.text-center .blln-vcs-head,
.blln-vcs-block.is-title-center .blln-vcs-head {
  text-align: center;
}

.blln-vcs-block[data-title-align="center"] .blln-vcs-titles,
.blln-vcs-block[data-heading-align="center"] .blln-vcs-titles,
.blln-vcs-block[data-title-alignment="center"] .blln-vcs-titles,
.blln-vcs-block.text-center .blln-vcs-titles,
.blln-vcs-block.is-title-center .blln-vcs-titles {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.blln-vcs-block[data-title-align="center"] .blln-vcs-before-title,
.blln-vcs-block[data-heading-align="center"] .blln-vcs-before-title,
.blln-vcs-block[data-title-alignment="center"] .blln-vcs-before-title,
.blln-vcs-block.text-center .blln-vcs-before-title,
.blln-vcs-block.is-title-center .blln-vcs-before-title {
  justify-content: center;
}

.blln-vcs-block[data-title-align="center"] .blln-vcs-subtitle,
.blln-vcs-block[data-heading-align="center"] .blln-vcs-subtitle,
.blln-vcs-block[data-title-alignment="center"] .blln-vcs-subtitle,
.blln-vcs-block.text-center .blln-vcs-subtitle,
.blln-vcs-block.is-title-center .blln-vcs-subtitle {
  margin-inline: auto;
  text-align: center;
}

.blln-vcs-block[data-title-align="end"] .blln-vcs-head {
  text-align: end;
}

/* =========================
   Slider Shell + Arrows
========================= */

.blln-vcs-shell {
  position: relative;
}

.blln-vcs-arrows {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  bottom: auto;

  /*
    The image is square.
    Image height = card width.
    Because --blln-vcs-card-width uses cqw when supported,
    this resolves correctly as a width-derived height.
  */
  height: var(--blln-vcs-card-width);

  z-index: 20;
  pointer-events: none;
}

.blln-vcs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: var(--blln-vcs-arrow-size);
  height: var(--blln-vcs-arrow-size);
  border-radius: 999px;
  border: 0;

  background: #000;
  color: #fff;
  cursor: pointer;

  display: grid;
  place-items: center;

  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 0;
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;

  pointer-events: auto;
  box-shadow: none;
}

.blln-vcs-nav:hover {
  background: #000;
  color: #fff;
  transform: translateY(-50%);
}

.blln-vcs-prev {
  right: 12px;
}

.blln-vcs-next {
  left: 12px;
}

/* Fallback if Salla SVG icon is absent */
.blln-vcs-nav::before {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-family: Arial, "Segoe UI", sans-serif;
  color: #fff;
}

.blln-vcs-prev::before {
  content: "›";
}

.blln-vcs-next::before {
  content: "‹";
}

.blln-vcs-nav:has(.s-slider-button-icon)::before {
  content: none;
}

.blln-vcs-nav .s-slider-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--blln-vcs-arrow-icon-width);
  height: var(--blln-vcs-arrow-icon-height);
  line-height: 1;
  pointer-events: none;
}

.blln-vcs-nav .s-slider-button-icon svg {
  display: block;
  width: var(--blln-vcs-arrow-icon-width);
  height: var(--blln-vcs-arrow-icon-height);
  fill: #fff;
}

.blln-vcs-nav .s-slider-button-icon path {
  fill: #fff;
}

.blln-vcs-block:not([data-blln-vcs-can-prev]) .blln-vcs-prev,
.blln-vcs-block:not([data-blln-vcs-can-next]) .blln-vcs-next {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================
   Rail
========================= */

.blln-vcs-rail {
  direction: rtl;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--blln-vcs-card-width);
  gap: var(--blln-vcs-gap-size);
  align-items: stretch;

  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: none;
  scroll-padding-inline: 2px;
  padding: 4px 2px 18px;

  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;

  user-select: none;
  -webkit-user-select: none;
}

.blln-vcs-rail::-webkit-scrollbar {
  display: none;
}

.blln-vcs-rail:active,
.blln-vcs-rail.is-dragging {
  cursor: grabbing;
}

.blln-vcs-rail.is-dragging,
.blln-vcs-rail.is-dragging * {
  user-select: none;
  -webkit-user-select: none;
}

/* =========================
   Card: 4:3 Portrait + Even
========================= */

.blln-vcs-card {
  min-width: 0;
  min-height: var(--blln-vcs-card-min-height, var(--blln-vcs-card-portrait-min-height));
  aspect-ratio: 3 / 4;
  height: 100%;

  display: flex;
  align-self: stretch;

  background: transparent;
  border: 1px solid var(--blln-vcs-border-color);
  border-radius: var(--blln-vcs-radius);
  overflow: hidden;
  position: relative;

  box-shadow: none;
  background-clip: padding-box;

  user-select: none;
  -webkit-user-select: none;
}

.blln-vcs-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;

  color: inherit;
  text-decoration: none;

  border-radius: inherit;
  overflow: hidden;

  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* =========================
   Image: Square + Lazy Animation
========================= */

.blln-vcs-image-wrap {
  --img-x: 0px;
  --img-y: 0px;

  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--blln-vcs-image-ratio, 1 / 1);
  flex: 0 0 auto;

  margin: 0;
  border: 0;
  padding: 0;

  border-radius: var(--blln-vcs-radius);
  overflow: hidden;
  background: var(--blln-vcs-image-bg);
  isolation: isolate;
}

.blln-vcs-image {
  --blln-vcs-img-scale: 1.1;

  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  display: block;
  border: 0;
  border-radius: var(--blln-vcs-radius);

  opacity: 0;
  transform: translate3d(var(--img-x), var(--img-y), 0) scale(var(--blln-vcs-img-scale));
  transform-origin: center center;

  transition-property: opacity, transform, filter;
  transition-duration: .5s;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);

  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.blln-vcs-image.loaded,
.blln-vcs-image.is-loaded {
  --blln-vcs-img-scale: 1;
  opacity: 1;
}

.blln-vcs-image-wrap:hover .blln-vcs-image,
.blln-vcs-card-link:hover .blln-vcs-image {
  filter: saturate(1.04) contrast(1.01);
}

/* =========================
   Card Body
========================= */

.blln-vcs-card-body {
  padding: 14px 16px 18px;
  flex: 1 1 auto;

  display: flex;
  flex-direction: column;
}

.blln-vcs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: var(--blln-vcs-primary);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.25rem;
  margin-bottom: 6px;
}

.blln-vcs-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--blln-vcs-primary);
}

.blln-vcs-card-title {
  margin: 0 0 6px;

  font-size: var(--blln-vcs-card-title-size);
  line-height: 1.45;
  color: var(--blln-vcs-text);
  font-weight: 600;
  letter-spacing: 0;

  display: -webkit-box;
  -webkit-line-clamp: var(--blln-vcs-card-title-clamp);
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blln-vcs-card-desc {
  margin: 0;

  color: var(--blln-vcs-text);
  font-size: .8125rem;
  line-height: 1.25rem;
  opacity: .65;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blln-vcs-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;

  margin-top: auto;
  padding-top: 12px;
}

.blln-vcs-tag {
  border: 1px solid var(--blln-vcs-border-color);
  border-radius: 999px;
  padding: 4px 8px;

  color: var(--blln-vcs-text);
  font-size: 11px;
  line-height: 16px;
  background: transparent;
  opacity: .65;
}

/* =========================
   Scrollbar
========================= */

.blln-vcs-scrollbar {
  --scroll-progress: 0;
  --scroll-thumb-size: .32;

  position: relative;
  height: var(--blln-vcs-scroll-hit);
  margin: 6px 0 0;

  direction: rtl;
  background: transparent;
  overflow: visible;
  cursor: pointer;
  touch-action: none;
}

.blln-vcs-scrollbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;

  height: var(--blln-vcs-scroll-line);
  border-radius: 999px;
  background: var(--blln-vcs-scroll-track);
  transform: translateY(-50%);
}

.blln-vcs-scrollbar-thumb {
  position: absolute;
  right: 0;
  top: 0;

  height: var(--blln-vcs-scroll-hit);
  width: calc(var(--scroll-thumb-size, .32) * 100%);
  transform: translateX(calc(var(--scroll-progress, 0) * (100% - 100% / var(--scroll-thumb-size, .32))));

  transition: none;
  background: transparent;
  cursor: grab;
  touch-action: none;
  will-change: transform;
}

.blln-vcs-scrollbar.is-dragging,
.blln-vcs-scrollbar.is-dragging .blln-vcs-scrollbar-thumb {
  cursor: grabbing;
}

.blln-vcs-scrollbar.is-dragging .blln-vcs-scrollbar-thumb {
  transition: none !important;
}

.blln-vcs-scrollbar-thumb::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;

  height: var(--blln-vcs-scroll-line);
  border-radius: 999px;
  background: var(--blln-vcs-scroll-thumb);
  transform: translateY(-50%);
}

.blln-vcs-block:not([data-blln-vcs-has-overflow]) .blln-vcs-arrows,
.blln-vcs-block:not([data-blln-vcs-has-overflow]) .blln-vcs-scrollbar {
  display: none !important;
}

/* =========================
   Overlay Content Style
========================= */

.blln-vcs-block[data-card-content-style="overlay"] .blln-vcs-card-link {
  position: relative;
}

.blln-vcs-block[data-card-content-style="overlay"] .blln-vcs-image-wrap {
  height: 100%;
  min-height: 430px;
}

.blln-vcs-block[data-card-content-style="overlay"] .blln-vcs-card-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;

  padding: 54px 20px 24px;
  color: #fff;
  background: linear-gradient(to top, rgba(35,31,30,.76), rgba(35,31,30,0));
}

.blln-vcs-block[data-card-content-style="overlay"] .blln-vcs-card-title,
.blln-vcs-block[data-card-content-style="overlay"] .blln-vcs-card-desc,
.blln-vcs-block[data-card-content-style="overlay"] .blln-vcs-kicker,
.blln-vcs-block[data-card-content-style="overlay"] .blln-vcs-tag {
  color: #fff;
}

.blln-vcs-block[data-card-content-style="overlay"] .blln-vcs-tag {
  border-color: rgba(255,255,255,.28);
}

/* =========================
   Reveal Animation State
========================= */

.blln-vcs-reveal-ready .anime-item {
  opacity: 0;
  transform: translateY(30px);
}

.blln-vcs-reveal-ready .anime-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Dark Mode
========================= */

html.dark .blln-vcs-block,
body.color-mode-dark .blln-vcs-block,
[data-theme="dark"] .blln-vcs-block,
[data-mode="dark"] .blln-vcs-block {
  --blln-vcs-bg: var(--dark-body-color, var(--dark-bg, #1d1f1f));
  --blln-vcs-text: var(--dark-text-color, #fff);
  --blln-vcs-muted: var(--dark-muted-color, rgba(255,255,255,.66));
  --blln-vcs-border-color: var(--dark-border-color, rgba(255,255,255,.14));
  --blln-vcs-image-bg: #2a2b2b;
  --blln-vcs-scroll-track: rgba(255,255,255,.16);
  --blln-vcs-scroll-thumb: rgba(255,255,255,.92);
}

/* =========================
   Reduced Motion
========================= */

@media (prefers-reduced-motion: reduce) {
  .blln-vcs-reveal-ready .anime-item,
  .blln-vcs-reveal-ready .anime-item.is-revealed {
    opacity: 1 !important;
    transform: none !important;
  }

  .blln-vcs-image {
    opacity: 1;
    --blln-vcs-img-scale: 1;
    transition: none !important;
  }
}

/* =========================
   Mobile
========================= */

@media (max-width: 768px) {
  .blln-vcs-block {
    --blln-vcs-cards-active: var(--blln-vcs-cards-mobile, 1.18);

    padding: 26px 14px;
    border-radius: 20px;
  }

  .blln-vcs-head {
    display: block;
  }

  .blln-vcs-prev {
    right: 8px;
  }

  .blln-vcs-next {
    left: 8px;
  }
}