/* خلفية المتجر بالكامل */
body,
html,
#app,
.app,
.main-content,
.main-content-inner {
  background: #f2f2f2 !important;
}

/* إلغاء أي هوامش جانبية عامة حول البنرات */
.container,
.s-container,
.main-content .container,
.section--banners .container,
section .container {
  max-width: 100% !important;
  width: 100% !important;
}

/* البنر نفسه ياخد عرض الشاشة كامل */
.hero-slider,
.main-slider,
.home-slider,
.banner-slider,
.s-slider-block,
section[data-type="slider"],
section[data-type="banners"] {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

/* الصور داخل البنرات */
.hero-slider img,
.main-slider img,
.home-slider img,
.banner-slider img,
.s-slider-block img,
section[data-type="slider"] img,
section[data-type="banners"] img {
  width: 100% !important;
  display: block !important;
  border-radius: 0 !important;
}

/* إزالة أي padding من سكشن البنرات */
.hero-slider *,
.main-slider *,
.home-slider *,
.banner-slider *,
.s-slider-block *,
section[data-type="slider"] *,
section[data-type="banners"] * {
  border-radius: 0 !important;
}


/* =========================
   4 Items Banner Block
========================= */
section.s-block.s-block--banners.container.four-items-banner-block .grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

section.s-block.s-block--banners.container.four-items-banner-block .banner-entry.square-photos {
  width: 100% !important;
  min-width: 0 !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

section.s-block.s-block--banners.container.four-items-banner-block .banner-entry.square-photos > * {
  width: 100% !important;
  height: 100% !important;
}

section.s-block.s-block--banners.container.four-items-banner-block .banner-entry.square-photos img,
section.s-block.s-block--banners.container.four-items-banner-block .banner-entry.square-photos .lazy_bg {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

section.s-block.s-block--banners.container.four-items-banner-block .grid > * {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  height: 100% !important;
}

/* =========================
   5 Items Banner Block
========================= */
section.s-block.s-block--banners.container.five-items-banner-block .grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

section.s-block.s-block--banners.container.five-items-banner-block .banner-entry.square-photos {
  width: 100% !important;
  min-width: 0 !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

section.s-block.s-block--banners.container.five-items-banner-block .banner-entry.square-photos > * {
  width: 100% !important;
  height: 100% !important;
}

section.s-block.s-block--banners.container.five-items-banner-block .banner-entry.square-photos img,
section.s-block.s-block--banners.container.five-items-banner-block .banner-entry.square-photos .lazy_bg {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

section.s-block.s-block--banners.container.five-items-banner-block .grid > * {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 768px) {
  section.s-block.s-block--banners.container.four-items-banner-block .grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }

  section.s-block.s-block--banners.container.five-items-banner-block .grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
  }
}

/* =========================
   2 Items Banner Block
========================= */
section.s-block.s-block--banners.container.two-items-banner-block .grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

/* توحيد الشكل */
section.s-block.s-block--banners.container.two-items-banner-block .banner-entry.square-photos {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

/* المحتوى الداخلي */
section.s-block.s-block--banners.container.two-items-banner-block .banner-entry.square-photos > * {
  width: 100% !important;
  height: 100% !important;
}

/* الصور */
section.s-block.s-block--banners.container.two-items-banner-block .banner-entry.square-photos img,
section.s-block.s-block--banners.container.two-items-banner-block .banner-entry.square-photos .lazy_bg {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 768px) {
  section.two-items-banner-block .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}


/* =========================
   Product Cards Premium
========================= */

/* شبكة المنتجات */
.s-products-list,
.products-grid,
.product-list,
.s-product-section .grid {
  gap: 20px !important;
}

/* كارت المنتج */
.s-product-card-entry,
.s-product-card,
.product-entry,
.products-grid > * {
  background: #fff !important;
  border: 1px solid #ececec !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  position: relative !important;
}

/* Hover */
.s-product-card-entry:hover,
.s-product-card:hover,
.product-entry:hover,
.products-grid > *:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08) !important;
  border-color: #dcdcdc !important;
}

/* صورة المنتج */
.s-product-card-image,
.s-product-card-entry img,
.s-product-card img,
.product-entry img {
  border-radius: 16px 16px 0 0 !important;
  transition: transform 0.4s ease !important;
}

.s-product-card-entry:hover img,
.s-product-card:hover img,
.product-entry:hover img {
  transform: scale(1.04) !important;
}

/* المحتوى الداخلي */
.s-product-card-content,
.s-product-card-info,
.product-entry .content,
.s-product-card-entry .p-3,
.s-product-card-entry .p-4 {
  padding: 16px !important;
}

/* اسم المنتج */
.s-product-card-name,
.s-product-card-title,
.product-title,
.s-product-card-entry h3,
.s-product-card-entry h2 {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #111827 !important;
  line-height: 1.6 !important;
  margin-bottom: 8px !important;
}

/* السعر */
.s-product-card-price,
.price-wrapper,
.product-price,
.s-product-card-entry .price {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #111 !important;
}

/* السعر قبل الخصم */
.s-product-card-regular-price,
.price-before,
del {
  color: #9ca3af !important;
  font-size: 14px !important;
}

/* الأزرار */
.s-product-card-btn,
button.btn--add-to-cart,
button.s-button-btn,
.s-button-element {
  border-radius: 12px !important;
  min-height: 44px !important;
  font-weight: 700 !important;
  transition: all 0.25s ease !important;
}

/* زر السلة */
button.btn--add-to-cart,
.s-product-card-entry .btn--add-to-cart {
  background: #111827 !important;
  color: #fff !important;
  border: none !important;
}

button.btn--add-to-cart:hover,
.s-product-card-entry .btn--add-to-cart:hover {
  transform: translateY(-2px) !important;
  opacity: 0.95 !important;
}

/* شارة الخصم */
.badge,
.s-product-card-sale-badge,
.sale-badge {
  border-radius: 999px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

/* زر المفضلة أو الأيقونات */
.s-product-card-wishlist-btn,
.btn--wishlist,
.s-product-card .s-button-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
}

/* تحسين الموبايل */
@media (max-width: 768px) {
  .s-product-card-name,
  .s-product-card-title,
  .product-title,
  .s-product-card-entry h3,
  .s-product-card-entry h2 {
    font-size: 15px !important;
  }

  .s-product-card-price,
  .price-wrapper,
  .product-price {
    font-size: 16px !important;
  }

  .s-product-card-content,
  .s-product-card-info,
  .product-entry .content,
  .s-product-card-entry .p-3,
  .s-product-card-entry .p-4 {
    padding: 12px !important;
  }
}



/* =========================
   Footer Premium Style
========================= */

footer,
.store-footer {
  background: #ffffff !important;
  border-top: 1px solid #e9e9e9 !important;
  padding-top: 40px !important;
  padding-bottom: 20px !important;
  margin-top: 50px !important;
}

footer .container,
.store-footer .container {
  max-width: 1200px !important;
}

footer .grid,
.store-footer .grid {
  gap: 28px !important;
  align-items: start !important;
}

/* عناوين الفوتر */
footer h3,
footer h4,
footer .title,
.store-footer h3,
.store-footer h4,
.store-footer .title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #111827 !important;
  margin-bottom: 16px !important;
  position: relative !important;
}

footer h3::after,
footer h4::after,
footer .title::after,
.store-footer h3::after,
.store-footer h4::after,
.store-footer .title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #111827;
  border-radius: 99px;
  margin-top: 8px;
}

