/* Add custom CSS styles below */ 
/* Add custom JS code below */ 
.iconah-hero h2{
     
    font-size: clamp(2.1rem, 2.2vw + 1.2rem, 3.4rem) !important;
}
.iconah-hero .advanced-slider__caption__inner--center{
    position: absolute;
      left: 50%; 
  transform: translateX(-50%);
    width: 85%;
  bottom: 10%;
}
.iconah-hero-badges{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:28px;
  margin-top:18px;
  flex-wrap:wrap;
  direction:rtl;
}

.iconah-hero-badge{
  display:flex;
  align-items:center;
  gap:10px;
  color:rgba(255,255,255,.85);
  font-size:12px;
  line-height:1;
  font-weight:500;
  flex-direction:row-reverse;
}

.iconah-hero-badge svg{
  width:18px;
  height:18px;
  flex:0 0 18px;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.35));
}

  #stats-counter {
  padding: 60px 20px;
  padding-bottom: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#stats-counter.sc-visible {
  opacity: 1;
  transform: translateY(0);
}

#stats-counter .sc-inner {
  max-width: 720px;
  margin: 0 auto;
}

#stats-counter .sc-subtitle {
  font-size: clamp(24px, 3vw, 26px);
  margin-bottom: 32px;
  opacity: 0.85;
}

#stats-counter .sc-stats {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 8vw, 96px);
  flex-wrap: wrap;
}

#stats-counter .sc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#stats-counter .sc-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 8px;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}
#stats-counter.sc-visible .sc-icon {
  transform: scale(1);
  opacity: 1;
}
/* small stagger for the second icon onward */
#stats-counter.sc-visible .sc-stat:nth-child(2) .sc-icon { transition-delay: 0.12s; }
#stats-counter.sc-visible .sc-stat:nth-child(3) .sc-icon { transition-delay: 0.24s; }

#stats-counter .sc-number {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  direction: ltr; /* keeps "22,000+" formatted correctly even in RTL */
}

#stats-counter .sc-label {
  font-size: clamp(14px, 2.5vw, 18px);
  opacity: 0.7;
}
#app > div.app-inner.flex.flex-col.min-h-full.bg-storeBG > main > section.s-block.s-block--square-links.square-links-1 > div > ul{
    column-gap: 1rem;
    row-gap: 10px !important;
}
/* Square links: first item full width, rest 2×2 */
.square-links-1 ul {
  grid-template-columns: repeat(2, 1fr) !important;
}

.square-links-1 ul li:first-child {
  grid-column: 1 / -1; /* span both columns */
}

.square-links-1 ul li:first-child img {
  aspect-ratio: 1440 / 504 !important; /* wide banner instead of 14/13 */
}
.s-block--square-links{
    margin-top: 0;
}

.cate .aspect-\[14\/13\]{
    aspect-ratio:unset;
}


/* Hide original subtitle only when we transform it */
.product-card__subtitle.pc-subtitle--hidden {
  display: none !important;
}

/* The grey rounded box */
.pc-feature-box {
  margin: 10px auto 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.05);
}

/* List styling */
.pc-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  direction: rtl;
}

/* One feature row */
.pc-features li {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-direction: row; 
  font-size: 12px;
  line-height: 1.3;
  color: rgba(0,0,0,.65);
}

/* Check icon */
.pc-features .pc-check {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.piza-video .advanced-slider__caption__inner--center{
    position: absolute;
      left: 50%; 
  transform: translateX(-50%);
    width: 90%;
  bottom: 8%;
}

.s-slider-container{
  overflow-y: visible;
}

.product-card--fit-height .product-card__image {
    background-color: white;
}
div.product-card__content-wrapper > div.pc-feature-box > ul > li > span{
    text-align: right;
}


.bk-section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.4;
  color: var(--color-store-text-primary, #1a1a1a);
}

.bk-title-en {
  display: block;
  font-family: -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 800;
}

.bk-title-ar { display: block; }

.bk-slider-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bk-swiper-material {
  height: 420px;
  width: calc(100% - 32px);
  max-width: 1100px;
}

.bk-product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--swiper-material-slide-border-radius);
}

