/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

.affiliate-product-wrapper {
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
	position: relative;
}

.affiliate-title {
  font-size: 34px;
  margin-bottom: 30px;
  color: #0F172A;
}

.affiliate-layout {
  display: flex;
  gap: 40px;
}

.affiliate-image img {
  max-width: 600px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,.18);
}

/* Price Box */
.affiliate-price-box {
  background: #0F172A;
  border: 2px solid rgba(200,169,81,.35);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.affiliate-price-box .price {
  font-size: 28px;
  font-weight: 700;
  color: #C8A951;
}

.affiliate-price-box .bonus {
  font-size: 16px;
  font-weight: 600;
  color: rgba(248,250,252,.92);
  margin-top: 8px;
}

.affiliate-price-box .note {
  font-size: 14px;
  color: rgba(248,250,252,.78);
  margin-top: 6px;
}

/* Features */
.affiliate-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.affiliate-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #1E293B;
}

.affiliate-features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #C8A951;
  font-weight: bold;
}

/* Button */
.affiliate-btn {
  display: inline-block;
  margin-top: 20px;
  background: linear-gradient(135deg, #C8A951, #A8892E);
  color: #0F172A;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
  box-shadow: 0 10px 22px rgba(200,169,81,.20);
}

.affiliate-btn:hover {
  transform: translateY(-2px);
	color: #fff;
  background: linear-gradient(135deg, #A8892E, #7A6422);
  box-shadow: 0 14px 26px rgba(0,0,0,.20);
}

/* Mobile */
@media (max-width: 768px) {
  .affiliate-layout {
    flex-direction: column;
  }

  .affiliate-title {
    font-size: 26px;
  }
}

.affiliate-image {
  position: relative;
  display: inline-block;
}

.badge-top-deal {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #C8A951, #A8892E);
  color: #0F172A;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  z-index: 10;
  animation: pulse 2s infinite;
  overflow: hidden;
}

/* Pulse animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Shine effect */
.badge-top-deal::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.35);
  transform: skewX(-25deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

.offer-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 18px 0;
  font-size: 16px;
}

.offer-rating .stars {
  display: inline-flex;
  gap: 2px;
  line-height: 1;
}

.offer-rating .star {
  font-size: 18px;
  position: relative;
}

.offer-rating .star.full {
  color: #C8A951;
}

.offer-rating .star.empty {
  color: #d9d9d9;
}

/* نصف نجمة */
.offer-rating .star.half {
  color: #d9d9d9; /* الخلفية الرمادية */
}

.offer-rating .star.half::before {
  content: "★";
  position: absolute;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: #C8A951; /* النصف الذهبي */
}

.offer-rating .rating-text {
  color: #64748B;
  font-size: 14px;
}

.offer-rating-advanced {
  padding: 14px;
  border-radius: 16px;
  margin-bottom: 15px;
  font-size: 14px;
  border: 1px solid rgba(15,23,42,.08);
  background: #F8FAFC;
  color: #1E293B;
}

.rating-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 6px;
}

.rating-bar {
  background: rgba(15,23,42,0.10);
  height: 6px;
  border-radius: 6px;
  overflow: hidden;
}

.rating-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
}

