/* =========================================
   eShop - Center product images (All pages)
   ========================================= */
.eshop-product-image,
.eshop-product-image img,
.product-image,
.product-image img {
  float: none !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =========================================
   eShop - Center category images
   ========================================= */

/* توسيط محتوى الكاتجوري */
.eshop-category,
.eshop-category-wrap,
.eshop-category-item {
  text-align: center;
}

/* توسيط اللينك */
.eshop-category a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* توسيط الصورة نفسها */
.eshop-category img,
.eshop-category-wrap img {
  display: block;
  margin: 0 auto;
}

/* =========================================
   eShop - Center manufacturer images (FIX)
   ========================================= */

/* توسيط الكارت نفسه */
.eshop-manufacturer-wrap {
  text-align: center;
}

/* توسيط ديف الصورة */
.eshop-manufacturer-wrap .image {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* توسيط اللينك */
.eshop-manufacturer-wrap .image a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* توسيط الصورة نفسها */
.eshop-manufacturer-wrap .image img {
  display: block;
  margin: 0 auto;
}

/* ===============================
   EShop Prev/Next (AR + EN) - FIX ALIGN + ARROWS
   =============================== */

/* Hide original product names + basic style */
.eshop-pre-nav a,
.eshop-next-nav a {
  font-size: 0 !important;
  position: relative;
  padding: 8px 14px;
  font-weight: 600;
  color: #0d6efd;
  text-decoration: none;
  display: inline-block;
  float: none !important; /* مهم عشان مايتعارضش مع float-start/end */
}

/* -------- Alignment (LTR / EN) -------- */
html[lang^="en"] .eshop-pre-nav { text-align: left; }
html[lang^="en"] .eshop-next-nav { text-align: right; }

/* English text */
html[lang^="en"] .eshop-pre-nav a::after {
  content: "← Previous Product";
  font-size: 14px;
}
html[lang^="en"] .eshop-next-nav a::after {
  content: "Next Product →";
  font-size: 14px;
}

/* -------- Alignment (RTL / AR) -------- */
html[lang^="ar"] .eshop-pre-nav { text-align: right; }
html[lang^="ar"] .eshop-next-nav { text-align: left; }

/* Arabic text (arrows mirrored for RTL) */
html[lang^="ar"] .eshop-pre-nav a::after {
  content: "المنتج السابق ←";
  font-size: 14px;
}
html[lang^="ar"] .eshop-next-nav a::after {
  content: "→ المنتج التالي";
  font-size: 14px;
}

/* Hover */
.eshop-pre-nav a:hover,
.eshop-next-nav a:hover {
  color: #084298;
}

/* Optional: on small screens center them */
@media (max-width: 768px) {
  .eshop-pre-nav,
  .eshop-next-nav {
    text-align: center !important;
    margin-bottom: 6px;
  }
}

html[lang^="ar"] .eshop-pre-nav a::after { content: "→ المنتج السابق"; font-size: 14px; }
html[lang^="ar"] .eshop-next-nav a::after { content: "المنتج التالي ←"; font-size: 14px; }

html[lang^="en"] .eshop-pre-nav a::after { content: "← Previous Product"; font-size: 14px; }
html[lang^="en"] .eshop-next-nav a::after { content: "Next Product →"; font-size: 14px; }

/* =========================
   CLS FIX (Global for Products)
   ========================= */

/* 1) Main product image / gallery: reserve space */
body .product-main-image,
body .product-image,
body .product-gallery,
body .product-images,
body .eshop-product-image,
body .eshop-product-gallery {
  width: 100%;
  aspect-ratio: 1 / 1;      /* مربع لمعظم صور المنتجات */
  overflow: hidden;
}

body .product-main-image img,
body .product-image img,
body .product-gallery img,
body .product-images img,
body .eshop-product-image img,
body .eshop-product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* غيّرها cover لو عايز تملا الإطار */
  display: block;
}

/* 2) Thumbnails: prevent layout jump */
body .product-thumbs,
body .eshop-product-thumbs {
  min-height: 90px;         /* عدّلها حسب تصميمك */
}

body .product-thumbs img,
body .eshop-product-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  display: block;
}

/* 3) Content/description images: prevent jumps */
body .product-details img,
body .product-description img,
body .eshop-product-description img,
body .eshop-product-info img,
body .itemFullText img,
body .itemIntroText img,
body .com-content-article img,
body .com-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 4) If editor images come without width/height, reserve a safe box */
body .product-details img:not([width]):not([height]),
body .product-description img:not([width]):not([height]),
body .eshop-product-description img:not([width]):not([height]),
body .com-content-article img:not([width]):not([height]),
body .com-content img:not([width]):not([height]) {
  aspect-ratio: 16 / 9;     /* مناسب للبانرات/سكرينات الشرح */
  object-fit: contain;
}

/* 5) Small icon-like images inside rows (optional but useful) */
body .product-details .row img,
body .product-description .row img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* 6) Reduce tiny shifts from inline icons */
body i,
body svg {
  display: inline-block;
}
.cc-window,
.cookie-bar {
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}