.bk-product-overlay {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 60%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.65) 60%);
  border-radius: 0 0 var(--swiper-material-slide-border-radius) var(--swiper-material-slide-border-radius);
  z-index: 10;
}

.bk-product-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  text-align: center;
}

.bk-product-cta {
  padding: 9px 28px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid #fff;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.bk-product-cta:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .bk-swiper-material { height: 420px; }
  .bk-section-title { font-size: 28px; margin-bottom: 24px; }
  .bk-product-name { font-size: 18px; }
  .bk-product-cta { padding: 8px 22px; font-size: 14px; }
  .bk-product-overlay { opacity: 0; transition: opacity 0.4s ease; }
  .swiper-slide-active .bk-product-overlay { opacity: 1; }
}

@media (max-width: 480px) {
  .bk-swiper-material { height: 400px; }
  .bk-product-overlay { gap: 12px; padding: 18px; height: 50%; }
  .bk-product-cta { padding: 8px 20px; font-size: 13px; }
}
.s-block--custom-products .s-slider-container{
      overflow: visible !important;
}
.bk-products-section{

  padding-top: 3rem;
}

/* === Jofab: Before / After Section === */

.before-after-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.before-after-section .section-title {
  font-size: 4rem;
  font-weight: 900;
  color: #212529;
  text-align: center;
  direction: rtl;
  margin-bottom: 60px;
}

/* Desktop: reduce height */
@media (min-width: 1024px) {
  .before-after-section {
    min-height: auto;
    padding: 80px 20px;
  }

  .before-after-section .section-title {
    font-size: 3.5rem;
    margin-bottom: 50px;
  }
}

.before-after-section .before-after-swiper {
  width: 100%;
  max-width: 1200px;
  padding: 20px 60px !important;
}

@media (min-width: 1024px) {
  .before-after-section .before-after-swiper {
    max-width: 1000px;
    padding: 20px 80px !important;
    perspective: 1500px;
    overflow: visible !important;
  }

  .before-after-section .swiper-slide {
    opacity: 0 !important;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .before-after-section .swiper-slide-active,
  .before-after-section .swiper-slide-prev,
  .before-after-section .swiper-slide-next {
    opacity: 1 !important;
    visibility: visible;
  }

  .before-after-section .swiper-slide-active {
    z-index: 10;
  }

  .before-after-section .swiper-slide-prev,
  .before-after-section .swiper-slide-next {
    opacity: 0.6 !important;
  }

  .before-after-section .swiper-slide:not(.swiper-slide-active) .comparison-container {
    transform: scale(0.78) translateY(30px);
  }

  .before-after-section .swiper-slide-active .comparison-container {
    transform: scale(1) translateY(0);
  }

  .before-after-section .swiper-slide-prev .comparison-container,
  .before-after-section .swiper-slide-next .comparison-container {
    transform: scale(0.75) translateY(35px);
  }

  .before-after-section .swiper-slide:not(.swiper-slide-active) .slider-line,
  .before-after-section .swiper-slide:not(.swiper-slide-active) .slider-handle {
    opacity: 0;
    pointer-events: none;
  }

  .before-after-section .swiper-slide:not(.swiper-slide-active) .comparison-container {
    cursor: default;
    pointer-events: none;
  }

  .before-after-section .swiper-slide-active .slider-line,
  .before-after-section .swiper-slide-active .slider-handle {
    opacity: 1;
    pointer-events: auto;
  }

  .before-after-section .swiper-slide-active .comparison-container {
    cursor: ew-resize;
    pointer-events: auto;
  }
}

/* Swiper slide base */
.before-after-section .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Image comparison container */
.before-after-section .comparison-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  cursor: ew-resize;
  user-select: none;
  transition: all 0.4s ease;
}

