/* --- توحيد وتنسيق قسم الآراء بشكل احترافي ومتناسق 100% --- */

/* 1. نسف العناوين والأسهم */
.testimonials-heading, 
.testimonials-heading-title, 
.enhanced-products-slider-swiper-actions-start, 
.enhanced-products-slider-heading-action,
.testimonials .quote-start, 
.testimonials .quote-end {
  //  display: none !important;
}

/* 2. جعل حركة السلايدر حريرية جداً */
.testimonials .swiper-container {
    padding-top: 15px !important;
    padding-bottom: 30px !important;
}
.testimonials .swiper-wrapper {
    transition-property: transform !important;
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1) !important;
    transition-duration: 800ms !important;
    display: flex !important; /* تفعيل الفليكس لتوحيد الارتفاع */
}

/* 3. توحيد ارتفاع الكروت بالكامل ومنع التشوه */
.testimonials .swiper-slide {
    height: auto !important; /* يجعل السلايدر يدعم الارتفاع الموحد */
    display: flex !important;
}

.testimonials .swiper-slide > div {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 18px !important;
    background-color: #ffffff !important;
    padding: 20px !important;
    
    /* السر هنا: إجبار كل الكروت على نفس الارتفاع */
    min-height: 160px !important; 
    height: 100% !important;
    width: 100% !important;
    
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; /* توزيع المحتوى بالتساوي */
    
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.testimonials .swiper-slide > div:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.06) !important;
}

/* 4. تنسيق منطقة النص والتعليق */
.testimonials .testimonial {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* يخلي الكلام أو الفراغ يتوسط الكرت */
    margin-top: 12px !important;
}

.testimonials .testimonial p.mb-2 {
    font-size: 0.95rem !important;
    color: #334155 !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    text-align: center !important; /* توسيط النص ليعطي مظهر أنيق */
}

/* إذا كان التعليق فاضي، نضع نقاط جمالية خفيفة عشان ما يبان الكرت مهجور */
.testimonials .testimonial p.mb-2:empty::before,
.testimonials .testimonial p.mb-2:blank::before {
    content: "•••" !important;
    color: #cbd5e1 !important;
    font-size: 1.2rem;
    letter-spacing: 4px;
}

/* 5. إبراز وتقوية كبسولة الـ 5 نجوم */
.testimonials .rating .product-card-content-media-rating {
    background: #fef08a !important; 
    padding: 5px 12px !important;
    border-radius: 99px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.15) !important;
}
.testimonials .product-card-content-media-rating-icon {
    color: #ca8a04 !important; 
    width: 19px !important;
    height: 19px !important;
    fill: #ca8a04 !important;
}
.testimonials .product-card-content-media-rating-value {
    color: #854d0e !important;
    font-weight: 900 !important;
    font-size: 1rem !important;
}

/* 6. ترتيب بيانات العميل العلوي */
.testimonials .user-informations h4 {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}
#testimonials-index-date {
    color: #64748b !important;
    font-size: 0.75rem !important;
}

/* حل مشكلة الكرت الفاضي بوضع رسالة لطيفة */
.testimonials .testimonial p.mb-2:empty::before,
.testimonials .testimonial p.mb-2:blank::before {
    content: "⭐⭐⭐⭐⭐  تقييم ممتاز وموثوق";
    display: block;
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    font-weight: 600;
    margin-top: 15px !important;
    opacity: 0.7;
}

//footeer

/* الفوتر شفاف عشان تبان البطاقة */
footer {
  background: transparent !important;
  padding: 22px 16px !important;
  font-family: var(--font-main, "PingARLT", "Cairo", sans-serif);
}

/* ===== البطاقة البيضاء ===== */
footer .footer-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto !important;
  background:
    radial-gradient(circle at 88% 6%, rgba(255, 189, 12, 0.06), transparent 30%),
    radial-gradient(circle at 6% 90%, rgba(117, 0, 14, 0.04), transparent 28%),
    #ffffff !important;
  border-radius: 28px !important;
  padding: 46px 40px 36px !important;
  box-shadow: 0 18px 50px rgba(117, 0, 14, 0.07) !important;
  border: 1px solid rgba(117, 0, 14, 0.06) !important;
  overflow: hidden;
}

/* شريط متدرّج رفيع أعلى البطاقة */
footer .footer-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #75000e, #9b2634, #ffbd0c, #75000e);
  background-size: 220% 100%;
  animation: bpFootBar 6s ease-in-out infinite;
}

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

/* ===== الشعار ===== */
footer a[aria-label="Store Homepage"] img {
  filter: drop-shadow(0 6px 14px rgba(117, 0, 14, 0.12));
}

/* ===== وصف المتجر ===== */
footer .footer-meta p {
  color: #5b5a66 !important;
  line-height: 1.95;
}

footer .footer-meta p:empty {
  display: none !important;
}

/* ===== عناوين الأعمدة ===== */
footer h3,
footer .s-contacts-title {
  position: relative;
  color: #231f1e !important;
  font-weight: 800 !important;
  padding-bottom: 12px;
  margin-bottom: 20px !important;
}

