}
/* Add custom CSS styles below */
/* بطاقات تسوق حسب الفئة: 4 بجانب بعض على الكمبيوتر */
@media (min-width: 768px) {
  [data-testid="store-home-square-banners"] .two-row {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}


/* بطاقتان بجانب بعض على الجوال */
@media (max-width: 767px) {
  [data-testid="store-home-square-banners"] .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}


/* توحيد حجم البطاقات الأربع */
@media (min-width: 768px) {
  [data-testid="store-home-square-banners"] .two-row .banner-entry {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
  }
}


body { background-color: #DDD3BD !important; }


/* إزالة التعتيم من صور تصنيفات الصفحة الرئيسية فقط */
[data-testid="store-home-square-banners"] .banner-entry.has-overlay::before,
[data-testid="store-home-square-banners"] .banner-entry.has-overlay::after {
  content: none !important;
  background: transparent !important;
  opacity: 0 !important;
}


/* إظهار التعتيم فقط عند المرور بالماوس */
[data-testid="store-home-square-banners"] .banner-entry {
  position: relative;
  overflow: hidden;
}
[data-testid="store-home-square-banners"] .banner-entry:hover::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28) !important;
  opacity: 1 !important;
  z-index: 1;
}
[data-testid="store-home-square-banners"] .banner-entry__text { position: relative; z-index: 2; }
[data-testid="store-home-square-banners"] .banner-entry:hover .banner__title,
[data-testid="store-home-square-banners"] .banner-entry:hover .banner__description { color: #ffffff !important; }


/* كتابة بيضاء دائمًا فوق صور التصنيفات */
[data-testid="store-home-square-banners"] .banner-entry__text,
[data-testid="store-home-square-banners"] .banner__title,
[data-testid="store-home-square-banners"] .banner__description {
  color: #ffffff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35) !important;
}


body, .store-content, .main-content { background-color: #f2ede4 !important; }
.main-content { background: #DDD3BD !important; }


footer, footer.footer, .s-footer,
.footer, .store-footer,
.footer-main, .footer-content, .footer__main, .s-footer-container,
.store-footer__inner,
footer .footer-bottom, footer .footer-copyright,
.footer-bottom, .footer-copyright,
.store-footer > .container {
  background-color: #686A4E !important;
}
.store-footer > .container { color: #FFFFFF !important; }
.store-footer__inner,
.store-footer__inner h1,
.store-footer__inner h2,
.store-footer__inner h3,
.store-footer__inner p,
.store-footer__inner a,
.store-footer__inner span { color: #FFFFFF !important; }


/* حبشتكات: بطاقة كاملة في آخر الصف على الجوال */
@media (max-width: 767px) {
  .s-block--banners .two-row .banner-entry:last-child {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    aspect-ratio: 16 / 9 !important;
  }
}


/* جميع المنتجات: نفس تنسيق حبشتكات على الجوال */
@media (max-width: 767px) {
  .s-block--banners .h-lg-banner {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    aspect-ratio: 16 / 9 !important;
  }
}

/* صفحة المنتج: إبراز معلومات الجملة والحد الأدنى للطلب */
[data-testid="store-product-description"] {
  background: #f7f1e6;
  border: 1px solid #d8c8ac;
  border-radius: 12px;
  padding: 1rem 1.25rem !important;
  margin: 1rem 0 1.25rem !important;
}

[data-testid="store-product-description"]::before {
  content: "معلومات المنتج والجملة";
  display: block;
  color: #5d6244;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: .55rem;
}

[data-testid="store-product-description"] .article--main {
  color: #3d3d3d;
  font-size: .95rem;
  line-height: 2;
}

.sticky-product-bar__quantity {
  position: relative;
  padding-bottom: 3.2rem;
}

.sticky-product-bar__quantity::after {
  content: "تنبيه: أدخل الحد الأدنى المذكور في معلومات المنتج قبل الإضافة للسلة.";
  position: absolute;
  inset-inline: 0;
  bottom: .15rem;
  color: #8a5b16;
  background: #fff4d6;
  border-inline-start: 3px solid #bd852b;
  border-radius: 7px;
  padding: .5rem .65rem;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 767px) {
  [data-testid="store-product-description"] {
    padding: .85rem 1rem !important;
  }
  .sticky-product-bar__quantity::after {
    font-size: .75rem;
  }
}