@media (min-width: 1024px) {
  .before-after-section .comparison-container {
    max-width: 550px;
  }
}

.before-after-section .comparison-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.before-after-section .after-image {
  z-index: 1;
}

.before-after-section .before-image {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

/* Slider handle + line */

.before-after-section .slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #ffffff;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.before-after-section .slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: #ffffff;
  border-radius: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  transition: opacity 0.3s ease;
}

.before-after-section .slider-handle::before,
.before-after-section .slider-handle::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.before-after-section .slider-handle::before {
  left: 12px;
  border-width: 10px 10px 10px 0;
  border-color: transparent #000000 transparent transparent;
}

.before-after-section .slider-handle::after {
  right: 12px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #000000;
}

/* Labels */

.before-after-section .comparison-label {
  position: absolute;
  top: 20px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  z-index: 5;
  display: none;
}

.before-after-section .label-before {
  left: 20px;
}

.before-after-section .label-after {
  right: 20px;
}

/* Swiper navigation (scoped) */

.before-after-section .swiper-button-next,
.before-after-section .swiper-button-prev {
  color: #000000 !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(230, 230, 230, 0.8));
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.before-after-section .swiper-button-next:not(.swiper-button-disabled)::before,
.before-after-section .swiper-button-prev:not(.swiper-button-disabled)::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 50%
  );
  border-radius: 50%;
  pointer-events: none;
}

.before-after-section .swiper-button-next:hover,
.before-after-section .swiper-button-prev:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(240, 240, 240, 0.9));
  transform: scale(1.1);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 5px rgba(0, 0, 0, 0.15);
}

.before-after-section .swiper-button-next::after,
.before-after-section .swiper-button-prev::after {
  font-size: 20px !important;
  font-weight: bold;
  position: relative;
  z-index: 2;
}

/* Pagination bullets (if you enable pagination later) */
.before-after-section .swiper-pagination-bullet {
  background: #000000 !important;
  opacity: 0.4 !important;
}

.before-after-section .swiper-pagination-bullet-active {
  opacity: 1 !important;
  background: #000000 !important;
}

/* Tablet */
@media (max-width: 1023px) and (min-width: 769px) {
  .before-after-section .comparison-container {
    max-width: 450px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .before-after-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }

  .before-after-section .before-after-swiper {
    padding: 20px 50px !important;
  }

  .before-after-section .comparison-container {
    max-width: 100%;
  }

  .before-after-section .slider-handle {
    width: 50px;
    height: 50px;
  }

  .before-after-section .comparison-label {
    font-size: 1rem;
    padding: 6px 15px;
  }
}

@media (max-width: 480px) {
  .before-after-section .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .before-after-section .before-after-swiper {
    padding: 20px 40px !important;
  }

  .before-after-section .comparison-container {
    max-width: 100%;
    border-radius: 15px;
  }

  .before-after-section .slider-handle {
    width: 40px;
    height: 40px;
  }

  .before-after-section .slider-handle::before {
    left: 10px;
    border-width: 8px 8px 8px 0;
  }

  .before-after-section .slider-handle::after {
    right: 10px;
    border-width: 8px 0 8px 8px;
  }

  .before-after-section .comparison-label {
    font-size: 0.9rem;
    padding: 5px 12px;
    top: 15px;
  }

  .before-after-section .label-before {
    left: 15px;
  }

  .before-after-section .label-after {
    right: 15px;
  }
}
.before-after-section .swiper-slide {
  display: flex;
  flex-direction: column;   /* stack image then button */
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: all 0.3s ease;
}
.before-after-section .ba-product-btn {
  display: inline-block;
  padding: 10px 32px;
  border: 2px solid var(--store-primary-color, #212529);
  border-radius: 999px;
  color: var(--store-primary-color, #212529);
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}

.before-after-section .ba-product-btn:hover {
  background: var(--store-primary-color, #212529);
  color: #fff;
}

/* Desktop: only show the button on the focused (center) slide */
@media (min-width: 1024px) {
  .before-after-section .swiper-slide:not(.swiper-slide-active) .ba-product-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
}

/* ===== Comparison Table Section ===== */
#ct-section {
  background: #f5f5f5;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ct-wrap {
  position: relative;
  width: 620px;
  max-width: 95vw;
}

.ct-card {
  position: relative;
  z-index: 5;
  border-radius: 20px;
  overflow: hidden;
  background-color: #ffffffab;
  backdrop-filter: blur(25px);
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.08),
    0 0 60px rgba(255,100,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.9);
  animation: ct-cardEntry 0.9s ease-out 0.2s both;
}

.ct-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.5) 45%,
    rgba(255,255,255,0.8) 50%,
    rgba(255,255,255,0.5) 55%,
    transparent 60%
  );
  animation: ct-glossSweep 5s ease-in-out 1.5s infinite;
  z-index: 10;
  pointer-events: none;
  border-radius: 20px;
  will-change: transform;
}