/* النصوص */
footer p,
footer span,
footer li,
.store-footer p,
.store-footer span,
.store-footer li {
  color: #4b5563 !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
}

/* الروابط */
footer a,
.store-footer a {
  color: #374151 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

footer a:hover,
.store-footer a:hover {
  color: #111827 !important;
  padding-right: 6px !important;
}

/* القوائم */
footer ul,
.store-footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

footer ul li,
.store-footer ul li {
  margin-bottom: 10px !important;
}

/* أيقونات السوشيال */
footer .social a,
footer .social-links a,
footer .store-social a,
.store-footer .social a,
.store-footer .social-links a,
.store-footer .store-social a {
  width: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f5f5f5 !important;
  border: 1px solid #ececec !important;
  border-radius: 12px !important;
  margin-left: 8px !important;
  transition: all 0.3s ease !important;
  padding-right: 0 !important;
}

footer .social a:hover,
footer .social-links a:hover,
footer .store-social a:hover,
.store-footer .social a:hover,
.store-footer .social-links a:hover,
.store-footer .store-social a:hover {
  background: #111827 !important;
  color: #fff !important;
  transform: translateY(-3px) !important;
}

/* شارات الثقة */
salla-trust-badges,
.s-trust-badges-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
}

salla-trust-badges a,
salla-trust-badges > div,
.s-trust-badges-wrapper a,
.s-trust-badges-wrapper > div {
  background: #f9fafb !important;
  border: 1px solid #ececec !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  transition: all 0.3s ease !important;
}

salla-trust-badges a:hover,
salla-trust-badges > div:hover,
.s-trust-badges-wrapper a:hover,
.s-trust-badges-wrapper > div:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-2px) !important;
}

/* الجزء السفلي */
footer .copyright,
footer .sub-footer,
.store-footer .copyright,
.store-footer .sub-footer,
.text-sm.copyright-text {
  border-top: 1px solid #ececec !important;
  margin-top: 24px !important;
  padding-top: 16px !important;
  color: #6b7280 !important;
  font-size: 14px !important;
  text-align: center !important;
}

@media (max-width: 768px) {
  footer,
  .store-footer {
    padding-top: 28px !important;
    padding-bottom: 14px !important;
  }

  footer h3,
  footer h4,
  footer .title,
  .store-footer h3,
  .store-footer h4,
  .store-footer .title {
    font-size: 16px !important;
  }

  footer p,
  footer span,
  footer li,
  .store-footer p,
  .store-footer span,
  .store-footer li {
    font-size: 14px !important;
  }
}


/* =========================
   Floating WhatsApp Button
========================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    left: 16px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

.whatsapp-float {
  animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}