/* Add custom CSS styles below */ 
/* MT Garage — أزرار بطاقات المنتجات */
.s-product-card-entry salla-add-product-button {
  --color-primary: #d50000;
  --color-primary-dark: #ad0000;
  --color-primary-reverse: #ffffff;
}

.s-product-card-entry salla-add-product-button button:not(:disabled) {
  background: #d50000 !important;
  border-color: #d50000 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
}

.s-product-card-entry salla-add-product-button button:not(:disabled):hover {
  background: #ad0000 !important;
  border-color: #ad0000 !important;
}/* MT Garage — ترتيب بطاقات المنتجات */

/* حدود خفيفة وحواف متناسقة */
.s-product-card-entry.s-product-card-vertical {
  border: 1px solid #eeeeee;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.035);
}

/* مساحة موحدة للصور وإظهار المنتج كاملًا */
.s-product-card-vertical .s-product-card-image {
  height: auto !important;
  aspect-ratio: 1 / 1;
  background: #ffffff;
}

.s-product-card-vertical .s-product-card-image > a {
  display: block;
  width: 100%;
  height: 100%;
}

.s-product-card-vertical .s-product-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 10px;
  box-sizing: border-box;
}

/* تخصيص سطرين لاسم كل منتج */
.s-product-card-vertical .s-product-card-content-title {
  height: 3.2em;
  line-height: 1.6;
  margin-bottom: 8px;
}

.s-product-card-vertical .s-product-card-content-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* توحيد مساحة السعر */
.s-product-card-vertical .s-product-card-content-sub {
  min-height: 36px;
}

.s-product-card-vertical .s-product-card-price,
.s-product-card-vertical .s-product-card-sale-price h4 {
  font-weight: 700;
}

/* تمييز سعر التخفيض */
.s-product-card-vertical .s-product-card-sale-price h4 {
  color: #d50000;
}

/* دفع الأزرار لأسفل البطاقة */
.s-product-card-vertical .s-product-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.s-product-card-vertical .s-product-card-content-footer {
  margin-top: auto;
  padding-top: 12px;
}/* تقليل الفراغ داخل بطاقات المنتجات */
.s-product-card-vertical .s-product-card-content {
  justify-content: flex-start !important;
  gap: 10px !important;
}

.s-product-card-vertical .s-product-card-content-main {
  flex: none !important;
}

.s-product-card-vertical .s-product-card-content-sub {
  flex: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: 30px !important;
}

.s-product-card-vertical .s-product-card-content-footer {
  margin-top: 0 !important;
  padding-top: 4px !important;
}/* ضبط ارتفاع بطاقات المنتجات */
.s-product-card-entry.s-product-card-vertical {
  justify-content: flex-start !important;
  min-height: 0 !important;
}

.s-product-card-entry.s-product-card-vertical
.s-product-card-image {
  flex: none !important;
}

.s-product-card-entry.s-product-card-vertical
.s-product-card-content {
  flex: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 12px !important;
  gap: 8px !important;
}

.s-product-card-vertical .s-product-card-content-title {
  height: 44px !important;
  margin: 0 !important;
}

.s-product-card-vertical .s-product-card-content-title a {
  line-height: 22px !important;
}

.s-product-card-vertical .s-product-card-content-sub {
  min-height: 24px !important;
  margin: 0 !important;
}

.s-product-card-vertical .s-product-card-content-footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}/* إخفاء الوصف الرمادي داخل بطاقات قسم منتجاتنا */
[data-testid="store-home-fixed-products"]
.s-product-card-content-subtitle {
  display: none !important;
}

/* تقليل الفراغ أسفل البنر */
[data-testid="store-home-photos-slider"] {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* تقريب قسم المنتجات من البنر */
[data-testid="store-home-photos-slider"]
+ [data-testid="store-home-fixed-products"] {
  margin-top: 24px !important;
  padding-top: 0 !important;
}/* إزالة مساحة التنقّل أسفل البنر الوحيد */
[data-testid="store-home-photos-slider"] .swiper {
  padding-bottom: 0 !important;
}

[data-testid="store-home-photos-slider"] .swiper-pagination {
  display: none !important;
}.s-product-card-content-subtitle {
  display: none !important;
}/* تقليل فراغات العلامات التجارية */
.brands-index section[id^="brand-section-"] {
  padding-top: 24px !important;
}

.brands-index section[id^="brand-section-"] > .flex {
  margin-bottom: 12px !important;
}/* عرض العلامات جنب بعض */
.brands-index .brands-nav-wrap,
.brands-index section[id^="brand-section-"] > .flex {
  display: none !important;
}

.brands-index main .container > div:has(> section[id^="brand-section-"]) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 !important;
}

.brands-index section[id^="brand-section-"],
.brands-index section[id^="brand-section-"] > .grid {
  display: contents !important;
}

.brands-index .brand-item {
  width: 100% !important;
  height: 120px !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.brands-index .brand-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}