/* ------------------ الخلفية ------------------ */
body#app {
  background-color: white;
}

.banner--fixed img,
.lazy__bg.lazy.bg-no-repeat.entered.loaded {
  background-color: white;
}

/* ------------------ العنوان ------------------ */
.s-block__title .right-side:where([dir=rtl],[dir=rtl] *) {
  display: flex;
  justify-content: center; /* يوسّط أفقيًا */
  align-items: center;     /* يوسّط عموديًا */
  width: 100%;
  text-align: center;
}

.s-block__title .right-side:where([dir=rtl],[dir=rtl] *) h2 {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  font-weight: bold;
  color: #F9B23B;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ديكور خفيف تحت العنوان */
.s-block__title .right-side:where([dir=rtl],[dir=rtl] *) h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #F9B23B, transparent);
  border-radius: 2px;
  opacity: 0.8;
}

/* ------------------ بانر ثابت ------------------ */
section.s-block.s-block--fixed-banner.wide-placeholder:nth-of-type(1),
.index section.s-block.s-block--fixed-banner.wide-placeholder > .container {
  max-width: 100%;
  padding: 0;
  margin-top: 0;
}

/* ------------------ أيقونات السلة واليوزر ------------------ */
.header-btn__icon,
.s-cart-summary-icon path,
.s-cart-summary-total,
.s-cart-summary-count {
  color: #F8B91B !important;
  fill: #F8B91B !important;
  transition: all 0.3s ease;
}

/* خلفية الرقم فوق السلة */
.s-cart-summary-count {
  background-color: #F8B91B !important;
  color: #000 !important;
  border-radius: 50%;
  padding: 2px 6px;
  font-weight: bold;
  font-size: 12px;
  position: relative;
  top: -2px;
  transition: all 0.3s ease;
}

/* تأثير hover ناعم */
.header-btn:hover .header-btn__icon,
.s-cart-summary-wrapper:hover .s-cart-summary-icon path,
.s-cart-summary-wrapper:hover .s-cart-summary-total {
  transform: scale(1.05);
  filter: drop-shadow(0 0 4px #F8B91B);
}

/* تغيير الخلفية عند الهوفر على الرقم */
.s-cart-summary-wrapper:hover .s-cart-summary-count {
  background-color: #ffcc40 !important;
}

/* ------------------ أزرار ذهبية ------------------ */
.s-button-element.s-button-primary-outline {
  background: linear-gradient(135deg, #F8B91B, #d49f0a, #c38a06, #F8B91B);
  background-size: 400% 400%;
  animation: gradientGoldDark 8s ease infinite;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.4s ease;
  box-shadow: 0 0 10px rgba(248,185,27,0.4);
}

@keyframes gradientGoldDark {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.s-button-element.s-button-primary-outline:hover {
  background: linear-gradient(45deg, #ffd451, #F8B91B, #ffcc33, #ffd451);
  background-size: 300% 300%;
  animation: gradientHoverGoldDark 6s ease infinite;
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(248,185,27,0.7), 0 0 40px rgba(255,215,64,0.6);
  color: #ffffff !important;
}

@keyframes gradientHoverGoldDark {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.s-button-element.s-button-primary-outline:active {
  transform: scale(0.95);
  box-shadow: 0 0 12px rgba(248,185,27,0.5);
}

/* ------------------ ديسكتوب فقط ------------------ */
@media (min-width: 1024px) {
  section.s-block.s-block--fixed-banner.wide-placeholder:nth-of-type(8) > .container {
    margin-top: 0;
    max-width: 20%;
  }
}

/* ------------------ موبايل فقط ------------------ */
@media (max-width: 767px) {
  /* الجريد على الموبايل: صفين */
  .grid.one-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* العنصر الثالث ينزل تحت في النص */
  .grid.one-row > a:nth-of-type(3) {
    grid-column: 1 / -1 !important; /* ياخد الصف كله */
    justify-self: center !important;
    width: 80% !important; /* نفس النسبة */
  }

  /* كل الصور بنفس الحجم */
  .grid.one-row .banner-entry .lazy__bg {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
.banner-entry {
    height: 105px;
}
}
@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;
}
}