/* ===== متجر حلول — تصميم حيوي بألوان العروض ===== */
:root {
  --h-brown: #643e1b;
  --h-accent: #e01e2f;
  --h-accent-2: #ff4055;
  --h-soft: #fff1f2;
  --h-border: #eadfd5;
  --h-radius: 16px;
  --h-shadow: 0 2px 10px rgba(60, 30, 0, .08);
  --h-shadow-hover: 0 12px 28px rgba(60, 30, 0, .16);
  --h-grad: linear-gradient(135deg, var(--h-accent), var(--h-accent-2));
}

body { background: #faf7f4; }

/* ---------- عناوين الأقسام ---------- */
.home-block-title h2 {
  font-weight: 800;
  color: var(--h-brown);
}
/* الخط الزخرفي تحت العنوان (من الثيم) بلون العروض */
.home-block-title .enhanced-title-border { color: var(--h-accent); }
.home-block-title .enhanced-title-border,
.home-block-title .enhanced-title-border::before,
.home-block-title .enhanced-title-border::after { border-color: var(--h-accent) !important; }

/* ---------- بطاقات المنتجات ---------- */
.product-card {
  background: #fff;
  border: 1px solid var(--h-border) !important;
  border-radius: var(--h-radius) !important;
  box-shadow: var(--h-shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--h-shadow-hover);
  border-color: var(--h-accent) !important;
}
.product-card__image { background: #fff; padding-top: 6px; }
.product-card__title a {
  font-weight: 700;
  line-height: 1.6;
}
.product-card__subtitle { color: #8a7a6c !important; font-size: 13px; }

/* السعر */
.product-card__price .total-price { font-weight: 800; }
.product-card__price .price_is_on_sale .total-price,
.product-card__price .total-price.text-red-600 {
  color: var(--h-accent) !important;
  font-size: 1.25rem;
}
.product-card__price .before-price { color: #a99a8c !important; }

/* شارة الخصم (صغيرة) */
.product-card__discount {
  background: var(--h-grad) !important;
  border-radius: 999px !important;
  padding: 1px 10px !important;
  width: fit-content !important;
  margin: 4px auto !important;
  line-height: 1.5 !important;
  box-shadow: 0 1px 5px rgba(224, 30, 47, .3);
}
.product-card__discount,
.product-card__discount span { font-size: 12px !important; }
.product-card__discount span,
.product-card__discount .text-red-600 {
  color: #fff !important;
  font-weight: 800;
}

/* ---------- الهيدر ---------- */
.store-header {
  box-shadow: 0 2px 14px rgba(60, 30, 0, .08);
  background: #fff;
}
.store-header .sicon-search,
.store-header .header-btn__icon { transition: color .2s; }
.store-header .header-btn:hover .header-btn__icon,
.store-header .header-search-btn:hover .header-btn__icon { color: var(--h-accent); }

/* ---------- العلامات التجارية ---------- */
.brands__item {
  background: #fff;
  border: 1px solid var(--h-border);
  border-radius: 14px;
  padding: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.brands__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--h-shadow-hover);
}
.brands__grid { gap: 14px !important; }

/* ---------- المميزات ---------- */
.s-block--enhanced-features__item {
  background: #fff;
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius);
  box-shadow: var(--h-shadow);
}

/* ---------- صفحة المنتج ---------- */
.product-single__title { font-weight: 800; color: var(--h-brown); }
.product-single .product-price .total-price,
.product-single .product-price-top .total-price {
  color: var(--h-accent);
  font-weight: 800;
  font-size: 1.9rem;
}
.product-single__brand-box {
  background: var(--h-soft);
  border: 1px solid var(--h-border) !important;
  border-radius: 14px !important;
}
.product-single .s-product-gallery,
.product-single .s-slider-block {
  border-radius: var(--h-radius);
}

/* زر الإضافة للسلة في صفحة المنتج */
html body.product-single salla-add-product-button:not(custom-salla-product-card salla-add-product-button) button.s-button-element {
  background: var(--h-grad) !important;
  border: 0 !important;
  color: #fff !important;
  border-radius: 14px !important;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(224, 30, 47, .35);
}
.sticky-cart-single {
  box-shadow: 0 -4px 18px rgba(60, 30, 0, .12);
}

/* ---------- الفوتر ---------- */
.store-footer {
  border-top: 4px solid transparent;
  border-image: var(--h-grad) 1;
}

/* ---------- الجوال ---------- */
@media (max-width: 640px) {
  .home-block-title h2 { font-size: 1.35rem; }
  .product-card { border-radius: 14px !important; }
  .product-card__title a { font-size: 13px; }
  .product-card__price .total-price { font-size: 1rem; }
  .brands__item { padding: 10px; }
}

/* ---------- لوقو المتجر في الهيدر ---------- */
.store-header .navbar-brand img.logo-normal {
  height: 68px !important;
  width: auto !important;
  max-width: 220px;
  object-fit: contain;
}
.store-header #mainnav,
.store-header .main-nav-container { height: auto !important; min-height: 60px; }
.store-header .header__main-row { align-items: center; padding-block: 6px; }
@media (max-width: 640px) {
  .store-header .navbar-brand img.logo-normal { height: 52px !important; }
}

/* ---------- شعار الماركة على صورة المنتج (يسار الصورة) ---------- */
.product-card__image { position: relative; }
.brand-badge {
  position: absolute;
  bottom: 0;
  left: 0 !important;
  right: auto !important;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  max-width: 100px;
  padding: 4px 8px 2px 6px;
  background: #fff;
  border-radius: 0 12px 0 0;   /* زاوية علوية يمنى مقوّسة */
  box-shadow: none;
  pointer-events: none;
}
.brand-badge img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  padding: 0;
}
.brand-badge--text {
  height: auto;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  padding: 4px 8px;
}