footer h3::after,
footer .s-contacts-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #75000e, #ffbd0c);
}

@media (max-width: 767px) {
  footer h3::after,
  footer .s-contacts-title::after {
    right: 50%;
    transform: translateX(50%);
  }
}

/* ===== روابط القائمة ===== */
footer .s-menu-footer-list a,
footer .s-menu-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b6a76 !important;
  font-weight: 600;
  transition: 0.22s ease !important;
}

footer .s-menu-footer-item:hover {
  color: #75000e !important;
  transform: translateX(-4px);
}

/* ===== التواصل (واتساب / تيليجرام) ===== */
footer .s-contacts-list { gap: 14px; }

footer .s-contacts-item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #5b5a66 !important;
  font-weight: 600;
  transition: 0.22s ease !important;
}

footer .s-contacts-item:hover {
  color: #75000e !important;
}

footer .s-contacts-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(117, 0, 14, 0.07);
  color: #75000e;
  transition: 0.25s ease;
}

footer .s-contacts-item:hover .s-contacts-icon {
  background: #75000e;
  color: #ffffff;
  transform: translateY(-2px);
}

footer .s-contacts-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

footer .s-contacts-item .unicode {
  direction: ltr;
  font-size: 14px;
}

/* ===== السوشال ===== */
footer .s-social-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

footer .s-social-link { list-style: none; }

footer .s-social-link a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(117, 0, 14, 0.14);
  color: #75000e;
  transition: 0.25s ease;
}

footer .s-social-link a:hover {
  background: linear-gradient(135deg, #75000e, #9b2634);
  border-color: #75000e;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(117, 0, 14, 0.22);
}

footer .s-social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ===== الصف السفلي ===== */
footer .footer-wrapper > div:last-child {
  border-top: 1px solid rgba(117, 0, 14, 0.07);
  padding-top: 24px;
}

footer a[aria-label="Business certificate - SBC"] {
  color: #6b6a76 !important;
  transition: 0.2s ease;
}

footer a[aria-label="Business certificate - SBC"]:hover {
  color: #75000e !important;
}

/* تايلات الدفع */
footer ul li.bg-white {
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: 0.2s ease;
}

footer ul li.bg-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(117, 0, 14, 0.08);
}

/* إخفاء أيقونة الدفع المكسورة (mahally) مع تايلها الفاضي */
footer li:has(img.error) {
  display: none !important;
}

/* ===== حقوق النشر ===== */
footer .copyright-text p {
  color: #9b99a3 !important;
}

footer .copyright-text a {
  color: #6b6a76 !important;
  transition: 0.2s ease;
}

footer .copyright-text a:hover {
  color: #75000e !important;
}

@media (max-width: 560px) {
  footer { padding: 14px 8px !important; }
  footer .footer-wrapper { border-radius: 22px !important; padding: 34px 20px 28px !important; }
}

@media (prefers-reduced-motion: reduce) {
  footer .footer-wrapper::before { animation: none !important; }
}

// product 


/* ===== 1) إزالة الفراغ العلوي (العنوان الفاضي) ===== */
.enhanced-fixed-products {
  padding-top: 10px !important;
  margin-top: 0 !important;
}

.enhanced-fixed-products .container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* إخفاء ترويسة القسم الفارغة (احذف هالقاعدة لو ضفت عنوان لاحقاً) */
.enhanced-fixed-products-heading.section-heading {
  display: none !important;
}




//floating upper and down tab 

/* =========================================================
   بيجر بلس — Liquid Glass للنافبار العلوي + الشريط السفلي
   • زجاج فاتح ثابت لا يتحوّل غامق فوق الخلفيات السوداء
   • نفس الإحساس للاثنين (تطابق كامل)
   الصقه في: تصميم المتجر ← تخصيص ← CSS مخصّص
   (يغني عن ملف الشريط السفلي السابق)
   ========================================================= */

