/* =========================
   Custom Style – Sway-1 Store
   ========================= */

/* ألوان الهوية */
:root{
  --topbar-bg: #f9e8c4;     /* خلفية الشريط العلوي */
  --page-bg: #1b365d;       /* كحلي خلفية عامة */
  --text-light: #f6e4c4;
  --text-dark: #1b365d;
  --transition-fast: .3s ease;
}

/* خلفية عامة للمتجر */
html, body, .app-inner, .page-content, .content {
  background-color: var(--page-bg) !important;
  color: var(--text-light) !important;
}

/* الشريط العلوي */
header, .top-navbar, .main-nav-container {
  background-color: var(--topbar-bg) !important;
  color: var(--text-dark) !important;
}
header a, .top-navbar a, .main-nav-container a {
  color: var(--text-dark) !important;
}
header a:hover, .top-navbar a:hover, .main-nav-container a:hover {
  color: var(--text-dark) !important;
}

/* نصوص داخل البودي والكروت – تظليل مناسب */
p, h1, h2, h3, h4, h5, h6, li {
  color: var(--text-light) !important;
}

/* أزرار مثلاً – مثال لتنسيق عام */
.s-button-element, .s-button-btn {
  transition: background var(--transition-fast), color var(--transition-fast);
}

/* ميديا كويري بسيطة للتأكد */
@media (max-width: 768px) {
  header, .top-navbar {
    padding: 0.5rem 1rem;
  }
}
/* =========================
   إزالة الخلفية من البنرات PNG – ثيم رائد
   ========================= */

/* إزالة الخلفية والظل من جميع أقسام البنرات */
.s-block--banners,
.s-block--banners .container,
.s-block--banners .grid,
.banner-entry,
.banner,
.square-photos,
.lazy__bg,
.lazy__img {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* البنرات ذات الصور الشفافة تظهر بدون خلفية */
.banner-entry img,
.banner img,
.square-photos img,
.lazy__bg img,
.lazy__img img {
  background: transparent !important;
  mix-blend-mode: normal !important;
  object-fit: contain !important;
}

/* معالجة الصور الخلفية المحملة عبر lazy__bg */
.banner-entry .lazy__bg {
  background-color: transparent !important;
  background-image: inherit !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
  border-radius: 0 !important;
}

/* البنرات الثابتة (Fixed Banner) نفس المعاملة */
section.s-block.s-block--fixed-banner,
section.s-block.s-block--fixed-banner .container,
section.s-block.s-block--fixed-banner .banner--fixed,
section.s-block.s-block--fixed-banner .banner--fixed img {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  object-fit: contain !important;
}

/* تأكيد على أن الصور لا تتأثر بأي overlay من الثيم */
.s-block--banners::before,
.banner-entry::before,
.lazy__bg::before {
  content: none !important;
}

/* =========================
   تنسيق كروت آراء العملاء – ثيم رائد
   ========================= */
.s-reviews-testimonial__text p,
.s-reviews-testimonial__text,
.s-reviews-testimonial__author,
.s-reviews-testimonial__role,
.s-reviews-testimonial__rating i,
.s-reviews-testimonial__quote {
  color: #1a1a1a !important; /* لون غامق واضح */
}

/* جعل الكروت نفسها خلفيتها فاتحة خفيفة عشان التباين */
.s-reviews-testimonial {
  background: #f8f8f8 !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

/* تصغير الشفافية في الكروت غير النشطة */
.s-reviews-container .swiper-slide:not(.swiper-slide-active) .s-reviews-testimonial {
  opacity: 0.6 !important;
}

/* الكرت النشط (الموجود في المنتصف) واضح أكثر */
.s-reviews-container .swiper-slide-active .s-reviews-testimonial {
  opacity: 1 !important;
  transform: scale(1.03);
  transition: all .3s ease;
}


/* =========================
   Product Page – متجر سواي
   ========================= */

/* حاوية المنتج الكاملة */
.product-page, .page-product-single {
  padding: 0 1rem;
  max-width: 1200px;
  margin-inline: auto;
  color: #f6e4c4; /* نص أبيض على الخلفية الداكنة */
  background-color: #1a2433; /* الخلفية كحلي داكن */
}

/* صور المنتج الكبيرة */
.product-gallery, .s-product-gallery {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.product-gallery img, .s-product-gallery img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-gallery img:hover, .s-product-gallery img:hover {
  transform: scale(1.05);
}

/* المعلومات الجانبية: العنوان، السعر، وصف */
.product-info, .s-product-info {
  background: #1b365d;
  border-radius: 12px;
  padding: 2rem;
}
.product-info h1, .s-product-info h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #f4e8ce; /* لون العنوان يتماشى مع الهوية */
  margin-bottom: 1rem;
}
.product-info .price, .s-product-info .price {
  font-size: 1.7rem;
  font-weight: 700;
  color: #c8a96a; /* ذهبي للثمن */
  margin-bottom: 1.5rem;
}
.product-info .description, .s-product-info .description {
  font-size: 1rem;
  line-height: 1.6;
  color: #dddddd;
  margin-bottom: 2rem;
}

/* زر “إضافة إلى السلة” */
.s-button-btn.add-to-cart, .product-info .add-to-cart-button {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2433; /* نص داكن على الزر */
  background: #f4e8ce; /* زر بلون الهوية */
  border: none;
  border-radius: 50px;
  transition: background .3s ease, transform .3s ease;
}
.s-button-btn.add-to-cart:hover, .product-info .add-to-cart-button:hover {
  background: #e9d8b0;
  transform: translateY(-2px);
}

/* خصائص إضافية – مميزات المنتج */
.product-features, .s-product-features {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1rem;
}
.product-features .feature-item, .s-product-features .feature-item {
  background: #2f3749;
  padding: 1.4rem;
  border-radius: 12px;
  color: #1b365d;
  text-align: center;
}
.product-features .feature-item i, .s-product-features .feature-item i {
  font-size: 2rem;
  color: #c8a96a;
  margin-bottom: 0.5rem;
}

/* فوتر المنتج – معلومات إضافية/شوحن/سياسات */
.product-extra-info, .s-product-extra-info {
  background: #1a2433;
  color: #dddddd;
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-top: 1px solid #333d4e;
}
.product-extra-info h3, .s-product-extra-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f4e8ce;
  margin-bottom: 1rem;
}
.product-extra-info p, .s-product-extra-info li {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* استجابة الجوال */
@media (max-width: 768px) {
  .product-page, .page-product-single {
    padding: 0 0.8rem;
  }
  .product-info h1 {
    font-size: 1.6rem;
  }
  .product-info .price {
    font-size: 1.4rem;
  }
  .s-button-btn.add-to-cart {
    width: 100%;
    text-align: center;
  }
}


/* =========================
   FOOTER – Sway Style
   ========================= */

/* خلفية عامة للفوتر */
footer.store-footer, .footer, .store-footer__inner {
  background-color: #0e1522 !important; /* كحلي داكن */
  color: #f4e8ce !important; /* بيج فاتح */
  padding: 3rem 0 1rem 0 !important;
  position: relative;
  border-top: 3px solid #c8a96a;
}

/* عنوان الأعمدة */
footer.store-footer h3, .footer h3 {
  color: #f4e8ce !important;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
}
footer.store-footer h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: #c8a96a;
  margin-top: 6px;
  border-radius: 2px;
}

/* الروابط */
footer.store-footer a, .store-footer__inner a {
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.3s ease;
}
footer.store-footer a:hover {
  color: #c8a96a !important;
}

/* تنسيق العناصر داخل الفوتر */
footer.store-footer .container, .store-footer__inner .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

/* الأعمدة */
footer.store-footer .column, .store-footer__inner > div {
  flex: 1 1 200px;
  min-width: 180px;
}

/* قسم التواصل */
footer.store-footer .contact-info a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  margin-bottom: 10px;
}
footer.store-footer .contact-info a i {
  color: #c8a96a;
  font-size: 1.1rem;
}

