/* Add custom CSS styles below */ 
/* إزالة المساحة الفاضية بين النافبار والبنر */
section[component-id="1918227218"],
section[component-id="1918227218"] > [component-name="hero-slider"] {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* إزالة المسافة العلوية من الحاوية الأب للبنر */
:has(> section[component-id="1918227218"]) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* إزالة المساحة الفاتحة بين البنر وسكشن المنتجات */
section[component-id="1918227218"] {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

section[component-id="678683284"] {
  margin-top: 0 !important;
}

/* 1) إزالة الطبقة الغامقة (الرابط يفضل شغال، بس شفاف) */
.s-product-card-full-image .s-product-card-overlay,
.s-product-card-full-image .s-product-card-overlay:hover,
.s-product-card-full-image .s-product-card-image-full::before,
.s-product-card-full-image .s-product-card-image-full::after {
  background: transparent !important;
  background-image: none !important;
  opacity: 0 !important;
}

.s-product-card-full-image .s-product-card-image-cover,
.s-product-card-full-image:hover .s-product-card-image-cover {
  filter: none !important;
  opacity: 1 !important;
}

/* 2) الاسم والسعر جنب بعض في شريط واحد، والزرار تحتهم */
.s-product-card-full-image .s-product-card-content {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  justify-content: flex-start;
  gap: 0 !important;
}

.s-product-card-full-image .s-product-card-content-main,
.s-product-card-full-image .s-product-card-content-sub {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 10px 16px;
  margin: 0 0 10px 0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* الاسم: يمين الشريط */
.s-product-card-full-image .s-product-card-content-main {
  border-radius: 0 12px 12px 0;
}

/* السعر: شمال الشريط، وبينهم خط فاصل خفيف */
.s-product-card-full-image .s-product-card-content-sub {
  border-radius: 12px 0 0 12px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

/* الزرار يفضل سطر لوحده تحت */
.s-product-card-full-image .s-product-card-content-footer {
  flex-basis: 100%;
  width: 100%;
}

/* اسم المنتج أكبر */
.s-product-card-full-image .s-product-card-content-title {
  margin: 0 !important;
}
.s-product-card-full-image .s-product-card-content-title,
.s-product-card-full-image .s-product-card-content-title a {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  color: #1f2937 !important;
  text-shadow: none !important;
}

/* السعرين جنب بعض */
.s-product-card-full-image .s-product-card-sale-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
}

/* سعر الخصم أكبر */
.s-product-card-full-image .s-product-card-sale-price h4 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #c0262d !important;
  margin: 0 !important;
  text-shadow: none !important;
}

/* السعر القديم */
.s-product-card-full-image .s-product-card-sale-price span {
  font-size: 15px !important;
  color: #6b7280 !important;
  text-decoration: line-through;
  text-shadow: none !important;
}

/* على الموبايل: أحجام أصغر شوية */
@media (max-width: 640px) {
  .s-product-card-full-image .s-product-card-content-title,
  .s-product-card-full-image .s-product-card-content-title a { font-size: 16px !important; }
  .s-product-card-full-image .s-product-card-sale-price h4 { font-size: 18px !important; }
  .s-product-card-full-image .s-product-card-sale-price span { font-size: 13px !important; }
}

/* الاسم والسعر في شريط واحد مهما كان عرض الشاشة */
.s-product-card-full-image .s-product-card-content-main {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 60%;
}

.s-product-card-full-image .s-product-card-content-sub {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
}

/* على الموبايل: الشريط أصغر */
@media (max-width: 640px) {
  .s-product-card-full-image .s-product-card-content-main,
  .s-product-card-full-image .s-product-card-content-sub {
    padding: 8px 10px;
  }
  .s-product-card-full-image .s-product-card-content-title,
  .s-product-card-full-image .s-product-card-content-title a {
    font-size: 14px !important;
  }
  .s-product-card-full-image .s-product-card-sale-price { gap: 6px; }
  .s-product-card-full-image .s-product-card-sale-price h4 { font-size: 16px !important; }
  .s-product-card-full-image .s-product-card-sale-price span { font-size: 12px !important; }
}

/* مسافة بين قسم "الأكثر مبيعاً" والقسم اللي فوقه */
section:has(.s-product-card-full-image) {
  margin-top: 40px !important;
}
@media (max-width: 640px) {
  section:has(.s-product-card-full-image) {
    margin-top: 28px !important;
  }
}