/* ===== الأساس الزجاجي المشترك ===== */
.main-navbar,
.mobile-nav-bottom {
  /* أرضية أبيض أعلى = يبقى فاتح حتى فوق الأسود */
  background: rgba(255, 255, 255, 0.62) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.05) !important;
  backdrop-filter: blur(28px) saturate(190%) brightness(1.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow:
    0 14px 42px rgba(20, 24, 50, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 -10px 22px rgba(255, 255, 255, 0.30) !important;
  overflow: hidden !important;
  isolation: isolate;
  font-family: var(--font-main, "PingARLT", "Cairo", sans-serif);
}

.mobile-nav-bottom { border-radius: 30px !important; }
.main-navbar { border-radius: 22px !important; }

/* انعكاس زجاجي علوي + بريق الزاوية (للاثنين) */
.main-navbar::before,
.mobile-nav-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(130% 90% at 12% -10%, rgba(255, 255, 255, 0.45), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* لمعة سائلة تمرّ ببطء */
.main-navbar::after,
.mobile-nav-bottom::after {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  width: 36%;
  left: -45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  filter: blur(8px);
  transform: skewX(-12deg);
  animation: bpLiquidSheen 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes bpLiquidSheen {
  0%   { left: -45%; opacity: 0; }
  18%  { opacity: 0.8; }
  55%  { left: 120%; opacity: 0; }
  100% { left: 120%; opacity: 0; }
}

/* رفع المحتوى الداخلي فوق طبقات الزجاج */
.main-navbar > *,
.mobile-nav-bottom > * {
  position: relative;
  z-index: 1;
}

/* ===== الأيقونات والعناصر (حيادية مثل iOS) ===== */
.main-navbar a,
.main-navbar button,
.mobile-nav-bottom > a,
.mobile-nav-bottom > button {
  color: #8a8a8f !important;
  transition: color 0.25s ease, transform 0.2s cubic-bezier(.3,1.4,.5,1);
}

.main-navbar svg,
.main-navbar i,
.mobile-nav-bottom svg,
.mobile-nav-bottom i {
  transition: transform 0.25s cubic-bezier(.3,1.4,.5,1);
}

.main-navbar a:hover,
.main-navbar button:hover,
.mobile-nav-bottom > a:hover,
.mobile-nav-bottom > button:hover,
.mobile-nav-bottom > a:active,
.mobile-nav-bottom > button:active {
  color: #1c1c1e !important;
}

/* الشعار يبقى واضح */
.main-navbar a[aria-label="Store Home Page"] { color: inherit !important; }
.main-navbar a[aria-label="Store Home Page"] img {
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
}

/* ===== الشريط السفلي: عناصره + لمسة اللمس ===== */
.mobile-nav-bottom label {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  cursor: pointer;
}

.mobile-nav-bottom > a::before,
.mobile-nav-bottom > button::before {
  content: "";
  position: absolute;
  inset: -9px -13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 4px 12px rgba(20, 24, 50, 0.12);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.24s ease, transform 0.24s cubic-bezier(.3,1.4,.5,1);
  z-index: -1;
}

.mobile-nav-bottom > a:hover,
.mobile-nav-bottom > button:hover,
.mobile-nav-bottom > a:active,
.mobile-nav-bottom > button:active {
  transform: translateY(-3px);
}

.mobile-nav-bottom > a:hover::before,
.mobile-nav-bottom > button:hover::before,
.mobile-nav-bottom > a:active::before,
.mobile-nav-bottom > button:active::before {
  opacity: 1;
  transform: scale(1);
}

.mobile-nav-bottom > a:active svg,
.mobile-nav-bottom > button:active svg,
.mobile-nav-bottom > a:active i,
.mobile-nav-bottom > button:active i {
  transform: scale(0.88);
}

/* ===== لمسة لمس للنافبار العلوي (دسكتوب/جوال) ===== */
.main-navbar .header-btn,
.main-navbar button[aria-label="user-icon"],
.main-navbar > div > div > button {
  border-radius: 12px;
  transition: color 0.25s ease, background 0.22s ease, transform 0.2s ease;
}

.main-navbar button:hover svg,
.main-navbar a:hover svg {
  transform: scale(1.05);
}

/* أيقونة السلة ترث اللون */
.main-navbar custom-salla-cart-summary svg[slot="icon"],
.mobile-nav-bottom custom-salla-cart-summary svg[slot="icon"] {
  color: inherit !important;
}

/* ===== شارة عدد السلة (نقطة iOS الحمراء) ===== */
.main-navbar custom-salla-cart-summary,
.mobile-nav-bottom custom-salla-cart-summary { position: relative; }

.main-navbar .s-cart-summary-count,
.mobile-nav-bottom .s-cart-summary-count {
  position: absolute;
  top: -7px;
  left: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff3b30, #d70015) !important;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 7px rgba(215, 0, 21, 0.4);
}

/* ===== الوضع الليلي ===== */
.dark .main-navbar,
.dark .mobile-nav-bottom {
  background: rgba(28, 28, 34, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

.dark .main-navbar::before,
.dark .mobile-nav-bottom::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(130% 90% at 12% -10%, rgba(255, 255, 255, 0.14), transparent 55%);
}

.dark .main-navbar a,
.dark .main-navbar button,
.dark .mobile-nav-bottom > a,
.dark .mobile-nav-bottom > button {
  color: #aeaeb6 !important;
}

.dark .main-navbar a:hover,
.dark .main-navbar button:hover,
.dark .mobile-nav-bottom > a:hover,
.dark .mobile-nav-bottom > button:hover,
.dark .mobile-nav-bottom > a:active,
.dark .mobile-nav-bottom > button:active {
  color: #ffffff !important;
}

.dark .mobile-nav-bottom > a::before,
.dark .mobile-nav-bottom > button::before {
  background: rgba(255, 255, 255, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .main-navbar::after,
  .mobile-nav-bottom::after { animation: none !important; opacity: 0 !important; }
  .main-navbar a, .main-navbar button,
  .main-navbar svg, .main-navbar i,
  .mobile-nav-bottom > a, .mobile-nav-bottom > button,
  .mobile-nav-bottom svg, .mobile-nav-bottom i,
  .mobile-nav-bottom > a::before, .mobile-nav-bottom > button::before { transition: none !important; }
}