@keyframes ct-glossSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes ct-cardEntry {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.ct-header {
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: visible;
}

.ct-header-title {
  font-size: 1.7rem;
  font-weight: 900;
  color: #1a1a1a;
}

.ct-logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  overflow: visible;
}

.ct-fire-img {

      position: absolute;
    top: -35px;
    left: 20%;
    transform: translateX(-50%);
    width: 220px;
    z-index: 1;
    pointer-events: none;
    animation: ct-cardEntry 0.9s ease-out 0.2s both;
}

.ct-logo-img {
  position: relative;
  z-index: 2;
  height: 55px;
  width: auto;
  animation: ct-logoPop 0.6s ease-out 0.6s both;
}

@keyframes ct-logoPop {
  from { opacity: 0; transform: scale(0.5); }
  60%  { transform: scale(1.1); }
  to   { opacity: 1; transform: scale(1); }
}

.ct-header-others {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #626262;
}

.ct-glow-orb {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 180px;
  background: radial-gradient(ellipse, rgba(255,100,0,0.1) 0%, transparent 70%);
  z-index: 0;
  animation: ct-glowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ct-glowPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* Rows */
.ct-row {
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.ct-row:last-child { border-bottom: none; }
.ct-row:nth-child(even) { background: rgba(0,0,0,0.018); }
.ct-row:hover { background: rgba(255,120,0,0.06); }

.ct-row:nth-child(1) { animation: ct-rowSlide 0.5s ease-out 0.5s  both; }
.ct-row:nth-child(2) { animation: ct-rowSlide 0.5s ease-out 0.65s both; }
.ct-row:nth-child(3) { animation: ct-rowSlide 0.5s ease-out 0.8s  both; }
.ct-row:nth-child(4) { animation: ct-rowSlide 0.5s ease-out 0.95s both; }

@keyframes ct-rowSlide {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ct-feature-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2a2a2a;
  line-height: 1.6;
}

.ct-icon-cell {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ct-check {
  display: inline-block;
  font-size: 28px;
  font-weight: 900;
  color: #22c55e;
  filter: drop-shadow(0 0 8px rgba(34,197,94,.5));
}

.ct-cross {
  display: inline-block;
  font-size: 26px;
  font-weight: 900;
  color: #ef4444;
  filter: drop-shadow(0 0 8px rgba(239,68,68,.4));
}

.ct-row:hover .ct-check,
.ct-row:hover .ct-cross {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

@media (max-width: 500px) {
  .ct-header, .ct-row {
    grid-template-columns: 1fr 80px 80px;
    padding: 14px 16px;
  }
  .ct-header-title { font-size: 1.25rem; }
  .ct-fire-img     { width: 120px; }
  .ct-logo-img     { height: 40px; }
  .ct-feature-text { font-size: 0.88rem; }
  .ct-check        { font-size: 22px; }
  .ct-cross        { font-size: 20px; }
  .ct-header-others{ font-size: 0.78rem; }
}
}