/* Color Variations */
.rating-excellent {
  background: #F8FAFC;
  color: #1E293B;
}
.rating-excellent .rating-fill {
  background: linear-gradient(90deg, #C8A951, #A8892E);
}

.rating-good {
  background: #F8FAFC;
  color: #1E293B;
}
.rating-good .rating-fill {
  background: linear-gradient(90deg, #C8A951, #A8892E);
}

.rating-medium {
  background: #F8FAFC;
  color: #1E293B;
}
.rating-medium .rating-fill {
  background: linear-gradient(90deg, #C8A951, #A8892E);
}

.rating-low {
  background: #F8FAFC;
  color: #1E293B;
}
.rating-low .rating-fill {
  background: linear-gradient(90deg, #C8A951, #A8892E);
}

.rating-bad {
  background: #F8FAFC;
  color: #1E293B;
}
.rating-bad .rating-fill {
  background: linear-gradient(90deg, #C8A951, #A8892E);
}

.back-home-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 22px;
  border-radius: 30px;
  background: #F8FAFC;
  color: #0F172A;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(15,23,42,.10);
}

.back-home-btn:hover {
  background: #0F172A;
  color: #C8A951;
  border-color: rgba(200,169,81,.35);
  transform: translateY(-2px);
}

.related-offers {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(15,23,42,.10);
}

.related-title {
  font-size: 22px;
  margin-bottom: 18px;
  color: #0F172A;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

.related-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.related-card-body {
  padding: 12px;
}

.related-card-title {
  font-weight: 700;
  color: #0F172A;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.related-card-price {
  color: #A8892E;
  font-weight: 700;
  margin-bottom: 6px;
}

.related-card-bonus {
  color: #166534;
  font-weight: 600;
  font-size: 13px;
}

@media (max-width: 1000px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .related-grid { grid-template-columns: 1fr; }
  .related-card img { height: 200px; }
}
.related-offers{
  width: 100%;
  clear: both;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(15,23,42,.10);
}

.affiliate-share{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.share-label{
  font-weight:700;
  font-size:14px;
  margin-right:4px;
  color:#1E293B;
}

.share-btn{
  width:40px;
  height:40px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease;
  padding:0;
  text-decoration:none;
}

.share-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 18px rgba(0,0,0,.15);
}

.share-btn svg{
  width:18px;
  height:18px;
  fill:currentColor;
}

.share-btn.native{ background:#F8FAFC; color:#0F172A; }
.share-btn.whatsapp{ background:#25D366; color:#fff; border-color:transparent; }
.share-btn.facebook{ background:#1877F2; color:#fff; border-color:transparent; }
.share-btn.telegram{ background:#0088cc; color:#fff; border-color:transparent; }
.share-btn.x{ background:#000; color:#fff; border-color:transparent; }
.share-btn.copy{ background:#F8FAFC; color:#0F172A; }

.share-toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  background:#0F172A;
  color:#F8FAFC;
  padding:10px 14px;
  border-radius:10px;
  font-size:14px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  z-index:9999;
  border: 1px solid rgba(200,169,81,.25);
}

.share-toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(-6px);
}
/* اخفاء زر Web Share افتراضياً */
.mobile-only {
  display: none;
}

/* يظهر فقط على الشاشات الصغيرة */
@media (max-width: 768px) {
  .mobile-only {
    display: inline-flex;
  }
}
.share-btn.email{
  background:#64748B;
  color:#fff;
  border-color:transparent;
}

.home-offers{ margin:60px 0; }
.home-offers-title{ font-size:26px; margin:0 0 18px 0; color:#0F172A; }

.home-offers-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:16px;
}

.home-offer-card{
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-offer-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.home-offer-image img{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}

.home-offer-body{ padding:12px; }
.home-offer-name{
  font-weight:800; color:#0F172A; text-decoration:none;
  display:block; margin-bottom:8px; line-height:1.3;
}

.home-offer-price{ color:#A8892E; font-weight:800; margin-bottom:6px; }
.home-offer-bonus{ color:#166534; font-weight:700; font-size:13px; margin-bottom:10px; }

.home-offer-actions{
  display:flex; gap:10px; align-items:center;
}

.home-offer-cta{
  flex:1;
  display:inline-flex; justify-content:center; align-items:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(200,169,81,.35);
  color:#0F172A; text-decoration:none; font-weight:800;
  background:#fff;
}

.home-offer-cta:hover{
  background: linear-gradient(135deg, #C8A951, #A8892E);
  color:#0F172A;
}

.home-offer-more{
  display:inline-flex; justify-content:center; align-items:center;
  padding:10px 12px;
  border-radius:12px;
  background:#F8FAFC;
  color:#0F172A; text-decoration:none; font-weight:700;
  border:1px solid rgba(15,23,42,.10);
}

@media (max-width: 1000px){
  .home-offers-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .home-offers-grid{ grid-template-columns: 1fr; }
  .home-offer-image img{ height:220px; }
}

.offers-filter-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin: 10px 0 18px 0;
}

.offers-filter-search{
  flex:1;
  min-width:240px;
  padding:12px 14px;
  border-radius:16px; /* 👈 دائري */
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  color:#1E293B;
}

.offers-filter-select{
  padding:12px 14px;
  border-radius:16px; /* 👈 دائري */
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  color:#1E293B;
}

/* ✅ Loading خفيف للنتائج فقط */
#offersResults.is-loading{
  opacity: .55;
  pointer-events:none;
  filter: blur(.2px);
}

/* Pagination شكل مرتب */
.offers-pagination{
  margin-top: 22px;
}
.offers-pagination .page-numbers{
  display:inline-block;
  margin-right:6px;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.10);
  text-decoration:none;
  color:#0F172A;
}
.offers-pagination .current{
  background:#0F172A;
  color:#C8A951;
  border-color: rgba(200,169,81,.35);
}

/* اجبار حقل البحث يكون دائري */
.offers-filter .offers-filter-search,
.offers-filter input[type="search"].offers-filter-search{
  border-radius: 999px !important;
  -webkit-appearance: none;
  appearance: none;
}

.offers-filter-row{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  margin: 10px 0 18px 0;
}

.offers-filter .offers-filter-search{
  flex:1; min-width:240px;
  padding:12px 14px;
  border-radius:999px !important;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  color:#1E293B;
}

.offers-filter .offers-filter-search:focus{
  outline:none;
  border-color: rgba(200,169,81,.60);
  box-shadow: 0 0 0 3px rgba(200,169,81,0.18);
}

.offers-filter .offers-filter-select{
  padding:12px 14px;
  border-radius:999px !important;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  color:#1E293B;
}

#offersResults.is-loading{
  opacity:.55;
  pointer-events:none;
}

.offers-filter .offers-filter-select{
  border-radius: 999px !important;
}




/* ===== Archive Layout (Check24-style) ===== */
.mk-archive-wrap{
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.mk-archive-head{
  margin-bottom: 18px;
}
.mk-archive-title{
  margin:0 0 6px 0;
  color:#0F172A;
  font-size: 34px;
}
.mk-archive-sub{
  margin:0;
  color:#64748B;
}

/* Two-column layout */
.mk-archive-layout{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items:start;
}

/* Sidebar */
.mk-sidebar{
  position: sticky;
  top: 18px;
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.mk-filter-block{ margin-bottom: 12px; }
.mk-filter-row-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mk-label{
  display:block;
  font-size: 12px;
  font-weight: 800;
  color:#0F172A;
  margin-bottom: 6px;
}

.mk-input, .mk-select{
  width:100%;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background:#fff;
  color:#1E293B;
}
.mk-input:focus, .mk-select:focus{
  outline:none;
  border-color: rgba(200,169,81,.60);
  box-shadow: 0 0 0 3px rgba(200,169,81,0.18);
}

.mk-reset{
  width:100%;
  padding: 12px 14px;
  border-radius: 12px;
  border:1px solid rgba(15,23,42,.10);
  background:#F8FAFC;
  font-weight: 800;
  cursor:pointer;
  color:#0F172A;
}
.mk-reset:hover{
  background:#0F172A;
  color:#C8A951;
  border-color: rgba(200,169,81,.35);
}

/* Results box */
.mk-results-box.is-loading{
  opacity: .6;
  pointer-events:none;
  filter: blur(.2px);
}

.mk-results-top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin: 8px 0 12px 0;
}
.mk-results-count{
  font-weight: 900;
  color:#0F172A;
}

/* Cards grid */
.mk-offers-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mk-offer-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mk-offer-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}

.mk-offer-image img{
  width:100%;
  height: 170px;
  object-fit: cover;
  display:block;
}

.mk-offer-body{ padding: 12px; }
.mk-offer-title{
  display:block;
  font-weight: 900;
  color:#0F172A;
  text-decoration:none;
  line-height: 1.3;
  margin-bottom: 8px;
}
.mk-offer-meta{ margin-bottom: 10px; }
.mk-offer-price{
  font-weight: 900;
  color:#A8892E;
  margin-bottom: 6px;
}
.mk-offer-bonus{
  font-weight: 800;
  color:#166534;
  font-size: 13px;
}

.mk-offer-actions{
  display:flex;
  gap: 10px;
}

.mk-offer-cta{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(200,169,81,.35);
  background:#fff;
  color:#0F172A;
  text-decoration:none;
  font-weight: 900;
}
.mk-offer-cta:hover{
  background: linear-gradient(135deg, #C8A951, #A8892E);
  color:#0F172A;
}
.mk-offer-details{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(15,23,42,.10);
  background:#F8FAFC;
  color:#0F172A;
  text-decoration:none;
  font-weight: 800;
}

/* Pagination */
.mk-pagination{
  margin-top: 18px;
}
.mk-pagination .page-numbers{
  display:inline-block;
  padding: 8px 12px;
  margin-right: 6px;
  border-radius: 12px;
  border:1px solid rgba(15,23,42,.10);
  color:#0F172A;
  text-decoration:none;
}
.mk-pagination .current{
  background:#0F172A;
  color:#C8A951;
  border-color: rgba(200,169,81,.35);
}

/* Responsive */
@media (max-width: 1100px){
  .mk-archive-layout{ grid-template-columns: 1fr; }
  .mk-sidebar{ position: relative; top: auto; }
  .mk-offers-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .mk-offers-grid{ grid-template-columns: 1fr; }
  .mk-filter-row-2{ grid-template-columns: 1fr; }
}

/* Cairo للعربي + إجبار العناوين */
html[lang="ar"] body,
html[dir="rtl"] body,
body.rtl,
body.lang-ar,
body.pll-lang-ar{
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}

/* العناوين */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6,
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4, body.lang-ar h5, body.lang-ar h6,
body.pll-lang-ar h1, body.pll-lang-ar h2, body.pll-lang-ar h3, body.pll-lang-ar h4, body.pll-lang-ar h5, body.pll-lang-ar h6{
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}



/* =========================
   RTL Arabic Styling
========================= */



/* Price box */
html[dir="rtl"] .affiliate-price-box {
  text-align: right;
}

/* Features */
html[dir="rtl"] .affiliate-features li {
  padding-right: 28px;
  padding-left: 0;
}

html[dir="rtl"] .affiliate-features li::before {
  right: 0;
  left: auto;
}

/* الأزرار */
html[dir="rtl"] .affiliate-btn {
  text-align: center;
}

/* زر الرجوع */
html[dir="rtl"] .back-home-btn {
  direction: rtl;
}

/* Related offers grid */
html[dir="rtl"] .related-card-body {
  text-align: right;
}

/* Home offers */
html[dir="rtl"] .home-offer-body {
  text-align: right;
}

/* Share section */
html[dir="rtl"] .affiliate-share {
  justify-content: flex-start;
}

/* Filter inputs */
html[dir="rtl"] .offers-filter-row {
  flex-direction: row-reverse;
}




/* ✅ Fix stars in Arabic (RTL) */
html[lang="ar"] .offer-rating .stars,
body.rtl .offer-rating .stars {
  direction: ltr;
  unicode-bidi: bidi-override;
}

.offer-rating .star{
  display:inline-block;
  line-height:1;
}

.offer-rating .star.half{
  position:relative;
}

.offer-rating .star.half::before{
  left:0 !important;
  right:auto !important;
  width:50%;
}


/* ✅ Ensure badge positioning works */
.affiliate-image{
  position: relative;
}



html:lang(ar) .hfe-icon,
body:lang(ar) .hfe-icon{
  float: right;
  margin-left: 8px;
  margin-right: 0;
}

.forminator-title-ar h2{
  float: right;
 
}

html[lang="ar"] .forminator-checkbox {
  float: right;
  padding-left: 20px;
}


/* إزالة السهم الافتراضي *//* ✅ Force custom arrow (override Astra) */
.offers-filter select.offers-filter-select,
.mk-filters select.mk-select,
.offers-filter select,
.mk-filters select{
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  background-color: #fff !important;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  background-position: right 18px center !important;

  padding-right: 52px !important;
  padding-left: 18px !important;
  border-radius: 999px !important;
}

/* RTL */
html[lang="ar"] .offers-filter select.offers-filter-select,
html[lang="ar"] .mk-filters select.mk-select,
html[lang="ar"] .offers-filter select,
html[lang="ar"] .mk-filters select{
  background-position: left 18px center !important;
  padding-left: 52px !important;
  padding-right: 18px !important;
}

/* ✅ Title: always 2 lines max */
.home-offer-name,
.mk-offer-title,
.related-card-title{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;   /* سطرين */
  overflow: hidden;
  min-height: calc(1.3em * 2); /* نفس line-height تبعك */
}

/* ✅ Make card body stretch and push actions to bottom */
.home-offer-card{
  display:flex;
  flex-direction:column;
  height:100%;
}

.home-offer-body{
  display:flex;
  flex-direction:column;
  flex:1;
}

.home-offer-actions{
  margin-top:auto; /* 👈 الأزرار دائماً تحت */
}

.mk-offer-card{
  display:flex;
  flex-direction:column;
  height:100%;
}

.mk-offer-body{
  display:flex;
  flex-direction:column;
  flex:1;
}

.mk-offer-actions{
  margin-top:auto;
}

.related-card{
  display:flex;
  flex-direction:column;
  height:100%;
}

.related-card-body{
  display:flex;
  flex-direction:column;
  flex:1;
}

/* ✅ Arabic font for dropdowns (select + options) */
html[lang="ar"] .offers-filter select,
html[lang="ar"] .mk-filters select,
html[lang="ar"] .offers-filter select option,
html[lang="ar"] .mk-filters select option{
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  font-weight: 600;
}









/* ===== Floating Bar PREMIUM (NO PRIMARY) ===== */

.mk-floatbar--premium{
  position: fixed;
  left: 50%;
  bottom: 14px;
  top: auto;
  transform: translateX(-50%);
  z-index: 9999;

  isolation: isolate;

  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 10px;
  align-items: center;

  padding: 10px;
  border-radius: 999px;
  max-width: calc(100% - 14px);

  background: rgba(255,255,255,.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 16px 44px rgba(0,0,0,.18);

  transition: transform .28s ease, opacity .28s ease;
}

/* Glass aura */
.mk-floatbar--premium::before{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius: 999px;
  background:
    radial-gradient(60% 100% at 50% 100%, rgba(0,0,0,.12) 0%, rgba(0,0,0,0) 60%),
    radial-gradient(40% 60% at 20% 20%, rgba(64,120,255,.18) 0%, rgba(64,120,255,0) 65%),
    radial-gradient(40% 60% at 80% 10%, rgba(255,120,60,.14) 0%, rgba(255,120,60,0) 65%);
  filter: blur(10px);
  opacity: .9;
  z-index: -1;
  pointer-events: none;
}

.mk-floatbar--premium.is-hidden{
  opacity: 0;
  transform: translateX(-50%) translateY(18px);
  pointer-events: none;
}

/* Buttons */
.mk-floatbar--premium .mk-float-item{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 11px 14px;
  border-radius: 999px;
  text-decoration: none;

  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.08);

  color: #111;
  font-weight: 800;
  white-space: nowrap;
  min-width: 0;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.mk-floatbar--premium .mk-float-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0,0,0,.14);
}

/* Icons */
.mk-floatbar--premium .mk-ico{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform .2s ease;
}

.mk-floatbar--premium .mk-ico svg{
  width: 18px;
  height: 18px;
  display: block;
  color: currentColor;
}

/* Icon hover motion */
.mk-floatbar--premium .mk-float-item:hover .mk-ico{
  transform: translateY(-1px) rotate(-6deg) scale(1.06);
}

/* Active state */
.mk-floatbar--premium .mk-float-item.is-active{
  background: rgba(17,17,17,.06);
  border-color: rgba(17,17,17,.18);
  box-shadow: 0 10px 18px rgba(0,0,0,.10);
}

/* Tooltip */
.mk-floatbar--premium .mk-float-tip{
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  background: rgba(17,17,17,.95);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: 0 14px 26px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
}

.mk-floatbar--premium .mk-float-tip::after{
  content:"";
  position:absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: rgba(17,17,17,.95);
  rotate: 45deg;
  border-radius: 2px;
}

/* Hide tooltip mobile */
@media (max-width:900px){
  .mk-floatbar--premium .mk-float-tip{ display:none; }
}

/* ===== MOBILE 2x2 (ALWAYS BOTTOM) ===== */
@media (max-width:768px){

  .mk-floatbar--premium{
    top: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important; /* iPhone safe area */

    width: calc(100% - 14px);
    max-width: calc(100% - 14px);

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;

    border-radius: 18px;
  }

  .mk-floatbar--premium .mk-float-item{
    width: 100%;
    justify-content: center;
    padding: 12px 10px;
    gap: 8px;
  }

  .mk-floatbar--premium .mk-txt{
    display: inline-block !important;
    max-width: 100%;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* الإخفاء للأسفل لأنه بالأسفل */
  .mk-floatbar--premium.is-hidden{
    transform: translateX(-50%) translateY(18px);
  }
}







/* ===== Floating Actions (PRO - SOLID) ===== */

.mk-float-actions{
  position: fixed;
  right: 16px;
  bottom: calc(90px + env(safe-area-inset-bottom));
  top: auto;
  transform: none;
  z-index: 99999;

  display:flex;
  flex-direction:column;
  gap:12px;
}

.mk-float-action{
  position: relative;

  width: 54px;
  height: 54px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  border: 1px solid rgba(0,0,0,.10);

  /* ✅ خلفية صلبة (بدون شفافية) */
  background: #fff;

  box-shadow:
    0 14px 28px rgba(0,0,0,.18),
    0 2px 0 rgba(255,255,255,.35) inset;

  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.mk-float-action:hover{
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px rgba(0,0,0,.22),
    0 2px 0 rgba(255,255,255,.35) inset;
}

.mk-float-action:active{
  transform: translateY(0);
  filter: brightness(.98);
}

.mk-float-action svg{
  width: 24px;
  height: 24px;
  display: block;
}

/* ===== WhatsApp (solid + subtle gradient) ===== */
.mk-float-action.mk-wa{
  border-color: rgba(37,211,102,.35);
  background: linear-gradient(180deg, #31e07b 0%, #25D366 100%);
}

.mk-float-action.mk-wa svg{
  fill: #fff;
}

/* Pulse ring (خفيف) */
.mk-float-action.mk-wa::before{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:999px;
  border: 2px solid rgba(37,211,102,.35);
  opacity: .0;
  transform: scale(.92);
  animation: mkPulse 2.2s ease-out infinite;
  pointer-events:none;
}

@keyframes mkPulse{
  0%{ opacity:.0; transform:scale(.92); }
  25%{ opacity:.35; }
  100%{ opacity:0; transform:scale(1.12); }
}

/* ===== Call (solid dark premium) ===== */
.mk-float-action.mk-call{
  border-color: rgba(15,23,42,.22);
  background: linear-gradient(180deg, #1b2a49 0%, #0F172A 100%);
}

.mk-float-action.mk-call{
  color: #fff;
}
.mk-float-action.mk-call svg{
  fill: currentColor;
}

/* Hover ring */
.mk-float-action:hover::after{
  /* إذا عندك tooltip عبر ::after لا تغيره هنا */
}

/* ===== Tooltip (إذا كنت تستخدم data-tip) ===== */
.mk-float-action::after{
  content: attr(data-tip);

  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);

  background: rgba(17,17,17,.95);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 8px;

  white-space: nowrap;
  opacity: 0;
  pointer-events: none;

  transition: .18s ease;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.mk-float-action::before{
  content:"";
  position:absolute;
  right: calc(100% + 4px);
  top:50%;
  transform: translateY(-50%) rotate(45deg);

  width:10px;
  height:10px;
  background: rgba(17,17,17,.95);

  opacity:0;
  transition:.18s ease;
}

.mk-float-action:hover::after{
  opacity:1;
  transform: translateY(-50%) translateX(0);
}

.mk-float-action:hover::before{
  opacity:1;
}

/* Hide tooltip on mobile */
@media (max-width:768px){
  .mk-float-actions{
    right: 12px;
  }
  .mk-float-action{
    width: 48px;
    height: 48px;
  }
  .mk-float-action::after,
  .mk-float-action::before{
    display:none;
  }
}

/* ===== OPTIONAL: إذا بدك توقف نبض الواتساب ===== */
.mk-float-action.mk-wa::before{ animation:none; display:none; }

/* ===== Floating action tooltip ===== */
.mk-float-action{
  position: relative;
}

.mk-float-action::after{
  content: attr(data-tip);

  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);

  background: rgba(17,17,17,.95);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 8px;

  white-space: nowrap;
  opacity: 0;
  pointer-events: none;

  transition: .18s ease;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.mk-float-action::before{
  content:"";
  position:absolute;
  right: calc(100% + 4px);
  top:50%;
  transform: translateY(-50%) rotate(45deg);

  width:10px;
  height:10px;
  background: rgba(17,17,17,.95);

  opacity:0;
  transition:.18s ease;
}

/* hover */
.mk-float-action:hover::after{
  opacity:1;
  transform: translateY(-50%) translateX(0);
}

.mk-float-action:hover::before{
  opacity:1;
}

/* لا يظهر على الموبايل */
@media (max-width:768px){
  .mk-float-action::after,
  .mk-float-action::before{
    display:none;
  }
}

.mk-c24-proxy{
  width:100%;
  height:900px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.1);
}

.mk-c24-proxy iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

@media (max-width: 768px){
  .mk-floatbar--premium > a.mk-float-item:last-of-type{
    grid-column: 1 / -1;
    justify-self: center;
  }
}

.home-offer-image{
  position: relative;
  display: block;
}

.home-offer-image .badge-top-deal{
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
}

.affiliate-image,
.home-offer-image,
.related-card,
.related-card-image,
.mk-offer-image{
  position: relative;
}

.badge-top-deal{
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  z-index: 50 !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none;
}
