/* =========================
   استدعاء الخط
========================= */
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');

/* =========================
   إعدادات أساسية
========================= */
body#app {
  background-color: #fff;
}

body {
  font-family: 'El Messiri', sans-serif;
}

.banner--fixed img,
a.banner-entry.square-photos {
  background-color: #fff;
}

.lazy__bg.lazy.bg-no-repeat.entered.loaded {
  background-size: contain !important;
  background-color: #fff;
}

/* =========================
   البانرات
========================= */
.s-block--banners .grid.two-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

section.s-block.s-block--fixed-banner.wide-placeholder:nth-of-type(1) > .container {
  margin-top: 0;
  max-width: 80%;
}

.index section.s-block.s-block--fixed-banner.wide-placeholder > .container {
  max-width: 80%;
  padding: 0;
}

section.s-block.s-block--fixed-banner.wide-placeholder:first-of-type {
  margin-top: 0;
  height: 100%;
  overflow: hidden;
}

/* عنوان السلايدر */
.s-slider-block__title-right h2 {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(90deg, #E3C88B, #c2a67a, #E3C88B);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 3s linear infinite;
}

@keyframes shineText {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* =========================
   البانر انيمشن
========================= */
.grid .banner-entry .lazy__bg {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background-color: #fff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.grid .banner-entry .lazy__bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
}

.grid .banner-entry {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation: fadeUp 0.8s ease forwards;
}

.grid .banner-entry:nth-child(1) { animation-delay: 0.1s; }
.grid .banner-entry:nth-child(2) { animation-delay: 0.2s; }
.grid .banner-entry:nth-child(3) { animation-delay: 0.3s; }
.grid .banner-entry:nth-child(4) { animation-delay: 0.4s; }
.grid .banner-entry:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shine-move {
  100% { left: 120%; }
}

/* =========================
   الأزرار
========================= */
.s-button-element {
  position: relative;
  overflow: hidden;
  border: 2px solid #E3C88B;
  color: #E3C88B;
  font-weight: 600;
  font-size: 1.05rem;
  background-color: #fff;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all 0.35s ease;
}

.s-button-element::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -70%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
}

@keyframes shine-slide {
  100% { left: 120%; }
}

/* =========================
   المنتجات
========================= */
.banner-entry { height: 270px; }

.s-products-slider-card {
  transition: all 0.3s ease-in-out;
  border-radius: 12px;
}

.s-block--features__item {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s ease;
}

.s-block--features__item .feature-icon i {
  font-size: 2rem;
  color: #555;
  transition: transform 0.3s ease;
}

/* =========================
   الهوفر للديسكتوب فقط
========================= */
@media (min-width: 1024px) {
  /* البانر */
  .grid .banner-entry:hover .lazy__bg {
    transform: scale(1.07) rotate3d(1, 1, 0, 5deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }

  .grid .banner-entry:hover .lazy__bg::after {
    animation: shine-move 0.8s forwards;
  }

  /* الأزرار */
  .s-button-element:hover {
    background-color: #222;
    color: #fff;
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 6px 16px rgba(34, 34, 34, 0.45);
    border-color: #222;
  }

  .s-button-element:hover::before {
    animation: shine-slide 0.9s forwards;
  }

  /* المنتجات */
  .s-products-slider-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border: 1px solid #E3C88B;
  }

  .s-products-slider-card:hover .s-product-card-content-title a {
    color: #E3C88B;
  }

  .s-products-slider-card:hover img {
    transform: scale(1.05);
    transition: transform 0.4s ease-in-out;
  }

  /* المميزات */
  .s-block--features__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .s-block--features__item:hover .feature-icon i {
    transform: scale(1.2);
  }
}
@media (max-width: 767px) {
  .s-slider-block__title-right h2 {
    font-size: 1.4rem; /* أصغر شويه للموبايل */
    font-weight: bold;
    background: linear-gradient(90deg, #E3C88B, #c2a67a, #E3C88B);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 3s linear infinite;
  }
}

@keyframes shineText {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@media(max-width:767px){
#photos-0-slider > div.swiper.s-slider-container.swiper-initialized.swiper-horizontal.swiper-rtl.swiper-ios.swiper-backface-hidden{
   padding:0;
}
.s-products-slider-card {
    max-width: 185px;
}
.main-nav-container {
    min-height: 56px;
}
  .s-button-element:not(:disabled):not([loading]) {
    font-size: 11px;
}
section.s-block.s-block--fixed-banner.wide-placeholder:nth-of-type(1) > .container {
  margin-top: 0;
  max-width: 100%;
}

.index section.s-block.s-block--fixed-banner.wide-placeholder > .container {
  max-width: 100%;
  padding: 0;
}

section.s-block.s-block--fixed-banner.wide-placeholder:first-of-type {
  margin-top: 0;
  height: 100%;
  overflow: hidden;
}
}
@media (max-width: 768px) {
  .s-block--banners .grid.two-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 أعمدة متساوية */
    gap: 1rem;
    justify-items: center; /* العناصر اللي عددها أقل تتوسّط */
  }

  .s-block--banners .grid.two-row .banner-entry {
    aspect-ratio: 1 / 1; /* يخليهم مربعات متساوية */
    width: 100%;
  }

  .banner-entry {
    height: 132px;
  }

  .banner-entry .lazy__bg.lazy.bg-no-repeat.entered.loaded {
    width: 101px;
  }
}