/* الأيقونات الاجتماعية */
footer.store-footer .s-social-list i {
  font-size: 1.2rem;
  background-color: rgba(255,255,255,0.1);
  color: #f4e8ce !important;
  padding: 10px;
  border-radius: 50%;
  margin: 0 4px;
  transition: all 0.3s ease;
}
footer.store-footer .s-social-list i:hover {
  background-color: #c8a96a;
  color: #0e1522 !important;
  transform: translateY(-2px);
}

/* شريط الحقوق السفلي */
footer.store-footer::after {
  content: "";
  display: block;
  height: 1px;
  background-color: rgba(255,255,255,0.1);
  margin: 2rem 0 1rem;
}
footer.store-footer .copyright-text {
  text-align: center;
  font-size: 0.9rem;
  color: #b8b8b8;
  margin-top: 5px;
}

/* أيقونات وسائل الدفع */
footer.store-footer .payment-icons img {
  filter: brightness(0.95) contrast(1.05);
  transition: transform 0.3s ease;
}
footer.store-footer .payment-icons img:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* استجابة للجوال */
@media (max-width: 768px) {
  footer.store-footer .container {
    flex-direction: column;
    text-align: center;
  }
  footer.store-footer h3::after {
    margin-inline: auto;
  }
  footer.store-footer .contact-info a {
    justify-content: center;
  }
  footer.store-footer .s-social-list i {
    margin: 4px;
  }
}


/* =========================
   لون السعر – كحلي غامق أنيق
   ========================= */

.s-product-info .price,
.price-wrapper .total-price,
.s-product-price,
.s-product-info h2.total-price {
  color: #0e1522 !important; /* كحلي غامق */
  font-weight: 800 !important;
  font-size: 1.8rem !important;
  text-shadow: none !important;
}

/* السعر بعد الخصم */
.price-wrapper .discounted,
.s-product-price .discounted {
  color: #0b3c5d !important; /* كحلي متوسط */
  font-size: 1.6rem !important;
  font-weight: 700 !important;
}

/* السعر القديم (المشطوب) */
.price-wrapper .old-price,
.s-product-price .old-price {
  color: rgba(14,21,34,0.4) !important;
  text-decoration: line-through;
  font-size: 1rem !important;
}

/* الكلمات المرافقة مثل "السعر" و"الكمية" */
.form-label, .tax-label, .price-label, .price-vat {
  color: #0b3c5d !important;
  font-weight: 700;
  font-size: 0.95rem;
}

/* خلفية المربع */
.price-wrapper, .s-product-price {
  background: #f4e8ce !important; /* خلفية بيج فاتح */
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid #c8a96a;
}

/* زر "اشترِ الآن" */
button.s-button-btn.s-button-primary,
.add-to-cart-button {
  background: #0b3c5d !important;
  color: #f4e8ce !important;
  font-weight: 800 !important;
  border-radius: 50px !important;
  transition: all 0.3s ease;
}
button.s-button-btn.s-button-primary:hover,
.add-to-cart-button:hover {
  background: #082a40 !important;
  transform: translateY(-2px);
}

/* حقل الكمية */
.s-quantity-input-input {
  color: #0e1522 !important;
  background-color: #fff !important;
  font-weight: 700;
  border-radius: 6px !important;
  text-align: center;
}

/* متجاوب للجوال */
@media (max-width: 768px) {
  .price-wrapper .total-price {
    font-size: 1.5rem !important;
  }
  .price-wrapper {
    padding: 8px 10px;
  }
}